@mono-lit/helper 0.0.0-stage → 0.0.2

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 (539) hide show
  1. package/LICENSE.md +55 -0
  2. package/README.md +35 -3
  3. package/dist/breakpoints-CAbhDUht.js +84 -0
  4. package/dist/checkbox-Cqpie9Ap.js +4 -0
  5. package/dist/chip-DBUUa2eB.js +4 -0
  6. package/dist/chip-limits-BMoO31JM.js +213 -0
  7. package/dist/chip-strip-Cw3gyz0q.js +213 -0
  8. package/dist/color-DHYrfXsX.js +253 -0
  9. package/dist/css-class-BRKRzHx-.js +60 -0
  10. package/dist/css-size-DhHSVZJK.js +37 -0
  11. package/dist/data/theme/presets.json.d.ts +140 -0
  12. package/dist/data-source-controller-B_rgHCjw.js +241 -0
  13. package/dist/data-source-controller-Dbb4fd8I.js +241 -0
  14. package/dist/data-source-options-CP-X62Pa.js +535 -0
  15. package/dist/data-source-options-Jqj7LU3Z.js +537 -0
  16. package/dist/data-source-read-B4DGp6UQ.js +216 -0
  17. package/dist/data-source-read-DL88aH8t.js +217 -0
  18. package/dist/decorate-DEXtNagw.js +141 -0
  19. package/dist/element-props-CLB6yvbm.js +114 -0
  20. package/dist/esm-Ptok4SQZ.js +2026 -0
  21. package/dist/excel-CY6zGkcx.js +608 -0
  22. package/dist/excel-DopRbEMK.js +608 -0
  23. package/dist/export-BiGVyxt6.js +2302 -0
  24. package/dist/export.d.ts +1 -0
  25. package/dist/export.js +2302 -0
  26. package/dist/field-icons-DELrSdqJ.js +86 -0
  27. package/dist/field-path-C92eGLg3.js +251 -0
  28. package/dist/filter-builder-Bke3qOgJ.js +205 -0
  29. package/dist/filter-builder-CE4zE0V5.js +205 -0
  30. package/dist/filter-eval-DIfU2EAn.js +173 -0
  31. package/dist/filter-odata-C1vSGZaY.js +591 -0
  32. package/dist/form-control-core-B8d7k6vk.js +223 -0
  33. package/dist/form-control-core-eeRr0zLU.js +223 -0
  34. package/dist/hydration-flush-RB5Tz5nl.js +1001 -0
  35. package/dist/icon-CJkTlmTb.js +55 -0
  36. package/dist/icon-dVhYJUIH.js +17 -0
  37. package/dist/import-BgJdkwBI.js +606 -0
  38. package/dist/import.d.ts +1 -0
  39. package/dist/import.js +606 -0
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.js +16 -0
  42. package/dist/index.node-BIqEGehH.js +396 -0
  43. package/dist/index.node.d.ts +1 -0
  44. package/dist/index.node.js +16 -0
  45. package/dist/input-zGOULADt.js +4 -0
  46. package/dist/layout-var-CZnzMC0s.js +73 -0
  47. package/dist/light-slots-BVJwyg_2.js +244 -0
  48. package/dist/light-slots-DW1WgfgT.js +254 -0
  49. package/dist/markdown-DfqrfOJN.js +20146 -0
  50. package/dist/mono-button-simcTQdW.js +873 -0
  51. package/dist/mono-button.shadow-B_rKOY9N.js +784 -0
  52. package/dist/mono-data-chart-CEv29_NS.js +779 -0
  53. package/dist/mono-data-dropdown-Wnoke6zO.js +357 -0
  54. package/dist/mono-data-grid-CjkEqxgE.js +3913 -0
  55. package/dist/mono-data-grid-YjR3n9Ar.js +3915 -0
  56. package/dist/mono-element-B0kP_96P.js +232 -0
  57. package/dist/mono-event-Bi1qP9uN.js +129 -0
  58. package/dist/mono-form-controller-5PfsU4qa.js +409 -0
  59. package/dist/mono-modal-controller-BMO3n3rP.js +223 -0
  60. package/dist/mono-ui-CPV7rrdo.js +358 -0
  61. package/dist/normalize-error-Gcgmgh5i.js +871 -0
  62. package/dist/notifier-CE4yxMUQ.js +88 -0
  63. package/dist/nuxt.d.ts +1 -0
  64. package/dist/nuxt.js +130 -0
  65. package/dist/popup-portal-BziRX1yG.js +465 -0
  66. package/dist/popup-stack-CEEMib__.js +189 -0
  67. package/dist/rate-limit-BBa2PO79.js +521 -0
  68. package/dist/reactive-D3EERqgO.js +47 -0
  69. package/dist/reactive-Di3mTMnV.js +1087 -0
  70. package/dist/search.d.ts +1 -0
  71. package/dist/search.js +97 -0
  72. package/dist/src/components/accordion/accordion-core.d.ts +62 -0
  73. package/dist/src/components/accordion/accordion-types.d.ts +62 -0
  74. package/dist/src/components/accordion/index.d.ts +3 -0
  75. package/dist/src/components/accordion/index.shadow.d.ts +5 -0
  76. package/dist/src/components/accordion/mono-accordion.d.ts +55 -0
  77. package/dist/src/components/accordion/mono-accordion.shadow.d.ts +56 -0
  78. package/dist/src/components/alert/alert-core.d.ts +46 -0
  79. package/dist/src/components/alert/alert-types.d.ts +44 -0
  80. package/dist/src/components/alert/index.d.ts +3 -0
  81. package/dist/src/components/alert/index.shadow.d.ts +5 -0
  82. package/dist/src/components/alert/mono-alert.d.ts +44 -0
  83. package/dist/src/components/alert/mono-alert.shadow.d.ts +34 -0
  84. package/dist/src/components/breadcrumb/breadcrumb-core.d.ts +61 -0
  85. package/dist/src/components/breadcrumb/breadcrumb-list-core.d.ts +49 -0
  86. package/dist/src/components/breadcrumb/breadcrumb-render.d.ts +31 -0
  87. package/dist/src/components/breadcrumb/breadcrumb-types.d.ts +117 -0
  88. package/dist/src/components/breadcrumb/breadcrumb-utils.d.ts +43 -0
  89. package/dist/src/components/breadcrumb/index.d.ts +6 -0
  90. package/dist/src/components/breadcrumb/index.shadow.d.ts +8 -0
  91. package/dist/src/components/breadcrumb/mono-breadcrumb-list.d.ts +29 -0
  92. package/dist/src/components/breadcrumb/mono-breadcrumb-list.shadow.d.ts +48 -0
  93. package/dist/src/components/breadcrumb/mono-breadcrumb.d.ts +38 -0
  94. package/dist/src/components/breadcrumb/mono-breadcrumb.shadow.d.ts +73 -0
  95. package/dist/src/components/button/button-core.d.ts +90 -0
  96. package/dist/src/components/button/button-dropdown-core.d.ts +57 -0
  97. package/dist/src/components/button/button-dropdown-types.d.ts +129 -0
  98. package/dist/src/components/button/button-types.d.ts +219 -0
  99. package/dist/src/components/button/button-utils.d.ts +18 -0
  100. package/dist/src/components/button/index.button-dropdown.d.ts +4 -0
  101. package/dist/src/components/button/index.button-dropdown.shadow.d.ts +4 -0
  102. package/dist/src/components/button/index.d.ts +8 -0
  103. package/dist/src/components/button/index.shadow.d.ts +5 -0
  104. package/dist/src/components/button/mono-button-dropdown.d.ts +35 -0
  105. package/dist/src/components/button/mono-button-dropdown.shadow.d.ts +45 -0
  106. package/dist/src/components/button/mono-button.d.ts +123 -0
  107. package/dist/src/components/button/mono-button.shadow.d.ts +56 -0
  108. package/dist/src/components/card/card-core.d.ts +75 -0
  109. package/dist/src/components/card/card-types.d.ts +137 -0
  110. package/dist/src/components/card/card-utils.d.ts +23 -0
  111. package/dist/src/components/card/index.d.ts +4 -0
  112. package/dist/src/components/card/index.shadow.d.ts +6 -0
  113. package/dist/src/components/card/mono-card.d.ts +56 -0
  114. package/dist/src/components/card/mono-card.shadow.d.ts +52 -0
  115. package/dist/src/components/chart/chart-core.d.ts +43 -0
  116. package/dist/src/components/chart/chart-odata.d.ts +52 -0
  117. package/dist/src/components/chart/chart-types.d.ts +356 -0
  118. package/dist/src/components/chart/index.d.ts +8 -0
  119. package/dist/src/components/chart/index.shadow.d.ts +7 -0
  120. package/dist/src/components/chart/mono-chart-presets.d.ts +43 -0
  121. package/dist/src/components/chart/mono-chart-presets.shadow.d.ts +43 -0
  122. package/dist/src/components/chart/mono-chart.d.ts +30 -0
  123. package/dist/src/components/chart/mono-chart.shadow.d.ts +22 -0
  124. package/dist/src/components/chart/mono-data-chart.d.ts +27 -0
  125. package/dist/src/components/checkbox/checkbox-core.d.ts +53 -0
  126. package/dist/src/components/checkbox/checkbox-types.d.ts +69 -0
  127. package/dist/src/components/checkbox/checkbox-utils.d.ts +35 -0
  128. package/dist/src/components/checkbox/index.d.ts +4 -0
  129. package/dist/src/components/checkbox/index.shadow.d.ts +5 -0
  130. package/dist/src/components/checkbox/mono-checkbox.d.ts +34 -0
  131. package/dist/src/components/checkbox/mono-checkbox.shadow.d.ts +45 -0
  132. package/dist/src/components/chip/chip-core.d.ts +58 -0
  133. package/dist/src/components/chip/chip-types.d.ts +142 -0
  134. package/dist/src/components/chip/chip-utils.d.ts +24 -0
  135. package/dist/src/components/chip/index.d.ts +8 -0
  136. package/dist/src/components/chip/index.shadow.d.ts +6 -0
  137. package/dist/src/components/chip/mono-chip.d.ts +48 -0
  138. package/dist/src/components/chip/mono-chip.shadow.d.ts +33 -0
  139. package/dist/src/components/chip/mono-status-dot.d.ts +34 -0
  140. package/dist/src/components/date/date-core.d.ts +80 -0
  141. package/dist/src/components/date/date-types.d.ts +163 -0
  142. package/dist/src/components/date/index.d.ts +3 -0
  143. package/dist/src/components/date/index.shadow.d.ts +4 -0
  144. package/dist/src/components/date/mono-date.d.ts +22 -0
  145. package/dist/src/components/date/mono-date.shadow.d.ts +31 -0
  146. package/dist/src/components/drawer/drawer-core.d.ts +99 -0
  147. package/dist/src/components/drawer/drawer-types.d.ts +153 -0
  148. package/dist/src/components/drawer/index.d.ts +3 -0
  149. package/dist/src/components/drawer/index.shadow.d.ts +4 -0
  150. package/dist/src/components/drawer/mono-drawer.d.ts +45 -0
  151. package/dist/src/components/drawer/mono-drawer.shadow.d.ts +46 -0
  152. package/dist/src/components/dropdown/dropdown-core.d.ts +33 -0
  153. package/dist/src/components/dropdown/dropdown-types.d.ts +88 -0
  154. package/dist/src/components/dropdown/index.d.ts +3 -0
  155. package/dist/src/components/dropdown/index.shadow.d.ts +4 -0
  156. package/dist/src/components/dropdown/mono-dropdown.d.ts +34 -0
  157. package/dist/src/components/dropdown/mono-dropdown.shadow.d.ts +28 -0
  158. package/dist/src/components/dropdown-table/dropdown-table-core.d.ts +65 -0
  159. package/dist/src/components/dropdown-table/dropdown-table-types.d.ts +278 -0
  160. package/dist/src/components/dropdown-table/index.d.ts +5 -0
  161. package/dist/src/components/dropdown-table/index.shadow.d.ts +6 -0
  162. package/dist/src/components/dropdown-table/mono-data-dropdown.d.ts +152 -0
  163. package/dist/src/components/dropdown-table/mono-dropdown-table.d.ts +46 -0
  164. package/dist/src/components/dropdown-table/mono-dropdown-table.shadow.d.ts +22 -0
  165. package/dist/src/components/file-upload/file-upload-core.d.ts +60 -0
  166. package/dist/src/components/file-upload/file-upload-types.d.ts +145 -0
  167. package/dist/src/components/file-upload/file-upload-utils.d.ts +16 -0
  168. package/dist/src/components/file-upload/index.d.ts +4 -0
  169. package/dist/src/components/file-upload/index.shadow.d.ts +5 -0
  170. package/dist/src/components/file-upload/mono-file-upload.d.ts +33 -0
  171. package/dist/src/components/file-upload/mono-file-upload.shadow.d.ts +50 -0
  172. package/dist/src/components/filter/filter-builder-core.d.ts +36 -0
  173. package/dist/src/components/filter/filter-builder.d.ts +23 -0
  174. package/dist/src/components/filter/filter-odata.d.ts +27 -0
  175. package/dist/src/components/filter/filter-operators.d.ts +13 -0
  176. package/dist/src/components/filter/filter-types.d.ts +253 -0
  177. package/dist/src/components/filter/index.d.ts +6 -0
  178. package/dist/src/components/filter/index.shadow.d.ts +7 -0
  179. package/dist/src/components/filter/mono-filter-builder.d.ts +21 -0
  180. package/dist/src/components/filter/mono-filter-builder.shadow.d.ts +17 -0
  181. package/dist/src/components/form/form-control-core.d.ts +37 -0
  182. package/dist/src/components/form/form-rules.d.ts +25 -0
  183. package/dist/src/components/form/form-types.d.ts +307 -0
  184. package/dist/src/components/form/index.d.ts +6 -0
  185. package/dist/src/components/form/mono-form-controller.d.ts +16 -0
  186. package/dist/src/components/input/index.d.ts +6 -0
  187. package/dist/src/components/input/index.shadow.d.ts +8 -0
  188. package/dist/src/components/input/input-core.d.ts +91 -0
  189. package/dist/src/components/input/input-format.d.ts +118 -0
  190. package/dist/src/components/input/input-types.d.ts +179 -0
  191. package/dist/src/components/input/input-utils.d.ts +10 -0
  192. package/dist/src/components/input/mono-input.d.ts +46 -0
  193. package/dist/src/components/input/mono-input.shadow.d.ts +34 -0
  194. package/dist/src/components/menu/index.d.ts +6 -0
  195. package/dist/src/components/menu/index.shadow.d.ts +7 -0
  196. package/dist/src/components/menu/menu-core.d.ts +65 -0
  197. package/dist/src/components/menu/menu-render.d.ts +55 -0
  198. package/dist/src/components/menu/menu-types.d.ts +195 -0
  199. package/dist/src/components/menu/menu-utils.d.ts +53 -0
  200. package/dist/src/components/menu/mono-menu-list.d.ts +118 -0
  201. package/dist/src/components/menu/mono-menu.d.ts +39 -0
  202. package/dist/src/components/menu/mono-menu.shadow.d.ts +40 -0
  203. package/dist/src/components/modal/index.d.ts +4 -0
  204. package/dist/src/components/modal/index.shadow.d.ts +5 -0
  205. package/dist/src/components/modal/modal-core.d.ts +110 -0
  206. package/dist/src/components/modal/modal-types.d.ts +304 -0
  207. package/dist/src/components/modal/mono-modal-controller.d.ts +4 -0
  208. package/dist/src/components/modal/mono-modal.d.ts +45 -0
  209. package/dist/src/components/modal/mono-modal.shadow.d.ts +50 -0
  210. package/dist/src/components/nav/index.d.ts +4 -0
  211. package/dist/src/components/nav/index.shadow.d.ts +6 -0
  212. package/dist/src/components/nav/mono-nav.d.ts +41 -0
  213. package/dist/src/components/nav/mono-nav.shadow.d.ts +21 -0
  214. package/dist/src/components/nav/nav-core.d.ts +34 -0
  215. package/dist/src/components/nav/nav-types.d.ts +48 -0
  216. package/dist/src/components/nav/nav-utils.d.ts +12 -0
  217. package/dist/src/components/radio/index.d.ts +4 -0
  218. package/dist/src/components/radio/index.shadow.d.ts +5 -0
  219. package/dist/src/components/radio/mono-radio.d.ts +31 -0
  220. package/dist/src/components/radio/mono-radio.shadow.d.ts +35 -0
  221. package/dist/src/components/radio/radio-core.d.ts +45 -0
  222. package/dist/src/components/radio/radio-types.d.ts +58 -0
  223. package/dist/src/components/radio/radio-utils.d.ts +12 -0
  224. package/dist/src/components/rich-text-editor/index.d.ts +5 -0
  225. package/dist/src/components/rich-text-editor/index.shadow.d.ts +6 -0
  226. package/dist/src/components/rich-text-editor/mono-rich-text-editor.d.ts +31 -0
  227. package/dist/src/components/rich-text-editor/mono-rich-text-editor.shadow.d.ts +34 -0
  228. package/dist/src/components/rich-text-editor/rich-text-editor-core.d.ts +100 -0
  229. package/dist/src/components/rich-text-editor/rich-text-editor-loader.d.ts +17 -0
  230. package/dist/src/components/rich-text-editor/rich-text-editor-toolbar.d.ts +65 -0
  231. package/dist/src/components/rich-text-editor/rich-text-editor-types.d.ts +231 -0
  232. package/dist/src/components/select/index.d.ts +4 -0
  233. package/dist/src/components/select/index.shadow.d.ts +5 -0
  234. package/dist/src/components/select/mono-select.d.ts +69 -0
  235. package/dist/src/components/select/mono-select.shadow.d.ts +48 -0
  236. package/dist/src/components/select/select-core.d.ts +98 -0
  237. package/dist/src/components/select/select-types.d.ts +284 -0
  238. package/dist/src/components/select/select-utils.d.ts +7 -0
  239. package/dist/src/components/sidebar/index.d.ts +4 -0
  240. package/dist/src/components/sidebar/index.shadow.d.ts +6 -0
  241. package/dist/src/components/sidebar/mono-sidebar.d.ts +34 -0
  242. package/dist/src/components/sidebar/mono-sidebar.shadow.d.ts +27 -0
  243. package/dist/src/components/sidebar/sidebar-core.d.ts +51 -0
  244. package/dist/src/components/sidebar/sidebar-types.d.ts +119 -0
  245. package/dist/src/components/sidebar/sidebar-utils.d.ts +55 -0
  246. package/dist/src/components/switch/index.d.ts +4 -0
  247. package/dist/src/components/switch/index.shadow.d.ts +5 -0
  248. package/dist/src/components/switch/mono-switch.d.ts +31 -0
  249. package/dist/src/components/switch/mono-switch.shadow.d.ts +36 -0
  250. package/dist/src/components/switch/switch-core.d.ts +49 -0
  251. package/dist/src/components/switch/switch-types.d.ts +64 -0
  252. package/dist/src/components/switch/switch-utils.d.ts +12 -0
  253. package/dist/src/components/table/array-source.d.ts +44 -0
  254. package/dist/src/components/table/date-filter-tree.d.ts +93 -0
  255. package/dist/src/components/table/grouping.d.ts +55 -0
  256. package/dist/src/components/table/index.d.ts +33 -0
  257. package/dist/src/components/table/index.shadow.d.ts +47 -0
  258. package/dist/src/components/table/mono-data-grid.d.ts +1756 -0
  259. package/dist/src/components/table/mono-table-checkbox-core.d.ts +76 -0
  260. package/dist/src/components/table/mono-table-checkbox.d.ts +34 -0
  261. package/dist/src/components/table/mono-table-checkbox.shadow.d.ts +26 -0
  262. package/dist/src/components/table/mono-table-detail-core.d.ts +87 -0
  263. package/dist/src/components/table/mono-table-detail.d.ts +32 -0
  264. package/dist/src/components/table/mono-table-detail.shadow.d.ts +31 -0
  265. package/dist/src/components/table/mono-table-empty-core.d.ts +60 -0
  266. package/dist/src/components/table/mono-table-empty.d.ts +35 -0
  267. package/dist/src/components/table/mono-table-empty.shadow.d.ts +40 -0
  268. package/dist/src/components/table/mono-table-error-core.d.ts +84 -0
  269. package/dist/src/components/table/mono-table-error.d.ts +28 -0
  270. package/dist/src/components/table/mono-table-error.shadow.d.ts +21 -0
  271. package/dist/src/components/table/mono-table-info-core.d.ts +13 -0
  272. package/dist/src/components/table/mono-table-info.d.ts +19 -0
  273. package/dist/src/components/table/mono-table-info.shadow.d.ts +14 -0
  274. package/dist/src/components/table/mono-table-loading-core.d.ts +41 -0
  275. package/dist/src/components/table/mono-table-loading.d.ts +50 -0
  276. package/dist/src/components/table/mono-table-loading.shadow.d.ts +14 -0
  277. package/dist/src/components/table/mono-table-page-size-core.d.ts +14 -0
  278. package/dist/src/components/table/mono-table-page-size.d.ts +16 -0
  279. package/dist/src/components/table/mono-table-page-size.shadow.d.ts +11 -0
  280. package/dist/src/components/table/mono-table-paging-core.d.ts +22 -0
  281. package/dist/src/components/table/mono-table-paging-group-core.d.ts +18 -0
  282. package/dist/src/components/table/mono-table-paging-group.d.ts +20 -0
  283. package/dist/src/components/table/mono-table-paging-group.shadow.d.ts +13 -0
  284. package/dist/src/components/table/mono-table-paging.d.ts +16 -0
  285. package/dist/src/components/table/mono-table-paging.shadow.d.ts +11 -0
  286. package/dist/src/components/table/mono-table-search-core.d.ts +74 -0
  287. package/dist/src/components/table/mono-table-search.d.ts +34 -0
  288. package/dist/src/components/table/mono-table-search.shadow.d.ts +21 -0
  289. package/dist/src/components/table/mono-table-sort-core.d.ts +35 -0
  290. package/dist/src/components/table/mono-table-sort.d.ts +38 -0
  291. package/dist/src/components/table/mono-table-sort.shadow.d.ts +20 -0
  292. package/dist/src/components/table/mono-table-summary-core.d.ts +26 -0
  293. package/dist/src/components/table/mono-table-summary.d.ts +24 -0
  294. package/dist/src/components/table/mono-table-summary.shadow.d.ts +14 -0
  295. package/dist/src/components/table/mono-table-th-core.d.ts +56 -0
  296. package/dist/src/components/table/mono-table-th.d.ts +41 -0
  297. package/dist/src/components/table/mono-table-th.shadow.d.ts +19 -0
  298. package/dist/src/components/table/store-group-source.d.ts +24 -0
  299. package/dist/src/components/table/table-controller-core.d.ts +40 -0
  300. package/dist/src/components/table/table-filter-icons.d.ts +3 -0
  301. package/dist/src/components/table/table-menu-core.d.ts +65 -0
  302. package/dist/src/components/table/table-overlay.d.ts +165 -0
  303. package/dist/src/components/table/table-sort-icons.d.ts +4 -0
  304. package/dist/src/components/table/table-sort-utils.d.ts +20 -0
  305. package/dist/src/components/table/table-types.d.ts +475 -0
  306. package/dist/src/components/tabs/index.d.ts +3 -0
  307. package/dist/src/components/tabs/index.shadow.d.ts +4 -0
  308. package/dist/src/components/tabs/mono-tabs.d.ts +33 -0
  309. package/dist/src/components/tabs/mono-tabs.shadow.d.ts +37 -0
  310. package/dist/src/components/tabs/tabs-core.d.ts +57 -0
  311. package/dist/src/components/tabs/tabs-types.d.ts +65 -0
  312. package/dist/src/components/tag-input/index.d.ts +4 -0
  313. package/dist/src/components/tag-input/index.shadow.d.ts +5 -0
  314. package/dist/src/components/tag-input/mono-tag-input.d.ts +66 -0
  315. package/dist/src/components/tag-input/mono-tag-input.shadow.d.ts +40 -0
  316. package/dist/src/components/tag-input/tag-input-core.d.ts +108 -0
  317. package/dist/src/components/tag-input/tag-input-types.d.ts +420 -0
  318. package/dist/src/components/tag-input/tag-input-utils.d.ts +8 -0
  319. package/dist/src/components/textarea/index.d.ts +4 -0
  320. package/dist/src/components/textarea/index.shadow.d.ts +5 -0
  321. package/dist/src/components/textarea/mono-textarea.d.ts +29 -0
  322. package/dist/src/components/textarea/mono-textarea.shadow.d.ts +31 -0
  323. package/dist/src/components/textarea/textarea-core.d.ts +60 -0
  324. package/dist/src/components/textarea/textarea-types.d.ts +131 -0
  325. package/dist/src/components/textarea/textarea-utils.d.ts +7 -0
  326. package/dist/src/components/tooltip/control-tooltip.d.ts +36 -0
  327. package/dist/src/components/tooltip/index.d.ts +6 -0
  328. package/dist/src/components/tooltip/tooltip-config.d.ts +27 -0
  329. package/dist/src/components/tooltip/tooltip-declarative.d.ts +41 -0
  330. package/dist/src/components/tooltip/tooltip-loader.d.ts +1 -0
  331. package/dist/src/components/tooltip/tooltip-types.d.ts +110 -0
  332. package/dist/src/composables/breakpoints.d.ts +59 -0
  333. package/dist/src/composables/chip-limits.d.ts +48 -0
  334. package/dist/src/composables/chip-strip.d.ts +93 -0
  335. package/dist/src/composables/color.d.ts +103 -0
  336. package/dist/src/composables/css-class.d.ts +27 -0
  337. package/dist/src/composables/css-size.d.ts +40 -0
  338. package/dist/src/composables/data-source-controller.d.ts +113 -0
  339. package/dist/src/composables/element-props.d.ts +46 -0
  340. package/dist/src/composables/field-icons.d.ts +15 -0
  341. package/dist/src/composables/hybird-prop.d.ts +79 -0
  342. package/dist/src/composables/hydration-flush.d.ts +34 -0
  343. package/dist/src/composables/icon.d.ts +17 -0
  344. package/dist/src/composables/layout-var.d.ts +34 -0
  345. package/dist/src/composables/light-slots.d.ts +133 -0
  346. package/dist/src/composables/mdi-glyphs.d.ts +4 -0
  347. package/dist/src/composables/mono-element.d.ts +9 -0
  348. package/dist/src/composables/mono-event.d.ts +55 -0
  349. package/dist/src/composables/mono-pending.d.ts +8 -0
  350. package/dist/src/composables/mono-skeleton.d.ts +193 -0
  351. package/dist/src/composables/mono-ui.d.ts +58 -0
  352. package/dist/src/composables/notifier.d.ts +46 -0
  353. package/dist/src/composables/popup-portal.d.ts +226 -0
  354. package/dist/src/composables/popup-stack.d.ts +70 -0
  355. package/dist/src/composables/rate-limit.d.ts +108 -0
  356. package/dist/src/composables/reactive.d.ts +53 -0
  357. package/dist/src/composables/shadow-css.d.ts +42 -0
  358. package/dist/src/composables/visibility.d.ts +36 -0
  359. package/dist/src/data/theme/index.d.ts +30 -0
  360. package/dist/src/data/theme/presets.d.ts +94 -0
  361. package/dist/src/entries/index.d.ts +2 -0
  362. package/dist/src/entries/index.node.d.ts +42 -0
  363. package/dist/src/entries/search.d.ts +3 -0
  364. package/dist/src/export/detail.d.ts +29 -0
  365. package/dist/src/export/download.d.ts +9 -0
  366. package/dist/src/export/excel/index.d.ts +27 -0
  367. package/dist/src/export/excel/nodes.d.ts +123 -0
  368. package/dist/src/export/expression.d.ts +36 -0
  369. package/dist/src/export/helpers.d.ts +6 -0
  370. package/dist/src/export/index.d.ts +13 -0
  371. package/dist/src/export/markdown.d.ts +52 -0
  372. package/dist/src/export/resolve-data.d.ts +31 -0
  373. package/dist/src/export/sentinel.d.ts +97 -0
  374. package/dist/src/export/sheet-name.d.ts +45 -0
  375. package/dist/src/export/styles.d.ts +33 -0
  376. package/dist/src/export/template.d.ts +10 -0
  377. package/dist/src/export/types.d.ts +259 -0
  378. package/dist/src/import/coerce.d.ts +38 -0
  379. package/dist/src/import/index.d.ts +16 -0
  380. package/dist/src/import/match.d.ts +54 -0
  381. package/dist/src/import/parse.d.ts +15 -0
  382. package/dist/src/import/types.d.ts +153 -0
  383. package/dist/src/nuxt/index.d.ts +94 -0
  384. package/dist/src/search/data-search.d.ts +207 -0
  385. package/dist/src/search/field-path.d.ts +107 -0
  386. package/dist/src/search/filter-eval.d.ts +30 -0
  387. package/dist/src/search/index.d.ts +22 -0
  388. package/dist/src/search/odata-search.d.ts +18 -0
  389. package/dist/src/search/search-expr.d.ts +160 -0
  390. package/dist/src/utils/data-source-apply.d.ts +97 -0
  391. package/dist/src/utils/data-source-options.d.ts +116 -0
  392. package/dist/src/utils/data-source-read.d.ts +85 -0
  393. package/dist/src/utils/data-source-summary.d.ts +55 -0
  394. package/dist/src/utils/normalize-error.d.ts +90 -0
  395. package/dist/src/vite/index.d.ts +48 -0
  396. package/dist/src/vite/mono-client-only.d.ts +35 -0
  397. package/dist/src/vite/mono-ssr-stub.d.ts +20 -0
  398. package/dist/src/vite/shadow-manifest.d.ts +8 -0
  399. package/dist/styles-BIJ31TM4.js +20146 -0
  400. package/dist/tooltip-DQqNpqk2.js +795 -0
  401. package/dist/tooltip.d.ts +1 -0
  402. package/dist/tooltip.js +2 -0
  403. package/dist/ui/accordion.d.ts +1 -0
  404. package/dist/ui/accordion.js +466 -0
  405. package/dist/ui/alert.d.ts +1 -0
  406. package/dist/ui/alert.js +221 -0
  407. package/dist/ui/breadcrumb.d.ts +1 -0
  408. package/dist/ui/breadcrumb.js +902 -0
  409. package/dist/ui/button-dropdown.d.ts +1 -0
  410. package/dist/ui/button-dropdown.js +679 -0
  411. package/dist/ui/button.d.ts +1 -0
  412. package/dist/ui/button.js +63 -0
  413. package/dist/ui/card.d.ts +1 -0
  414. package/dist/ui/card.js +524 -0
  415. package/dist/ui/chart.d.ts +1 -0
  416. package/dist/ui/chart.js +885 -0
  417. package/dist/ui/checkbox.d.ts +1 -0
  418. package/dist/ui/checkbox.js +413 -0
  419. package/dist/ui/chip.d.ts +1 -0
  420. package/dist/ui/chip.js +558 -0
  421. package/dist/ui/date.d.ts +1 -0
  422. package/dist/ui/date.js +686 -0
  423. package/dist/ui/drawer.d.ts +1 -0
  424. package/dist/ui/drawer.js +901 -0
  425. package/dist/ui/dropdown-table.d.ts +1 -0
  426. package/dist/ui/dropdown-table.js +1291 -0
  427. package/dist/ui/dropdown.d.ts +1 -0
  428. package/dist/ui/dropdown.js +586 -0
  429. package/dist/ui/file-upload.d.ts +1 -0
  430. package/dist/ui/file-upload.js +688 -0
  431. package/dist/ui/filter.d.ts +1 -0
  432. package/dist/ui/filter.js +400 -0
  433. package/dist/ui/font/files/geist-47c091c9.woff2 +0 -0
  434. package/dist/ui/font/files/geist-8dd77544.woff2 +0 -0
  435. package/dist/ui/font/files/geist-b9248b1e.woff2 +0 -0
  436. package/dist/ui/font/files/geist-d40d74b4.woff2 +0 -0
  437. package/dist/ui/font/files/geist-f493429a.woff2 +0 -0
  438. package/dist/ui/font/files/geistmono-03737868.woff2 +0 -0
  439. package/dist/ui/font/files/geistmono-421a7e38.woff2 +0 -0
  440. package/dist/ui/font/files/geistmono-48ef518d.woff2 +0 -0
  441. package/dist/ui/font/files/geistmono-5df35d39.woff2 +0 -0
  442. package/dist/ui/font/files/geistmono-7de289a4.woff2 +0 -0
  443. package/dist/ui/font/files/geistmono-e976128f.woff2 +0 -0
  444. package/dist/ui/font/files/inter-05cf802c.woff2 +0 -0
  445. package/dist/ui/font/files/inter-2b2f25a4.woff2 +0 -0
  446. package/dist/ui/font/files/inter-467acc7a.woff2 +0 -0
  447. package/dist/ui/font/files/inter-6e85163c.woff2 +0 -0
  448. package/dist/ui/font/files/inter-7048add3.woff2 +0 -0
  449. package/dist/ui/font/files/inter-9be0371e.woff2 +0 -0
  450. package/dist/ui/font/files/inter-a28b7e31.woff2 +0 -0
  451. package/dist/ui/font/files/poppins-054df55a.woff2 +0 -0
  452. package/dist/ui/font/files/poppins-0ee5dc9a.woff2 +0 -0
  453. package/dist/ui/font/files/poppins-0f44cb18.woff2 +0 -0
  454. package/dist/ui/font/files/poppins-0ff0d30c.woff2 +0 -0
  455. package/dist/ui/font/files/poppins-13045147.woff2 +0 -0
  456. package/dist/ui/font/files/poppins-1db57cd9.woff2 +0 -0
  457. package/dist/ui/font/files/poppins-2cf2a902.woff2 +0 -0
  458. package/dist/ui/font/files/poppins-39e7f079.woff2 +0 -0
  459. package/dist/ui/font/files/poppins-9607042d.woff2 +0 -0
  460. package/dist/ui/font/files/poppins-9a88fc1f.woff2 +0 -0
  461. package/dist/ui/font/files/poppins-b8f4f752.woff2 +0 -0
  462. package/dist/ui/font/files/poppins-f5e57db4.woff2 +0 -0
  463. package/dist/ui/font/geist-mono.css +104 -0
  464. package/dist/ui/font/geist.css +168 -0
  465. package/dist/ui/font/inter.css +232 -0
  466. package/dist/ui/font/poppins.css +104 -0
  467. package/dist/ui/form.d.ts +1 -0
  468. package/dist/ui/form.js +3 -0
  469. package/dist/ui/index.css +21989 -0
  470. package/dist/ui/input.d.ts +1 -0
  471. package/dist/ui/input.js +1176 -0
  472. package/dist/ui/menu.d.ts +1 -0
  473. package/dist/ui/menu.js +1289 -0
  474. package/dist/ui/modal.d.ts +1 -0
  475. package/dist/ui/modal.js +996 -0
  476. package/dist/ui/nav.d.ts +1 -0
  477. package/dist/ui/nav.js +295 -0
  478. package/dist/ui/radio.d.ts +1 -0
  479. package/dist/ui/radio.js +379 -0
  480. package/dist/ui/rich-text-editor.d.ts +1 -0
  481. package/dist/ui/rich-text-editor.js +1338 -0
  482. package/dist/ui/select.d.ts +1 -0
  483. package/dist/ui/select.js +2200 -0
  484. package/dist/ui/shadow/accordion.js +442 -0
  485. package/dist/ui/shadow/alert.js +218 -0
  486. package/dist/ui/shadow/breadcrumb.js +919 -0
  487. package/dist/ui/shadow/button-dropdown.js +696 -0
  488. package/dist/ui/shadow/button.js +63 -0
  489. package/dist/ui/shadow/card.js +538 -0
  490. package/dist/ui/shadow/chart.js +1685 -0
  491. package/dist/ui/shadow/checkbox.js +457 -0
  492. package/dist/ui/shadow/chip.js +559 -0
  493. package/dist/ui/shadow/date.js +712 -0
  494. package/dist/ui/shadow/drawer.js +869 -0
  495. package/dist/ui/shadow/dropdown-table.js +1620 -0
  496. package/dist/ui/shadow/dropdown.js +547 -0
  497. package/dist/ui/shadow/file-upload.js +731 -0
  498. package/dist/ui/shadow/filter.js +402 -0
  499. package/dist/ui/shadow/input.js +1150 -0
  500. package/dist/ui/shadow/menu.js +899 -0
  501. package/dist/ui/shadow/modal.js +1194 -0
  502. package/dist/ui/shadow/nav.js +240 -0
  503. package/dist/ui/shadow/radio.js +408 -0
  504. package/dist/ui/shadow/rich-text-editor.js +1344 -0
  505. package/dist/ui/shadow/select.js +2167 -0
  506. package/dist/ui/shadow/sidebar.js +606 -0
  507. package/dist/ui/shadow/switch.js +428 -0
  508. package/dist/ui/shadow/table.js +4755 -0
  509. package/dist/ui/shadow/tabs.js +372 -0
  510. package/dist/ui/shadow/tag-input.js +2974 -0
  511. package/dist/ui/shadow/textarea.js +816 -0
  512. package/dist/ui/sidebar.d.ts +1 -0
  513. package/dist/ui/sidebar.js +659 -0
  514. package/dist/ui/switch.d.ts +1 -0
  515. package/dist/ui/switch.js +398 -0
  516. package/dist/ui/table.d.ts +1 -0
  517. package/dist/ui/table.js +4654 -0
  518. package/dist/ui/tabs.d.ts +1 -0
  519. package/dist/ui/tabs.js +379 -0
  520. package/dist/ui/tag-input.d.ts +1 -0
  521. package/dist/ui/tag-input.js +2947 -0
  522. package/dist/ui/textarea.d.ts +1 -0
  523. package/dist/ui/textarea.js +819 -0
  524. package/dist/ui/theme/legacy.css +293 -0
  525. package/dist/ui/theme/luma.css +743 -0
  526. package/dist/ui/theme/lyra.css +754 -0
  527. package/dist/ui/theme/maia.css +673 -0
  528. package/dist/ui/theme/mira.css +802 -0
  529. package/dist/ui/theme/nova.css +662 -0
  530. package/dist/ui/theme/one.css +699 -0
  531. package/dist/ui/theme/rhea.css +742 -0
  532. package/dist/ui/theme/sera.css +845 -0
  533. package/dist/ui/theme/tokens.css +261 -0
  534. package/dist/ui/theme/vega.css +467 -0
  535. package/dist/vite-C5iUK7so.js +329 -0
  536. package/dist/vite.d.ts +1 -0
  537. package/dist/vite.js +2 -0
  538. package/dist/vue.d.ts +282 -0
  539. package/package.json +411 -3
@@ -0,0 +1,919 @@
1
+ import { a as __decorate, f as customElement, i as withShadowUtilityStyles, l as defineHybridPropAliases, o as arrayHasChanged, r as toShadowCss, s as booleanStringConverter, t as flushSsrHydration } from "../../hydration-flush-RB5Tz5nl.js";
2
+ import { t as dispatchMonoEvent } from "../../mono-event-Bi1qP9uN.js";
3
+ import { t as isIconifyClass } from "../../icon-CJkTlmTb.js";
4
+ import { LitElement, html, isServer, nothing, unsafeCSS } from "lit";
5
+ import { property, state } from "lit/decorators.js";
6
+ //#region src/components/breadcrumb/breadcrumb-utils.ts
7
+ /**
8
+ * Coerce any `items` input to a `BreadcrumbItem[]`. Accepts an array (pass-through),
9
+ * a JSON string (`items='[...]'` attribute, or a string assigned to the PROPERTY —
10
+ * which is what nuxt-ssr-lit does when forwarding a Vue `:items="<json>"` binding
11
+ * to the SSR renderer), or anything else (→ `[]`).
12
+ */
13
+ function coerceItems(value) {
14
+ if (Array.isArray(value)) return value;
15
+ if (typeof value === "string") {
16
+ if (!value) return [];
17
+ try {
18
+ const parsed = JSON.parse(value);
19
+ return Array.isArray(parsed) ? parsed : [];
20
+ } catch {
21
+ return [];
22
+ }
23
+ }
24
+ return [];
25
+ }
26
+ function findItem(items, id) {
27
+ for (const item of items) if (item.id === id) return item;
28
+ return null;
29
+ }
30
+ function findItemIndex(items, id) {
31
+ for (let i = 0; i < items.length; i++) if (items[i].id === id) return i;
32
+ return -1;
33
+ }
34
+ /**
35
+ * Resolve which breadcrumb item is the "current" segment.
36
+ * Priority: explicit `modelValue` → first item with `current: true` → last item.
37
+ */
38
+ function resolveCurrentId(items, modelValue) {
39
+ if (modelValue?.id) return modelValue.id;
40
+ for (const item of items) if (item.current) return item.id;
41
+ if (items.length) return items[items.length - 1].id;
42
+ return "";
43
+ }
44
+ function generateBreadcrumbRootClasses(props) {
45
+ return [
46
+ "mono-breadcrumb",
47
+ props.variant,
48
+ props.size,
49
+ props.color,
50
+ props.truncate ? "truncate" : "",
51
+ props.disabled ? "disabled" : "",
52
+ props.cssClassName ?? "",
53
+ props.rootExtra ?? ""
54
+ ].filter(Boolean).join(" ");
55
+ }
56
+ function validateBreadcrumbProps(props) {
57
+ const errors = [];
58
+ if (props.variant && ![
59
+ "default",
60
+ "contained",
61
+ "underlined"
62
+ ].includes(props.variant)) errors.push(`Invalid variant: ${String(props.variant)}`);
63
+ if (props.size && ![
64
+ "xs",
65
+ "sm",
66
+ "md",
67
+ "lg",
68
+ "xl",
69
+ "xxl"
70
+ ].includes(props.size)) errors.push(`Invalid size: ${String(props.size)}`);
71
+ if (props.color && ![
72
+ "primary",
73
+ "secondary",
74
+ "success",
75
+ "danger",
76
+ "warning",
77
+ "info",
78
+ "surface"
79
+ ].includes(props.color)) errors.push(`Invalid color: ${String(props.color)}`);
80
+ return errors;
81
+ }
82
+ /**
83
+ * The Basecoat styling attributes for the breadcrumb ROOT, mirroring the props
84
+ * one for one. A prop at its DEFAULT emits nothing — `:not([mono-size])` is md,
85
+ * `:not([mono-color])` is primary, `:not([mono-variant])` is default — so the
86
+ * rendered DOM is also the shortest hand-written markup that paints the same
87
+ * (see breadcrumb.css). Shared so `<mono-breadcrumb>` and a standalone
88
+ * `<mono-breadcrumb-list>` cannot drift apart.
89
+ */
90
+ function breadcrumbRootAttrs(props) {
91
+ return {
92
+ size: props.size === "md" ? null : props.size,
93
+ color: props.color === "primary" ? null : props.color,
94
+ variant: props.variant === "default" ? null : props.variant
95
+ };
96
+ }
97
+ //#endregion
98
+ //#region src/components/breadcrumb/breadcrumb-render.ts
99
+ function clsFor(base, key, cssClass) {
100
+ const extra = cssClass?.[key];
101
+ return extra ? `${base} ${extra}` : base;
102
+ }
103
+ function renderBreadcrumbIcon(item, ctx) {
104
+ const slotNodes = ctx.getSlotIconNodes(item.id);
105
+ const hasSlot = !!(slotNodes && slotNodes.length);
106
+ if (!hasSlot && !item.icon) return nothing;
107
+ if (ctx.iconSlot && (hasSlot || isIconifyClass(item.icon))) return html`
108
+ <span
109
+ class=${clsFor("mono-breadcrumb-icon", "icon", ctx.cssClass)}
110
+ mono-icon
111
+ aria-hidden="true"
112
+ >
113
+ <slot name=${`icon-${item.id}`}></slot>
114
+ </span>
115
+ `;
116
+ if (hasSlot) return html`
117
+ <span
118
+ class=${clsFor("mono-breadcrumb-icon", "icon", ctx.cssClass)}
119
+ mono-icon
120
+ aria-hidden="true"
121
+ >
122
+ <span data-mono-slot=${`icon-${item.id}`}></span>
123
+ </span>
124
+ `;
125
+ if (isIconifyClass(item.icon)) return html`
126
+ <span
127
+ class=${clsFor("mono-breadcrumb-icon", "icon", ctx.cssClass)}
128
+ mono-icon
129
+ aria-hidden="true"
130
+ >
131
+ <span class=${`mono-breadcrumb-iconify ${item.icon}`} mono-glyph></span>
132
+ </span>
133
+ `;
134
+ return html`
135
+ <span
136
+ class=${clsFor("mono-breadcrumb-icon", "icon", ctx.cssClass)}
137
+ mono-icon
138
+ aria-hidden="true"
139
+ >
140
+ ${item.icon}
141
+ </span>
142
+ `;
143
+ }
144
+ function renderBreadcrumbBadge(item, ctx) {
145
+ if (item.badge === void 0 || item.badge === null || item.badge === "") return nothing;
146
+ const colorClass = item.badgeColor && item.badgeColor !== "default" ? item.badgeColor : "";
147
+ return html`
148
+ <span
149
+ class=${`${clsFor("mono-breadcrumb-badge", "badge", ctx.cssClass)} ${colorClass}`.trim()}
150
+ mono-badge=${colorClass}
151
+ >
152
+ ${item.badge}
153
+ </span>
154
+ `;
155
+ }
156
+ function renderBreadcrumbItemRow(item, index, ctx) {
157
+ const current = ctx.isCurrent(item.id);
158
+ const itemClasses = [
159
+ clsFor("mono-breadcrumb-item", "item", ctx.cssClass),
160
+ current ? "current" : "",
161
+ current && ctx.cssClass?.itemCurrent ? ctx.cssClass.itemCurrent : "",
162
+ item.disabled ? "disabled" : "",
163
+ item.disabled && ctx.cssClass?.itemDisabled ? ctx.cssClass.itemDisabled : ""
164
+ ].filter(Boolean).join(" ");
165
+ const itemAttrs = {
166
+ current,
167
+ disabled: !!item.disabled
168
+ };
169
+ const inner = html`
170
+ ${renderBreadcrumbIcon(item, ctx)}
171
+ <span class=${clsFor("mono-breadcrumb-content", "content", ctx.cssClass)} mono-content>
172
+ <span class=${clsFor("mono-breadcrumb-title", "title", ctx.cssClass)} mono-title>
173
+ ${item.title ?? item.id}
174
+ </span>
175
+ </span>
176
+ ${renderBreadcrumbBadge(item, ctx)}
177
+ `;
178
+ if (current) return html`
179
+ <li
180
+ class=${itemClasses}
181
+ mono-item
182
+ ?mono-current=${itemAttrs.current}
183
+ ?mono-disabled=${itemAttrs.disabled}
184
+ aria-current="page"
185
+ >
186
+ <span
187
+ class=${clsFor("mono-breadcrumb-action", "action", ctx.cssClass)}
188
+ mono-action
189
+ aria-disabled=${item.disabled ? "true" : "false"}
190
+ >
191
+ ${inner}
192
+ </span>
193
+ </li>
194
+ `;
195
+ if (item.href) return html`
196
+ <li class=${itemClasses} mono-item ?mono-disabled=${itemAttrs.disabled}>
197
+ <a
198
+ class=${clsFor("mono-breadcrumb-action", "action", ctx.cssClass)}
199
+ mono-action
200
+ href=${item.href}
201
+ aria-disabled=${item.disabled ? "true" : "false"}
202
+ @click=${(e) => ctx.onItemClick(item, index, e)}
203
+ >
204
+ ${inner}
205
+ </a>
206
+ </li>
207
+ `;
208
+ return html`
209
+ <li class=${itemClasses} mono-item ?mono-disabled=${itemAttrs.disabled}>
210
+ <button
211
+ type="button"
212
+ class=${clsFor("mono-breadcrumb-action", "action", ctx.cssClass)}
213
+ mono-action
214
+ aria-disabled=${item.disabled ? "true" : "false"}
215
+ ?disabled=${item.disabled || ctx.disabled}
216
+ @click=${(e) => ctx.onItemClick(item, index, e)}
217
+ >
218
+ ${inner}
219
+ </button>
220
+ </li>
221
+ `;
222
+ }
223
+ function renderBreadcrumbSeparator(ctx, index) {
224
+ if (ctx.hasSeparatorSlot) return html`
225
+ <li
226
+ class=${clsFor("mono-breadcrumb-sep", "separator", ctx.cssClass)}
227
+ mono-separator
228
+ aria-hidden="true"
229
+ >
230
+ <span data-mono-slot=${`separator-${index}`}></span>
231
+ </li>
232
+ `;
233
+ return html`
234
+ <li
235
+ class=${clsFor("mono-breadcrumb-sep", "separator", ctx.cssClass)}
236
+ mono-separator
237
+ aria-hidden="true"
238
+ >
239
+ ${ctx.separator}
240
+ </li>
241
+ `;
242
+ }
243
+ function renderBreadcrumbList(items, ctx) {
244
+ const out = [];
245
+ items.forEach((item, index) => {
246
+ if (index > 0) out.push(renderBreadcrumbSeparator(ctx, index));
247
+ out.push(renderBreadcrumbItemRow(item, index, ctx));
248
+ });
249
+ return out;
250
+ }
251
+ /**
252
+ * Render items with a leading separator BEFORE each item — used when the child
253
+ * `<mono-breadcrumb-list>` is composed inside a parent `<mono-breadcrumb>` and
254
+ * we don't know whether this child is the first sibling. The very first
255
+ * separator is hidden via CSS:
256
+ * `.mono-breadcrumb-list > mono-breadcrumb-list:first-child > .mono-breadcrumb-sep:first-child { display: none; }`
257
+ */
258
+ function renderBreadcrumbItemsLeadingSep(items, ctx, startIndex = 0) {
259
+ const out = [];
260
+ items.forEach((item, i) => {
261
+ const index = startIndex + i;
262
+ out.push(renderBreadcrumbSeparator(ctx, index));
263
+ out.push(renderBreadcrumbItemRow(item, index, ctx));
264
+ });
265
+ return out;
266
+ }
267
+ //#endregion
268
+ //#region src/components/breadcrumb/breadcrumb-core.ts
269
+ /**
270
+ * `MonoBreadcrumbCore` — all render-mode-agnostic logic for `mono-breadcrumb`:
271
+ * reactive props (incl. the SSR `items` string→array coercion), hybrid aliases,
272
+ * camelCase attribute fallbacks, the child-list registry + state propagation,
273
+ * item activation + events, and the `<nav>` chrome `render()`. The light build
274
+ * keeps its `[data-mono-slot]` capture (`slot="body"`/`separator`/`icon-*`) and
275
+ * overrides `_renderBody()`; the shadow build renders the whole list from `items`
276
+ * in one shadow root and overrides `_useIconSlots()` (mirrors `mono-menu`).
277
+ *
278
+ * SSR-safe: no `document`/`window` access except `focus()` (guarded by isServer).
279
+ */
280
+ var MonoBreadcrumbCore = (superClass) => {
281
+ class MonoBreadcrumbCoreClass extends superClass {
282
+ constructor(...args) {
283
+ super(...args);
284
+ this.items = [];
285
+ this.modelValue = null;
286
+ this.variant = "default";
287
+ this.size = "md";
288
+ this.color = "primary";
289
+ this.separator = "›";
290
+ this.truncate = false;
291
+ this.disabled = false;
292
+ this.ariaLabel = "Breadcrumb";
293
+ this.cssClass = {};
294
+ this.cssClassName = "";
295
+ this._slotIcons = /* @__PURE__ */ new Map();
296
+ this._slotSeparator = [];
297
+ this._listChildren = /* @__PURE__ */ new Set();
298
+ defineHybridPropAliases(this, ["modelValue", "cssClass"]);
299
+ Object.defineProperty(this, "css-class", {
300
+ get: () => this.cssClass,
301
+ set: (value) => this._setCssClass(value),
302
+ configurable: true,
303
+ enumerable: false
304
+ });
305
+ Object.defineProperty(this, "cssclass", {
306
+ get: () => this.cssClass,
307
+ set: (value) => this._setCssClass(value),
308
+ configurable: true,
309
+ enumerable: false
310
+ });
311
+ }
312
+ static get observedAttributes() {
313
+ return [
314
+ ...super.observedAttributes ?? [],
315
+ "modelvalue",
316
+ "model-value",
317
+ "css-class",
318
+ "cssclass"
319
+ ];
320
+ }
321
+ attributeChangedCallback(name, oldValue, newValue) {
322
+ super.attributeChangedCallback(name, oldValue, newValue);
323
+ if (oldValue === newValue) return;
324
+ if (name === "modelvalue" || name === "model-value") {
325
+ this._setModelValueFromAttribute(newValue);
326
+ return;
327
+ }
328
+ if (name === "css-class" || name === "cssclass") this._setCssClass(newValue);
329
+ }
330
+ willUpdate(changed) {
331
+ if (typeof this.items === "string") this.items = coerceItems(this.items);
332
+ if (typeof this.modelValue === "string") this._setModelValueFromAttribute(this.modelValue);
333
+ super.willUpdate(changed);
334
+ }
335
+ _setModelValueFromAttribute(value) {
336
+ if (value == null || value === "") {
337
+ this.modelValue = null;
338
+ return;
339
+ }
340
+ const trimmed = value.trim();
341
+ if (trimmed.startsWith("{") && trimmed.endsWith("}")) try {
342
+ this.modelValue = JSON.parse(trimmed);
343
+ return;
344
+ } catch {}
345
+ const found = findItem(this.items, trimmed);
346
+ this.modelValue = found ?? { id: trimmed };
347
+ }
348
+ _setCssClass(value) {
349
+ if (value == null) {
350
+ this.cssClass = {};
351
+ this.cssClassName = "";
352
+ return;
353
+ }
354
+ if (typeof value === "object") {
355
+ this.cssClass = value;
356
+ return;
357
+ }
358
+ if (typeof value === "string") {
359
+ const trimmed = value.trim();
360
+ if (!trimmed) {
361
+ this.cssClass = {};
362
+ this.cssClassName = "";
363
+ return;
364
+ }
365
+ if (trimmed.startsWith("{") && trimmed.endsWith("}")) try {
366
+ this.cssClass = JSON.parse(trimmed);
367
+ return;
368
+ } catch {}
369
+ this.cssClassName = trimmed;
370
+ }
371
+ }
372
+ _cls(base, key) {
373
+ const extra = this.cssClass?.[key];
374
+ return extra ? `${base} ${extra}` : base;
375
+ }
376
+ get _rootClasses() {
377
+ return generateBreadcrumbRootClasses({
378
+ variant: this.variant,
379
+ size: this.size,
380
+ color: this.color,
381
+ truncate: this.truncate,
382
+ disabled: this.disabled,
383
+ cssClassName: this.cssClassName,
384
+ rootExtra: this.cssClass?.root
385
+ });
386
+ }
387
+ _resolvedCurrentId() {
388
+ return resolveCurrentId(this.items, this.modelValue);
389
+ }
390
+ _isCurrent(id) {
391
+ if (this._listChildren.size && !this.items.length) {
392
+ if (this.modelValue?.id) return this.modelValue.id === id;
393
+ return resolveCurrentId(this._registeredItems(), null) === id;
394
+ }
395
+ return this._resolvedCurrentId() === id;
396
+ }
397
+ /** Every child list's items, in registration (DOM) order. */
398
+ _registeredItems() {
399
+ const out = [];
400
+ for (const child of this._listChildren) out.push(...child.getBreadcrumbItems?.() ?? []);
401
+ return out;
402
+ }
403
+ _findRegisteredItem(id) {
404
+ for (const child of this._listChildren) {
405
+ const found = findItem(child.getBreadcrumbItems?.() ?? [], id);
406
+ if (found) return found;
407
+ }
408
+ return null;
409
+ }
410
+ _findAnyItem(id) {
411
+ return findItem(this.items, id) ?? this._findRegisteredItem(id);
412
+ }
413
+ /** Programmatic select. Updates modelValue and emits `change`. */
414
+ select(id) {
415
+ const item = this._findAnyItem(id);
416
+ if (!item) return;
417
+ this._handleItemActivation(item, findItemIndex(this.items, id));
418
+ }
419
+ focus() {
420
+ if (isServer) return;
421
+ this.renderRoot.querySelector("a.mono-breadcrumb-action, button.mono-breadcrumb-action")?.focus();
422
+ }
423
+ /**
424
+ * Public hooks consumed by descendant `<mono-breadcrumb-list>` instances
425
+ * rendered inside `slot="body"` (light build).
426
+ */
427
+ requestItemActivation(item, index, event) {
428
+ this._handleItemActivation(item, index, event);
429
+ }
430
+ isItemCurrent(id) {
431
+ return this._isCurrent(id);
432
+ }
433
+ getSlotIconNodes(id) {
434
+ return this._slotIcons.get(id);
435
+ }
436
+ hasSeparatorSlot() {
437
+ return this._slotSeparator.length > 0;
438
+ }
439
+ getSeparatorString() {
440
+ return this.separator;
441
+ }
442
+ /** @internal called by `<mono-breadcrumb-list>` from its connectedCallback. */
443
+ _registerListChild(child) {
444
+ this._listChildren.add(child);
445
+ }
446
+ /** @internal called by `<mono-breadcrumb-list>` from its disconnectedCallback. */
447
+ _unregisterListChild(child) {
448
+ this._listChildren.delete(child);
449
+ }
450
+ _handleItemActivation(item, index, event) {
451
+ if (item.disabled || this.disabled) return;
452
+ dispatchMonoEvent(this, "click", {
453
+ value: item.id,
454
+ item,
455
+ index,
456
+ sourceEvent: event
457
+ });
458
+ const oldValue = this.modelValue;
459
+ if (oldValue?.id === item.id) return;
460
+ this.modelValue = item;
461
+ const detail = {
462
+ modelValue: item,
463
+ currentValue: item,
464
+ oldValue,
465
+ sourceEvent: event
466
+ };
467
+ dispatchMonoEvent(this, "change", detail);
468
+ }
469
+ _notifyListChildren(changed) {
470
+ if (!this._listChildren.size) return;
471
+ if (![
472
+ "modelValue",
473
+ "variant",
474
+ "size",
475
+ "color",
476
+ "separator",
477
+ "truncate",
478
+ "disabled",
479
+ "cssClass",
480
+ "cssClassName"
481
+ ].some((k) => changed.has(k))) return;
482
+ for (const child of this._listChildren) child.requestUpdate();
483
+ }
484
+ /** Build the shared render context. */
485
+ _renderContext() {
486
+ return {
487
+ cssClass: this.cssClass,
488
+ separator: this.separator,
489
+ hasSeparatorSlot: this._slotSeparator.length > 0,
490
+ iconSlot: this._useIconSlots(),
491
+ disabled: this.disabled,
492
+ isCurrent: (id) => this._isCurrent(id),
493
+ getSlotIconNodes: (id) => this._slotIcons.get(id),
494
+ onItemClick: (item, index, e) => this._handleItemActivation(item, index, e)
495
+ };
496
+ }
497
+ /**
498
+ * Whether per-item icons render through a native `<slot>` (shadow build) vs
499
+ * the light-DOM `data-mono-slot` + inline `i-…` span (light build).
500
+ */
501
+ _useIconSlots() {
502
+ return false;
503
+ }
504
+ /**
505
+ * The items to render for THIS render pass. Defaults to the full `items`.
506
+ * The shadow build overrides this to slice down to the server-rendered crumb
507
+ * count during the hydration render, so the first client render matches the
508
+ * SSR'd DOM exactly (avoids "shorter than expected iterable" + double render
509
+ * when `items` arrives via `.prop`, which @lit-labs/ssr does not forward).
510
+ */
511
+ _itemsForRender() {
512
+ return this.items;
513
+ }
514
+ /** The list body. Light build overrides this to support `slot="body"`. */
515
+ _renderBody() {
516
+ return html`
517
+ <ol class=${this._cls("mono-breadcrumb-list", "list")} mono-list>
518
+ ${renderBreadcrumbList(this._itemsForRender(), this._renderContext())}
519
+ </ol>
520
+ `;
521
+ }
522
+ render() {
523
+ const attrs = breadcrumbRootAttrs(this);
524
+ return html`
525
+ <nav
526
+ class=${this._rootClasses}
527
+ aria-label=${this.ariaLabel ?? "Breadcrumb"}
528
+ mono-breadcrumb
529
+ mono-size=${attrs.size ?? nothing}
530
+ mono-color=${attrs.color ?? nothing}
531
+ mono-variant=${attrs.variant ?? nothing}
532
+ ?mono-truncate=${this.truncate}
533
+ ?mono-disabled=${this.disabled}
534
+ >
535
+ ${this._renderBody()}
536
+ </nav>
537
+ `;
538
+ }
539
+ }
540
+ __decorate([property({
541
+ attribute: "items",
542
+ converter: {
543
+ fromAttribute: (value) => coerceItems(value),
544
+ toAttribute: () => null
545
+ },
546
+ hasChanged: arrayHasChanged
547
+ })], MonoBreadcrumbCoreClass.prototype, "items", void 0);
548
+ __decorate([property({ attribute: false })], MonoBreadcrumbCoreClass.prototype, "modelValue", void 0);
549
+ __decorate([property({ type: String })], MonoBreadcrumbCoreClass.prototype, "variant", void 0);
550
+ __decorate([property({ type: String })], MonoBreadcrumbCoreClass.prototype, "size", void 0);
551
+ __decorate([property({ type: String })], MonoBreadcrumbCoreClass.prototype, "color", void 0);
552
+ __decorate([property({ type: String })], MonoBreadcrumbCoreClass.prototype, "separator", void 0);
553
+ __decorate([property({
554
+ reflect: true,
555
+ converter: booleanStringConverter
556
+ })], MonoBreadcrumbCoreClass.prototype, "truncate", void 0);
557
+ __decorate([property({
558
+ reflect: true,
559
+ converter: booleanStringConverter
560
+ })], MonoBreadcrumbCoreClass.prototype, "disabled", void 0);
561
+ __decorate([property({ attribute: "aria-label" })], MonoBreadcrumbCoreClass.prototype, "ariaLabel", void 0);
562
+ __decorate([property({ attribute: false })], MonoBreadcrumbCoreClass.prototype, "cssClass", void 0);
563
+ __decorate([property({ attribute: false })], MonoBreadcrumbCoreClass.prototype, "cssClassName", void 0);
564
+ __decorate([state()], MonoBreadcrumbCoreClass.prototype, "_slotIcons", void 0);
565
+ return MonoBreadcrumbCoreClass;
566
+ };
567
+ //#endregion
568
+ //#region src/components/breadcrumb/breadcrumb.css?raw
569
+ var breadcrumb_default = "/* @unocss-include */\r\n\r\n/* =========================================================================\r\n mono-breadcrumb — a port of Basecoat's `.breadcrumb` (basecoat-css@1.0.2,\r\n vega style).\r\n\r\n Styled by ATTRIBUTE, like Basecoat — and the attributes mirror the element's\r\n props one for one, so hand-written markup reads like the Lit / Vue tag:\r\n\r\n <mono-breadcrumb size=\"lg\" color=\"success\" variant=\"contained\" truncate>\r\n <nav mono-breadcrumb mono-size=\"lg\" mono-color=\"success\"\r\n mono-variant=\"contained\" mono-truncate aria-label=\"Breadcrumb\">\r\n <ol mono-list>\r\n <li mono-item>\r\n <a mono-action href=\"/\">\r\n <span mono-icon>…</span>\r\n <span mono-content><span mono-title>Home</span></span>\r\n <span mono-badge=\"info\">3</span>\r\n </a>\r\n </li>\r\n <li mono-separator aria-hidden=\"true\">›</li>\r\n <li mono-item mono-current aria-current=\"page\">\r\n <span mono-action><span mono-content><span mono-title>Now</span></span></span>\r\n </li>\r\n </ol>\r\n </nav>\r\n\r\n An absent attribute is the prop's default (`:not([mono-size])` = md,\r\n `:not([mono-color])` = primary, `:not([mono-variant])` = default). The old\r\n classes (`.mono-breadcrumb.md.primary.default`) are still emitted as inert\r\n hooks until 2.0 but no rule here reads them.\r\n\r\n Selector map (ours ≡ upstream):\r\n [mono-breadcrumb] ≡ .breadcrumb (the <nav>) — a var scope\r\n [mono-list] ≡ .breadcrumb > ol (m-0 flex list-none flex-wrap\r\n items-center p-0 break-words, text-muted-foreground\r\n gap-1.5 text-sm sm:gap-2.5)\r\n [mono-item] ≡ .breadcrumb li (inline-flex items-center gap-1.5)\r\n [mono-separator] ≡ .breadcrumb li[aria-hidden='true'] (select-none),\r\n its glyph ≡ li[aria-hidden='true'] > svg (size-3.5)\r\n [mono-action] ≡ .breadcrumb a (rounded-sm outline-none\r\n focus-visible:ring-[3px] focus-visible:ring-ring/50,\r\n transition-colors hover:text-foreground)\r\n [mono-current] ≡ .breadcrumb [aria-current='page'] (font-normal\r\n text-foreground, cursor-default)\r\n [mono-icon] ≡ .breadcrumb li > span[aria-hidden='true']\r\n (flex items-center justify-center size-5,\r\n [&>svg]:size-4)\r\n [mono-badge] ≡ .badge — EXTENSION here (upstream's breadcrumb has\r\n none), so it borrows the badge's own shape\r\n [mono-content]/[mono-title] ≡ EXTENSION (upstream puts the label straight\r\n in the <a>; mono wraps it so `truncate` has\r\n something to clamp)\r\n [mono-variant=…] ≡ EXTENSION (upstream ships one breadcrumb)\r\n\r\n THE DEFAULT VARIANT IS NOW BARE TEXT. Upstream's breadcrumb links carry no\r\n padding, no background and no border — `rounded-sm` exists only so the focus\r\n ring has a shape. The pre-port default padded every segment into a 5px-radius\r\n chip. `contained` is where that look lives now; `--mono-breadcrumb-pad-x`/`-y`\r\n are still the knobs, they just start at 0.\r\n\r\n COLOUR IS A DEVIATION. Upstream inks hover and the current segment in\r\n `--foreground`. mono's breadcrumb has a `color` prop, so it inks them in the\r\n ROLE instead — and `color=\"surface\"` resolves the accent back to\r\n `--foreground`, which is upstream exactly.\r\n\r\n NO GRADIENTS. The contained variant's current segment was a two-stop gradient\r\n with a coloured glow; it is now the flat role fill on the role's own\r\n `-foreground`, the way `.btn[data-variant='primary']` is.\r\n\r\n DARK MODE comes free — every colour resolves through a Basecoat token that\r\n already flips. A selector crosses neither the custom-element host nor the\r\n shadow boundary, so no `.dark` rule can live in component CSS.\r\n\r\n FLAVORS set `--mono-breadcrumb-{gap,font,icon-size,sep-*,radius,badge-*}`\r\n (+ the per-size forms); every fallback here is vega's value\r\n (`node scripts/basecoat-styles.mjs --varying \".breadcrumb > ol\"`).\r\n ========================================================================= */\r\n\r\nmono-breadcrumb {\r\n display: block;\r\n}\r\n\r\n/* A composed child list renders its <li>s straight into the parent's <ol>. */\r\nmono-breadcrumb-list {\r\n display: contents;\r\n}\r\n\r\n/* =========================================\r\n Root — the var scope\r\n ========================================= */\r\n\r\n[mono-breadcrumb] {\r\n /* ── the roles, each a public knob over a Basecoat token ────────────────── */\r\n --_mono-breadcrumb-primary: var(--mono-breadcrumb-primary, var(--primary));\r\n --_mono-breadcrumb-secondary: var(--mono-breadcrumb-secondary, var(--secondary-foreground));\r\n --_mono-breadcrumb-success: var(--mono-breadcrumb-success, var(--success));\r\n --_mono-breadcrumb-danger: var(--mono-breadcrumb-danger, var(--destructive));\r\n --_mono-breadcrumb-warning: var(--mono-breadcrumb-warning, var(--warning));\r\n --_mono-breadcrumb-info: var(--mono-breadcrumb-info, var(--info));\r\n --_mono-breadcrumb-teal: var(--mono-breadcrumb-teal, var(--teal));\r\n --_mono-breadcrumb-purple: var(--mono-breadcrumb-purple, var(--purple));\r\n --_mono-breadcrumb-neutral: var(--mono-breadcrumb-neutral, var(--neutral));\r\n --_mono-breadcrumb-dark: var(--mono-breadcrumb-dark, var(--dark));\r\n\r\n /* The colour in play. DEVIATION: upstream inks hover and the current segment\r\n in `--foreground`; `color=\"surface\"` is that exactly. */\r\n --_mono-breadcrumb-accent: var(--mono-breadcrumb-accent, var(--_mono-breadcrumb-accent-preset, var(--_mono-breadcrumb-primary)));\r\n --_mono-breadcrumb-on-accent: var(--mono-breadcrumb-on-accent, var(--_mono-breadcrumb-on-accent-preset, var(--primary-foreground)));\r\n\r\n /* ── ink ────────────────────────────────────────────────────────────────\r\n basecoat@1.0.2 styles/vega.css .breadcrumb > ol — text-muted-foreground gap-1.5 text-sm sm:gap-2.5\r\n basecoat@1.0.2 styles/vega.css .breadcrumb [aria-current='page'] — font-normal text-foreground */\r\n --_mono-breadcrumb-text: var(--mono-breadcrumb-text, var(--muted-foreground));\r\n --_mono-breadcrumb-text-strong: var(--mono-breadcrumb-text-strong, var(--foreground));\r\n --_mono-breadcrumb-sep-color: var(--mono-breadcrumb-sep-color, var(--_mono-breadcrumb-text));\r\n --_mono-breadcrumb-surface: var(--mono-breadcrumb-surface, var(--background));\r\n --_mono-breadcrumb-border: var(--mono-breadcrumb-border, var(--border));\r\n\r\n /* ── md metrics live on the unqualified root ON PURPOSE ──────────────────\r\n `gap-1.5` is the mobile step; `sm:gap-2.5` widens it (see the @media below). */\r\n --_mono-breadcrumb-gap: var(--mono-breadcrumb-gap, var(--_mono-breadcrumb-gap-preset, var(--mono-breadcrumb-gap-md, calc(var(--mono-spacing) * 1.5))));\r\n --_mono-breadcrumb-gap-wide: var(--mono-breadcrumb-gap-wide, var(--_mono-breadcrumb-gap-wide-preset, var(--mono-breadcrumb-gap-wide-md, calc(var(--mono-spacing) * 2.5))));\r\n --_mono-breadcrumb-font: var(--mono-breadcrumb-font, var(--_mono-breadcrumb-font-preset, var(--mono-breadcrumb-font-md, var(--mono-text-sm))));\r\n --_mono-breadcrumb-line-height: var(--mono-breadcrumb-line-height, var(--_mono-breadcrumb-line-height-preset, var(--mono-breadcrumb-line-height-md, var(--mono-text-sm--lh))));\r\n --_mono-breadcrumb-font-weight: var(--mono-breadcrumb-font-weight, var(--mono-font-weight-normal));\r\n /* basecoat@1.0.2 styles/vega.css .breadcrumb [aria-current='page'] — font-normal text-foreground:\r\n upstream does NOT bold the current segment. ONE restores the bold it had. */\r\n --_mono-breadcrumb-current-weight: var(--mono-breadcrumb-current-weight, var(--mono-font-weight-normal));\r\n /* basecoat@1.0.2 styles/vega.css .sidebar nav h3 — text-sidebar-foreground/70 ring-sidebar-ring h-8 rounded-md px-2 text-xs font-medium focus-visible:ring-2 [&>svg]:size-4 transition-[margin,opacity] duration-200 ease-linear\r\n A breadcrumb's current crumb is the page's own label, and each flavor has a\r\n house style for one — sera sets its chrome headings uppercase +\r\n tracking-wider + semibold, and this is what lets it say so. */\r\n --_mono-breadcrumb-current-transform: var(--mono-breadcrumb-current-transform, none);\r\n --_mono-breadcrumb-current-tracking: var(--mono-breadcrumb-current-tracking, normal);\r\n /* basecoat@1.0.2 styles/vega.css .breadcrumb li > span[aria-hidden='true'] — size-5 [&>svg]:size-4 */\r\n --_mono-breadcrumb-icon-size: var(--mono-breadcrumb-icon-size, var(--_mono-breadcrumb-icon-size-preset, var(--mono-breadcrumb-icon-size-md, calc(var(--mono-spacing) * 4))));\r\n /* basecoat@1.0.2 styles/vega.css .breadcrumb li[aria-hidden='true'] > svg — size-3.5 */\r\n --_mono-breadcrumb-sep-size: var(--mono-breadcrumb-sep-size, var(--_mono-breadcrumb-sep-size-preset, var(--mono-breadcrumb-sep-size-md, calc(var(--mono-spacing) * 3.5))));\r\n --_mono-breadcrumb-sep-font: var(--mono-breadcrumb-sep-font, var(--_mono-breadcrumb-sep-font-preset, var(--mono-breadcrumb-sep-font-md, var(--mono-text-sm))));\r\n\r\n /* ── the action box. Upstream's <a> is BARE — `rounded-sm` is only there to\r\n shape the focus ring — so the padding starts at 0 and `contained` /\r\n `underlined` are what turn it into a chip. ───────────────────────────── */\r\n --_mono-breadcrumb-pad-x: var(--mono-breadcrumb-pad-x, var(--_mono-breadcrumb-pad-x-preset, 0px));\r\n --_mono-breadcrumb-pad-y: var(--mono-breadcrumb-pad-y, var(--_mono-breadcrumb-pad-y-preset, 0px));\r\n --_mono-breadcrumb-radius: var(--mono-breadcrumb-radius, var(--_mono-breadcrumb-radius-preset, var(--mono-breadcrumb-radius-md, var(--mono-radius-sm))));\r\n --_mono-breadcrumb-border-width: var(--mono-breadcrumb-border-width, var(--mono-border-width));\r\n\r\n /* ── the badge — EXTENSION, borrowing `.badge`'s shape ───────────────────\r\n basecoat@1.0.2 styles/vega.css .badge — h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all [&>svg]:size-3! */\r\n --_mono-breadcrumb-badge-height: var(--mono-breadcrumb-badge-height, calc(var(--mono-spacing) * 5));\r\n --_mono-breadcrumb-badge-pad-x: var(--mono-breadcrumb-badge-pad-x, calc(var(--mono-spacing) * 2));\r\n --_mono-breadcrumb-badge-radius: var(--mono-breadcrumb-badge-radius, var(--mono-radius-4xl));\r\n --_mono-breadcrumb-badge-font: var(--mono-breadcrumb-badge-font, var(--mono-text-xs));\r\n --_mono-breadcrumb-badge-weight: var(--mono-breadcrumb-badge-weight, var(--mono-font-weight-medium));\r\n --_mono-breadcrumb-badge-bg: var(--mono-breadcrumb-badge-bg, var(--secondary));\r\n --_mono-breadcrumb-badge-color: var(--mono-breadcrumb-badge-color, var(--secondary-foreground));\r\n\r\n display: block;\r\n width: 100%;\r\n font-family: inherit;\r\n color: var(--_mono-breadcrumb-text);\r\n}\r\n\r\n[mono-breadcrumb],\r\n:where([mono-breadcrumb]) *,\r\n:where([mono-breadcrumb]) *::before,\r\n:where([mono-breadcrumb]) *::after {\r\n box-sizing: border-box;\r\n}\r\n\r\n/* =========================================\r\n Sizes — EXTENSION: upstream ships one breadcrumb\r\n ========================================= */\r\n\r\n[mono-breadcrumb][mono-size=\"xs\"] {\r\n --_mono-breadcrumb-gap-preset: var(--mono-breadcrumb-gap-xs, var(--mono-spacing));\r\n --_mono-breadcrumb-gap-wide-preset: var(--mono-breadcrumb-gap-wide-xs, calc(var(--mono-spacing) * 1.5));\r\n --_mono-breadcrumb-font-preset: var(--mono-breadcrumb-font-xs, var(--mono-text-xs));\r\n --_mono-breadcrumb-line-height-preset: var(--mono-text-xs--lh);\r\n --_mono-breadcrumb-icon-size-preset: var(--mono-breadcrumb-icon-size-xs, calc(var(--mono-spacing) * 3));\r\n --_mono-breadcrumb-sep-size-preset: var(--mono-breadcrumb-sep-size-xs, calc(var(--mono-spacing) * 2.5));\r\n --_mono-breadcrumb-sep-font-preset: var(--mono-breadcrumb-sep-font-xs, var(--mono-text-xs));\r\n --_mono-breadcrumb-radius-preset: var(--mono-breadcrumb-radius-xs, var(--mono-radius-sm));\r\n}\r\n\r\n[mono-breadcrumb][mono-size=\"sm\"] {\r\n --_mono-breadcrumb-gap-preset: var(--mono-breadcrumb-gap-sm, var(--mono-spacing));\r\n --_mono-breadcrumb-gap-wide-preset: var(--mono-breadcrumb-gap-wide-sm, calc(var(--mono-spacing) * 2));\r\n --_mono-breadcrumb-font-preset: var(--mono-breadcrumb-font-sm, var(--mono-text-xs));\r\n --_mono-breadcrumb-line-height-preset: var(--mono-text-xs--lh);\r\n --_mono-breadcrumb-icon-size-preset: var(--mono-breadcrumb-icon-size-sm, calc(var(--mono-spacing) * 3.5));\r\n --_mono-breadcrumb-sep-size-preset: var(--mono-breadcrumb-sep-size-sm, calc(var(--mono-spacing) * 3));\r\n --_mono-breadcrumb-sep-font-preset: var(--mono-breadcrumb-sep-font-sm, var(--mono-text-xs));\r\n --_mono-breadcrumb-radius-preset: var(--mono-breadcrumb-radius-sm, var(--mono-radius-sm));\r\n}\r\n\r\n[mono-breadcrumb][mono-size=\"lg\"] {\r\n --_mono-breadcrumb-gap-preset: var(--mono-breadcrumb-gap-lg, calc(var(--mono-spacing) * 2));\r\n --_mono-breadcrumb-gap-wide-preset: var(--mono-breadcrumb-gap-wide-lg, calc(var(--mono-spacing) * 3));\r\n --_mono-breadcrumb-font-preset: var(--mono-breadcrumb-font-lg, var(--mono-text-base));\r\n --_mono-breadcrumb-line-height-preset: var(--mono-text-base--lh);\r\n --_mono-breadcrumb-icon-size-preset: var(--mono-breadcrumb-icon-size-lg, calc(var(--mono-spacing) * 4.5));\r\n --_mono-breadcrumb-sep-size-preset: var(--mono-breadcrumb-sep-size-lg, calc(var(--mono-spacing) * 4));\r\n --_mono-breadcrumb-sep-font-preset: var(--mono-breadcrumb-sep-font-lg, var(--mono-text-base));\r\n --_mono-breadcrumb-radius-preset: var(--mono-breadcrumb-radius-lg, var(--mono-radius-md));\r\n}\r\n\r\n[mono-breadcrumb][mono-size=\"xl\"] {\r\n --_mono-breadcrumb-gap-preset: var(--mono-breadcrumb-gap-xl, calc(var(--mono-spacing) * 2.5));\r\n --_mono-breadcrumb-gap-wide-preset: var(--mono-breadcrumb-gap-wide-xl, calc(var(--mono-spacing) * 3.5));\r\n --_mono-breadcrumb-font-preset: var(--mono-breadcrumb-font-xl, var(--mono-text-lg));\r\n --_mono-breadcrumb-line-height-preset: var(--mono-text-lg--lh);\r\n --_mono-breadcrumb-icon-size-preset: var(--mono-breadcrumb-icon-size-xl, calc(var(--mono-spacing) * 5));\r\n --_mono-breadcrumb-sep-size-preset: var(--mono-breadcrumb-sep-size-xl, calc(var(--mono-spacing) * 4.5));\r\n --_mono-breadcrumb-sep-font-preset: var(--mono-breadcrumb-sep-font-xl, var(--mono-text-lg));\r\n --_mono-breadcrumb-radius-preset: var(--mono-breadcrumb-radius-xl, var(--mono-radius-md));\r\n}\r\n\r\n[mono-breadcrumb][mono-size=\"xxl\"] {\r\n --_mono-breadcrumb-gap-preset: var(--mono-breadcrumb-gap-xxl, calc(var(--mono-spacing) * 3));\r\n --_mono-breadcrumb-gap-wide-preset: var(--mono-breadcrumb-gap-wide-xxl, calc(var(--mono-spacing) * 4));\r\n --_mono-breadcrumb-font-preset: var(--mono-breadcrumb-font-xxl, var(--mono-text-xl));\r\n --_mono-breadcrumb-line-height-preset: var(--mono-text-xl--lh);\r\n --_mono-breadcrumb-icon-size-preset: var(--mono-breadcrumb-icon-size-xxl, calc(var(--mono-spacing) * 6));\r\n --_mono-breadcrumb-sep-size-preset: var(--mono-breadcrumb-sep-size-xxl, calc(var(--mono-spacing) * 5));\r\n --_mono-breadcrumb-sep-font-preset: var(--mono-breadcrumb-sep-font-xxl, var(--mono-text-xl));\r\n --_mono-breadcrumb-radius-preset: var(--mono-breadcrumb-radius-xxl, var(--mono-radius-lg));\r\n}\r\n\r\n/* =========================================\r\n Colours — EXTENSION, and the one deviation from upstream's ink\r\n ========================================= */\r\n\r\n[mono-breadcrumb][mono-color=\"primary\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-primary);\r\n --_mono-breadcrumb-on-accent-preset: var(--primary-foreground);\r\n}\r\n\r\n[mono-breadcrumb][mono-color=\"secondary\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-secondary);\r\n --_mono-breadcrumb-on-accent-preset: var(--secondary);\r\n}\r\n\r\n[mono-breadcrumb][mono-color=\"success\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-success);\r\n --_mono-breadcrumb-on-accent-preset: var(--success-foreground);\r\n}\r\n\r\n[mono-breadcrumb][mono-color=\"danger\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-danger);\r\n --_mono-breadcrumb-on-accent-preset: var(--destructive-foreground);\r\n}\r\n\r\n[mono-breadcrumb][mono-color=\"warning\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-warning);\r\n --_mono-breadcrumb-on-accent-preset: var(--warning-foreground);\r\n}\r\n\r\n[mono-breadcrumb][mono-color=\"info\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-info);\r\n --_mono-breadcrumb-on-accent-preset: var(--info-foreground);\r\n}\r\n[mono-breadcrumb][mono-color=\"teal\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-teal);\r\n --_mono-breadcrumb-on-accent-preset: var(--teal-foreground);\r\n}\r\n[mono-breadcrumb][mono-color=\"purple\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-purple);\r\n --_mono-breadcrumb-on-accent-preset: var(--purple-foreground);\r\n}\r\n[mono-breadcrumb][mono-color=\"neutral\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-neutral);\r\n --_mono-breadcrumb-on-accent-preset: var(--neutral-foreground);\r\n}\r\n[mono-breadcrumb][mono-color=\"dark\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-dark);\r\n --_mono-breadcrumb-on-accent-preset: var(--dark-foreground);\r\n}\r\n\r\n/* `surface` is upstream's own ink: hover and the current segment go to\r\n `--foreground` and nothing is branded. */\r\n[mono-breadcrumb][mono-color=\"surface\"] {\r\n --_mono-breadcrumb-accent-preset: var(--_mono-breadcrumb-text-strong);\r\n --_mono-breadcrumb-on-accent-preset: var(--background);\r\n}\r\n\r\n/* =========================================\r\n The list\r\n ========================================= */\r\n\r\n/* basecoat@1.0.2 components/breadcrumb.css .breadcrumb > ol — m-0 flex list-none flex-wrap items-center p-0 break-words */\r\n/* basecoat@1.0.2 styles/vega.css .breadcrumb > ol — text-muted-foreground gap-1.5 text-sm sm:gap-2.5\r\n The selector carries the root on purpose: `.vp-doc ul, .vp-doc ol` is (0,1,1)\r\n and would otherwise inject the left padding that breaks a flush breadcrumb. */\r\n:where([mono-breadcrumb]) [mono-list] {\r\n display: flex;\r\n flex-wrap: wrap;\r\n align-items: center;\r\n gap: var(--_mono-breadcrumb-gap);\r\n margin: 0;\r\n padding: 0;\r\n list-style: none;\r\n min-width: 0;\r\n overflow-wrap: break-word;\r\n font-size: var(--_mono-breadcrumb-font);\r\n line-height: var(--_mono-breadcrumb-line-height);\r\n}\r\n\r\n/* `sm:gap-2.5` — the row breathes once there is room for it. */\r\n@media (min-width: 640px) {\r\n :where([mono-breadcrumb]) [mono-list] {\r\n gap: var(--_mono-breadcrumb-gap-wide);\r\n }\r\n}\r\n\r\n/* `truncate` CLAMPS, it does not force one line. Forcing `nowrap` meant the\r\n row either overflowed its container or — once the crumbs were allowed to\r\n shrink — squeezed short labels that had room, so `Dashboard` came out as\r\n `Dash…` next to a half-empty row. Wrapping keeps every label at its clamp and\r\n breaks the line instead. */\r\n\r\n/* VitePress puts `margin-top: 8px` on `li + li` and `margin-bottom: .5em` on\r\n every `li`; either one stops the separators centring with the actions. */\r\n:where([mono-breadcrumb]) [mono-list] :is([mono-item], [mono-separator]) {\r\n margin: 0;\r\n padding: 0;\r\n list-style: none;\r\n}\r\n\r\n/* A composed child list renders a separator BEFORE each of its items, since it\r\n cannot know whether it is the first sibling. The very first one is dropped. */\r\n[mono-list] > mono-breadcrumb-list:first-child > [mono-separator]:first-child {\r\n display: none;\r\n}\r\n\r\n/* =========================================\r\n Item\r\n ========================================= */\r\n\r\n/* basecoat@1.0.2 styles/vega.css .breadcrumb li — gap-1.5 */\r\n/* basecoat@1.0.2 components/breadcrumb.css .breadcrumb li — inline-flex items-center */\r\n:where([mono-breadcrumb]) [mono-item] {\r\n display: inline-flex;\r\n align-items: center;\r\n align-self: center;\r\n gap: var(--_mono-breadcrumb-gap);\r\n min-width: 0;\r\n}\r\n\r\n/* =========================================\r\n Action — the segment itself\r\n ========================================= */\r\n\r\n/* basecoat@1.0.2 components/breadcrumb.css .breadcrumb a — rounded-sm outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 */\r\n/* basecoat@1.0.2 styles/vega.css .breadcrumb a — transition-colors hover:text-foreground\r\n DEVIATION: upstream's <a> is bare text. The padding and the border are kept as\r\n knobs at 0 so `contained` / `underlined` — and a consumer — can turn the\r\n segment into a chip without a second rule. */\r\n:where([mono-breadcrumb]) [mono-action] {\r\n display: inline-flex;\r\n align-items: center;\r\n gap: var(--_mono-breadcrumb-gap);\r\n padding: var(--_mono-breadcrumb-pad-y) var(--_mono-breadcrumb-pad-x);\r\n border: var(--_mono-breadcrumb-border-width) solid transparent;\r\n border-radius: var(--_mono-breadcrumb-radius);\r\n background: transparent;\r\n color: inherit;\r\n font: inherit;\r\n font-weight: var(--_mono-breadcrumb-font-weight);\r\n text-align: left;\r\n text-decoration: none;\r\n white-space: nowrap;\r\n user-select: none;\r\n outline: none;\r\n transition:\r\n color var(--mono-duration) var(--mono-ease),\r\n background-color var(--mono-duration) var(--mono-ease),\r\n border-color var(--mono-duration) var(--mono-ease);\r\n}\r\n\r\n:where([mono-breadcrumb]) :is(a, button)[mono-action] {\r\n cursor: pointer;\r\n}\r\n\r\n:where([mono-breadcrumb]) span[mono-action] {\r\n cursor: default;\r\n}\r\n\r\n/* VitePress's `.vp-doc a` (0,1,1) underlines and re-inks every link, and adds an\r\n external-link glyph on `target=\"_blank\"`. The current segment renders as a\r\n <span>, so it is never reached. */\r\n[mono-breadcrumb] a[mono-action] {\r\n text-decoration: none;\r\n color: inherit;\r\n font-weight: var(--_mono-breadcrumb-font-weight);\r\n}\r\n\r\n[mono-breadcrumb] a[mono-action]::after {\r\n display: none !important;\r\n}\r\n\r\n@media (hover: hover) {\r\n [mono-breadcrumb] :is(a, button)[mono-action]:hover {\r\n color: var(--_mono-breadcrumb-accent);\r\n }\r\n}\r\n\r\n/* `focus-visible:ring-[3px] focus-visible:ring-ring/50` */\r\n[mono-breadcrumb] [mono-action]:focus-visible {\r\n outline: none;\r\n box-shadow: 0 0 0 var(--mono-ring-width-lg, 3px)\r\n color-mix(in oklab, var(--ring) 50%, transparent);\r\n}\r\n\r\n/* basecoat@1.0.2 styles/vega.css .breadcrumb [aria-current='page'] — font-normal text-foreground */\r\n/* basecoat@1.0.2 components/breadcrumb.css .breadcrumb [aria-current='page'] — cursor-default */\r\n[mono-breadcrumb] [mono-item][mono-current] > [mono-action] {\r\n color: var(--_mono-breadcrumb-accent);\r\n font-weight: var(--_mono-breadcrumb-current-weight);\r\n text-transform: var(--_mono-breadcrumb-current-transform);\r\n letter-spacing: var(--_mono-breadcrumb-current-tracking);\r\n cursor: default;\r\n}\r\n\r\n[mono-breadcrumb] [mono-item][mono-disabled] > [mono-action],\r\n[mono-breadcrumb] [mono-action]:disabled,\r\n[mono-breadcrumb][mono-disabled] [mono-action] {\r\n opacity: var(--mono-disabled-opacity, 0.5);\r\n cursor: not-allowed;\r\n pointer-events: none;\r\n}\r\n\r\n/* =========================================\r\n Variant: contained — EXTENSION, the pre-port chip\r\n ========================================= */\r\n\r\n[mono-breadcrumb][mono-variant=\"contained\"] {\r\n --_mono-breadcrumb-pad-x-preset: var(--mono-breadcrumb-contained-pad-x, calc(var(--mono-spacing) * 2));\r\n --_mono-breadcrumb-pad-y-preset: var(--mono-breadcrumb-contained-pad-y, calc(var(--mono-spacing) * 1));\r\n}\r\n\r\n[mono-breadcrumb][mono-variant=\"contained\"] [mono-action] {\r\n background: var(--_mono-breadcrumb-surface);\r\n border-color: var(--_mono-breadcrumb-border);\r\n}\r\n\r\n@media (hover: hover) {\r\n [mono-breadcrumb][mono-variant=\"contained\"] :is(a, button)[mono-action]:hover {\r\n background: color-mix(in oklab, var(--_mono-breadcrumb-accent) var(--mono-mode-tint), transparent);\r\n border-color: color-mix(in oklab, var(--_mono-breadcrumb-accent) var(--mono-mode-checked-border), transparent);\r\n }\r\n}\r\n\r\n/* The flat role fill, not the old gradient-and-glow. */\r\n[mono-breadcrumb][mono-variant=\"contained\"] [mono-item][mono-current] > [mono-action] {\r\n background: var(--_mono-breadcrumb-accent);\r\n border-color: transparent;\r\n color: var(--_mono-breadcrumb-on-accent);\r\n}\r\n\r\n[mono-breadcrumb][mono-variant=\"contained\"] [mono-item][mono-current] > [mono-action] [mono-badge] {\r\n background: color-mix(in oklab, var(--_mono-breadcrumb-on-accent) 22%, transparent);\r\n color: var(--_mono-breadcrumb-on-accent);\r\n}\r\n\r\n/* =========================================\r\n Variant: underlined — EXTENSION\r\n ========================================= */\r\n\r\n[mono-breadcrumb][mono-variant=\"underlined\"] [mono-action] {\r\n border-radius: 0;\r\n border-bottom-color: transparent;\r\n}\r\n\r\n@media (hover: hover) {\r\n [mono-breadcrumb][mono-variant=\"underlined\"] :is(a, button)[mono-action]:hover {\r\n border-bottom-color: color-mix(in oklab, var(--_mono-breadcrumb-accent) var(--mono-mode-checked-border), transparent);\r\n }\r\n}\r\n\r\n[mono-breadcrumb][mono-variant=\"underlined\"] [mono-item][mono-current] > [mono-action] {\r\n border-bottom-color: var(--_mono-breadcrumb-accent);\r\n}\r\n\r\n/* =========================================\r\n Icon\r\n ========================================= */\r\n\r\n/* basecoat@1.0.2 components/breadcrumb.css .breadcrumb li > span[aria-hidden='true'] — flex items-center justify-center */\r\n/* basecoat@1.0.2 styles/vega.css .breadcrumb li > span[aria-hidden='true'] — size-5 [&>svg]:size-4 */\r\n:where([mono-breadcrumb]) [mono-icon] {\r\n flex-shrink: 0;\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n width: var(--_mono-breadcrumb-icon-size);\r\n height: var(--_mono-breadcrumb-icon-size);\r\n font-size: var(--_mono-breadcrumb-icon-size);\r\n line-height: 1;\r\n}\r\n\r\n/* Three shapes end up inside the box and all must fill it:\r\n shadow build, user-slotted → <slot> → ::slotted(svg)\r\n light build, user-slotted → <span data-mono-slot=\"icon-<id>\"> → svg\r\n inline `item.icon` markup → a direct child svg\r\n The light placeholder is the subtle one: it parks the captured child, so the\r\n SVG is a GRANDchild and a `> svg` rule misses it entirely. */\r\n[mono-icon] > svg,\r\n[mono-icon] > [data-mono-slot] > svg,\r\n[mono-icon] slot::slotted(svg) {\r\n display: block;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n\r\n/* The placeholder must not become a 0-width flex item between the box and the\r\n SVG — `display: contents` drops it from layout so the SVG sizes against the\r\n box instead of against a zero-width parent. */\r\n[mono-icon] > [data-mono-slot] {\r\n display: contents;\r\n}\r\n\r\n/* Class + attribute = specificity (0,2,0), deliberately. UnoCSS's `i-…`\r\n utilities set `width`/`height: 1.2em` (presetIcons `scale: 1.2`) at (0,1,0)\r\n and their sheet loads AFTER this one, so a single selector loses and the glyph\r\n overflows its box. Two selectors win regardless of sheet order — and it is the\r\n only thing that works for the SHADOW build, where this span is a LIGHT-DOM\r\n child of the host that no shadow-scoped selector can reach.\r\n Scoped to the breadcrumb: its OWN class (every build sets it on the span — the\r\n shadow build's span is a light-DOM child of the host, outside [mono-breadcrumb])\r\n OR anything inside a [mono-breadcrumb] root (raw CSS markup writes a bare\r\n `<span mono-glyph class=\"i-…\">`). Still (0,2,0): `:is()` weighs its heaviest\r\n argument. A bare `[mono-glyph][mono-glyph]` is global and stretched every other\r\n component's `[mono-glyph]` to 100% — the accordion's icon chip filled its header. */\r\n:is(.mono-breadcrumb-iconify, [mono-breadcrumb] *)[mono-glyph] {\r\n display: inline-block;\r\n width: 100%;\r\n height: 100%;\r\n flex-shrink: 0;\r\n color: inherit;\r\n}\r\n\r\n/* =========================================\r\n Content / title\r\n ========================================= */\r\n\r\n:where([mono-breadcrumb]) [mono-content] {\r\n display: inline-flex;\r\n align-items: center;\r\n min-width: 0;\r\n}\r\n\r\n:where([mono-breadcrumb]) [mono-title] {\r\n font-size: inherit;\r\n font-weight: inherit;\r\n color: inherit;\r\n line-height: inherit;\r\n}\r\n\r\n/* A flex item's `min-width` is `auto` — its content — so without this the\r\n crumbs could not shrink past their clamp and the row simply overflowed its\r\n container (measured: 543px of crumbs in a 512px box). Letting the chain go to\r\n zero turns the clamp into a CEILING: a crumb takes at most `truncate-width`,\r\n and less when the row is tight. */\r\n[mono-breadcrumb][mono-truncate] :is([mono-item], [mono-action], [mono-content]) {\r\n min-width: 0;\r\n}\r\n\r\n[mono-breadcrumb][mono-truncate] [mono-title] {\r\n display: block;\r\n max-width: var(--mono-breadcrumb-truncate-width, 12ch);\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n}\r\n\r\n[mono-breadcrumb][mono-truncate] [mono-item][mono-current] [mono-title] {\r\n max-width: var(--mono-breadcrumb-truncate-width-current, 18ch);\r\n}\r\n\r\n/* =========================================\r\n Badge — EXTENSION, borrowing `.badge`'s shape\r\n ========================================= */\r\n\r\n/* basecoat@1.0.2 styles/vega.css .badge — h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all [&>svg]:size-3! */\r\n:where([mono-breadcrumb]) [mono-badge] {\r\n flex-shrink: 0;\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n gap: var(--mono-spacing);\r\n height: var(--_mono-breadcrumb-badge-height);\r\n padding: 0 var(--_mono-breadcrumb-badge-pad-x);\r\n border: var(--mono-border-width) solid transparent;\r\n border-radius: var(--_mono-breadcrumb-badge-radius);\r\n font-size: var(--_mono-breadcrumb-badge-font);\r\n font-weight: var(--_mono-breadcrumb-badge-weight);\r\n line-height: 1;\r\n background: var(--_mono-breadcrumb-badge-bg);\r\n color: var(--_mono-breadcrumb-badge-color);\r\n}\r\n\r\n/* The roles ink the pill tonally — the same wash the ported chip and menu use. */\r\n[mono-breadcrumb] [mono-badge=\"primary\"] {\r\n background: color-mix(in oklab, var(--_mono-breadcrumb-primary) var(--mono-mode-tint), transparent);\r\n color: var(--_mono-breadcrumb-primary);\r\n}\r\n\r\n[mono-breadcrumb] [mono-badge=\"success\"] {\r\n background: color-mix(in oklab, var(--_mono-breadcrumb-success) var(--mono-mode-tint), transparent);\r\n color: var(--_mono-breadcrumb-success);\r\n}\r\n\r\n[mono-breadcrumb] [mono-badge=\"danger\"] {\r\n background: color-mix(in oklab, var(--_mono-breadcrumb-danger) var(--mono-mode-tint), transparent);\r\n color: var(--_mono-breadcrumb-danger);\r\n}\r\n\r\n[mono-breadcrumb] [mono-badge=\"warning\"] {\r\n background: color-mix(in oklab, var(--_mono-breadcrumb-warning) var(--mono-mode-tint), transparent);\r\n color: var(--_mono-breadcrumb-warning);\r\n}\r\n\r\n[mono-breadcrumb] [mono-badge=\"info\"] {\r\n background: color-mix(in oklab, var(--_mono-breadcrumb-info) var(--mono-mode-tint), transparent);\r\n color: var(--_mono-breadcrumb-info);\r\n}\r\n\r\n/* =========================================\r\n Separator\r\n ========================================= */\r\n\r\n/* basecoat@1.0.2 components/breadcrumb.css .breadcrumb li[aria-hidden='true'] — select-none */\r\n:where([mono-breadcrumb]) [mono-separator] {\r\n flex-shrink: 0;\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n align-self: center;\r\n /* Upstream's separator is an SVG at `size-3.5`, so the slot between two\r\n crumbs is 14px wide whatever is in it. A text glyph like `›` is barely 4px,\r\n which — on a flavor with a tight gap — left the labels all but touching.\r\n Reserving the same box is what keeps the row legible either way. */\r\n min-width: var(--_mono-breadcrumb-sep-size);\r\n font-size: var(--_mono-breadcrumb-sep-font);\r\n line-height: 1;\r\n color: var(--_mono-breadcrumb-sep-color);\r\n user-select: none;\r\n}\r\n\r\n/* basecoat@1.0.2 styles/vega.css .breadcrumb li[aria-hidden='true'] > svg — size-3.5 */\r\n[mono-separator] > svg,\r\n[mono-separator] > [data-mono-slot] > svg,\r\n[mono-separator] slot::slotted(svg) {\r\n display: block;\r\n width: var(--_mono-breadcrumb-sep-size);\r\n height: var(--_mono-breadcrumb-sep-size);\r\n}\r\n\r\n[mono-separator] > [data-mono-slot] {\r\n display: contents;\r\n}\r\n\r\n/* basecoat@1.0.2 components/breadcrumb.css .breadcrumb [data-rtl-flip] — rtl:rotate-180 */\r\n[dir=\"rtl\"] [mono-breadcrumb] [mono-separator] > svg {\r\n rotate: 180deg;\r\n}\r\n\r\n/* =========================================\r\n Reduced motion\r\n ========================================= */\r\n\r\n@media (prefers-reduced-motion: reduce) {\r\n [mono-breadcrumb] [mono-action] {\r\n transition: none;\r\n }\r\n}\r\n";
570
+ //#endregion
571
+ //#region src/components/breadcrumb/mono-breadcrumb.shadow.ts
572
+ var MonoBreadcrumbShadow = class MonoBreadcrumbShadow extends withShadowUtilityStyles(MonoBreadcrumbCore(LitElement)) {
573
+ constructor(..._args) {
574
+ super(..._args);
575
+ this._ssrItemCount = null;
576
+ }
577
+ static {
578
+ this.styles = [unsafeCSS(toShadowCss(breadcrumb_default, {
579
+ host: "mono-breadcrumb",
580
+ hostDisplay: "block"
581
+ }))];
582
+ }
583
+ _useIconSlots() {
584
+ return true;
585
+ }
586
+ /**
587
+ * Cap the HYDRATION render at exactly the server-rendered crumb count so the
588
+ * client's first render reproduces the SSR'd DOM structure. After hydration
589
+ * (`hasUpdated`) render the full list. Safety net for the rare case where the
590
+ * client `items` ends up longer than what the server emitted. On the server,
591
+ * always render the real `items`.
592
+ */
593
+ _itemsForRender() {
594
+ if (!isServer && !this.hasUpdated && this._ssrItemCount !== null) return this.items.slice(0, this._ssrItemCount);
595
+ return this.items;
596
+ }
597
+ connectedCallback() {
598
+ super.connectedCallback();
599
+ if (isServer) return;
600
+ this._ssrItemCount = this.shadowRoot ? this.shadowRoot.querySelectorAll(".mono-breadcrumb-item").length : null;
601
+ flushSsrHydration(this, { gate: () => this._ssrItemCount === null || (this.items?.length ?? 0) >= this._ssrItemCount });
602
+ }
603
+ firstUpdated(changed) {
604
+ super.firstUpdated?.(changed);
605
+ if (isServer) return;
606
+ this._syncLightIcons();
607
+ if (this._ssrItemCount !== null && this._ssrItemCount < (this.items?.length ?? 0)) this.requestUpdate();
608
+ }
609
+ updated(changed) {
610
+ super.updated?.(changed);
611
+ if (!isServer) this._syncLightIcons();
612
+ }
613
+ /**
614
+ * Register the consumer's own `slot="icon-<id>"` light children.
615
+ *
616
+ * `renderBreadcrumbIcon` only emits the wrapper (and therefore the `<slot>`) when
617
+ * the item has an `icon` OR `getSlotIconNodes(id)` reports something. That map is
618
+ * filled by the LIGHT build's capture pass, which never runs here — so a
619
+ * user-slotted `<svg slot="icon-home">` produced no wrapper, no slot, and no icon
620
+ * at all. Register them before render so the slot exists for them to project into.
621
+ *
622
+ * Must run in `willUpdate`, not `updated`: by `updated` the render that needed the
623
+ * information has already happened.
624
+ */
625
+ willUpdate(changed) {
626
+ if (!isServer) this._captureUserIconSlots();
627
+ super.willUpdate?.(changed);
628
+ }
629
+ _captureUserIconSlots() {
630
+ for (const el of Array.from(this.querySelectorAll(":scope > [slot^=\"icon-\"]"))) {
631
+ if (el.dataset.monoIconSlot !== void 0) continue;
632
+ const id = (el.getAttribute("slot") ?? "").slice(5);
633
+ if (!id) continue;
634
+ const known = this._slotIcons.get(id);
635
+ if (known?.includes(el)) continue;
636
+ this._slotIcons.set(id, [...known ?? [], el]);
637
+ }
638
+ }
639
+ /**
640
+ * Reconcile LIGHT-DOM icon spans (this element's own children) with `items`.
641
+ * Each becomes a `<span slot="icon-<id>" class="mono-breadcrumb-iconify i-…">`
642
+ * that projects into the shadow `<slot name="icon-<id>">` and is styled by the
643
+ * page's global UnoCSS. Client-only; icons paint at hydration.
644
+ */
645
+ _syncLightIcons() {
646
+ const wanted = /* @__PURE__ */ new Map();
647
+ for (const item of this.items ?? []) if (item.icon && isIconifyClass(item.icon)) wanted.set(item.id, item.icon);
648
+ const existing = /* @__PURE__ */ new Map();
649
+ for (const el of Array.from(this.querySelectorAll(":scope > [data-mono-icon-slot]"))) existing.set(el.dataset.monoIconSlot || "", el);
650
+ for (const [id, el] of existing) {
651
+ const icon = wanted.get(id);
652
+ if (icon === void 0) el.remove();
653
+ else {
654
+ el.className = `mono-breadcrumb-iconify ${icon}`;
655
+ el.setAttribute("mono-glyph", "");
656
+ wanted.delete(id);
657
+ }
658
+ }
659
+ for (const [id, icon] of wanted) {
660
+ const span = document.createElement("span");
661
+ span.dataset.monoIconSlot = id;
662
+ span.setAttribute("slot", `icon-${id}`);
663
+ span.setAttribute("aria-hidden", "true");
664
+ span.className = `mono-breadcrumb-iconify ${icon}`;
665
+ span.setAttribute("mono-glyph", "");
666
+ this.appendChild(span);
667
+ }
668
+ }
669
+ };
670
+ MonoBreadcrumbShadow = __decorate([customElement("mono-shadow-breadcrumb")], MonoBreadcrumbShadow);
671
+ //#endregion
672
+ //#region src/components/breadcrumb/breadcrumb-list-core.ts
673
+ var autoBreadcrumbListId = 0;
674
+ /**
675
+ * `MonoBreadcrumbListCore` — render-mode-agnostic logic for the STANDALONE
676
+ * `mono-breadcrumb-list`: reactive props (incl. the SSR `items` string→array
677
+ * coercion), item resolution (`items` array / single `item` / direct single-row
678
+ * props), the self-contained `<nav><ol>` render, and the `_useIconSlots()` /
679
+ * `_itemsForRender()` hooks.
680
+ *
681
+ * The light build (`mono-breadcrumb-list.ts`) extends this and layers the
682
+ * light-only CHILD composition (registering with a parent `<mono-breadcrumb>`
683
+ * via `closest()` and rendering bare items). The shadow build
684
+ * (`mono-breadcrumb-list.shadow.ts`) extends this for `@lit-labs/ssr`, rendering
685
+ * standalone in one shadow root and overriding `_useIconSlots()`. Child mode is
686
+ * a light-only feature (cross-element `closest()` can't work under SSR).
687
+ *
688
+ * SSR-safe: no `document`/`window` access.
689
+ */
690
+ var MonoBreadcrumbListCore = (superClass) => {
691
+ class MonoBreadcrumbListCoreClass extends superClass {
692
+ constructor(..._args) {
693
+ super(..._args);
694
+ this.items = [];
695
+ this.title = "";
696
+ this.href = "";
697
+ this.icon = "";
698
+ this.current = false;
699
+ this.disabled = false;
700
+ this.variant = "default";
701
+ this.size = "md";
702
+ this.color = "primary";
703
+ this.separator = "›";
704
+ this.truncate = false;
705
+ this._autoId = `mono-breadcrumb-list-item-${++autoBreadcrumbListId}`;
706
+ }
707
+ willUpdate(changed) {
708
+ if (typeof this.items === "string") this.items = coerceItems(this.items);
709
+ super.willUpdate?.(changed);
710
+ }
711
+ getBreadcrumbItems() {
712
+ return this._getEffectiveItems();
713
+ }
714
+ _hasDirectItemProps() {
715
+ return !!(this.id || this.title || this.href || this.icon || this.badge !== void 0 || this.current || this.disabled);
716
+ }
717
+ _normalizeItem(item) {
718
+ const title = item.title ?? "";
719
+ const fallbackId = this.id || item.id || item.href || title.toLowerCase().trim().replace(/\s+/g, "-") || this._autoId;
720
+ const normalized = { id: String(item.id ?? fallbackId) };
721
+ if (item.title !== void 0) normalized.title = item.title;
722
+ if (item.icon !== void 0) normalized.icon = item.icon;
723
+ if (item.badge !== void 0) normalized.badge = item.badge;
724
+ if (item.badgeColor !== void 0) normalized.badgeColor = item.badgeColor;
725
+ if (item.href !== void 0) normalized.href = item.href;
726
+ if (item.current !== void 0) normalized.current = item.current;
727
+ if (item.disabled !== void 0) normalized.disabled = item.disabled;
728
+ return normalized;
729
+ }
730
+ _buildDirectItem() {
731
+ return this._normalizeItem({
732
+ id: this.id || void 0,
733
+ title: this.title || void 0,
734
+ href: this.href || void 0,
735
+ icon: this.icon || void 0,
736
+ badge: this.badge,
737
+ badgeColor: this.badgeColor,
738
+ current: this.current,
739
+ disabled: this.disabled
740
+ });
741
+ }
742
+ _getEffectiveItems() {
743
+ if (this.item) return [this._normalizeItem(this.item)];
744
+ if (this._hasDirectItemProps()) return [this._buildDirectItem()];
745
+ if (Array.isArray(this.items) && this.items.length) return this.items;
746
+ return [];
747
+ }
748
+ /**
749
+ * The items to render for THIS render pass. Defaults to the effective items.
750
+ * The shadow build overrides this to cap the hydration render at the
751
+ * server-rendered count.
752
+ */
753
+ _itemsForRender() {
754
+ return this._getEffectiveItems();
755
+ }
756
+ /**
757
+ * Whether per-item icons render through a native `<slot>` (shadow build) vs
758
+ * the light-DOM inline `i-…` span (light build).
759
+ */
760
+ _useIconSlots() {
761
+ return false;
762
+ }
763
+ _standaloneContext() {
764
+ return {
765
+ cssClass: {},
766
+ separator: this.separator,
767
+ hasSeparatorSlot: false,
768
+ disabled: this.disabled,
769
+ iconSlot: this._useIconSlots(),
770
+ isCurrent: (id) => {
771
+ const items = this._getEffectiveItems();
772
+ for (const it of items) if (it.current && it.id === id) return true;
773
+ if (items.length && items.every((it) => !it.current)) return items[items.length - 1].id === id;
774
+ return false;
775
+ },
776
+ getSlotIconNodes: () => void 0,
777
+ onItemClick: () => {}
778
+ };
779
+ }
780
+ /** Light build overrides this to return a parent-aware context. */
781
+ _buildContext() {
782
+ return this._standaloneContext();
783
+ }
784
+ _standaloneRootClasses() {
785
+ return generateBreadcrumbRootClasses({
786
+ variant: this.variant,
787
+ size: this.size,
788
+ color: this.color,
789
+ truncate: this.truncate,
790
+ disabled: this.disabled
791
+ });
792
+ }
793
+ render() {
794
+ const ctx = this._buildContext();
795
+ const listClass = ctx.cssClass?.list ? `mono-breadcrumb-list ${ctx.cssClass.list}` : "mono-breadcrumb-list";
796
+ const attrs = breadcrumbRootAttrs(this);
797
+ return html`
798
+ <nav
799
+ class=${this._standaloneRootClasses()}
800
+ aria-label="Breadcrumb"
801
+ mono-breadcrumb
802
+ mono-size=${attrs.size ?? nothing}
803
+ mono-color=${attrs.color ?? nothing}
804
+ mono-variant=${attrs.variant ?? nothing}
805
+ ?mono-truncate=${this.truncate}
806
+ ?mono-disabled=${this.disabled}
807
+ >
808
+ <ol class=${listClass} mono-list>
809
+ ${renderBreadcrumbList(this._itemsForRender(), ctx)}
810
+ </ol>
811
+ </nav>
812
+ `;
813
+ }
814
+ }
815
+ __decorate([property({
816
+ attribute: "items",
817
+ converter: {
818
+ fromAttribute: (value) => coerceItems(value),
819
+ toAttribute: () => null
820
+ },
821
+ hasChanged: arrayHasChanged
822
+ })], MonoBreadcrumbListCoreClass.prototype, "items", void 0);
823
+ __decorate([property({ attribute: false })], MonoBreadcrumbListCoreClass.prototype, "item", void 0);
824
+ __decorate([property({ type: String })], MonoBreadcrumbListCoreClass.prototype, "title", void 0);
825
+ __decorate([property({ type: String })], MonoBreadcrumbListCoreClass.prototype, "href", void 0);
826
+ __decorate([property({ type: String })], MonoBreadcrumbListCoreClass.prototype, "icon", void 0);
827
+ __decorate([property()], MonoBreadcrumbListCoreClass.prototype, "badge", void 0);
828
+ __decorate([property({ attribute: "badge-color" })], MonoBreadcrumbListCoreClass.prototype, "badgeColor", void 0);
829
+ __decorate([property({
830
+ type: Boolean,
831
+ reflect: true
832
+ })], MonoBreadcrumbListCoreClass.prototype, "current", void 0);
833
+ __decorate([property({
834
+ type: Boolean,
835
+ reflect: true
836
+ })], MonoBreadcrumbListCoreClass.prototype, "disabled", void 0);
837
+ __decorate([property({ type: String })], MonoBreadcrumbListCoreClass.prototype, "variant", void 0);
838
+ __decorate([property({ type: String })], MonoBreadcrumbListCoreClass.prototype, "size", void 0);
839
+ __decorate([property({ type: String })], MonoBreadcrumbListCoreClass.prototype, "color", void 0);
840
+ __decorate([property({ type: String })], MonoBreadcrumbListCoreClass.prototype, "separator", void 0);
841
+ __decorate([property({ type: Boolean })], MonoBreadcrumbListCoreClass.prototype, "truncate", void 0);
842
+ return MonoBreadcrumbListCoreClass;
843
+ };
844
+ //#endregion
845
+ //#region src/components/breadcrumb/mono-breadcrumb-list.shadow.ts
846
+ var MonoBreadcrumbListShadow = class MonoBreadcrumbListShadow extends withShadowUtilityStyles(MonoBreadcrumbListCore(LitElement)) {
847
+ constructor(..._args) {
848
+ super(..._args);
849
+ this._ssrItemCount = null;
850
+ }
851
+ static {
852
+ this.styles = [unsafeCSS(toShadowCss(breadcrumb_default, {
853
+ host: "mono-breadcrumb-list",
854
+ hostDisplay: "block"
855
+ }))];
856
+ }
857
+ _useIconSlots() {
858
+ return true;
859
+ }
860
+ /**
861
+ * Cap the HYDRATION render at exactly the server-rendered crumb count so the
862
+ * client's first render reproduces the SSR'd DOM structure; full list after.
863
+ */
864
+ _itemsForRender() {
865
+ const effective = this._getEffectiveItems();
866
+ if (!isServer && !this.hasUpdated && this._ssrItemCount !== null) return effective.slice(0, this._ssrItemCount);
867
+ return effective;
868
+ }
869
+ connectedCallback() {
870
+ super.connectedCallback();
871
+ if (isServer) return;
872
+ this._ssrItemCount = this.shadowRoot ? this.shadowRoot.querySelectorAll(".mono-breadcrumb-item").length : null;
873
+ flushSsrHydration(this, { gate: () => this._ssrItemCount === null || this._getEffectiveItems().length >= this._ssrItemCount });
874
+ }
875
+ firstUpdated(changed) {
876
+ super.firstUpdated?.(changed);
877
+ if (isServer) return;
878
+ this._syncLightIcons();
879
+ const effectiveLen = this._getEffectiveItems().length;
880
+ if (this._ssrItemCount !== null && this._ssrItemCount < effectiveLen) this.requestUpdate();
881
+ }
882
+ updated(changed) {
883
+ super.updated?.(changed);
884
+ if (!isServer) this._syncLightIcons();
885
+ }
886
+ /**
887
+ * Reconcile LIGHT-DOM icon spans (this element's own children) with the
888
+ * effective items. Each becomes a `<span slot="icon-<id>" class="i-…">` that
889
+ * projects into the shadow `<slot name="icon-<id>">`, styled by the page's
890
+ * global UnoCSS. Client-only; icons paint at hydration.
891
+ */
892
+ _syncLightIcons() {
893
+ const wanted = /* @__PURE__ */ new Map();
894
+ for (const item of this._getEffectiveItems()) if (item.icon && isIconifyClass(item.icon)) wanted.set(item.id, item.icon);
895
+ const existing = /* @__PURE__ */ new Map();
896
+ for (const el of Array.from(this.querySelectorAll(":scope > [data-mono-icon-slot]"))) existing.set(el.dataset.monoIconSlot || "", el);
897
+ for (const [id, el] of existing) {
898
+ const icon = wanted.get(id);
899
+ if (icon === void 0) el.remove();
900
+ else {
901
+ el.className = `mono-breadcrumb-iconify ${icon}`;
902
+ el.setAttribute("mono-glyph", "");
903
+ wanted.delete(id);
904
+ }
905
+ }
906
+ for (const [id, icon] of wanted) {
907
+ const span = document.createElement("span");
908
+ span.dataset.monoIconSlot = id;
909
+ span.setAttribute("slot", `icon-${id}`);
910
+ span.setAttribute("aria-hidden", "true");
911
+ span.className = `mono-breadcrumb-iconify ${icon}`;
912
+ span.setAttribute("mono-glyph", "");
913
+ this.appendChild(span);
914
+ }
915
+ }
916
+ };
917
+ MonoBreadcrumbListShadow = __decorate([customElement("mono-shadow-breadcrumb-list")], MonoBreadcrumbListShadow);
918
+ //#endregion
919
+ export { MonoBreadcrumbCore, MonoBreadcrumbListShadow, MonoBreadcrumbShadow, coerceItems, findItemIndex, generateBreadcrumbRootClasses, renderBreadcrumbBadge, renderBreadcrumbIcon, renderBreadcrumbItemRow, renderBreadcrumbItemsLeadingSep, renderBreadcrumbList, renderBreadcrumbSeparator, resolveCurrentId, validateBreadcrumbProps };