@metamorph-labs/polymorph 1.0.18 → 1.0.19
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 +242 -0
- package/dist/design/systems/desktop.json +1 -1
- package/dist/design/systems/dew.json +1 -1
- package/dist/design/systems/flint.json +1 -1
- package/dist/design/systems/glassmorphic.json +1 -1
- package/dist/design/systems/harbor.json +1 -1
- package/dist/design/systems/journal.json +1 -1
- package/dist/design/systems/pastel.json +1 -1
- package/dist/design/systems/pebble.json +1 -1
- package/dist/design/systems/plain.json +1 -1
- package/dist/design/systems/pop.json +1 -1
- package/dist/design/systems/press.json +1 -1
- package/dist/packages/angular-ui/src/ai/ArtifactPane.ts +15 -4
- package/dist/packages/angular-ui/src/ai/PromptInput.ts +3 -1
- package/dist/packages/angular-ui/src/archetypes/Dashboard.ts +38 -20
- package/dist/packages/angular-ui/src/archetypes/dashboard.states.ts +52 -0
- package/dist/packages/angular-ui/src/controls/ColorInput.ts +62 -34
- package/dist/packages/angular-ui/src/controls/Combobox.ts +28 -7
- package/dist/packages/angular-ui/src/controls/DatePicker.ts +12 -11
- package/dist/packages/angular-ui/src/controls/DateRangePicker.ts +22 -17
- package/dist/packages/angular-ui/src/controls/DateRangePickerRangeCalendar.ts +3 -2
- package/dist/packages/angular-ui/src/controls/FileUpload.ts +18 -12
- package/dist/packages/angular-ui/src/controls/FileUploadRow.ts +24 -4
- package/dist/packages/angular-ui/src/controls/MultiSelect.ts +49 -12
- package/dist/packages/angular-ui/src/controls/NumberInput.ts +27 -3
- package/dist/packages/angular-ui/src/controls/PhoneInput.ts +9 -5
- package/dist/packages/angular-ui/src/controls/Select.ts +36 -7
- package/dist/packages/angular-ui/src/controls/TagInput.ts +61 -7
- package/dist/packages/angular-ui/src/controls/TimeInput.ts +15 -1
- package/dist/packages/angular-ui/src/controls/select.states.ts +79 -58
- package/dist/packages/angular-ui/src/overlays/Command.ts +50 -13
- package/dist/packages/angular-ui/src/overlays/CommandPanel.ts +11 -7
- package/dist/packages/angular-ui/src/overlays/ToastViewport.ts +1 -1
- package/dist/packages/angular-ui/src/structure/CodeBlock.ts +18 -4
- package/dist/packages/angular-ui/src/structure/Stat.ts +295 -84
- package/dist/packages/angular-ui/src/structure/stat.states.ts +116 -0
- package/dist/packages/cli/src/agents.js +4 -3
- package/dist/packages/cli/src/apply.js +43 -18
- package/dist/packages/cli/src/check.js +4 -0
- package/dist/packages/cli/src/cli.js +6 -2
- package/dist/packages/cli/src/elements.js +12 -2
- package/dist/packages/cli/src/emit.js +43 -8
- package/dist/packages/cli/src/readings.js +29 -3
- package/dist/packages/cli/src/skills/bridge.js +1197 -0
- package/dist/packages/cli/src/skills/facts.js +190 -0
- package/dist/packages/cli/src/skills/native.js +1580 -0
- package/dist/packages/cli/src/skills/rules.js +199 -0
- package/dist/packages/cli/src/skills/runtime.js +1020 -0
- package/dist/packages/cli/src/skills/screen-charts.js +334 -0
- package/dist/packages/cli/src/skills/screen-chat.js +247 -0
- package/dist/packages/cli/src/skills/screen-code.js +565 -0
- package/dist/packages/cli/src/skills/screen-rich-text.js +305 -0
- package/dist/packages/cli/src/skills/screen.js +378 -0
- package/dist/packages/cli/src/skills/setup-packages.js +307 -0
- package/dist/packages/cli/src/skills/setup.js +125 -0
- package/dist/packages/cli/src/skills/theme-documents.js +351 -0
- package/dist/packages/cli/src/skills/theme.js +208 -0
- package/dist/packages/cli/src/skills.js +13 -794
- package/dist/packages/cli/src/theme.js +42 -1
- package/dist/packages/cli/src/tool-verbs.js +19 -4
- package/dist/packages/cli/src/verbs.js +28 -2
- package/dist/packages/elements-ui/dist/cdn/chunks/{AppShellUserCard-0eCCnnN_.js → AppShellUserCard-XT4br4fr.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{AreaChart-DftfzLG0.js → AreaChart-CXNFfbJ8.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/ArtifactPane-Pr9_K2uM.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/{Avatar-DcdMgxgY.js → Avatar-3WXoBPLv.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Avatar-DcuvZwe7.js → Avatar-BKqjM8qW.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{AvatarButton-D5XKVduu.js → AvatarButton-BasMQCSM.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{AvatarGroup-DgFwJUNO.js → AvatarGroup-COch2-O0.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{BarChart-myuR0aHc.js → BarChart-ugae8zfr.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{ChatMessage-CgQ1h_JP.js → ChatMessage-Bx4yrF2x.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/CodeBlock-B_e5ma3K.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/CodeBlock-Fgtr48Vb.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/ColorInput-CD7rsWRp.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/Combobox-CUw7z6TS.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/{Combobox-DB2FT7so.js → Combobox-hWIFU9X_.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/Command-BXgqRd3I.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/{ConfirmDialog-BtQOAHY2.js → ConfirmDialog-CAaBRKxl.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Dashboard-ChMPH4_Q.js → Dashboard-DwNw5Wnd.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/DatePicker-DjqtswQR.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/DateRangePicker-LsXFHOzm.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/{DonutChart-BEK89BeL.js → DonutChart-DYXx6eTe.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/FileUpload-3gbZTSSx.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/{FormField-PlLLDKqc.js → FormField-Bvw4cLBc.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{FormField-C6L3vYp4.js → FormField-DzhcinED.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{FunnelChart-DVQz_gad.js → FunnelChart-D24XhrGw.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Heading-fAcu6Vrw.js → Heading-Cvfyu8pc.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Heading-CgzEi9OQ.js → Heading-XDJzlwt9.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Heatmap-BRwR-n-V.js → Heatmap-BQoUS6gY.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Hero-CV2YWeb4.js → Hero-CXuuFceS.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Histogram-CCYwlinB.js → Histogram-DW_ZPHpR.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{LineChart-BH6Pq1P1.js → LineChart-kf-zlNWe.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Markdown-DmZEch4i.js → Markdown-C3rjhIbt.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/ModeSwitch-DQ86CK9h.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/MultiSelect-DbSx9QtV.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/NumberInput-B4ZZOGLl.js +7 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/PhoneInput-BsMfbNi6.js +210 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/PromptInput-l_-zAXSZ.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/{RadarChart-Coje7Sb0.js → RadarChart-CwJAWRki.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{RichTextContent-CufjptHF.js → RichTextContent-D51UfuWk.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{RichTextInput-Dz7yBFUA.js → RichTextInput-B32fN_p9.js} +3 -3
- package/dist/packages/elements-ui/dist/cdn/chunks/{ScatterChart-Do5tQTC5.js → ScatterChart-Mps7l5-i.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/Select-CpsRP0NR.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/Stat-CXR6bP7X.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/Stat-DGcx2ZZq.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/TagInput-BhkLU4gE.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/TimeInput-r2jNTOLN.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/{Toast-CAYGbn7g.js → Toast-BTfcZn0I.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{ToastViewport-CFslglYc.js → ToastViewport-BBQMRCQT.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{ToolCall-DUCoKsoE.js → ToolCall-DNU5kk9_.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{Treemap-Bh3ruYGJ.js → Treemap-BV8TlZHB.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/agent-DfOqpL9c.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/api-DJBiUXxK.js +4 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/avatar.module-D4YdFevY.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/cap-DA71oFHt.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/{cartesian-I5uPfyqv.js → cartesian-CEn2lJCc.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/{chart-annotations.module-xUExw4pu.js → chart-annotations.module-hA_KO_Pe.js} +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/chart-brush.module-C_8txUW5.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/chart-twin.module-BpfyTQ9R.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/check-CHvc4yHL.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/css-vars-DeZ4TCna.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/draw-BiQ3Of6N.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/drawing-nhJNBahV.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/field-labels-Df5HuYC5.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/frame-CtTY4oCn.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/on-call-YKLF3-FH.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/runtime-QRQ3CjZg.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/series-uUg6_JtL.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/src-XnWjGSDr.js +67 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/toast-pwGvxH2T.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/urls-Qks0KJ_p.js +6 -0
- package/dist/packages/elements-ui/dist/cdn/chunks/webmcp-Dro53ATH.js +1 -0
- package/dist/packages/elements-ui/dist/cdn/polymorph-all.js +52 -50
- package/dist/packages/elements-ui/dist/cdn/polymorph.css +1 -1
- package/dist/packages/elements-ui/dist/cdn/polymorph.js +1 -1
- package/dist/packages/elements-ui/dist/cdn/prepaint.js +1 -1
- package/dist/packages/elements-ui/dist/cdn/themes/desktop.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/dew.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/flint.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/glassmorphic.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/harbor.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/journal.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/pastel.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/pebble.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/plain.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/pop.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/press.css +5 -4
- package/dist/packages/elements-ui/dist/cdn/themes/terminal.css +5 -4
- package/dist/packages/elements-ui/src/ai/ArtifactPane.ts +2 -0
- package/dist/packages/elements-ui/src/archetypes/dashboard.states.ts +9 -0
- package/dist/packages/elements-ui/src/controls/ColorInput.ts +2 -0
- package/dist/packages/elements-ui/src/controls/NumberInput.ts +2 -0
- package/dist/packages/elements-ui/src/controls/TagInput.ts +4 -0
- package/dist/packages/elements-ui/src/controls/TimeInput.ts +2 -0
- package/dist/packages/elements-ui/src/controls/select.states.ts +10 -0
- package/dist/packages/elements-ui/src/overlays/Command.ts +2 -0
- package/dist/packages/elements-ui/src/structure/CodeBlock.ts +5 -2
- package/dist/packages/elements-ui/src/structure/Stat.ts +6 -0
- package/dist/packages/elements-ui/src/structure/stat.states.ts +33 -0
- package/dist/packages/mcp/src/propose.js +92 -15
- package/dist/packages/mcp/src/server.js +19 -8
- package/dist/packages/mcp/src/tools.js +80 -5
- package/dist/packages/mcp/src/write.js +95 -13
- package/dist/packages/react-ui/src/ai/ArtifactPane.tsx +5 -2
- package/dist/packages/react-ui/src/ai/PromptInput.tsx +5 -2
- package/dist/packages/react-ui/src/archetypes/dashboard.states.tsx +28 -0
- package/dist/packages/react-ui/src/controls/ColorInput.tsx +69 -13
- package/dist/packages/react-ui/src/controls/Combobox.tsx +13 -5
- package/dist/packages/react-ui/src/controls/DatePicker.tsx +3 -0
- package/dist/packages/react-ui/src/controls/DateRangePicker.tsx +22 -5
- package/dist/packages/react-ui/src/controls/FileUpload.tsx +2 -0
- package/dist/packages/react-ui/src/controls/MultiSelect.tsx +30 -6
- package/dist/packages/react-ui/src/controls/NumberInput.tsx +19 -1
- package/dist/packages/react-ui/src/controls/PhoneInput.tsx +3 -3
- package/dist/packages/react-ui/src/controls/Select.tsx +59 -23
- package/dist/packages/react-ui/src/controls/TagInput.tsx +43 -10
- package/dist/packages/react-ui/src/controls/TimeInput.tsx +10 -0
- package/dist/packages/react-ui/src/controls/date-segments.tsx +16 -0
- package/dist/packages/react-ui/src/controls/select.states.tsx +13 -0
- package/dist/packages/react-ui/src/overlays/Command.tsx +23 -2
- package/dist/packages/react-ui/src/overlays/Toaster.tsx +2 -2
- package/dist/packages/react-ui/src/structure/CodeBlock.tsx +7 -3
- package/dist/packages/react-ui/src/structure/Stat.tsx +90 -13
- package/dist/packages/react-ui/src/structure/stat.states.tsx +68 -0
- package/dist/packages/recipes/src/ai/artifact-pane.module.css +4 -4
- package/dist/packages/recipes/src/controls/rich-text-input.module.css +1 -1
- package/dist/packages/recipes/src/structure/avatar.module.css +3 -1
- package/dist/packages/recipes/src/structure/heading.module.css +5 -4
- package/dist/packages/recipes/src/structure/hero.module.css +3 -1
- package/dist/packages/recipes/src/structure/stat.module.css +7 -0
- package/dist/packages/registry/src/card.js +4 -3
- package/dist/packages/registry/src/frameworks.js +28 -1
- package/dist/packages/registry/src/runtime-card.js +300 -0
- package/dist/packages/registry/src/runtime-members.js +176 -0
- package/dist/packages/registry/src/screen-table.js +166 -0
- package/dist/packages/rules/package.js +1 -1
- package/dist/packages/solid-ui/src/ai/ArtifactPane.tsx +11 -3
- package/dist/packages/solid-ui/src/ai/PromptInput.tsx +3 -1
- package/dist/packages/solid-ui/src/archetypes/Dashboard.tsx +3 -0
- package/dist/packages/solid-ui/src/archetypes/dashboard.states.tsx +39 -0
- package/dist/packages/solid-ui/src/controls/ColorInput.tsx +38 -17
- package/dist/packages/solid-ui/src/controls/Combobox.tsx +27 -6
- package/dist/packages/solid-ui/src/controls/DatePicker.tsx +12 -11
- package/dist/packages/solid-ui/src/controls/DateRangePicker.tsx +21 -16
- package/dist/packages/solid-ui/src/controls/DateRangePickerRangeCalendar.tsx +3 -4
- package/dist/packages/solid-ui/src/controls/FileUpload.tsx +1 -0
- package/dist/packages/solid-ui/src/controls/FileUploadRow.tsx +6 -0
- package/dist/packages/solid-ui/src/controls/MultiSelect.tsx +51 -11
- package/dist/packages/solid-ui/src/controls/NumberInput.tsx +21 -2
- package/dist/packages/solid-ui/src/controls/PhoneInput.tsx +8 -4
- package/dist/packages/solid-ui/src/controls/Select.tsx +37 -6
- package/dist/packages/solid-ui/src/controls/TagInput.tsx +26 -5
- package/dist/packages/solid-ui/src/controls/TimeInput.tsx +10 -1
- package/dist/packages/solid-ui/src/controls/select.states.tsx +18 -0
- package/dist/packages/solid-ui/src/overlays/Command.tsx +15 -2
- package/dist/packages/solid-ui/src/overlays/CommandPanel.tsx +7 -7
- package/dist/packages/solid-ui/src/overlays/ToastViewport.tsx +1 -1
- package/dist/packages/solid-ui/src/structure/CodeBlock.tsx +9 -5
- package/dist/packages/solid-ui/src/structure/Stat.tsx +86 -25
- package/dist/packages/solid-ui/src/structure/stat.states.tsx +73 -0
- package/dist/packages/svelte-ui/src/ai/ArtifactPane.svelte +8 -2
- package/dist/packages/svelte-ui/src/ai/PromptInput.svelte +3 -1
- package/dist/packages/svelte-ui/src/archetypes/Dashboard.svelte +3 -0
- package/dist/packages/svelte-ui/src/archetypes/dashboard.states.svelte +2 -0
- package/dist/packages/svelte-ui/src/controls/ColorInput.svelte +29 -8
- package/dist/packages/svelte-ui/src/controls/Combobox.svelte +26 -5
- package/dist/packages/svelte-ui/src/controls/DatePicker.svelte +7 -5
- package/dist/packages/svelte-ui/src/controls/DateRangePicker.svelte +15 -9
- package/dist/packages/svelte-ui/src/controls/DateRangePickerRangeCalendar.svelte +3 -2
- package/dist/packages/svelte-ui/src/controls/FileUpload.svelte +1 -0
- package/dist/packages/svelte-ui/src/controls/FileUploadRow.svelte +8 -1
- package/dist/packages/svelte-ui/src/controls/MultiSelect.svelte +36 -10
- package/dist/packages/svelte-ui/src/controls/NumberInput.svelte +14 -1
- package/dist/packages/svelte-ui/src/controls/PhoneInput.svelte +3 -3
- package/dist/packages/svelte-ui/src/controls/Select.svelte +20 -6
- package/dist/packages/svelte-ui/src/controls/TagInput.svelte +21 -3
- package/dist/packages/svelte-ui/src/controls/TimeInput.svelte +11 -1
- package/dist/packages/svelte-ui/src/controls/select.states.svelte +26 -24
- package/dist/packages/svelte-ui/src/overlays/Command.svelte +13 -1
- package/dist/packages/svelte-ui/src/overlays/CommandPanel.svelte +11 -6
- package/dist/packages/svelte-ui/src/overlays/ToastViewport.svelte +1 -1
- package/dist/packages/svelte-ui/src/structure/CodeBlock.svelte +7 -2
- package/dist/packages/svelte-ui/src/structure/Stat.svelte +70 -17
- package/dist/packages/svelte-ui/src/structure/stat.states.svelte +27 -0
- package/dist/packages/theme/src/admit.js +6 -3
- package/dist/packages/theme/src/color/resolve.js +19 -2
- package/dist/packages/theme/src/derive.js +13 -6
- package/dist/packages/theme/src/emit.js +1 -1
- package/dist/packages/theme/src/runtime.js +58 -0
- package/dist/packages/theme/src/seeds.js +30 -4
- package/dist/packages/theme/src/systems.js +1 -1
- package/dist/packages/theme/src/tokens.js +15 -6
- package/dist/packages/vue-ui/src/ai/ArtifactPane.vue +11 -2
- package/dist/packages/vue-ui/src/ai/PromptInput.vue +3 -1
- package/dist/packages/vue-ui/src/archetypes/Dashboard.vue +3 -0
- package/dist/packages/vue-ui/src/archetypes/dashboard.states.ts +49 -0
- package/dist/packages/vue-ui/src/controls/ColorInput.vue +33 -12
- package/dist/packages/vue-ui/src/controls/Combobox.vue +26 -5
- package/dist/packages/vue-ui/src/controls/DatePicker.vue +12 -11
- package/dist/packages/vue-ui/src/controls/DateRangePicker.vue +20 -15
- package/dist/packages/vue-ui/src/controls/DateRangePickerRangeCalendar.vue +3 -4
- package/dist/packages/vue-ui/src/controls/FileUpload.vue +1 -0
- package/dist/packages/vue-ui/src/controls/FileUploadRow.vue +6 -0
- package/dist/packages/vue-ui/src/controls/MultiSelect.vue +37 -10
- package/dist/packages/vue-ui/src/controls/NumberInput.vue +17 -1
- package/dist/packages/vue-ui/src/controls/PhoneInput.vue +7 -3
- package/dist/packages/vue-ui/src/controls/Select.vue +22 -7
- package/dist/packages/vue-ui/src/controls/TagInput.vue +21 -3
- package/dist/packages/vue-ui/src/controls/TimeInput.vue +10 -1
- package/dist/packages/vue-ui/src/controls/select.states.ts +17 -0
- package/dist/packages/vue-ui/src/overlays/Command.vue +13 -1
- package/dist/packages/vue-ui/src/overlays/CommandPanel.vue +7 -7
- package/dist/packages/vue-ui/src/overlays/ToastViewport.vue +1 -1
- package/dist/packages/vue-ui/src/structure/CodeBlock.vue +7 -2
- package/dist/packages/vue-ui/src/structure/Stat.vue +71 -18
- package/dist/packages/vue-ui/src/structure/stat.states.ts +67 -0
- package/dist/platforms/android/ui/src/generated/kotlin/dev/polymorph/ui/Contracts.kt +144 -33
- package/dist/platforms/android/ui/src/generated/kotlin/dev/polymorph/ui/Members.kt +17 -7
- package/dist/platforms/ios/Sources/PolymorphUI/Generated/Contracts.swift +204 -31
- package/dist/registry/registry.json +371 -75
- package/dist/screen/assets/{screen-CuQbskb8.css → screen-B22PTPwF.css} +1 -1
- package/dist/screen/assets/screen-Cpbh7XMb.js +372 -0
- package/dist/screen/screen.html +3 -3
- package/package.json +1 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/ArtifactPane-DsmRlr6d.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/CodeBlock-BqP8HZKM.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/CodeBlock-D8VARz0a.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/ColorInput-BrzZOVeL.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/Combobox-BiUq0h-w.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/Command-hmxVRdFg.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/DatePicker-C8prGbJ2.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/DateRangePicker-CO1ioqwN.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/FileUpload-HPQe-ttb.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/ModeSwitch-CerqbGv3.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/MultiSelect-CQq7jPgI.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/NumberInput-Dre9GwBy.js +0 -7
- package/dist/packages/elements-ui/dist/cdn/chunks/PhoneInput-D6_J6Es_.js +0 -210
- package/dist/packages/elements-ui/dist/cdn/chunks/PromptInput-BXcsUQ5W.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/Select-DxGQgv2q.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/Stat-FsMUWigK.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/Stat-WS8v6BQv.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/TagInput-D-uIQEGS.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/TimeInput-Dho571vA.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/agent-DBDk4wLH.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/api-B9sGZiYn.js +0 -4
- package/dist/packages/elements-ui/dist/cdn/chunks/avatar.module-CQwnWhWo.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/cap-Ct4k7zNC.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/chart-brush.module-DycBfben.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/chart-twin.module-Cks7VwS5.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/check-dOfCSYFA.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/draw-DclRgiWM.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/drawing-DjkZr0z8.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/frame-BSvl4y47.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/on-call-Jk1sYJc_.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/receivers-BpRfF6dV.js +0 -4
- package/dist/packages/elements-ui/dist/cdn/chunks/series-C_1TNd2n.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/src-Bub3C9YP.js +0 -67
- package/dist/packages/elements-ui/dist/cdn/chunks/toast-AarMGYJn.js +0 -1
- package/dist/packages/elements-ui/dist/cdn/chunks/webmcp-eEPzSqph.js +0 -1
- package/dist/screen/assets/screen-Clj2u6_s.js +0 -372
|
@@ -627,8 +627,8 @@ public enum PMArtifactPaneKind: String, CaseIterable, Sendable {
|
|
|
627
627
|
case preview
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
/// ArtifactPane's props (`design/components/artifact-pane.md`): A side pane
|
|
631
|
-
///
|
|
630
|
+
/// ArtifactPane's props (`design/components/artifact-pane.md`): A side pane for one artifact a turn
|
|
631
|
+
/// produced.
|
|
632
632
|
public struct PMArtifactPaneProps {
|
|
633
633
|
/// The header's controls (copy, download, open), as `ghost/neutral/sm` Buttons.
|
|
634
634
|
public var actions: PMContent?
|
|
@@ -646,6 +646,9 @@ public struct PMArtifactPaneProps {
|
|
|
646
646
|
public var onViewChange: (@MainActor (String) -> Void)?
|
|
647
647
|
/// Whether the artifact is still being written, which shows a spinner and sets `aria-busy`.
|
|
648
648
|
public var streaming: Bool?
|
|
649
|
+
/// The status announced while streaming (default `{title}: still being written`), which apps pass
|
|
650
|
+
/// to localize.
|
|
651
|
+
public var streamingLabel: String?
|
|
649
652
|
/// The artifact's name, used as the pane's heading and accessible name.
|
|
650
653
|
public var title: String
|
|
651
654
|
public var view: String?
|
|
@@ -665,6 +668,7 @@ public struct PMArtifactPaneProps {
|
|
|
665
668
|
onClose: (@MainActor () -> Void)? = nil,
|
|
666
669
|
onViewChange: (@MainActor (String) -> Void)? = nil,
|
|
667
670
|
streaming: Bool? = nil,
|
|
671
|
+
streamingLabel: String? = nil,
|
|
668
672
|
title: String,
|
|
669
673
|
view: String? = nil,
|
|
670
674
|
views: [PMArtifactView]? = nil,
|
|
@@ -679,6 +683,7 @@ public struct PMArtifactPaneProps {
|
|
|
679
683
|
self.onClose = onClose
|
|
680
684
|
self.onViewChange = onViewChange
|
|
681
685
|
self.streaming = streaming
|
|
686
|
+
self.streamingLabel = streamingLabel
|
|
682
687
|
self.title = title
|
|
683
688
|
self.view = view
|
|
684
689
|
self.views = views
|
|
@@ -1919,11 +1924,12 @@ public protocol PMCodeRendering: View {
|
|
|
1919
1924
|
|
|
1920
1925
|
// MARK: - CodeBlock
|
|
1921
1926
|
|
|
1922
|
-
/// CodeBlock's props (`design/components/code-block.md`):
|
|
1923
|
-
/// or config sample.
|
|
1927
|
+
/// CodeBlock's props (`design/components/code-block.md`): Verbatim code.
|
|
1924
1928
|
public struct PMCodeBlockProps {
|
|
1925
1929
|
/// The code, rendered verbatim including whitespace.
|
|
1926
1930
|
public var children: String
|
|
1931
|
+
/// What a screen reader hears after a copy, default `'Copied'`; apps pass a localized one.
|
|
1932
|
+
public var copiedLabel: String?
|
|
1927
1933
|
/// Draws the copy control, the block's only control.
|
|
1928
1934
|
public var copyable: Bool?
|
|
1929
1935
|
/// The copy control's accessible name, default `'Copy'`; apps pass a localized one.
|
|
@@ -1934,11 +1940,13 @@ public struct PMCodeBlockProps {
|
|
|
1934
1940
|
|
|
1935
1941
|
public init(
|
|
1936
1942
|
children: String,
|
|
1943
|
+
copiedLabel: String? = nil,
|
|
1937
1944
|
copyable: Bool? = nil,
|
|
1938
1945
|
copyLabel: String? = nil,
|
|
1939
1946
|
label: String? = nil
|
|
1940
1947
|
) {
|
|
1941
1948
|
self.children = children
|
|
1949
|
+
self.copiedLabel = copiedLabel
|
|
1942
1950
|
self.copyable = copyable
|
|
1943
1951
|
self.copyLabel = copyLabel
|
|
1944
1952
|
self.label = label
|
|
@@ -1995,8 +2003,8 @@ public protocol PMCollapsibleRendering: View {
|
|
|
1995
2003
|
|
|
1996
2004
|
// MARK: - ColorInput
|
|
1997
2005
|
|
|
1998
|
-
/// ColorInput's props (`design/components/color-input.md`): A colour field
|
|
1999
|
-
///
|
|
2006
|
+
/// ColorInput's props (`design/components/color-input.md`): A colour field with a hex entry and a
|
|
2007
|
+
/// picker.
|
|
2000
2008
|
public struct PMColorInputProps {
|
|
2001
2009
|
/// Enables the alpha channel: the alpha rail, the eight-digit hex and the checker.
|
|
2002
2010
|
public var alpha: Bool?
|
|
@@ -2011,6 +2019,8 @@ public struct PMColorInputProps {
|
|
|
2011
2019
|
public var disabled: Bool?
|
|
2012
2020
|
public var id: String?
|
|
2013
2021
|
public var invalid: Bool?
|
|
2022
|
+
/// The picker's sliders' names and value texts in the host's words.
|
|
2023
|
+
public var messages: PMColorInputMessages?
|
|
2014
2024
|
/// Serializes the hex through a hidden input.
|
|
2015
2025
|
public var name: String?
|
|
2016
2026
|
/// Fires continuously while dragging, as Input does, with no separate commit as on Slider.
|
|
@@ -2032,6 +2042,7 @@ public struct PMColorInputProps {
|
|
|
2032
2042
|
disabled: Bool? = nil,
|
|
2033
2043
|
id: String? = nil,
|
|
2034
2044
|
invalid: Bool? = nil,
|
|
2045
|
+
messages: PMColorInputMessages? = nil,
|
|
2035
2046
|
name: String? = nil,
|
|
2036
2047
|
onChange: (@MainActor (String) -> Void)? = nil,
|
|
2037
2048
|
pickerLabel: String,
|
|
@@ -2048,6 +2059,7 @@ public struct PMColorInputProps {
|
|
|
2048
2059
|
self.disabled = disabled
|
|
2049
2060
|
self.id = id
|
|
2050
2061
|
self.invalid = invalid
|
|
2062
|
+
self.messages = messages
|
|
2051
2063
|
self.name = name
|
|
2052
2064
|
self.onChange = onChange
|
|
2053
2065
|
self.pickerLabel = pickerLabel
|
|
@@ -2070,8 +2082,8 @@ public enum PMComboboxPresentation: String, CaseIterable, Sendable {
|
|
|
2070
2082
|
case popover
|
|
2071
2083
|
}
|
|
2072
2084
|
|
|
2073
|
-
/// Combobox's props (`design/components/combobox.md`):
|
|
2074
|
-
///
|
|
2085
|
+
/// Combobox's props (`design/components/combobox.md`): Filtered single choice. On iOS it is
|
|
2086
|
+
/// adapted: a text field; suggestions in a sheet on iPhone, anchored on iPad.
|
|
2075
2087
|
public struct PMComboboxProps {
|
|
2076
2088
|
/// Keeps free text. Blur keeps the draft instead of restoring the selected label. A commit that
|
|
2077
2089
|
/// matches nothing sets the *selection* to `null` and keeps the text, which the app reads through
|
|
@@ -2894,9 +2906,9 @@ public enum PMDateRangePickerPresentation: String, CaseIterable, Sendable {
|
|
|
2894
2906
|
case popover
|
|
2895
2907
|
}
|
|
2896
2908
|
|
|
2897
|
-
/// DateRangePicker's props (`design/components/date-range-picker.md`): A date range *field
|
|
2898
|
-
///
|
|
2899
|
-
///
|
|
2909
|
+
/// DateRangePicker's props (`design/components/date-range-picker.md`): A date range *field*: two
|
|
2910
|
+
/// segmented dates and a calendar popup. On iOS it is adapted: two date fields, one range calendar;
|
|
2911
|
+
/// a sheet on iPhone, anchored on iPad.
|
|
2900
2912
|
public struct PMDateRangePickerProps {
|
|
2901
2913
|
public var ariaDescribedby: String?
|
|
2902
2914
|
/// Set by FormField. Set it directly only when there is no visible label.
|
|
@@ -5416,9 +5428,8 @@ public enum PMMultiSelectPresentation: String, CaseIterable, Sendable {
|
|
|
5416
5428
|
case popover
|
|
5417
5429
|
}
|
|
5418
5430
|
|
|
5419
|
-
/// MultiSelect's props (`design/components/multi-select.md`):
|
|
5420
|
-
///
|
|
5421
|
-
/// anchored on iPad.
|
|
5431
|
+
/// MultiSelect's props (`design/components/multi-select.md`): Filtered multiple choice. On iOS it
|
|
5432
|
+
/// is adapted: a tag field; checklist in a sheet on iPhone, anchored on iPad.
|
|
5422
5433
|
public struct PMMultiSelectProps {
|
|
5423
5434
|
/// Allows values outside `options` (the spec's boundary with TagInput). Typed text that matches
|
|
5424
5435
|
/// no option and passes `validate` appears as an extra last row, `Add "{text}"`, and choosing it
|
|
@@ -5555,8 +5566,8 @@ public protocol PMMultiSelectRendering: View {
|
|
|
5555
5566
|
|
|
5556
5567
|
// MARK: - NumberInput
|
|
5557
5568
|
|
|
5558
|
-
/// NumberInput's props (`design/components/number-input.md`): A field that
|
|
5559
|
-
///
|
|
5569
|
+
/// NumberInput's props (`design/components/number-input.md`): A number field that formats and
|
|
5570
|
+
/// steps.
|
|
5560
5571
|
public struct PMNumberInputProps {
|
|
5561
5572
|
public var ariaDescribedby: String?
|
|
5562
5573
|
/// Wired by FormField; set directly only when there is no visible label.
|
|
@@ -5572,6 +5583,8 @@ public struct PMNumberInputProps {
|
|
|
5572
5583
|
public var id: String?
|
|
5573
5584
|
public var invalid: Bool?
|
|
5574
5585
|
public var max: Double?
|
|
5586
|
+
/// The steppers' names in the host's words.
|
|
5587
|
+
public var messages: PMNumberInputMessages?
|
|
5575
5588
|
/// Typed values are clamped at commit. The steppers snap to the step and stop at the limits.
|
|
5576
5589
|
public var min: Double?
|
|
5577
5590
|
/// Posts the **plain number** on a hidden input, never the formatted text.
|
|
@@ -5604,6 +5617,7 @@ public struct PMNumberInputProps {
|
|
|
5604
5617
|
id: String? = nil,
|
|
5605
5618
|
invalid: Bool? = nil,
|
|
5606
5619
|
max: Double? = nil,
|
|
5620
|
+
messages: PMNumberInputMessages? = nil,
|
|
5607
5621
|
min: Double? = nil,
|
|
5608
5622
|
name: String? = nil,
|
|
5609
5623
|
onBlur: (@MainActor () -> Void)? = nil,
|
|
@@ -5627,6 +5641,7 @@ public struct PMNumberInputProps {
|
|
|
5627
5641
|
self.id = id
|
|
5628
5642
|
self.invalid = invalid
|
|
5629
5643
|
self.max = max
|
|
5644
|
+
self.messages = messages
|
|
5630
5645
|
self.min = min
|
|
5631
5646
|
self.name = name
|
|
5632
5647
|
self.onBlur = onBlur
|
|
@@ -5885,8 +5900,7 @@ public protocol PMPasswordInputRendering: View {
|
|
|
5885
5900
|
|
|
5886
5901
|
// MARK: - PhoneInput
|
|
5887
5902
|
|
|
5888
|
-
/// PhoneInput's props (`design/components/phone-input.md`): A phone number
|
|
5889
|
-
/// string.
|
|
5903
|
+
/// PhoneInput's props (`design/components/phone-input.md`): A phone number as one E.164 string.
|
|
5890
5904
|
public struct PMPhoneInputProps {
|
|
5891
5905
|
public var ariaDescribedby: String?
|
|
5892
5906
|
/// Wired by FormField; set directly only when there is no visible label.
|
|
@@ -7166,7 +7180,9 @@ public struct PMSelectProps {
|
|
|
7166
7180
|
/// a bottom sheet on a wide pointer screen is the wrong pattern (`docs/layout.md`).
|
|
7167
7181
|
public var presentation: PMSelectPresentation?
|
|
7168
7182
|
public var size: PMControlSize?
|
|
7169
|
-
///
|
|
7183
|
+
/// The chosen option's value. Controlled when given. `null` is nothing chosen: the trigger shows
|
|
7184
|
+
/// the placeholder, or the empty choice when `emptyOption` is set. A caller clears the choice
|
|
7185
|
+
/// with `null`, because `undefined` is no value, which hands the choice back to the member.
|
|
7170
7186
|
public var value: String??
|
|
7171
7187
|
|
|
7172
7188
|
public init(
|
|
@@ -7808,15 +7824,25 @@ public protocol PMStackRendering: View {
|
|
|
7808
7824
|
|
|
7809
7825
|
// MARK: - Stat
|
|
7810
7826
|
|
|
7811
|
-
/// Stat's props (`design/components/stat.md`): A key number
|
|
7827
|
+
/// Stat's props (`design/components/stat.md`): A key number and how it moved.
|
|
7812
7828
|
public struct PMStatProps {
|
|
7813
7829
|
public var delta: PMStatDelta?
|
|
7830
|
+
/// The delta's spoken sentence in the host's words, the localization seam; the default is
|
|
7831
|
+
/// `{direction} {value} — positive` or `— negative`.
|
|
7832
|
+
public var deltaLabel: (@MainActor (PMStatDeltaFacts) -> String)?
|
|
7814
7833
|
/// Shown when there is no delta, such as "vs last week".
|
|
7815
7834
|
public var description: String?
|
|
7816
7835
|
/// The two-line footer: the interpretation, then the period it covers.
|
|
7817
7836
|
public var footer: PMStatFooter?
|
|
7818
7837
|
public var icon: PMIconRole?
|
|
7819
7838
|
public var label: String
|
|
7839
|
+
/// The number has not arrived. The label row stays, and the value and each part the caller passes
|
|
7840
|
+
/// that states the number is a Skeleton of that part's size. `value` stays required, as a chart's
|
|
7841
|
+
/// rows do with its `loading`: pass what there is, `''` or the last value, and it is not drawn.
|
|
7842
|
+
public var loading: Bool?
|
|
7843
|
+
/// What a screen reader hears in the value's place while `loading`, the value's Skeleton's name.
|
|
7844
|
+
/// Default "Loading".
|
|
7845
|
+
public var loadingLabel: String?
|
|
7820
7846
|
/// Tabular figures, so a column of these lines up.
|
|
7821
7847
|
public var numeric: Bool?
|
|
7822
7848
|
/// The trend as a shape: a `Sparkline` at the value row's inline end. It can sit beside `trend`
|
|
@@ -7833,10 +7859,13 @@ public struct PMStatProps {
|
|
|
7833
7859
|
|
|
7834
7860
|
public init(
|
|
7835
7861
|
delta: PMStatDelta? = nil,
|
|
7862
|
+
deltaLabel: (@MainActor (PMStatDeltaFacts) -> String)? = nil,
|
|
7836
7863
|
description: String? = nil,
|
|
7837
7864
|
footer: PMStatFooter? = nil,
|
|
7838
7865
|
icon: PMIconRole? = nil,
|
|
7839
7866
|
label: String,
|
|
7867
|
+
loading: Bool? = nil,
|
|
7868
|
+
loadingLabel: String? = nil,
|
|
7840
7869
|
numeric: Bool? = nil,
|
|
7841
7870
|
spark: [Double]? = nil,
|
|
7842
7871
|
sparkLabel: (@MainActor (String) -> String)? = nil,
|
|
@@ -7844,10 +7873,13 @@ public struct PMStatProps {
|
|
|
7844
7873
|
value: String
|
|
7845
7874
|
) {
|
|
7846
7875
|
self.delta = delta
|
|
7876
|
+
self.deltaLabel = deltaLabel
|
|
7847
7877
|
self.description = description
|
|
7848
7878
|
self.footer = footer
|
|
7849
7879
|
self.icon = icon
|
|
7850
7880
|
self.label = label
|
|
7881
|
+
self.loading = loading
|
|
7882
|
+
self.loadingLabel = loadingLabel
|
|
7851
7883
|
self.numeric = numeric
|
|
7852
7884
|
self.spark = spark
|
|
7853
7885
|
self.sparkLabel = sparkLabel
|
|
@@ -8207,14 +8239,16 @@ public protocol PMTabsRendering: View {
|
|
|
8207
8239
|
|
|
8208
8240
|
// MARK: - TagInput
|
|
8209
8241
|
|
|
8210
|
-
/// TagInput's props (`design/components/tag-input.md`): Free-text
|
|
8211
|
-
/// chips.
|
|
8242
|
+
/// TagInput's props (`design/components/tag-input.md`): Free-text tags.
|
|
8212
8243
|
public struct PMTagInputProps {
|
|
8213
8244
|
public var ariaDescribedby: String?
|
|
8214
8245
|
/// Wired by FormField; set directly only when there is no visible label.
|
|
8215
8246
|
public var ariaLabel: String?
|
|
8216
8247
|
public var ariaLabelledby: String?
|
|
8217
8248
|
public var ariaRequired: Bool?
|
|
8249
|
+
/// The count sentence in the host's words, part of the field's description, the localization
|
|
8250
|
+
/// seam; the default is `{count} added`, or `Maximum of {max} added` at the maximum.
|
|
8251
|
+
public var countLabel: (@MainActor (PMTagInputCountFacts) -> String)?
|
|
8218
8252
|
public var defaultValue: [String]?
|
|
8219
8253
|
public var disabled: Bool?
|
|
8220
8254
|
public var id: String?
|
|
@@ -8231,6 +8265,9 @@ public struct PMTagInputProps {
|
|
|
8231
8265
|
public var onChange: (@MainActor ([String]) -> Void)?
|
|
8232
8266
|
/// Shown only while empty. The chips are the value, and a placeholder beside them is clutter.
|
|
8233
8267
|
public var placeholder: String?
|
|
8268
|
+
/// What a removal announces in the host's words, the localization seam; the default is `{tag}
|
|
8269
|
+
/// removed, {count} remain`, and `{tag} removed, 1 remains` when one tag remains.
|
|
8270
|
+
public var removedLabel: (@MainActor (String, Double) -> String)?
|
|
8234
8271
|
/// The accessible name of a chip's remove button. It is a function because the tag is data and
|
|
8235
8272
|
/// the text around it comes from the app's message catalog. Defaults to `Remove {tag}`.
|
|
8236
8273
|
public var removeLabel: (@MainActor (String) -> String)?
|
|
@@ -8246,6 +8283,7 @@ public struct PMTagInputProps {
|
|
|
8246
8283
|
ariaLabel: String? = nil,
|
|
8247
8284
|
ariaLabelledby: String? = nil,
|
|
8248
8285
|
ariaRequired: Bool? = nil,
|
|
8286
|
+
countLabel: (@MainActor (PMTagInputCountFacts) -> String)? = nil,
|
|
8249
8287
|
defaultValue: [String]? = nil,
|
|
8250
8288
|
disabled: Bool? = nil,
|
|
8251
8289
|
id: String? = nil,
|
|
@@ -8255,6 +8293,7 @@ public struct PMTagInputProps {
|
|
|
8255
8293
|
onBlur: (@MainActor () -> Void)? = nil,
|
|
8256
8294
|
onChange: (@MainActor ([String]) -> Void)? = nil,
|
|
8257
8295
|
placeholder: String? = nil,
|
|
8296
|
+
removedLabel: (@MainActor (String, Double) -> String)? = nil,
|
|
8258
8297
|
removeLabel: (@MainActor (String) -> String)? = nil,
|
|
8259
8298
|
size: PMControlSize? = nil,
|
|
8260
8299
|
validate: (@MainActor (String) -> String?)? = nil,
|
|
@@ -8264,6 +8303,7 @@ public struct PMTagInputProps {
|
|
|
8264
8303
|
self.ariaLabel = ariaLabel
|
|
8265
8304
|
self.ariaLabelledby = ariaLabelledby
|
|
8266
8305
|
self.ariaRequired = ariaRequired
|
|
8306
|
+
self.countLabel = countLabel
|
|
8267
8307
|
self.defaultValue = defaultValue
|
|
8268
8308
|
self.disabled = disabled
|
|
8269
8309
|
self.id = id
|
|
@@ -8273,6 +8313,7 @@ public struct PMTagInputProps {
|
|
|
8273
8313
|
self.onBlur = onBlur
|
|
8274
8314
|
self.onChange = onChange
|
|
8275
8315
|
self.placeholder = placeholder
|
|
8316
|
+
self.removedLabel = removedLabel
|
|
8276
8317
|
self.removeLabel = removeLabel
|
|
8277
8318
|
self.size = size
|
|
8278
8319
|
self.validate = validate
|
|
@@ -8479,6 +8520,8 @@ public struct PMTimeInputProps {
|
|
|
8479
8520
|
public var invalid: Bool?
|
|
8480
8521
|
/// Sets the segment order, the day period names and the separator.
|
|
8481
8522
|
public var locale: String?
|
|
8523
|
+
/// Defaults to generic English (`Empty`). Localized hosts pass strings from their catalog.
|
|
8524
|
+
public var messages: PMTimeInputMessages?
|
|
8482
8525
|
/// Serializes the ISO-8601 time in `Time`'s own format, such as `"09:30:00"`.
|
|
8483
8526
|
public var name: String?
|
|
8484
8527
|
public var onChange: (@MainActor (PMTime?) -> Void)?
|
|
@@ -8503,6 +8546,7 @@ public struct PMTimeInputProps {
|
|
|
8503
8546
|
id: String? = nil,
|
|
8504
8547
|
invalid: Bool? = nil,
|
|
8505
8548
|
locale: String? = nil,
|
|
8549
|
+
messages: PMTimeInputMessages? = nil,
|
|
8506
8550
|
name: String? = nil,
|
|
8507
8551
|
onChange: (@MainActor (PMTime?) -> Void)? = nil,
|
|
8508
8552
|
readOnly: Bool? = nil,
|
|
@@ -8520,6 +8564,7 @@ public struct PMTimeInputProps {
|
|
|
8520
8564
|
self.id = id
|
|
8521
8565
|
self.invalid = invalid
|
|
8522
8566
|
self.locale = locale
|
|
8567
|
+
self.messages = messages
|
|
8523
8568
|
self.name = name
|
|
8524
8569
|
self.onChange = onChange
|
|
8525
8570
|
self.readOnly = readOnly
|
|
@@ -9322,7 +9367,9 @@ public struct PMChartLineAnnotation {
|
|
|
9322
9367
|
|
|
9323
9368
|
/// The web's `ChartMessages`, field for field (`SHAPES` in `packages/native/src/mapping.ts`).
|
|
9324
9369
|
public struct PMChartMessages {
|
|
9325
|
-
/// The summary sentence of a series chart and of Histogram, whose `series` is empty.
|
|
9370
|
+
/// The summary sentence of a series chart and of Histogram, whose `series` is empty. `measure` is
|
|
9371
|
+
/// the `y.label` the values are in, and `xMeasure` a ScatterChart’s `x.label`; each is absent
|
|
9372
|
+
/// while the chart names none.
|
|
9326
9373
|
public var summary: @MainActor (PMChartSummaryFacts) -> String
|
|
9327
9374
|
public var donutSummary: @MainActor (PMDonutSummaryFacts) -> String
|
|
9328
9375
|
/// `grid` is absent when there is no data.
|
|
@@ -9514,15 +9561,21 @@ public struct PMChartSummaryFacts {
|
|
|
9514
9561
|
public var label: String
|
|
9515
9562
|
public var series: [String]
|
|
9516
9563
|
public var points: Double
|
|
9564
|
+
public var measure: String?
|
|
9565
|
+
public var xMeasure: String?
|
|
9517
9566
|
|
|
9518
9567
|
public init(
|
|
9519
9568
|
label: String,
|
|
9520
9569
|
series: [String],
|
|
9521
|
-
points: Double
|
|
9570
|
+
points: Double,
|
|
9571
|
+
measure: String? = nil,
|
|
9572
|
+
xMeasure: String? = nil
|
|
9522
9573
|
) {
|
|
9523
9574
|
self.label = label
|
|
9524
9575
|
self.series = series
|
|
9525
9576
|
self.points = points
|
|
9577
|
+
self.measure = measure
|
|
9578
|
+
self.xMeasure = xMeasure
|
|
9526
9579
|
}
|
|
9527
9580
|
}
|
|
9528
9581
|
|
|
@@ -9706,6 +9759,34 @@ public struct PMCitationSource {
|
|
|
9706
9759
|
}
|
|
9707
9760
|
}
|
|
9708
9761
|
|
|
9762
|
+
/// The web's `ColorInputMessages`, field for field (`SHAPES` in `packages/native/src/mapping.ts`).
|
|
9763
|
+
public struct PMColorInputMessages {
|
|
9764
|
+
/// The web’s saturation and brightness plane’s name. Default: `saturation and brightness`.
|
|
9765
|
+
public var plane: String?
|
|
9766
|
+
/// The plane’s value text. Default: `saturation {saturation}, brightness {brightness}`.
|
|
9767
|
+
public var planeValue: (@MainActor (Double, Double) -> String)?
|
|
9768
|
+
/// The web’s hue rail’s name. Default: `hue`.
|
|
9769
|
+
public var hue: String?
|
|
9770
|
+
/// The web’s alpha rail’s name. Default: `alpha`.
|
|
9771
|
+
public var alpha: String?
|
|
9772
|
+
/// A rail’s value text, given its name and its value. Default: `{name} {value}`.
|
|
9773
|
+
public var railValue: (@MainActor (String, Double) -> String)?
|
|
9774
|
+
|
|
9775
|
+
public init(
|
|
9776
|
+
plane: String? = nil,
|
|
9777
|
+
planeValue: (@MainActor (Double, Double) -> String)? = nil,
|
|
9778
|
+
hue: String? = nil,
|
|
9779
|
+
alpha: String? = nil,
|
|
9780
|
+
railValue: (@MainActor (String, Double) -> String)? = nil
|
|
9781
|
+
) {
|
|
9782
|
+
self.plane = plane
|
|
9783
|
+
self.planeValue = planeValue
|
|
9784
|
+
self.hue = hue
|
|
9785
|
+
self.alpha = alpha
|
|
9786
|
+
self.railValue = railValue
|
|
9787
|
+
}
|
|
9788
|
+
}
|
|
9789
|
+
|
|
9709
9790
|
/// The web's `ComboboxFilter`: `'contains'`, `'startsWith'`, `false`, one case each (`UNIONS` in
|
|
9710
9791
|
/// `packages/native/src/mapping.ts`).
|
|
9711
9792
|
public enum PMComboboxFilter: CaseIterable, Sendable {
|
|
@@ -9723,19 +9804,23 @@ public struct PMComboboxMessages {
|
|
|
9723
9804
|
public var clear: String?
|
|
9724
9805
|
/// The async status while the list loads. Default: `Loading options…`.
|
|
9725
9806
|
public var loadingOptions: String?
|
|
9726
|
-
/// The async status naming the result count. Default: `{count} options
|
|
9807
|
+
/// The async status naming the result count. Default: `{count} options`, `1 option` for one.
|
|
9727
9808
|
public var options: (@MainActor (Double) -> String)?
|
|
9809
|
+
/// The list’s accessible name on the web. Default: `Suggestions`.
|
|
9810
|
+
public var list: String?
|
|
9728
9811
|
|
|
9729
9812
|
public init(
|
|
9730
9813
|
showOptions: String? = nil,
|
|
9731
9814
|
clear: String? = nil,
|
|
9732
9815
|
loadingOptions: String? = nil,
|
|
9733
|
-
options: (@MainActor (Double) -> String)? = nil
|
|
9816
|
+
options: (@MainActor (Double) -> String)? = nil,
|
|
9817
|
+
list: String? = nil
|
|
9734
9818
|
) {
|
|
9735
9819
|
self.showOptions = showOptions
|
|
9736
9820
|
self.clear = clear
|
|
9737
9821
|
self.loadingOptions = loadingOptions
|
|
9738
9822
|
self.options = options
|
|
9823
|
+
self.list = list
|
|
9739
9824
|
}
|
|
9740
9825
|
}
|
|
9741
9826
|
|
|
@@ -9913,19 +9998,23 @@ public struct PMDatePickerMessages {
|
|
|
9913
9998
|
public var clear: String
|
|
9914
9999
|
/// The popup’s accessible name.
|
|
9915
10000
|
public var chooseDate: String
|
|
10001
|
+
/// What an unfilled segment says as its value on the web. Default: `Empty`.
|
|
10002
|
+
public var empty: String?
|
|
9916
10003
|
|
|
9917
10004
|
public init(
|
|
9918
10005
|
previousMonth: String,
|
|
9919
10006
|
nextMonth: String,
|
|
9920
10007
|
showCalendar: String,
|
|
9921
10008
|
clear: String,
|
|
9922
|
-
chooseDate: String
|
|
10009
|
+
chooseDate: String,
|
|
10010
|
+
empty: String? = nil
|
|
9923
10011
|
) {
|
|
9924
10012
|
self.previousMonth = previousMonth
|
|
9925
10013
|
self.nextMonth = nextMonth
|
|
9926
10014
|
self.showCalendar = showCalendar
|
|
9927
10015
|
self.clear = clear
|
|
9928
10016
|
self.chooseDate = chooseDate
|
|
10017
|
+
self.empty = empty
|
|
9929
10018
|
}
|
|
9930
10019
|
}
|
|
9931
10020
|
|
|
@@ -9952,19 +10041,33 @@ public struct PMDateRangePickerMessages {
|
|
|
9952
10041
|
public var clear: String
|
|
9953
10042
|
/// The popup’s accessible name.
|
|
9954
10043
|
public var chooseRange: String
|
|
10044
|
+
/// What an unfilled segment says as its value on the web. Default: `Empty`.
|
|
10045
|
+
public var empty: String?
|
|
10046
|
+
/// The start’s name, said after the field’s: with each of its segments on the web, and with its
|
|
10047
|
+
/// date on iOS. Default: `Start date`.
|
|
10048
|
+
public var start: String?
|
|
10049
|
+
/// The end’s name, said after the field’s: with each of its segments on the web, and with its
|
|
10050
|
+
/// date on iOS. Default: `End date`.
|
|
10051
|
+
public var end: String?
|
|
9955
10052
|
|
|
9956
10053
|
public init(
|
|
9957
10054
|
previousMonth: String,
|
|
9958
10055
|
nextMonth: String,
|
|
9959
10056
|
showCalendar: String,
|
|
9960
10057
|
clear: String,
|
|
9961
|
-
chooseRange: String
|
|
10058
|
+
chooseRange: String,
|
|
10059
|
+
empty: String? = nil,
|
|
10060
|
+
start: String? = nil,
|
|
10061
|
+
end: String? = nil
|
|
9962
10062
|
) {
|
|
9963
10063
|
self.previousMonth = previousMonth
|
|
9964
10064
|
self.nextMonth = nextMonth
|
|
9965
10065
|
self.showCalendar = showCalendar
|
|
9966
10066
|
self.clear = clear
|
|
9967
10067
|
self.chooseRange = chooseRange
|
|
10068
|
+
self.empty = empty
|
|
10069
|
+
self.start = start
|
|
10070
|
+
self.end = end
|
|
9968
10071
|
}
|
|
9969
10072
|
}
|
|
9970
10073
|
|
|
@@ -10775,7 +10878,7 @@ public struct PMMultiSelectMessages {
|
|
|
10775
10878
|
public var remove: (@MainActor (String) -> String)?
|
|
10776
10879
|
/// The async status while the list loads. Default: `Loading options…`.
|
|
10777
10880
|
public var loadingOptions: String?
|
|
10778
|
-
/// The async status naming the result count. Default: `{count} options
|
|
10881
|
+
/// The async status naming the result count. Default: `{count} options`, `1 option` for one.
|
|
10779
10882
|
public var options: (@MainActor (Double) -> String)?
|
|
10780
10883
|
|
|
10781
10884
|
public init(
|
|
@@ -10849,6 +10952,22 @@ public struct PMNumberFormat {
|
|
|
10849
10952
|
}
|
|
10850
10953
|
}
|
|
10851
10954
|
|
|
10955
|
+
/// The web's `NumberInputMessages`, field for field (`SHAPES` in `packages/native/src/mapping.ts`).
|
|
10956
|
+
public struct PMNumberInputMessages {
|
|
10957
|
+
/// The step-up button’s name. Default: the strings catalogue’s `numberInputIncrement`.
|
|
10958
|
+
public var increment: String?
|
|
10959
|
+
/// The step-down button’s name. Default: the strings catalogue’s `numberInputDecrement`.
|
|
10960
|
+
public var decrement: String?
|
|
10961
|
+
|
|
10962
|
+
public init(
|
|
10963
|
+
increment: String? = nil,
|
|
10964
|
+
decrement: String? = nil
|
|
10965
|
+
) {
|
|
10966
|
+
self.increment = increment
|
|
10967
|
+
self.decrement = decrement
|
|
10968
|
+
}
|
|
10969
|
+
}
|
|
10970
|
+
|
|
10852
10971
|
/// The web's `PaginationMessages`, field for field (`SHAPES` in `packages/native/src/mapping.ts`).
|
|
10853
10972
|
public struct PMPaginationMessages {
|
|
10854
10973
|
public var previous: String
|
|
@@ -10873,7 +10992,7 @@ public struct PMPhoneInputMessages {
|
|
|
10873
10992
|
public var country: String?
|
|
10874
10993
|
/// The country list button’s name. Default: `Show countries`.
|
|
10875
10994
|
public var showCountries: String?
|
|
10876
|
-
/// Announced while the list is open. Default: `{count} countries
|
|
10995
|
+
/// Announced while the list is open. Default: `{count} countries`, `1 country` for one.
|
|
10877
10996
|
public var countriesShown: (@MainActor (Double) -> String)?
|
|
10878
10997
|
/// The list’s one row when nothing matches the typed text. Default: `No matching country`.
|
|
10879
10998
|
public var noCountry: String?
|
|
@@ -10967,7 +11086,8 @@ public struct PMPromptInputMessages {
|
|
|
10967
11086
|
public var remove: @MainActor (String) -> String
|
|
10968
11087
|
/// The status announced while a chip’s file uploads.
|
|
10969
11088
|
public var uploading: @MainActor (String) -> String
|
|
10970
|
-
/// The status announced while the suggestion list is open. Default: `{count} suggestions
|
|
11089
|
+
/// The status announced while the suggestion list is open. Default: `{count} suggestions`, `1
|
|
11090
|
+
/// suggestion` for one.
|
|
10971
11091
|
public var suggestions: (@MainActor (Double) -> String)?
|
|
10972
11092
|
/// The status while a trigger’s options load. Default: `Loading suggestions…`.
|
|
10973
11093
|
public var loadingSuggestions: String?
|
|
@@ -11409,6 +11529,26 @@ public struct PMStatDelta {
|
|
|
11409
11529
|
}
|
|
11410
11530
|
}
|
|
11411
11531
|
|
|
11532
|
+
/// An object type the web writes inline, field for field (`SHAPES` in
|
|
11533
|
+
/// `packages/native/src/mapping.ts`). The web’s `StatDeltaLabel` takes the delta as an inline
|
|
11534
|
+
/// object; a native closure takes it as a named value.
|
|
11535
|
+
public struct PMStatDeltaFacts {
|
|
11536
|
+
public var value: String
|
|
11537
|
+
public var direction: PMDeltaDirection
|
|
11538
|
+
/// The sentiment, resolved from the direction.
|
|
11539
|
+
public var positive: Bool
|
|
11540
|
+
|
|
11541
|
+
public init(
|
|
11542
|
+
value: String,
|
|
11543
|
+
direction: PMDeltaDirection,
|
|
11544
|
+
positive: Bool
|
|
11545
|
+
) {
|
|
11546
|
+
self.value = value
|
|
11547
|
+
self.direction = direction
|
|
11548
|
+
self.positive = positive
|
|
11549
|
+
}
|
|
11550
|
+
}
|
|
11551
|
+
|
|
11412
11552
|
/// The web's `StatFooter`, field for field (`SHAPES` in `packages/native/src/mapping.ts`).
|
|
11413
11553
|
public struct PMStatFooter {
|
|
11414
11554
|
public var primary: String
|
|
@@ -11532,6 +11672,27 @@ public struct PMTableOfContentsItem {
|
|
|
11532
11672
|
}
|
|
11533
11673
|
}
|
|
11534
11674
|
|
|
11675
|
+
/// An object type the web writes inline, field for field (`SHAPES` in
|
|
11676
|
+
/// `packages/native/src/mapping.ts`). The web’s `TagInputCountLabel` takes the count as an inline
|
|
11677
|
+
/// object; a native closure takes it as a named value.
|
|
11678
|
+
public struct PMTagInputCountFacts {
|
|
11679
|
+
/// How many tags the field holds.
|
|
11680
|
+
public var count: Double
|
|
11681
|
+
public var max: Double?
|
|
11682
|
+
/// The field holds `max` tags, resolved by the member.
|
|
11683
|
+
public var atMax: Bool
|
|
11684
|
+
|
|
11685
|
+
public init(
|
|
11686
|
+
count: Double,
|
|
11687
|
+
max: Double? = nil,
|
|
11688
|
+
atMax: Bool
|
|
11689
|
+
) {
|
|
11690
|
+
self.count = count
|
|
11691
|
+
self.max = max
|
|
11692
|
+
self.atMax = atMax
|
|
11693
|
+
}
|
|
11694
|
+
}
|
|
11695
|
+
|
|
11535
11696
|
/// `@internationalized/date`'s `Time`, field for field but those it omits (`SHAPES` in
|
|
11536
11697
|
/// `packages/native/src/mapping.ts`).
|
|
11537
11698
|
public struct PMTime {
|
|
@@ -11554,6 +11715,18 @@ public struct PMTime {
|
|
|
11554
11715
|
}
|
|
11555
11716
|
}
|
|
11556
11717
|
|
|
11718
|
+
/// The web's `TimeInputMessages`, field for field (`SHAPES` in `packages/native/src/mapping.ts`).
|
|
11719
|
+
public struct PMTimeInputMessages {
|
|
11720
|
+
/// What an unfilled segment says as its value on the web.
|
|
11721
|
+
public var empty: String
|
|
11722
|
+
|
|
11723
|
+
public init(
|
|
11724
|
+
empty: String
|
|
11725
|
+
) {
|
|
11726
|
+
self.empty = empty
|
|
11727
|
+
}
|
|
11728
|
+
}
|
|
11729
|
+
|
|
11557
11730
|
/// The web's `TimelineEvent`, field for field (`SHAPES` in `packages/native/src/mapping.ts`).
|
|
11558
11731
|
public struct PMTimelineEvent {
|
|
11559
11732
|
public var title: String
|