@alfadocs/ui-kit 1.110.0 → 1.112.0

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 (104) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-QhbDdY7b.js → anamnesis-summary-rows-BrTx7diS.js} +2 -2
  2. package/dist/_chunks/{calculator-dialog-BsVVb8cT.js → calculator-dialog-D4TyJwqy.js} +2 -2
  3. package/dist/_chunks/{calendar-appointment-editor-dialog-D8DblVjW.js → calendar-appointment-editor-dialog-Oc3Df8O3.js} +4 -4
  4. package/dist/_chunks/data-grid.agent-CASyEAnb.js +1773 -0
  5. package/dist/_chunks/{dialog-C7RWaH08.js → dialog-BTjSQjdY.js} +17 -16
  6. package/dist/_chunks/{file-manager-BDKe59sg.js → file-manager-CVxBE4yy.js} +2 -2
  7. package/dist/_chunks/{help-me-write-templates-YmceSxf5.js → help-me-write-templates-CWxgjDZl.js} +2 -2
  8. package/dist/_chunks/{kit-extensions-BOnTM4Yf.js → kit-extensions-VaJ-u44J.js} +47 -22
  9. package/dist/_chunks/muscle-scheme-C2B6v14o.js +3276 -0
  10. package/dist/_chunks/{notes-panel-SlzUL8in.js → notes-panel-Cz621DWV.js} +3 -3
  11. package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js → radiograph-panel.agent-CXah49KM.js} +2 -2
  12. package/dist/_chunks/{rich-text-editor-C3nANKZt.js → rich-text-editor-BLS2cK-u.js} +2 -2
  13. package/dist/_chunks/{signature-request-opW0fQ5P.js → signature-request-DJwdPji_.js} +2 -2
  14. package/dist/_chunks/{task-editor-CmXcj6cC.js → task-editor-jqRf2JP6.js} +2 -2
  15. package/dist/_chunks/{widget-picker-DNYIqRT1.js → widget-picker-U4JsEhQE.js} +2 -2
  16. package/dist/ag-grid.css +0 -10
  17. package/dist/agent-catalog.json +66 -9
  18. package/dist/components/calculator-dialog/index.js +1 -1
  19. package/dist/components/data-grid/data-grid.agent.d.ts +3 -0
  20. package/dist/components/data-grid/data-grid.d.ts +28 -0
  21. package/dist/components/data-grid/index.d.ts +4 -0
  22. package/dist/components/data-grid/index.js +6 -0
  23. package/dist/components/dialog/dialog.d.ts +2 -2
  24. package/dist/components/dialog/index.js +1 -1
  25. package/dist/components/file-manager/index.js +1 -1
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/muscle-scheme/index.d.ts +3 -3
  28. package/dist/components/muscle-scheme/index.js +14 -12
  29. package/dist/components/muscle-scheme/muscle-fibres.d.ts +3 -0
  30. package/dist/components/muscle-scheme/muscle-outlines.d.ts +19 -0
  31. package/dist/components/muscle-scheme/muscle-scheme-data.d.ts +96 -2
  32. package/dist/components/muscle-scheme/muscle-scheme.d.ts +39 -3
  33. package/dist/components/muscle-scheme/reproductive-female.d.ts +3 -0
  34. package/dist/components/muscle-scheme/reproductive-male.d.ts +3 -0
  35. package/dist/components/notes-panel/index.js +1 -1
  36. package/dist/components/radiograph-panel/index.js +1 -1
  37. package/dist/components/rich-text-editor/index.js +2 -2
  38. package/dist/components/task-editor/index.js +1 -1
  39. package/dist/components/widget-picker/index.js +1 -1
  40. package/dist/core.css +1 -1
  41. package/dist/host-compat.css +9 -1
  42. package/dist/host-legacy.css +17 -1
  43. package/dist/i18n/locales/ar.d.ts +140 -0
  44. package/dist/i18n/locales/ar.js +100 -2
  45. package/dist/i18n/locales/de.d.ts +140 -0
  46. package/dist/i18n/locales/de.js +91 -2
  47. package/dist/i18n/locales/el.d.ts +140 -0
  48. package/dist/i18n/locales/el.js +106 -2
  49. package/dist/i18n/locales/en.d.ts +140 -0
  50. package/dist/i18n/locales/en.js +82 -2
  51. package/dist/i18n/locales/es.d.ts +140 -0
  52. package/dist/i18n/locales/es.js +97 -2
  53. package/dist/i18n/locales/fr.d.ts +140 -0
  54. package/dist/i18n/locales/fr.js +88 -2
  55. package/dist/i18n/locales/hi.d.ts +140 -0
  56. package/dist/i18n/locales/hi.js +85 -2
  57. package/dist/i18n/locales/it.d.ts +140 -0
  58. package/dist/i18n/locales/it.js +100 -2
  59. package/dist/i18n/locales/ja.d.ts +140 -0
  60. package/dist/i18n/locales/ja.js +58 -2
  61. package/dist/i18n/locales/nl.d.ts +140 -0
  62. package/dist/i18n/locales/nl.js +82 -2
  63. package/dist/i18n/locales/pl.d.ts +140 -0
  64. package/dist/i18n/locales/pl.js +106 -2
  65. package/dist/i18n/locales/pt.d.ts +140 -0
  66. package/dist/i18n/locales/pt.js +97 -2
  67. package/dist/i18n/locales/ro.d.ts +140 -0
  68. package/dist/i18n/locales/ro.js +97 -2
  69. package/dist/i18n/locales/ru.d.ts +140 -0
  70. package/dist/i18n/locales/ru.js +121 -2
  71. package/dist/i18n/locales/sq.d.ts +140 -0
  72. package/dist/i18n/locales/sq.js +100 -2
  73. package/dist/i18n/locales/sv.d.ts +140 -0
  74. package/dist/i18n/locales/sv.js +76 -2
  75. package/dist/i18n/locales/tr.d.ts +140 -0
  76. package/dist/i18n/locales/tr.js +76 -2
  77. package/dist/i18n/locales/zh.d.ts +140 -0
  78. package/dist/i18n/locales/zh.js +58 -2
  79. package/dist/index.js +984 -979
  80. package/dist/locales/ar.json +142 -2
  81. package/dist/locales/de.json +142 -2
  82. package/dist/locales/el.json +142 -2
  83. package/dist/locales/en.json +142 -2
  84. package/dist/locales/es.json +142 -2
  85. package/dist/locales/fr.json +142 -2
  86. package/dist/locales/hi.json +142 -2
  87. package/dist/locales/it.json +142 -2
  88. package/dist/locales/ja.json +142 -2
  89. package/dist/locales/nl.json +142 -2
  90. package/dist/locales/pl.json +142 -2
  91. package/dist/locales/pt.json +142 -2
  92. package/dist/locales/ro.json +142 -2
  93. package/dist/locales/ru.json +142 -2
  94. package/dist/locales/sq.json +142 -2
  95. package/dist/locales/sv.json +142 -2
  96. package/dist/locales/tr.json +142 -2
  97. package/dist/locales/zh.json +142 -2
  98. package/dist/patterns/anamnesis/index.js +1 -1
  99. package/dist/patterns/calendar/index.js +1 -1
  100. package/dist/patterns/help-me-write-templates/index.js +1 -1
  101. package/dist/patterns/signature-request/index.js +1 -1
  102. package/dist/tokens.css +1 -6
  103. package/package.json +6 -1
  104. package/dist/_chunks/muscle-scheme-CznhrQlo.js +0 -1706
@@ -5,7 +5,7 @@ import { useTranslation as kn } from "react-i18next";
5
5
  import { g as mt, h as Rt } from "./handled-rejection-6gqCf5vt.js";
6
6
  import { u as zn } from "./registry-DvAUVLHh.js";
7
7
  import { C as Hn } from "./clinical-note-card-BVkxGiGl.js";
8
- import { R as Mn } from "./rich-text-editor-C3nANKZt.js";
8
+ import { R as Mn } from "./rich-text-editor-BLS2cK-u.js";
9
9
  import { T as Wn } from "./text-area-COMVJ1yE.js";
10
10
  import { A as j } from "./alert-C4WKViaS.js";
11
11
  import { B as te } from "./button-DohK_Ak_.js";
@@ -14,7 +14,7 @@ import { S as $n } from "./switch-DO6uC4HJ.js";
14
14
  import { T as Bn } from "./tooltip-uEBdD1-5.js";
15
15
  import { C as yt } from "./card-C85_Ndhb.js";
16
16
  import { C as Kn, S as ve } from "./skeleton-tTWJpvAq.js";
17
- import { D as L } from "./dialog-C7RWaH08.js";
17
+ import { D as L } from "./dialog-BTjSQjdY.js";
18
18
  import { P as In } from "./panel-header-CbtlTe85.js";
19
19
  import { a as Yn, u as Gn, R as Jn } from "./use-list-reflow-C7O4Uqnl.js";
20
20
  import { u as Qn } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
@@ -1109,4 +1109,4 @@ const jr = qn(
1109
1109
  export {
1110
1110
  jr as N
1111
1111
  };
1112
- //# sourceMappingURL=notes-panel-SlzUL8in.js.map
1112
+ //# sourceMappingURL=notes-panel-Cz621DWV.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, Fragment as j, jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as X, useState as h, useRef as ee, useImperativeHandle as ae, useMemo as re, useCallback as _, useEffect as ie } from "react";
3
3
  import { useTranslation as S } from "react-i18next";
4
- import { D as y } from "./dialog-C7RWaH08.js";
4
+ import { D as y } from "./dialog-BTjSQjdY.js";
5
5
  import { B as T } from "./button-DohK_Ak_.js";
6
6
  import { I as v } from "./icon-button-S8_weU3g.js";
7
7
  import { B as L } from "./badge-BUk4RjTS.js";
@@ -533,4 +533,4 @@ export {
533
533
  qe as R,
534
534
  Ae as r
535
535
  };
536
- //# sourceMappingURL=radiograph-panel.agent-0ngF2sGS.js.map
536
+ //# sourceMappingURL=radiograph-panel.agent-CXah49KM.js.map
@@ -25,7 +25,7 @@ import { u as ca, f as da } from "./non-modal-tab-exit-j3CPOuE3.js";
25
25
  import { V as Xr } from "./variables-menu-DQl8H4Gh.js";
26
26
  import { a as Fn } from "./tooltip-uEBdD1-5.js";
27
27
  import { P as ne } from "./popover-CN5IsOeS.js";
28
- import { D as ie } from "./dialog-C7RWaH08.js";
28
+ import { D as ie } from "./dialog-BTjSQjdY.js";
29
29
  import { C as jn } from "./color-picker-AcaWuKah.js";
30
30
  import { S as nn } from "./state-backed-text-input-DVETOhSS.js";
31
31
  import { C as ua } from "./checkbox-a7Sh-dXb.js";
@@ -4145,4 +4145,4 @@ export {
4145
4145
  Ii as r,
4146
4146
  Ts as w
4147
4147
  };
4148
- //# sourceMappingURL=rich-text-editor-C3nANKZt.js.map
4148
+ //# sourceMappingURL=rich-text-editor-BLS2cK-u.js.map
@@ -1,7 +1,7 @@
1
1
  import { jsx as n, jsxs as u, Fragment as ge } from "react/jsx-runtime";
2
2
  import { useState as _, useRef as oe, useEffect as je, useId as B, forwardRef as Mi, useLayoutEffect as Qt } from "react";
3
3
  import { useTranslation as Fn } from "react-i18next";
4
- import { D as q } from "./dialog-C7RWaH08.js";
4
+ import { D as q } from "./dialog-BTjSQjdY.js";
5
5
  import { Q as $i } from "./qr-code-DHEma21c.js";
6
6
  import { S as zi } from "./spinner-CoflYlEx.js";
7
7
  import { S as Ie } from "./skeleton-tTWJpvAq.js";
@@ -2787,4 +2787,4 @@ Or.displayName = "SignatureRequestModal";
2787
2787
  export {
2788
2788
  Or as S
2789
2789
  };
2790
- //# sourceMappingURL=signature-request-opW0fQ5P.js.map
2790
+ //# sourceMappingURL=signature-request-DJwdPji_.js.map
@@ -6,7 +6,7 @@ import { A as M } from "./alert-C4WKViaS.js";
6
6
  import { B as Me } from "./button-DohK_Ak_.js";
7
7
  import { I as We } from "./icon-button-S8_weU3g.js";
8
8
  import { C as Qe } from "./combobox-duuDRI1t.js";
9
- import { D as ce } from "./dialog-C7RWaH08.js";
9
+ import { D as ce } from "./dialog-BTjSQjdY.js";
10
10
  import { D as Bt } from "./date-picker-CdhXlgVI.js";
11
11
  import { F as H } from "./form-field-CyHfOVKF.js";
12
12
  import { I as Ft } from "./icon-button-group-mXvYDaba.js";
@@ -1239,4 +1239,4 @@ export {
1239
1239
  vn as T,
1240
1240
  ln as t
1241
1241
  };
1242
- //# sourceMappingURL=task-editor-CmXcj6cC.js.map
1242
+ //# sourceMappingURL=task-editor-jqRf2JP6.js.map
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
2
  import { forwardRef as _, useState as p, useEffect as N, useMemo as v, useCallback as j, useImperativeHandle as B } from "react";
3
3
  import { c as C } from "./index-D2ZczOXr.js";
4
4
  import { useTranslation as H } from "react-i18next";
5
- import { D as u } from "./dialog-C7RWaH08.js";
5
+ import { D as u } from "./dialog-BTjSQjdY.js";
6
6
  import { S as A } from "./state-backed-text-input-DVETOhSS.js";
7
7
  import { B as I } from "./badge-BUk4RjTS.js";
8
8
  import { u as D } from "./registry-DvAUVLHh.js";
@@ -213,4 +213,4 @@ export {
213
213
  E as W,
214
214
  K as w
215
215
  };
216
- //# sourceMappingURL=widget-picker-DNYIqRT1.js.map
216
+ //# sourceMappingURL=widget-picker-U4JsEhQE.js.map
package/dist/ag-grid.css CHANGED
@@ -2728,16 +2728,6 @@ button.ag-side-button-button:focus{box-shadow:none}
2728
2728
  .ag-theme-alfadocs .ag-row-selected{color:HighlightText}
2729
2729
  .ag-theme-alfadocs .data-table-row-success,.ag-theme-alfadocs .data-table-row-warning,.ag-theme-alfadocs .data-table-row-error,.ag-theme-alfadocs .data-table-row-archived,.ag-theme-alfadocs .ag-row.ds-data-table-expanded-row{background-color:Canvas;color:CanvasText}}
2730
2730
 
2731
- :root,.theme-light{--data-grid-border-mix: 50%;--data-grid-eyebrow-size: var(--font-size-xs);--data-grid-group-size: var(--font-size-sm);--data-grid-selected-mix: 10%;--data-grid-eyebrow-ink: var(--foreground);--data-grid-header-surface: var(--muted)}
2732
-
2733
- .theme-dark{--data-grid-eyebrow-ink: var(--muted-foreground);--data-grid-header-surface: color-mix( in srgb, var(--foreground) 6%, transparent )}
2734
-
2735
- .theme-accessible{--data-grid-border-mix: 35%;--data-grid-eyebrow-size: var(--font-size-sm);--data-grid-group-size: var(--font-size-base);--data-grid-eyebrow-ink: var(--muted-foreground)}
2736
-
2737
- .theme-light.theme-accessible{--data-grid-header-surface: color-mix( in srgb, var(--foreground) 4%, transparent )}
2738
-
2739
- .theme-dark.theme-accessible{--data-grid-selected-mix: 18%}
2740
-
2741
2731
  .ag-theme-alfadocs .sr-only-th .ag-header-cell-text{position:absolute!important;inline-size:1px!important;block-size:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
2742
2732
 
2743
2733
  .ag-theme-alfadocs .ag-body-horizontal-scroll-viewport,.ag-theme-alfadocs .ag-body-vertical-scroll-viewport{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track)}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.110.0",
3
+ "packageVersion": "1.112.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -3471,6 +3471,20 @@
3471
3471
  }
3472
3472
  }
3473
3473
  },
3474
+ {
3475
+ "kind": "component",
3476
+ "id": "data-grid",
3477
+ "capabilities": [],
3478
+ "state": [],
3479
+ "actions": [],
3480
+ "domHooks": {
3481
+ "root": {
3482
+ "attr": "data-component",
3483
+ "value": "data-grid",
3484
+ "description": "Marks the element as a kit DataGrid."
3485
+ }
3486
+ }
3487
+ },
3474
3488
  {
3475
3489
  "kind": "component",
3476
3490
  "id": "data-table",
@@ -8121,7 +8135,7 @@
8121
8135
  "properties": {
8122
8136
  "regionId": {
8123
8137
  "type": "string",
8124
- "description": "Per-muscle region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'pectoralis-r', 'trapezius-l'."
8138
+ "description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
8125
8139
  }
8126
8140
  },
8127
8141
  "required": [
@@ -8141,7 +8155,7 @@
8141
8155
  "properties": {
8142
8156
  "regionId": {
8143
8157
  "type": "string",
8144
- "description": "Per-muscle region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'pectoralis-r', 'trapezius-l'."
8158
+ "description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
8145
8159
  }
8146
8160
  },
8147
8161
  "required": [
@@ -8202,7 +8216,7 @@
8202
8216
  "type": "array",
8203
8217
  "items": {
8204
8218
  "type": "string",
8205
- "description": "Per-muscle region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'pectoralis-r', 'trapezius-l'."
8219
+ "description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
8206
8220
  }
8207
8221
  },
8208
8222
  "idempotent": true,
@@ -8218,7 +8232,7 @@
8218
8232
  "properties": {
8219
8233
  "regionId": {
8220
8234
  "type": "string",
8221
- "description": "Per-muscle region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'pectoralis-r', 'trapezius-l'."
8235
+ "description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
8222
8236
  },
8223
8237
  "type": {
8224
8238
  "enum": [
@@ -8251,7 +8265,7 @@
8251
8265
  "properties": {
8252
8266
  "regionId": {
8253
8267
  "type": "string",
8254
- "description": "Per-muscle region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'pectoralis-r', 'trapezius-l'."
8268
+ "description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
8255
8269
  },
8256
8270
  "type": {
8257
8271
  "enum": [
@@ -8281,7 +8295,7 @@
8281
8295
  "properties": {
8282
8296
  "regionId": {
8283
8297
  "type": "string",
8284
- "description": "Per-muscle region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'pectoralis-r', 'trapezius-l'."
8298
+ "description": "Region id within the active view, e.g. 'quadriceps-r', 'biceps-l', 'chest-r', 'trapezius-l'. The female body view muscular-front-female also has breast-l and breast-r. The organ-only reproductive-female view has vulva, vagina, cervix, uterus, ovary-l, ovary-r, fallopian-tube-l, fallopian-tube-r, bladder and urethra. The organ-only reproductive-male view has penis, scrotum, testis-l, testis-r, prostate, bladder, urethra, epididymis-l, epididymis-r, vas-deferens-l, vas-deferens-r, seminal-vesicle-l and seminal-vesicle-r. Child views have no organ regions."
8285
8299
  }
8286
8300
  },
8287
8301
  "required": [
@@ -8301,7 +8315,7 @@
8301
8315
  "properties": {
8302
8316
  "viewId": {
8303
8317
  "type": "string",
8304
- "description": "View id, e.g. 'muscular-front', 'muscular-back', 'muscular-front-female', 'muscular-back-female', 'muscular-front-child', 'muscular-back-child'."
8318
+ "description": "View id: 'muscular-front', 'muscular-back', 'muscular-front-female', 'muscular-back-female', 'muscular-front-child', 'muscular-back-child', 'reproductive-female' or 'reproductive-male'. Reproductive views (kind 'pelvis') contain only organs; the others show the body from the front or back. Switch to the relevant view before focusing an organ region. When the host controls the view, it decides whether the switch happens."
8305
8319
  }
8306
8320
  },
8307
8321
  "required": [
@@ -8325,7 +8339,7 @@
8325
8339
  },
8326
8340
  "item": {
8327
8341
  "attr": "data-region",
8328
- "description": "Each rendered region `<g>` carries its region id as `data-region` and its anatomical side (`left` / `right` / `midline`) as `data-side`, so bilateral regions can be disambiguated by side. The root `data-view` attribute exposes the active muscle view."
8342
+ "description": "Each rendered region `<g>` carries its region id as `data-region` and its anatomical side (`left` / `right` / `midline`) as `data-side`, so bilateral regions can be disambiguated by side; a host-selected region also carries `data-selected`. The root `data-view` and `data-view-kind` attributes expose the active view and what it depicts (`front` / `back` / `pelvis`)."
8329
8343
  }
8330
8344
  }
8331
8345
  },
@@ -19583,6 +19597,49 @@
19583
19597
  }
19584
19598
  ]
19585
19599
  },
19600
+ {
19601
+ "kind": "pattern",
19602
+ "id": "care-plan-margin",
19603
+ "composes": [
19604
+ {
19605
+ "component": "dialog",
19606
+ "as": "marginDialog"
19607
+ },
19608
+ {
19609
+ "component": "form-field",
19610
+ "as": "discountField"
19611
+ },
19612
+ {
19613
+ "component": "number-input",
19614
+ "as": "discount"
19615
+ },
19616
+ {
19617
+ "component": "data-grid",
19618
+ "as": "marginGrid"
19619
+ },
19620
+ {
19621
+ "component": "transaction-chip",
19622
+ "as": "amount"
19623
+ },
19624
+ {
19625
+ "component": "info-tip",
19626
+ "as": "columnHelp"
19627
+ },
19628
+ {
19629
+ "component": "money",
19630
+ "as": "materialUnitCost"
19631
+ },
19632
+ {
19633
+ "component": "button",
19634
+ "as": "apply"
19635
+ },
19636
+ {
19637
+ "component": "live-region",
19638
+ "as": "ebitAnnouncement"
19639
+ }
19640
+ ],
19641
+ "workflows": []
19642
+ },
19586
19643
  {
19587
19644
  "kind": "pattern",
19588
19645
  "id": "care-plans",
@@ -1,4 +1,4 @@
1
- import { C as l } from "../../_chunks/calculator-dialog-BsVVb8cT.js";
1
+ import { C as l } from "../../_chunks/calculator-dialog-D4TyJwqy.js";
2
2
  export {
3
3
  l as CalculatorDialog
4
4
  };
@@ -0,0 +1,3 @@
1
+ import type { AgentAdapter } from '../../agent/types';
2
+ export declare const dataGridAgent: AgentAdapter;
3
+ //# sourceMappingURL=data-grid.agent.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { type HTMLAttributes, type ReactNode } from 'react';
2
+ export interface DataGridColumn<TData> {
3
+ /** Unique within the grid. */
4
+ id: string;
5
+ header: ReactNode;
6
+ /** The column's plain name, when `header` holds more than text, such as an
7
+ * InfoTip. Without it, the tip's name joins every cell's announcement. */
8
+ headerLabel?: string;
9
+ /** What this column shows for a row. */
10
+ cell: (row: TData) => ReactNode;
11
+ /** This column's cell in the totals row. The row appears when any column
12
+ * has a footer. */
13
+ footer?: ReactNode;
14
+ /** Amounts go `end`, so a column lines up on the decimal. */
15
+ align?: 'start' | 'end';
16
+ /** Keeps the column in view while the others scroll sideways. */
17
+ pin?: 'start' | 'end';
18
+ }
19
+ export interface DataGridProps<TData> extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dir'> {
20
+ columns: DataGridColumn<TData>[];
21
+ rows: TData[];
22
+ getRowId: (row: TData) => string;
23
+ /** Names the table for screen readers. Pass a translated string. */
24
+ caption: string;
25
+ }
26
+ /** The first column is the row header, so name each row with it. */
27
+ export declare function DataGrid<TData extends object>({ columns, rows, getRowId, caption, className, ...rest }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
28
+ //# sourceMappingURL=data-grid.d.ts.map
@@ -0,0 +1,4 @@
1
+ export { DataGrid } from './data-grid';
2
+ export type { DataGridColumn, DataGridProps } from './data-grid';
3
+ export { dataGridAgent } from './data-grid.agent';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { D as r, d as t } from "../../_chunks/data-grid.agent-CASyEAnb.js";
2
+ export {
3
+ r as DataGrid,
4
+ t as dataGridAgent
5
+ };
6
+ //# sourceMappingURL=index.js.map
@@ -2,7 +2,7 @@ import { type ComponentPropsWithoutRef, type HTMLAttributes, type ReactNode } fr
2
2
  import * as RadixDialog from '@radix-ui/react-dialog';
3
3
  import { type VariantProps } from 'class-variance-authority';
4
4
  declare const contentVariants: (props?: ({
5
- size?: "sm" | "md" | "lg" | "fullscreen" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | "xl" | "fullscreen" | null | undefined;
6
6
  scroll?: "body" | "surface" | null | undefined;
7
7
  flush?: boolean | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -16,7 +16,7 @@ export interface DialogRootProps extends ComponentPropsWithoutRef<typeof RadixDi
16
16
  id?: string;
17
17
  }
18
18
  export interface DialogContentProps extends Omit<ComponentPropsWithoutRef<typeof RadixDialog.Content>, 'role'>, VariantProps<typeof contentVariants> {
19
- size?: 'sm' | 'md' | 'lg' | 'fullscreen';
19
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'fullscreen';
20
20
  variant?: 'default' | 'alert' | 'confirmation';
21
21
  /**
22
22
  * Hide the top-right dismiss "X". The default is **variant-aware**: the X is
@@ -1,4 +1,4 @@
1
- import { D as g, d } from "../../_chunks/dialog-C7RWaH08.js";
1
+ import { D as g, d } from "../../_chunks/dialog-BTjSQjdY.js";
2
2
  export {
3
3
  g as Dialog,
4
4
  d as dialogAgent
@@ -1,4 +1,4 @@
1
- import { F as r, f } from "../../_chunks/file-manager-BDKe59sg.js";
1
+ import { F as r, f } from "../../_chunks/file-manager-CVxBE4yy.js";
2
2
  export {
3
3
  r as FileManager,
4
4
  f as fileManagerAgent
@@ -76,6 +76,7 @@ export * from './carousel';
76
76
  export * from './connection-status';
77
77
  export * from './contact-card';
78
78
  export * from './counter';
79
+ export * from './data-grid';
79
80
  export * from './data-table';
80
81
  export * from './data-table-tabs';
81
82
  export * from './clinical-note-card';
@@ -1,6 +1,6 @@
1
- export { MuscleScheme } from './muscle-scheme';
1
+ export { MuscleScheme, useMuscleRegionLabel } from './muscle-scheme';
2
2
  export type { MuscleSchemeProps, MuscleSchemeHandle } from './muscle-scheme';
3
- export { MUSCLE_VIEWS, DEFAULT_MUSCLE_VIEW, FINDING_TYPES, FINDING_MARKER, getView, viewsForFigure, getRegion, regionCentroid, figureFromPatient, emptyChart as emptyMuscleChart, } from './muscle-scheme-data';
4
- export type { MuscleViewId, MuscleView, MuscleRegion, MuscleChart, MuscleFinding, MuscleSchemeMode, RegionSide, FigureVariant, FindingType, RegionShape, } from './muscle-scheme-data';
3
+ export { MUSCLE_VIEWS, DEFAULT_MUSCLE_VIEW, FINDING_TYPES, FINDING_MARKER, getView, viewsForFigure, getRegion, findRegionView, regionCentroid, figureFromPatient, emptyChart as emptyMuscleChart, } from './muscle-scheme-data';
4
+ export type { MuscleViewId, MuscleView, MuscleViewKind, AnatomyTissue, AnatomyPaint, AnatomyDetail, OrganArt, MuscleRegion, MuscleChart, MuscleFinding, MuscleSchemeMode, RegionSide, FigureVariant, FindingType, RegionShape, } from './muscle-scheme-data';
5
5
  export { muscleSchemeAgent } from './muscle-scheme.agent';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,16 +1,18 @@
1
- import { D as a, F as r, a as t, M as g, b as i, e as m, f as o, g as E, c as F, m as c, r as I, v as M } from "../../_chunks/muscle-scheme-CznhrQlo.js";
1
+ import { D as a, F as i, a as g, M as r, b as o, e as t, f as n, c as u, g as c, d as m, m as E, r as F, u as M, v as I } from "../../_chunks/muscle-scheme-C2B6v14o.js";
2
2
  export {
3
3
  a as DEFAULT_MUSCLE_VIEW,
4
- r as FINDING_MARKER,
5
- t as FINDING_TYPES,
6
- g as MUSCLE_VIEWS,
7
- i as MuscleScheme,
8
- m as emptyMuscleChart,
9
- o as figureFromPatient,
10
- E as getRegion,
11
- F as getView,
12
- c as muscleSchemeAgent,
13
- I as regionCentroid,
14
- M as viewsForFigure
4
+ i as FINDING_MARKER,
5
+ g as FINDING_TYPES,
6
+ r as MUSCLE_VIEWS,
7
+ o as MuscleScheme,
8
+ t as emptyMuscleChart,
9
+ n as figureFromPatient,
10
+ u as findRegionView,
11
+ c as getRegion,
12
+ m as getView,
13
+ E as muscleSchemeAgent,
14
+ F as regionCentroid,
15
+ M as useMuscleRegionLabel,
16
+ I as viewsForFigure
15
17
  };
16
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ export type MuscleFibreSet = 'male-front' | 'male-back' | 'female-front' | 'female-back';
2
+ export declare const MUSCLE_FIBRES: Record<MuscleFibreSet, Record<string, string>>;
3
+ //# sourceMappingURL=muscle-fibres.d.ts.map
@@ -0,0 +1,19 @@
1
+ export type MuscleOutlineSet = 'male-front' | 'male-back' | 'female-front' | 'female-back' | 'child-front' | 'child-back';
2
+ /**
3
+ * The child's proportions, in the male figure's coordinates: legs scaled by
4
+ * `legScale` about the soles, everything above `hip` (and the arms, further
5
+ * than `armReach` from the midline) moved down by `drop` to meet them.
6
+ */
7
+ export declare const CHILD_PROPORTIONS: {
8
+ legScale: number;
9
+ hip: number;
10
+ sole: number;
11
+ armReach: number;
12
+ midline: {
13
+ front: number;
14
+ back: number;
15
+ };
16
+ drop: number;
17
+ };
18
+ export declare const MUSCLE_OUTLINES: Record<MuscleOutlineSet, string>;
19
+ //# sourceMappingURL=muscle-outlines.d.ts.map
@@ -2,6 +2,8 @@ import type { MarkerShape, MarkerTone } from '../annotation-marker';
2
2
  /** Muscle figure variant. `child` is the adult-male map scaled down. */
3
3
  export type FigureVariant = 'adult-male' | 'adult-female' | 'child';
4
4
  export type MuscleViewId = string;
5
+ /** What a view depicts. */
6
+ export type MuscleViewKind = 'front' | 'back' | 'pelvis';
5
7
  export type MuscleSchemeMode = 'interactive' | 'display';
6
8
  export type RegionSide = 'left' | 'right' | 'midline';
7
9
  /**
@@ -20,6 +22,19 @@ export interface MuscleFinding {
20
22
  type: FindingType;
21
23
  /** Optional free-text clinical note. PHI — never bundle real notes in stories. */
22
24
  note?: string;
25
+ /**
26
+ * Host presentation overrides, for a practice-configured finding such as a
27
+ * platform diagnosis type. `shape` replaces the type's marker shape (the
28
+ * platform's circle / square / triangle symbol), `color` its tone (a CSS
29
+ * colour or `var(--token)`; the practice's configured colour) and `label`
30
+ * its translated name in the region's accessible name and tooltip (the
31
+ * diagnosis name). A practice has only three symbols, so two of its
32
+ * diagnoses can share a shape; the `label` in the region's accessible name
33
+ * and tooltip is what always tells them apart.
34
+ */
35
+ shape?: MarkerShape;
36
+ color?: string;
37
+ label?: string;
23
38
  }
24
39
  /** Findings keyed by region id. */
25
40
  export type MuscleChart = Record<string, MuscleFinding[]>;
@@ -43,6 +58,29 @@ export type RegionShape = {
43
58
  kind: 'path';
44
59
  d: string;
45
60
  fillRule?: 'evenodd';
61
+ transform?: string;
62
+ };
63
+ /**
64
+ * What a region is made of. Picks its illustration paint from the
65
+ * `--anatomy-*` tokens: red skeletal muscle and ivory tendon for the muscle
66
+ * figures; rose smooth muscle, pink mucosa, peach gland, cream gonad and
67
+ * duct, amber urinary tract, red erectile tissue and the one neutral skin
68
+ * tone for the organs.
69
+ */
70
+ export type AnatomyTissue = 'skeletal' | 'tendon' | 'muscle' | 'mucosa' | 'gland' | 'gonad' | 'duct' | 'urinary' | 'erectile' | 'skin';
71
+ /**
72
+ * Paint for a decorative layer of the art. A tissue fills like an organ;
73
+ * `cavity` / `opening` are lumens, `membrane` / `fascia` / `ligament` thin
74
+ * connective layers, `follicle` / `trigone` small landmarks. The line paints
75
+ * stroke only: `fibre` a muscle's striations, `ink` an anatomical contour,
76
+ * `fine` texture (folds, rugae), `crease` a skin fold, `lumen` a canal, `hidden` a structure behind
77
+ * another (dashed, the illustrators' convention), `context` a body outline,
78
+ * `line` the muscle figure's own stroke (the default).
79
+ */
80
+ export type AnatomyPaint = AnatomyTissue | 'fibre' | 'cavity' | 'opening' | 'membrane' | 'fascia' | 'ligament' | 'follicle' | 'trigone' | 'line' | 'ink' | 'fine' | 'crease' | 'lumen' | 'hidden' | 'context';
81
+ /** A decorative, non-interactive layer of a region or view. */
82
+ export type AnatomyDetail = RegionShape & {
83
+ paint?: AnatomyPaint;
46
84
  };
47
85
  export interface MuscleRegion {
48
86
  /** Stable id, unique within a view — the finding key + `data-region`. */
@@ -50,6 +88,16 @@ export interface MuscleRegion {
50
88
  /** i18n key suffix under `muscleScheme.region.*`. */
51
89
  labelKey: string;
52
90
  shape: RegionShape;
91
+ /**
92
+ * The tissue the region is drawn in: every built-in muscle, joint, breast
93
+ * and pelvic organ has one, and renders as shaded anatomical illustration.
94
+ * A region without one draws as neutral line art.
95
+ */
96
+ tissue?: AnatomyTissue;
97
+ /** Non-interactive anatomical detail (cavities, linings, folds), drawn inside the region. */
98
+ details?: AnatomyDetail[];
99
+ /** Wider transparent pointer target for a thin structure (a duct, the urethra), in the same coordinates. */
100
+ hitShape?: RegionShape;
53
101
  /** Bilateral side, where meaningful (drives "left/right" in the label). */
54
102
  side?: RegionSide;
55
103
  /** Optional grouping (e.g. 'upper-limb'). */
@@ -66,9 +114,40 @@ export interface MuscleView {
66
114
  labelKey: string;
67
115
  /** Which muscle figure this view is drawn on. */
68
116
  figure: FigureVariant;
117
+ /**
118
+ * What the view depicts: the body from the front or the back, or the
119
+ * pelvic organs. Map it to the host's own sub-area (the platform's
120
+ * `body_front` / `body_back`), never parse the view id.
121
+ */
122
+ kind: MuscleViewKind;
69
123
  viewBox: string;
124
+ /** Pelvic diagrams use a wider canvas than full-body figures. */
125
+ presentation?: 'organs';
126
+ /** Non-interactive context drawn BENEATH the regions (ureters, ligaments, landmarks). */
127
+ backdrop?: AnatomyDetail[];
128
+ /** Non-interactive detail drawn ABOVE the regions, e.g. a hidden duct's dashed course. */
129
+ details?: AnatomyDetail[];
130
+ /** Panels behind separate diagrams of one view, in view coordinates. */
131
+ plates?: Array<{
132
+ x: number;
133
+ y: number;
134
+ w: number;
135
+ h: number;
136
+ }>;
137
+ /** Labels for separate diagrams; suffixes under muscleScheme.section.*. */
138
+ sections?: Array<{
139
+ labelKey: string;
140
+ x: number;
141
+ y: number;
142
+ }>;
70
143
  /** Decorative head silhouette drawn behind the regions (`aria-hidden`). */
71
144
  silhouette?: string;
145
+ /**
146
+ * The head as separately painted pieces (face and ears, hair, a hair tie),
147
+ * drawn in order over the body and under the regions. Replaces the
148
+ * one-colour `silhouette` when set.
149
+ */
150
+ head?: HeadPiece[];
72
151
  /** Optional SVG transform applied to the regions group (and the silhouette,
73
152
  * unless `silhouetteTransform` overrides it). */
74
153
  transform?: string;
@@ -79,21 +158,36 @@ export interface MuscleView {
79
158
  * with the body `transform`, not the `silhouetteTransform` — this is what lets
80
159
  * the child carry an enlarged head while its body stays scaled down. */
81
160
  bodyDetail?: string;
82
- /** When true, the view's regions render as transparent click hotspots (tinting
161
+ /** When true, the view's muscle regions render as transparent click hotspots (tinting
83
162
  * only on hover / focus / finding) rather than filled shapes — implied when a
84
163
  * realistic illustration is loaded over the figure. */
85
164
  hotspotZones?: boolean;
86
165
  regions: MuscleRegion[];
87
166
  }
167
+ /** One painted piece of a figure's head. */
168
+ export interface HeadPiece {
169
+ part: 'face' | 'hair' | 'tie';
170
+ d: string;
171
+ }
172
+ /** The art of an organ-only view, as the reproductive-* modules export it. */
173
+ export type OrganArt = Pick<MuscleView, 'viewBox' | 'regions' | 'backdrop' | 'details' | 'plates' | 'sections'>;
88
174
  export declare function regionCentroid(region: MuscleRegion): {
89
175
  x: number;
90
176
  y: number;
91
177
  };
92
178
  export declare const MUSCLE_VIEWS: Record<MuscleViewId, MuscleView>;
93
179
  export declare function getView(id: MuscleViewId): MuscleView | undefined;
94
- /** All views for a figure, in front-then-back order. */
180
+ /** Muscle front/back, followed by the organ-only view for adults. */
95
181
  export declare function viewsForFigure(figure: FigureVariant): MuscleView[];
96
182
  export declare function getRegion(viewId: MuscleViewId, regionId: string): MuscleRegion | undefined;
183
+ /**
184
+ * The view that carries a region for a figure: where a host sends the chart
185
+ * when the clinician opens a saved finding from a list. Falls back to any view
186
+ * when the figure has none (a male region on a female patient's record).
187
+ * A region drawn on both the front and back views (each figure shares 20 ids
188
+ * between them) resolves to the front view.
189
+ */
190
+ export declare function findRegionView(regionId: string, figure?: FigureVariant): MuscleView | undefined;
97
191
  /** Default view shown when no explicit `views` are given. */
98
192
  export declare const DEFAULT_MUSCLE_VIEW: MuscleViewId;
99
193
  /**