@metamorph-labs/polymorph-vue-ui 1.0.17 → 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 +166 -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/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/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 -1
- package/dist/controls/rich-text-input.module.js +1 -1
- package/dist/controls/rich-text-input.module.js.map +1 -1
- 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/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/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/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/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 +1 -1
- package/dist/node/controls/rich-text-input.module.js.map +1 -1
- 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/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/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.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 +1 -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 +1 -1
- package/dist/node/structure/Collapsible.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/Pagination.js.map +1 -1
- package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js +118 -88
- package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- 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 +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 +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 +4 -3
- package/dist/node/structure/pagination.module.js.map +1 -1
- package/dist/node/structure/rich-text-content.module.js +1 -1
- 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.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 +1 -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 +1 -1
- package/dist/structure/Collapsible.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/Pagination.js.map +1 -1
- package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js +118 -88
- package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- 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 +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 +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 +4 -3
- package/dist/structure/pagination.module.js.map +1 -1
- package/dist/structure/rich-text-content.css +1 -1
- package/dist/structure/rich-text-content.module.js +1 -1
- 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/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/Slider.vue.d.ts +1 -1
- 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/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/EmptyState.vue.d.ts +1 -1
- package/dist/types/structure/Hero.vue.d.ts +1 -1
- package/dist/types/structure/RelativeTime.vue.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/archetypes/app-shell.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_shell_1wsbk_13", t = "_sidebar_1wsbk_9", n = "_railHead_1wsbk_68", r = "_brand_1wsbk_76", i = "_nav_1wsbk_84", a = "_sidebarFooter_1wsbk_93", o = "_navItem_1wsbk_105 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", s = "_navGlyph_1wsbk_134 _stateFeedback_lkjqs_17", c = "_navLabel_1wsbk_143", l = "_navEnd_1wsbk_151", u = "_navGroup_1wsbk_163", d = "_navGroupLabel_1wsbk_172", f = "_userCard_1wsbk_193", p = "_userText_1wsbk_204", m = "_userName_1wsbk_211", h = "_userDetail_1wsbk_225", g = "_userEnd_1wsbk_237", _ = "_toggle_1wsbk_276", v = "_banner_1wsbk_283", y = "_topbar_1wsbk_288", b = "_topbarSlot_1wsbk_303", x = "_content_1wsbk_336", S = "_announcer_1wsbk_359 _visuallyHidden_qxi8b_14", C = "_page_1wsbk_363", w = "_dock_1wsbk_391", T = "_skip_1wsbk_410 _focusRing_1hr3n_49", E = "_scrim_1wsbk_530", D = "_drawerToggle_1wsbk_548", O = {
|
|
3
3
|
shell: e,
|
|
4
4
|
sidebar: t,
|
|
5
5
|
railHead: n,
|
|
@@ -22,14 +22,15 @@ var e = "_shell_2zlpo_13", t = "_sidebar_2zlpo_9", n = "_railHead_2zlpo_68", r =
|
|
|
22
22
|
topbar: y,
|
|
23
23
|
topbarSlot: b,
|
|
24
24
|
content: x,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
announcer: S,
|
|
26
|
+
page: C,
|
|
27
|
+
dock: w,
|
|
28
|
+
skip: T,
|
|
29
|
+
scrim: E,
|
|
30
|
+
"shell-scrim-enter": "_shell-scrim-enter_1wsbk_1",
|
|
31
|
+
drawerToggle: D
|
|
31
32
|
};
|
|
32
33
|
//#endregion
|
|
33
|
-
export { v as banner, r as brand, x as content,
|
|
34
|
+
export { S as announcer, v as banner, r as brand, x as content, O as default, w as dock, D as drawerToggle, i as nav, l as navEnd, s as navGlyph, u as navGroup, d as navGroupLabel, o as navItem, c as navLabel, C as page, n as railHead, E as scrim, e as shell, t as sidebar, a as sidebarFooter, T as skip, _ as toggle, y as topbar, b as topbarSlot, f as userCard, h as userDetail, g as userEnd, m as userName, p as userText };
|
|
34
35
|
|
|
35
36
|
//# sourceMappingURL=app-shell.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-shell.module.js","names":[],"sources":["../../../../recipes/src/archetypes/app-shell.module.css"],"sourcesContent":["/* AppShell — `design/archetypes/app-shell.md`.\n *\n * The `--pm-shell-*` scope is declared here and nowhere else. The values are\n * computed from space tokens, so a compact theme gets a tighter frame with no\n * extra declaration. Changing one of them is a one-line change that no screen\n * needs to know about (the churn test in `pages.test.tsx`).\n *\n * The sidebar collapse is the only animated structural change in the shell.\n * It uses the `appshell.sidebar` binding: `collapse` in persistent mode on the\n * inline axis. Law 2 lets a container animate only its size, and a grid track\n * counts as a container. */\n\n.shell {\n --pm-shell-topbar-height: calc(var(--pm-space-7) + var(--pm-space-6));\n --pm-shell-sidebar-width: calc(var(--pm-space-10) * 2 + var(--pm-space-7));\n --pm-shell-sidebar-width-collapsed: calc(var(--pm-space-7) + var(--pm-space-5));\n\n display: grid;\n grid-template:\n 'banner banner' auto\n 'sidebar topbar' minmax(var(--pm-shell-topbar-height), auto)\n 'sidebar content' minmax(0, 1fr)\n / var(--pm-shell-sidebar-width) minmax(0, 1fr);\n min-inline-size: 0;\n inline-size: 100%;\n\n /* On phones `100vh` includes the collapsed browser chrome, so a `100vh`\n shell puts its bottom edge behind the URL bar (`docs/layout.md`). The\n fallback pattern (app-shell.md's root cell) puts the `vh` base here and\n the `dvh` override in the `@supports` block below. A deduplicating\n minifier would merge two declarations of one property in the same rule,\n and the built CSS would ship with only `dvh`. */\n block-size: 100vh;\n\n /* The texture sits on the page surface it decorates. It is `none` for themes\n whose ornament level disables it, and the colour underneath is exactly\n `bg.app`. */\n background: var(--pm-texture-page) var(--pm-bg-app);\n transition: grid-template-columns var(--pm-motion-duration-surface)\n var(--pm-motion-easing-standard);\n}\n\n@supports (height: 1dvh) {\n .shell {\n block-size: 100dvh;\n }\n}\n\n/* Region surfaces are theme data. The rail is one step off the page, and the\n region borders use the theme's emphasis (a flat system draws them at\n `border.default`, a shadowed one keeps them subtle). So a dark rail on a\n light app is a value a theme sets, not a separate recipe. */\n.sidebar {\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n gap: var(--pm-space-2);\n min-inline-size: 0;\n min-block-size: 0;\n padding: var(--pm-space-4);\n overflow: hidden;\n background: var(--pm-shell-rail-bg);\n border-inline-end: 1px solid var(--pm-shell-rail-border);\n}\n\n/* The head row: brand and the collapse toggle, at the topbar's height so the\n rail's first row and the frame's first row share a baseline. */\n.railHead {\n display: flex;\n flex: none;\n gap: var(--pm-space-2);\n align-items: center;\n min-block-size: var(--pm-shell-topbar-height);\n}\n\n.brand {\n display: flex;\n flex: 1;\n align-items: center;\n min-inline-size: 0;\n padding-inline: var(--pm-space-3);\n}\n\n.nav {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--pm-space-2);\n min-block-size: 0;\n overflow-y: auto;\n}\n\n.sidebarFooter {\n flex: none;\n}\n\n/* NavItem — `app-shell.md`'s NavItem recipe, cell by cell.\n *\n * It is start-aligned, which is why it exists instead of a stretched ghost\n * Button. The glyph sits at the same x on every row, so the rail reads as a\n * column instead of a stack of centred pills.\n *\n * Colour transitions come from `stateFeedback`. There is no entrance motion,\n * because rails do not animate their nav. */\n.navItem {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback pressable from '../conventions/motion.module.css';\n position: relative;\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n justify-content: flex-start;\n inline-size: 100%;\n block-size: var(--pm-control-height-md);\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-secondary);\n text-align: start;\n\n /* The root swap (`href`) makes the row an <a>. The rail is navigation, not\n prose, so the user agent's link underline is removed. */\n text-decoration: none;\n cursor: pointer;\n user-select: none;\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--pm-radius-md);\n}\n\n.navGlyph {\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/* When the rail is narrow, the text truncates, never the glyph or the count. */\n.navLabel {\n flex: 1;\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.navEnd {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n\n/* NavGroup — `app-shell.md`'s NavGroup recipe, cell by cell.\n *\n * The label uses the system's only section-heading recipe (SettingsRow.Group's\n * overline, also used by Dashboard.Panel): `text.xs`, uppercase, muted. Many\n * sidebars use sentence case for group labels. This system styles every\n * section heading the same way, so the rail matches the settings screen. */\n.navGroup {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-2);\n}\n\n/* The top padding is the space between groups. It is on the label, not the\n group, because it is the space before a heading, and a group whose heading\n is hidden (collapsed) should not reserve it. */\n.navGroupLabel {\n padding: var(--pm-space-4) var(--pm-space-3) var(--pm-space-1);\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 rail's own padding is already above the first group. */\n.navGroup:first-child .navGroupLabel {\n padding-block-start: 0;\n}\n\n/* UserCard — the rail's foot.\n *\n * It is a row, not a control. The control is whatever is in `end`. Its height\n * is the avatar's plus the row's padding. It shares the left edge of every\n * NavItem above it, so it reads as the bottom of the same column. */\n.userCard {\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n min-inline-size: 0;\n padding: var(--pm-space-2) var(--pm-space-3);\n border-radius: var(--pm-radius-md);\n}\n\n/* The text truncates, as NavItem's label does, for the same reason: an\n ellipsis shows that text is hidden, and a clipped glyph is a rendering bug. */\n.userText {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-inline-size: 0;\n}\n\n.userName {\n overflow: hidden;\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 text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* One step smaller and one tone lighter. A composition cannot reach this,\n because `Text` stops at `sm` and its lowest tone is `secondary`. */\n.userDetail {\n overflow: hidden;\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-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.userEnd {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n\n/* The current item uses the selection treatment (`design/components/README.md`),\n not a persistent hover. The selection colours sit one step below the hover\n wash and have their own text colour, so the current location reads as\n chosen, not hovered. */\n.navItem[data-current] {\n color: var(--pm-selection-text);\n background: var(--pm-selection-bg);\n}\n\n.navItem[data-current] .navGlyph {\n color: var(--pm-selection-text);\n}\n\n/* Selection takes precedence over hover, as in Table's law, for the same\n reason: if hover restyled the current row, the current location would\n flicker with the pointer. The hover uses `bg.surface` because the rail\n itself is `bg.subtle`. */\n.navItem:hover:not([data-current]) {\n color: var(--pm-text-primary);\n background: var(--pm-bg-surface);\n}\n\n.navItem:hover:not([data-current]) .navGlyph {\n color: var(--pm-text-secondary);\n}\n\n.toggle {\n display: flex;\n flex: none;\n}\n\n/* The banner's row. It is `auto`, so a shell without a banner gives it no\n height. The rail and the content region start under it. */\n.banner {\n grid-area: banner;\n min-inline-size: 0;\n}\n\n.topbar {\n display: flex;\n flex-wrap: wrap;\n grid-area: topbar;\n gap: var(--pm-space-4);\n align-items: center;\n justify-content: space-between;\n min-inline-size: 0;\n padding-block: var(--pm-space-2);\n padding-inline: var(--pm-space-6);\n background: var(--pm-shell-topbar-bg);\n border-block-end: 1px solid var(--pm-shell-topbar-border);\n box-shadow: var(--pm-shadow-resting);\n}\n\n.topbarSlot {\n display: flex;\n flex-wrap: wrap;\n gap: var(--pm-space-3);\n align-items: center;\n min-inline-size: 0;\n}\n\n/* The content region, and the container the page inside it measures.\n *\n * This is the boundary `docs/layout.md` names for the page archetypes. It must\n * be an ancestor of the page, not the page itself, because a container query\n * is answered by the nearest ancestor container. A page cannot query its own\n * width. The shell already knows how much room is left after the rail (the\n * whole window once the rail becomes a drawer), so the region that provides\n * the width declares the container.\n *\n * It contains both axes, so a page reads the region's visible height as\n * `100cqb`: DetailPage's aside that stays in view is never taller than the\n * region. The region's height is its grid row's, never its content's, so\n * containing its block size changes nothing it draws.\n *\n * It is the only scroll container. The frame stays in place and the page\n * inside it scrolls. The texture also stays in place, because the default\n * background attachment pins it to the region's box, so the page scrolls over\n * a still surface.\n *\n * It is positioned, so it is the containing block of everything it scrolls. A\n * member that hides text from the eye positions it absolutely\n * (`conventions/a11y.module.css`), and an absolutely positioned box belongs to\n * its containing block, not to the scroll container it sits in. Without a\n * positioned region, such a box far down a long page would be laid out against\n * the document and make the document itself scroll, under the frame. */\n.content {\n position: relative;\n container-type: size;\n grid-area: content;\n min-inline-size: 0;\n min-block-size: 0;\n overflow-wrap: anywhere;\n overflow-y: auto;\n background: var(--pm-texture-page) var(--pm-bg-app);\n}\n\n.page {\n min-inline-size: 0;\n inline-size: 100%;\n max-inline-size: calc(var(--pm-space-10) * 16);\n padding: var(--pm-space-8);\n margin-inline: auto;\n}\n\n@container (width < 40rem) {\n .page {\n padding: var(--pm-space-6);\n }\n}\n\n/* The dock: a floating layer over the content region.\n *\n * It uses the same grid cell as the content instead of a row below it.\n * `align-self: end` makes it float instead of acting as a footer, so the page\n * keeps its full height and the layer sits over its bottom edge. Sharing the\n * cell also keeps it centred when the rail collapses. The cell widens, so the\n * dock re-centres with the page without knowing the rail's width.\n *\n * It is not inside `.content`, because an absolutely positioned child of a\n * scroll container scrolls with it, and a prompt that scrolls away is not a\n * dock.\n *\n * `raise` is the same intra-member lift the skip link uses: above the page,\n * below the frame's own chrome and below every overlay. */\n.dock {\n display: flex;\n grid-area: content;\n align-self: end;\n justify-content: center;\n padding: 0 var(--pm-space-6) var(--pm-space-5);\n pointer-events: none;\n z-index: var(--pm-z-raise);\n}\n\n/* The layer ignores the pointer, so the space around the floating control\n still belongs to the page. The dock's children re-enable it. */\n.dock > * {\n pointer-events: auto;\n}\n\n/* Off-screen until it receives keyboard focus, then clearly visible. `raise` on\n the stacking scale is an intra-member lift over the shell's content, not\n chrome and not an overlay. */\n.skip {\n composes: focusRing from '../conventions/focus.module.css';\n position: absolute;\n inset-block-start: var(--pm-space-3);\n inset-inline-start: var(--pm-space-3);\n z-index: var(--pm-z-raise);\n padding: var(--pm-space-2) 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-accent-text);\n background: var(--pm-bg-surface);\n border-radius: var(--pm-radius-md);\n transform: translateY(-200%);\n}\n\n.skip:focus-visible {\n transform: translateY(0);\n}\n\n/* collapsed ----------------------------------------------------------------- */\n\n@media (width >= 48rem) {\n .shell[data-collapsed] {\n grid-template-columns: var(--pm-shell-sidebar-width-collapsed) minmax(0, 1fr);\n }\n}\n\n/* The small viewport ----------------------------------------------------------\n *\n * Below the reading width, two columns on a phone leave only a rail and a\n * narrow gutter. So the rail leaves the grid and becomes a drawer over the\n * content, and the topbar gets a `menu` button to open it.\n *\n * `48rem` is a literal, not a token, because a breakpoint belongs to the\n * viewport, not the theme. Scaling it with density would change the layout\n * for a reader who only changed control density. It is the only number in\n * this file that is deliberately not derived. */\n\n@media (width < 48rem) {\n .shell {\n grid-template:\n 'banner' auto\n 'topbar' minmax(var(--pm-shell-topbar-height), auto)\n 'content' minmax(0, 1fr)\n / minmax(0, 1fr);\n }\n\n /* Off-canvas, and closed, not only out of view.\n *\n * `visibility: hidden` handles accessibility. A rail moved off-screen by a\n * transform keeps its tab order, so a keyboard user tabs into a nav they\n * cannot see and the focus ring goes off-screen. Hidden removes it from the\n * tab order and the accessibility tree together. That matches the state below\n * this breakpoint, where the navigation is behind a button.\n *\n * The transition list differs by direction on purpose. Closing transitions\n * `visibility`, which is discrete and changes at the end, so the rail stays\n * rendered while it slides away. Opening does not transition it, and this is\n * required. A transitioned property takes its new computed value only at the\n * style recalculation that starts the transition, which happens after the\n * effect that moves focus into the rail. Focusing a hidden element fails\n * silently, so the change must be immediate when opening. */\n .sidebar {\n position: fixed;\n inset-block: 0;\n inset-inline-start: 0;\n\n /* `shell` on the stacking scale. The drawer-mode rail is shell chrome,\n above the page and its lifts and below every portalled overlay\n (`--pm-z-overlay`). So a sheet's scrim covers the rail instead of the\n rail showing through it. */\n z-index: var(--pm-z-shell);\n inline-size: var(--pm-shell-sidebar-width);\n visibility: hidden;\n box-shadow: var(--pm-shadow-transient);\n transform: translateX(-100%);\n transition:\n transform var(--pm-motion-duration-surface) var(--pm-motion-easing-standard),\n visibility var(--pm-motion-duration-surface);\n }\n\n .shell[data-drawer] .sidebar {\n visibility: visible;\n transform: translateX(0);\n transition-property: transform;\n }\n\n /* Reduced motion (`docs/motion.md`). A slide normally becomes a fade, but a\n sheet held off-screen by a transform cannot fade in place: at opacity 0 it\n would already have to be in its final position. So it appears instantly.\n dialog.md gives the same rule for its scrim and panel. The drawer's scrim\n already complies as written, because its animation is opacity only.\n\n Both selectors are needed, because `.shell[data-drawer] .sidebar` has\n higher specificity than `.sidebar`. Overriding only the closed rule would\n leave the opening transition in place. */\n @media (prefers-reduced-motion: reduce) {\n .sidebar,\n .shell[data-drawer] .sidebar {\n transition: none;\n }\n }\n\n /* No collapse toggle below the breakpoint. Here the rail is a sheet over the\n page, not a column of the frame, and a strip of glyphs floating over the\n content is not a useful state. */\n .toggle {\n display: none;\n }\n\n /* The scrim exists only while the drawer is open. A fixed transparent layer\n over a page with no drawer would capture every click.\n\n It uses `raise`, not `shell`, because of DOM order. The scrim renders after\n the sidebar, so at the same level it would paint over the rail it should\n sit under. One step lower keeps the order page, scrim, rail without\n changing the DOM. */\n .scrim {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-raise);\n background: var(--pm-bg-scrim);\n border: 0;\n animation: shell-scrim-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n }\n\n @keyframes shell-scrim-enter {\n from {\n opacity: 0;\n }\n }\n}\n\n/* At frame widths, the drawer's button and scrim are not used. */\n@media (width >= 48rem) {\n .drawerToggle,\n .scrim {\n display: none;\n }\n}\n\n/* When collapsed, the rail keeps a padding and the item drops its own, so the\n glyph centres in the remaining width instead of in a box offset by the\n sidebar's inset. */\n@media (width >= 48rem) {\n .shell[data-collapsed] .sidebar {\n padding-inline: var(--pm-space-2);\n }\n\n /* The head stacks when the rail narrows. A mark and a control do not fit side\n by side in 48px, and dropping either would lose the brand or the way to\n expand the rail. */\n .shell[data-collapsed] .railHead {\n flex-direction: column;\n min-block-size: auto;\n }\n\n .shell[data-collapsed] .brand {\n flex: none;\n justify-content: center;\n padding-inline: 0;\n }\n\n /* NavItem collapsed: no API, keyed off the shell.\n *\n * The item adapts to the narrow rail because the shell composed it. Everything\n * else in the rail is content the shell did not compose, and there\n * `overflow: hidden` clips what no longer fits instead of squashing it.\n * Adapting that content is the application's job. That division keeps this a\n * rail: the shell owns one item, not the whole nav. */\n .shell[data-collapsed] .navItem {\n gap: 0;\n justify-content: center;\n padding-inline: 0;\n }\n\n /* Visually hidden but still read aloud. The label is the accessible name in\n every mode, so it is clipped, not unmounted or `display: none`. UserCard's\n two lines are clipped too, because they are the card's accessible content,\n and clipping keeps a collapsed rail's foot available to screen readers. */\n .shell[data-collapsed] .navLabel,\n .shell[data-collapsed] .navEnd,\n .shell[data-collapsed] .userText {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n padding: 0;\n overflow: hidden;\n white-space: nowrap;\n border: 0;\n clip-path: inset(50%);\n }\n\n /* Removed, not clipped, for a different reason in each case.\n *\n * A group's title is a heading for a boundary that is no longer drawn. The\n * spec requires removing it, because clipping it would announce a section\n * nobody can see.\n *\n * UserCard's `end` is interactive. A menu trigger clipped to one pixel is a tab\n * stop nobody can find, with its focus ring off-screen. The drawer's\n * `visibility: hidden` follows the same reasoning. So `end` leaves the tab\n * order along with its space. */\n .shell[data-collapsed] .navGroupLabel,\n .shell[data-collapsed] .userEnd {\n display: none;\n }\n\n /* The avatar centres in the remaining width, in the same way as the nav glyph. */\n .shell[data-collapsed] .userCard {\n gap: 0;\n justify-content: center;\n padding-inline: 0;\n }\n}\n\n/* The navigation on top --------------------------------------------------------\n *\n * `navigation: 'top'` lays the rail along the frame's top row: the brand, then\n * the items in a row, and the topbar continues the row with its own slots. It\n * is the same `<nav>` in the same place in the document, before the topbar, so\n * the order a keyboard reaches the row in is the order it is drawn in. Every\n * rule is inside the frame-width query, so below the breakpoint the rail is\n * the drawer it is in the rail layout.\n *\n * The nav's column is as wide as its row needs, and the topbar keeps at least\n * the width its own content needs. When the row is wider than the frame, the\n * items wrap onto a further line, as SectionNav's do, so every destination\n * stays on screen and the frame never scrolls sideways. */\n@media (width >= 48rem) {\n .shell[data-navigation='top'] {\n grid-template:\n 'banner banner' auto\n 'sidebar topbar' minmax(var(--pm-shell-topbar-height), auto)\n 'content content' minmax(0, 1fr)\n / auto minmax(min-content, 1fr);\n }\n\n /* The topbar's surface and lower edge, so the nav and the topbar read as one\n bar. `overflow` is visible because the row ends at the last item, and a\n clipped box would cut that item's focus ring. */\n .shell[data-navigation='top'] .sidebar {\n flex-direction: row;\n align-items: center;\n padding-block: var(--pm-space-2);\n padding-inline: var(--pm-space-4) 0;\n overflow: visible;\n background: var(--pm-shell-topbar-bg);\n border-inline-end: 0;\n border-block-end: 1px solid var(--pm-shell-topbar-border);\n box-shadow: var(--pm-shadow-resting);\n }\n\n /* The head keeps the brand and gives up the toggle: the collapse narrows a\n rail, and a row has no rail to narrow. A head with no brand takes no room. */\n .shell[data-navigation='top'] .railHead {\n min-block-size: auto;\n }\n\n .shell[data-navigation='top'] .railHead:not(:has(.brand)),\n .shell[data-navigation='top'] .toggle {\n display: none;\n }\n\n .shell[data-navigation='top'] .brand {\n flex: none;\n }\n\n /* The items in a row. It is not a scroll container, because a scroll\n container clips the focus ring of an item at its edge. */\n .shell[data-navigation='top'] .nav {\n flex-flow: row wrap;\n align-items: center;\n overflow: visible;\n }\n\n /* An item is as wide as its glyph, label and count. A label wider than the\n whole row still ends in an ellipsis. */\n .shell[data-navigation='top'] .navItem {\n inline-size: auto;\n }\n\n /* The bar is on `bg.surface`, which is the rail's hover fill, so hover steps\n to `bg.subtle` here, as SectionNav's does on its page. */\n .shell[data-navigation='top'] .navItem:hover:not([data-current]) {\n background: var(--pm-bg-subtle);\n }\n\n /* A group's items join the row. The overline is removed, as in the collapsed\n rail, and a rule before the group draws the boundary. The group keeps\n `role=\"group\"` and its name. */\n .shell[data-navigation='top'] .navGroup {\n flex-flow: row wrap;\n align-items: center;\n padding-inline-start: var(--pm-space-2);\n border-inline-start: 1px solid var(--pm-border-subtle);\n }\n\n .shell[data-navigation='top'] .navGroupLabel {\n display: none;\n }\n\n /* A group that starts the row has nothing before it to divide from. It is\n the nav slot's first child, or the first child of an element a renderer\n wraps each part in that draws no box of its own, so a sibling combinator\n between two groups would not reach them. */\n .shell[data-navigation='top'] .nav > .navGroup:first-child,\n .shell[data-navigation='top'] .nav > :first-child > .navGroup {\n padding-inline-start: 0;\n border-inline-start: 0;\n }\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"app-shell.module.js","names":[],"sources":["../../../../recipes/src/archetypes/app-shell.module.css"],"sourcesContent":["/* AppShell — `design/archetypes/app-shell.md`.\n *\n * The `--pm-shell-*` scope is declared here and nowhere else. The values are\n * computed from space tokens, so a compact theme gets a tighter frame with no\n * extra declaration. Changing one of them is a one-line change that no screen\n * needs to know about (the churn test in `pages.test.tsx`).\n *\n * The sidebar collapse is the only animated structural change in the shell.\n * It uses the `appshell.sidebar` binding: `collapse` in persistent mode on the\n * inline axis. Law 2 lets a container animate only its size, and a grid track\n * counts as a container. */\n\n.shell {\n --pm-shell-topbar-height: calc(var(--pm-space-7) + var(--pm-space-6));\n --pm-shell-sidebar-width: calc(var(--pm-space-10) * 2 + var(--pm-space-7));\n --pm-shell-sidebar-width-collapsed: calc(var(--pm-space-7) + var(--pm-space-5));\n\n display: grid;\n grid-template:\n 'banner banner' auto\n 'sidebar topbar' minmax(var(--pm-shell-topbar-height), auto)\n 'sidebar content' minmax(0, 1fr)\n / var(--pm-shell-sidebar-width) minmax(0, 1fr);\n min-inline-size: 0;\n inline-size: 100%;\n\n /* On phones `100vh` includes the collapsed browser chrome, so a `100vh`\n shell puts its bottom edge behind the URL bar (`docs/layout.md`). The\n fallback pattern (app-shell.md's root cell) puts the `vh` base here and\n the `dvh` override in the `@supports` block below. A deduplicating\n minifier would merge two declarations of one property in the same rule,\n and the built CSS would ship with only `dvh`. */\n block-size: 100vh;\n\n /* The texture sits on the page surface it decorates. It is `none` for themes\n whose ornament level disables it, and the colour underneath is exactly\n `bg.app`. */\n background: var(--pm-texture-page) var(--pm-bg-app);\n transition: grid-template-columns var(--pm-motion-duration-surface)\n var(--pm-motion-easing-standard);\n}\n\n@supports (height: 1dvh) {\n .shell {\n block-size: 100dvh;\n }\n}\n\n/* Region surfaces are theme data. The rail is one step off the page, and the\n region borders use the theme's emphasis (a flat system draws them at\n `border.default`, a shadowed one keeps them subtle). So a dark rail on a\n light app is a value a theme sets, not a separate recipe. */\n.sidebar {\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n gap: var(--pm-space-2);\n min-inline-size: 0;\n min-block-size: 0;\n padding: var(--pm-space-4);\n overflow: hidden;\n background: var(--pm-shell-rail-bg);\n border-inline-end: 1px solid var(--pm-shell-rail-border);\n}\n\n/* The head row: brand and the collapse toggle, at the topbar's height so the\n rail's first row and the frame's first row share a baseline. */\n.railHead {\n display: flex;\n flex: none;\n gap: var(--pm-space-2);\n align-items: center;\n min-block-size: var(--pm-shell-topbar-height);\n}\n\n.brand {\n display: flex;\n flex: 1;\n align-items: center;\n min-inline-size: 0;\n padding-inline: var(--pm-space-3);\n}\n\n.nav {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--pm-space-2);\n min-block-size: 0;\n overflow-y: auto;\n}\n\n.sidebarFooter {\n flex: none;\n}\n\n/* NavItem — `app-shell.md`'s NavItem recipe, cell by cell.\n *\n * It is start-aligned, which is why it exists instead of a stretched ghost\n * Button. The glyph sits at the same x on every row, so the rail reads as a\n * column instead of a stack of centred pills.\n *\n * Colour transitions come from `stateFeedback`. There is no entrance motion,\n * because rails do not animate their nav. */\n.navItem {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback pressable from '../conventions/motion.module.css';\n position: relative;\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n justify-content: flex-start;\n inline-size: 100%;\n block-size: var(--pm-control-height-md);\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-secondary);\n text-align: start;\n\n /* The root swap (`href`) makes the row an <a>. The rail is navigation, not\n prose, so the user agent's link underline is removed. */\n text-decoration: none;\n cursor: pointer;\n user-select: none;\n background: transparent;\n border: 1px solid transparent;\n border-radius: var(--pm-radius-md);\n}\n\n.navGlyph {\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/* When the rail is narrow, the text truncates, never the glyph or the count. */\n.navLabel {\n flex: 1;\n min-inline-size: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.navEnd {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n\n/* NavGroup — `app-shell.md`'s NavGroup recipe, cell by cell.\n *\n * The label uses the system's only section-heading recipe (SettingsRow.Group's\n * overline, also used by Dashboard.Panel): `text.xs`, uppercase, muted. Many\n * sidebars use sentence case for group labels. This system styles every\n * section heading the same way, so the rail matches the settings screen. */\n.navGroup {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-2);\n}\n\n/* The top padding is the space between groups. It is on the label, not the\n group, because it is the space before a heading, and a group whose heading\n is hidden (collapsed) should not reserve it. */\n.navGroupLabel {\n padding: var(--pm-space-4) var(--pm-space-3) var(--pm-space-1);\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 rail's own padding is already above the first group. */\n.navGroup:first-child .navGroupLabel {\n padding-block-start: 0;\n}\n\n/* UserCard — the rail's foot.\n *\n * It is a row, not a control. The control is whatever is in `end`. Its height\n * is the avatar's plus the row's padding. It shares the left edge of every\n * NavItem above it, so it reads as the bottom of the same column. */\n.userCard {\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n min-inline-size: 0;\n padding: var(--pm-space-2) var(--pm-space-3);\n border-radius: var(--pm-radius-md);\n}\n\n/* The text truncates, as NavItem's label does, for the same reason: an\n ellipsis shows that text is hidden, and a clipped glyph is a rendering bug. */\n.userText {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-inline-size: 0;\n}\n\n.userName {\n overflow: hidden;\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 text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* One step smaller and one tone lighter. A composition cannot reach this,\n because `Text` stops at `sm` and its lowest tone is `secondary`. */\n.userDetail {\n overflow: hidden;\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-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.userEnd {\n display: inline-flex;\n flex: none;\n align-items: center;\n}\n\n/* The current item uses the selection treatment (`design/components/README.md`),\n not a persistent hover. The selection colours sit one step below the hover\n wash and have their own text colour, so the current location reads as\n chosen, not hovered. */\n.navItem[data-current] {\n color: var(--pm-selection-text);\n background: var(--pm-selection-bg);\n}\n\n.navItem[data-current] .navGlyph {\n color: var(--pm-selection-text);\n}\n\n/* Selection takes precedence over hover, as in Table's law, for the same\n reason: if hover restyled the current row, the current location would\n flicker with the pointer. The hover uses `bg.surface` because the rail\n itself is `bg.subtle`. */\n.navItem:hover:not([data-current]) {\n color: var(--pm-text-primary);\n background: var(--pm-bg-surface);\n}\n\n.navItem:hover:not([data-current]) .navGlyph {\n color: var(--pm-text-secondary);\n}\n\n/* The current item is the selection fill, so the focus mark lies inside the fill with a gap, in\n its text colour, the one the contrast law holds on that fill (`conventions/focus.module.css`). */\n.navItem[data-current]:focus-visible {\n --pm-focus-mark: currentcolor;\n --pm-focus-inset: var(--pm-focus-width);\n}\n\n.toggle {\n display: flex;\n flex: none;\n}\n\n/* The banner's row. It is `auto`, so a shell without a banner gives it no\n height. The rail and the content region start under it. */\n.banner {\n grid-area: banner;\n min-inline-size: 0;\n}\n\n.topbar {\n display: flex;\n flex-wrap: wrap;\n grid-area: topbar;\n gap: var(--pm-space-4);\n align-items: center;\n justify-content: space-between;\n min-inline-size: 0;\n padding-block: var(--pm-space-2);\n padding-inline: var(--pm-space-6);\n background: var(--pm-shell-topbar-bg);\n border-block-end: 1px solid var(--pm-shell-topbar-border);\n box-shadow: var(--pm-shadow-resting);\n}\n\n.topbarSlot {\n display: flex;\n flex-wrap: wrap;\n gap: var(--pm-space-3);\n align-items: center;\n min-inline-size: 0;\n}\n\n/* The content region, and the container the page inside it measures.\n *\n * This is the boundary `docs/layout.md` names for the page archetypes. It must\n * be an ancestor of the page, not the page itself, because a container query\n * is answered by the nearest ancestor container. A page cannot query its own\n * width. The shell already knows how much room is left after the rail (the\n * whole window once the rail becomes a drawer), so the region that provides\n * the width declares the container.\n *\n * It contains both axes, so a page reads the region's visible height as\n * `100cqb`: DetailPage's aside that stays in view is never taller than the\n * region. The region's height is its grid row's, never its content's, so\n * containing its block size changes nothing it draws.\n *\n * It is the only scroll container. The frame stays in place and the page\n * inside it scrolls. The texture also stays in place, because the default\n * background attachment pins it to the region's box, so the page scrolls over\n * a still surface.\n *\n * It is positioned, so it is the containing block of everything it scrolls. A\n * member that hides text from the eye positions it absolutely\n * (`conventions/a11y.module.css`), and an absolutely positioned box belongs to\n * its containing block, not to the scroll container it sits in. Without a\n * positioned region, such a box far down a long page would be laid out against\n * the document and make the document itself scroll, under the frame. */\n.content {\n position: relative;\n container-type: size;\n grid-area: content;\n min-inline-size: 0;\n min-block-size: 0;\n overflow-wrap: anywhere;\n overflow-y: auto;\n background: var(--pm-texture-page) var(--pm-bg-app);\n}\n\n/* The region and the page's heading take focus from script and the skip link\n only, so the reader is at the page after a skip or a page change\n (`arriveAtPage`). A ring around the whole region or a heading adds no\n information, because neither is a control. Each carries `tabindex` only\n while it holds that focus. This is the standard exception for a\n programmatically focused `tabindex=\"-1\"` target, as on Dialog's panel. */\n.content:focus-visible,\n.content h1[tabindex='-1']:focus-visible {\n outline: none;\n}\n\n/* The live region that says a new page's title. It is never drawn. */\n.announcer {\n composes: visuallyHidden from '../conventions/a11y.module.css';\n}\n\n.page {\n min-inline-size: 0;\n inline-size: 100%;\n max-inline-size: calc(var(--pm-space-10) * 16);\n padding: var(--pm-space-8);\n margin-inline: auto;\n}\n\n@container (width < 40rem) {\n .page {\n padding: var(--pm-space-6);\n }\n}\n\n/* The dock: a floating layer over the content region.\n *\n * It uses the same grid cell as the content instead of a row below it.\n * `align-self: end` makes it float instead of acting as a footer, so the page\n * keeps its full height and the layer sits over its bottom edge. Sharing the\n * cell also keeps it centred when the rail collapses. The cell widens, so the\n * dock re-centres with the page without knowing the rail's width.\n *\n * It is not inside `.content`, because an absolutely positioned child of a\n * scroll container scrolls with it, and a prompt that scrolls away is not a\n * dock.\n *\n * `raise` is the same intra-member lift the skip link uses: above the page,\n * below the frame's own chrome and below every overlay. */\n.dock {\n display: flex;\n grid-area: content;\n align-self: end;\n justify-content: center;\n padding: 0 var(--pm-space-6) var(--pm-space-5);\n pointer-events: none;\n z-index: var(--pm-z-raise);\n}\n\n/* The layer ignores the pointer, so the space around the floating control\n still belongs to the page. The dock's children re-enable it. */\n.dock > * {\n pointer-events: auto;\n}\n\n/* Off-screen until it receives keyboard focus, then clearly visible. `raise` on\n the stacking scale is an intra-member lift over the shell's content, not\n chrome and not an overlay. */\n.skip {\n composes: focusRing from '../conventions/focus.module.css';\n position: absolute;\n inset-block-start: var(--pm-space-3);\n inset-inline-start: var(--pm-space-3);\n z-index: var(--pm-z-raise);\n padding: var(--pm-space-2) 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-accent-text);\n background: var(--pm-bg-surface);\n border-radius: var(--pm-radius-md);\n transform: translateY(-200%);\n}\n\n.skip:focus-visible {\n transform: translateY(0);\n}\n\n/* collapsed ----------------------------------------------------------------- */\n\n@media (width >= 48rem) {\n .shell[data-collapsed] {\n grid-template-columns: var(--pm-shell-sidebar-width-collapsed) minmax(0, 1fr);\n }\n}\n\n/* The small viewport ----------------------------------------------------------\n *\n * Below the reading width, two columns on a phone leave only a rail and a\n * narrow gutter. So the rail leaves the grid and becomes a drawer over the\n * content, and the topbar gets a `menu` button to open it.\n *\n * `48rem` is a literal, not a token, because a breakpoint belongs to the\n * viewport, not the theme. Scaling it with density would change the layout\n * for a reader who only changed control density. It is the only number in\n * this file that is deliberately not derived. */\n\n@media (width < 48rem) {\n .shell {\n grid-template:\n 'banner' auto\n 'topbar' minmax(var(--pm-shell-topbar-height), auto)\n 'content' minmax(0, 1fr)\n / minmax(0, 1fr);\n }\n\n /* Off-canvas, and closed, not only out of view.\n *\n * `visibility: hidden` handles accessibility. A rail moved off-screen by a\n * transform keeps its tab order, so a keyboard user tabs into a nav they\n * cannot see and the focus ring goes off-screen. Hidden removes it from the\n * tab order and the accessibility tree together. That matches the state below\n * this breakpoint, where the navigation is behind a button.\n *\n * The transition list differs by direction on purpose. Closing transitions\n * `visibility`, which is discrete and changes at the end, so the rail stays\n * rendered while it slides away. Opening does not transition it, and this is\n * required. A transitioned property takes its new computed value only at the\n * style recalculation that starts the transition, which happens after the\n * effect that moves focus into the rail. Focusing a hidden element fails\n * silently, so the change must be immediate when opening. */\n .sidebar {\n position: fixed;\n inset-block: 0;\n inset-inline-start: 0;\n\n /* `shell` on the stacking scale. The drawer-mode rail is shell chrome,\n above the page and its lifts and below every portalled overlay\n (`--pm-z-overlay`). So a sheet's scrim covers the rail instead of the\n rail showing through it. */\n z-index: var(--pm-z-shell);\n inline-size: var(--pm-shell-sidebar-width);\n visibility: hidden;\n box-shadow: var(--pm-shadow-transient);\n transform: translateX(-100%);\n transition:\n transform var(--pm-motion-duration-surface) var(--pm-motion-easing-standard),\n visibility var(--pm-motion-duration-surface);\n }\n\n .shell[data-drawer] .sidebar {\n visibility: visible;\n transform: translateX(0);\n transition-property: transform;\n }\n\n /* Reduced motion (`docs/motion.md`). A slide normally becomes a fade, but a\n sheet held off-screen by a transform cannot fade in place: at opacity 0 it\n would already have to be in its final position. So it appears instantly.\n dialog.md gives the same rule for its scrim and panel. The drawer's scrim\n already complies as written, because its animation is opacity only.\n\n Both selectors are needed, because `.shell[data-drawer] .sidebar` has\n higher specificity than `.sidebar`. Overriding only the closed rule would\n leave the opening transition in place. */\n @media (prefers-reduced-motion: reduce) {\n .sidebar,\n .shell[data-drawer] .sidebar {\n transition: none;\n }\n }\n\n /* No collapse toggle below the breakpoint. Here the rail is a sheet over the\n page, not a column of the frame, and a strip of glyphs floating over the\n content is not a useful state. */\n .toggle {\n display: none;\n }\n\n /* The scrim exists only while the drawer is open. A fixed transparent layer\n over a page with no drawer would capture every click.\n\n It uses `raise`, not `shell`, because of DOM order. The scrim renders after\n the sidebar, so at the same level it would paint over the rail it should\n sit under. One step lower keeps the order page, scrim, rail without\n changing the DOM. */\n .scrim {\n position: fixed;\n inset: 0;\n z-index: var(--pm-z-raise);\n background: var(--pm-bg-scrim);\n border: 0;\n animation: shell-scrim-enter var(--pm-motion-duration-surface) var(--pm-motion-easing-enter);\n }\n\n @keyframes shell-scrim-enter {\n from {\n opacity: 0;\n }\n }\n}\n\n/* At frame widths, the drawer's button and scrim are not used. */\n@media (width >= 48rem) {\n .drawerToggle,\n .scrim {\n display: none;\n }\n}\n\n/* When collapsed, the rail keeps a padding and the item drops its own, so the\n glyph centres in the remaining width instead of in a box offset by the\n sidebar's inset. */\n@media (width >= 48rem) {\n .shell[data-collapsed] .sidebar {\n padding-inline: var(--pm-space-2);\n }\n\n /* The head stacks when the rail narrows. A mark and a control do not fit side\n by side in 48px, and dropping either would lose the brand or the way to\n expand the rail. */\n .shell[data-collapsed] .railHead {\n flex-direction: column;\n min-block-size: auto;\n }\n\n .shell[data-collapsed] .brand {\n flex: none;\n justify-content: center;\n padding-inline: 0;\n }\n\n /* NavItem collapsed: no API, keyed off the shell.\n *\n * The item adapts to the narrow rail because the shell composed it. Everything\n * else in the rail is content the shell did not compose, and there\n * `overflow: hidden` clips what no longer fits instead of squashing it.\n * Adapting that content is the application's job. That division keeps this a\n * rail: the shell owns one item, not the whole nav. */\n .shell[data-collapsed] .navItem {\n gap: 0;\n justify-content: center;\n padding-inline: 0;\n }\n\n /* Visually hidden but still read aloud. The label is the accessible name in\n every mode, so it is clipped, not unmounted or `display: none`. UserCard's\n two lines are clipped too, because they are the card's accessible content,\n and clipping keeps a collapsed rail's foot available to screen readers. */\n .shell[data-collapsed] .navLabel,\n .shell[data-collapsed] .navEnd,\n .shell[data-collapsed] .userText {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n padding: 0;\n overflow: hidden;\n white-space: nowrap;\n border: 0;\n clip-path: inset(50%);\n }\n\n /* Removed, not clipped, for a different reason in each case.\n *\n * A group's title is a heading for a boundary that is no longer drawn. The\n * spec requires removing it, because clipping it would announce a section\n * nobody can see.\n *\n * UserCard's `end` is interactive. A menu trigger clipped to one pixel is a tab\n * stop nobody can find, with its focus ring off-screen. The drawer's\n * `visibility: hidden` follows the same reasoning. So `end` leaves the tab\n * order along with its space. */\n .shell[data-collapsed] .navGroupLabel,\n .shell[data-collapsed] .userEnd {\n display: none;\n }\n\n /* The avatar centres in the remaining width, in the same way as the nav glyph. */\n .shell[data-collapsed] .userCard {\n gap: 0;\n justify-content: center;\n padding-inline: 0;\n }\n}\n\n/* The navigation on top --------------------------------------------------------\n *\n * `navigation: 'top'` lays the rail along the frame's top row: the brand, then\n * the items in a row, and the topbar continues the row with its own slots. It\n * is the same `<nav>` in the same place in the document, before the topbar, so\n * the order a keyboard reaches the row in is the order it is drawn in. Every\n * rule is inside the frame-width query, so below the breakpoint the rail is\n * the drawer it is in the rail layout.\n *\n * The nav's column is as wide as its row needs, and the topbar keeps at least\n * the width its own content needs. When the row is wider than the frame, the\n * items wrap onto a further line, as SectionNav's do, so every destination\n * stays on screen and the frame never scrolls sideways. */\n@media (width >= 48rem) {\n .shell[data-navigation='top'] {\n grid-template:\n 'banner banner' auto\n 'sidebar topbar' minmax(var(--pm-shell-topbar-height), auto)\n 'content content' minmax(0, 1fr)\n / auto minmax(min-content, 1fr);\n }\n\n /* The topbar's surface and lower edge, so the nav and the topbar read as one\n bar. `overflow` is visible because the row ends at the last item, and a\n clipped box would cut that item's focus mark where a system draws the mark\n outside the edge. */\n .shell[data-navigation='top'] .sidebar {\n flex-direction: row;\n align-items: center;\n padding-block: var(--pm-space-2);\n padding-inline: var(--pm-space-4) 0;\n overflow: visible;\n background: var(--pm-shell-topbar-bg);\n border-inline-end: 0;\n border-block-end: 1px solid var(--pm-shell-topbar-border);\n box-shadow: var(--pm-shadow-resting);\n }\n\n /* The head keeps the brand and gives up the toggle: the collapse narrows a\n rail, and a row has no rail to narrow. A head with no brand takes no room. */\n .shell[data-navigation='top'] .railHead {\n min-block-size: auto;\n }\n\n .shell[data-navigation='top'] .railHead:not(:has(.brand)),\n .shell[data-navigation='top'] .toggle {\n display: none;\n }\n\n .shell[data-navigation='top'] .brand {\n flex: none;\n }\n\n /* The items in a row. It is not a scroll container, because a scroll\n container clips an item's focus mark at its edge where a system draws the\n mark outside the item. */\n .shell[data-navigation='top'] .nav {\n flex-flow: row wrap;\n align-items: center;\n overflow: visible;\n }\n\n /* An item is as wide as its glyph, label and count. A label wider than the\n whole row still ends in an ellipsis. */\n .shell[data-navigation='top'] .navItem {\n inline-size: auto;\n }\n\n /* The bar is on `bg.surface`, which is the rail's hover fill, so hover steps\n to `bg.subtle` here, as SectionNav's does on its page. */\n .shell[data-navigation='top'] .navItem:hover:not([data-current]) {\n background: var(--pm-bg-subtle);\n }\n\n /* A group's items join the row. The overline is removed, as in the collapsed\n rail, and a rule before the group draws the boundary. The group keeps\n `role=\"group\"` and its name. */\n .shell[data-navigation='top'] .navGroup {\n flex-flow: row wrap;\n align-items: center;\n padding-inline-start: var(--pm-space-2);\n border-inline-start: 1px solid var(--pm-border-subtle);\n }\n\n .shell[data-navigation='top'] .navGroupLabel {\n display: none;\n }\n\n /* A group that starts the row has nothing before it to divide from. It is\n the nav slot's first child, or the first child of an element a renderer\n wraps each part in that draws no box of its own, so a sibling combinator\n between two groups would not reach them. */\n .shell[data-navigation='top'] .nav > .navGroup:first-child,\n .shell[data-navigation='top'] .nav > :first-child > .navGroup {\n padding-inline-start: 0;\n border-inline-start: 0;\n }\n}\n"],"mappings":""}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
//#region ../recipes/src/archetypes/form-page.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_page_17y3l_7", t = "_form_17y3l_39", n = "_actions_17y3l_48", r = "_split_17y3l_57", i = "_trailing_17y3l_64", a = {
|
|
3
3
|
page: e,
|
|
4
4
|
form: t,
|
|
5
|
-
actions: n
|
|
5
|
+
actions: n,
|
|
6
|
+
split: r,
|
|
7
|
+
trailing: i
|
|
6
8
|
};
|
|
7
9
|
//#endregion
|
|
8
|
-
export { n as actions,
|
|
10
|
+
export { n as actions, a as default, t as form, e as page, r as split, i as trailing };
|
|
9
11
|
|
|
10
12
|
//# sourceMappingURL=form-page.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-page.module.js","names":[],"sources":["../../../../recipes/src/archetypes/form-page.module.css"],"sourcesContent":["/* FormPage — `design/archetypes/form-page.md`.\n *\n * The narrowest page in the set. A form is a reading column. In a field wider\n * than the reading measure, the eye loses the left edge when returning from the\n * right, which makes long forms tiring. */\n\n.page {\n --pm-page-padding-x: var(--pm-space-7);\n --pm-page-padding-y: var(--pm-space-6);\n --pm-page-max-width: calc(var(--pm-space-10) * 7);\n --pm-content-gutter: var(--pm-space-6);\n\n container-type: inline-size;\n display: flex;\n flex-direction: column;\n row-gap: var(--pm-content-gutter);\n max-inline-size: var(--pm-page-max-width);\n margin-inline: auto;\n padding: var(--pm-page-padding-y) var(--pm-page-padding-x);\n}\n\n/* The page scope's narrow step, explained in `list-page.module.css`. The page\n is the container its own contents measure, and the surrounding region is the\n container this query reads. `40rem` is a rem literal because a breakpoint is\n geometry, not theme (`docs/layout.md`). One space step smaller.\n *\n * This matters most here. A form is already the narrowest page, and a field\n * cannot adapt to less width by rewrapping, so all width the padding gives up\n * goes to the inputs. */\n@container (width < 40rem) {\n .page {\n --pm-page-padding-x: var(--pm-space-6);\n --pm-page-padding-y: var(--pm-space-5);\n }\n}\n\n/* The form uses the same spacing as the page, so wrapping the body in a form\n changes only what Enter does, not how it looks. */\n.form {\n display: flex;\n flex-direction: column;\n row-gap: var(--pm-content-gutter);\n}\n\n/* A rule anchors the submit row, so it reads as the column's footer, not as\n loose buttons below it. The space above the rule is the page's own gutter,\n so the rule adds no margin of its own. */\n.actions {\n padding-block-start: var(--pm-space-5);\n border-block-start: 1px solid var(--pm-border-subtle);\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"form-page.module.js","names":[],"sources":["../../../../recipes/src/archetypes/form-page.module.css"],"sourcesContent":["/* FormPage — `design/archetypes/form-page.md`.\n *\n * The narrowest page in the set. A form is a reading column. In a field wider\n * than the reading measure, the eye loses the left edge when returning from the\n * right, which makes long forms tiring. */\n\n.page {\n --pm-page-padding-x: var(--pm-space-7);\n --pm-page-padding-y: var(--pm-space-6);\n --pm-page-max-width: calc(var(--pm-space-10) * 7);\n --pm-content-gutter: var(--pm-space-6);\n\n container-type: inline-size;\n display: flex;\n flex-direction: column;\n row-gap: var(--pm-content-gutter);\n max-inline-size: var(--pm-page-max-width);\n margin-inline: auto;\n padding: var(--pm-page-padding-y) var(--pm-page-padding-x);\n}\n\n/* The page scope's narrow step, explained in `list-page.module.css`. The page\n is the container its own contents measure, and the surrounding region is the\n container this query reads. `40rem` is a rem literal because a breakpoint is\n geometry, not theme (`docs/layout.md`). One space step smaller.\n *\n * This matters most here. A form is already the narrowest page, and a field\n * cannot adapt to less width by rewrapping, so all width the padding gives up\n * goes to the inputs. */\n@container (width < 40rem) {\n .page {\n --pm-page-padding-x: var(--pm-space-6);\n --pm-page-padding-y: var(--pm-space-5);\n }\n}\n\n/* The form uses the same spacing as the page, so wrapping the body in a form\n changes only what Enter does, not how it looks. */\n.form {\n display: flex;\n flex-direction: column;\n row-gap: var(--pm-content-gutter);\n}\n\n/* A rule anchors the submit row, so it reads as the column's footer, not as\n loose buttons below it. The space above the rule is the page's own gutter,\n so the rule adds no margin of its own. */\n.actions {\n padding-block-start: var(--pm-space-5);\n border-block-start: 1px solid var(--pm-border-subtle);\n}\n\n/* With a leading action the row holds two groups: that action at its start,\n and the actions at its end. It wraps as the actions do, at the row's gap.\n The actions' auto margin keeps them at the end of whichever line they land\n on, and a logical margin is the start's opposite in either direction. */\n.split {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--pm-space-3);\n}\n\n.trailing {\n margin-inline-start: auto;\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/archetypes/master-detail-page.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_page_99um1_10", t = "_body_99um1_39", n = "_list_99um1_52", r = "_detail_99um1_77", i = "_back_99um1_93", a = "_scroll_99um1_98", o = "_empty_99um1_138", s = "_harness_99um1_149", c = "_phone_99um1_154", l = {
|
|
3
3
|
page: e,
|
|
4
4
|
body: t,
|
|
5
5
|
list: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-detail-page.module.js","names":[],"sources":["../../../../recipes/src/archetypes/master-detail-page.module.css"],"sourcesContent":["/* MasterDetailPage — `design/archetypes/master-detail-page.md`.\n *\n * A page that fills its region, as ConversationPage does. The list and the\n * detail each scroll on their own, so the page is a column of fixed height\n * (the content region's): the header at the top and the panes filling the\n * rest. The `--pm-page-*` scope is declared here, as on every page root, with\n * ConversationPage's values, because both pages set two reading columns side\n * by side under a header that spans the page's whole height. */\n\n.page {\n --pm-page-padding-x: var(--pm-space-7);\n --pm-page-padding-y: var(--pm-space-6);\n --pm-page-max-width: calc(var(--pm-space-10) * 15);\n --pm-content-gutter: var(--pm-space-5);\n\n container-type: inline-size;\n display: flex;\n flex-direction: column;\n row-gap: var(--pm-content-gutter);\n inline-size: 100%;\n max-inline-size: var(--pm-page-max-width);\n block-size: 100%;\n min-block-size: 0;\n margin-inline: auto;\n padding: var(--pm-page-padding-y) var(--pm-page-padding-x);\n}\n\n/* The page scope's narrow step, explained in `list-page.module.css`: one space\n step smaller on both axes, at the `40rem` breakpoint every page shares. */\n@container (width < 40rem) {\n .page {\n --pm-page-padding-x: var(--pm-space-6);\n --pm-page-padding-y: var(--pm-space-5);\n }\n}\n\n/* What is left after the header: the split, or the one pane. */\n.body {\n display: flex;\n flex: 1;\n min-block-size: 0;\n}\n\n.body > * {\n flex: 1;\n min-inline-size: 0;\n}\n\n/* The list pane scrolls itself. Its edge is the end of the list, so a scroll\n that reaches it does not carry on into the page. */\n.list {\n block-size: 100%;\n min-block-size: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n\n/* The list is hidden, not removed, while the detail is drawn alone. A class\n that sets `display` would otherwise outrank the browser's own rule for\n `hidden`. */\n.list[hidden] {\n display: none;\n}\n\n/* The pane takes focus from a script only, when nothing in it does. The
|
|
1
|
+
{"version":3,"file":"master-detail-page.module.js","names":[],"sources":["../../../../recipes/src/archetypes/master-detail-page.module.css"],"sourcesContent":["/* MasterDetailPage — `design/archetypes/master-detail-page.md`.\n *\n * A page that fills its region, as ConversationPage does. The list and the\n * detail each scroll on their own, so the page is a column of fixed height\n * (the content region's): the header at the top and the panes filling the\n * rest. The `--pm-page-*` scope is declared here, as on every page root, with\n * ConversationPage's values, because both pages set two reading columns side\n * by side under a header that spans the page's whole height. */\n\n.page {\n --pm-page-padding-x: var(--pm-space-7);\n --pm-page-padding-y: var(--pm-space-6);\n --pm-page-max-width: calc(var(--pm-space-10) * 15);\n --pm-content-gutter: var(--pm-space-5);\n --pm-master-detail-reach: var(--pm-space-2);\n\n container-type: inline-size;\n display: flex;\n flex-direction: column;\n row-gap: var(--pm-content-gutter);\n inline-size: 100%;\n max-inline-size: var(--pm-page-max-width);\n block-size: 100%;\n min-block-size: 0;\n margin-inline: auto;\n padding: var(--pm-page-padding-y) var(--pm-page-padding-x);\n}\n\n/* The page scope's narrow step, explained in `list-page.module.css`: one space\n step smaller on both axes, at the `40rem` breakpoint every page shares. */\n@container (width < 40rem) {\n .page {\n --pm-page-padding-x: var(--pm-space-6);\n --pm-page-padding-y: var(--pm-space-5);\n }\n}\n\n/* What is left after the header: the split, or the one pane. */\n.body {\n display: flex;\n flex: 1;\n min-block-size: 0;\n}\n\n.body > * {\n flex: 1;\n min-inline-size: 0;\n}\n\n/* The list pane scrolls itself. Its edge is the end of the list, so a scroll\n that reaches it does not carry on into the page. */\n.list {\n block-size: 100%;\n min-block-size: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n\n/* The list is hidden, not removed, while the detail is drawn alone. A class\n that sets `display` would otherwise outrank the browser's own rule for\n `hidden`. */\n.list[hidden] {\n display: none;\n}\n\n/* The pane takes focus from a script only, when nothing in it does. The mark\n is the shared convention's, drawn inside the pane's edge by its width at\n every system's offset, because the split's pane clips what is drawn outside\n it. */\n.list:focus-visible {\n outline: var(--pm-focus-width) solid var(--pm-border-focus-solid);\n outline-offset: calc(var(--pm-focus-width) * -1);\n}\n\n/* The detail pane: the way back, when the detail is drawn alone, over the\n detail, which scrolls under it. */\n.detail {\n display: flex;\n flex-direction: column;\n block-size: 100%;\n min-block-size: 0;\n}\n\n/* In the split the detail starts a gutter off the seam, so its heading does\n not sit on the separator's line. The list's rows run to the seam, because\n their fill marks the current item against it. */\n.page[data-layout='split'] .detail {\n padding-inline-start: var(--pm-content-gutter);\n}\n\n/* The way back stays in view while the detail scrolls, because on a phone it\n is the only way to the list. */\n.back {\n flex: none;\n padding-block-end: var(--pm-space-3);\n}\n\n.scroll {\n flex: 1;\n min-block-size: 0;\n overflow-y: auto;\n overscroll-behavior: contain;\n}\n\n/* Room for what the panes' content draws outside itself. The list and the\n detail's scroll clip what they hold at their padding edge: a field's or a\n Button's seat shadow against their side, and a control's focus mark, drawn a\n `space-1` gap outside it. Each is larger than its content by `space-2` where\n the page owns the space past it, and its margins take that back, so nothing\n moves. With one pane that is every side, inside the page's padding and the\n way back's. In the split it is the list's side at the seam, where SplitPane's\n pane has the same room, and the detail's start side, inside its gutter. The\n split's outer sides are its panes' edges, which have no room\n (`split-pane.module.css`). The reach is declared on the page. */\n.page[data-layout='single'] .list {\n block-size: calc(100% + var(--pm-master-detail-reach) * 2);\n margin: calc(var(--pm-master-detail-reach) * -1);\n padding: var(--pm-master-detail-reach);\n}\n\n.page[data-layout='single'] .scroll {\n margin: calc(var(--pm-master-detail-reach) * -1);\n padding: var(--pm-master-detail-reach);\n}\n\n.page[data-layout='split'] .list {\n margin-inline-end: calc(var(--pm-master-detail-reach) * -1);\n padding-inline-end: var(--pm-master-detail-reach);\n}\n\n.page[data-layout='split'] .scroll {\n margin-inline-start: calc(var(--pm-master-detail-reach) * -1);\n padding-inline-start: var(--pm-master-detail-reach);\n}\n\n/* The empty form in the split: EmptyState centred in the pane, in the place\n the detail takes, as ListPage centres its empty state in the table's. */\n.empty {\n display: grid;\n flex: 1;\n place-items: center;\n min-block-size: 0;\n overflow-y: auto;\n}\n\n/* Fixture harnesses from the spec: fixed-height boxes for the page to fill,\n in place of the shell's content region. The second is a phone's width, so\n the completeness law renders the one-pane arrangement. */\n.harness {\n inline-size: 100%;\n block-size: calc(var(--pm-space-10) * 6);\n}\n\n.phone {\n inline-size: calc(var(--pm-space-10) * 4);\n max-inline-size: 100%;\n block-size: calc(var(--pm-space-10) * 6);\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/area-chart.module.css
|
|
2
|
-
var e = "_surface_1xwsl_9 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_1xwsl_9 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_legend_1xwsl_17 _legend_xgdim_8", n = "_marks_1xwsl_21", r = "_grid_1xwsl_27", i = "_band_1xwsl_39", a = "_edge_1xwsl_49", o = "_crosshair_1xwsl_64", s = "_bands_1xwsl_89", c = {
|
|
3
3
|
surface: e,
|
|
4
4
|
legend: t,
|
|
5
5
|
marks: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/bar-chart.module.css
|
|
2
|
-
var e = "_surface_1pbc7_9 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_1pbc7_9 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_legend_1pbc7_17 _legend_xgdim_8", n = "_marks_1pbc7_21", r = "_grid_1pbc7_35", i = "_bar_1pbc7_41", a = "_zero_1pbc7_51", o = "_line_1pbc7_65", s = "_point_1pbc7_73", c = "_lines_1pbc7_85", l = "_hit_1pbc7_98", u = "_bands_1pbc7_105", d = {
|
|
3
3
|
surface: e,
|
|
4
4
|
legend: t,
|
|
5
5
|
marks: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/donut-chart.module.css
|
|
2
|
-
var e = "_surface_hq4p2_11 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_hq4p2_11 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_marks_hq4p2_15", n = "_segment_hq4p2_24", r = "_hit_hq4p2_77", i = "_center_hq4p2_83", a = "_centerLabel_hq4p2_95", o = {
|
|
3
3
|
surface: e,
|
|
4
4
|
marks: t,
|
|
5
5
|
segment: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/frame/chart-frame.module.css
|
|
2
|
-
var e = "_frame_1loa5_8", t = "_region_1loa5_44", n = "_yAxis_1loa5_60", r = "_plot_1loa5_66", i = "_xAxis_1loa5_78", a = "_plotSurface_1loa5_97
|
|
2
|
+
var e = "_frame_1loa5_8", t = "_region_1loa5_44", n = "_yAxis_1loa5_60", r = "_plot_1loa5_66", i = "_xAxis_1loa5_78", a = "_plotSurface_1loa5_97 _focusRing_1hr3n_49", o = "_empty_1loa5_112", s = {
|
|
3
3
|
frame: e,
|
|
4
4
|
"chart-frame-enter": "_chart-frame-enter_1loa5_1",
|
|
5
5
|
region: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/frame/chart-legend.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_legend_xgdim_8", t = "_item_xgdim_17", n = "_swatch_xgdim_38", r = "_glyph_xgdim_63", i = "_label_xgdim_69", a = "_key_xgdim_80 _focusAround_1hr3n_95", o = {
|
|
3
3
|
legend: e,
|
|
4
4
|
item: t,
|
|
5
5
|
swatch: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-legend.module.js","names":[],"sources":["../../../../../recipes/src/charts/frame/chart-legend.module.css"],"sourcesContent":["/* ChartLegend — `docs/charts.md`.\n *\n * `--pm-chart-key` is not a scoped token in the owner map's sense. The\n * component sets it on the element from a *token reference* the theme produced\n * (`var(--pm-chart-3)`). The value is always another custom property, never a\n * colour, so a palette change repaints the legend automatically. */\n\n.legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--pm-space-3) var(--pm-space-5);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.item {\n display: flex;\n align-items: center;\n gap: var(--pm-space-2);\n\n /* Legend text uses text tokens, never a series colour. The coloured mark\n beside it identifies the series. A coloured label would repeat that signal\n more weakly and could fail a contrast minimum. */\n color: var(--pm-text-secondary);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n line-height: var(--pm-text-sm-line-height);\n}\n\n/* The key matches the mark: a filled form gets a rect, a stroked one a line.\n *\n * `--pm-chart-key` is declared here with the de-emphasis grey and overridden\n * inline by the component with the series' paint. `no-ghost-tokens` requires\n * the declaration, and the default matters: an unresolvable custom property\n * invalidates its whole declaration, so a key with no paint would be an\n * invisible swatch instead of a grey one. */\n.swatch {\n flex: none;\n\n --pm-chart-key: var(--pm-chart-other);\n\n background: var(--pm-chart-key);\n border-radius: var(--pm-radius-sm);\n inline-size: var(--pm-space-3);\n block-size: var(--pm-space-3);\n}\n\n.legend[data-key-shape='line'] .swatch {\n inline-size: var(--pm-space-4);\n block-size: 2px;\n border-radius: var(--pm-radius-pill);\n}\n\n/* A series drawn as a line in a plot of fills (`BarChart`'s `lines`) marks its\n own item, so its key is a line beside the bars' rects. */\n.item[data-key-shape='line'] .swatch {\n inline-size: var(--pm-space-4);\n block-size: 2px;\n border-radius: var(--pm-radius-pill);\n}\n\n.glyph {\n flex: none;\n display: inline-flex;\n color: var(--pm-text-muted);\n}\n\n.label {\n min-inline-size: 0;\n}\n\n/* Toggle-to-isolate (the interaction rules, `docs/charts.md`): the key as a\n * real button.\n *\n * The reset keeps the item's gap, colour and type, because a key looks the\n * same when it becomes pressable; only its behaviour changes. The focus ring\n * comes from the focus convention (`design/components/README.md`), composed as\n * on every focusable surface. */\n.key {\n composes:
|
|
1
|
+
{"version":3,"file":"chart-legend.module.js","names":[],"sources":["../../../../../recipes/src/charts/frame/chart-legend.module.css"],"sourcesContent":["/* ChartLegend — `docs/charts.md`.\n *\n * `--pm-chart-key` is not a scoped token in the owner map's sense. The\n * component sets it on the element from a *token reference* the theme produced\n * (`var(--pm-chart-3)`). The value is always another custom property, never a\n * colour, so a palette change repaints the legend automatically. */\n\n.legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--pm-space-3) var(--pm-space-5);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.item {\n display: flex;\n align-items: center;\n gap: var(--pm-space-2);\n\n /* Legend text uses text tokens, never a series colour. The coloured mark\n beside it identifies the series. A coloured label would repeat that signal\n more weakly and could fail a contrast minimum. */\n color: var(--pm-text-secondary);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n line-height: var(--pm-text-sm-line-height);\n}\n\n/* The key matches the mark: a filled form gets a rect, a stroked one a line.\n *\n * `--pm-chart-key` is declared here with the de-emphasis grey and overridden\n * inline by the component with the series' paint. `no-ghost-tokens` requires\n * the declaration, and the default matters: an unresolvable custom property\n * invalidates its whole declaration, so a key with no paint would be an\n * invisible swatch instead of a grey one. */\n.swatch {\n flex: none;\n\n --pm-chart-key: var(--pm-chart-other);\n\n background: var(--pm-chart-key);\n border-radius: var(--pm-radius-sm);\n inline-size: var(--pm-space-3);\n block-size: var(--pm-space-3);\n}\n\n.legend[data-key-shape='line'] .swatch {\n inline-size: var(--pm-space-4);\n block-size: 2px;\n border-radius: var(--pm-radius-pill);\n}\n\n/* A series drawn as a line in a plot of fills (`BarChart`'s `lines`) marks its\n own item, so its key is a line beside the bars' rects. */\n.item[data-key-shape='line'] .swatch {\n inline-size: var(--pm-space-4);\n block-size: 2px;\n border-radius: var(--pm-radius-pill);\n}\n\n.glyph {\n flex: none;\n display: inline-flex;\n color: var(--pm-text-muted);\n}\n\n.label {\n min-inline-size: 0;\n}\n\n/* Toggle-to-isolate (the interaction rules, `docs/charts.md`): the key as a\n * real button.\n *\n * The reset keeps the item's gap, colour and type, because a key looks the\n * same when it becomes pressable; only its behaviour changes. The focus ring\n * comes from the focus convention (`design/components/README.md`), composed as\n * on every focusable surface. */\n.key {\n composes: focusAround from '../../conventions/focus.module.css';\n display: flex;\n align-items: center;\n gap: var(--pm-space-2);\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n/* The hidden key, defined once for every member with a legend. The swatch\n * becomes a 1px inset ring in the de-emphasis grey with a transparent fill, and\n * the label becomes muted. The state is shown by shape, not colour alone, and a\n * hollow ring cannot be mistaken for a shown series. */\n.key[aria-pressed='false'] .swatch {\n background: transparent;\n box-shadow: inset 0 0 0 1px var(--pm-chart-other);\n}\n\n.key[aria-pressed='false'] .label {\n color: var(--pm-text-muted);\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/funnel-chart.module.css
|
|
2
|
-
var e = "_surface_8x0iu_12 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_8x0iu_12 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_marks_8x0iu_16", n = "_bar_8x0iu_33", r = "_hit_8x0iu_41", i = "_bars_8x0iu_47", a = "_text_8x0iu_86", o = "_label_8x0iu_92", s = "_value_8x0iu_93", c = "_step_8x0iu_94", l = {
|
|
3
3
|
surface: e,
|
|
4
4
|
marks: t,
|
|
5
5
|
bar: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/heatmap.module.css
|
|
2
|
-
var e = "_surface_5iajd_12 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_5iajd_12 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_marks_5iajd_16", n = "_cell_5iajd_22", r = "_hit_5iajd_33", i = {
|
|
3
3
|
surface: e,
|
|
4
4
|
marks: t,
|
|
5
5
|
cell: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/histogram.module.css
|
|
2
|
-
var e = "_surface_1wjww_11 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_1wjww_11 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_marks_1wjww_15", n = "_grid_1wjww_26", r = "_bar_1wjww_32", i = "_zero_1wjww_41", a = "_hit_1wjww_49", o = "_bins_1wjww_56", s = {
|
|
3
3
|
surface: e,
|
|
4
4
|
marks: t,
|
|
5
5
|
grid: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/line-chart.module.css
|
|
2
|
-
var e = "_surface_wfxgb_10 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_wfxgb_10 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_legend_wfxgb_18 _legend_xgdim_8", n = "_marks_wfxgb_22", r = "_grid_wfxgb_31", i = "_zero_wfxgb_38", a = "_line_wfxgb_50", o = "_wash_wfxgb_60", s = "_marker_wfxgb_68", c = "_crosshair_wfxgb_78", l = "_endLabel_wfxgb_85", u = "_strokes_wfxgb_102", d = {
|
|
3
3
|
surface: e,
|
|
4
4
|
legend: t,
|
|
5
5
|
marks: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/radar-chart.module.css
|
|
2
|
-
var e = "_surface_yrdzd_9 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_yrdzd_9 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_legend_yrdzd_17 _legend_xgdim_8", n = "_marks_yrdzd_21", r = "_grid_yrdzd_34", i = "_stroke_yrdzd_41", a = "_wash_yrdzd_50", o = "_vertex_yrdzd_59", s = "_labels_yrdzd_71", c = "_profiles_yrdzd_79", l = {
|
|
3
3
|
surface: e,
|
|
4
4
|
legend: t,
|
|
5
5
|
marks: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/scatter-chart.module.css
|
|
2
|
-
var e = "_surface_cvgf4_9 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_cvgf4_9 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_legend_cvgf4_17 _legend_xgdim_8", n = "_marks_cvgf4_21", r = "_grid_cvgf4_33", i = "_zero_cvgf4_41", a = "_dot_cvgf4_55", o = "_points_cvgf4_70", s = {
|
|
3
3
|
surface: e,
|
|
4
4
|
legend: t,
|
|
5
5
|
marks: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/charts/treemap.module.css
|
|
2
|
-
var e = "_surface_os5pm_12 _plotSurface_1loa5_97
|
|
2
|
+
var e = "_surface_os5pm_12 _plotSurface_1loa5_97 _focusRing_1hr3n_49", t = "_marks_os5pm_16", n = "_tile_os5pm_31", r = "_hit_os5pm_71", i = "_text_os5pm_77", a = "_plate_os5pm_87", o = "_plateLabel_os5pm_108", s = "_plateValue_os5pm_109", c = {
|
|
3
3
|
surface: e,
|
|
4
4
|
marks: t,
|
|
5
5
|
tile: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarButton.js","names":[],"sources":["../../../src/controls/AvatarButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A Button preset whose face is an Avatar (`design/components/avatar-button.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/avatar-button.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, useTemplateRef } from 'vue'\n\nimport { Icon, agentMember, agentPress } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/controls/avatar-button.module.css'\nimport Avatar from '../structure/Avatar.vue'\n\nexport interface AvatarButtonProps {\n /**\n * Marks the button as the current location with `aria-current=\"page\"`, as Button's `current`\n * does.\n */\n current?: boolean\n disabled?: boolean\n /**\n * The accessible name of the action, such as \"Account menu\". It is required and it is not the\n * person's name: a face says who, and a button says what a press does.\n */\n label: string\n /**\n * The action has started and not finished. Keeps focus and name, hides the face behind the\n * spinner, and ignores presses.\n */\n loading?: boolean\n /**\n * Avatar's `name`: the initials, and the `user` glyph when it is empty. Never the accessible\n * name.\n */\n name: string\n /**\n * Makes the button a toggle, as Button's `pressed` does: `aria-pressed` mirrors it and\n * `data-state=\"on|off\"` exposes it to CSS. Omitted, the button is not a toggle.\n */\n pressed?: boolean\n /**\n * The face's size, which is Avatar's. The box around it is never smaller than the size's\n * control height.\n */\n size?: 'sm' | 'md' | 'lg'\n /**\n * Avatar's `src`: the image. A URL that fails to load leaves the initials.\n */\n src?: string\n}\n\ndefineOptions({ name: 'AvatarButton', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AvatarButtonProps>(), {\n current: false,\n disabled: false,\n loading: false,\n pressed: undefined,\n size: 'md',\n})\nconst emit = defineEmits<{ click: [event: MouseEvent] }>()\nconst control = useTemplateRef<HTMLElement>('control')\nconst dataState = computed(() =>\n props.loading\n ? 'loading'\n : props.pressed === undefined\n ? undefined\n : props.pressed\n ? 'on'\n : 'off',\n)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = agentMember({\n member: 'AvatarButton',\n element: () => control.value,\n state: () => ({ disabled: props.disabled, loading: props.loading }),\n actions: { press: () => agentPress(control.value) },\n })\n
|
|
1
|
+
{"version":3,"file":"AvatarButton.js","names":[],"sources":["../../../src/controls/AvatarButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A Button preset whose face is an Avatar (`design/components/avatar-button.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/avatar-button.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, useTemplateRef, watch } from 'vue'\n\nimport { Icon, agentMember, agentPress, nameTip } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/controls/avatar-button.module.css'\nimport Avatar from '../structure/Avatar.vue'\n\nexport interface AvatarButtonProps {\n /**\n * Marks the button as the current location with `aria-current=\"page\"`, as Button's `current`\n * does.\n */\n current?: boolean\n disabled?: boolean\n /**\n * The accessible name of the action, such as \"Account menu\". It is required and it is not the\n * person's name: a face says who, and a button says what a press does.\n */\n label: string\n /**\n * The action has started and not finished. Keeps focus and name, hides the face behind the\n * spinner, and ignores presses.\n */\n loading?: boolean\n /**\n * Avatar's `name`: the initials, and the `user` glyph when it is empty. Never the accessible\n * name.\n */\n name: string\n /**\n * Makes the button a toggle, as Button's `pressed` does: `aria-pressed` mirrors it and\n * `data-state=\"on|off\"` exposes it to CSS. Omitted, the button is not a toggle.\n */\n pressed?: boolean\n /**\n * The face's size, which is Avatar's. The box around it is never smaller than the size's\n * control height.\n */\n size?: 'sm' | 'md' | 'lg'\n /**\n * Avatar's `src`: the image. A URL that fails to load leaves the initials.\n */\n src?: string\n}\n\ndefineOptions({ name: 'AvatarButton', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AvatarButtonProps>(), {\n current: false,\n disabled: false,\n loading: false,\n pressed: undefined,\n size: 'md',\n})\nconst emit = defineEmits<{ click: [event: MouseEvent] }>()\nconst control = useTemplateRef<HTMLElement>('control')\nconst dataState = computed(() =>\n props.loading\n ? 'loading'\n : props.pressed === undefined\n ? undefined\n : props.pressed\n ? 'on'\n : 'off',\n)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = nameTip(control.value, props.disabled ? undefined : props.label, styles.tip)\n release1 = () => {\n ran()\n }\n}\nonMounted(effect1)\nwatch(() => [props.disabled, props.label], effect1, { flush: 'post' })\nonBeforeUnmount(() => release1?.())\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'AvatarButton',\n element: () => control.value,\n state: () => ({ disabled: props.disabled, loading: props.loading }),\n actions: { press: () => agentPress(control.value) },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <button\n ref=\"control\"\n :class=\"styles.button\"\n type=\"button\"\n :disabled=\"disabled\"\n :aria-label=\"label\"\n :aria-busy=\"loading ? true : undefined\"\n :aria-current=\"current ? 'page' : undefined\"\n :aria-pressed=\"pressed\"\n data-variant=\"ghost\"\n data-tone=\"neutral\"\n :data-size=\"size\"\n :data-state=\"dataState\"\n :data-disabled=\"disabled ? '' : undefined\"\n data-member=\"avatar-button\"\n @click=\"!loading && emit('click', $event)\"\n >\n <!-- face -->\n <span :class=\"styles.face\">\n <Avatar :name=\"name\" :src=\"src\" :size=\"size\" />\n </span>\n <!-- spinner -->\n <span v-if=\"loading\" :class=\"styles.spinner\">\n <Icon name=\"loading\" :size=\"size\" />\n </span>\n </button>\n</template>\n"],"mappings":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import e from "../structure/Avatar.js";
|
|
2
2
|
import t from "./avatar-button.module.js";
|
|
3
|
-
import { Icon as n, agentMember as r, agentPress as i } from "@polymorph/vue";
|
|
4
|
-
import { computed as
|
|
3
|
+
import { Icon as n, agentMember as r, agentPress as i, nameTip as a } from "@polymorph/vue";
|
|
4
|
+
import { computed as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, onBeforeUnmount as p, onMounted as m, openBlock as h, unref as g, useTemplateRef as _, watch as v } from "vue";
|
|
5
5
|
//#region src/controls/AvatarButton.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var y = [
|
|
7
7
|
"disabled",
|
|
8
8
|
"aria-label",
|
|
9
9
|
"aria-busy",
|
|
@@ -12,7 +12,7 @@ var _ = [
|
|
|
12
12
|
"data-size",
|
|
13
13
|
"data-state",
|
|
14
14
|
"data-disabled"
|
|
15
|
-
],
|
|
15
|
+
], b = /*@__PURE__*/ d({
|
|
16
16
|
name: "AvatarButton",
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "AvatarButton",
|
|
@@ -39,57 +39,65 @@ var _ = [
|
|
|
39
39
|
src: {}
|
|
40
40
|
},
|
|
41
41
|
emits: ["click"],
|
|
42
|
-
setup(
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
C
|
|
42
|
+
setup(d, { emit: b }) {
|
|
43
|
+
let x = d, S = b, C = _("control"), w = o(() => x.loading ? "loading" : x.pressed === void 0 ? void 0 : x.pressed ? "on" : "off"), T, E = () => {
|
|
44
|
+
T?.();
|
|
45
|
+
let e = a(C.value, x.disabled ? void 0 : x.label, t.tip);
|
|
46
|
+
T = () => {
|
|
47
|
+
e();
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
m(E), v(() => [x.disabled, x.label], E, { flush: "post" }), p(() => T?.());
|
|
51
|
+
let D;
|
|
52
|
+
return m(() => {
|
|
53
|
+
D?.();
|
|
46
54
|
let e = r({
|
|
47
55
|
member: "AvatarButton",
|
|
48
|
-
element: () =>
|
|
56
|
+
element: () => C.value,
|
|
49
57
|
state: () => ({
|
|
50
|
-
disabled:
|
|
51
|
-
loading:
|
|
58
|
+
disabled: x.disabled,
|
|
59
|
+
loading: x.loading
|
|
52
60
|
}),
|
|
53
|
-
actions: { press: () => i(
|
|
61
|
+
actions: { press: () => i(C.value) }
|
|
54
62
|
});
|
|
55
|
-
|
|
63
|
+
D = () => {
|
|
56
64
|
e();
|
|
57
65
|
};
|
|
58
|
-
}),
|
|
66
|
+
}), p(() => D?.()), (r, i) => (h(), c("button", {
|
|
59
67
|
ref_key: "control",
|
|
60
|
-
ref:
|
|
61
|
-
class:
|
|
68
|
+
ref: C,
|
|
69
|
+
class: f(g(t).button),
|
|
62
70
|
type: "button",
|
|
63
|
-
disabled:
|
|
64
|
-
"aria-label":
|
|
65
|
-
"aria-busy":
|
|
66
|
-
"aria-current":
|
|
67
|
-
"aria-pressed":
|
|
71
|
+
disabled: d.disabled,
|
|
72
|
+
"aria-label": d.label,
|
|
73
|
+
"aria-busy": d.loading ? !0 : void 0,
|
|
74
|
+
"aria-current": d.current ? "page" : void 0,
|
|
75
|
+
"aria-pressed": d.pressed,
|
|
68
76
|
"data-variant": "ghost",
|
|
69
77
|
"data-tone": "neutral",
|
|
70
|
-
"data-size":
|
|
71
|
-
"data-state":
|
|
72
|
-
"data-disabled":
|
|
78
|
+
"data-size": d.size,
|
|
79
|
+
"data-state": w.value,
|
|
80
|
+
"data-disabled": d.disabled ? "" : void 0,
|
|
73
81
|
"data-member": "avatar-button",
|
|
74
|
-
onClick: i[0] ||= (e) => !
|
|
75
|
-
}, [
|
|
76
|
-
name:
|
|
77
|
-
src:
|
|
78
|
-
size:
|
|
82
|
+
onClick: i[0] ||= (e) => !d.loading && S("click", e)
|
|
83
|
+
}, [l("span", { class: f(g(t).face) }, [u(e, {
|
|
84
|
+
name: d.name,
|
|
85
|
+
src: d.src,
|
|
86
|
+
size: d.size
|
|
79
87
|
}, null, 8, [
|
|
80
88
|
"name",
|
|
81
89
|
"src",
|
|
82
90
|
"size"
|
|
83
|
-
])], 2),
|
|
91
|
+
])], 2), d.loading ? (h(), c("span", {
|
|
84
92
|
key: 0,
|
|
85
|
-
class:
|
|
86
|
-
}, [
|
|
93
|
+
class: f(g(t).spinner)
|
|
94
|
+
}, [u(g(n), {
|
|
87
95
|
name: "loading",
|
|
88
|
-
size:
|
|
89
|
-
}, null, 8, ["size"])], 2)) :
|
|
96
|
+
size: d.size
|
|
97
|
+
}, null, 8, ["size"])], 2)) : s("", !0)], 10, y));
|
|
90
98
|
}
|
|
91
99
|
});
|
|
92
100
|
//#endregion
|
|
93
|
-
export {
|
|
101
|
+
export { b as default };
|
|
94
102
|
|
|
95
103
|
//# sourceMappingURL=AvatarButton.vue_vue_type_script_setup_true_lang.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarButton.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/controls/AvatarButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A Button preset whose face is an Avatar (`design/components/avatar-button.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/avatar-button.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, useTemplateRef } from 'vue'\n\nimport { Icon, agentMember, agentPress } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/controls/avatar-button.module.css'\nimport Avatar from '../structure/Avatar.vue'\n\nexport interface AvatarButtonProps {\n /**\n * Marks the button as the current location with `aria-current=\"page\"`, as Button's `current`\n * does.\n */\n current?: boolean\n disabled?: boolean\n /**\n * The accessible name of the action, such as \"Account menu\". It is required and it is not the\n * person's name: a face says who, and a button says what a press does.\n */\n label: string\n /**\n * The action has started and not finished. Keeps focus and name, hides the face behind the\n * spinner, and ignores presses.\n */\n loading?: boolean\n /**\n * Avatar's `name`: the initials, and the `user` glyph when it is empty. Never the accessible\n * name.\n */\n name: string\n /**\n * Makes the button a toggle, as Button's `pressed` does: `aria-pressed` mirrors it and\n * `data-state=\"on|off\"` exposes it to CSS. Omitted, the button is not a toggle.\n */\n pressed?: boolean\n /**\n * The face's size, which is Avatar's. The box around it is never smaller than the size's\n * control height.\n */\n size?: 'sm' | 'md' | 'lg'\n /**\n * Avatar's `src`: the image. A URL that fails to load leaves the initials.\n */\n src?: string\n}\n\ndefineOptions({ name: 'AvatarButton', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AvatarButtonProps>(), {\n current: false,\n disabled: false,\n loading: false,\n pressed: undefined,\n size: 'md',\n})\nconst emit = defineEmits<{ click: [event: MouseEvent] }>()\nconst control = useTemplateRef<HTMLElement>('control')\nconst dataState = computed(() =>\n props.loading\n ? 'loading'\n : props.pressed === undefined\n ? undefined\n : props.pressed\n ? 'on'\n : 'off',\n)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = agentMember({\n member: 'AvatarButton',\n element: () => control.value,\n state: () => ({ disabled: props.disabled, loading: props.loading }),\n actions: { press: () => agentPress(control.value) },\n })\n
|
|
1
|
+
{"version":3,"file":"AvatarButton.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../../src/controls/AvatarButton.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * A Button preset whose face is an Avatar (`design/components/avatar-button.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/avatar-button.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, useTemplateRef, watch } from 'vue'\n\nimport { Icon, agentMember, agentPress, nameTip } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/controls/avatar-button.module.css'\nimport Avatar from '../structure/Avatar.vue'\n\nexport interface AvatarButtonProps {\n /**\n * Marks the button as the current location with `aria-current=\"page\"`, as Button's `current`\n * does.\n */\n current?: boolean\n disabled?: boolean\n /**\n * The accessible name of the action, such as \"Account menu\". It is required and it is not the\n * person's name: a face says who, and a button says what a press does.\n */\n label: string\n /**\n * The action has started and not finished. Keeps focus and name, hides the face behind the\n * spinner, and ignores presses.\n */\n loading?: boolean\n /**\n * Avatar's `name`: the initials, and the `user` glyph when it is empty. Never the accessible\n * name.\n */\n name: string\n /**\n * Makes the button a toggle, as Button's `pressed` does: `aria-pressed` mirrors it and\n * `data-state=\"on|off\"` exposes it to CSS. Omitted, the button is not a toggle.\n */\n pressed?: boolean\n /**\n * The face's size, which is Avatar's. The box around it is never smaller than the size's\n * control height.\n */\n size?: 'sm' | 'md' | 'lg'\n /**\n * Avatar's `src`: the image. A URL that fails to load leaves the initials.\n */\n src?: string\n}\n\ndefineOptions({ name: 'AvatarButton', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<AvatarButtonProps>(), {\n current: false,\n disabled: false,\n loading: false,\n pressed: undefined,\n size: 'md',\n})\nconst emit = defineEmits<{ click: [event: MouseEvent] }>()\nconst control = useTemplateRef<HTMLElement>('control')\nconst dataState = computed(() =>\n props.loading\n ? 'loading'\n : props.pressed === undefined\n ? undefined\n : props.pressed\n ? 'on'\n : 'off',\n)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = nameTip(control.value, props.disabled ? undefined : props.label, styles.tip)\n release1 = () => {\n ran()\n }\n}\nonMounted(effect1)\nwatch(() => [props.disabled, props.label], effect1, { flush: 'post' })\nonBeforeUnmount(() => release1?.())\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'AvatarButton',\n element: () => control.value,\n state: () => ({ disabled: props.disabled, loading: props.loading }),\n actions: { press: () => agentPress(control.value) },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <button\n ref=\"control\"\n :class=\"styles.button\"\n type=\"button\"\n :disabled=\"disabled\"\n :aria-label=\"label\"\n :aria-busy=\"loading ? true : undefined\"\n :aria-current=\"current ? 'page' : undefined\"\n :aria-pressed=\"pressed\"\n data-variant=\"ghost\"\n data-tone=\"neutral\"\n :data-size=\"size\"\n :data-state=\"dataState\"\n :data-disabled=\"disabled ? '' : undefined\"\n data-member=\"avatar-button\"\n @click=\"!loading && emit('click', $event)\"\n >\n <!-- face -->\n <span :class=\"styles.face\">\n <Avatar :name=\"name\" :src=\"src\" :size=\"size\" />\n </span>\n <!-- spinner -->\n <span v-if=\"loading\" :class=\"styles.spinner\">\n <Icon name=\"loading\" :size=\"size\" />\n </span>\n </button>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDA,IAAM,IAAQ,GAOR,IAAO,GACP,IAAU,EAA4B,SAAS,GAC/C,IAAY,QAChB,EAAM,UACF,YACA,EAAM,YAAY,KAAA,IAChB,KAAA,IACA,EAAM,UACJ,OACA,KACV,GACI,GACE,UAAgB;GACpB,IAAW;GACX,IAAM,IAAM,EAAQ,EAAQ,OAAO,EAAM,WAAW,KAAA,IAAY,EAAM,OAAO,EAAO,GAAG;GACvF,UAAiB;IACf,EAAI;GACN;EACF;EAGA,AAFA,EAAU,CAAO,GACjB,QAAY,CAAC,EAAM,UAAU,EAAM,KAAK,GAAG,GAAS,EAAE,OAAO,OAAO,CAAC,GACrE,QAAsB,IAAW,CAAC;EAClC,IAAI;SAaJ,QAZsB;GACpB,IAAW;GACX,IAAM,IAAM,EAAY;IACtB,QAAQ;IACR,eAAe,EAAQ;IACvB,cAAc;KAAE,UAAU,EAAM;KAAU,SAAS,EAAM;IAAQ;IACjE,SAAS,EAAE,aAAa,EAAW,EAAQ,KAAK,EAAE;GACpD,CAAC;GACD,UAAiB;IACf,EAAI;GACN;EACF,CACiB,GACjB,QAAsB,IAAW,CAAC,mBAIhC,EAyBS,UAAA;YAxBH;GAAJ,KAAI;GACH,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,MAAM;GACrB,MAAK;GACJ,UAAU,EAAA;GACV,cAAY,EAAA;GACZ,aAAW,EAAA,UAAO,KAAU,KAAA;GAC5B,gBAAc,EAAA,UAAO,SAAY,KAAA;GACjC,gBAAc,EAAA;GACf,gBAAa;GACb,aAAU;GACT,aAAW,EAAA;GACX,cAAY,EAAA;GACZ,iBAAe,EAAA,WAAQ,KAAQ,KAAA;GAChC,eAAY;GACX,SAAK,AAAA,EAAA,QAAA,MAAA,CAAG,EAAA,WAAW,EAAI,SAAU,CAAM;MAGxC,EAEO,QAAA,EAFA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,IAAI,EAAA,GAAA,CACvB,EAA+C,GAAA;GAAtC,MAAM,EAAA;GAAO,KAAK,EAAA;GAAM,MAAM,EAAA;;;;;WAG7B,EAAA,WAAA,EAAA,GAAZ,EAEO,QAAA;;GAFe,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,OAAO;MACzC,EAAoC,EAAA,CAAA,GAAA;GAA9B,MAAK;GAAW,MAAM,EAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","names":[],"sources":["../../../src/controls/Button.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The action primitive (`design/components/button.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/button.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, useTemplateRef } from 'vue'\n\nimport {
|
|
1
|
+
{"version":3,"file":"Button.js","names":[],"sources":["../../../src/controls/Button.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The action primitive (`design/components/button.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/button.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, useTemplateRef, watch } from 'vue'\n\nimport {\n Icon,\n agentMember,\n agentPress,\n nameTip,\n type IconRole,\n type LawfulVariants,\n} from '@polymorph/vue'\nimport styles from '@polymorph/recipes/controls/button.module.css'\nimport Badge from '../structure/Badge.vue'\n\nexport interface ButtonGrid {\n solid: 'accent' | 'danger'\n soft: 'accent' | 'danger'\n outline: 'neutral' | 'accent' | 'danger'\n ghost: 'neutral' | 'accent' | 'danger'\n}\n\nexport type ButtonAppearance = LawfulVariants<ButtonGrid>\n\nexport interface ButtonCount {\n value: number\n label: string\n}\n\nexport interface ButtonProps {\n /**\n * The id of the region the button shows and hides. Set it only while the region is in the\n * document, because an id that names nothing is a broken reference.\n */\n ariaControls?: string\n /**\n * Associates supporting status or help copy with the action.\n */\n ariaDescribedby?: string\n /**\n * Overrides the visible label as the accessible action name when context must be explicit.\n */\n ariaLabel?: string\n /**\n * The id of a label elsewhere that names the button, as when `SettingsRow` labels a whole row.\n * `label` is still the visible text. This prop sets the accessible name.\n */\n ariaLabelledby?: string\n /**\n * A count on the button's corner, with the name that says it. Above zero, the count shows as a\n * Badge and `count.label` is the accessible name. At zero, neither shows and `label` names the\n * button.\n */\n count?: ButtonCount\n /**\n * Marks the button as the current location with `aria-current=\"page\"`. It sets one attribute\n * and changes no styling. Pagination uses it, because its current page is a `soft/accent`\n * Button that must also announce that it is current. Without this prop, a component would have\n * to render its own `<button>` and repeat this recipe to add one attribute.\n */\n current?: boolean\n disabled?: boolean\n /**\n * Makes the button a disclosure's trigger. `aria-expanded` mirrors it. When it is omitted, the\n * button discloses nothing and the attribute does not render. It changes no styling: the icon\n * the caller passes shows the state.\n */\n expanded?: boolean\n /**\n * Leading icon. It is decorative, because the label names the action.\n */\n icon?: IconRole\n /**\n * Square (width = control height). `label` is still required as the accessible name.\n */\n iconOnly?: boolean\n /**\n * Required. Visible text, or the accessible name when `iconOnly`.\n */\n label: string\n loading?: boolean\n /**\n * Makes the button a toggle. `aria-pressed` mirrors it and `data-state=\"on|off\"` exposes it to\n * CSS. When it is omitted, the button is not a toggle and neither attribute renders. `loading`\n * takes precedence in `data-state`, so a busy toggle reports busy, while `aria-pressed` still\n * reports the toggle state.\n */\n pressed?: boolean\n size?: 'sm' | 'md' | 'lg'\n tone?: 'accent' | 'danger' | 'neutral'\n trailingIcon?: IconRole\n type?: 'button' | 'submit'\n variant?: 'solid' | 'soft' | 'outline' | 'ghost'\n}\n\ndefineOptions({ name: 'Button', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ButtonProps>(), {\n current: false,\n disabled: false,\n expanded: undefined,\n iconOnly: false,\n loading: false,\n pressed: undefined,\n size: 'md',\n tone: 'accent',\n type: 'button',\n variant: 'solid',\n})\nconst emit = defineEmits<{ click: [event: MouseEvent] }>()\nconst control = useTemplateRef<HTMLElement>('control')\nconst dataState = computed(() =>\n props.loading\n ? 'loading'\n : props.pressed === undefined\n ? undefined\n : props.pressed\n ? 'on'\n : 'off',\n)\nconst counted = computed(() => props.count !== undefined && props.count.value > 0)\nlet release1: (() => void) | undefined\nconst effect1 = () => {\n release1?.()\n const ran = nameTip(\n control.value,\n props.iconOnly && !props.disabled ? props.label : undefined,\n styles.tip,\n )\n release1 = () => {\n ran()\n }\n}\nonMounted(effect1)\nwatch(() => [props.iconOnly, props.disabled, props.label], effect1, { flush: 'post' })\nonBeforeUnmount(() => release1?.())\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Button',\n element: () => control.value,\n state: () => ({\n disabled: props.disabled,\n loading: props.loading,\n pressed: props.pressed ?? null,\n expanded: props.expanded ?? null,\n }),\n actions: { press: () => agentPress(control.value) },\n destructive: () => Boolean(props.tone === 'danger'),\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <button\n ref=\"control\"\n :class=\"styles.button\"\n :type=\"type\"\n :disabled=\"disabled\"\n :aria-busy=\"loading ? true : undefined\"\n :aria-current=\"current ? 'page' : undefined\"\n :aria-label=\"ariaLabel ?? (counted ? count?.label : iconOnly ? label : undefined)\"\n :aria-labelledby=\"ariaLabelledby\"\n :aria-describedby=\"ariaDescribedby\"\n :aria-pressed=\"pressed\"\n :aria-expanded=\"expanded\"\n :aria-controls=\"ariaControls\"\n :data-variant=\"variant\"\n :data-tone=\"tone\"\n :data-size=\"size\"\n :data-state=\"dataState\"\n :data-disabled=\"disabled ? '' : undefined\"\n :data-icon-only=\"iconOnly ? '' : undefined\"\n data-member=\"button\"\n @click=\"!loading && emit('click', $event)\"\n >\n <span v-if=\"loading\" :class=\"styles.spinner\">\n <Icon name=\"loading\" :size=\"size\" />\n </span>\n <span v-else-if=\"icon\" :class=\"styles.glyph\">\n <Icon :name=\"icon\" :size=\"size\" />\n </span>\n <!-- label -->\n <span v-if=\"!iconOnly\" :class=\"styles.label\">\n {{ label }}\n </span>\n <span v-if=\"trailingIcon !== undefined && !iconOnly\" :class=\"styles.glyph\">\n <Icon :name=\"trailingIcon\" :size=\"size\" />\n </span>\n <span v-if=\"counted\" :class=\"styles.count\" aria-hidden=\"true\">\n <Badge variant=\"solid\" tone=\"accent\" :count=\"count?.value\" />\n </span>\n </button>\n</template>\n"],"mappings":""}
|