@metamorph-labs/polymorph-vue-ui 1.0.16 → 1.0.17

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.
Files changed (143) hide show
  1. package/CHANGELOG.md +134 -0
  2. package/dist/ai/ArtifactPane.js.map +1 -1
  3. package/dist/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
  4. package/dist/archetypes/MasterDetailPage.js.map +1 -1
  5. package/dist/archetypes/MasterDetailPage.vue_vue_type_script_setup_true_lang.js +1 -1
  6. package/dist/archetypes/MasterDetailPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
  7. package/dist/archetypes/app-shell.css +1 -1
  8. package/dist/archetypes/app-shell.module.js +2 -2
  9. package/dist/archetypes/app-shell.module.js.map +1 -1
  10. package/dist/controls/RichTextInput.js +7 -0
  11. package/dist/controls/RichTextInput.js.map +1 -0
  12. package/dist/controls/RichTextInput.vue_vue_type_script_setup_true_lang.js +1123 -0
  13. package/dist/controls/RichTextInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
  14. package/dist/controls/rich-text-input.css +1 -0
  15. package/dist/controls/rich-text-input.module.js +47 -0
  16. package/dist/controls/rich-text-input.module.js.map +1 -0
  17. package/dist/controls/selection-bar.css +1 -0
  18. package/dist/controls/selection-bar.module.js +11 -0
  19. package/dist/controls/selection-bar.module.js.map +1 -0
  20. package/dist/index.js +41 -39
  21. package/dist/index.js.map +1 -1
  22. package/dist/node/ai/ArtifactPane.js.map +1 -1
  23. package/dist/node/ai/ArtifactPane.vue_vue_type_script_setup_true_lang.js.map +1 -1
  24. package/dist/node/archetypes/MasterDetailPage.js.map +1 -1
  25. package/dist/node/archetypes/MasterDetailPage.vue_vue_type_script_setup_true_lang.js +1 -1
  26. package/dist/node/archetypes/MasterDetailPage.vue_vue_type_script_setup_true_lang.js.map +1 -1
  27. package/dist/node/archetypes/app-shell.module.js +2 -2
  28. package/dist/node/archetypes/app-shell.module.js.map +1 -1
  29. package/dist/node/controls/RichTextInput.js +7 -0
  30. package/dist/node/controls/RichTextInput.js.map +1 -0
  31. package/dist/node/controls/RichTextInput.vue_vue_type_script_setup_true_lang.js +1123 -0
  32. package/dist/node/controls/RichTextInput.vue_vue_type_script_setup_true_lang.js.map +1 -0
  33. package/dist/node/controls/rich-text-input.module.js +46 -0
  34. package/dist/node/controls/rich-text-input.module.js.map +1 -0
  35. package/dist/node/controls/selection-bar.module.js +10 -0
  36. package/dist/node/controls/selection-bar.module.js.map +1 -0
  37. package/dist/node/index.js +41 -39
  38. package/dist/node/index.js.map +1 -1
  39. package/dist/node/overlays/Toast.js.map +1 -1
  40. package/dist/node/overlays/Toast.vue_vue_type_script_setup_true_lang.js +27 -27
  41. package/dist/node/overlays/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
  42. package/dist/node/structure/Accordion.js.map +1 -1
  43. package/dist/node/structure/Accordion.vue_vue_type_script_setup_true_lang.js +4 -0
  44. package/dist/node/structure/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
  45. package/dist/node/structure/Collapsible.js.map +1 -1
  46. package/dist/node/structure/Collapsible.vue_vue_type_script_setup_true_lang.js +4 -0
  47. package/dist/node/structure/Collapsible.vue_vue_type_script_setup_true_lang.js.map +1 -1
  48. package/dist/node/structure/CursorPagination.js.map +1 -1
  49. package/dist/node/structure/CursorPagination.vue_vue_type_script_setup_true_lang.js +140 -93
  50. package/dist/node/structure/CursorPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  51. package/dist/node/structure/Image.js.map +1 -1
  52. package/dist/node/structure/Image.vue_vue_type_script_setup_true_lang.js +30 -18
  53. package/dist/node/structure/Image.vue_vue_type_script_setup_true_lang.js.map +1 -1
  54. package/dist/node/structure/Pagination.js.map +1 -1
  55. package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js +124 -71
  56. package/dist/node/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  57. package/dist/node/structure/RichTextContent.js +7 -0
  58. package/dist/node/structure/RichTextContent.js.map +1 -0
  59. package/dist/node/structure/RichTextContent.vue_vue_type_script_setup_true_lang.js +298 -0
  60. package/dist/node/structure/RichTextContent.vue_vue_type_script_setup_true_lang.js.map +1 -0
  61. package/dist/node/structure/RichTextContentBlocks.js +7 -0
  62. package/dist/node/structure/RichTextContentBlocks.js.map +1 -0
  63. package/dist/node/structure/RichTextContentBlocks.vue_vue_type_script_setup_true_lang.js +94 -0
  64. package/dist/node/structure/RichTextContentBlocks.vue_vue_type_script_setup_true_lang.js.map +1 -0
  65. package/dist/node/structure/RichTextContentInlines.js +7 -0
  66. package/dist/node/structure/RichTextContentInlines.js.map +1 -0
  67. package/dist/node/structure/RichTextContentInlines.vue_vue_type_script_setup_true_lang.js +69 -0
  68. package/dist/node/structure/RichTextContentInlines.vue_vue_type_script_setup_true_lang.js.map +1 -0
  69. package/dist/node/structure/RichTextContentItem.js +7 -0
  70. package/dist/node/structure/RichTextContentItem.js.map +1 -0
  71. package/dist/node/structure/RichTextContentItem.vue_vue_type_script_setup_true_lang.js +94 -0
  72. package/dist/node/structure/RichTextContentItem.vue_vue_type_script_setup_true_lang.js.map +1 -0
  73. package/dist/node/structure/code-block.module.js +2 -2
  74. package/dist/node/structure/code-block.module.js.map +1 -1
  75. package/dist/node/structure/cursor-pagination.module.js +6 -3
  76. package/dist/node/structure/cursor-pagination.module.js.map +1 -1
  77. package/dist/node/structure/pagination.module.js +6 -3
  78. package/dist/node/structure/pagination.module.js.map +1 -1
  79. package/dist/node/structure/rich-text-content.module.js +18 -0
  80. package/dist/node/structure/rich-text-content.module.js.map +1 -0
  81. package/dist/overlays/Toast.js.map +1 -1
  82. package/dist/overlays/Toast.vue_vue_type_script_setup_true_lang.js +27 -27
  83. package/dist/overlays/Toast.vue_vue_type_script_setup_true_lang.js.map +1 -1
  84. package/dist/structure/Accordion.js.map +1 -1
  85. package/dist/structure/Accordion.vue_vue_type_script_setup_true_lang.js +4 -0
  86. package/dist/structure/Accordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
  87. package/dist/structure/Collapsible.js.map +1 -1
  88. package/dist/structure/Collapsible.vue_vue_type_script_setup_true_lang.js +4 -0
  89. package/dist/structure/Collapsible.vue_vue_type_script_setup_true_lang.js.map +1 -1
  90. package/dist/structure/CursorPagination.js.map +1 -1
  91. package/dist/structure/CursorPagination.vue_vue_type_script_setup_true_lang.js +140 -93
  92. package/dist/structure/CursorPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  93. package/dist/structure/Image.js.map +1 -1
  94. package/dist/structure/Image.vue_vue_type_script_setup_true_lang.js +30 -18
  95. package/dist/structure/Image.vue_vue_type_script_setup_true_lang.js.map +1 -1
  96. package/dist/structure/Pagination.js.map +1 -1
  97. package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js +124 -71
  98. package/dist/structure/Pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  99. package/dist/structure/RichTextContent.js +7 -0
  100. package/dist/structure/RichTextContent.js.map +1 -0
  101. package/dist/structure/RichTextContent.vue_vue_type_script_setup_true_lang.js +298 -0
  102. package/dist/structure/RichTextContent.vue_vue_type_script_setup_true_lang.js.map +1 -0
  103. package/dist/structure/RichTextContentBlocks.js +7 -0
  104. package/dist/structure/RichTextContentBlocks.js.map +1 -0
  105. package/dist/structure/RichTextContentBlocks.vue_vue_type_script_setup_true_lang.js +94 -0
  106. package/dist/structure/RichTextContentBlocks.vue_vue_type_script_setup_true_lang.js.map +1 -0
  107. package/dist/structure/RichTextContentInlines.js +7 -0
  108. package/dist/structure/RichTextContentInlines.js.map +1 -0
  109. package/dist/structure/RichTextContentInlines.vue_vue_type_script_setup_true_lang.js +69 -0
  110. package/dist/structure/RichTextContentInlines.vue_vue_type_script_setup_true_lang.js.map +1 -0
  111. package/dist/structure/RichTextContentItem.js +7 -0
  112. package/dist/structure/RichTextContentItem.js.map +1 -0
  113. package/dist/structure/RichTextContentItem.vue_vue_type_script_setup_true_lang.js +94 -0
  114. package/dist/structure/RichTextContentItem.vue_vue_type_script_setup_true_lang.js.map +1 -0
  115. package/dist/structure/code-block.css +1 -1
  116. package/dist/structure/code-block.module.js +2 -2
  117. package/dist/structure/code-block.module.js.map +1 -1
  118. package/dist/structure/cursor-pagination.css +1 -1
  119. package/dist/structure/cursor-pagination.module.js +6 -3
  120. package/dist/structure/cursor-pagination.module.js.map +1 -1
  121. package/dist/structure/pagination.css +1 -1
  122. package/dist/structure/pagination.module.js +6 -3
  123. package/dist/structure/pagination.module.js.map +1 -1
  124. package/dist/structure/rich-text-content.css +1 -0
  125. package/dist/structure/rich-text-content.module.js +19 -0
  126. package/dist/structure/rich-text-content.module.js.map +1 -0
  127. package/dist/types/ai/ArtifactPane.vue.d.ts +1 -1
  128. package/dist/types/ai/AttachmentChip.vue.d.ts +1 -1
  129. package/dist/types/ai/ToolCall.vue.d.ts +1 -1
  130. package/dist/types/controls/RichTextInput.vue.d.ts +210 -0
  131. package/dist/types/index.d.ts +4 -0
  132. package/dist/types/overlays/CommandPanel.vue.d.ts +2 -2
  133. package/dist/types/structure/Accordion.vue.d.ts +7 -0
  134. package/dist/types/structure/Collapsible.vue.d.ts +7 -0
  135. package/dist/types/structure/CursorPagination.vue.d.ts +13 -0
  136. package/dist/types/structure/EmptyState.vue.d.ts +1 -1
  137. package/dist/types/structure/Image.vue.d.ts +13 -0
  138. package/dist/types/structure/Pagination.vue.d.ts +8 -0
  139. package/dist/types/structure/RichTextContent.vue.d.ts +59 -0
  140. package/dist/types/structure/RichTextContentBlocks.vue.d.ts +7 -0
  141. package/dist/types/structure/RichTextContentInlines.vue.d.ts +7 -0
  142. package/dist/types/structure/RichTextContentItem.vue.d.ts +7 -0
  143. package/package.json +17 -4
@@ -0,0 +1,94 @@
1
+ import e from "./CodeBlock.js";
2
+ import t from "./Heading.js";
3
+ import n from "./Text.js";
4
+ import r from "./rich-text-content.module.js";
5
+ import i from "./RichTextContentInlines.js";
6
+ import a from "./RichTextContentBlocks.js";
7
+ import { richTextPositionAttrs as o } from "@polymorph/vue";
8
+ import { Fragment as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, inject as h, mergeProps as g, normalizeClass as _, openBlock as v, renderList as y, resolveComponent as b, toDisplayString as x, unref as S, withCtx as C } from "vue";
9
+ //#region src/structure/RichTextContentItem.vue?vue&type=script&setup=true&lang.ts
10
+ var w = ["data-level"], T = ["data-level"], E = ["data-level"], D = ["start"], O = /*@__PURE__*/ m({
11
+ name: "RichTextContentItem",
12
+ inheritAttrs: !1,
13
+ __name: "RichTextContentItem",
14
+ props: { blocks: {} },
15
+ setup(m) {
16
+ let O = h("polymorph:RichTextContent", {});
17
+ return (h, k) => {
18
+ let A = b("RichTextContentItem", !0);
19
+ return v(), u("li", { class: _(S(r).item) }, [(v(!0), u(s, null, y(m.blocks, (m, h) => (v(), u(s, { key: h }, [m.kind === "paragraph" ? (v(), c(n, {
20
+ key: 0,
21
+ size: S(O).size
22
+ }, {
23
+ default: C(() => [p(i, { inlines: m.inlines }, null, 8, ["inlines"])]),
24
+ _: 2
25
+ }, 1032, ["size"])) : m.kind === "heading" ? (v(), c(t, {
26
+ key: 1,
27
+ level: m.level
28
+ }, {
29
+ default: C(() => [f(x(m.text), 1)]),
30
+ _: 2
31
+ }, 1032, ["level"])) : m.kind === "ownHeading" && m.level === 4 ? (v(), u("h4", {
32
+ key: 2,
33
+ class: _(S(r).heading),
34
+ "data-level": String(m.level)
35
+ }, [p(i, { inlines: m.inlines }, null, 8, ["inlines"])], 10, w)) : m.kind === "ownHeading" && m.level === 3 ? (v(), u("h3", {
36
+ key: 3,
37
+ class: _(S(r).heading),
38
+ "data-level": String(m.level)
39
+ }, [p(i, { inlines: m.inlines }, null, 8, ["inlines"])], 10, T)) : m.kind === "ownHeading" ? (v(), u("h2", {
40
+ key: 4,
41
+ class: _(S(r).heading),
42
+ "data-level": String(m.level)
43
+ }, [p(i, { inlines: m.inlines }, null, 8, ["inlines"])], 10, E)) : m.kind === "list" && m.ordered ? (v(), u("ol", {
44
+ key: 5,
45
+ class: _(S(r).list),
46
+ start: m.start
47
+ }, [(v(!0), u(s, null, y(m.items, (e, t) => (v(), c(A, {
48
+ key: t,
49
+ blocks: e
50
+ }, null, 8, ["blocks"]))), 128))], 10, D)) : m.kind === "list" ? (v(), u("ul", {
51
+ key: 6,
52
+ class: _(S(r).list)
53
+ }, [(v(!0), u(s, null, y(m.items, (e, t) => (v(), c(A, {
54
+ key: t,
55
+ blocks: e
56
+ }, null, 8, ["blocks"]))), 128))], 2)) : m.kind === "quote" ? (v(), u("blockquote", {
57
+ key: 7,
58
+ class: _(S(r).quote)
59
+ }, [p(a, { blocks: m.blocks }, null, 8, ["blocks"])], 2)) : m.kind === "codeBlock" && m.at === null ? (v(), c(e, {
60
+ key: 8,
61
+ copyable: m.copyable,
62
+ label: m.language
63
+ }, {
64
+ default: C(() => [f(x(m.text), 1)]),
65
+ _: 2
66
+ }, 1032, ["copyable", "label"])) : m.kind === "codeBlock" ? (v(), u("div", g({
67
+ key: 9,
68
+ ref_for: !0
69
+ }, S(o)(m.at, !0, !0)), [p(e, {
70
+ copyable: m.copyable,
71
+ label: m.language
72
+ }, {
73
+ default: C(() => [f(x(m.text), 1)]),
74
+ _: 2
75
+ }, 1032, ["copyable", "label"])], 16)) : m.kind === "later" && m.at === null ? (v(), c(n, {
76
+ key: 10,
77
+ size: S(O).size
78
+ }, {
79
+ default: C(() => [f(x(m.text), 1)]),
80
+ _: 2
81
+ }, 1032, ["size"])) : m.kind === "later" ? (v(), c(n, {
82
+ key: 11,
83
+ size: S(O).size
84
+ }, {
85
+ default: C(() => [d("span", g({ ref_for: !0 }, S(o)(m.at, !0)), x(m.text), 17)]),
86
+ _: 2
87
+ }, 1032, ["size"])) : l("", !0)], 64))), 128))], 2);
88
+ };
89
+ }
90
+ });
91
+ //#endregion
92
+ export { O as default };
93
+
94
+ //# sourceMappingURL=RichTextContentItem.vue_vue_type_script_setup_true_lang.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RichTextContentItem.vue_vue_type_script_setup_true_lang.js","names":[],"sources":["../../src/structure/RichTextContentItem.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * RichTextContent.Item: a list’s item and its drawn blocks.\n *\n * Generated by `pnpm shells` from `packages/shells/src/members/rich-text-content.ts`, the member's\n * framework-neutral description. Never edit it by hand: change the description and\n * run `pnpm shells`.\n */\nimport { inject } from 'vue'\n\nimport { richTextPositionAttrs, type RichTextDrawnBlock } from '@polymorph/vue'\nimport styles from '@polymorph/recipes/structure/rich-text-content.module.css'\nimport CodeBlock from './CodeBlock.vue'\nimport Heading from './Heading.vue'\nimport RichTextContentBlocks from './RichTextContentBlocks.vue'\nimport RichTextContentInlines from './RichTextContentInlines.vue'\nimport Text from './Text.vue'\n\nexport interface RichTextContentItemProps {\n blocks: RichTextDrawnBlock[]\n}\n\ndefineOptions({ name: 'RichTextContentItem', inheritAttrs: false })\n\ndefineProps<RichTextContentItemProps>()\nconst owner = inject<Record<string, any>>('polymorph:RichTextContent', {})\n</script>\n\n<template>\n <li :class=\"styles.item\">\n <template v-for=\"(block, index) in blocks\" :key=\"index\">\n <Text v-if=\"block.kind === 'paragraph'\" :size=\"owner.size\">\n <RichTextContentInlines :inlines=\"block.inlines\" />\n </Text>\n <Heading v-else-if=\"block.kind === 'heading'\" :level=\"block.level\">\n {{ block.text }}\n </Heading>\n <h4\n v-else-if=\"block.kind === 'ownHeading' && block.level === 4\"\n :class=\"styles.heading\"\n :data-level=\"String(block.level)\"\n >\n <RichTextContentInlines :inlines=\"block.inlines\" />\n </h4>\n <h3\n v-else-if=\"block.kind === 'ownHeading' && block.level === 3\"\n :class=\"styles.heading\"\n :data-level=\"String(block.level)\"\n >\n <RichTextContentInlines :inlines=\"block.inlines\" />\n </h3>\n <h2\n v-else-if=\"block.kind === 'ownHeading'\"\n :class=\"styles.heading\"\n :data-level=\"String(block.level)\"\n >\n <RichTextContentInlines :inlines=\"block.inlines\" />\n </h2>\n <!-- list -->\n <ol\n v-else-if=\"block.kind === 'list' && block.ordered\"\n :class=\"styles.list\"\n :start=\"block.start\"\n >\n <template v-for=\"(entry, position) in block.items\" :key=\"position\">\n <RichTextContentItem :blocks=\"entry\" />\n </template>\n </ol>\n <!-- list -->\n <ul v-else-if=\"block.kind === 'list'\" :class=\"styles.list\">\n <template v-for=\"(entry, position) in block.items\" :key=\"position\">\n <RichTextContentItem :blocks=\"entry\" />\n </template>\n </ul>\n <!-- quote -->\n <blockquote v-else-if=\"block.kind === 'quote'\" :class=\"styles.quote\">\n <RichTextContentBlocks :blocks=\"block.blocks\" />\n </blockquote>\n <CodeBlock\n v-else-if=\"block.kind === 'codeBlock' && block.at === null\"\n :copyable=\"block.copyable\"\n :label=\"block.language\"\n >\n {{ block.text }}\n </CodeBlock>\n <div\n v-else-if=\"block.kind === 'codeBlock'\"\n v-bind=\"richTextPositionAttrs(block.at, true, true)\"\n >\n <CodeBlock :copyable=\"block.copyable\" :label=\"block.language\">\n {{ block.text }}\n </CodeBlock>\n </div>\n <Text v-else-if=\"block.kind === 'later' && block.at === null\" :size=\"owner.size\">\n {{ block.text }}\n </Text>\n <Text v-else-if=\"block.kind === 'later'\" :size=\"owner.size\">\n <span v-bind=\"richTextPositionAttrs(block.at, true)\">\n {{ block.text }}\n </span>\n </Text>\n </template>\n </li>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;EAyBA,IAAM,IAAQ,EAA4B,6BAA6B,CAAC,CAAC;;;eAIvE,EAyEK,MAAA,EAzEA,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,IAAI,EAAA,GAAA,EAAA,EAAA,EAAA,GACrB,EAuEW,GAAA,MAAA,EAvEwB,EAAA,SAAjB,GAAO,wBAAwB,EAAK,GAAA,CACxC,EAAM,SAAI,eAAA,EAAA,GAAtB,EAEO,GAAA;;IAFkC,MAAM,EAAA,CAAA,CAAK,CAAC;;qBACA,CAAnD,EAAmD,GAAA,EAA1B,SAAS,EAAM,QAAA,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA,CAAA,CAAA;;yBAEtB,EAAM,SAAI,aAAA,EAAA,GAA9B,EAEU,GAAA;;IAFqC,OAAO,EAAM;;qBAC1C,CAAA,EAAA,EAAb,EAAM,IAAI,GAAA,CAAA,CAAA,CAAA;;0BAGF,EAAM,SAAI,gBAAqB,EAAM,UAAK,KAAA,EAAA,GADvD,EAMK,MAAA;;IAJF,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,OAAO;IACrB,cAAY,OAAO,EAAM,KAAK;OAE/B,EAAmD,GAAA,EAA1B,SAAS,EAAM,QAAA,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA,CAAA,GAAA,IAAA,CAAA,KAG7B,EAAM,SAAI,gBAAqB,EAAM,UAAK,KAAA,EAAA,GADvD,EAMK,MAAA;;IAJF,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,OAAO;IACrB,cAAY,OAAO,EAAM,KAAK;OAE/B,EAAmD,GAAA,EAA1B,SAAS,EAAM,QAAA,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA,CAAA,GAAA,IAAA,CAAA,KAG7B,EAAM,SAAI,gBAAA,EAAA,GADvB,EAMK,MAAA;;IAJF,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,OAAO;IACrB,cAAY,OAAO,EAAM,KAAK;OAE/B,EAAmD,GAAA,EAA1B,SAAS,EAAM,QAAA,GAAA,MAAA,GAAA,CAAA,SAAA,CAAA,CAAA,GAAA,IAAA,CAAA,KAI7B,EAAM,SAAI,UAAe,EAAM,WAAA,EAAA,GAD5C,EAQK,MAAA;;IANF,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,IAAI;IAClB,OAAO,EAAM;eAEd,EAEW,GAAA,MAAA,EAF2B,EAAM,QAA1B,GAAO,YACvB,EAAuC,GAAA;SADgB;IACjC,QAAQ;gDAInB,EAAM,SAAI,UAAA,EAAA,GAAzB,EAIK,MAAA;;IAJkC,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,IAAI;eACvD,EAEW,GAAA,MAAA,EAF2B,EAAM,QAA1B,GAAO,YACvB,EAAuC,GAAA;SADgB;IACjC,QAAQ;4CAIX,EAAM,SAAI,WAAA,EAAA,GAAjC,EAEa,cAAA;;IAFmC,OAAK,EAAE,EAAA,CAAA,CAAM,CAAC,KAAK;OACjE,EAAgD,GAAA,EAAxB,QAAQ,EAAM,OAAA,GAAA,MAAA,GAAA,CAAA,QAAA,CAAA,CAAA,GAAA,CAAA,KAG3B,EAAM,SAAI,eAAoB,EAAM,OAAE,QAAA,EAAA,GADnD,EAMY,GAAA;;IAJT,UAAU,EAAM;IAChB,OAAO,EAAM;;qBAEE,CAAA,EAAA,EAAb,EAAM,IAAI,GAAA,CAAA,CAAA,CAAA;;sCAGF,EAAM,SAAI,eAAA,EAAA,GADvB,EAOM,OAPN,EAOM;;;MALI,EAAA,CAAA,CAAqB,CAAC,EAAM,IAAE,IAAA,EAAA,CAAA,GAAA,CAEtC,EAEY,GAAA;IAFA,UAAU,EAAM;IAAW,OAAO,EAAM;;qBAClC,CAAA,EAAA,EAAb,EAAM,IAAI,GAAA,CAAA,CAAA,CAAA;;4CAGA,EAAM,SAAI,WAAgB,EAAM,OAAE,QAAA,EAAA,GAAnD,EAEO,GAAA;;IAFwD,MAAM,EAAA,CAAA,CAAK,CAAC;;qBACzD,CAAA,EAAA,EAAb,EAAM,IAAI,GAAA,CAAA,CAAA,CAAA;;yBAEE,EAAM,SAAI,WAAA,EAAA,GAA3B,EAIO,GAAA;;IAJmC,MAAM,EAAA,CAAA,CAAK,CAAC;;qBAG7C,CAFP,EAEO,QAFP,EAEO,EAAA,SAAA,GAAA,GAFO,EAAA,CAAA,CAAqB,CAAC,EAAM,IAAE,EAAA,CAAA,GAAA,EACvC,EAAM,IAAI,GAAA,EAAA,CAAA,CAAA"}
@@ -1 +1 @@
1
- ._focusRing_1lfnc_15:focus-visible{outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:has(>input:focus-visible){outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:focus-visible:not([data-invalid],[aria-invalid=true],[data-selected],[data-range-start],[data-range-end]){border-color:var(--pm-border-focus-solid)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){border-color:var(--pm-border-focus-solid)}@container style(--pm-focus-field:border){._focusRing_1lfnc_15:is(textarea,[role=combobox]):focus-visible:not([data-invalid],[aria-invalid=true]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}}._visuallyHidden_qxi8b_14{white-space:nowrap;clip-path:inset(50%);block-size:1px;inline-size:1px;position:absolute;overflow:hidden}._block_122rw_6{padding:var(--pm-space-4);font-family:var(--pm-font-mono);font-size:var(--pm-text-sm-size);color:var(--pm-text-primary);white-space:pre;background:var(--pm-bg-subtle);border:1px solid var(--pm-border-subtle);border-radius:var(--pm-radius-md);overflow-x:auto}._block_122rw_6[data-copyable]{padding-inline-end:calc(var(--pm-space-4) + var(--pm-control-height-sm))}._copyable_122rw_29{position:relative}._control_122rw_35{position:absolute;inset-block-start:var(--pm-space-4);inset-inline-end:var(--pm-space-4)}._copyable_122rw_29[data-state=copied] ._control_122rw_35{animation:_code-block-swap_122rw_1 var(--pm-motion-duration-control) var(--pm-motion-easing-standard)}@keyframes _code-block-swap_122rw_1{0%{opacity:0}}
1
+ ._focusRing_1lfnc_15:focus-visible{outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:has(>input:focus-visible){outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:focus-visible:not([data-invalid],[aria-invalid=true],[data-selected],[data-range-start],[data-range-end]){border-color:var(--pm-border-focus-solid)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){border-color:var(--pm-border-focus-solid)}@container style(--pm-focus-field:border){._focusRing_1lfnc_15:is(textarea,[role=combobox]):focus-visible:not([data-invalid],[aria-invalid=true]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}}._visuallyHidden_qxi8b_14{white-space:nowrap;clip-path:inset(50%);block-size:1px;inline-size:1px;position:absolute;overflow:hidden}._block_1j1lk_6{padding:var(--pm-space-4);font-family:var(--pm-font-mono);font-size:var(--pm-text-sm-size);line-height:var(--pm-text-sm-line-height);color:var(--pm-text-primary);white-space:pre;background:var(--pm-bg-subtle);border:1px solid var(--pm-border-subtle);border-radius:var(--pm-radius-md);overflow-x:auto}._block_1j1lk_6[data-copyable]{padding-inline-end:calc(var(--pm-space-2) + var(--pm-control-height-sm) + var(--pm-space-4))}._copyable_1j1lk_39{grid-template-columns:minmax(0,1fr);display:grid;position:relative}._control_1j1lk_55{box-sizing:border-box;block-size:calc(var(--pm-space-4) + 2 * var(--pm-text-sm-line-height) * var(--pm-text-sm-size));max-block-size:calc(100% - 2px - var(--pm-space-4));padding-block-start:calc(var(--pm-space-4) - 1px);padding-inline:var(--pm-space-2) calc(var(--pm-space-4) - 1px);background:var(--pm-bg-subtle);border-start-end-radius:var(--pm-radius-md);position:absolute;inset-block-start:1px;inset-inline-end:1px}._copyable_1j1lk_39[data-state=copied] ._control_1j1lk_55{animation:_code-block-swap_1j1lk_1 var(--pm-motion-duration-control) var(--pm-motion-easing-standard)}@keyframes _code-block-swap_1j1lk_1{0%{opacity:0}}
@@ -1,10 +1,10 @@
1
1
  import './code-block.css';
2
2
  //#region ../recipes/src/structure/code-block.module.css
3
- var e = "_block_122rw_6 _focusRing_1lfnc_15", t = "_copyable_122rw_29", n = "_control_122rw_35", r = "_reader_122rw_54 _visuallyHidden_qxi8b_14", i = {
3
+ var e = "_block_1j1lk_6 _focusRing_1lfnc_15", t = "_copyable_1j1lk_39", n = "_control_1j1lk_55", r = "_reader_1j1lk_81 _visuallyHidden_qxi8b_14", i = {
4
4
  block: e,
5
5
  copyable: t,
6
6
  control: n,
7
- "code-block-swap": "_code-block-swap_122rw_1",
7
+ "code-block-swap": "_code-block-swap_1j1lk_1",
8
8
  reader: r
9
9
  };
10
10
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"code-block.module.js","names":[],"sources":["../../../recipes/src/structure/code-block.module.css"],"sourcesContent":["/* CodeBlock — `design/components/code-block.md`.\n *\n * The `<pre>` is the scroll container itself: the spec's anatomy is only\n * `<pre><code>`, and a wrapper would split the border from the scrolling. */\n\n.block {\n composes: focusRing from '../conventions/focus.module.css';\n padding: var(--pm-space-4);\n overflow-x: auto;\n font-family: var(--pm-font-mono);\n font-size: var(--pm-text-sm-size);\n color: var(--pm-text-primary);\n\n /* Whitespace is content, and wrapping a command would change it. */\n white-space: pre;\n background: var(--pm-bg-subtle);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-md);\n}\n\n/* With the copy control in the corner, the block reserves its width so the\n longest line scrolls clear of it (container-first: content is never covered). */\n.block[data-copyable] {\n padding-inline-end: calc(var(--pm-space-4) + var(--pm-control-height-sm));\n}\n\n/* The wrapper exists only when copyable. It is the containing block for the\n corner control and paints nothing. */\n.copyable {\n position: relative;\n}\n\n/* Corner control, placed like Dialog's close: absolute, inset from the top and\n inline end by the block's padding step. */\n.control {\n position: absolute;\n inset-block-start: var(--pm-space-4);\n inset-inline-end: var(--pm-space-4);\n}\n\n/* The `copy` → `confirm` swap fades in at control duration, as Table's sort\n glyph does. Enter only, like Input's clear, because nobody watches the revert.\n Opacity only, so reduced motion has nothing to remove. */\n.copyable[data-state='copied'] .control {\n animation: code-block-swap var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n@keyframes code-block-swap {\n from {\n opacity: 0;\n }\n}\n\n.reader {\n composes: visuallyHidden from '../conventions/a11y.module.css';\n}\n"],"mappings":""}
1
+ {"version":3,"file":"code-block.module.js","names":[],"sources":["../../../recipes/src/structure/code-block.module.css"],"sourcesContent":["/* CodeBlock — `design/components/code-block.md`.\n *\n * The `<pre>` is the scroll container itself: the spec's anatomy is only\n * `<pre><code>`, and a wrapper would split the border from the scrolling. */\n\n.block {\n composes: focusRing from '../conventions/focus.module.css';\n padding: var(--pm-space-4);\n overflow-x: auto;\n font-family: var(--pm-font-mono);\n font-size: var(--pm-text-sm-size);\n\n /* Stated, not inherited, because the copy control is sized in lines. */\n line-height: var(--pm-text-sm-line-height);\n color: var(--pm-text-primary);\n\n /* Whitespace is content, and wrapping a command would change it. */\n white-space: pre;\n background: var(--pm-bg-subtle);\n border: 1px solid var(--pm-border-subtle);\n border-radius: var(--pm-radius-md);\n}\n\n/* With the copy control in the corner, the block reserves the corner's width so\n the longest line scrolls clear of it (container-first: content is never\n covered at rest). */\n.block[data-copyable] {\n padding-inline-end: calc(var(--pm-space-2) + var(--pm-control-height-sm) + var(--pm-space-4));\n}\n\n/* The wrapper exists only when copyable. It is the containing block for the\n corner control and paints nothing.\n\n It is a one-cell grid so the block always fills it. A row that stretches the\n wrapper beside a taller neighbour then stretches the block with it, as it\n stretches a block with no control, and the control, which is sized against\n the wrapper, is sized against the block. `minmax(0, 1fr)` keeps the cell the\n wrapper's width, so a long line scrolls and does not widen it. */\n.copyable {\n position: relative;\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n}\n\n/* Corner control, placed like Dialog's close: the button sits inset from the\n top and inline end by the block's padding step. The control itself reaches\n the block's corner, inside its border, and paints the block's surface, so a\n line that runs into the corner before it is scrolled is cut off at one edge\n and never shows through or beside the glyph.\n\n It ends where the second line of code ends, which is the least that holds\n the button, so it never covers part of a line. A one-line block is shorter\n than that, and the maximum stops the control at the block's bottom padding\n there, clear of the rounded corner and of a scrollbar. */\n.control {\n position: absolute;\n inset-block-start: 1px;\n inset-inline-end: 1px;\n box-sizing: border-box;\n block-size: calc(var(--pm-space-4) + 2 * var(--pm-text-sm-line-height) * var(--pm-text-sm-size));\n max-block-size: calc(100% - 2px - var(--pm-space-4));\n padding-block-start: calc(var(--pm-space-4) - 1px);\n padding-inline: var(--pm-space-2) calc(var(--pm-space-4) - 1px);\n background: var(--pm-bg-subtle);\n border-start-end-radius: var(--pm-radius-md);\n}\n\n/* The `copy` → `confirm` swap fades in at control duration, as Table's sort\n glyph does. Enter only, like Input's clear, because nobody watches the revert.\n Opacity only, so reduced motion has nothing to remove. */\n.copyable[data-state='copied'] .control {\n animation: code-block-swap var(--pm-motion-duration-control) var(--pm-motion-easing-standard);\n}\n\n@keyframes code-block-swap {\n from {\n opacity: 0;\n }\n}\n\n.reader {\n composes: visuallyHidden from '../conventions/a11y.module.css';\n}\n"],"mappings":""}
@@ -1 +1 @@
1
- ._focusRing_1lfnc_15:focus-visible{outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:has(>input:focus-visible){outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:focus-visible:not([data-invalid],[aria-invalid=true],[data-selected],[data-range-start],[data-range-end]){border-color:var(--pm-border-focus-solid)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){border-color:var(--pm-border-focus-solid)}@container style(--pm-focus-field:border){._focusRing_1lfnc_15:is(textarea,[role=combobox]):focus-visible:not([data-invalid],[aria-invalid=true]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}}._pagination_vvzj3_13{border-radius:var(--pm-radius-control);flex-direction:column;display:inline-flex}._position_vvzj3_22,._end_vvzj3_23{font-family:var(--pm-text-sm-family);font-size:var(--pm-text-sm-size);font-weight:var(--pm-text-sm-weight);line-height:var(--pm-text-sm-line-height);letter-spacing:var(--pm-text-sm-tracking);color:var(--pm-text-muted)}._position_vvzj3_22{font-variant-numeric:var(--pm-font-numeric)}
1
+ ._focusRing_1lfnc_15:focus-visible{outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:has(>input:focus-visible){outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:focus-visible:not([data-invalid],[aria-invalid=true],[data-selected],[data-range-start],[data-range-end]){border-color:var(--pm-border-focus-solid)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){border-color:var(--pm-border-focus-solid)}@container style(--pm-focus-field:border){._focusRing_1lfnc_15:is(textarea,[role=combobox]):focus-visible:not([data-invalid],[aria-invalid=true]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}}._stateFeedback_lkjqs_17{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard)}._pressable_lkjqs_38{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard), transform var(--pm-motion-duration-control) var(--pm-motion-easing-enter)}._pressable_lkjqs_38:active{transform:scale(var(--pm-motion-press-scale));transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard), transform calc(var(--pm-motion-duration-control) * .5) var(--pm-motion-easing-standard)}@keyframes _pm-spin_lkjqs_1{to{transform:rotate(360deg)}}@keyframes _pm-fade-in_lkjqs_1{0%{opacity:0}}@keyframes _pm-shimmer_lkjqs_1{0%{transform:translate(-100%)}to{transform:translate(100%)}}._spin_lkjqs_83{animation:_pm-spin_lkjqs_1 var(--pm-motion-ambient-spin) linear infinite}._fadeIn_lkjqs_92{animation:_pm-fade-in_lkjqs_1 var(--pm-motion-duration-control) var(--pm-motion-easing-enter) both}._shimmer_lkjqs_98{position:relative;overflow:hidden}._shimmer_lkjqs_98:after{content:"";background:linear-gradient(90deg, var(--pm-bg-subtle) 0%, var(--pm-bg-raised) 50%, var(--pm-bg-subtle) 100%);width:200%;animation:_pm-shimmer_lkjqs_1 var(--pm-motion-ambient-shimmer) linear infinite;position:absolute;inset:0}[data-motion=none] ._spin_lkjqs_83,[data-motion=none] ._fadeIn_lkjqs_92,[data-motion=none] ._shimmer_lkjqs_98:after{animation:none}@media (prefers-reduced-motion:reduce){._spin_lkjqs_83,._fadeIn_lkjqs_92,._shimmer_lkjqs_98:after{animation:none}._pressable_lkjqs_38,._pressable_lkjqs_38:active{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard);transform:none}}._button_17o12_17{gap:var(--pm-space-3);max-inline-size:100%;block-size:var(--pm-control-height-md);padding-inline:var(--pm-space-5);font-family:var(--pm-text-sm-family);font-size:var(--pm-text-sm-size);font-weight:var(--pm-text-sm-weight);line-height:var(--pm-text-sm-line-height);letter-spacing:var(--pm-text-sm-tracking);color:var(--pm-text-primary);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--pm-radius-control);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;display:inline-flex}._label_17o12_43{text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;overflow:hidden}._glyph_17o12_50,._spinner_17o12_13{flex:none;justify-content:center;align-items:center;display:inline-flex}._count_17o12_67{pointer-events:none;flex:none;display:inline-flex}._button_17o12_17[data-size=sm]{gap:var(--pm-space-2);block-size:var(--pm-control-height-sm);padding-inline:var(--pm-space-4);font-family:var(--pm-text-xs-family);font-size:var(--pm-text-xs-size);font-weight:var(--pm-text-xs-weight);line-height:var(--pm-text-xs-line-height);letter-spacing:var(--pm-text-xs-tracking)}._button_17o12_17[data-size=lg]{block-size:var(--pm-control-height-lg);padding-inline:var(--pm-space-6);font-family:var(--pm-text-md-family);font-size:var(--pm-text-md-size);font-weight:var(--pm-text-md-weight);line-height:var(--pm-text-md-line-height);letter-spacing:var(--pm-text-md-tracking)}._button_17o12_17[data-icon-only]{inline-size:var(--pm-control-height-md);padding-inline:0}._button_17o12_17[data-icon-only]:has(>._count_17o12_67){position:relative}._button_17o12_17[data-icon-only]>._count_17o12_67{position:absolute;inset-block-start:0;inset-inline-start:50%}._button_17o12_17[data-state=loading]{pointer-events:none}._button_17o12_17[data-size=sm][data-icon-only]{inline-size:var(--pm-control-height-sm)}._button_17o12_17[data-size=lg][data-icon-only]{inline-size:var(--pm-control-height-lg)}._button_17o12_17[data-variant=solid][data-tone=accent]{color:var(--pm-accent-contrast);background-color:var(--pm-accent-bg);background-image:var(--pm-accent-gradient);box-shadow:var(--pm-shadow-seat), var(--pm-shadow-inset-top)}._button_17o12_17[data-variant=solid][data-tone=danger]{color:var(--pm-danger-contrast);background:var(--pm-danger-solid);box-shadow:var(--pm-shadow-seat), var(--pm-shadow-inset-top)}._button_17o12_17[data-variant=soft][data-tone=accent]{color:var(--pm-accent-text);background:var(--pm-accent-subtle)}._button_17o12_17[data-variant=soft][data-tone=danger]{color:var(--pm-danger-text);background:var(--pm-danger-subtle)}._button_17o12_17[data-variant=outline][data-tone=neutral]{color:var(--pm-text-primary);border-color:var(--pm-border-field)}._button_17o12_17[data-variant=outline][data-tone=accent]{color:var(--pm-accent-text);border-color:var(--pm-accent-bg)}._button_17o12_17[data-variant=outline][data-tone=danger]{color:var(--pm-danger-text);border-color:var(--pm-danger-border)}._button_17o12_17[data-variant=ghost][data-tone=neutral]{color:var(--pm-text-secondary)}._button_17o12_17[data-variant=ghost][data-tone=accent]{color:var(--pm-accent-text)}._button_17o12_17[data-variant=ghost][data-tone=danger]{color:var(--pm-danger-text)}._button_17o12_17[data-variant=solid][data-disabled],._button_17o12_17[data-variant=soft][data-disabled]{color:var(--pm-text-disabled);cursor:not-allowed;background:var(--pm-bg-subtle);box-shadow:none;border-color:#0000}._button_17o12_17[data-variant=outline][data-disabled]{color:var(--pm-text-disabled);cursor:not-allowed;border-color:var(--pm-border-subtle);background:0 0}._button_17o12_17[data-variant=ghost][data-disabled]{color:var(--pm-text-disabled);cursor:not-allowed;background:0 0}._button_17o12_17[data-disabled]>._count_17o12_67{filter:grayscale();opacity:.5}._button_17o12_17[data-variant=solid][data-tone=accent]:not(:disabled):hover{background-color:var(--pm-accent-bg-hover);box-shadow:var(--pm-glow-hover)}._button_17o12_17[data-variant=solid][data-tone=danger]:not(:disabled):hover{background:var(--pm-danger-solid-hover)}._button_17o12_17[data-variant=soft][data-tone=accent]:not(:disabled):hover{background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=soft][data-tone=danger]:not(:disabled):hover{background:var(--pm-danger-subtle-hover)}._button_17o12_17[data-variant=outline][data-tone=neutral]:not(:disabled):hover{background:var(--pm-bg-subtle);border-color:var(--pm-border-strong)}._button_17o12_17[data-variant=outline][data-tone=accent]:not(:disabled):hover{background:var(--pm-accent-subtle)}._button_17o12_17[data-variant=outline][data-tone=danger]:not(:disabled):hover{background:var(--pm-danger-subtle)}._button_17o12_17[data-variant=ghost][data-tone=neutral]:not(:disabled):hover{color:var(--pm-text-primary);background:var(--pm-bg-subtle)}._button_17o12_17[data-variant=ghost][data-tone=accent]:not(:disabled):hover{background:var(--pm-accent-subtle)}._button_17o12_17[data-variant=ghost][data-tone=danger]:not(:disabled):hover{background:var(--pm-danger-subtle)}@container style(--pm-hover-unfilled:none){._button_17o12_17:is([data-variant=outline],[data-variant=ghost])[data-tone]:not(:disabled):hover{background:0 0}}._button_17o12_17[data-variant=solid][data-tone=accent]:not(:disabled):active{background-color:var(--pm-accent-bg-active)}._button_17o12_17[data-variant=solid][data-tone=danger]:not(:disabled):active{background:var(--pm-danger-solid-active)}._button_17o12_17[data-variant=soft][data-tone=accent]:not(:disabled):active{background:var(--pm-accent-subtle-active)}._button_17o12_17[data-variant=soft][data-tone=danger]:not(:disabled):active{background:var(--pm-danger-subtle-active)}._button_17o12_17[data-variant=outline][data-tone=neutral]:not(:disabled):active{background:var(--pm-bg-subtle);border-color:var(--pm-border-strong)}._button_17o12_17[data-variant=outline][data-tone=accent]:not(:disabled):active{background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=outline][data-tone=danger]:not(:disabled):active{background:var(--pm-danger-subtle-hover)}._button_17o12_17[data-variant=ghost][data-tone=neutral]:not(:disabled):active{color:var(--pm-text-primary);background:var(--pm-bg-subtle)}._button_17o12_17[data-variant=ghost][data-tone=accent]:not(:disabled):active{background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=ghost][data-tone=danger]:not(:disabled):active{background:var(--pm-danger-subtle-hover)}._button_17o12_17[data-variant=solid][data-tone=accent][data-state=on]:not(:disabled){background-color:var(--pm-accent-bg-active)}._button_17o12_17[data-variant=solid][data-tone=danger][data-state=on]:not(:disabled){background:var(--pm-danger-solid-active)}._button_17o12_17[data-variant=soft][data-tone=accent][data-state=on]:not(:disabled){background:var(--pm-accent-subtle-active)}._button_17o12_17[data-variant=soft][data-tone=danger][data-state=on]:not(:disabled){background:var(--pm-danger-subtle-active)}._button_17o12_17[data-variant=outline][data-tone=neutral][data-state=on]:not(:disabled){background:var(--pm-bg-subtle);border-color:var(--pm-border-strong)}._button_17o12_17[data-variant=outline][data-tone=accent][data-state=on]:not(:disabled){background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=outline][data-tone=danger][data-state=on]:not(:disabled){background:var(--pm-danger-subtle-hover)}._button_17o12_17[data-variant=ghost][data-tone=neutral][data-state=on]:not(:disabled){color:var(--pm-text-primary);background:var(--pm-bg-subtle)}._button_17o12_17[data-variant=ghost][data-tone=accent][data-state=on]:not(:disabled){background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=ghost][data-tone=danger][data-state=on]:not(:disabled){background:var(--pm-danger-subtle-hover)}._pagination_1aa26_14{border-radius:var(--pm-radius-control);flex-direction:column;display:inline-flex}._position_1aa26_23,._end_1aa26_24{font-family:var(--pm-text-sm-family);font-size:var(--pm-text-sm-size);font-weight:var(--pm-text-sm-weight);line-height:var(--pm-text-sm-line-height);letter-spacing:var(--pm-text-sm-tracking);color:var(--pm-text-muted)}._position_1aa26_23{font-variant-numeric:var(--pm-font-numeric)}._link_1aa26_43{text-decoration:none}
@@ -1,11 +1,14 @@
1
1
  import './cursor-pagination.css';
2
2
  //#region ../recipes/src/structure/cursor-pagination.module.css
3
- var e = "_pagination_vvzj3_13 _focusRing_1lfnc_15", t = "_position_vvzj3_22", n = "_end_vvzj3_23", r = {
3
+ var e = "_pagination_1aa26_14 _focusRing_1lfnc_15", t = "_position_1aa26_23", n = "_end_1aa26_24", r = "_link_1aa26_43 _button_17o12_17 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", i = "_linkLabel_1aa26_50 _label_17o12_43", a = "_linkGlyph_1aa26_54 _glyph_17o12_50", o = {
4
4
  pagination: e,
5
5
  position: t,
6
- end: n
6
+ end: n,
7
+ link: r,
8
+ linkLabel: i,
9
+ linkGlyph: a
7
10
  };
8
11
  //#endregion
9
- export { r as default, n as end, e as pagination, t as position };
12
+ export { o as default, n as end, r as link, a as linkGlyph, i as linkLabel, e as pagination, t as position };
10
13
 
11
14
  //# sourceMappingURL=cursor-pagination.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cursor-pagination.module.js","names":[],"sources":["../../../recipes/src/structure/cursor-pagination.module.css"],"sourcesContent":["/* CursorPagination — `design/components/cursor-pagination.md`.\n *\n * The controls are Buttons and the row is an Inline, so this only styles the\n * position text between the arrows, and the append form's end line. */\n\n/* A column, so the append form's end line takes a line of its own under the\n row: beside the position, two muted texts would read as one phrase. The\n replace form has one child, the row, which a column lays out as a row does.\n\n The root takes focus when the app's hold disables the button that had it\n (`cursor-pagination.md`, A11y), so it draws the one focus ring. It has the\n controls' corners, so the ring follows the row it surrounds. */\n.pagination {\n composes: focusRing from '../conventions/focus.module.css';\n display: inline-flex;\n flex-direction: column;\n border-radius: var(--pm-radius-control);\n}\n\n/* As FilterBar's count: muted text at the buttons' type step. The append\n form's end line reads as the position does. */\n.position,\n.end {\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}\n\n/* Tabular numerals, so \"26–50\" → \"51–75\" does not shift the arrow. */\n.position {\n font-variant-numeric: var(--pm-font-numeric);\n}\n"],"mappings":""}
1
+ {"version":3,"file":"cursor-pagination.module.js","names":[],"sources":["../../../recipes/src/structure/cursor-pagination.module.css"],"sourcesContent":["/* CursorPagination — `design/components/cursor-pagination.md`.\n *\n * The controls are Buttons, or links in Button's look when the windows have\n * addresses, and the row is an Inline, so this styles the position text\n * between the arrows, the append form's end line and the links. */\n\n/* A column, so the append form's end line takes a line of its own under the\n row: beside the position, two muted texts would read as one phrase. The\n replace form has one child, the row, which a column lays out as a row does.\n\n The root takes focus when the app's hold disables the button that had it\n (`cursor-pagination.md`, A11y), so it draws the one focus ring. It has the\n controls' corners, so the ring follows the row it surrounds. */\n.pagination {\n composes: focusRing from '../conventions/focus.module.css';\n display: inline-flex;\n flex-direction: column;\n border-radius: var(--pm-radius-control);\n}\n\n/* As FilterBar's count: muted text at the buttons' type step. The append\n form's end line reads as the position does. */\n.position,\n.end {\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}\n\n/* Tabular numerals, so \"26–50\" → \"51–75\" does not shift the arrow. */\n.position {\n font-variant-numeric: var(--pm-font-numeric);\n}\n\n/* A control drawn as a link, when the app gives the windows addresses (`cursor-pagination.md`).\n It is the Button it replaces, by reference, as Link's button variant is: composing `.button`\n brings the base, the sizes, every rest, hover and active cell, the press feedback and the focus\n ring, all keyed off the `data-variant` × `data-tone` × `data-size` attributes the link sets.\n This rule removes what an `<a>` has and a `<button>` does not: the browser's underline. */\n.link {\n composes: button from '../controls/button.module.css';\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"],"mappings":""}
@@ -1 +1 @@
1
- ._focusRing_1lfnc_15:focus-visible{outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:has(>input:focus-visible){outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:focus-visible:not([data-invalid],[aria-invalid=true],[data-selected],[data-range-start],[data-range-end]){border-color:var(--pm-border-focus-solid)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){border-color:var(--pm-border-focus-solid)}@container style(--pm-focus-field:border){._focusRing_1lfnc_15:is(textarea,[role=combobox]):focus-visible:not([data-invalid],[aria-invalid=true]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}}._pagination_n235w_9{border-radius:var(--pm-radius-control);display:inline-flex}._pagination_n235w_9 button{min-inline-size:var(--pm-control-height-sm)}._ellipsis_n235w_21{inline-size:var(--pm-control-height-sm);font-family:var(--pm-text-sm-family);font-size:var(--pm-text-sm-size);font-weight:var(--pm-text-sm-weight);line-height:var(--pm-text-sm-line-height);letter-spacing:var(--pm-text-sm-tracking);color:var(--pm-text-muted);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;display:inline-flex}
1
+ ._focusRing_1lfnc_15:focus-visible{outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:has(>input:focus-visible){outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:focus-visible:not([data-invalid],[aria-invalid=true],[data-selected],[data-range-start],[data-range-end]){border-color:var(--pm-border-focus-solid)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){border-color:var(--pm-border-focus-solid)}@container style(--pm-focus-field:border){._focusRing_1lfnc_15:is(textarea,[role=combobox]):focus-visible:not([data-invalid],[aria-invalid=true]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}}._stateFeedback_lkjqs_17{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard)}._pressable_lkjqs_38{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard), transform var(--pm-motion-duration-control) var(--pm-motion-easing-enter)}._pressable_lkjqs_38:active{transform:scale(var(--pm-motion-press-scale));transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard), transform calc(var(--pm-motion-duration-control) * .5) var(--pm-motion-easing-standard)}@keyframes _pm-spin_lkjqs_1{to{transform:rotate(360deg)}}@keyframes _pm-fade-in_lkjqs_1{0%{opacity:0}}@keyframes _pm-shimmer_lkjqs_1{0%{transform:translate(-100%)}to{transform:translate(100%)}}._spin_lkjqs_83{animation:_pm-spin_lkjqs_1 var(--pm-motion-ambient-spin) linear infinite}._fadeIn_lkjqs_92{animation:_pm-fade-in_lkjqs_1 var(--pm-motion-duration-control) var(--pm-motion-easing-enter) both}._shimmer_lkjqs_98{position:relative;overflow:hidden}._shimmer_lkjqs_98:after{content:"";background:linear-gradient(90deg, var(--pm-bg-subtle) 0%, var(--pm-bg-raised) 50%, var(--pm-bg-subtle) 100%);width:200%;animation:_pm-shimmer_lkjqs_1 var(--pm-motion-ambient-shimmer) linear infinite;position:absolute;inset:0}[data-motion=none] ._spin_lkjqs_83,[data-motion=none] ._fadeIn_lkjqs_92,[data-motion=none] ._shimmer_lkjqs_98:after{animation:none}@media (prefers-reduced-motion:reduce){._spin_lkjqs_83,._fadeIn_lkjqs_92,._shimmer_lkjqs_98:after{animation:none}._pressable_lkjqs_38,._pressable_lkjqs_38:active{transition:background-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), border-color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), color var(--pm-motion-duration-control) var(--pm-motion-easing-standard), box-shadow var(--pm-motion-duration-control) var(--pm-motion-easing-standard);transform:none}}._button_17o12_17{gap:var(--pm-space-3);max-inline-size:100%;block-size:var(--pm-control-height-md);padding-inline:var(--pm-space-5);font-family:var(--pm-text-sm-family);font-size:var(--pm-text-sm-size);font-weight:var(--pm-text-sm-weight);line-height:var(--pm-text-sm-line-height);letter-spacing:var(--pm-text-sm-tracking);color:var(--pm-text-primary);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:var(--pm-radius-control);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;display:inline-flex}._label_17o12_43{text-overflow:ellipsis;white-space:nowrap;min-inline-size:0;overflow:hidden}._glyph_17o12_50,._spinner_17o12_13{flex:none;justify-content:center;align-items:center;display:inline-flex}._count_17o12_67{pointer-events:none;flex:none;display:inline-flex}._button_17o12_17[data-size=sm]{gap:var(--pm-space-2);block-size:var(--pm-control-height-sm);padding-inline:var(--pm-space-4);font-family:var(--pm-text-xs-family);font-size:var(--pm-text-xs-size);font-weight:var(--pm-text-xs-weight);line-height:var(--pm-text-xs-line-height);letter-spacing:var(--pm-text-xs-tracking)}._button_17o12_17[data-size=lg]{block-size:var(--pm-control-height-lg);padding-inline:var(--pm-space-6);font-family:var(--pm-text-md-family);font-size:var(--pm-text-md-size);font-weight:var(--pm-text-md-weight);line-height:var(--pm-text-md-line-height);letter-spacing:var(--pm-text-md-tracking)}._button_17o12_17[data-icon-only]{inline-size:var(--pm-control-height-md);padding-inline:0}._button_17o12_17[data-icon-only]:has(>._count_17o12_67){position:relative}._button_17o12_17[data-icon-only]>._count_17o12_67{position:absolute;inset-block-start:0;inset-inline-start:50%}._button_17o12_17[data-state=loading]{pointer-events:none}._button_17o12_17[data-size=sm][data-icon-only]{inline-size:var(--pm-control-height-sm)}._button_17o12_17[data-size=lg][data-icon-only]{inline-size:var(--pm-control-height-lg)}._button_17o12_17[data-variant=solid][data-tone=accent]{color:var(--pm-accent-contrast);background-color:var(--pm-accent-bg);background-image:var(--pm-accent-gradient);box-shadow:var(--pm-shadow-seat), var(--pm-shadow-inset-top)}._button_17o12_17[data-variant=solid][data-tone=danger]{color:var(--pm-danger-contrast);background:var(--pm-danger-solid);box-shadow:var(--pm-shadow-seat), var(--pm-shadow-inset-top)}._button_17o12_17[data-variant=soft][data-tone=accent]{color:var(--pm-accent-text);background:var(--pm-accent-subtle)}._button_17o12_17[data-variant=soft][data-tone=danger]{color:var(--pm-danger-text);background:var(--pm-danger-subtle)}._button_17o12_17[data-variant=outline][data-tone=neutral]{color:var(--pm-text-primary);border-color:var(--pm-border-field)}._button_17o12_17[data-variant=outline][data-tone=accent]{color:var(--pm-accent-text);border-color:var(--pm-accent-bg)}._button_17o12_17[data-variant=outline][data-tone=danger]{color:var(--pm-danger-text);border-color:var(--pm-danger-border)}._button_17o12_17[data-variant=ghost][data-tone=neutral]{color:var(--pm-text-secondary)}._button_17o12_17[data-variant=ghost][data-tone=accent]{color:var(--pm-accent-text)}._button_17o12_17[data-variant=ghost][data-tone=danger]{color:var(--pm-danger-text)}._button_17o12_17[data-variant=solid][data-disabled],._button_17o12_17[data-variant=soft][data-disabled]{color:var(--pm-text-disabled);cursor:not-allowed;background:var(--pm-bg-subtle);box-shadow:none;border-color:#0000}._button_17o12_17[data-variant=outline][data-disabled]{color:var(--pm-text-disabled);cursor:not-allowed;border-color:var(--pm-border-subtle);background:0 0}._button_17o12_17[data-variant=ghost][data-disabled]{color:var(--pm-text-disabled);cursor:not-allowed;background:0 0}._button_17o12_17[data-disabled]>._count_17o12_67{filter:grayscale();opacity:.5}._button_17o12_17[data-variant=solid][data-tone=accent]:not(:disabled):hover{background-color:var(--pm-accent-bg-hover);box-shadow:var(--pm-glow-hover)}._button_17o12_17[data-variant=solid][data-tone=danger]:not(:disabled):hover{background:var(--pm-danger-solid-hover)}._button_17o12_17[data-variant=soft][data-tone=accent]:not(:disabled):hover{background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=soft][data-tone=danger]:not(:disabled):hover{background:var(--pm-danger-subtle-hover)}._button_17o12_17[data-variant=outline][data-tone=neutral]:not(:disabled):hover{background:var(--pm-bg-subtle);border-color:var(--pm-border-strong)}._button_17o12_17[data-variant=outline][data-tone=accent]:not(:disabled):hover{background:var(--pm-accent-subtle)}._button_17o12_17[data-variant=outline][data-tone=danger]:not(:disabled):hover{background:var(--pm-danger-subtle)}._button_17o12_17[data-variant=ghost][data-tone=neutral]:not(:disabled):hover{color:var(--pm-text-primary);background:var(--pm-bg-subtle)}._button_17o12_17[data-variant=ghost][data-tone=accent]:not(:disabled):hover{background:var(--pm-accent-subtle)}._button_17o12_17[data-variant=ghost][data-tone=danger]:not(:disabled):hover{background:var(--pm-danger-subtle)}@container style(--pm-hover-unfilled:none){._button_17o12_17:is([data-variant=outline],[data-variant=ghost])[data-tone]:not(:disabled):hover{background:0 0}}._button_17o12_17[data-variant=solid][data-tone=accent]:not(:disabled):active{background-color:var(--pm-accent-bg-active)}._button_17o12_17[data-variant=solid][data-tone=danger]:not(:disabled):active{background:var(--pm-danger-solid-active)}._button_17o12_17[data-variant=soft][data-tone=accent]:not(:disabled):active{background:var(--pm-accent-subtle-active)}._button_17o12_17[data-variant=soft][data-tone=danger]:not(:disabled):active{background:var(--pm-danger-subtle-active)}._button_17o12_17[data-variant=outline][data-tone=neutral]:not(:disabled):active{background:var(--pm-bg-subtle);border-color:var(--pm-border-strong)}._button_17o12_17[data-variant=outline][data-tone=accent]:not(:disabled):active{background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=outline][data-tone=danger]:not(:disabled):active{background:var(--pm-danger-subtle-hover)}._button_17o12_17[data-variant=ghost][data-tone=neutral]:not(:disabled):active{color:var(--pm-text-primary);background:var(--pm-bg-subtle)}._button_17o12_17[data-variant=ghost][data-tone=accent]:not(:disabled):active{background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=ghost][data-tone=danger]:not(:disabled):active{background:var(--pm-danger-subtle-hover)}._button_17o12_17[data-variant=solid][data-tone=accent][data-state=on]:not(:disabled){background-color:var(--pm-accent-bg-active)}._button_17o12_17[data-variant=solid][data-tone=danger][data-state=on]:not(:disabled){background:var(--pm-danger-solid-active)}._button_17o12_17[data-variant=soft][data-tone=accent][data-state=on]:not(:disabled){background:var(--pm-accent-subtle-active)}._button_17o12_17[data-variant=soft][data-tone=danger][data-state=on]:not(:disabled){background:var(--pm-danger-subtle-active)}._button_17o12_17[data-variant=outline][data-tone=neutral][data-state=on]:not(:disabled){background:var(--pm-bg-subtle);border-color:var(--pm-border-strong)}._button_17o12_17[data-variant=outline][data-tone=accent][data-state=on]:not(:disabled){background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=outline][data-tone=danger][data-state=on]:not(:disabled){background:var(--pm-danger-subtle-hover)}._button_17o12_17[data-variant=ghost][data-tone=neutral][data-state=on]:not(:disabled){color:var(--pm-text-primary);background:var(--pm-bg-subtle)}._button_17o12_17[data-variant=ghost][data-tone=accent][data-state=on]:not(:disabled){background:var(--pm-accent-subtle-hover)}._button_17o12_17[data-variant=ghost][data-tone=danger][data-state=on]:not(:disabled){background:var(--pm-danger-subtle-hover)}._pagination_en48d_10{border-radius:var(--pm-radius-control);display:inline-flex}._pagination_en48d_10 button{min-inline-size:var(--pm-control-height-sm)}._link_en48d_26{min-inline-size:var(--pm-control-height-sm);text-decoration:none}._ellipsis_en48d_44{inline-size:var(--pm-control-height-sm);font-family:var(--pm-text-sm-family);font-size:var(--pm-text-sm-size);font-weight:var(--pm-text-sm-weight);line-height:var(--pm-text-sm-line-height);letter-spacing:var(--pm-text-sm-tracking);color:var(--pm-text-muted);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;display:inline-flex}
@@ -1,10 +1,13 @@
1
1
  import './pagination.css';
2
2
  //#region ../recipes/src/structure/pagination.module.css
3
- var e = "_pagination_n235w_9 _focusRing_1lfnc_15", t = "_ellipsis_n235w_21", n = {
3
+ var e = "_pagination_en48d_10 _focusRing_1lfnc_15", t = "_link_en48d_26 _button_17o12_17 _focusRing_1lfnc_15 _stateFeedback_lkjqs_17 _pressable_lkjqs_38", n = "_linkLabel_en48d_34 _label_17o12_43", r = "_linkGlyph_en48d_38 _glyph_17o12_50", i = "_ellipsis_en48d_44", a = {
4
4
  pagination: e,
5
- ellipsis: t
5
+ link: t,
6
+ linkLabel: n,
7
+ linkGlyph: r,
8
+ ellipsis: i
6
9
  };
7
10
  //#endregion
8
- export { n as default, t as ellipsis, e as pagination };
11
+ export { a as default, i as ellipsis, t as link, r as linkGlyph, n as linkLabel, e as pagination };
9
12
 
10
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 and the row is an Inline. This file only keeps each\n * button at least 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 ring. It has the\n controls' corners, so the ring follows the row it surrounds. */\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/* 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
+ {"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 ring. It has the\n controls' corners, so the ring follows the row it surrounds. */\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 ring,\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/* 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":""}
@@ -0,0 +1 @@
1
+ ._root_z92xs_10{gap:var(--pm-space-4);flex-direction:column;min-inline-size:0;display:flex}._list_z92xs_21{gap:var(--pm-space-2);list-style:revert;flex-direction:column;margin:0;padding-inline-start:var(--pm-space-6);display:flex}._item_z92xs_31>*+*{margin-block-start:var(--pm-space-2)}._item_z92xs_31::marker{color:var(--pm-text-secondary)}._quote_z92xs_44{gap:var(--pm-space-3);border-inline-start:2px solid var(--pm-border-strong);flex-direction:column;margin:0;padding-inline-start:var(--pm-space-4);display:flex}._image_z92xs_55{border-radius:var(--pm-radius-md);block-size:auto;max-inline-size:100%;display:block}._caret_z92xs_64{inline-size:2px;vertical-align:text-bottom;background:var(--pm-accent-bg);border-radius:1px;margin-inline-start:var(--pm-space-1);display:inline-block}._root_z92xs_10[data-size=sm] ._caret_z92xs_64{block-size:var(--pm-text-sm-size)}._root_z92xs_10[data-size=md] ._caret_z92xs_64{block-size:var(--pm-text-md-size)}._heading_1t0qx_6{color:var(--pm-text-primary);margin:0}._heading_1t0qx_6[data-level="2"]{font-family:var(--pm-text-xl-family);font-size:var(--pm-text-xl-size);font-weight:var(--pm-text-xl-weight);line-height:var(--pm-text-xl-line-height);letter-spacing:var(--pm-text-xl-tracking)}._heading_1t0qx_6[data-level="3"]{font-family:var(--pm-text-lg-family);font-size:var(--pm-text-lg-size);font-weight:var(--pm-text-lg-weight);line-height:var(--pm-text-lg-line-height);letter-spacing:var(--pm-text-lg-tracking)}._heading_1t0qx_6[data-level="4"]{font-family:var(--pm-text-md-family);font-size:var(--pm-text-md-size);font-weight:var(--pm-text-xl-weight);line-height:var(--pm-text-md-line-height);letter-spacing:var(--pm-text-md-tracking)}._code_hc07h_7{padding-inline:var(--pm-space-1);font-family:var(--pm-font-mono);font-size:var(--pm-text-sm-size);color:var(--pm-text-primary);background:var(--pm-bg-subtle);border-radius:var(--pm-radius-sm);overflow-wrap:anywhere;-webkit-box-decoration-break:clone;box-decoration-break:clone}._focusRing_1lfnc_15:focus-visible{outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:has(>input:focus-visible){outline:var(--pm-focus-width) solid var(--pm-border-focus);outline-offset:var(--pm-focus-offset);box-shadow:var(--pm-glow-focus)}._focusRing_1lfnc_15:focus-visible:not([data-invalid],[aria-invalid=true],[data-selected],[data-range-start],[data-range-end]){border-color:var(--pm-border-focus-solid)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){border-color:var(--pm-border-focus-solid)}@container style(--pm-focus-field:border){._focusRing_1lfnc_15:is(textarea,[role=combobox]):focus-visible:not([data-invalid],[aria-invalid=true]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}._focusRing_1lfnc_15:has(>input:focus-visible):not([data-invalid]){outline-color:var(--pm-border-focus-solid);outline-offset:calc(var(--pm-focus-width) * -1);box-shadow:var(--pm-shadow-seat)}}._visuallyHidden_qxi8b_14{white-space:nowrap;clip-path:inset(50%);block-size:1px;inline-size:1px;position:absolute;overflow:hidden}._entity_1q2y5_53{padding-inline:var(--pm-space-1);color:var(--pm-accent-text);background:var(--pm-accent-subtle);border-radius:var(--pm-radius-sm);overflow-wrap:anywhere;-webkit-box-decoration-break:clone;box-decoration-break:clone}._annotation_1q2y5_76{color:inherit;background:var(--pm-warning-subtle);border-block-end:1px solid var(--pm-warning-border);-webkit-box-decoration-break:clone;box-decoration-break:clone;outline:1px solid #0000}._annotation_1q2y5_76:where([data-active]){background:var(--pm-warning-subtle-active);outline:2px solid var(--pm-warning-border)}._annotation_1q2y5_76 ._entity_1q2y5_53{border-block-end:1px solid var(--pm-warning-border);box-shadow:0 0 0 2px var(--pm-warning-subtle)}._annotation_1q2y5_76:where([data-active]) ._entity_1q2y5_53{box-shadow:0 0 0 2px var(--pm-warning-subtle-active)}._pressable_1q2y5_103{cursor:pointer}._actions_1q2y5_111{display:contents}
@@ -0,0 +1,19 @@
1
+ import './rich-text-content.css';
2
+ //#region ../recipes/src/structure/rich-text-content.module.css
3
+ 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_1lfnc_15", l = "_actions_1q2y5_111", u = "_status_1q2y5_117 _visuallyHidden_qxi8b_14", d = {
4
+ root: e,
5
+ list: t,
6
+ item: n,
7
+ quote: r,
8
+ heading: i,
9
+ code: a,
10
+ entity: o,
11
+ annotation: s,
12
+ pressable: c,
13
+ actions: l,
14
+ status: u
15
+ };
16
+ //#endregion
17
+ export { l as actions, s as annotation, a as code, d as default, o as entity, i as heading, n as item, t as list, c as pressable, r as quote, e as root, u as status };
18
+
19
+ //# sourceMappingURL=rich-text-content.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-content.module.js","names":[],"sources":["../../../recipes/src/structure/rich-text-content.module.css"],"sourcesContent":["/* RichTextContent — `design/components/rich-text-content.md`.\n *\n * Most styling comes from other members through composition: paragraphs are\n * Text, headings are Heading, code blocks are CodeBlock, inline code is Code\n * and links are Link. The spacing between blocks, a list's markers and a\n * quote's rule are Markdown's, composed and not restated, so a list in a reply\n * and a list in a comment are one decision. A heading or inline code the member\n * draws itself composes Heading's or Code's class. The entity token, the\n * annotation, the live region and the wrapper of the selection bar's controls\n * are this sheet's own.\n *\n * Each part is one class, and no rule reaches through the root, because\n * RichTextInput's editable surface composes the same classes so that a\n * document looks the same while it is written. */\n\n.root {\n composes: root from '../ai/markdown.module.css';\n}\n\n.list {\n composes: list from '../ai/markdown.module.css';\n}\n\n.item {\n composes: item from '../ai/markdown.module.css';\n}\n\n.quote {\n composes: quote from '../ai/markdown.module.css';\n}\n\n/* A heading the member draws itself: one that holds a drawn annotation, or any\n heading while the member maps selections. It is Heading's element with\n Heading's class and the level Heading writes (`data-level`), so Heading's\n rules draw it. */\n.heading {\n composes: heading from './heading.module.css';\n}\n\n/* Inline code that holds a drawn annotation: Code's element with Code's class,\n so the highlight sits inside the chip, as the editor draws it. */\n.code {\n composes: code from './code.module.css';\n}\n\n/* A reference to something the app owns, such as a person or an issue, on the\n accent wash. The label carries its trigger character (`@Ada Lovelace`), so\n the token is never marked by colour alone. It takes the surrounding text's\n step and weight, as Code keeps its weight. Padding is on the inline axis\n only, as Code's is, so a line holding a token keeps the line box of a line\n without one. A long label breaks inside the token and each line's part keeps\n the padding and the radius, Code's long-string cell. */\n.entity {\n padding-inline: var(--pm-space-1);\n color: var(--pm-accent-text);\n background: var(--pm-accent-subtle);\n border-radius: var(--pm-radius-sm);\n overflow-wrap: anywhere;\n box-decoration-break: clone;\n}\n\n/* An annotation: the words an application anchored something to, such as a\n comment thread. Each fragment is a `mark`, so the browser's own mark colours\n are replaced: the warning wash, which is neither the selection's fill nor a\n link's accent, and the text's own colour, so a link or code inside keeps its\n look. The wash is opaque, so overlapping annotations read the same, nested\n one inside the other. A rule in the warning border's colour runs under the\n words as a second cue, because the wash alone is faint on a dark surface. It\n is a bottom border, which moves no line and is drawn on every line of a\n fragment that wraps, and not a text decoration, which a link inside already\n draws. The active annotation takes the pressed wash and a frame. The outline\n is transparent at rest, so forced colours, which repaint the wash, draw it,\n and the active frame is thicker. The active rule has the specificity of the\n base rule, so the focus convention's ring wins on a highlight that takes\n focus. RichTextInput's editable surface composes this class. */\n.annotation {\n color: inherit;\n background: var(--pm-warning-subtle);\n border-block-end: 1px solid var(--pm-warning-border);\n outline: 1px solid transparent;\n box-decoration-break: clone;\n}\n\n.annotation:where([data-active]) {\n background: var(--pm-warning-subtle-active);\n outline: 2px solid var(--pm-warning-border);\n}\n\n/* An entity's own wash covers the highlight it sits in, so an annotated entity\n is ringed with the annotation's wash and carries the rule under it itself,\n at the height the fragments beside it draw theirs. */\n.annotation .entity {\n border-block-end: 1px solid var(--pm-warning-border);\n box-shadow: 0 0 0 2px var(--pm-warning-subtle);\n}\n\n.annotation:where([data-active]) .entity {\n box-shadow: 0 0 0 2px var(--pm-warning-subtle-active);\n}\n\n/* A highlight that takes a press (`onAnnotationSelect`). One fragment of each\n annotation is its tab stop, and it draws the one focus ring. */\n.pressable {\n composes: focusRing from '../conventions/focus.module.css';\n cursor: pointer;\n}\n\n/* The wrapper of the application's controls in the selection bar. It draws no\n box, so the controls are the bar's own row. The member reads the focus events\n that pass through it, to give focus back when the bar leaves. */\n.actions {\n display: contents;\n}\n\n/* The selection bar's one live region, hidden by clipping so it stays in the\n accessibility tree. */\n.status {\n composes: visuallyHidden from '../conventions/a11y.module.css';\n}\n"],"mappings":""}
@@ -21,7 +21,7 @@ export interface ArtifactPaneProps {
21
21
  /**
22
22
  * The artifact's kind, which picks the mark (the tier's `artifact` glyph when absent).
23
23
  */
24
- kind?: 'document' | 'code' | 'data' | 'preview';
24
+ kind?: 'code' | 'document' | 'data' | 'preview';
25
25
  /**
26
26
  * One preformatted line under the title, such as "TypeScript · 142 lines".
27
27
  */
@@ -43,7 +43,7 @@ declare const __VLS_export: import("vue").DefineComponent<AttachmentChipProps, {
43
43
  onRemove?: (() => any) | undefined;
44
44
  }>, {
45
45
  status: "error" | "done" | "uploading";
46
- icon: "warning" | "success" | "info" | "error" | "record" | "key" | "sort" | "filter" | "time" | "search" | "link" | "cite" | "menu" | "table" | "stop" | "click" | "model" | "indeterminate" | "loading" | "visible" | "hidden" | "calendar" | "close" | "copy" | "drag" | "pause" | "add" | "remove" | "delete" | "edit" | "refresh" | "flip" | "download" | "upload" | "share" | "settings" | "home" | "help" | "user" | "folder" | "tag" | "inbox" | "archive" | "comment" | "clear" | "undo" | "mail" | "terminal" | "cloud" | "droplet" | "send" | "duplicate" | "sort-asc" | "sort-desc" | "rotate" | "open-external" | "overflow" | "back" | "forward" | "up" | "down" | "previous" | "next" | "expand" | "collapse" | "locked" | "unlocked" | "favorite" | "pinned" | "notification" | "team" | "document" | "confirm" | "mode-light" | "mode-dark" | "mode-system" | "rating" | "run" | "connect" | "egress" | "denied" | "local" | "device" | "network" | "tool" | "ledger" | "briefing" | "kernel" | "diff" | "browser" | "delivery" | "watch" | "signin" | "attach" | "helpful" | "unhelpful" | "reasoning" | "artifact";
46
+ icon: "warning" | "success" | "info" | "error" | "italic" | "record" | "key" | "sort" | "filter" | "code" | "time" | "search" | "bold" | "link" | "cite" | "menu" | "table" | "stop" | "click" | "model" | "indeterminate" | "loading" | "visible" | "hidden" | "calendar" | "close" | "copy" | "drag" | "pause" | "heading" | "quote" | "down" | "up" | "add" | "remove" | "delete" | "edit" | "refresh" | "flip" | "download" | "upload" | "share" | "settings" | "home" | "help" | "user" | "folder" | "tag" | "inbox" | "archive" | "comment" | "clear" | "undo" | "mail" | "terminal" | "cloud" | "droplet" | "send" | "redo" | "strikethrough" | "duplicate" | "sort-asc" | "sort-desc" | "rotate" | "open-external" | "overflow" | "back" | "forward" | "previous" | "next" | "expand" | "collapse" | "locked" | "unlocked" | "favorite" | "pinned" | "notification" | "team" | "document" | "confirm" | "mode-light" | "mode-dark" | "mode-system" | "rating" | "run" | "connect" | "egress" | "denied" | "local" | "device" | "network" | "tool" | "ledger" | "briefing" | "kernel" | "diff" | "browser" | "delivery" | "watch" | "signin" | "attach" | "helpful" | "unhelpful" | "list-bulleted" | "list-numbered" | "code-block" | "reasoning" | "artifact";
47
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
48
48
  declare const _default: typeof __VLS_export;
49
49
  export default _default;
@@ -47,7 +47,7 @@ declare const __VLS_base: import("vue").DefineComponent<ToolCallProps, {}, {}, {
47
47
  }, string, import("vue").PublicProps, Readonly<ToolCallProps> & Readonly<{
48
48
  onOpenChange?: ((open: boolean) => any) | undefined;
49
49
  }>, {
50
- icon: "warning" | "success" | "info" | "error" | "record" | "key" | "sort" | "filter" | "time" | "search" | "link" | "cite" | "menu" | "table" | "stop" | "click" | "model" | "indeterminate" | "loading" | "visible" | "hidden" | "calendar" | "close" | "copy" | "drag" | "pause" | "add" | "remove" | "delete" | "edit" | "refresh" | "flip" | "download" | "upload" | "share" | "settings" | "home" | "help" | "user" | "folder" | "tag" | "inbox" | "archive" | "comment" | "clear" | "undo" | "mail" | "terminal" | "cloud" | "droplet" | "send" | "duplicate" | "sort-asc" | "sort-desc" | "rotate" | "open-external" | "overflow" | "back" | "forward" | "up" | "down" | "previous" | "next" | "expand" | "collapse" | "locked" | "unlocked" | "favorite" | "pinned" | "notification" | "team" | "document" | "confirm" | "mode-light" | "mode-dark" | "mode-system" | "rating" | "run" | "connect" | "egress" | "denied" | "local" | "device" | "network" | "tool" | "ledger" | "briefing" | "kernel" | "diff" | "browser" | "delivery" | "watch" | "signin" | "attach" | "helpful" | "unhelpful" | "reasoning" | "artifact";
50
+ icon: "warning" | "success" | "info" | "error" | "italic" | "record" | "key" | "sort" | "filter" | "code" | "time" | "search" | "bold" | "link" | "cite" | "menu" | "table" | "stop" | "click" | "model" | "indeterminate" | "loading" | "visible" | "hidden" | "calendar" | "close" | "copy" | "drag" | "pause" | "heading" | "quote" | "down" | "up" | "add" | "remove" | "delete" | "edit" | "refresh" | "flip" | "download" | "upload" | "share" | "settings" | "home" | "help" | "user" | "folder" | "tag" | "inbox" | "archive" | "comment" | "clear" | "undo" | "mail" | "terminal" | "cloud" | "droplet" | "send" | "redo" | "strikethrough" | "duplicate" | "sort-asc" | "sort-desc" | "rotate" | "open-external" | "overflow" | "back" | "forward" | "previous" | "next" | "expand" | "collapse" | "locked" | "unlocked" | "favorite" | "pinned" | "notification" | "team" | "document" | "confirm" | "mode-light" | "mode-dark" | "mode-system" | "rating" | "run" | "connect" | "egress" | "denied" | "local" | "device" | "network" | "tool" | "ledger" | "briefing" | "kernel" | "diff" | "browser" | "delivery" | "watch" | "signin" | "attach" | "helpful" | "unhelpful" | "list-bulleted" | "list-numbered" | "code-block" | "reasoning" | "artifact";
51
51
  open: boolean;
52
52
  messages: ToolCallMessages;
53
53
  defaultOpen: boolean;
@@ -0,0 +1,210 @@
1
+ /**
2
+ * A field that holds a rich-text document: a comment, an issue's description, a note (`design/components/rich-text-input.md`).
3
+ *
4
+ * Generated by `pnpm shells` from `packages/shells/src/members/rich-text-input.ts`, the member's
5
+ * framework-neutral description. Never edit it by hand: change the description and
6
+ * run `pnpm shells`.
7
+ */
8
+ import { type Ref, type VNode } from 'vue';
9
+ import { type IconRole, type RichTextDocument, type RichTextFormat, type RichTextRange } from '@polymorph/vue';
10
+ export type RichTextInputMinRows = NonNullable<RichTextInputProps['minRows']>;
11
+ export type RichTextInputMaxRows = NonNullable<RichTextInputProps['maxRows']>;
12
+ export type RichTextToolbarPlacement = NonNullable<RichTextInputProps['toolbarPlacement']>;
13
+ export interface RichTextEntityOption {
14
+ id: string;
15
+ label: string;
16
+ description?: string;
17
+ icon?: IconRole;
18
+ leading?: VNode;
19
+ entityLabel?: string;
20
+ }
21
+ export interface RichTextEntitySource {
22
+ kind: string;
23
+ trigger: string;
24
+ label: string;
25
+ options: RichTextEntityOption[];
26
+ filter?: 'contains' | 'startsWith' | false;
27
+ loading?: boolean;
28
+ error?: string;
29
+ onQueryChange?: (query: string) => void;
30
+ }
31
+ export interface RichTextInputSelection {
32
+ empty: boolean;
33
+ text: string;
34
+ range: RichTextRange;
35
+ }
36
+ export interface RichTextInputEditor {
37
+ focus(): void;
38
+ clear(): void;
39
+ insertText(text: string): void;
40
+ insertEntity(entity: {
41
+ kind: string;
42
+ id: string;
43
+ label: string;
44
+ }): void;
45
+ annotate(id: string): boolean;
46
+ removeAnnotation(id: string): boolean;
47
+ readonly value: RichTextDocument;
48
+ readonly empty: boolean;
49
+ readonly length: number;
50
+ readonly overLimit: boolean;
51
+ readonly disabled: boolean;
52
+ readonly selection: RichTextInputSelection;
53
+ }
54
+ export interface RichTextInputMessages {
55
+ toolbar?: string;
56
+ selectionBar?: string;
57
+ selectionBarReady?: string;
58
+ bold?: string;
59
+ italic?: string;
60
+ strike?: string;
61
+ code?: string;
62
+ link?: string;
63
+ textStyle?: string;
64
+ paragraph?: string;
65
+ heading?: (level: 1 | 2 | 3) => string;
66
+ bulletList?: string;
67
+ orderedList?: string;
68
+ blockquote?: string;
69
+ codeBlock?: string;
70
+ undo?: string;
71
+ redo?: string;
72
+ linkForm?: string;
73
+ linkAddress?: string;
74
+ linkApply?: string;
75
+ linkRemove?: string;
76
+ linkInvalid?: string;
77
+ formatOn?: (format: string) => string;
78
+ formatOff?: (format: string) => string;
79
+ linkAdded?: string;
80
+ linkRemoved?: string;
81
+ inserted?: (label: string) => string;
82
+ undone?: string;
83
+ redone?: string;
84
+ count?: (length: number, maxLength: number) => string;
85
+ overLimit?: (over: number) => string;
86
+ withinLimit?: string;
87
+ submitEmpty?: string;
88
+ submitOverLimit?: (over: number) => string;
89
+ submitPending?: string;
90
+ suggestions?: (count: number) => string;
91
+ loadingSuggestions?: string;
92
+ noSuggestions?: string;
93
+ }
94
+ export interface RichTextInputProps {
95
+ /**
96
+ * The drawn annotation that is active, such as the thread the app shows.
97
+ */
98
+ activeAnnotation?: string;
99
+ /**
100
+ * The annotations drawn. Default: every one the document holds.
101
+ */
102
+ annotations?: string[];
103
+ ariaDescribedby?: string;
104
+ ariaLabel?: string;
105
+ ariaLabelledby?: string;
106
+ ariaRequired?: boolean;
107
+ /**
108
+ * Focus at mount, with the caret at the end. For a surface that has already moved the person
109
+ * here.
110
+ */
111
+ autoFocus?: boolean;
112
+ /**
113
+ * Draws the default footer's cancel Button; needs `onCancel`.
114
+ */
115
+ cancelLabel?: string;
116
+ /**
117
+ * The editable element.
118
+ */
119
+ controlRef?: Ref<HTMLDivElement | null>;
120
+ defaultValue?: RichTextDocument;
121
+ disabled?: boolean;
122
+ /**
123
+ * The kinds of entity the field suggests, each with its trigger.
124
+ */
125
+ entities?: RichTextEntitySource[];
126
+ /**
127
+ * What the field allows. Default: all ten.
128
+ */
129
+ formats?: RichTextFormat[];
130
+ id?: string;
131
+ invalid?: boolean;
132
+ /**
133
+ * A soft limit in code points (`richTextLength`): draws the count, and marks the field invalid
134
+ * past it.
135
+ */
136
+ maxLength?: number;
137
+ /**
138
+ * How tall the text grows before it scrolls, in body lines. Default 12.
139
+ */
140
+ maxRows?: 6 | 12 | 'none' | 24;
141
+ /**
142
+ * Every label and announcement, in the app's words.
143
+ */
144
+ messages?: RichTextInputMessages;
145
+ /**
146
+ * The surface's minimum height, in body lines. Default 3.
147
+ */
148
+ minRows?: 1 | 3 | 6 | 12;
149
+ /**
150
+ * Adds a hidden input holding `serializeRichText(value)`.
151
+ */
152
+ name?: string;
153
+ /**
154
+ * The app is saving: the submit shows loading, the field is read-only, and a submit is
155
+ * refused.
156
+ */
157
+ pending?: boolean;
158
+ placeholder?: string;
159
+ readOnly?: boolean;
160
+ /**
161
+ * Draws the default footer's submit Button; needs `onSubmit`.
162
+ */
163
+ submitLabel?: string;
164
+ /**
165
+ * Where the format controls are: a fixed row over the text, or a bar at the selected text.
166
+ */
167
+ toolbarPlacement?: 'fixed' | 'selection';
168
+ value?: RichTextDocument;
169
+ }
170
+ type __VLS_Slots = {
171
+ footer?: (props: RichTextInputEditor) => unknown;
172
+ selectionActions?: (props: RichTextInputEditor) => unknown;
173
+ toolbar?: (props: RichTextInputEditor) => unknown;
174
+ };
175
+ declare const __VLS_base: import("vue").DefineComponent<RichTextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
176
+ focus: () => any;
177
+ blur: () => any;
178
+ change: (value: RichTextDocument) => any;
179
+ cancel: () => any;
180
+ submit: (value: RichTextDocument, editor: RichTextInputEditor) => any;
181
+ files: (files: File[]) => any;
182
+ annotationSelect: (id: string) => any;
183
+ }, string, import("vue").PublicProps, Readonly<RichTextInputProps> & Readonly<{
184
+ onFocus?: (() => any) | undefined;
185
+ onBlur?: (() => any) | undefined;
186
+ onChange?: ((value: RichTextDocument) => any) | undefined;
187
+ onCancel?: (() => any) | undefined;
188
+ onSubmit?: ((value: RichTextDocument, editor: RichTextInputEditor) => any) | undefined;
189
+ onFiles?: ((files: File[]) => any) | undefined;
190
+ onAnnotationSelect?: ((id: string) => any) | undefined;
191
+ }>, {
192
+ disabled: boolean;
193
+ invalid: boolean;
194
+ entities: RichTextEntitySource[];
195
+ readOnly: boolean;
196
+ pending: boolean;
197
+ ariaRequired: boolean;
198
+ autoFocus: boolean;
199
+ maxRows: "none" | 6 | 24 | 12;
200
+ minRows: 3 | 6 | 1 | 12;
201
+ toolbarPlacement: "selection" | "fixed";
202
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
203
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
204
+ declare const _default: typeof __VLS_export;
205
+ export default _default;
206
+ type __VLS_WithSlots<T, S> = T & {
207
+ new (): {
208
+ $slots: S;
209
+ };
210
+ };
@@ -528,6 +528,10 @@ export { default as RecordButton } from './controls/RecordButton.vue';
528
528
  export type { RecordButtonProps } from './controls/RecordButton.vue';
529
529
  export { default as RelativeTime } from './structure/RelativeTime.vue';
530
530
  export type { RelativeTimeMessages, RelativeTimeProps } from './structure/RelativeTime.vue';
531
+ export { default as RichTextContent } from './structure/RichTextContent.vue';
532
+ export type { RichTextContentMessages, RichTextContentProps, RichTextContentSelection, RichTextContentSize, } from './structure/RichTextContent.vue';
533
+ export { default as RichTextInput } from './controls/RichTextInput.vue';
534
+ export type { RichTextEntityOption, RichTextEntitySource, RichTextInputEditor, RichTextInputMaxRows, RichTextInputMessages, RichTextInputMinRows, RichTextInputProps, RichTextInputSelection, RichTextToolbarPlacement, } from './controls/RichTextInput.vue';
531
535
  export { default as ScatterChart } from './charts/ScatterChart.vue';
532
536
  export type { ScatterChartProps } from './charts/ScatterChart.vue';
533
537
  export { default as ScrollArea } from './structure/ScrollArea.vue';
@@ -8,11 +8,11 @@ export interface CommandPanelProps {
8
8
  emptyMessage: string;
9
9
  }
10
10
  declare const __VLS_export: import("vue").DefineComponent<CommandPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- queryChange: (query: string) => any;
12
11
  command: () => any;
12
+ queryChange: (query: string) => any;
13
13
  }, string, import("vue").PublicProps, Readonly<CommandPanelProps> & Readonly<{
14
- onQueryChange?: ((query: string) => any) | undefined;
15
14
  onCommand?: (() => any) | undefined;
15
+ onQueryChange?: ((query: string) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: typeof __VLS_export;
18
18
  export default _default;