@verbb/plugin-kit-web 2.0.3 → 2.0.5

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 (192) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/chunks/{autoloader-DzOTQqe6.js → autoloader-DXK9MVuw.js} +2 -2
  3. package/dist/chunks/{autoloader-DzOTQqe6.js.map → autoloader-DXK9MVuw.js.map} +1 -1
  4. package/dist/chunks/{component-registry-CpZiIDh4.js → component-registry-BOlxFlou.js} +1 -1
  5. package/dist/chunks/{component-registry-CpZiIDh4.js.map → component-registry-BOlxFlou.js.map} +1 -1
  6. package/dist/chunks/decorate-W02hmVTt.js.map +1 -1
  7. package/dist/chunks/{pk-button-Cilu5WAT.js → pk-button-QpDDlRbG.js} +8 -3
  8. package/dist/chunks/pk-button-QpDDlRbG.js.map +1 -0
  9. package/dist/chunks/{pk-calendar-CcV-La-9.js → pk-calendar-TEFA09cI.js} +61 -6
  10. package/dist/chunks/pk-calendar-TEFA09cI.js.map +1 -0
  11. package/dist/chunks/{pk-checkbox-select-ZEJ6WIQn.js → pk-checkbox-select-9lqd9Rwz.js} +2 -1
  12. package/dist/chunks/{pk-checkbox-select-ZEJ6WIQn.js.map → pk-checkbox-select-9lqd9Rwz.js.map} +1 -1
  13. package/dist/chunks/{pk-color-input-D4L0DE5S.js → pk-color-input-CNnmHJJB.js} +10 -2
  14. package/dist/chunks/{pk-color-input-D4L0DE5S.js.map → pk-color-input-CNnmHJJB.js.map} +1 -1
  15. package/dist/chunks/{pk-combobox-Dd1ik0Ko.js → pk-combobox-DtkXaX67.js} +3 -2
  16. package/dist/chunks/pk-combobox-DtkXaX67.js.map +1 -0
  17. package/dist/chunks/{pk-copy-button-DPh5TOF9.js → pk-copy-button-C17MLLYS.js} +2 -1
  18. package/dist/chunks/{pk-copy-button-DPh5TOF9.js.map → pk-copy-button-C17MLLYS.js.map} +1 -1
  19. package/dist/chunks/{pk-date-picker-CkwU4DzD.js → pk-date-picker-x-qkpQWF.js} +28 -7
  20. package/dist/chunks/pk-date-picker-x-qkpQWF.js.map +1 -0
  21. package/dist/chunks/{pk-dropdown-item-BFyjtsL5.js → pk-dropdown-item-P3LLojCI.js} +16 -1
  22. package/dist/chunks/pk-dropdown-item-P3LLojCI.js.map +1 -0
  23. package/dist/chunks/{pk-dropdown-label-DfACId-K.js → pk-dropdown-label-ibVrU6-U.js} +10 -4
  24. package/dist/chunks/pk-dropdown-label-ibVrU6-U.js.map +1 -0
  25. package/dist/chunks/{pk-dropdown-menu-DWlxkDIs.js → pk-dropdown-menu-CsX95MCP.js} +2 -2
  26. package/dist/chunks/pk-dropdown-menu-CsX95MCP.js.map +1 -0
  27. package/dist/chunks/{pk-editable-table-pBkD6izs.js → pk-editable-table-DVqOEz3W.js} +14 -1
  28. package/dist/chunks/pk-editable-table-DVqOEz3W.js.map +1 -0
  29. package/dist/chunks/{pk-option-C3Zqmu3z.js → pk-option-C-cR-jOv.js} +11 -3
  30. package/dist/chunks/pk-option-C-cR-jOv.js.map +1 -0
  31. package/dist/chunks/{pk-popover-XZZdJ4WI.js → pk-popover-CVvwXMld.js} +2 -2
  32. package/dist/chunks/pk-popover-CVvwXMld.js.map +1 -0
  33. package/dist/chunks/{pk-select-B17rV6BR.js → pk-select-odSNU1tN.js} +3 -2
  34. package/dist/chunks/pk-select-odSNU1tN.js.map +1 -0
  35. package/dist/chunks/{pk-tab-CzV7pOdp.js → pk-tab-BdoPiYfT.js} +8 -2
  36. package/dist/chunks/pk-tab-BdoPiYfT.js.map +1 -0
  37. package/dist/chunks/{pk-time-picker-DbW_hMs2.js → pk-time-picker-DtX0LtID.js} +3 -2
  38. package/dist/chunks/{pk-time-picker-DbW_hMs2.js.map → pk-time-picker-DtX0LtID.js.map} +1 -1
  39. package/dist/chunks/{pk-tiptap-editor-umIuEaXh.js → pk-tiptap-editor-CdoutapZ.js} +10 -1
  40. package/dist/chunks/{pk-tiptap-editor-umIuEaXh.js.map → pk-tiptap-editor-CdoutapZ.js.map} +1 -1
  41. package/dist/chunks/pk-tooltip-fcUbVGli.js.map +1 -1
  42. package/dist/chunks/popup-pointer-DMnuZDQl.js +34 -0
  43. package/dist/chunks/popup-pointer-DMnuZDQl.js.map +1 -0
  44. package/dist/chunks/register-BYPBQHrq.js +143 -0
  45. package/dist/chunks/register-BYPBQHrq.js.map +1 -0
  46. package/dist/chunks/{register-components-DNw6EYNo.js → register-components-BG_6_v_T.js} +1 -1
  47. package/dist/chunks/{register-components-DNw6EYNo.js.map → register-components-BG_6_v_T.js.map} +1 -1
  48. package/dist/components/button/pk-button.js +1 -1
  49. package/dist/components/button/pk-button.styles.d.ts.map +1 -1
  50. package/dist/components/button.js +1 -1
  51. package/dist/components/calendar/pk-calendar.d.ts +5 -1
  52. package/dist/components/calendar/pk-calendar.d.ts.map +1 -1
  53. package/dist/components/calendar/pk-calendar.js +1 -1
  54. package/dist/components/calendar.js +1 -1
  55. package/dist/components/checkbox-select/pk-checkbox-select.js +1 -1
  56. package/dist/components/checkbox-select.js +1 -1
  57. package/dist/components/color-input/pk-color-input.d.ts +1 -0
  58. package/dist/components/color-input/pk-color-input.d.ts.map +1 -1
  59. package/dist/components/color-input/pk-color-input.js +1 -1
  60. package/dist/components/color-input.js +1 -1
  61. package/dist/components/combobox/pk-combobox.d.ts.map +1 -1
  62. package/dist/components/combobox/pk-combobox.js +1 -1
  63. package/dist/components/combobox.js +1 -1
  64. package/dist/components/copy-button/pk-copy-button.js +1 -1
  65. package/dist/components/copy-button.js +1 -1
  66. package/dist/components/date-picker/pk-date-picker.d.ts +9 -1
  67. package/dist/components/date-picker/pk-date-picker.d.ts.map +1 -1
  68. package/dist/components/date-picker/pk-date-picker.js +1 -1
  69. package/dist/components/date-picker.js +1 -1
  70. package/dist/components/dropdown-menu/dropdown-menu-size.styles.d.ts.map +1 -1
  71. package/dist/components/dropdown-menu/pk-dropdown-item.js +1 -1
  72. package/dist/components/dropdown-menu/pk-dropdown-item.styles.d.ts.map +1 -1
  73. package/dist/components/dropdown-menu/pk-dropdown-label.js +1 -1
  74. package/dist/components/dropdown-menu/pk-dropdown-label.styles.d.ts.map +1 -1
  75. package/dist/components/dropdown-menu/pk-dropdown-menu.d.ts.map +1 -1
  76. package/dist/components/dropdown-menu/pk-dropdown-menu.js +1 -1
  77. package/dist/components/dropdown-menu.js +3 -3
  78. package/dist/components/editable-table/pk-editable-table.d.ts +1 -1
  79. package/dist/components/editable-table/pk-editable-table.d.ts.map +1 -1
  80. package/dist/components/editable-table/pk-editable-table.js +1 -1
  81. package/dist/components/editable-table.js +1 -1
  82. package/dist/components/popover/pk-popover.d.ts.map +1 -1
  83. package/dist/components/popover/pk-popover.js +1 -1
  84. package/dist/components/popover.js +1 -1
  85. package/dist/components/select/pk-option.js +1 -1
  86. package/dist/components/select/pk-option.styles.d.ts.map +1 -1
  87. package/dist/components/select/pk-select.d.ts.map +1 -1
  88. package/dist/components/select/pk-select.js +1 -1
  89. package/dist/components/select.js +2 -2
  90. package/dist/components/tabs/pk-tab.js +1 -1
  91. package/dist/components/tabs/pk-tab.styles.d.ts.map +1 -1
  92. package/dist/components/tabs.js +1 -1
  93. package/dist/components/time-picker/pk-time-picker.js +1 -1
  94. package/dist/components/time-picker.js +1 -1
  95. package/dist/components/tiptap/pk-tiptap-editor.js +1 -1
  96. package/dist/components/tiptap-editor.js +1 -1
  97. package/dist/components/tooltip/pk-tooltip.d.ts.map +1 -1
  98. package/dist/index.js +21 -21
  99. package/dist/plugin-kit.js +2 -2
  100. package/dist/register-components.js +1 -1
  101. package/dist/register.js +20 -81
  102. package/dist/utils/date.d.ts +9 -0
  103. package/dist/utils/date.d.ts.map +1 -1
  104. package/dist/utils/popup-pointer.d.ts +3 -0
  105. package/dist/utils/popup-pointer.d.ts.map +1 -1
  106. package/dist-loader/chunks/{pk-button-BlSs4e6V.js → pk-button-CK5FZiwP.js} +9 -5
  107. package/dist-loader/chunks/{pk-calendar-RXCDDhLI.js → pk-calendar-CoJWxcxi.js} +63 -8
  108. package/dist-loader/chunks/{pk-checkbox-hJCj8In8.js → pk-checkbox-CoDX2G3J.js} +2 -2
  109. package/dist-loader/chunks/{pk-color-input-BfNtLznP.js → pk-color-input-B73zaGYj.js} +11 -3
  110. package/dist-loader/chunks/{pk-combobox-1PJBcIrV.js → pk-combobox-fXGaY4L0.js} +11 -10
  111. package/dist-loader/chunks/{pk-date-picker-D4vCtbw-.js → pk-date-picker-CE4TlRRZ.js} +36 -15
  112. package/dist-loader/chunks/{pk-dialog-D1RZjwQN.js → pk-dialog-CP1YT85H.js} +4 -4
  113. package/dist-loader/chunks/{pk-dropdown-item-BJIhQ0Mw.js → pk-dropdown-item-DkZRcPJ5.js} +20 -5
  114. package/dist-loader/chunks/{pk-dropdown-menu-I1s3TBiA.js → pk-dropdown-menu-CajQAobW.js} +6 -6
  115. package/dist-loader/chunks/{pk-field-BnKPT_Kk.js → pk-field-CUySYljn.js} +24 -12
  116. package/dist-loader/chunks/{pk-input-Oarjv7Vc.js → pk-input-CXE7_rTQ.js} +6 -6
  117. package/dist-loader/chunks/{pk-lightswitch-D-UrNM3y.js → pk-lightswitch-BHEOy7aK.js} +4 -4
  118. package/dist-loader/chunks/{pk-option-CCZebfif.js → pk-option-vh8UvSAI.js} +12 -4
  119. package/dist-loader/chunks/{pk-popup-BNRyCsVX.js → pk-popup-BYFbKaHH.js} +2 -2
  120. package/dist-loader/chunks/{pk-select-BcbtjIoP.js → pk-select-CbmPJCx8.js} +11 -10
  121. package/dist-loader/chunks/{pk-textarea-CC6WXpIu.js → pk-textarea-Ch8JpP83.js} +4 -4
  122. package/dist-loader/chunks/{pk-time-picker-BtGXo-KJ.js → pk-time-picker-DZljwJn9.js} +4 -3
  123. package/dist-loader/chunks/{pk-tooltip-JJRxVXYD.js → pk-tooltip-DHiCn33o.js} +3 -3
  124. package/dist-loader/chunks/popup-pointer-BTS3Y6LE.js +32 -0
  125. package/dist-loader/chunks/{render-DApFfV9S.js → render-BCU9WDSk.js} +1 -1
  126. package/dist-loader/chunks/{icons-B1i-oRoD.js → svg-BCGsRUz7.js} +34 -1
  127. package/dist-loader/chunks/{tiptap-Db7MTUH1.js → tiptap-_LAjdgeV.js} +1 -1
  128. package/dist-loader/chunks/{tiptap.styles-DAH_90Fi.js → tiptap.styles-CDjt6Iz4.js} +1 -1
  129. package/dist-loader/components/button/button.js +1 -1
  130. package/dist-loader/components/button-group/button-group-text.js +1 -1
  131. package/dist-loader/components/calendar/calendar.js +1 -1
  132. package/dist-loader/components/checkbox/checkbox.js +1 -1
  133. package/dist-loader/components/checkbox-select/checkbox-select.js +1 -0
  134. package/dist-loader/components/code-editor/code-editor.js +7 -7
  135. package/dist-loader/components/color-input/color-input.js +1 -1
  136. package/dist-loader/components/combobox/combobox.js +1 -1
  137. package/dist-loader/components/copy-button/copy-button.js +3 -2
  138. package/dist-loader/components/date-picker/date-picker.js +1 -1
  139. package/dist-loader/components/dialog/dialog.js +1 -1
  140. package/dist-loader/components/dropdown-menu/dropdown-item.js +1 -1
  141. package/dist-loader/components/dropdown-menu/dropdown-label.js +9 -3
  142. package/dist-loader/components/dropdown-menu/dropdown-menu.js +1 -1
  143. package/dist-loader/components/editable-table/editable-table.js +16 -3
  144. package/dist-loader/components/field/field.js +1 -1
  145. package/dist-loader/components/icon/icon.js +43 -2
  146. package/dist-loader/components/input/input.js +1 -1
  147. package/dist-loader/components/input-group/input-group.js +1 -1
  148. package/dist-loader/components/lightswitch/lightswitch.js +1 -1
  149. package/dist-loader/components/popover/popover.js +6 -6
  150. package/dist-loader/components/popup/popup.js +1 -1
  151. package/dist-loader/components/radio-group/radio-group.js +3 -3
  152. package/dist-loader/components/select/option.js +1 -1
  153. package/dist-loader/components/select/select.js +1 -1
  154. package/dist-loader/components/tabs/tab.js +7 -1
  155. package/dist-loader/components/textarea/textarea.js +1 -1
  156. package/dist-loader/components/time-picker/time-picker.js +1 -1
  157. package/dist-loader/components/tiptap/tiptap-content.js +2 -2
  158. package/dist-loader/components/tiptap/tiptap-editor.js +13 -5
  159. package/dist-loader/components/tiptap/tiptap-input.js +3 -3
  160. package/dist-loader/components/toggle/toggle.js +1 -1
  161. package/dist-loader/components/tooltip/tooltip.js +1 -1
  162. package/package.json +8 -7
  163. package/dist/chunks/pk-button-Cilu5WAT.js.map +0 -1
  164. package/dist/chunks/pk-calendar-CcV-La-9.js.map +0 -1
  165. package/dist/chunks/pk-combobox-Dd1ik0Ko.js.map +0 -1
  166. package/dist/chunks/pk-date-picker-CkwU4DzD.js.map +0 -1
  167. package/dist/chunks/pk-dropdown-item-BFyjtsL5.js.map +0 -1
  168. package/dist/chunks/pk-dropdown-label-DfACId-K.js.map +0 -1
  169. package/dist/chunks/pk-dropdown-menu-DWlxkDIs.js.map +0 -1
  170. package/dist/chunks/pk-editable-table-pBkD6izs.js.map +0 -1
  171. package/dist/chunks/pk-option-C3Zqmu3z.js.map +0 -1
  172. package/dist/chunks/pk-popover-XZZdJ4WI.js.map +0 -1
  173. package/dist/chunks/pk-select-B17rV6BR.js.map +0 -1
  174. package/dist/chunks/pk-tab-CzV7pOdp.js.map +0 -1
  175. package/dist/chunks/popup-pointer-C8lypj8V.js +0 -21
  176. package/dist/chunks/popup-pointer-C8lypj8V.js.map +0 -1
  177. package/dist/register.js.map +0 -1
  178. package/dist-loader/chunks/popup-pointer-BC4n_sNb.js +0 -19
  179. package/dist-loader/chunks/svg-Boar0Kf1.js +0 -34
  180. /package/dist-loader/chunks/{animate-with-class-DT0jwaR_.js → animate-with-class-B2hHgK5M.js} +0 -0
  181. /package/dist-loader/chunks/{button-group-item.styles-Dwakbyx5.js → button-group-item.styles-BNc-ksl1.js} +0 -0
  182. /package/dist-loader/chunks/{codemirror-CSgOT0QM.js → codemirror-CHXb-wYU.js} +0 -0
  183. /package/dist-loader/chunks/{field-labels-D3lKQ2nq.js → field-labels-Vo3wHq49.js} +0 -0
  184. /package/dist-loader/chunks/{floating-ui-87vslRWW.js → floating-ui-BTBNFWAR.js} +0 -0
  185. /package/dist-loader/chunks/{has-slot-BGJeJdHr.js → has-slot-BZDcCpf9.js} +0 -0
  186. /package/dist-loader/chunks/{mirror-validator-C5XrXPaq.js → mirror-validator-DEz3BsbN.js} +0 -0
  187. /package/dist-loader/chunks/{overlay-lifecycle-C3tSQ3UR.js → overlay-lifecycle-BG4QMRLw.js} +0 -0
  188. /package/dist-loader/chunks/{pk-clear-BMZUzwDt.js → pk-clear-BRS8vkV-.js} +0 -0
  189. /package/dist-loader/chunks/{popup-content-animation.styles-S6CK-zPp.js → popup-content-animation.styles-C9ffC35f.js} +0 -0
  190. /package/dist-loader/chunks/{popup-placement-animation-WlEXnS85.js → popup-placement-animation-BPjq650B.js} +0 -0
  191. /package/dist-loader/chunks/{required-validator-0XwZtX9k.js → required-validator-DXqqPVeW.js} +0 -0
  192. /package/dist-loader/chunks/{sync-listbox-separators-Bcja51HC.js → sync-listbox-separators-CT3oGzTf.js} +0 -0
@@ -1,17 +1,18 @@
1
1
  import { d as registerDismissible, f as unregisterDismissible, n as uniqueId, u as isTopDismissible } from "./pk-a11y-Cx5RZvhu.js";
2
2
  import { a as o, c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as t } from "./lit-Dnn7gEi2.js";
3
3
  import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, s as iconStyles } from "./pk-base-BlxAYXJD.js";
4
- import { f as calendar, q as xmark } from "./icons-B1i-oRoD.js";
5
- import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
6
- import { t as RequiredValidator } from "./required-validator-0XwZtX9k.js";
7
- import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
8
- import { t as PkClearEvent } from "./pk-clear-BMZUzwDt.js";
9
- import { n as readLegacyInstructions } from "./field-labels-D3lKQ2nq.js";
10
- import { n as renderIconHtml } from "./render-DApFfV9S.js";
11
- import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
12
- import { i as waitForPopupReposition } from "./popup-placement-animation-WlEXnS85.js";
13
- import { n as isPointerInsideOverlay } from "./popup-pointer-BC4n_sNb.js";
14
- import { a as parseRange, i as parseIsoDate, n as coerceToDate, r as formatIsoDate } from "./pk-calendar-RXCDDhLI.js";
4
+ import { J as xmark, p as calendar } from "./svg-BCGsRUz7.js";
5
+ import { t as MirrorValidator } from "./mirror-validator-DEz3BsbN.js";
6
+ import { t as RequiredValidator } from "./required-validator-DXqqPVeW.js";
7
+ import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
8
+ import { t as PkClearEvent } from "./pk-clear-BRS8vkV-.js";
9
+ import { n as readLegacyInstructions } from "./field-labels-Vo3wHq49.js";
10
+ import { n as renderIconHtml } from "./render-BCU9WDSk.js";
11
+ import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
12
+ import { i as waitForPopupReposition } from "./popup-placement-animation-BPjq650B.js";
13
+ import "./pk-popup-BYFbKaHH.js";
14
+ import { n as isPointerInsideOverlay } from "./popup-pointer-BTS3Y6LE.js";
15
+ import { a as parseIsoDate, i as parseDateList, n as coerceToDate, o as parseRange, r as formatIsoDate } from "./pk-calendar-CoJWxcxi.js";
15
16
  //#region src/utils/host-date.ts
16
17
  function getCraft() {
17
18
  return globalThis.Craft;
@@ -371,15 +372,26 @@ var PkDatePicker = class PkDatePicker extends PkFormAssociatedElement {
371
372
  this.setState("open", this.open);
372
373
  this.controlElement?.toggleAttribute("data-popup-open", this.open);
373
374
  }
374
- if (changed.has("mode")) this.setState("range", this.mode === "range");
375
+ if (changed.has("mode")) {
376
+ this.setState("range", this.mode === "range");
377
+ this.setState("multiple", this.mode === "multiple");
378
+ }
375
379
  super.willUpdate(changed);
376
380
  }
377
381
  updateDaySlots() {
378
382
  const names = [...this.children].map((child) => child.getAttribute("slot")).filter((name) => Boolean(name?.startsWith("day-")));
379
383
  if (names.join(",") !== this.daySlotNames.join(",")) this.daySlotNames = names;
380
384
  }
385
+ /**
386
+ * `value` accepts a Date at the boundary (Formie/v1) but is normalized to an ISO
387
+ * string in willUpdate. Coerce defensively so string-typed consumers (form value,
388
+ * parseRange) never receive a Date if they read before the next update tick.
389
+ */
390
+ get valueString() {
391
+ return this.value instanceof Date ? formatIsoDate(coerceToDate(this.value)) : this.value;
392
+ }
381
393
  syncFormValue() {
382
- this.setValue(this.value || "");
394
+ this.setValue(this.valueString || "");
383
395
  }
384
396
  resetToDefaultValue() {
385
397
  this.value = this.defaultValue;
@@ -392,8 +404,13 @@ var PkDatePicker = class PkDatePicker extends PkFormAssociatedElement {
392
404
  }
393
405
  get displayText() {
394
406
  if (!this.value) return this.placeholder;
407
+ if (this.mode === "multiple") {
408
+ const count = parseDateList(this.valueString).length;
409
+ if (count === 0) return this.placeholder;
410
+ return `${count} date${count === 1 ? "" : "s"} selected`;
411
+ }
395
412
  if (this.mode === "range") {
396
- const range = parseRange(this.value);
413
+ const range = parseRange(this.valueString);
397
414
  if (range.from && range.to) return `${formatHostDate(range.from, this.resolvedLocale)} – ${formatHostDate(range.to, this.resolvedLocale)}`;
398
415
  if (range.from) return formatHostDate(range.from, this.resolvedLocale);
399
416
  return this.placeholder;
@@ -405,7 +422,11 @@ var PkDatePicker = class PkDatePicker extends PkFormAssociatedElement {
405
422
  return this.mode === "single" ? parseIsoDate(this.value) : null;
406
423
  }
407
424
  get valueAsRange() {
408
- return parseRange(this.value);
425
+ return parseRange(this.valueString);
426
+ }
427
+ /** Sorted, deduped selection for `multiple` mode (empty otherwise). */
428
+ get valueAsDates() {
429
+ return this.mode === "multiple" ? parseDateList(this.valueString) : [];
409
430
  }
410
431
  async show() {
411
432
  await this.openPanel();
@@ -1,10 +1,10 @@
1
1
  import { c as unlockBodyScrolling, d as registerDismissible, f as unregisterDismissible, o as lockBodyScrolling, u as isTopDismissible } from "./pk-a11y-Cx5RZvhu.js";
2
2
  import { a as o, c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as t } from "./lit-Dnn7gEi2.js";
3
3
  import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
4
- import { q as xmark } from "./icons-B1i-oRoD.js";
5
- import { n as renderIconHtml } from "./render-DApFfV9S.js";
6
- import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
7
- import { t as animateWithClass } from "./animate-with-class-DT0jwaR_.js";
4
+ import { J as xmark } from "./svg-BCGsRUz7.js";
5
+ import { n as renderIconHtml } from "./render-BCU9WDSk.js";
6
+ import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
7
+ import { t as animateWithClass } from "./animate-with-class-B2hHgK5M.js";
8
8
  //#region src/utils/craft-host-modal.ts
9
9
  /**
10
10
  * Craft CP Garnish modals (element selector, asset picker, …) live in normal
@@ -1,10 +1,10 @@
1
1
  import { a as o, c as r, f as A, l as n, m as i, p as b, s as e, u as t } from "./lit-Dnn7gEi2.js";
2
2
  import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
3
- import { g as chevronRight, p as check } from "./icons-B1i-oRoD.js";
4
- import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
5
- import { n as renderIconHtml } from "./render-DApFfV9S.js";
6
- import { i as waitForPopupReposition, r as syncPopupPlacementAnimation } from "./popup-placement-animation-WlEXnS85.js";
7
- import { t as popupContentAnimationStyles } from "./popup-content-animation.styles-S6CK-zPp.js";
3
+ import { _ as chevronRight, m as check } from "./svg-BCGsRUz7.js";
4
+ import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
5
+ import { n as renderIconHtml } from "./render-BCU9WDSk.js";
6
+ import { i as waitForPopupReposition, r as syncPopupPlacementAnimation } from "./popup-placement-animation-BPjq650B.js";
7
+ import { t as popupContentAnimationStyles } from "./popup-content-animation.styles-C9ffC35f.js";
8
8
  //#region src/components/dropdown-menu/dropdown-menu-size.styles.ts
9
9
  var dropdownMenuSizeTokens = {
10
10
  default: i`
@@ -12,6 +12,7 @@ var dropdownMenuSizeTokens = {
12
12
  --pk-dropdown-item-padding-inline: 12px;
13
13
  --pk-dropdown-item-gap: 0.625rem;
14
14
  --pk-dropdown-item-font-size: var(--pk-font-size-base);
15
+ --pk-dropdown-item-line-height: 1.5;
15
16
  --pk-dropdown-item-icon-size: 12px;
16
17
  --pk-dropdown-label-padding-inline: 12px;
17
18
  --pk-dropdown-label-font-size: 13px;
@@ -22,6 +23,7 @@ var dropdownMenuSizeTokens = {
22
23
  --pk-dropdown-item-padding-inline: 8px;
23
24
  --pk-dropdown-item-gap: 0.375rem;
24
25
  --pk-dropdown-item-font-size: 12px;
26
+ --pk-dropdown-item-line-height: 1.5;
25
27
  --pk-dropdown-item-icon-size: 10px;
26
28
  --pk-dropdown-label-padding-inline: 8px;
27
29
  --pk-dropdown-label-font-size: 11px;
@@ -32,6 +34,7 @@ var dropdownMenuSizeTokens = {
32
34
  --pk-dropdown-item-padding-inline: 10px;
33
35
  --pk-dropdown-item-gap: 0.4375rem;
34
36
  --pk-dropdown-item-font-size: 13px;
37
+ --pk-dropdown-item-line-height: 1.5;
35
38
  --pk-dropdown-item-icon-size: 12px;
36
39
  --pk-dropdown-label-padding-inline: 10px;
37
40
  --pk-dropdown-label-font-size: 11px;
@@ -42,6 +45,7 @@ var dropdownMenuSizeTokens = {
42
45
  --pk-dropdown-item-padding-inline: 14px;
43
46
  --pk-dropdown-item-gap: 0.75rem;
44
47
  --pk-dropdown-item-font-size: 16px;
48
+ --pk-dropdown-item-line-height: 1.5;
45
49
  --pk-dropdown-item-icon-size: 14px;
46
50
  --pk-dropdown-label-padding-inline: 14px;
47
51
  --pk-dropdown-label-font-size: 14px;
@@ -52,6 +56,7 @@ var dropdownMenuSizeTokens = {
52
56
  --pk-dropdown-item-padding-inline: 16px;
53
57
  --pk-dropdown-item-gap: 0.75rem;
54
58
  --pk-dropdown-item-font-size: 18px;
59
+ --pk-dropdown-item-line-height: 1.5;
55
60
  --pk-dropdown-item-icon-size: 16px;
56
61
  --pk-dropdown-label-padding-inline: 16px;
57
62
  --pk-dropdown-label-font-size: 15px;
@@ -129,6 +134,14 @@ var pkDropdownItemStyles = [
129
134
  :host {
130
135
  display: block;
131
136
  position: relative;
137
+ /*
138
+ * Slotted label text inherits from this host (light DOM), not from
139
+ * shadow .item — pin size-token metrics so Craft CP / Tailwind /
140
+ * bare hosts all get the same item rhythm.
141
+ */
142
+ font-size: var(--pk-dropdown-item-font-size, var(--pk-font-size-base));
143
+ line-height: var(--pk-dropdown-item-line-height, 1.5);
144
+ color: var(--text-color, var(--pk-color-gray-700));
132
145
  }
133
146
 
134
147
  .item {
@@ -143,6 +156,8 @@ var pkDropdownItemStyles = [
143
156
  color: inherit;
144
157
  font: inherit;
145
158
  font-size: var(--pk-dropdown-item-font-size, var(--pk-font-size-base));
159
+ /* Explicit — do not let font:inherit re-leak page line-height. */
160
+ line-height: var(--pk-dropdown-item-line-height, 1.5);
146
161
  font-weight: normal;
147
162
  text-align: left;
148
163
  white-space: nowrap;
@@ -1,12 +1,12 @@
1
1
  import { d as registerDismissible, f as unregisterDismissible, r as activeElements, u as isTopDismissible } from "./pk-a11y-Cx5RZvhu.js";
2
2
  import { l as n, m as i, p as b, s as e, u as t } from "./lit-Dnn7gEi2.js";
3
3
  import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
4
- import { r as buttonGroupCornerRoleStyles } from "./button-group-item.styles-Dwakbyx5.js";
5
- import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
6
- import { t as animateWithClass } from "./animate-with-class-DT0jwaR_.js";
7
- import { i as waitForPopupReposition } from "./popup-placement-animation-WlEXnS85.js";
8
- import { n as dropdownMenuHostSizeStyles, r as dropdownMenuPanelSizeStyles, t as PkDropdownItem } from "./pk-dropdown-item-BJIhQ0Mw.js";
9
- import { n as resolveElementById } from "./pk-popup-BNRyCsVX.js";
4
+ import { r as buttonGroupCornerRoleStyles } from "./button-group-item.styles-BNc-ksl1.js";
5
+ import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
6
+ import { t as animateWithClass } from "./animate-with-class-B2hHgK5M.js";
7
+ import { i as waitForPopupReposition } from "./popup-placement-animation-BPjq650B.js";
8
+ import { n as dropdownMenuHostSizeStyles, r as dropdownMenuPanelSizeStyles, t as PkDropdownItem } from "./pk-dropdown-item-DkZRcPJ5.js";
9
+ import { n as resolveElementById } from "./pk-popup-BYFbKaHH.js";
10
10
  //#region src/components/dropdown-menu/pk-dropdown-menu.styles.ts
11
11
  /**
12
12
  * Dropdown panel motion — `pk-dropdown` scale+fade, with transform
@@ -2,9 +2,9 @@ import { t as __exportAll } from "./rolldown-runtime-CzwdidQP.js";
2
2
  import { n as uniqueId } from "./pk-a11y-Cx5RZvhu.js";
3
3
  import { f as A, i as e, l as n, m as i, o, p as b, s as e$1, u as t } from "./lit-Dnn7gEi2.js";
4
4
  import { c as __decorate, l as PkElement, n as formControlStyles, t as inlineMarkdownStyles } from "./pk-base-BlxAYXJD.js";
5
- import { G as triangleExclamation, M as lightbulb, l as asterisk } from "./icons-B1i-oRoD.js";
6
- import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
7
- import { t as createIconElement } from "./render-DApFfV9S.js";
5
+ import { K as triangleExclamation, N as lightbulb, u as asterisk } from "./svg-BCGsRUz7.js";
6
+ import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
7
+ import { t as createIconElement } from "./render-BCU9WDSk.js";
8
8
  //#region src/icons/translation-icon.ts
9
9
  var TRANSLATION_ICON_PATH = "M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l208 0 32 0 16 0 256 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L320 64l-16 0-32 0L64 64zm512 48c8.8 0 16 7.2 16 16l0 256c0 8.8-7.2 16-16 16l-256 0 0-288 256 0zM178.3 175.9l64 144c4.5 10.1-.1 21.9-10.2 26.4s-21.9-.1-26.4-10.2L196.8 316l-73.6 0-8.9 20.1c-4.5 10.1-16.3 14.6-26.4 10.2s-14.6-16.3-10.2-26.4l64-144c3.2-7.2 10.4-11.9 18.3-11.9s15.1 4.7 18.3 11.9zM179 276l-19-42.8L141 276l38 0zM456 164c-11 0-20 9-20 20l0 4-52 0c-11 0-20 9-20 20s9 20 20 20l72 0 35.1 0c-7.3 16.7-17.4 31.9-29.8 45l-.5-.5-14.6-14.6c-7.8-7.8-20.5-7.8-28.3 0s-7.8 20.5 0 28.3L430 298.3c-5.9 3.6-12.1 6.9-18.5 9.8l-3.6 1.6c-10.1 4.5-14.6 16.3-10.2 26.4s16.3 14.6 26.4 10.2l3.6-1.6c12-5.3 23.4-11.8 34-19.4c4.3 3 8.6 5.8 13.1 8.5l18.9 11.3c9.5 5.7 21.8 2.6 27.4-6.9s2.6-21.8-6.9-27.4l-18.9-11.3c-.9-.5-1.8-1.1-2.7-1.6c17.2-18.8 30.7-40.9 39.6-65.4L534 228l2 0c11 0 20-9 20-20s-9-20-20-20l-16 0-44 0 0-4c0-11-9-20-20-20z";
10
10
  var createTranslationIconElement = () => {
@@ -5408,20 +5408,32 @@ MarkdownIt.prototype.renderInline = function(src, env) {
5408
5408
  return this.renderer.render(this.parseInline(src, env), this.options, env);
5409
5409
  };
5410
5410
  //#endregion
5411
- //#region ../plugin-kit-core/dist/plugin-kit-core.es.js
5411
+ //#region ../plugin-kit-core/dist/utils/markdown.js
5412
5412
  /**
5413
- * Initialize markdown-it instance with secure defaults and common options
5413
+ * Lazily construct the markdown-it instance.
5414
+ *
5415
+ * Instantiating markdown-it at module scope is a live side effect: bundlers must
5416
+ * retain the ~2.3 MB dependency in any consumer that touches this module's graph,
5417
+ * even one that only imported a sibling util (e.g. `generateHandle`). Deferring the
5418
+ * `new MarkdownIt()` to first render keeps markdown-it out of the graph unless a
5419
+ * `render*` helper is actually called.
5420
+ *
5421
+ * markdown-it is configured with secure defaults:
5414
5422
  * - HTML is disabled for security
5415
5423
  * - Links are auto-detected
5416
5424
  * - Typography features like smart quotes are enabled
5417
5425
  * - Line breaks are converted to <br> tags
5418
5426
  */
5419
- var md = new MarkdownIt({
5420
- html: false,
5421
- linkify: true,
5422
- typographer: true,
5423
- breaks: true
5424
- });
5427
+ function createMarkdownIt() {
5428
+ return new MarkdownIt({
5429
+ html: false,
5430
+ linkify: true,
5431
+ typographer: true,
5432
+ breaks: true
5433
+ });
5434
+ }
5435
+ var mdInstance;
5436
+ var getMd = () => mdInstance ??= createMarkdownIt();
5425
5437
  /**
5426
5438
  * Renders markdown content as inline HTML only
5427
5439
  * Excludes block-level elements, only processes inline markdown syntax
@@ -5431,7 +5443,7 @@ var md = new MarkdownIt({
5431
5443
  */
5432
5444
  var renderInlineMarkdown = (content) => {
5433
5445
  if (!content) return "";
5434
- return md.renderInline(content);
5446
+ return getMd().renderInline(content);
5435
5447
  };
5436
5448
  //#endregion
5437
5449
  //#region src/utils/inline-markdown.ts
@@ -1,12 +1,12 @@
1
1
  import { n as uniqueId } from "./pk-a11y-Cx5RZvhu.js";
2
2
  import { c as r, f as A, l as n, m as i, n as l, p as b, r as o, s as e, u as t } from "./lit-Dnn7gEi2.js";
3
3
  import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, o as syncStandaloneControlAria } from "./pk-base-BlxAYXJD.js";
4
- import { n as buttonGroupCornerRadiusStyles, r as buttonGroupCornerRoleStyles, t as buttonGroupBorderJoinStyles } from "./button-group-item.styles-Dwakbyx5.js";
5
- import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
6
- import { t as RequiredValidator } from "./required-validator-0XwZtX9k.js";
7
- import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
8
- import { t as PkClearEvent } from "./pk-clear-BMZUzwDt.js";
9
- import { n as readLegacyInstructions, t as hasInstructionContent } from "./field-labels-D3lKQ2nq.js";
4
+ import { n as buttonGroupCornerRadiusStyles, r as buttonGroupCornerRoleStyles, t as buttonGroupBorderJoinStyles } from "./button-group-item.styles-BNc-ksl1.js";
5
+ import { t as MirrorValidator } from "./mirror-validator-DEz3BsbN.js";
6
+ import { t as RequiredValidator } from "./required-validator-DXqqPVeW.js";
7
+ import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
8
+ import { t as PkClearEvent } from "./pk-clear-BRS8vkV-.js";
9
+ import { n as readLegacyInstructions, t as hasInstructionContent } from "./field-labels-Vo3wHq49.js";
10
10
  //#region src/internal/implicit-form-submit.ts
11
11
  /**
12
12
  * Restore HTML “implicit submission” for FACE controls with a shadow native input.
@@ -1,9 +1,9 @@
1
1
  import { f as A, l as n, m as i, p as b, s as e, u as t } from "./lit-Dnn7gEi2.js";
2
2
  import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles } from "./pk-base-BlxAYXJD.js";
3
- import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
4
- import { t as RequiredValidator } from "./required-validator-0XwZtX9k.js";
5
- import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
6
- import { n as readLegacyInstructions, t as hasInstructionContent } from "./field-labels-D3lKQ2nq.js";
3
+ import { t as MirrorValidator } from "./mirror-validator-DEz3BsbN.js";
4
+ import { t as RequiredValidator } from "./required-validator-DXqqPVeW.js";
5
+ import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
6
+ import { n as readLegacyInstructions, t as hasInstructionContent } from "./field-labels-Vo3wHq49.js";
7
7
  //#region src/components/lightswitch/pk-lightswitch.styles.ts
8
8
  var pkLightswitchStyles = i`
9
9
  @layer pk-component {
@@ -1,7 +1,7 @@
1
1
  import { a as o, f as A, l as n, m as i, p as b, u as t } from "./lit-Dnn7gEi2.js";
2
2
  import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
3
- import { p as check } from "./icons-B1i-oRoD.js";
4
- import { n as renderIconHtml } from "./render-DApFfV9S.js";
3
+ import { m as check } from "./svg-BCGsRUz7.js";
4
+ import { n as renderIconHtml } from "./render-BCU9WDSk.js";
5
5
  //#region src/utils/highlight-text.ts
6
6
  /** Split label text into matched/unmatched segments for typeahead highlighting. */
7
7
  function splitHighlightParts(text, search) {
@@ -43,6 +43,15 @@ var pkOptionStyles = i`
43
43
  @layer pk-component {
44
44
  :host {
45
45
  display: block;
46
+ /*
47
+ * Slotted option labels inherit type metrics from this host (same
48
+ * Craft-vs-Tailwind trap as pk-dropdown-item). Size tokens arrive via
49
+ * pk-select ::slotted(pk-option) custom properties.
50
+ */
51
+ font-family: var(--pk-font-family);
52
+ font-size: var(--pk-select-item-font-size, var(--pk-font-size-base));
53
+ line-height: var(--pk-select-item-line-height, 1.4);
54
+ color: var(--pk-color-gray-700);
46
55
  }
47
56
 
48
57
  .option {
@@ -58,8 +67,7 @@ var pkOptionStyles = i`
58
67
  padding-inline-end: var(--pk-select-item-padding-inline-end, 2rem);
59
68
  border: var(--pk-select-trigger-border-width, 1px) solid transparent;
60
69
  background: transparent;
61
- /* Craft CP body text (~gray-700), not gray-900. */
62
- color: var(--pk-color-gray-700);
70
+ color: inherit;
63
71
  font: inherit;
64
72
  font-family: var(--pk-font-family);
65
73
  font-size: var(--pk-select-item-font-size, var(--pk-font-size-base));
@@ -1,8 +1,8 @@
1
1
  import { t as SUPPORTS_POPOVER } from "./supports-popover-COjbi2RP.js";
2
2
  import { f as A, i as e$1, l as n, m as i$1, p as b, s as e$2, u as t } from "./lit-Dnn7gEi2.js";
3
3
  import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
4
- import { t as computePopupTransformOrigin } from "./popup-placement-animation-WlEXnS85.js";
5
- import { a as offset, c as size, i as flip, l as getOverflowAncestors, n as autoUpdate, o as platform, r as computePosition, s as shift, t as arrow, u as isContainingBlock } from "./floating-ui-87vslRWW.js";
4
+ import { t as computePopupTransformOrigin } from "./popup-placement-animation-BPjq650B.js";
5
+ import { a as offset, c as size, i as flip, l as getOverflowAncestors, n as autoUpdate, o as platform, r as computePosition, s as shift, t as arrow, u as isContainingBlock } from "./floating-ui-BTBNFWAR.js";
6
6
  //#region src/internal/resolve-element-by-id.ts
7
7
  /** Resolve an element id from the same root as the host (shadow or document), then the document. */
8
8
  function resolveElementById(host, id) {
@@ -1,16 +1,17 @@
1
1
  import { d as registerDismissible, f as unregisterDismissible, n as uniqueId, s as scrollIntoView, u as isTopDismissible } from "./pk-a11y-Cx5RZvhu.js";
2
2
  import { a as o, c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as t } from "./lit-Dnn7gEi2.js";
3
3
  import { c as __decorate, i as PkFormAssociatedElement, s as iconStyles } from "./pk-base-BlxAYXJD.js";
4
- import { m as chevronDown } from "./icons-B1i-oRoD.js";
5
- import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
6
- import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
7
- import { t as PkClearEvent } from "./pk-clear-BMZUzwDt.js";
8
- import { n as renderIconHtml } from "./render-DApFfV9S.js";
9
- import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
10
- import { i as waitForPopupReposition, r as syncPopupPlacementAnimation } from "./popup-placement-animation-WlEXnS85.js";
11
- import { t as popupContentAnimationStyles } from "./popup-content-animation.styles-S6CK-zPp.js";
12
- import { n as isPointerInsideOverlay, t as isEventInsideOverlay } from "./popup-pointer-BC4n_sNb.js";
13
- import { a as isListboxTypeToSelectKey, i as handleListboxKeyDown, n as LISTBOX_NAVIGATION_KEYS, r as createTypeToSelectHandler, t as syncListboxSeparators } from "./sync-listbox-separators-Bcja51HC.js";
4
+ import { h as chevronDown } from "./svg-BCGsRUz7.js";
5
+ import { t as MirrorValidator } from "./mirror-validator-DEz3BsbN.js";
6
+ import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
7
+ import { t as PkClearEvent } from "./pk-clear-BRS8vkV-.js";
8
+ import { n as renderIconHtml } from "./render-BCU9WDSk.js";
9
+ import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
10
+ import { i as waitForPopupReposition, r as syncPopupPlacementAnimation } from "./popup-placement-animation-BPjq650B.js";
11
+ import { t as popupContentAnimationStyles } from "./popup-content-animation.styles-C9ffC35f.js";
12
+ import "./pk-popup-BYFbKaHH.js";
13
+ import { n as isPointerInsideOverlay, t as isEventInsideOverlay } from "./popup-pointer-BTS3Y6LE.js";
14
+ import { a as isListboxTypeToSelectKey, i as handleListboxKeyDown, n as LISTBOX_NAVIGATION_KEYS, r as createTypeToSelectHandler, t as syncListboxSeparators } from "./sync-listbox-separators-CT3oGzTf.js";
14
15
  //#region src/components/select/pk-select.styles.ts
15
16
  var pkSelectStyles = [popupContentAnimationStyles, i`
16
17
  ${iconStyles}
@@ -1,10 +1,10 @@
1
1
  import { n as uniqueId } from "./pk-a11y-Cx5RZvhu.js";
2
2
  import { c as r, f as A, l as n, m as i, n as l, p as b, r as o, s as e, u as t } from "./lit-Dnn7gEi2.js";
3
3
  import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles, o as syncStandaloneControlAria } from "./pk-base-BlxAYXJD.js";
4
- import { t as MirrorValidator } from "./mirror-validator-C5XrXPaq.js";
5
- import { t as RequiredValidator } from "./required-validator-0XwZtX9k.js";
6
- import { t as HasSlotController } from "./has-slot-BGJeJdHr.js";
7
- import { n as readLegacyInstructions, t as hasInstructionContent } from "./field-labels-D3lKQ2nq.js";
4
+ import { t as MirrorValidator } from "./mirror-validator-DEz3BsbN.js";
5
+ import { t as RequiredValidator } from "./required-validator-DXqqPVeW.js";
6
+ import { t as HasSlotController } from "./has-slot-BZDcCpf9.js";
7
+ import { n as readLegacyInstructions, t as hasInstructionContent } from "./field-labels-Vo3wHq49.js";
8
8
  //#region src/components/textarea/pk-textarea.styles.ts
9
9
  var pkTextareaStyles = i`
10
10
  @layer pk-component {
@@ -1,8 +1,9 @@
1
1
  import { m as i, u as t } from "./lit-Dnn7gEi2.js";
2
2
  import { c as __decorate } from "./pk-base-BlxAYXJD.js";
3
- import { _ as clock } from "./icons-B1i-oRoD.js";
4
- import { t as createIconElement } from "./render-DApFfV9S.js";
5
- import { n as pkSelectStyles, t as PkSelect } from "./pk-select-BcbtjIoP.js";
3
+ import { v as clock } from "./svg-BCGsRUz7.js";
4
+ import { t as createIconElement } from "./render-BCU9WDSk.js";
5
+ import "./pk-option-vh8UvSAI.js";
6
+ import { n as pkSelectStyles, t as PkSelect } from "./pk-select-CbmPJCx8.js";
6
7
  //#region src/utils/time-options.ts
7
8
  var timeOptionsCache = null;
8
9
  function resolveTimepickerOptions() {
@@ -1,9 +1,9 @@
1
1
  import { n as uniqueId } from "./pk-a11y-Cx5RZvhu.js";
2
2
  import { c as r, f as A, i as e, l as n, m as i, p as b, s as e$1, u as t } from "./lit-Dnn7gEi2.js";
3
3
  import { c as __decorate, l as PkElement } from "./pk-base-BlxAYXJD.js";
4
- import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-C3tSQ3UR.js";
5
- import { i as waitForPopupReposition, n as getPopupSide, r as syncPopupPlacementAnimation } from "./popup-placement-animation-WlEXnS85.js";
6
- import { n as resolveElementById } from "./pk-popup-BNRyCsVX.js";
4
+ import { i as PkShowEvent, n as PkAfterShowEvent, r as PkHideEvent, t as PkAfterHideEvent } from "./overlay-lifecycle-BG4QMRLw.js";
5
+ import { i as waitForPopupReposition, n as getPopupSide, r as syncPopupPlacementAnimation } from "./popup-placement-animation-BPjq650B.js";
6
+ import { n as resolveElementById } from "./pk-popup-BYFbKaHH.js";
7
7
  var pkTooltipStyles = [i`
8
8
  @layer pk-component {
9
9
  .content.pk-popup-content {
@@ -0,0 +1,32 @@
1
+ //#region src/utils/popup-pointer.ts
2
+ /** Resolve the pk-popup that owns this overlay's panel (or the host's popup). */
3
+ function resolveOwnPopup(options) {
4
+ if (options.panel instanceof Element) {
5
+ const closest = options.panel.closest("pk-popup");
6
+ if (closest) return closest;
7
+ const root = options.panel.getRootNode();
8
+ if (root instanceof ShadowRoot && root.host.localName === "pk-popup") return root.host;
9
+ }
10
+ if (options.host instanceof HTMLElement) return options.host.shadowRoot?.querySelector("pk-popup") ?? options.host.querySelector(":scope > pk-popup") ?? options.host.querySelector("pk-popup");
11
+ return null;
12
+ }
13
+ /** Shared hit/focus-path testing for pk-popup consumers (pointer or keyboard events). */
14
+ function isEventInsideOverlay(event, options = {}) {
15
+ const path = event.composedPath();
16
+ if (options.host && path.includes(options.host)) return true;
17
+ if (options.anchor && path.includes(options.anchor)) return true;
18
+ if (options.panel && path.includes(options.panel)) return true;
19
+ const ownPopup = resolveOwnPopup(options);
20
+ if (ownPopup && path.includes(ownPopup)) return true;
21
+ return path.some((node) => {
22
+ if (!(node instanceof HTMLElement)) return false;
23
+ if (ownPopup && node.classList.contains("popup") && (node === ownPopup || ownPopup.contains(node))) return true;
24
+ return options.extraMatches?.(node) ?? false;
25
+ });
26
+ }
27
+ /** Shared light-dismiss hit testing for pk-popup consumers. */
28
+ function isPointerInsideOverlay(event, options = {}) {
29
+ return isEventInsideOverlay(event, options);
30
+ }
31
+ //#endregion
32
+ export { isPointerInsideOverlay as n, isEventInsideOverlay as t };
@@ -1,4 +1,4 @@
1
- import { t as iconToSvg } from "./svg-Boar0Kf1.js";
1
+ import { t as iconToSvg } from "./svg-BCGsRUz7.js";
2
2
  //#region src/icons/render.ts
3
3
  var renderIconHtml = (icon, options = {}) => {
4
4
  return iconToSvg(icon, { title: options.title });
@@ -426,4 +426,37 @@ var icons = {
426
426
  xmark
427
427
  };
428
428
  //#endregion
429
- export { icons as A, strikethrough as B, h2 as C, h6 as D, h5 as E, listUl as F, triangleExclamation as G, superscript as H, minus as I, underline as K, paragraph as L, lightbulb as M, link as N, heading as O, listOl as P, plus as R, h1 as S, h4 as T, table as U, subscript as V, textSlash as W, clock as _, arrowDown as a, fileDashedLine as b, arrowUp as c, bracketsCurly as d, calendar as f, chevronRight as g, chevronLeft as h, alignRight as i, italic as j, highlighter as k, asterisk as l, chevronDown as m, alignJustify as n, arrowRotateLeft as o, check as p, xmark as q, alignLeft as r, arrowRotateRight as s, alignCenter as t, bold as u, code as v, h3 as w, gear as x, ellipsis as y, quoteRight as z };
429
+ //#region ../plugin-kit-icons/dist/svg.js
430
+ var escapeHtml = (value) => {
431
+ return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
432
+ };
433
+ /** Build the `viewBox` value for an icon. */
434
+ var iconViewBox = (icon) => {
435
+ return `0 0 ${icon.width} ${icon.height}`;
436
+ };
437
+ /**
438
+ * Render a {@link PkIcon} to a standalone SVG markup string.
439
+ *
440
+ * Framework-agnostic: web components pass the result through Lit's `unsafeSVG`,
441
+ * or parse it into an element. React consumers should use their own component
442
+ * (the raw {@link PkIcon} data is exported for that purpose).
443
+ */
444
+ var iconToSvg = (icon, options = {}) => {
445
+ const { title, className, attributes = {} } = options;
446
+ const attrs = {
447
+ xmlns: "http://www.w3.org/2000/svg",
448
+ viewBox: iconViewBox(icon),
449
+ ...attributes
450
+ };
451
+ if (className) attrs.class = className;
452
+ if (title) attrs.role = "img";
453
+ else {
454
+ attrs["aria-hidden"] = "true";
455
+ attrs.focusable = "false";
456
+ }
457
+ return `<svg ${Object.entries(attrs).map(([key, value]) => {
458
+ return `${key}="${escapeHtml(value)}"`;
459
+ }).join(" ")}>${title ? `<title>${escapeHtml(title)}</title>` : ""}<path fill="currentColor" d="${escapeHtml(icon.path)}"/></svg>`;
460
+ };
461
+ //#endregion
462
+ export { highlighter as A, quoteRight as B, h1 as C, h5 as D, h4 as E, listOl as F, textSlash as G, subscript as H, listUl as I, xmark as J, triangleExclamation as K, minus as L, italic as M, lightbulb as N, h6 as O, link as P, paragraph as R, gear as S, h3 as T, superscript as U, strikethrough as V, table as W, chevronRight as _, alignRight as a, ellipsis as b, arrowRotateRight as c, bold as d, bracketsCurly as f, chevronLeft as g, chevronDown as h, alignLeft as i, icons as j, heading as k, arrowUp as l, check as m, alignCenter as n, arrowDown as o, calendar as p, underline as q, alignJustify as r, arrowRotateLeft as s, iconToSvg as t, asterisk as u, clock as v, h2 as w, fileDashedLine as x, code as y, plus as z };
@@ -1,4 +1,4 @@
1
- import { C as keyName, S as base } from "./codemirror-CSgOT0QM.js";
1
+ import { C as keyName, S as base } from "./codemirror-CHXb-wYU.js";
2
2
  //#region ../node_modules/orderedmap/dist/index.js
3
3
  function OrderedMap(content) {
4
4
  this.content = content;
@@ -1,6 +1,6 @@
1
1
  import { n as uniqueId } from "./pk-a11y-Cx5RZvhu.js";
2
2
  import { m as i } from "./lit-Dnn7gEi2.js";
3
- import { A as Node3, C as index_default$10, D as index_default$1, E as index_default$7, F as PluginKey, I as TextSelection, N as NodeSelection, O as index_default, P as Plugin, S as index_default$11, T as index_default$8, _ as index_default$16, a as index_default$5, b as index_default$13, c as index_default$24, d as index_default$21, f as index_default$20, g as index_default$17, h as index_default$6, i as index_default$2, j as getMarkRange, l as Table, m as index_default$18, n as index_default$25, o as index_default$22, p as index_default$19, r as index_default$3, s as index_default$23, t as index_default$26, u as index_default$4, v as index_default$15, w as index_default$9, x as index_default$12, y as index_default$14 } from "./tiptap-Db7MTUH1.js";
3
+ import { A as Node3, C as index_default$10, D as index_default$1, E as index_default$7, F as PluginKey, I as TextSelection, N as NodeSelection, O as index_default, P as Plugin, S as index_default$11, T as index_default$8, _ as index_default$16, a as index_default$5, b as index_default$13, c as index_default$24, d as index_default$21, f as index_default$20, g as index_default$17, h as index_default$6, i as index_default$2, j as getMarkRange, l as Table, m as index_default$18, n as index_default$25, o as index_default$22, p as index_default$19, r as index_default$3, s as index_default$23, t as index_default$26, u as index_default$4, v as index_default$15, w as index_default$9, x as index_default$12, y as index_default$14 } from "./tiptap-_LAjdgeV.js";
4
4
  //#region ../plugin-kit-tiptap-core/dist/links/extension.js
5
5
  /** Shared Tiptap link mark configuration for Plugin Kit editors. */
6
6
  function createLinkExtension() {
@@ -1,2 +1,2 @@
1
- import { t as PkButton } from "../../chunks/pk-button-BlSs4e6V.js";
1
+ import { t as PkButton } from "../../chunks/pk-button-CK5FZiwP.js";
2
2
  export { PkButton };
@@ -1,6 +1,6 @@
1
1
  import { m as i, p as b, u as t } from "../../chunks/lit-Dnn7gEi2.js";
2
2
  import { c as __decorate, l as PkElement } from "../../chunks/pk-base-BlxAYXJD.js";
3
- import { n as buttonGroupCornerRadiusStyles } from "../../chunks/button-group-item.styles-Dwakbyx5.js";
3
+ import { n as buttonGroupCornerRadiusStyles } from "../../chunks/button-group-item.styles-BNc-ksl1.js";
4
4
  //#region src/components/button-group/pk-button-group-text.styles.ts
5
5
  var pkButtonGroupTextStyles = [buttonGroupCornerRadiusStyles(".text", "var(--pk-radius-lg)"), i`
6
6
  @layer pk-component {
@@ -1,2 +1,2 @@
1
- import { t as PkCalendar } from "../../chunks/pk-calendar-RXCDDhLI.js";
1
+ import { t as PkCalendar } from "../../chunks/pk-calendar-CoJWxcxi.js";
2
2
  export { PkCalendar };
@@ -1,2 +1,2 @@
1
- import { t as PkCheckbox } from "../../chunks/pk-checkbox-hJCj8In8.js";
1
+ import { t as PkCheckbox } from "../../chunks/pk-checkbox-CoDX2G3J.js";
2
2
  export { PkCheckbox };
@@ -1,5 +1,6 @@
1
1
  import { c as r, i as e, l as n, m as i, p as b, u as t } from "../../chunks/lit-Dnn7gEi2.js";
2
2
  import { c as __decorate, l as PkElement } from "../../chunks/pk-base-BlxAYXJD.js";
3
+ import "../../chunks/pk-checkbox-CoDX2G3J.js";
3
4
  //#region src/components/checkbox-select/pk-checkbox-select.styles.ts
4
5
  var pkCheckboxSelectStyles = i`
5
6
  @layer pk-component {
@@ -1,13 +1,13 @@
1
1
  import { c as r, l as n, m as i, p as b, s as e, u as t } from "../../chunks/lit-Dnn7gEi2.js";
2
2
  import { c as __decorate, i as PkFormAssociatedElement, n as formControlStyles } from "../../chunks/pk-base-BlxAYXJD.js";
3
- import { t as MirrorValidator } from "../../chunks/mirror-validator-C5XrXPaq.js";
4
- import { T as EditorState, _ as highlightActiveLine, a as html, b as keymap, c as closeBracketsKeymap, d as defaultHighlightStyle, f as indentOnInput, g as drawSelection, h as EditorView, i as json, l as css, m as syntaxHighlighting, n as history, o as javascript, p as indentUnit, r as historyKeymap, s as closeBrackets, t as defaultKeymap, u as bracketMatching, v as highlightActiveLineGutter, w as Compartment, x as lineNumbers, y as highlightSpecialChars } from "../../chunks/codemirror-CSgOT0QM.js";
5
- //#region ../plugin-kit-codemirror-core/dist/constants.js
3
+ import { t as MirrorValidator } from "../../chunks/mirror-validator-DEz3BsbN.js";
4
+ import { T as EditorState, _ as highlightActiveLine, a as html, b as keymap, c as closeBracketsKeymap, d as defaultHighlightStyle, f as indentOnInput, g as drawSelection, h as EditorView, i as json, l as css, m as syntaxHighlighting, n as history, o as javascript, p as indentUnit, r as historyKeymap, s as closeBrackets, t as defaultKeymap, u as bracketMatching, v as highlightActiveLineGutter, w as Compartment, x as lineNumbers, y as highlightSpecialChars } from "../../chunks/codemirror-CHXb-wYU.js";
5
+ //#region node_modules/@verbb/plugin-kit-codemirror-core/dist/constants.js
6
6
  function computeCodeEditorMinHeight(rows = 12) {
7
7
  return `${Math.max(Number(rows) || 12, 4) * 18 + 12}px`;
8
8
  }
9
9
  //#endregion
10
- //#region ../plugin-kit-codemirror-core/dist/languages.js
10
+ //#region node_modules/@verbb/plugin-kit-codemirror-core/dist/languages.js
11
11
  function languageUsesSyntaxHelpers(language) {
12
12
  return language !== "text";
13
13
  }
@@ -21,7 +21,7 @@ function createLanguageExtension(language) {
21
21
  }
22
22
  }
23
23
  //#endregion
24
- //#region ../plugin-kit-codemirror-core/dist/theme.js
24
+ //#region node_modules/@verbb/plugin-kit-codemirror-core/dist/theme.js
25
25
  /** Editor content surface — matches @uiw/react-codemirror default light theme. */
26
26
  var CODE_EDITOR_SURFACE_BG = "#ffffff";
27
27
  /** Gutter strip beside line numbers. */
@@ -71,7 +71,7 @@ var codeEditorTheme = EditorView.theme({
71
71
  ".cm-selectionBackground, &.cm-focused .cm-selectionBackground, ::selection": { backgroundColor: `rgba(59, 130, 246, 0.35) !important` }
72
72
  });
73
73
  //#endregion
74
- //#region ../plugin-kit-codemirror-core/dist/extensions.js
74
+ //#region node_modules/@verbb/plugin-kit-codemirror-core/dist/extensions.js
75
75
  function createEditorSetupExtensions(language, showLineNumbers) {
76
76
  const usesSyntaxHelpers = languageUsesSyntaxHelpers(language);
77
77
  const extensions = [
@@ -118,7 +118,7 @@ function createCodeEditorExtensions({ language = "html", tabSize = 4, lineNumber
118
118
  return extensions;
119
119
  }
120
120
  //#endregion
121
- //#region ../plugin-kit-codemirror-core/dist/host.js
121
+ //#region node_modules/@verbb/plugin-kit-codemirror-core/dist/host.js
122
122
  var CodeMirrorHost = class {
123
123
  view = null;
124
124
  editableCompartment = new Compartment();
@@ -1,2 +1,2 @@
1
- import { t as PkColorInput } from "../../chunks/pk-color-input-BfNtLznP.js";
1
+ import { t as PkColorInput } from "../../chunks/pk-color-input-B73zaGYj.js";
2
2
  export { PkColorInput };
@@ -1,2 +1,2 @@
1
- import { t as PkCombobox } from "../../chunks/pk-combobox-1PJBcIrV.js";
1
+ import { t as PkCombobox } from "../../chunks/pk-combobox-fXGaY4L0.js";
2
2
  export { PkCombobox };