@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.module.js","names":[],"sources":["../../../../recipes/src/structure/collapsible.module.css"],"sourcesContent":["/* Collapsible — `design/components/collapsible.md`.\n *\n * The trigger is as wide as its label, because a full-width trigger would look\n * like an Accordion. No rules and no hover wash: a flush trigger has no box to\n * tint, so hover is Accordion's colour-only change. */\n\n.root {\n display: flex;\n flex-direction: column;\n}\n\n/* An inline row at the minimum target height, flush with the content.\n `align-self` keeps the trigger at content width while the region is full\n width, so a wide paragraph never widens the button. */\n.trigger {\n composes:
|
|
1
|
+
{"version":3,"file":"collapsible.module.js","names":[],"sources":["../../../../recipes/src/structure/collapsible.module.css"],"sourcesContent":["/* Collapsible — `design/components/collapsible.md`.\n *\n * The trigger is as wide as its label, because a full-width trigger would look\n * like an Accordion. No rules and no hover wash: a flush trigger has no box to\n * tint, so hover is Accordion's colour-only change. */\n\n.root {\n display: flex;\n flex-direction: column;\n}\n\n/* An inline row at the minimum target height, flush with the content.\n `align-self` keeps the trigger at content width while the region is full\n width, so a wide paragraph never widens the button. */\n.trigger {\n composes: focusAround from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n align-self: start;\n gap: var(--pm-space-2);\n align-items: center;\n min-block-size: var(--pm-control-height-sm);\n padding: 0;\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n text-align: start;\n cursor: pointer;\n background: transparent;\n border: 0;\n}\n\n.label {\n min-inline-size: 0;\n}\n\n.chevron {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n\n /* Rotates on `control` × `standard`, like Accordion's chevron, because the\n change is symmetric and has no direction of travel. */\n transition: transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* Colour only, no wash, the same hover as Accordion. */\n.trigger:hover {\n color: var(--pm-accent-text);\n}\n\n.trigger:hover .chevron {\n color: var(--pm-text-secondary);\n}\n\n.trigger[data-state='open'] .chevron {\n transform: rotate(180deg);\n}\n\n/* the region ----------------------------------------------------------------\n *\n * `collapsible.content`: `collapse`, persistent mode, `surface` class, the same\n * binding as `accordion.content` (`design/motion/motion.md`), driven by Radix's\n * measured height. `overflow: hidden` is what the interruption law requires of\n * any box whose size animates.\n *\n * A box that clips cuts what is drawn outside its content at its padding edge:\n * the seat shadow of a field or a Button against the region's side, and a\n * control's focus mark, drawn a `space-1` gap outside it. So the region is\n * wider than its content by `space-2` on each side, and its margins take that\n * back, so the content stays flush with the trigger. The room is on the inline\n * axis only, because room on the block axis would change the height Radix\n * measures and the animation runs to. */\n\n.content {\n --pm-collapsible-reach: var(--pm-space-2);\n\n margin-inline: calc(var(--pm-collapsible-reach) * -1);\n padding-inline: var(--pm-collapsible-reach);\n overflow: hidden;\n}\n\n/* The gap to the trigger is inside the animated region, so it collapses with\n the content. Plain strings get the reading text style. */\n.inner {\n padding-block-start: 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}\n\n@keyframes pm-collapsible-open {\n from {\n block-size: 0;\n }\n\n to {\n block-size: var(--radix-collapsible-content-height);\n }\n}\n\n@keyframes pm-collapsible-close {\n from {\n block-size: var(--radix-collapsible-content-height);\n }\n\n to {\n block-size: 0;\n }\n}\n\n/* The content fade uses the `collapse` pattern's 0.5 split. It fades in over the\n second half, once there is room, and out before the space closes. */\n\n@keyframes pm-collapsible-reveal {\n from {\n opacity: 0;\n }\n}\n\n@keyframes pm-collapsible-conceal {\n to {\n opacity: 0;\n }\n}\n\n.content[data-state='open'] {\n animation: pm-collapsible-open var(--pm-motion-duration-surface) var(--pm-motion-easing-standard);\n}\n\n.content[data-state='closed'] {\n animation: pm-collapsible-close var(--pm-motion-duration-surface) var(--pm-motion-easing-standard);\n}\n\n.content[data-state='open'] .inner {\n animation: pm-collapsible-reveal calc(var(--pm-motion-duration-surface) * 0.5)\n var(--pm-motion-easing-standard) calc(var(--pm-motion-duration-surface) * 0.5) both;\n}\n\n.content[data-state='closed'] .inner {\n animation: pm-collapsible-conceal calc(var(--pm-motion-duration-surface) * 0.5)\n var(--pm-motion-easing-standard) both;\n}\n\n/* Reduced-motion projection (`design/motion/motion.md`): an instant size change,\n the content fade kept, the chevron still. At `none` the durations are 0s. */\n@media (prefers-reduced-motion: reduce) {\n .content[data-state='open'],\n .content[data-state='closed'] {\n animation: none;\n }\n\n .chevron {\n transition: none;\n }\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/cursor-pagination.module.css
|
|
2
|
-
var e = "_pagination_1aa26_14
|
|
2
|
+
var e = "_pagination_1aa26_14 _focusRing_1hr3n_49", t = "_position_1aa26_23", n = "_end_1aa26_24", r = "_link_1aa26_43 _button_cxa90_17 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", i = "_linkLabel_1aa26_50 _label_cxa90_43", a = "_linkGlyph_1aa26_54 _glyph_cxa90_50", o = {
|
|
3
3
|
pagination: e,
|
|
4
4
|
position: t,
|
|
5
5
|
end: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/data-table.module.css
|
|
2
|
-
var e = "_table_9hzng_9", t = "_bulkBar_9hzng_19", n = "_bulkCount_9hzng_39", r = "_expandLabel_9hzng_56 _visuallyHidden_qxi8b_14", i = "_expandCell_9hzng_57", a = "_selectCell_9hzng_68", o = "_detailCell_9hzng_91
|
|
2
|
+
var e = "_table_9hzng_9", t = "_bulkBar_9hzng_19", n = "_bulkCount_9hzng_39", r = "_expandLabel_9hzng_56 _visuallyHidden_qxi8b_14", i = "_expandCell_9hzng_57", a = "_selectCell_9hzng_68", o = "_detailCell_9hzng_91 _focusRing_1hr3n_49", s = "_detail_9hzng_91", c = "_pagination_9hzng_127", l = {
|
|
3
3
|
table: e,
|
|
4
4
|
bulkBar: t,
|
|
5
5
|
"data-table-bulk-enter": "_data-table-bulk-enter_9hzng_1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/error-summary.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_root_1nxba_7", t = "_glyph_1nxba_18", n = "_body_1nxba_26", r = "_title_1nxba_32", i = "_list_1nxba_43", a = "_link_1nxba_56 _focusAround_1hr3n_95", o = {
|
|
3
3
|
root: e,
|
|
4
4
|
glyph: t,
|
|
5
5
|
body: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-summary.module.js","names":[],"sources":["../../../../recipes/src/structure/error-summary.module.css"],"sourcesContent":["/* ErrorSummary — `design/components/error-summary.md`.\n *\n * Alert's danger recipe plus the list. No variants, sizes or tone: danger is the\n * subject. No enter animation, as in Alert (`role=\"alert\"` already announces\n * it), and no exit: it unmounts with the app's render. */\n\n.root {\n display: flex;\n gap: var(--pm-space-3);\n align-items: flex-start;\n padding: var(--pm-space-4);\n background: var(--pm-danger-subtle);\n border: 1px solid var(--pm-danger-border);\n border-radius: var(--pm-radius-lg);\n}\n\n/* One text line tall and top-aligned, exactly as Alert's glyph. */\n.glyph {\n display: inline-flex;\n flex: none;\n align-items: center;\n block-size: calc(var(--pm-text-sm-line-height) * var(--pm-text-sm-size));\n color: var(--pm-danger-text);\n}\n\n.body {\n flex: 1;\n min-inline-size: 0;\n}\n\n/* Hierarchy comes from colour, not a heavier weight (Alert's rule). */\n.title {\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n}\n\n/* No list markers, because the links are the rows and bullets would add\n clutter. Screen readers still announce the count because the <ul> is real. */\n.list {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-2);\n padding: 0;\n margin: 0;\n margin-block-start: var(--pm-space-2);\n list-style: none;\n}\n\n/* The danger text role, not accent, which would mix two tones on a danger wash.\n Always underlined, so colour is never the only signal, with Link's metrics.\n `danger.text` on `danger.subtle` is the law-checked pairing Alert uses. */\n.link {\n composes:
|
|
1
|
+
{"version":3,"file":"error-summary.module.js","names":[],"sources":["../../../../recipes/src/structure/error-summary.module.css"],"sourcesContent":["/* ErrorSummary — `design/components/error-summary.md`.\n *\n * Alert's danger recipe plus the list. No variants, sizes or tone: danger is the\n * subject. No enter animation, as in Alert (`role=\"alert\"` already announces\n * it), and no exit: it unmounts with the app's render. */\n\n.root {\n display: flex;\n gap: var(--pm-space-3);\n align-items: flex-start;\n padding: var(--pm-space-4);\n background: var(--pm-danger-subtle);\n border: 1px solid var(--pm-danger-border);\n border-radius: var(--pm-radius-lg);\n}\n\n/* One text line tall and top-aligned, exactly as Alert's glyph. */\n.glyph {\n display: inline-flex;\n flex: none;\n align-items: center;\n block-size: calc(var(--pm-text-sm-line-height) * var(--pm-text-sm-size));\n color: var(--pm-danger-text);\n}\n\n.body {\n flex: 1;\n min-inline-size: 0;\n}\n\n/* Hierarchy comes from colour, not a heavier weight (Alert's rule). */\n.title {\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n}\n\n/* No list markers, because the links are the rows and bullets would add\n clutter. Screen readers still announce the count because the <ul> is real. */\n.list {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-2);\n padding: 0;\n margin: 0;\n margin-block-start: var(--pm-space-2);\n list-style: none;\n}\n\n/* The danger text role, not accent, which would mix two tones on a danger wash.\n Always underlined, so colour is never the only signal, with Link's metrics.\n `danger.text` on `danger.subtle` is the law-checked pairing Alert uses. */\n.link {\n composes: focusAround from '../conventions/focus.module.css';\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-danger-text);\n\n /* Full-strength underline on purpose. The muted resting underline\n (`accent.underline`) is for prose links, and an error link must stand out. */\n text-decoration-line: underline;\n text-decoration-thickness: 1px;\n text-underline-offset: 2px;\n border-radius: var(--pm-radius-sm);\n}\n\n/* Hover thickens the underline rather than changing colour, as Link does (there\n is no danger hover role). No transition, because thickness does not animate. */\n.link:hover {\n text-decoration-thickness: 2px;\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/json-tree.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_root_1gm2k_10", t = "_row_1gm2k_20", n = "_toggle_1gm2k_26 _focusAround_1hr3n_95 _stateFeedback_lkjqs_17", r = "_chevron_1gm2k_46", i = "_key_1gm2k_56", a = "_colon_1gm2k_60", o = "_summary_1gm2k_64", s = "_value_1gm2k_71", c = "_children_1gm2k_96", l = {
|
|
3
3
|
root: e,
|
|
4
4
|
row: t,
|
|
5
5
|
toggle: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-tree.module.js","names":[],"sources":["../../../../recipes/src/structure/json-tree.module.css"],"sourcesContent":["/* JsonTree — `design/components/json-tree.md`.\n *\n * JSON is code: mono at the reading size. Kind colours come from text and\n * accent roles, not status colours, because a `false` is not a warning and\n * status colour on every boolean would teach readers to ignore it.\n *\n * Children never animate: a thousand-node subtree cannot animate smoothly, and\n * expanding should be instant. Only the chevron rotates, on control tokens. */\n\n.root {\n margin: 0;\n padding: 0;\n font-family: var(--pm-font-mono);\n font-size: var(--pm-text-sm-size);\n line-height: var(--pm-text-sm-line-height);\n color: var(--pm-text-primary);\n list-style: none;\n}\n\n.row {\n padding-block: 2px;\n}\n\n/* The disclosure toggle, styled as a ghost row. Its name is the key and summary.\n The chevron only shows what `aria-expanded` already says. */\n.toggle {\n composes:
|
|
1
|
+
{"version":3,"file":"json-tree.module.js","names":[],"sources":["../../../../recipes/src/structure/json-tree.module.css"],"sourcesContent":["/* JsonTree — `design/components/json-tree.md`.\n *\n * JSON is code: mono at the reading size. Kind colours come from text and\n * accent roles, not status colours, because a `false` is not a warning and\n * status colour on every boolean would teach readers to ignore it.\n *\n * Children never animate: a thousand-node subtree cannot animate smoothly, and\n * expanding should be instant. Only the chevron rotates, on control tokens. */\n\n.root {\n margin: 0;\n padding: 0;\n font-family: var(--pm-font-mono);\n font-size: var(--pm-text-sm-size);\n line-height: var(--pm-text-sm-line-height);\n color: var(--pm-text-primary);\n list-style: none;\n}\n\n.row {\n padding-block: 2px;\n}\n\n/* The disclosure toggle, styled as a ghost row. Its name is the key and summary.\n The chevron only shows what `aria-expanded` already says. */\n.toggle {\n composes: focusAround from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n gap: var(--pm-space-2);\n align-items: center;\n padding: 0 var(--pm-space-1);\n margin: 0;\n font: inherit;\n color: inherit;\n cursor: pointer;\n background: transparent;\n border: none;\n border-radius: var(--pm-radius-sm);\n}\n\n.toggle:hover {\n background: var(--pm-bg-subtle);\n}\n\n.chevron {\n display: inline-flex;\n color: var(--pm-text-muted);\n transition: transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n.toggle[aria-expanded='true'] .chevron {\n transform: rotate(90deg);\n}\n\n.key {\n color: var(--pm-text-primary);\n}\n\n.colon {\n color: var(--pm-text-muted);\n}\n\n.summary {\n color: var(--pm-text-muted);\n}\n\n/* A leaf: key beside value, with the toggle's inset so leaves and branches align\n at every level. */\n.row > .key,\n.row > .value,\n.row > .summary {\n padding-inline: var(--pm-space-1);\n}\n\n.row > .key {\n padding-inline-end: 0;\n margin-inline-end: var(--pm-space-2);\n}\n\n.value[data-kind='string'] {\n color: var(--pm-text-secondary);\n}\n\n.value[data-kind='number'] {\n color: var(--pm-accent-text);\n}\n\n.value[data-kind='boolean'],\n.value[data-kind='null'] {\n font-style: italic;\n color: var(--pm-text-muted);\n}\n\n/* One level in: indented, with a guide line back to the parent. */\n.children {\n padding: 0;\n padding-inline-start: var(--pm-space-5);\n margin: 0;\n margin-inline-start: var(--pm-space-2);\n list-style: none;\n border-inline-start: 1px solid var(--pm-border-subtle);\n}\n\n/* Reduced-motion projection (`design/motion/motion.md`): the chevron rotation is\n instant. The toggle's colour feedback stays. */\n@media (prefers-reduced-motion: reduce) {\n .chevron {\n transition: none;\n }\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/list.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_list_12tcx_9", t = "_item_12tcx_20 _stateFeedback_lkjqs_17", n = "_leading_12tcx_39", r = "_trailing_12tcx_40", i = "_meta_12tcx_41", a = "_text_12tcx_81", o = "_title_12tcx_91", s = "_primary_12tcx_105", c = "_description_12tcx_120", l = {
|
|
3
3
|
list: e,
|
|
4
4
|
item: t,
|
|
5
5
|
leading: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.module.js","names":[],"sources":["../../../../recipes/src/structure/list.module.css"],"sourcesContent":["/* List — `design/components/list.md`.\n *\n * A column of ruled rows. One element takes a row's press: the title's link or\n * button, whose `::after` covers the row. A trailing control comes after the\n * title in the document and is positioned, so it is drawn above that target and\n * takes its own press. A trailing mark that is not a control leaves its press\n * to the row. */\n\n.list {\n display: flex;\n flex-direction: column;\n min-inline-size: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n/* item ---------------------------------------------------------------------- */\n\n.item {\n composes: stateFeedback from '../conventions/motion.module.css';\n\n /* Containing block for the title's stretched target. */\n position: relative;\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n min-block-size: var(--pm-control-height-lg);\n padding: var(--pm-space-3) var(--pm-space-4);\n}\n\n/* The surface the list sits in is the outer boundary, so the first row draws no\n rule. */\n.item + .item {\n border-block-start: 1px solid var(--pm-border-subtle);\n}\n\n/* Never shrink: the text column gives up the width. */\n.leading,\n.trailing,\n.meta {\n display: flex;\n flex: none;\n align-items: center;\n}\n\n/* Positioned, and later in the document than the title, so it paints above the\n stretched target without a `z-index`. A box that holds no control takes no\n press of its own: the row shows its hover fill under a Badge as under its\n text, so a press on a mark that is not a control reaches the row's target\n below it. */\n.trailing {\n position: relative;\n pointer-events: none;\n}\n\n/* A box that holds a control takes every press inside it. The box takes them,\n and not only the control, because a control turns its own pointer events off\n in some states: a Button does while it is loading. A press on it then lands\n on the box and goes no further, where a rule on the control alone would let\n it through to the row's target, and a second press on a busy \"Revoke\" would\n follow the row's link. `label` is here for a control drawn with its own\n label, whose whole row is its target.\n\n Each kind of control is a selector of its own. A list inside one `:has()`\n reads the same, but the law that holds every recipe rule above the base\n layer splits a rule at its commas (`packages/react-ui/packaging.test.ts`). */\n.trailing:has(a),\n.trailing:has(button),\n.trailing:has(input),\n.trailing:has(select),\n.trailing:has(textarea),\n.trailing:has(label),\n.trailing:has(summary),\n.trailing:has([tabindex]) {\n pointer-events: auto;\n}\n\n/* A flex item is as wide as its content at least. With no minimum the column\n shrinks, and a long word breaks, so an item never widens its container. */\n.text {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--pm-space-1);\n align-items: flex-start;\n min-inline-size: 0;\n overflow-wrap: anywhere;\n}\n\n.title {\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-align: start;\n}\n\n/* The link or the button that takes the row's press. A list is not prose, so a\n link's underline is removed, and a button's own box is removed so that both\n roots draw the same title. Its UA ring is suppressed because the item draws\n the ring. */\n.primary {\n padding: 0;\n text-decoration: none;\n cursor: pointer;\n outline: none;\n background: transparent;\n border: 0;\n}\n\n.primary::after {\n position: absolute;\n inset: 0;\n content: '';\n}\n\n.description,\n.meta {\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-secondary);\n}\n\n.meta {\n white-space: nowrap;\n}\n\n/* states -------------------------------------------------------------------- */\n\n.item[data-interactive] {\n cursor: pointer;\n}\n\n/* The current item uses the selection colours, not the hover colours\n (`design/components/README.md`). Its fill is the selected surface, not the\n selection fill: an item holds secondary text and a trailing control, and the\n contrast law holds every text role on the selected surface. With a hue the\n selected surface has a hover step, so pointing at the current item still\n gives feedback. A system with no hue has none, as in Table. */\n.item[data-current] {\n background: var(--pm-selection-surface);\n}\n\n.item[data-interactive][data-current]:hover {\n background: var(--pm-selection-surface-hover);\n}\n\n/* After selection and excluding it, because the state the reader chose wins\n over the pointer position. */\n.item[data-interactive]:hover:not([data-current]) {\n background: var(--pm-bg-subtle);\n}\n\n/* The focus
|
|
1
|
+
{"version":3,"file":"list.module.js","names":[],"sources":["../../../../recipes/src/structure/list.module.css"],"sourcesContent":["/* List — `design/components/list.md`.\n *\n * A column of ruled rows. One element takes a row's press: the title's link or\n * button, whose `::after` covers the row. A trailing control comes after the\n * title in the document and is positioned, so it is drawn above that target and\n * takes its own press. A trailing mark that is not a control leaves its press\n * to the row. */\n\n.list {\n display: flex;\n flex-direction: column;\n min-inline-size: 0;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n/* item ---------------------------------------------------------------------- */\n\n.item {\n composes: stateFeedback from '../conventions/motion.module.css';\n\n /* Containing block for the title's stretched target. */\n position: relative;\n display: flex;\n gap: var(--pm-space-3);\n align-items: center;\n min-block-size: var(--pm-control-height-lg);\n padding: var(--pm-space-3) var(--pm-space-4);\n}\n\n/* The surface the list sits in is the outer boundary, so the first row draws no\n rule. */\n.item + .item {\n border-block-start: 1px solid var(--pm-border-subtle);\n}\n\n/* Never shrink: the text column gives up the width. */\n.leading,\n.trailing,\n.meta {\n display: flex;\n flex: none;\n align-items: center;\n}\n\n/* Positioned, and later in the document than the title, so it paints above the\n stretched target without a `z-index`. A box that holds no control takes no\n press of its own: the row shows its hover fill under a Badge as under its\n text, so a press on a mark that is not a control reaches the row's target\n below it. */\n.trailing {\n position: relative;\n pointer-events: none;\n}\n\n/* A box that holds a control takes every press inside it. The box takes them,\n and not only the control, because a control turns its own pointer events off\n in some states: a Button does while it is loading. A press on it then lands\n on the box and goes no further, where a rule on the control alone would let\n it through to the row's target, and a second press on a busy \"Revoke\" would\n follow the row's link. `label` is here for a control drawn with its own\n label, whose whole row is its target.\n\n Each kind of control is a selector of its own. A list inside one `:has()`\n reads the same, but the law that holds every recipe rule above the base\n layer splits a rule at its commas (`packages/react-ui/packaging.test.ts`). */\n.trailing:has(a),\n.trailing:has(button),\n.trailing:has(input),\n.trailing:has(select),\n.trailing:has(textarea),\n.trailing:has(label),\n.trailing:has(summary),\n.trailing:has([tabindex]) {\n pointer-events: auto;\n}\n\n/* A flex item is as wide as its content at least. With no minimum the column\n shrinks, and a long word breaks, so an item never widens its container. */\n.text {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--pm-space-1);\n align-items: flex-start;\n min-inline-size: 0;\n overflow-wrap: anywhere;\n}\n\n.title {\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-align: start;\n}\n\n/* The link or the button that takes the row's press. A list is not prose, so a\n link's underline is removed, and a button's own box is removed so that both\n roots draw the same title. Its UA ring is suppressed because the item draws\n the ring. */\n.primary {\n padding: 0;\n text-decoration: none;\n cursor: pointer;\n outline: none;\n background: transparent;\n border: 0;\n}\n\n.primary::after {\n position: absolute;\n inset: 0;\n content: '';\n}\n\n.description,\n.meta {\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-secondary);\n}\n\n.meta {\n white-space: nowrap;\n}\n\n/* states -------------------------------------------------------------------- */\n\n.item[data-interactive] {\n cursor: pointer;\n}\n\n/* The current item uses the selection colours, not the hover colours\n (`design/components/README.md`). Its fill is the selected surface, not the\n selection fill: an item holds secondary text and a trailing control, and the\n contrast law holds every text role on the selected surface. With a hue the\n selected surface has a hover step, so pointing at the current item still\n gives feedback. A system with no hue has none, as in Table. */\n.item[data-current] {\n background: var(--pm-selection-surface);\n}\n\n.item[data-interactive][data-current]:hover {\n background: var(--pm-selection-surface-hover);\n}\n\n/* After selection and excluding it, because the state the reader chose wins\n over the pointer position. */\n.item[data-interactive]:hover:not([data-current]) {\n background: var(--pm-bg-subtle);\n}\n\n/* The focus mark on the item via `:has()`, with the shared convention's\n tokens. Restated because the focusable element is the title, and the\n delegating selector in `focus.module.css` covers only composite fields. It is\n drawn inside the item's edge by its width at every system's offset: rows\n share their edges, and a mark outside would be cut by the surface around the\n list. A focused trailing control draws its own mark. */\n.item:has(> .text > .primary: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"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/log-view.module.css
|
|
2
|
-
var e = "_root_x8qgn_11", t = "_viewport_x8qgn_24
|
|
2
|
+
var e = "_root_x8qgn_11", t = "_viewport_x8qgn_24 _focusRing_1hr3n_49", n = "_lines_x8qgn_40", r = "_line_x8qgn_40", i = "_marker_x8qgn_64", a = "_time_x8qgn_96", o = "_source_x8qgn_103", s = "_text_x8qgn_75", c = "_spoken_x8qgn_124 _visuallyHidden_qxi8b_14", l = "_end_x8qgn_132", u = "_caret_x8qgn_139", d = "_jump_x8qgn_150", f = "_backing_x8qgn_167", p = "_harness_x8qgn_178", m = "_harnessNarrow_x8qgn_184", h = {
|
|
3
3
|
root: e,
|
|
4
4
|
viewport: t,
|
|
5
5
|
lines: n,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/pagination.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_pagination_tfm75_10 _focusRing_1hr3n_49", t = "_link_tfm75_26 _button_cxa90_17 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", n = "_linkLabel_tfm75_34 _label_cxa90_43", r = "_linkGlyph_tfm75_38 _glyph_cxa90_50", i = "_linkTip_tfm75_45 _tip_cxa90_80 _bubble_11q5z_14 _fadeIn_lkjqs_92", a = "_ellipsis_tfm75_51", o = {
|
|
3
3
|
pagination: e,
|
|
4
4
|
link: t,
|
|
5
5
|
linkLabel: n,
|
|
6
6
|
linkGlyph: r,
|
|
7
|
-
|
|
7
|
+
linkTip: i,
|
|
8
|
+
ellipsis: a
|
|
8
9
|
};
|
|
9
10
|
//#endregion
|
|
10
|
-
export {
|
|
11
|
+
export { o as default, a as ellipsis, t as link, r as linkGlyph, n as linkLabel, i as linkTip, e as pagination };
|
|
11
12
|
|
|
12
13
|
//# sourceMappingURL=pagination.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.module.js","names":[],"sources":["../../../../recipes/src/structure/pagination.module.css"],"sourcesContent":["/* Pagination — `design/components/pagination.md`.\n *\n * The controls are Buttons, or links in Button's look when the pages have\n * addresses, and the row is an Inline. This file keeps each control at least\n * square, so the row does not shift from page 9 to 10. */\n\n/* The root takes focus when the app's hold disables the button that had it\n (`pagination.md`, A11y), so it draws the one focus
|
|
1
|
+
{"version":3,"file":"pagination.module.js","names":[],"sources":["../../../../recipes/src/structure/pagination.module.css"],"sourcesContent":["/* Pagination — `design/components/pagination.md`.\n *\n * The controls are Buttons, or links in Button's look when the pages have\n * addresses, and the row is an Inline. This file keeps each control at least\n * square, so the row does not shift from page 9 to 10. */\n\n/* The root takes focus when the app's hold disables the button that had it\n (`pagination.md`, A11y), so it draws the one focus mark. It has the\n controls' corners, so the mark follows the row's edge. */\n.pagination {\n composes: focusRing from '../conventions/focus.module.css';\n display: inline-flex;\n border-radius: var(--pm-radius-control);\n}\n\n.pagination button {\n min-inline-size: var(--pm-control-height-sm);\n}\n\n/* A control drawn as a link, when the app gives the pages addresses (`pagination.md`). It is\n the Button it replaces, by reference, as Link's button variant is: composing `.button` brings\n the base, the sizes, every rest, hover and active cell, the press feedback and the focus mark,\n all keyed off the `data-variant` × `data-tone` × `data-size` attributes the link sets. This rule\n removes what an `<a>` has and a `<button>` does not, the browser's underline, and keeps the\n link at least square, as the rule above keeps a button. */\n.link {\n composes: button from '../controls/button.module.css';\n min-inline-size: var(--pm-control-height-sm);\n text-decoration: none;\n}\n\n/* Button's two content slots, composed: the label that truncates with an ellipsis, and the\n glyph's box. */\n.linkLabel {\n composes: label from '../controls/button.module.css';\n}\n\n.linkGlyph {\n composes: glyph from '../controls/button.module.css';\n}\n\n/* The name tip (`nameTip` in `@polymorph/engine`) of a direction drawn as a link: its label,\n shown on hover and keyboard focus because the link draws only its arrow, as on the icon-only\n Button it replaces. It is Button's tip, composed. */\n.linkTip {\n composes: tip from '../controls/button.module.css';\n}\n\n/* Stands for pages that are not offered. Sized like a number button so the row\n spacing stays even. */\n.ellipsis {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n inline-size: var(--pm-control-height-sm);\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-muted);\n user-select: none;\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/rich-text-content.module.css
|
|
2
|
-
var e = "_root_1q2y5_16 _root_z92xs_10", t = "_list_1q2y5_20 _list_z92xs_21", n = "_item_1q2y5_24 _item_z92xs_31", r = "_quote_1q2y5_28 _quote_z92xs_44", i = "_heading_1q2y5_36 _heading_1t0qx_6", a = "_code_1q2y5_42 _code_hc07h_7", o = "_entity_1q2y5_53", s = "_annotation_1q2y5_76", c = "_pressable_1q2y5_103
|
|
2
|
+
var e = "_root_1q2y5_16 _root_z92xs_10", t = "_list_1q2y5_20 _list_z92xs_21", n = "_item_1q2y5_24 _item_z92xs_31", r = "_quote_1q2y5_28 _quote_z92xs_44", i = "_heading_1q2y5_36 _heading_1t0qx_6", a = "_code_1q2y5_42 _code_hc07h_7", o = "_entity_1q2y5_53", s = "_annotation_1q2y5_76", c = "_pressable_1q2y5_103 _focusRing_1hr3n_49", l = "_actions_1q2y5_111", u = "_status_1q2y5_117 _visuallyHidden_qxi8b_14", d = {
|
|
3
3
|
root: e,
|
|
4
4
|
list: t,
|
|
5
5
|
item: n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/section-nav.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_nav_1f7f2_11", t = "_list_1f7f2_15", n = "_item_1f7f2_26", r = "_link_1f7f2_32 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", i = "_label_1f7f2_54", a = {
|
|
3
3
|
nav: e,
|
|
4
4
|
list: t,
|
|
5
5
|
item: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-nav.module.js","names":[],"sources":["../../../../recipes/src/structure/section-nav.module.css"],"sourcesContent":["/* SectionNav — `design/components/section-nav.md`.\n *\n * A row of links that wraps, so every item is on screen at any width. The\n * current item takes the selection treatment the AppShell rail gives its own,\n * so a current location looks the same at both levels.\n *\n * Nothing slides between items: they are pages, and navigation does not\n * animate (the AppShell rail's law). Colour and press feedback come from\n * `stateFeedback` and `pressable`. */\n\n.nav {\n min-inline-size: 0;\n}\n\n.list {\n display: flex;\n flex-wrap: wrap;\n gap: var(--pm-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n/* A flex item is as wide as its content at least. The row's width is the cap,\n so a label wider than the row is clipped and does not widen the page. */\n.item {\n display: flex;\n min-inline-size: 0;\n max-inline-size: 100%;\n}\n\n.link {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback pressable from '../conventions/motion.module.css';\n display: inline-flex;\n align-items: center;\n min-inline-size: 0;\n block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n\n /* The row is navigation, not prose, so the user agent's underline is removed. */\n text-decoration: none;\n cursor: pointer;\n background: transparent;\n border-radius: var(--pm-radius-md);\n}\n\n.label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* The current item uses the selection treatment (`design/components/README.md`),\n not a persistent hover, so the current location reads as chosen, not hovered. */\n.link[aria-current='page'] {\n color: var(--pm-selection-text);\n background: var(--pm-selection-bg);\n}\n\n/* Selection takes precedence over hover: if hover restyled the current item,\n the current location would flicker with the pointer. */\n.link:hover:not([aria-current='page']) {\n color: var(--pm-text-primary);\n background: var(--pm-bg-subtle);\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"section-nav.module.js","names":[],"sources":["../../../../recipes/src/structure/section-nav.module.css"],"sourcesContent":["/* SectionNav — `design/components/section-nav.md`.\n *\n * A row of links that wraps, so every item is on screen at any width. The\n * current item takes the selection treatment the AppShell rail gives its own,\n * so a current location looks the same at both levels.\n *\n * Nothing slides between items: they are pages, and navigation does not\n * animate (the AppShell rail's law). Colour and press feedback come from\n * `stateFeedback` and `pressable`. */\n\n.nav {\n min-inline-size: 0;\n}\n\n.list {\n display: flex;\n flex-wrap: wrap;\n gap: var(--pm-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n/* A flex item is as wide as its content at least. The row's width is the cap,\n so a label wider than the row is clipped and does not widen the page. */\n.item {\n display: flex;\n min-inline-size: 0;\n max-inline-size: 100%;\n}\n\n.link {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback pressable from '../conventions/motion.module.css';\n display: inline-flex;\n align-items: center;\n min-inline-size: 0;\n block-size: var(--pm-control-height-sm);\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-secondary);\n\n /* The row is navigation, not prose, so the user agent's underline is removed. */\n text-decoration: none;\n cursor: pointer;\n background: transparent;\n border-radius: var(--pm-radius-md);\n}\n\n.label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* The current item uses the selection treatment (`design/components/README.md`),\n not a persistent hover, so the current location reads as chosen, not hovered. */\n.link[aria-current='page'] {\n color: var(--pm-selection-text);\n background: var(--pm-selection-bg);\n}\n\n/* Selection takes precedence over hover: if hover restyled the current item,\n the current location would flicker with the pointer. */\n.link:hover:not([aria-current='page']) {\n color: var(--pm-text-primary);\n background: var(--pm-bg-subtle);\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.link[aria-current='page']:focus-visible {\n --pm-focus-mark: currentcolor;\n --pm-focus-inset: var(--pm-focus-width);\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/stepper.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_root_1tegq_14", t = "_step_1tegq_29", n = "_control_1tegq_45 _focusAround_1hr3n_95 _stateFeedback_lkjqs_17", r = "_indicator_1tegq_61 _stateFeedback_lkjqs_17", i = "_copy_1tegq_78", a = "_label_1tegq_84 _stateFeedback_lkjqs_17", o = "_description_1tegq_93", s = "_spoken_1tegq_105", c = "_connector_1tegq_118", l = "_check_1tegq_198", u = {
|
|
3
3
|
root: e,
|
|
4
4
|
step: t,
|
|
5
5
|
control: n,
|
|
@@ -10,7 +10,7 @@ var e = "_root_ho77x_14", t = "_step_ho77x_29", n = "_control_ho77x_45 _focusRin
|
|
|
10
10
|
spoken: s,
|
|
11
11
|
connector: c,
|
|
12
12
|
check: l,
|
|
13
|
-
"pm-stepper-pop": "_pm-stepper-
|
|
13
|
+
"pm-stepper-pop": "_pm-stepper-pop_1tegq_1"
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
export { l as check, c as connector, n as control, i as copy, u as default, o as description, r as indicator, a as label, e as root, s as spoken, t as step };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.module.js","names":[],"sources":["../../../../recipes/src/structure/stepper.module.css"],"sourcesContent":["/* Stepper — `design/components/stepper.md`.\n *\n * Progress uses *accent*, not the selection roles: a finished step is not a\n * selected row, and selection stays with Calendar, Command and the rails.\n *\n * Emphasis is by colour: completed labels are `text.primary` and upcoming ones\n * `text.secondary`, neither bolder. Weight belongs to the type step (the\n * mono-personality rule). */\n\n/* The row wraps. Steps that do not fit the container move to the next line,\n in order, with the row's gap between the lines. A step's label is content,\n so a narrow container changes where the steps sit and never cuts or covers\n one (`docs/layout.md`). */\n.root {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--pm-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n/* Every step but the last flexes, so the connectors take the spare space, not\n the labels. A step is never narrower than its indicator, the longest word of\n its copy and its connector's minimum: that floor is what the row wraps on.\n With a floor of zero a step shrinks under its own label, and the label is\n drawn over the step after it. */\n.step {\n display: flex;\n flex: 1;\n gap: var(--pm-space-4);\n align-items: flex-start;\n min-inline-size: min-content;\n}\n\n.step:last-child {\n flex: none;\n}\n\n/* One class for both forms of a step: a `button` when it is revisitable and a\n `span` when it is not. Neither adds its own type or colour. It shrinks to\n the step's width, so a label of several words takes a second line inside its\n step before the step takes a line of its own. */\n.control {\n composes:
|
|
1
|
+
{"version":3,"file":"stepper.module.js","names":[],"sources":["../../../../recipes/src/structure/stepper.module.css"],"sourcesContent":["/* Stepper — `design/components/stepper.md`.\n *\n * Progress uses *accent*, not the selection roles: a finished step is not a\n * selected row, and selection stays with Calendar, Command and the rails.\n *\n * Emphasis is by colour: completed labels are `text.primary` and upcoming ones\n * `text.secondary`, neither bolder. Weight belongs to the type step (the\n * mono-personality rule). */\n\n/* The row wraps. Steps that do not fit the container move to the next line,\n in order, with the row's gap between the lines. A step's label is content,\n so a narrow container changes where the steps sit and never cuts or covers\n one (`docs/layout.md`). */\n.root {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--pm-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n/* Every step but the last flexes, so the connectors take the spare space, not\n the labels. A step is never narrower than its indicator, the longest word of\n its copy and its connector's minimum: that floor is what the row wraps on.\n With a floor of zero a step shrinks under its own label, and the label is\n drawn over the step after it. */\n.step {\n display: flex;\n flex: 1;\n gap: var(--pm-space-4);\n align-items: flex-start;\n min-inline-size: min-content;\n}\n\n.step:last-child {\n flex: none;\n}\n\n/* One class for both forms of a step: a `button` when it is revisitable and a\n `span` when it is not. Neither adds its own type or colour. It shrinks to\n the step's width, so a label of several words takes a second line inside its\n step before the step takes a line of its own. */\n.control {\n composes: focusAround from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n flex: 0 1 auto;\n min-inline-size: 0;\n gap: var(--pm-space-3);\n align-items: flex-start;\n padding: 0;\n font: inherit;\n color: inherit;\n text-align: start;\n background: transparent;\n border: 0;\n}\n\n.indicator {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n inline-size: var(--pm-space-6);\n block-size: var(--pm-space-6);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n font-variant-numeric: var(--pm-font-numeric);\n border-radius: var(--pm-radius-pill);\n}\n\n.copy {\n display: flex;\n flex-direction: column;\n min-inline-size: 0;\n}\n\n.label {\n composes: stateFeedback from '../conventions/motion.module.css';\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}\n\n.description {\n margin-block-start: 2px;\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}\n\n/* Read aloud, never shown: \"step 2 of 4, current\" is what the circle means, and\n the circle itself is not announced. */\n.spoken {\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/* The connector ------------------------------------------------------------- */\n\n.connector {\n flex: 1;\n min-inline-size: var(--pm-space-6);\n block-size: 1px;\n\n /* Centred on the indicator rather than the step. Otherwise a two-line label\n would push the line below the circles it joins. */\n margin-block-start: calc(var(--pm-space-6) / 2);\n background: var(--pm-border-default);\n\n /* The fill is a colour change over `surface` × `standard`. Nothing moves, so\n reduced motion has nothing to change. */\n transition: background-color var(--pm-motion-duration-surface) var(--pm-motion-easing-standard);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* A completed step is a lit object. In a flat system the shadow tokens are flat,\n so no branch is needed: a recipe never knows its house system. */\n.step[data-state='completed'] .indicator {\n color: var(--pm-accent-contrast);\n background: var(--pm-accent-bg);\n box-shadow: var(--pm-shadow-seat), var(--pm-shadow-inset-top);\n}\n\n/* The connector *after* a completed step is filled. It keys on its own\n attribute, not the step's `data-state`, because the fill follows position and\n the state may be the error flag. */\n.connector[data-filled] {\n background: var(--pm-accent-bg);\n}\n\n.step[data-state='active'] .indicator {\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n border: 1px solid var(--pm-accent-bg);\n}\n\n.step[data-state='upcoming'] .indicator {\n color: var(--pm-text-muted);\n background: transparent;\n border: 1px solid var(--pm-border-default);\n}\n\n/* The danger family, like the completed check but in Toast's danger tone: the\n `error` glyph replaces the number. */\n.step[data-state='error'] .indicator {\n color: var(--pm-danger-text);\n background: var(--pm-danger-subtle);\n border: 1px solid var(--pm-danger-border);\n}\n\n/* As in Timeline, the indicator shows the error and the label keeps its walk\n colour, the visited one, because only a completed or active step can have\n failed data. */\n.step[data-state='completed'] .label,\n.step[data-state='active'] .label,\n.step[data-state='error'] .label {\n color: var(--pm-text-primary);\n}\n\n.step[data-state='upcoming'] .label {\n color: var(--pm-text-secondary);\n}\n\n/* Only revisitable steps get a pointer and hover. An upcoming step is not a\n control. */\n.step[data-interactive] .control {\n cursor: pointer;\n}\n\n.step[data-interactive] .control:hover .label {\n color: var(--pm-accent-text);\n}\n\n/* `stepper.indicator`: `spring-pop` on the newly completed step. The CSS version\n is the same 0.5 scale on the enter curve, not spring `snappy`, as in Checkbox:\n the check swaps in rather than entering through the engine's presence\n wrapper, and at this size a bezier and a spring look alike. It is a wizard's\n one pop: expressive amplifies it and `none` removes it, through the tokens. */\n.check {\n display: inline-flex;\n animation: pm-stepper-pop var(--pm-motion-duration-control) var(--pm-motion-easing-enter);\n}\n\n@keyframes pm-stepper-pop {\n from {\n opacity: 0;\n transform: scale(0.5);\n }\n}\n\n/* Reduced-motion projection (`design/motion/motion.md`): spring-pop becomes fade. */\n@media (prefers-reduced-motion: reduce) {\n @keyframes pm-stepper-pop {\n from {\n opacity: 0;\n }\n }\n}\n\n/* vertical — the same DOM, with the connector below its indicator ------------ */\n\n.root[data-orientation='vertical'] {\n flex-flow: column nowrap;\n align-items: stretch;\n gap: 0;\n}\n\n.root[data-orientation='vertical'] .step {\n flex: none;\n flex-direction: column;\n gap: var(--pm-space-2);\n}\n\n.root[data-orientation='vertical'] .connector {\n flex: none;\n min-inline-size: 0;\n inline-size: 1px;\n min-block-size: var(--pm-space-6);\n block-size: auto;\n margin-block: 0;\n margin-inline-start: calc(var(--pm-space-6) / 2);\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/table-of-contents.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_nav_gcei9_14", t = "_label_gcei9_24", n = "_list_gcei9_36", r = "_sublist_gcei9_46", i = "_item_gcei9_57", a = "_link_gcei9_63 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", o = "_harness_gcei9_114", s = "_harnessNarrow_gcei9_127", c = "_harnessPage_gcei9_142 _focusRing_1hr3n_49", l = "_harnessSection_gcei9_153", u = {
|
|
3
3
|
nav: e,
|
|
4
4
|
label: t,
|
|
5
5
|
list: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-of-contents.module.js","names":[],"sources":["../../../../recipes/src/structure/table-of-contents.module.css"],"sourcesContent":["/* TableOfContents — `design/components/table-of-contents.md`.\n *\n * A column of links under an overline. A subsection's link sits one step in,\n * on the inline-start side, which logical properties mirror in a right-to-left\n * page. The current item takes SectionNav's selection treatment, so a current\n * location looks the same in the rail, in a section's row and in a page's\n * index.\n *\n * Nothing slides between items when the current one changes: the mark follows\n * the reader's scroll, and a moving mark beside moving text would draw the eye\n * away from what is read. Colour and press feedback come from `stateFeedback`\n * and `pressable`. */\n\n.nav {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-2);\n min-inline-size: 0;\n}\n\n/* The overline: the system's one section-heading recipe (SettingsRow.Group's,\n and the AppShell rail's group label). It is text, not a heading element,\n because the page's headings are its sections, and the list names them. */\n.label {\n margin: 0;\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n text-transform: uppercase;\n}\n\n.list {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n/* A section's subsections, one step in. */\n.sublist {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-1);\n margin: 0;\n margin-block-start: var(--pm-space-1);\n padding: 0;\n padding-inline-start: var(--pm-space-4);\n list-style: none;\n}\n\n.item {\n min-inline-size: 0;\n}\n\n/* A label wraps onto further lines, because the words that tell two sections\n apart are often at the end of a long heading. */\n.link {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback pressable from '../conventions/motion.module.css';\n display: flex;\n align-items: center;\n min-block-size: var(--pm-control-height-sm);\n padding-block: var(--pm-space-2);\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 overflow-wrap: anywhere;\n\n /* The list is navigation, not prose, so the user agent's underline is removed. */\n text-decoration: none;\n border-radius: var(--pm-radius-md);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* The selection treatment (`design/components/README.md`): a filled shape as\n well as a colour, so the current item is not marked by colour alone. */\n.link[aria-current='location'] {\n color: var(--pm-selection-text);\n background: var(--pm-selection-bg);\n}\n\n/* Selection takes precedence over hover, so the current item does not flicker\n with the pointer. */\n.link:hover:not([aria-current='location']) {\n color: var(--pm-text-primary);\n background: var(--pm-bg-subtle);\n}\n\n/* Fixture boxes ------------------------------------------------------------- */\n\n/* The states fixture's page: the list beside a box that scrolls, holding the\n sections the items name. The box is the page the list follows. It is built\n from tokens because the CSS law covers every file in this package. The list\n is 216px wide (96 + 96 + 24) and the page at least 288px, so in a column\n narrower than both the list sits above the page. */\n.harness {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--pm-space-6);\n inline-size: 100%;\n}\n\n.harness > .nav {\n flex: 0 0 calc(var(--pm-space-10) * 2 + var(--pm-space-6));\n}\n\n/* The same box at a phone's width, 360px (288 + 48 + 24). */\n.harnessNarrow {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--pm-space-6);\n inline-size: calc(var(--pm-space-10) * 3 + var(--pm-space-8) + var(--pm-space-6));\n max-inline-size: 100%;\n}\n\n.harnessNarrow > .nav {\n flex: 0 0 calc(var(--pm-space-10) * 2 + var(--pm-space-6));\n}\n\n/* 384px tall (96 × 4). A scroll region that holds no control is a tab stop,\n so a keyboard reader can scroll it. */\n.harnessPage {\n composes: focusRing from '../conventions/focus.module.css';\n flex: 1 1 calc(var(--pm-space-10) * 3);\n min-inline-size: 0;\n block-size: calc(var(--pm-space-10) * 4);\n padding-inline: var(--pm-space-5);\n overflow-y: auto;\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-md);\n}\n\n.harnessSection {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-3);\n min-block-size: calc(var(--pm-space-10) * 2);\n padding-block: var(--pm-space-5);\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"table-of-contents.module.js","names":[],"sources":["../../../../recipes/src/structure/table-of-contents.module.css"],"sourcesContent":["/* TableOfContents — `design/components/table-of-contents.md`.\n *\n * A column of links under an overline. A subsection's link sits one step in,\n * on the inline-start side, which logical properties mirror in a right-to-left\n * page. The current item takes SectionNav's selection treatment, so a current\n * location looks the same in the rail, in a section's row and in a page's\n * index.\n *\n * Nothing slides between items when the current one changes: the mark follows\n * the reader's scroll, and a moving mark beside moving text would draw the eye\n * away from what is read. Colour and press feedback come from `stateFeedback`\n * and `pressable`. */\n\n.nav {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-2);\n min-inline-size: 0;\n}\n\n/* The overline: the system's one section-heading recipe (SettingsRow.Group's,\n and the AppShell rail's group label). It is text, not a heading element,\n because the page's headings are its sections, and the list names them. */\n.label {\n margin: 0;\n padding-inline: var(--pm-space-3);\n font-family: var(--pm-text-xs-family);\n font-size: var(--pm-text-xs-size);\n font-weight: var(--pm-text-xs-weight);\n line-height: var(--pm-text-xs-line-height);\n letter-spacing: var(--pm-text-xs-tracking);\n color: var(--pm-text-muted);\n text-transform: uppercase;\n}\n\n.list {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-1);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n/* A section's subsections, one step in. */\n.sublist {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-1);\n margin: 0;\n margin-block-start: var(--pm-space-1);\n padding: 0;\n padding-inline-start: var(--pm-space-4);\n list-style: none;\n}\n\n.item {\n min-inline-size: 0;\n}\n\n/* A label wraps onto further lines, because the words that tell two sections\n apart are often at the end of a long heading. */\n.link {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback pressable from '../conventions/motion.module.css';\n display: flex;\n align-items: center;\n min-block-size: var(--pm-control-height-sm);\n padding-block: var(--pm-space-2);\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 overflow-wrap: anywhere;\n\n /* The list is navigation, not prose, so the user agent's underline is removed. */\n text-decoration: none;\n border-radius: var(--pm-radius-md);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* The selection treatment (`design/components/README.md`): a filled shape as\n well as a colour, so the current item is not marked by colour alone. */\n.link[aria-current='location'] {\n color: var(--pm-selection-text);\n background: var(--pm-selection-bg);\n}\n\n/* Selection takes precedence over hover, so the current item does not flicker\n with the pointer. */\n.link:hover:not([aria-current='location']) {\n color: var(--pm-text-primary);\n background: var(--pm-bg-subtle);\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.link[aria-current='location']:focus-visible {\n --pm-focus-mark: currentcolor;\n --pm-focus-inset: var(--pm-focus-width);\n}\n\n/* Fixture boxes ------------------------------------------------------------- */\n\n/* The states fixture's page: the list beside a box that scrolls, holding the\n sections the items name. The box is the page the list follows. It is built\n from tokens because the CSS law covers every file in this package. The list\n is 216px wide (96 + 96 + 24) and the page at least 288px, so in a column\n narrower than both the list sits above the page. */\n.harness {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--pm-space-6);\n inline-size: 100%;\n}\n\n.harness > .nav {\n flex: 0 0 calc(var(--pm-space-10) * 2 + var(--pm-space-6));\n}\n\n/* The same box at a phone's width, 360px (288 + 48 + 24). */\n.harnessNarrow {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n gap: var(--pm-space-6);\n inline-size: calc(var(--pm-space-10) * 3 + var(--pm-space-8) + var(--pm-space-6));\n max-inline-size: 100%;\n}\n\n.harnessNarrow > .nav {\n flex: 0 0 calc(var(--pm-space-10) * 2 + var(--pm-space-6));\n}\n\n/* 384px tall (96 × 4). A scroll region that holds no control is a tab stop,\n so a keyboard reader can scroll it. */\n.harnessPage {\n composes: focusRing from '../conventions/focus.module.css';\n flex: 1 1 calc(var(--pm-space-10) * 3);\n min-inline-size: 0;\n block-size: calc(var(--pm-space-10) * 4);\n padding-inline: var(--pm-space-5);\n overflow-y: auto;\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-md);\n}\n\n.harnessSection {\n display: flex;\n flex-direction: column;\n gap: var(--pm-space-3);\n min-block-size: calc(var(--pm-space-10) * 2);\n padding-block: var(--pm-space-5);\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/table.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_wrapper_1uj3d_15 _focusRing_1hr3n_49", t = "_table_1uj3d_33", n = "_captionHidden_1uj3d_44 _visuallyHidden_qxi8b_14", r = "_caption_1uj3d_44", i = "_head_1uj3d_77", a = "_header_1uj3d_87 _focusRing_1hr3n_49", o = "_cell_1uj3d_100 _focusRing_1hr3n_49 _stateFeedback_lkjqs_17", s = "_foot_1uj3d_121", c = "_sortButton_1uj3d_134 _focusAround_1hr3n_95 _stateFeedback_lkjqs_17", l = "_sortIcon_1uj3d_154", u = "_row_1uj3d_191", d = {
|
|
3
3
|
wrapper: e,
|
|
4
4
|
table: t,
|
|
5
5
|
captionHidden: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.module.js","names":[],"sources":["../../../../recipes/src/structure/table.module.css"],"sourcesContent":["/* Table — `design/components/table.md`.\n *\n * No zebra striping, because row borders set the rhythm at every density. No\n * outer border or radius, because the page decides the surface.\n *\n * Selection wins over hover: the reader's choice matters more than the\n * pointer's position. */\n\n/* The wrapper is the container as well as the scroll port --------------------\n *\n * The box that decides whether the table scrolls, and the container the table\n * responds to. Nothing here measures the viewport: a table in a narrow dashboard\n * column is cramped even on a 27-inch monitor, which a media query cannot see\n * (`docs/layout.md`). */\n.wrapper {\n composes: focusRing from '../conventions/focus.module.css';\n container-type: inline-size;\n min-inline-size: 0;\n max-inline-size: 100%;\n}\n\n/* Scrollable only when there is something to scroll, which the sticky header\n needs.\n *\n * `overflow-x: auto` forces the *block* axis to `auto` too (CSS overflow §3), so\n * an always-scrollable wrapper would be the sticky header's scroll container,\n * and with no height the header would never stick. With overflow visible it\n * sticks to the page's scroller, which in an AppShell is the content region. */\n.wrapper[data-overflowing] {\n overflow-x: auto;\n}\n\n.table {\n inline-size: 100%;\n border-collapse: collapse;\n}\n\n/* The table's own name -------------------------------------------------------\n *\n * Two classes, not one with a state attribute, because the forms share nothing:\n * one is the clip recipe and the other a line of text. Composing\n * `visuallyHidden` and undoing five declarations would read backwards.\n *\n * `.captionHidden` is the default, because a table's name is usually already\n * above it. `text-align: start` overrides the UA's centred caption. */\n.captionHidden {\n composes: visuallyHidden from '../conventions/a11y.module.css';\n}\n\n.caption {\n padding-block-end: 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\n/* Pan, do not crush ----------------------------------------------------------\n *\n * Without a minimum width, a narrow table wraps every cell to one word per line.\n * `max-content` keeps the columns at their needed width, the wrapper scrolls,\n * and no content is hidden (`docs/layout.md`).\n *\n * Only in the narrow range, which is the key decision: an unconditional\n * `max-content` would stop prose columns wrapping and make a table that fits\n * scroll sideways on a desktop. `36rem` matches the toolbar's stacking point, a\n * rem literal because a breakpoint is geometry, not theme. */\n@container (width < 36rem) {\n .table {\n min-inline-size: max-content;\n }\n}\n\n.head {\n /* The header's bottom edge. A shadow here would add elevation that a flat theme\n does not have. */\n border-block-end: 1px solid var(--pm-border-default);\n}\n\n/* Headers and cells always compose the focus ring. Outside a grid it never\n shows, because a `<td>` without `tabindex` is never `:focus-visible`. In a\n grid it shows where focus is. Composing it, rather than an outline under\n `[role='grid']`, keeps one focus ring in the system. */\n.header {\n composes: focusRing from '../conventions/focus.module.css';\n padding: var(--pm-space-3) var(--pm-space-4);\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-secondary);\n text-align: start;\n text-transform: uppercase;\n}\n\n.cell {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n padding: var(--pm-space-3) var(--pm-space-4);\n max-inline-size: calc(var(--pm-space-10) * 5);\n overflow-wrap: anywhere;\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n\n /* Every body row keeps its border, including the last, because the table needs\n a bottom edge as well as the dividers. */\n border-block-end: 1px solid var(--pm-border-subtle);\n}\n\n/* Totals: styled like headers, with the rule mirrored to the top and no bottom\n border, because the foot *is* the table's edge. `numeric` cells keep their\n style, because a total is the column's own figure. */\n.foot .cell {\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-secondary);\n text-transform: uppercase;\n border-block-start: 1px solid var(--pm-border-default);\n border-block-end: 0;\n}\n\n/* The whole header is the target, and it is a real button. */\n.sortButton {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n gap: var(--pm-space-1);\n align-items: center;\n padding: 0;\n font: inherit;\n color: inherit;\n text-transform: inherit;\n cursor: pointer;\n background: transparent;\n border: 0;\n}\n\n/* `table.sorticon`: `fade`, control class, on an always-mounted glyph, so\n `stateFeedback` covers it.\n\n The glyph appears only on approach (hover, keyboard focus, or the sorted\n column), because permanent ↑↓ pairs on every header are noise. */\n.sortIcon {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n opacity: 0;\n\n /* The glyph *fades* in, because an instant change would pop. Colour also\n transitions for the change to active. Opacity is not movement, so reduced\n motion leaves it. */\n transition:\n opacity var(--pm-motion-duration-control) var(--pm-motion-easing-standard),\n color var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n.sortButton:focus-visible .sortIcon,\n.header[data-sortable]:hover .sortIcon,\n.sortIcon[data-active] {\n opacity: 1;\n}\n\n/* numeric — right-aligned, figures that line up in a column ------------------\n Tabular figures from the numeric token, in the column's own font. A mono\n family would change every figure column regardless of the theme. */\n\n.header[data-numeric],\n.cell[data-numeric] {\n font-variant-numeric: var(--pm-font-numeric);\n text-align: end;\n}\n\n/* states -------------------------------------------------------------------- */\n\n.row[data-interactive] {\n cursor: pointer;\n}\n\n/* A selected row uses the selection colours, not the hover colours. Its fill is\n the selected surface, not the selection fill: a row's cells hold text in\n every role, and controls, and a system may draw the selection fill as its\n ink. With a hue the selected surface has a hover step, so pointing at a\n selected row still gives feedback. A system with no hue has none: its two\n selected surfaces are one colour, because secondary text is at its floor on\n it, and a selected row looks the same under the pointer. */\n.row[data-selected] .cell {\n background: var(--pm-selection-surface);\n}\n\n/* The last body row keeps its border except above a foot, whose stronger top\n rule is the edge, so the lines do not double (as with the header's single\n rule). */\ntbody:has(+ .foot) .row:last-child .cell {\n border-block-end: 0;\n}\n\n.row[data-interactive][data-selected]:hover .cell {\n background: var(--pm-selection-surface-hover);\n}\n\n.sortIcon[data-active] {\n color: var(--pm-accent-text);\n}\n\n.header[data-sortable]:hover .sortButton {\n color: var(--pm-text-primary);\n}\n\n/* After selection and excluding it, because the state the reader chose wins over\n the pointer position. */\n.row[data-interactive]:hover:not([data-selected]) .cell {\n background: var(--pm-bg-subtle);\n}\n\n/* sticky header — the border-bottom carries the edge, and the fill has to be\n opaque or the rows scroll through it ----------------------------------------\n *\n * The header is raised over the rows. A positioned box paints above an earlier\n * positioned box, and the rows come after the header: a Checkbox's box in a\n * cell is `relative`, and DataTable's detail is `sticky`, so without the lift\n * each one is drawn across the header as it scrolls under it. `raise` is the\n * stacking scale's step for a lift inside one member (`docs/layout.md`).\n *\n * The wrapper isolates the table, so the lift stays inside it. Without that\n * the header would also be raised over whatever shares the page's stacking\n * context with the table, such as the shell's skip link, which is on `raise`\n * too.\n *\n * The row groups after the header are isolated too. A member in a cell may\n * lift a part of itself on `raise`, as SplitButton lifts its focused half. A\n * later box on the header's own step paints above the header, and inside an\n * isolated row group that lift is over the rows only. */\n\n.wrapper[data-sticky-header],\n.wrapper[data-sticky-header] .head ~ * {\n isolation: isolate;\n}\n\n.wrapper[data-sticky-header] .head {\n position: sticky;\n inset-block-start: 0;\n z-index: var(--pm-z-raise);\n background: var(--pm-bg-surface);\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"table.module.js","names":[],"sources":["../../../../recipes/src/structure/table.module.css"],"sourcesContent":["/* Table — `design/components/table.md`.\n *\n * No zebra striping, because row borders set the rhythm at every density. No\n * outer border or radius, because the page decides the surface.\n *\n * Selection wins over hover: the reader's choice matters more than the\n * pointer's position. */\n\n/* The wrapper is the container as well as the scroll port --------------------\n *\n * The box that decides whether the table scrolls, and the container the table\n * responds to. Nothing here measures the viewport: a table in a narrow dashboard\n * column is cramped even on a 27-inch monitor, which a media query cannot see\n * (`docs/layout.md`). */\n.wrapper {\n composes: focusRing from '../conventions/focus.module.css';\n container-type: inline-size;\n min-inline-size: 0;\n max-inline-size: 100%;\n}\n\n/* Scrollable only when there is something to scroll, which the sticky header\n needs.\n *\n * `overflow-x: auto` forces the *block* axis to `auto` too (CSS overflow §3), so\n * an always-scrollable wrapper would be the sticky header's scroll container,\n * and with no height the header would never stick. With overflow visible it\n * sticks to the page's scroller, which in an AppShell is the content region. */\n.wrapper[data-overflowing] {\n overflow-x: auto;\n}\n\n.table {\n inline-size: 100%;\n border-collapse: collapse;\n}\n\n/* The table's own name -------------------------------------------------------\n *\n * Two classes, not one with a state attribute, because the forms share nothing:\n * one is the clip recipe and the other a line of text. Composing\n * `visuallyHidden` and undoing five declarations would read backwards.\n *\n * `.captionHidden` is the default, because a table's name is usually already\n * above it. `text-align: start` overrides the UA's centred caption. */\n.captionHidden {\n composes: visuallyHidden from '../conventions/a11y.module.css';\n}\n\n.caption {\n padding-block-end: 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\n/* Pan, do not crush ----------------------------------------------------------\n *\n * Without a minimum width, a narrow table wraps every cell to one word per line.\n * `max-content` keeps the columns at their needed width, the wrapper scrolls,\n * and no content is hidden (`docs/layout.md`).\n *\n * Only in the narrow range, which is the key decision: an unconditional\n * `max-content` would stop prose columns wrapping and make a table that fits\n * scroll sideways on a desktop. `36rem` matches the toolbar's stacking point, a\n * rem literal because a breakpoint is geometry, not theme. */\n@container (width < 36rem) {\n .table {\n min-inline-size: max-content;\n }\n}\n\n.head {\n /* The header's bottom edge. A shadow here would add elevation that a flat theme\n does not have. */\n border-block-end: 1px solid var(--pm-border-default);\n}\n\n/* Headers and cells always compose the focus ring. Outside a grid it never\n shows, because a `<td>` without `tabindex` is never `:focus-visible`. In a\n grid it shows where focus is. Composing it, rather than an outline under\n `[role='grid']`, keeps one focus ring in the system. */\n.header {\n composes: focusRing from '../conventions/focus.module.css';\n padding: var(--pm-space-3) var(--pm-space-4);\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-secondary);\n text-align: start;\n text-transform: uppercase;\n}\n\n.cell {\n composes: focusRing from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n padding: var(--pm-space-3) var(--pm-space-4);\n max-inline-size: calc(var(--pm-space-10) * 5);\n overflow-wrap: anywhere;\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n\n /* Every body row keeps its border, including the last, because the table needs\n a bottom edge as well as the dividers. */\n border-block-end: 1px solid var(--pm-border-subtle);\n}\n\n/* Totals: styled like headers, with the rule mirrored to the top and no bottom\n border, because the foot *is* the table's edge. `numeric` cells keep their\n style, because a total is the column's own figure. */\n.foot .cell {\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-secondary);\n text-transform: uppercase;\n border-block-start: 1px solid var(--pm-border-default);\n border-block-end: 0;\n}\n\n/* The whole header is the target, and it is a real button. */\n.sortButton {\n composes: focusAround from '../conventions/focus.module.css';\n composes: stateFeedback from '../conventions/motion.module.css';\n display: inline-flex;\n gap: var(--pm-space-1);\n align-items: center;\n padding: 0;\n font: inherit;\n color: inherit;\n text-transform: inherit;\n cursor: pointer;\n background: transparent;\n border: 0;\n}\n\n/* `table.sorticon`: `fade`, control class, on an always-mounted glyph, so\n `stateFeedback` covers it.\n\n The glyph appears only on approach (hover, keyboard focus, or the sorted\n column), because permanent ↑↓ pairs on every header are noise. */\n.sortIcon {\n display: inline-flex;\n flex: none;\n align-items: center;\n color: var(--pm-text-muted);\n opacity: 0;\n\n /* The glyph *fades* in, because an instant change would pop. Colour also\n transitions for the change to active. Opacity is not movement, so reduced\n motion leaves it. */\n transition:\n opacity var(--pm-motion-duration-control) var(--pm-motion-easing-standard),\n color var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n.sortButton:focus-visible .sortIcon,\n.header[data-sortable]:hover .sortIcon,\n.sortIcon[data-active] {\n opacity: 1;\n}\n\n/* numeric — figures that line up in a column ---------------------------------\n Tabular figures from the numeric token, in the column's own font. A mono\n family would change every figure column regardless of the theme. The side of\n the column the figures sit on is the system's choice\n (`overrides.numeric.align`): `end` by default, so the ones line up, or\n `start`, where the column's label begins. Header, body and foot cells read\n the same token, so a total stays under its column's figures. */\n\n.header[data-numeric],\n.cell[data-numeric] {\n font-variant-numeric: var(--pm-font-numeric);\n text-align: var(--pm-numeric-align);\n}\n\n/* states -------------------------------------------------------------------- */\n\n.row[data-interactive] {\n cursor: pointer;\n}\n\n/* A selected row uses the selection colours, not the hover colours. Its fill is\n the selected surface, not the selection fill: a row's cells hold text in\n every role, and controls, and a system may draw the selection fill as its\n ink. With a hue the selected surface has a hover step, so pointing at a\n selected row still gives feedback. A system with no hue has none: its two\n selected surfaces are one colour, because secondary text is at its floor on\n it, and a selected row looks the same under the pointer. */\n.row[data-selected] .cell {\n background: var(--pm-selection-surface);\n}\n\n/* The last body row keeps its border except above a foot, whose stronger top\n rule is the edge, so the lines do not double (as with the header's single\n rule). */\ntbody:has(+ .foot) .row:last-child .cell {\n border-block-end: 0;\n}\n\n.row[data-interactive][data-selected]:hover .cell {\n background: var(--pm-selection-surface-hover);\n}\n\n.sortIcon[data-active] {\n color: var(--pm-accent-text);\n}\n\n.header[data-sortable]:hover .sortButton {\n color: var(--pm-text-primary);\n}\n\n/* After selection and excluding it, because the state the reader chose wins over\n the pointer position. */\n.row[data-interactive]:hover:not([data-selected]) .cell {\n background: var(--pm-bg-subtle);\n}\n\n/* sticky header — the border-bottom carries the edge, and the fill has to be\n opaque or the rows scroll through it ----------------------------------------\n *\n * The header is raised over the rows. A positioned box paints above an earlier\n * positioned box, and the rows come after the header: a Checkbox's box in a\n * cell is `relative`, and DataTable's detail is `sticky`, so without the lift\n * each one is drawn across the header as it scrolls under it. `raise` is the\n * stacking scale's step for a lift inside one member (`docs/layout.md`).\n *\n * The wrapper isolates the table, so the lift stays inside it. Without that\n * the header would also be raised over whatever shares the page's stacking\n * context with the table, such as the shell's skip link, which is on `raise`\n * too.\n *\n * The row groups after the header are isolated too. A member in a cell may\n * lift a part of itself on `raise`, as SplitButton lifts its focused half. A\n * later box on the header's own step paints above the header, and inside an\n * isolated row group that lift is over the rows only. */\n\n.wrapper[data-sticky-header],\n.wrapper[data-sticky-header] .head ~ * {\n isolation: isolate;\n}\n\n.wrapper[data-sticky-header] .head {\n position: sticky;\n inset-block-start: 0;\n z-index: var(--pm-z-raise);\n background: var(--pm-bg-surface);\n}\n"],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../recipes/src/structure/tree.module.css
|
|
2
|
-
var e = "
|
|
2
|
+
var e = "_root_fjb85_10", t = "_group_fjb85_29", n = "_item_fjb85_39", r = "_row_fjb85_45 _stateFeedback_lkjqs_17", i = "_toggle_fjb85_59", a = "_slot_fjb85_60", o = "_chevron_fjb85_70", s = "_text_fjb85_87", c = "_label_fjb85_96", l = "_description_fjb85_100", u = "_status_fjb85_101", d = "_more_fjb85_111", f = "_harness_fjb85_170", p = {
|
|
3
3
|
root: e,
|
|
4
4
|
group: t,
|
|
5
5
|
item: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.module.js","names":[],"sources":["../../../../recipes/src/structure/tree.module.css"],"sourcesContent":["/* Tree — `design/components/tree.md`.\n *\n * Nested lists of rows. An item is the focusable element and its row is what a\n * reader sees: the fill, the indent and the focus ring are the row's, because\n * an open branch's item also holds the rows under it.\n *\n * A row spans the tree's width at every level, so a fill reads as one band, and\n * the level indents the row's content. */\n\n.root {\n /* The level a row sits at, set inline on each row by the member as geometry.\n It defaults to zero, so a row without one sits at the top level. */\n --pm-tree-level: 0;\n\n display: flex;\n flex-direction: column;\n min-inline-size: 0;\n padding: 0;\n margin: 0;\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n list-style: none;\n}\n\n.group {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n/* The item takes focus and draws nothing. Its UA ring is suppressed because the\n row draws the ring. */\n.item {\n outline: none;\n}\n\n/* row ----------------------------------------------------------------------- */\n\n.row {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n align-items: center;\n min-block-size: var(--pm-control-height-sm);\n padding-inline: calc(var(--pm-tree-level) * var(--pm-space-5)) var(--pm-space-3);\n cursor: pointer;\n border-radius: var(--pm-radius-sm);\n}\n\n/* The chevron's target, and the same width before a leaf's label, so a leaf\n aligns with a branch at its level. It is as tall as the row and as wide as\n the smallest target, because a press on it is a different act from a press\n on the row. */\n.toggle,\n.slot {\n display: inline-flex;\n flex: none;\n align-items: center;\n align-self: stretch;\n justify-content: center;\n inline-size: var(--pm-control-height-sm);\n color: var(--pm-text-muted);\n}\n\n.chevron {\n display: inline-flex;\n transition: transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* The icon set has no directional pairs, so a closed branch's chevron is\n mirrored where the page reads right to left. An open one points down in both. */\n[dir='rtl'] .chevron {\n transform: scaleX(-1);\n}\n\n.item[aria-expanded='true'] > .row .chevron {\n transform: rotate(90deg);\n}\n\n/* A flex item is as wide as its content at least. With no minimum the column\n shrinks, and a long word breaks, so a label never widens the tree. */\n.text {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-inline-size: 0;\n padding-block: var(--pm-space-2);\n overflow-wrap: anywhere;\n}\n\n.label {\n color: var(--pm-text-primary);\n}\n\n.description,\n.status {\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-secondary);\n}\n\n/* The row that asks for more of a level is an action, in the colour of a link. */\n.more {\n color: var(--pm-accent-text);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* A busy row and a disabled row answer no press. While its level loads, the\n row that asks is no action, so its words leave the colour of a link. */\n.row[data-busy] {\n cursor: default;\n}\n\n.row[data-busy] .more {\n color: var(--pm-text-secondary);\n}\n\n.item[data-disabled] > .row {\n cursor: not-allowed;\n}\n\n.item[data-disabled] > .row .label,\n.item[data-disabled] > .row .description,\n.item[data-disabled] > .row .toggle {\n color: var(--pm-text-disabled);\n}\n\n/* The focus
|
|
1
|
+
{"version":3,"file":"tree.module.js","names":[],"sources":["../../../../recipes/src/structure/tree.module.css"],"sourcesContent":["/* Tree — `design/components/tree.md`.\n *\n * Nested lists of rows. An item is the focusable element and its row is what a\n * reader sees: the fill, the indent and the focus ring are the row's, because\n * an open branch's item also holds the rows under it.\n *\n * A row spans the tree's width at every level, so a fill reads as one band, and\n * the level indents the row's content. */\n\n.root {\n /* The level a row sits at, set inline on each row by the member as geometry.\n It defaults to zero, so a row without one sits at the top level. */\n --pm-tree-level: 0;\n\n display: flex;\n flex-direction: column;\n min-inline-size: 0;\n padding: 0;\n margin: 0;\n font-family: var(--pm-text-sm-family);\n font-size: var(--pm-text-sm-size);\n font-weight: var(--pm-text-sm-weight);\n line-height: var(--pm-text-sm-line-height);\n letter-spacing: var(--pm-text-sm-tracking);\n color: var(--pm-text-primary);\n list-style: none;\n}\n\n.group {\n display: flex;\n flex-direction: column;\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n/* The item takes focus and draws nothing. Its UA ring is suppressed because the\n row draws the ring. */\n.item {\n outline: none;\n}\n\n/* row ----------------------------------------------------------------------- */\n\n.row {\n composes: stateFeedback from '../conventions/motion.module.css';\n display: flex;\n align-items: center;\n min-block-size: var(--pm-control-height-sm);\n padding-inline: calc(var(--pm-tree-level) * var(--pm-space-5)) var(--pm-space-3);\n cursor: pointer;\n border-radius: var(--pm-radius-sm);\n}\n\n/* The chevron's target, and the same width before a leaf's label, so a leaf\n aligns with a branch at its level. It is as tall as the row and as wide as\n the smallest target, because a press on it is a different act from a press\n on the row. */\n.toggle,\n.slot {\n display: inline-flex;\n flex: none;\n align-items: center;\n align-self: stretch;\n justify-content: center;\n inline-size: var(--pm-control-height-sm);\n color: var(--pm-text-muted);\n}\n\n.chevron {\n display: inline-flex;\n transition: transform var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n/* The icon set has no directional pairs, so a closed branch's chevron is\n mirrored where the page reads right to left. An open one points down in both. */\n[dir='rtl'] .chevron {\n transform: scaleX(-1);\n}\n\n.item[aria-expanded='true'] > .row .chevron {\n transform: rotate(90deg);\n}\n\n/* A flex item is as wide as its content at least. With no minimum the column\n shrinks, and a long word breaks, so a label never widens the tree. */\n.text {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-inline-size: 0;\n padding-block: var(--pm-space-2);\n overflow-wrap: anywhere;\n}\n\n.label {\n color: var(--pm-text-primary);\n}\n\n.description,\n.status {\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-secondary);\n}\n\n/* The row that asks for more of a level is an action, in the colour of a link. */\n.more {\n color: var(--pm-accent-text);\n}\n\n/* states -------------------------------------------------------------------- */\n\n/* A busy row and a disabled row answer no press. While its level loads, the\n row that asks is no action, so its words leave the colour of a link. */\n.row[data-busy] {\n cursor: default;\n}\n\n.row[data-busy] .more {\n color: var(--pm-text-secondary);\n}\n\n.item[data-disabled] > .row {\n cursor: not-allowed;\n}\n\n.item[data-disabled] > .row .label,\n.item[data-disabled] > .row .description,\n.item[data-disabled] > .row .toggle {\n color: var(--pm-text-disabled);\n}\n\n/* The focus mark on the row, with the shared convention's tokens. Restated\n because the focusable element is the item, which holds the rows under it\n too, and the mark belongs to one row. It is drawn inside the row's edge by\n its width at every system's offset: rows share their edges, and a mark\n outside would be cut by the surface around the tree. */\n.item:focus-visible > .row {\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 selected item uses the selection colours, not the hover colours\n (`design/components/README.md`). Its fill is the selected surface, not the\n selection fill: a row holds a label and a description, and the contrast law\n holds every text role on the selected surface. With a hue the selected\n surface has a hover step, so pointing at the selected row still gives\n feedback. A system with no hue has none, as in List. */\n.item[data-selected] > .row {\n background: var(--pm-selection-surface);\n}\n\n.item[data-selected] > .row:hover {\n background: var(--pm-selection-surface-hover);\n}\n\n/* After selection and excluding it, because the state the reader chose wins\n over the pointer position. A disabled row and a busy row show no hover. */\n.item:not([data-selected], [data-disabled]) > .row:hover:not([data-busy]) {\n background: var(--pm-bg-subtle);\n}\n\n/* Fixture box for the spec's long labels at a narrow width: narrower than a\n phone, built from tokens (96 × 2 = 192px at standard density) because the CSS\n law covers every file in this package, fixtures included. */\n.harness {\n inline-size: calc(var(--pm-space-10) * 2);\n max-inline-size: 100%;\n}\n\n/* Reduced-motion projection (`design/motion/motion.md`): the chevron's turn is\n instant. The row's colour feedback stays. */\n@media (prefers-reduced-motion: reduce) {\n .chevron {\n transition: none;\n }\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.js","names":[],"sources":["../../src/overlays/Command.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The command palette (`design/components/command.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/command.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {
|
|
1
|
+
{"version":3,"file":"Command.js","names":[],"sources":["../../src/overlays/Command.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * The command palette (`design/components/command.md`).\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/command.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { computed, onBeforeUnmount, onMounted, ref, useId, useTemplateRef, watch } from 'vue'\n\nimport * as zag from '@zag-js/dialog'\nimport { normalizeProps, useMachine } from '@zag-js/vue'\n\nimport {\n agentMember,\n focusPlace,\n focusReturnTarget,\n useDirection,\n type IconRole,\n} from '@polymorph/vue'\nimport { usePresence } from '@polymorph/vue/motion'\nimport styles from '@polymorph/recipes/overlays/command.module.css'\nimport CommandPanel from './CommandPanel.vue'\n\nexport interface CommandItem {\n id: string\n label: string\n icon?: IconRole\n hint?: string\n group?: string\n keywords?: string[]\n disabled?: boolean\n onSelect: () => void\n}\n\nexport interface CommandProps {\n /**\n * `false` for chained palettes, where the query stays after a command runs.\n */\n closeOnSelect?: boolean\n emptyMessage?: string\n /**\n * The dismiss key label beside the search field (default `esc`). Hosts localize it because a\n * key legend is text too.\n */\n escapeHint?: string\n /**\n * `false` when the app filters the items itself, as with async command sources.\n */\n filter?: false | 'contains'\n items: CommandItem[]\n /**\n * The dialog's accessible name; localized hosts replace the default `Command palette`.\n */\n label?: string\n loading?: boolean\n /**\n * The app owns the ⌘K binding, because a global hotkey is app policy, not vocabulary.\n */\n open: boolean\n placeholder?: string\n}\n\ndefineOptions({ name: 'Command', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<CommandProps>(), {\n closeOnSelect: true,\n emptyMessage: 'No results',\n escapeHint: 'esc',\n filter: 'contains',\n label: 'Command palette',\n loading: false,\n placeholder: 'Type a command…',\n})\nconst emit = defineEmits<{ openChange: [open: boolean] }>()\nconst uid = useId()\nconst query = ref('')\nconst returnTo = ref(null as ReturnType<typeof focusPlace>)\nconst panel = useTemplateRef<HTMLElement>('panel')\nconst scrim = useTemplateRef<HTMLElement>('scrim')\nconst documentDirection = useDirection()\nconst service = useMachine(\n zag.machine,\n computed(() => ({\n id: uid,\n dir: documentDirection.value,\n open: props.open,\n finalFocusEl: () => focusReturnTarget(returnTo.value, [panel.value]),\n 'aria-label': props.label,\n onEscapeKeyDown: (event) => query.value !== '' && event.preventDefault(),\n onOpenChange: (details) => {\n emit('openChange', details.open)\n },\n })),\n)\nconst api = computed(() => zag.connect(service, normalizeProps))\nconst scrimPresent = usePresence(() => api.value.open, scrim, 'dialog.scrim')\nconst panelPresent = usePresence(() => api.value.open, panel, 'command.panel', {\n side: 'bottom',\n align: 'center',\n})\nconst effect1 = () => {\n api.value.open && (returnTo.value = focusPlace(document.activeElement))\n}\nonMounted(effect1)\nwatch(() => api.value.open, effect1, { flush: 'post' })\nlet release2: (() => void) | undefined\nconst effect2 = () => {\n release2?.()\n const ran = agentMember({\n member: 'Command',\n element: () => panel.value,\n state: () => ({\n open: api.value.open,\n items: props.items.map((item) => ({\n id: item.id,\n label: item.label,\n ...(item.disabled === true ? { disabled: true } : {}),\n })),\n query: api.value.open ? query.value : '',\n }),\n actions: {\n choose: {\n argument: 'id',\n run: (value) => (\n props.items.find((item) => item.id === value)?.onSelect(),\n api.value.open && props.closeOnSelect && api.value.setOpen(false)\n ),\n },\n close: () => api.value.open && api.value.setOpen(false),\n },\n })\n release2 = () => {\n ran()\n }\n}\nonMounted(effect2)\nonBeforeUnmount(() => release2?.())\n</script>\n\n<template>\n <Teleport to=\"body\">\n <!-- scrim -->\n <div\n v-if=\"scrimPresent\"\n ref=\"scrim\"\n v-bind=\"api.getBackdropProps()\"\n :class=\"styles.scrim\"\n :hidden=\"undefined\"\n />\n <div v-if=\"panelPresent\" v-bind=\"api.getPositionerProps()\" :class=\"styles.positioner\">\n <!-- panel -->\n <div\n ref=\"panel\"\n v-bind=\"api.getContentProps()\"\n :class=\"styles.panel\"\n :hidden=\"undefined\"\n :aria-describedby=\"undefined\"\n :data-loading=\"loading ? '' : undefined\"\n data-member=\"command\"\n >\n <CommandPanel\n :items=\"items\"\n :placeholder=\"placeholder\"\n :escapeHint=\"escapeHint\"\n :filter=\"filter\"\n :loading=\"loading\"\n :emptyMessage=\"emptyMessage\"\n @queryChange=\"query = $event\"\n @command=\"closeOnSelect && api.setOpen(false)\"\n />\n </div>\n </div>\n </Teleport>\n</template>\n"],"mappings":""}
|