@slotted/react 0.1.0-beta.15 → 0.1.0-beta.16

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 (130) hide show
  1. package/dist/{action-sheet-Klu-YxIk.js → action-sheet-dNnB26br.js} +20 -20
  2. package/dist/action-sheet.js +1 -1
  3. package/dist/{attachment-DKKiNUKe.js → attachment-C1wBuup6.js} +2 -0
  4. package/dist/attachment.js +1 -1
  5. package/dist/calendar-wqDIW4Z8.js +469 -0
  6. package/dist/calendar.js +1 -1
  7. package/dist/{column-manager-e234Ey_u.js → column-manager-C8fN_mDy.js} +6 -6
  8. package/dist/column-manager.js +1 -1
  9. package/dist/dashboard-grid-ByThIV_n.js +1066 -0
  10. package/dist/dashboard-grid.js +1 -1
  11. package/dist/{data-grid-B5feiNsE.js → data-grid-aHlR2FHu.js} +4 -4
  12. package/dist/data-grid.js +1 -1
  13. package/dist/{data-list-CUvUS2AX.js → data-list-Cu6LtnDX.js} +1 -1
  14. package/dist/data-list.js +1 -1
  15. package/dist/{date-picker-Dys-z9mZ.js → date-picker-B5V8NZCT.js} +1 -1
  16. package/dist/date-picker.js +1 -1
  17. package/dist/{date-range-picker-Cu95hHyO.js → date-range-picker-B89Q973N.js} +1 -1
  18. package/dist/date-range-picker.js +1 -1
  19. package/dist/{datetime-picker-B7eWKoN3.js → datetime-picker-Cx6Z52Ka.js} +1 -1
  20. package/dist/datetime-picker.js +1 -1
  21. package/dist/{datetime-range-picker-Cm42pY3M.js → datetime-range-picker-DYshAlgq.js} +1 -1
  22. package/dist/datetime-range-picker.js +1 -1
  23. package/dist/docs/calendar.json +19 -1
  24. package/dist/docs/calendar.md +3 -1
  25. package/dist/docs/dashboard-grid.json +26 -4
  26. package/dist/docs/dashboard-grid.md +5 -2
  27. package/dist/docs/drawer.json +13 -4
  28. package/dist/docs/drawer.md +5 -4
  29. package/dist/docs/link.json +16 -0
  30. package/dist/docs/link.md +3 -1
  31. package/dist/docs/list-item.json +10 -2
  32. package/dist/docs/list-item.md +20 -13
  33. package/dist/docs/markdown.json +7 -0
  34. package/dist/docs/markdown.md +1 -0
  35. package/dist/docs/message-scroller.json +1 -1
  36. package/dist/docs/prompt-composer.json +9 -2
  37. package/dist/docs/prompt-composer.md +3 -1
  38. package/dist/{drawer-CFpBsLG6.js → drawer-Du1aC1px.js} +17 -4
  39. package/dist/drawer.js +2 -2
  40. package/dist/{event-calendar-liaKOKOH.js → event-calendar-CEIyV-fW.js} +520 -520
  41. package/dist/event-calendar.js +1 -1
  42. package/dist/{filter-bar-vJzwcDZj.js → filter-bar-BHzy0o7n.js} +8 -8
  43. package/dist/filter-bar.js +1 -1
  44. package/dist/{import-export-center-BIB7sRCl.js → import-export-center-BX1Bhj8c.js} +1 -1
  45. package/dist/import-export-center.js +1 -1
  46. package/dist/index.js +124 -124
  47. package/dist/{link-rGL3Lr2t.js → link-YvD_Wov8.js} +23 -22
  48. package/dist/link.js +1 -1
  49. package/dist/list-item-2z75VYyp.js +160 -0
  50. package/dist/list-item.js +1 -1
  51. package/dist/markdown-gfrgwq6-.js +311 -0
  52. package/dist/markdown.js +1 -1
  53. package/dist/{prompt-composer-BDOi4rVK.js → prompt-composer-C57BzYrn.js} +109 -77
  54. package/dist/prompt-composer.js +2 -2
  55. package/dist/styles/action-sheet.css +1 -1
  56. package/dist/styles/calendar.css +3 -1
  57. package/dist/styles/chart.css +1 -1
  58. package/dist/styles/column-manager.css +1 -1
  59. package/dist/styles/command-palette.css +1 -1
  60. package/dist/styles/dashboard-grid.css +3 -1
  61. package/dist/styles/data-grid.css +1 -1
  62. package/dist/styles/date-picker.css +3 -1
  63. package/dist/styles/date-range-picker.css +3 -1
  64. package/dist/styles/datetime-picker.css +3 -1
  65. package/dist/styles/datetime-range-picker.css +3 -1
  66. package/dist/styles/detail-panel.css +1 -1
  67. package/dist/styles/dialog.css +1 -1
  68. package/dist/styles/drawer.css +1 -1
  69. package/dist/styles/event-calendar.css +1 -1
  70. package/dist/styles/filter-bar.css +4 -2
  71. package/dist/styles/import-export-center.css +2 -2
  72. package/dist/styles/index.css +11 -11
  73. package/dist/styles/link.css +1 -1
  74. package/dist/styles/markdown.css +1 -1
  75. package/dist/styles/message.css +1 -1
  76. package/dist/styles/prompt-composer.css +1 -1
  77. package/dist/styles/section.css +1 -1
  78. package/dist/styles/stat-card.css +1 -1
  79. package/dist/styles/table.css +2 -2
  80. package/dist/styles/upload.css +1 -1
  81. package/dist/styles.css +1 -1
  82. package/dist/{table-_xX87qua.js → table-BHuKvsgJ.js} +4 -4
  83. package/dist/table.js +1 -1
  84. package/dist/types/calendar/calendar.d.ts +2 -1
  85. package/dist/types/calendar/calendar.d.ts.map +1 -1
  86. package/dist/types/calendar/calendar.types.d.ts +11 -0
  87. package/dist/types/calendar/calendar.types.d.ts.map +1 -1
  88. package/dist/types/calendar/index.d.ts +1 -1
  89. package/dist/types/calendar/index.d.ts.map +1 -1
  90. package/dist/types/dashboard-grid/dashboard-grid.d.ts +1 -1
  91. package/dist/types/dashboard-grid/dashboard-grid.d.ts.map +1 -1
  92. package/dist/types/dashboard-grid/dashboard-grid.types.d.ts +23 -3
  93. package/dist/types/dashboard-grid/dashboard-grid.types.d.ts.map +1 -1
  94. package/dist/types/dashboard-grid/dashboard-widget.d.ts +1 -1
  95. package/dist/types/dashboard-grid/dashboard-widget.d.ts.map +1 -1
  96. package/dist/types/dashboard-grid/index.d.ts +1 -1
  97. package/dist/types/dashboard-grid/index.d.ts.map +1 -1
  98. package/dist/types/drawer/drawer-parts.d.ts +3 -1
  99. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  100. package/dist/types/drawer/drawer.types.d.ts +2 -0
  101. package/dist/types/drawer/drawer.types.d.ts.map +1 -1
  102. package/dist/types/drawer/index.d.ts +2 -2
  103. package/dist/types/drawer/index.d.ts.map +1 -1
  104. package/dist/types/link/index.d.ts +1 -1
  105. package/dist/types/link/index.d.ts.map +1 -1
  106. package/dist/types/link/link.d.ts +1 -1
  107. package/dist/types/link/link.d.ts.map +1 -1
  108. package/dist/types/link/link.types.d.ts +7 -0
  109. package/dist/types/link/link.types.d.ts.map +1 -1
  110. package/dist/types/list-item/list-item-content.d.ts +3 -3
  111. package/dist/types/list-item/list-item-content.d.ts.map +1 -1
  112. package/dist/types/list-item/list-item-nesting.d.ts +15 -0
  113. package/dist/types/list-item/list-item-nesting.d.ts.map +1 -0
  114. package/dist/types/list-item/list-item-parts.d.ts +3 -3
  115. package/dist/types/list-item/list-item-parts.d.ts.map +1 -1
  116. package/dist/types/markdown/markdown.d.ts +1 -1
  117. package/dist/types/markdown/markdown.d.ts.map +1 -1
  118. package/dist/types/markdown/markdown.types.d.ts +6 -1
  119. package/dist/types/markdown/markdown.types.d.ts.map +1 -1
  120. package/dist/types/prompt-composer/index.d.ts +2 -2
  121. package/dist/types/prompt-composer/index.d.ts.map +1 -1
  122. package/dist/types/prompt-composer/prompt-composer.d.ts +8 -1
  123. package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
  124. package/dist/types/prompt-composer/prompt-composer.types.d.ts +7 -1
  125. package/dist/types/prompt-composer/prompt-composer.types.d.ts.map +1 -1
  126. package/package.json +6 -6
  127. package/dist/calendar-DZx00W81.js +0 -457
  128. package/dist/dashboard-grid-B9-_lwn6.js +0 -1048
  129. package/dist/list-item-CHaJYl5r.js +0 -125
  130. package/dist/markdown-B_lMpWz0.js +0 -306
@@ -41,6 +41,7 @@ const tree = fromMarkedTokens(marked.lexer(source));
41
41
  | Name | Type | Default | Applies to | Description |
42
42
  | --- | --- | --- | --- | --- |
43
43
  | `tree` | `MarkdownNode \| null` | — | Markdown | The document in mdast; never HTML |
44
+ | `source` | `string` | — | Markdown | The document as CommonMark text, read by parseMarkdown in place of tree: the syntax of the types in allow is read and any other stays text. Paragraphs, ATX headings, fenced code, quotes, rules, nested lists, code spans, strong, emphasis, links, escapes and hard breaks; tables, images and HTML need an adapter |
44
45
  | `size` | `'md' \| 'lg' \| 'xl'` | lg | Markdown | The region’s type step, from prose |
45
46
  | `flow` | `'tight' \| 'normal' \| 'loose'` | normal | Markdown | The space between blocks, from prose |
46
47
  | `status` | `'ready' \| 'error'` | ready | Markdown | error replaces the document with the error part |
@@ -66,7 +66,7 @@
66
66
  "part": "root",
67
67
  "element": "div",
68
68
  "required": true,
69
- "purpose": "The frame. Fills a bounded parent; the engine writes data-scrollable, data-following and data-pending on it while the reader scrolls."
69
+ "purpose": "The frame. Fills a bounded parent; the engine writes data-scrollable, data-following and data-pending on it while the reader scrolls. data-pending hides the content until the opening position is applied, and content that holds no item is never pending."
70
70
  },
71
71
  {
72
72
  "part": "viewport",
@@ -75,6 +75,7 @@
75
75
  "footer",
76
76
  "action",
77
77
  "attach",
78
+ "dictate",
78
79
  "submit",
79
80
  "ring",
80
81
  "glow"
@@ -84,7 +85,7 @@
84
85
  "docs": {
85
86
  "promptComposer": {
86
87
  "imports": {
87
- "source": "import {\n PromptComposer,\n PromptComposerAction,\n PromptComposerAttach,\n PromptComposerFooter,\n PromptComposerHeader,\n PromptComposerInput,\n PromptComposerSubmit,\n} from '@slotted/react';"
88
+ "source": "import {\n PromptComposer,\n PromptComposerAction,\n PromptComposerAttach,\n PromptComposerDictate,\n PromptComposerFooter,\n PromptComposerHeader,\n PromptComposerInput,\n PromptComposerSubmit,\n} from '@slotted/react';"
88
89
  },
89
90
  "anatomy": [
90
91
  {
@@ -123,6 +124,12 @@
123
124
  "required": false,
124
125
  "purpose": "Opens the file chooser with the composer’s accept and multiple, and hands the choice to onAttach with reason \"pointer\"."
125
126
  },
127
+ {
128
+ "part": "dictate",
129
+ "element": "button (PromptComposerDictate)",
130
+ "required": false,
131
+ "purpose": "The microphone: dictation through the platform’s SpeechRecognition, in the lang input or the nearest lang attribute. Each final phrase is written at the end of the value through onValueChange with reason \"dictation\"; the button is aria-pressed while the engine listens, a second press stops it, and “Listening” is announced as it starts. Without a recognition engine the button renders nothing."
132
+ },
126
133
  {
127
134
  "part": "submit",
128
135
  "element": "button (PromptComposerSubmit)",
@@ -304,7 +311,7 @@
304
311
  {
305
312
  "name": "onValueChange",
306
313
  "payload": "(value: string, request: ChangeRequest<string>)",
307
- "when": "Before the value moves: reason \"keyboard\" for an edit, \"submit\" for the clearing after an accepted send. cancel() refuses the move."
314
+ "when": "Before the value moves: reason \"keyboard\" for an edit, \"dictation\" for a phrase PromptComposerDictate wrote, \"submit\" for the clearing after an accepted send. cancel() refuses the move."
308
315
  },
309
316
  {
310
317
  "name": "onValueSubmit",
@@ -10,6 +10,7 @@ import {
10
10
  PromptComposer,
11
11
  PromptComposerAction,
12
12
  PromptComposerAttach,
13
+ PromptComposerDictate,
13
14
  PromptComposerFooter,
14
15
  PromptComposerHeader,
15
16
  PromptComposerInput,
@@ -41,6 +42,7 @@ Excerpt — not a complete module
41
42
  | `footer` | div (PromptComposerFooter) | no |
42
43
  | `action` | button (PromptComposerAction) | no |
43
44
  | `attach` | button (PromptComposerAttach), with a hidden file input beside it | no |
45
+ | `dictate` | button (PromptComposerDictate) | no |
44
46
  | `submit` | button (PromptComposerSubmit) | no |
45
47
  | `ring` | span, aria-hidden | no |
46
48
  | `glow` | span, aria-hidden | no |
@@ -76,7 +78,7 @@ Excerpt — not a complete module
76
78
 
77
79
  | Name | Payload | When |
78
80
  | --- | --- | --- |
79
- | `onValueChange` | `(value: string, request: ChangeRequest<string>)` | Before the value moves: reason "keyboard" for an edit, "submit" for the clearing after an accepted send. cancel() refuses the move. |
81
+ | `onValueChange` | `(value: string, request: ChangeRequest<string>)` | Before the value moves: reason "keyboard" for an edit, "dictation" for a phrase PromptComposerDictate wrote, "submit" for the clearing after an accepted send. cancel() refuses the move. |
80
82
  | `onValueSubmit` | `(value: string, request: ChangeRequest<string>)` | Before the message is sent, from Enter, Mod+Enter or the send button — reason "keyboard" or "pointer". cancel() keeps the value where it is; otherwise an uncontrolled composer clears it. |
81
83
  | `onStop` | `({ reason, source })` | The stop button, while status is "streaming". “Stopped” is announced. |
82
84
  | `onAttach` | `(files: File[], { reason, rejected, source })` | Files from the paperclip ("pointer"), a paste ("paste") or a drop ("drop"), after accept, maxSize, maxFiles and multiple. rejected lists what the rules refused, with the reason. |
@@ -752,6 +752,19 @@ function ye({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
752
752
  }) : i(c);
753
753
  }
754
754
  function be({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
755
+ let s = r({
756
+ ...o,
757
+ children: e,
758
+ className: t,
759
+ "data-part": "actions",
760
+ style: a
761
+ });
762
+ return i === void 0 ? /* @__PURE__ */ _("div", {
763
+ ...s,
764
+ ref: n
765
+ }) : i(s);
766
+ }
767
+ function xe({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
755
768
  let s = B();
756
769
  l(() => s.announce("description"), [s]);
757
770
  let c = r({
@@ -767,7 +780,7 @@ function be({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
767
780
  ref: n
768
781
  }) : i(c);
769
782
  }
770
- function xe({ children: e, className: t, inset: n, ref: i, render: a, style: o, ...s }) {
783
+ function Se({ children: e, className: t, inset: n, ref: i, render: a, style: o, ...s }) {
771
784
  let c = B(), l = r({
772
785
  ...s,
773
786
  ...c.loading ? { "aria-busy": !0 } : {},
@@ -782,7 +795,7 @@ function xe({ children: e, className: t, inset: n, ref: i, render: a, style: o,
782
795
  ref: i
783
796
  }) : a(l);
784
797
  }
785
- function Se({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
798
+ function Ce({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
786
799
  let s = r({
787
800
  ...o,
788
801
  children: e,
@@ -795,7 +808,7 @@ function Se({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
795
808
  ref: n
796
809
  }) : i(s);
797
810
  }
798
- function Ce({ children: e, className: i, onClick: a, ref: o, render: s, style: c, value: l, ...u }) {
811
+ function we({ children: e, className: i, onClick: a, ref: o, render: s, style: c, value: l, ...u }) {
799
812
  let d = B(), f = r({
800
813
  "aria-label": d.t("close"),
801
814
  ...u,
@@ -814,4 +827,4 @@ function Ce({ children: e, className: i, onClick: a, ref: o, render: s, style: c
814
827
  }) : s(f);
815
828
  }
816
829
  //#endregion
817
- export { Q as a, ye as c, B as d, R as f, Se as i, K as l, Ce as n, _e as o, L as p, be as r, ve as s, xe as t, H as u };
830
+ export { Ce as a, ve as c, H as d, B as f, xe as i, ye as l, L as m, Se as n, Q as o, R as p, we as r, _e as s, be as t, K as u };
package/dist/drawer.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./drawer-CFpBsLG6.js";
2
- export { f as Drawer, d as DrawerBody, o as DrawerClose, r as DrawerDefaultsProvider, l as DrawerDescription, i as DrawerFooter, e as DrawerHeader, s as DrawerPanel, u as DrawerResizer, t as DrawerTitle, a as DrawerTrigger, n as useDrawer, c as useDrawerDefaults };
1
+ import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./drawer-Du1aC1px.js";
2
+ export { n as Drawer, f as DrawerActions, s as DrawerBody, u as DrawerClose, l as DrawerDefaultsProvider, i as DrawerDescription, e as DrawerFooter, c as DrawerHeader, d as DrawerPanel, t as DrawerResizer, a as DrawerTitle, p as DrawerTrigger, r as useDrawer, o as useDrawerDefaults };