@bysages/react 0.4.2 → 0.4.3

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 (61) hide show
  1. package/dist/{ai-response-nhDOlELQ.mjs → ai-response-CjjjprMY.mjs} +10 -3
  2. package/dist/{chevron-a2nIZKN4.mjs → chevron-BA7kV9m7.mjs} +1 -1
  3. package/dist/components/accordion/index.mjs +1 -1
  4. package/dist/components/ai/index.mjs +1 -1
  5. package/dist/components/ai-attachments/index.mjs +1 -1
  6. package/dist/components/ai-prompt-input/index.mjs +1 -1
  7. package/dist/components/ai-reasoning/index.mjs +1 -1
  8. package/dist/components/ai-response/index.mjs +1 -1
  9. package/dist/components/ai-tool/index.mjs +1 -1
  10. package/dist/components/alert/index.mjs +1 -1
  11. package/dist/components/back-top/index.mjs +1 -1
  12. package/dist/components/banner/index.mjs +1 -1
  13. package/dist/components/calendar/index.mjs +1 -1
  14. package/dist/components/carousel/index.mjs +1 -1
  15. package/dist/components/cascade-select/index.mjs +1 -1
  16. package/dist/components/checkbox/index.mjs +1 -1
  17. package/dist/components/checkbox-group/index.mjs +1 -1
  18. package/dist/components/clipboard/index.mjs +1 -1
  19. package/dist/components/collapsible/index.mjs +1 -1
  20. package/dist/components/color-picker/index.mjs +1 -1
  21. package/dist/components/combobox/index.mjs +1 -1
  22. package/dist/components/date-picker/index.mjs +1 -1
  23. package/dist/components/dialog/index.mjs +1 -1
  24. package/dist/components/drawer/index.mjs +1 -1
  25. package/dist/components/dynamic-input/index.mjs +1 -1
  26. package/dist/components/editable/index.mjs +1 -1
  27. package/dist/components/file-upload/index.mjs +1 -1
  28. package/dist/components/floating-panel/index.mjs +1 -1
  29. package/dist/components/image/index.mjs +1 -1
  30. package/dist/components/image-viewer/index.mjs +1 -1
  31. package/dist/components/json-tree-view/index.mjs +1 -1
  32. package/dist/components/listbox/index.mjs +1 -1
  33. package/dist/components/media-player/index.mjs +1 -1
  34. package/dist/components/menu/index.mjs +1 -1
  35. package/dist/components/number-input/index.mjs +1 -1
  36. package/dist/components/order-list/index.mjs +1 -1
  37. package/dist/components/pagination/index.mjs +1 -1
  38. package/dist/components/password-input/index.mjs +1 -1
  39. package/dist/components/popover/index.mjs +1 -1
  40. package/dist/components/rating-group/index.mjs +1 -1
  41. package/dist/components/result/index.mjs +2 -1
  42. package/dist/components/select/index.mjs +1 -1
  43. package/dist/components/signature-pad/index.mjs +1 -1
  44. package/dist/components/split-button/index.mjs +1 -1
  45. package/dist/components/swap/index.mjs +1 -1
  46. package/dist/components/table/index.mjs +2 -2
  47. package/dist/components/tag/index.mjs +14 -8
  48. package/dist/components/tags-input/index.mjs +1 -1
  49. package/dist/components/toggle-group/index.mjs +1 -1
  50. package/dist/components/transfer/index.mjs +1 -1
  51. package/dist/components/tree-select/index.mjs +1 -1
  52. package/dist/components/tree-view/index.mjs +1 -1
  53. package/dist/generative/index.d.mts +53 -0
  54. package/dist/generative/index.mjs +670 -0
  55. package/dist/icon-Cri0-7-x.mjs +38 -0
  56. package/dist/{image-viewer-B-hKFkEw.mjs → image-viewer-D4FuYrk6.mjs} +1 -1
  57. package/dist/index.mjs +4 -4
  58. package/dist/{media-player-DjVvo1_7.mjs → media-player-C0WcjVI-.mjs} +2 -2
  59. package/dist/{select-i9UZsQCU.mjs → select-D_soVdWK.mjs} +1 -1
  60. package/package.json +2 -2
  61. package/dist/icon-BALgGtNK.mjs +0 -18
@@ -1,3 +1,4 @@
1
+ import { n as iconHtml } from "./icon-Cri0-7-x.mjs";
1
2
  import { t as withSelfRoot } from "./family-DE_GQeeM.mjs";
2
3
  import { n as useComponentMessages } from "./messages-1jJWtaYU.mjs";
3
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -5,11 +6,17 @@ import { jsx } from "react/jsx-runtime";
5
6
  import { useEffect, useRef } from "react";
6
7
  import { renderHtml } from "@tanstack/markdown/html";
7
8
  //#region src/components/ai-response/code-copy.ts
8
- /** The two glyphs a copy affordance needs: the stamp and its
9
+ /** The two curated icons a copy affordance needs: the stamp and its
9
10
  * confirmation. Inline SVG keeps the enhancement framework-agnostic —
10
11
  * it lives beside the renderer's generated code HTML. */
11
- const COPY_CODE_ICON = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>`;
12
- const COPIED_CODE_ICON = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>`;
12
+ const COPY_CODE_ICON = iconHtml("copy", {
13
+ width: "14",
14
+ height: "14"
15
+ });
16
+ const COPIED_CODE_ICON = iconHtml("check", {
17
+ width: "14",
18
+ height: "14"
19
+ });
13
20
  /** How long the confirmation stays before the stamp returns. */
14
21
  const REVERT_MS = 1500;
15
22
  /** Make sure every fenced block under `host` carries its copy stamp.
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "./icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "./icon-Cri0-7-x.mjs";
2
2
  //#region src/components/ai/chevron.tsx
3
3
  /** The folding chevron the shared indicator turns. */
4
4
  const chevron = iconNode("chevron-right");
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { Accordion as Accordion$1 } from "@ark-ui/react/accordion";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -4,7 +4,7 @@ import { Action } from "../ai-action/index.mjs";
4
4
  import { AiMessage as Message } from "../ai-message/index.mjs";
5
5
  import { AiPromptInput as PromptInput } from "../ai-prompt-input/index.mjs";
6
6
  import { AiReasoning as Reasoning } from "../ai-reasoning/index.mjs";
7
- import { t as Response } from "../../ai-response-nhDOlELQ.mjs";
7
+ import { t as Response } from "../../ai-response-CjjjprMY.mjs";
8
8
  import { AiSource as Source, AiSources as Sources } from "../ai-source/index.mjs";
9
9
  import { AiSuggestion as Suggestion } from "../ai-suggestion/index.mjs";
10
10
  import { AiTool as Tool } from "../ai-tool/index.mjs";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
3
  import { n as useComponentMessages, t as formatMessage } from "../../messages-1jJWtaYU.mjs";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
3
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
4
4
  import { Button } from "../button/index.mjs";
@@ -1,5 +1,5 @@
1
1
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
2
- import { t as chevron } from "../../chevron-a2nIZKN4.mjs";
2
+ import { t as chevron } from "../../chevron-BA7kV9m7.mjs";
3
3
  import { Collapsible } from "../collapsible/index.mjs";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { t as Response } from "../../ai-response-nhDOlELQ.mjs";
1
+ import { t as Response } from "../../ai-response-CjjjprMY.mjs";
2
2
  export { Response as AiResponse, Response };
@@ -1,5 +1,5 @@
1
1
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
2
- import { t as chevron } from "../../chevron-a2nIZKN4.mjs";
2
+ import { t as chevron } from "../../chevron-BA7kV9m7.mjs";
3
3
  import { Collapsible } from "../collapsible/index.mjs";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { injectComponentStyle } from "@bysages/core/styling";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { createContext, useContext } from "react";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
3
  import { Button } from "../button/index.mjs";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
4
4
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { Checkbox as Checkbox$1 } from "../checkbox/index.mjs";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
3
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
4
4
  import { Button } from "../button/index.mjs";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
1
  import "../button-group/index.mjs";
2
2
  import "../dialog/index.mjs";
3
- import { t as ImageViewer } from "../../image-viewer-B-hKFkEw.mjs";
3
+ import { t as ImageViewer } from "../../image-viewer-D4FuYrk6.mjs";
4
4
  export { ImageViewer };
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { n as Video, r as formatMediaTime, t as Audio } from "../../media-player-DjVvo1_7.mjs";
1
+ import { n as Video, r as formatMediaTime, t as Audio } from "../../media-player-C0WcjVI-.mjs";
2
2
  export { Audio, Video, formatMediaTime };
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
3
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,7 +1,8 @@
1
+ import { t as iconBody } from "../../icon-Cri0-7-x.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core/styling";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/components/result/index.tsx
4
- const MARK = "<g data-for=\"success\"><path d=\"M20 6 9 17l-5-5\"/></g><g data-for=\"warning\"><path d=\"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z\"/><path d=\"M12 9v4\"/><path d=\"M12 17h.01\"/></g><g data-for=\"danger\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m15 9-6 6\"/><path d=\"m9 9 6 6\"/></g><g data-for=\"info\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16v-4\"/><path d=\"M12 8h.01\"/></g>";
5
+ const MARK = `<g data-for="success">${iconBody("check")}</g><g data-for="warning">${iconBody("triangle-alert")}</g><g data-for="danger">${iconBody("circle-x")}</g><g data-for="info">${iconBody("info")}</g>`;
5
6
  function ResultRoot({ status = "info", children, ...rest }) {
6
7
  injectComponentStyle("result");
7
8
  return /* @__PURE__ */ jsx("div", {
@@ -1,2 +1,2 @@
1
- import { n as NativeSelect, t as Select } from "../../select-i9UZsQCU.mjs";
1
+ import { n as NativeSelect, t as Select } from "../../select-D_soVdWK.mjs";
2
2
  export { NativeSelect, Select };
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
4
4
  import { Button } from "../button/index.mjs";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
3
  import { n as useComponentMessages, t as formatMessage } from "../../messages-1jJWtaYU.mjs";
4
4
  import { Pagination } from "../pagination/index.mjs";
5
- import { t as Select$1 } from "../../select-i9UZsQCU.mjs";
5
+ import { t as Select$1 } from "../../select-D_soVdWK.mjs";
6
6
  import { injectComponentStyle } from "@bysages/core/styling";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
8
  import { useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -24,13 +24,7 @@ function TagImpl({ tone = "ink", variant = "solid", checkable = false, value, de
24
24
  onClose?.();
25
25
  };
26
26
  const pressed = checkable && checked;
27
- const closeControl = closable ? checkable ? /* @__PURE__ */ jsx("span", {
28
- "data-scope": "tag",
29
- "data-part": "close",
30
- "aria-hidden": "true",
31
- onClick: dismiss,
32
- children: iconNode("x")
33
- }) : /* @__PURE__ */ jsx("button", {
27
+ const closeControl = closable ? /* @__PURE__ */ jsx("button", {
34
28
  "data-scope": "tag",
35
29
  "data-part": "close",
36
30
  type: "button",
@@ -49,6 +43,18 @@ function TagImpl({ tone = "ink", variant = "solid", checkable = false, value, de
49
43
  ...pressed ? { "data-checked": "true" } : {},
50
44
  ...disabled ? { "data-disabled": "true" } : {}
51
45
  };
46
+ if (checkable && closable) return /* @__PURE__ */ jsxs("span", {
47
+ ...partProps,
48
+ children: [/* @__PURE__ */ jsx("button", {
49
+ "data-scope": "tag",
50
+ "data-part": "check",
51
+ type: "button",
52
+ "aria-pressed": checked,
53
+ disabled,
54
+ onClick: toggle,
55
+ children
56
+ }), closeControl]
57
+ });
52
58
  if (checkable) return /* @__PURE__ */ jsxs("button", {
53
59
  ...partProps,
54
60
  type: "button",
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { n as useComponentMessages, t as formatMessage } from "../../messages-1jJWtaYU.mjs";
4
4
  import { Button } from "../button/index.mjs";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
4
4
  import { Popover as Popover$1 } from "../popover/index.mjs";
@@ -1,4 +1,4 @@
1
- import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
+ import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
2
  import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -0,0 +1,53 @@
1
+ import { z } from "zod";
2
+ //#region src/generative/index.d.ts
3
+ export declare const catalog: import("@json-render/core").Catalog<{
4
+ spec: import("@json-render/core").SchemaType<"object", {
5
+ root: import("@json-render/core").SchemaType<"string", unknown>;
6
+ elements: import("@json-render/core").SchemaType<"record", import("@json-render/core").SchemaType<"object", {
7
+ type: import("@json-render/core").SchemaType<"ref", string>;
8
+ props: import("@json-render/core").SchemaType<"propsOf", string>;
9
+ children: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>>;
10
+ slots: {
11
+ optional: true;
12
+ kind: "record";
13
+ inner?: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>> | undefined;
14
+ };
15
+ visible: {
16
+ optional: true;
17
+ kind: "any";
18
+ inner?: unknown;
19
+ };
20
+ repeat: {
21
+ optional: true;
22
+ kind: "any";
23
+ inner?: unknown;
24
+ };
25
+ }>>;
26
+ }>;
27
+ catalog: import("@json-render/core").SchemaType<"object", {
28
+ components: import("@json-render/core").SchemaType<"map", {
29
+ props: import("@json-render/core").SchemaType<"zod", unknown>;
30
+ slots: import("@json-render/core").SchemaType<"array", import("@json-render/core").SchemaType<"string", unknown>>;
31
+ description: import("@json-render/core").SchemaType<"string", unknown>;
32
+ example: import("@json-render/core").SchemaType<"any", unknown>;
33
+ }>;
34
+ actions: import("@json-render/core").SchemaType<"map", {
35
+ params: import("@json-render/core").SchemaType<"zod", unknown>;
36
+ description: import("@json-render/core").SchemaType<"string", unknown>;
37
+ }>;
38
+ }>;
39
+ }, {
40
+ components: Record<string, {
41
+ props: z.ZodObject;
42
+ slots?: string[];
43
+ description: string;
44
+ }>;
45
+ actions: {};
46
+ }>;
47
+ declare const registry: import("@json-render/react").ComponentRegistry;
48
+ /** Which family each face came home from. A family may speak under
49
+ * several names - Layout plus its parts, Bento plus its cell - and the
50
+ * palette groups by provenance, never by guessing from the name. */
51
+ export declare const faceFamilies: Record<string, string>;
52
+ //#endregion
53
+ export { registry };