@ecopages/radiant-ui 0.1.0-rc.7 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/README.md +11 -3
  2. package/dist/components/ui/alert/alert.d.ts +2 -4
  3. package/dist/components/ui/alert/alert.script.d.ts +25 -15
  4. package/dist/components/ui/autocomplete/autocomplete.css +1 -2
  5. package/dist/components/ui/autocomplete/autocomplete.d.ts +8 -3
  6. package/dist/components/ui/autocomplete/autocomplete.script.d.ts +29 -4
  7. package/dist/components/ui/avatar/avatar.css +10 -8
  8. package/dist/components/ui/avatar/avatar.d.ts +3 -1
  9. package/dist/components/ui/breadcrumb/breadcrumb.d.ts +11 -11
  10. package/dist/components/ui/breadcrumb/breadcrumb.script.d.ts +10 -10
  11. package/dist/components/ui/calendar/calendar.css +10 -5
  12. package/dist/components/ui/calendar/calendar.script.d.ts +24 -21
  13. package/dist/components/ui/calendar/index.js +1 -1
  14. package/dist/components/ui/calendar/index.js.map +3 -3
  15. package/dist/components/ui/carousel/carousel-autoplay.d.ts +22 -0
  16. package/dist/components/ui/carousel/carousel-swipe.d.ts +17 -0
  17. package/dist/components/ui/carousel/carousel-window.d.ts +63 -0
  18. package/dist/components/ui/carousel/carousel.css +71 -18
  19. package/dist/components/ui/carousel/carousel.d.ts +8 -4
  20. package/dist/components/ui/carousel/carousel.script.d.ts +73 -40
  21. package/dist/components/ui/carousel/index.js +1 -1
  22. package/dist/components/ui/carousel/index.js.map +4 -4
  23. package/dist/components/ui/checkbox/checkbox.d.ts +11 -0
  24. package/dist/components/ui/checkbox/checkbox.script.d.ts +31 -8
  25. package/dist/components/ui/checkbox/index.js +1 -1
  26. package/dist/components/ui/checkbox/index.js.map +4 -4
  27. package/dist/components/ui/checkbox-group/checkbox-group.d.ts +4 -2
  28. package/dist/components/ui/checkbox-group/checkbox-group.script.d.ts +39 -20
  29. package/dist/components/ui/checkbox-group/index.js +1 -1
  30. package/dist/components/ui/checkbox-group/index.js.map +4 -4
  31. package/dist/components/ui/combobox/combobox.css +9 -1
  32. package/dist/components/ui/combobox/combobox.d.ts +12 -4
  33. package/dist/components/ui/combobox/combobox.script.d.ts +74 -25
  34. package/dist/components/ui/combobox/index.d.ts +2 -2
  35. package/dist/components/ui/combobox/index.js +1 -1
  36. package/dist/components/ui/combobox/index.js.map +4 -4
  37. package/dist/components/ui/cycle-toggle/cycle-toggle.d.ts +6 -2
  38. package/dist/components/ui/cycle-toggle/cycle-toggle.script.d.ts +35 -4
  39. package/dist/components/ui/cycle-toggle/index.js +1 -1
  40. package/dist/components/ui/cycle-toggle/index.js.map +3 -3
  41. package/dist/components/ui/date-field/date-field.css +13 -17
  42. package/dist/components/ui/date-field/date-field.d.ts +10 -8
  43. package/dist/components/ui/date-field/date-field.script.d.ts +35 -52
  44. package/dist/components/ui/date-field/index.js +1 -1
  45. package/dist/components/ui/date-field/index.js.map +4 -4
  46. package/dist/components/ui/date-input/date-input-segment-dom.d.ts +24 -0
  47. package/dist/components/ui/date-input/date-input.css +50 -0
  48. package/dist/components/ui/date-input/date-input.d.ts +8 -0
  49. package/dist/components/ui/date-input/date-input.script.d.ts +137 -0
  50. package/dist/components/ui/date-input/index.d.ts +2 -0
  51. package/dist/components/ui/date-input/index.js +2 -0
  52. package/dist/components/ui/date-input/index.js.map +7 -0
  53. package/dist/components/ui/date-range-picker/date-range-picker.css +18 -19
  54. package/dist/components/ui/date-range-picker/date-range-picker.d.ts +11 -9
  55. package/dist/components/ui/date-range-picker/date-range-picker.script.d.ts +42 -51
  56. package/dist/components/ui/date-range-picker/index.js +1 -1
  57. package/dist/components/ui/date-range-picker/index.js.map +4 -4
  58. package/dist/components/ui/dialog/dialog.css +18 -14
  59. package/dist/components/ui/dialog/dialog.d.ts +6 -0
  60. package/dist/components/ui/dialog/dialog.script.d.ts +43 -10
  61. package/dist/components/ui/dialog/index.js +1 -1
  62. package/dist/components/ui/dialog/index.js.map +4 -4
  63. package/dist/components/ui/disclosure/disclosure-group.script.d.ts +19 -3
  64. package/dist/components/ui/disclosure/disclosure.css +3 -6
  65. package/dist/components/ui/disclosure/disclosure.d.ts +23 -7
  66. package/dist/components/ui/disclosure/disclosure.script.d.ts +31 -7
  67. package/dist/components/ui/disclosure/index.d.ts +1 -1
  68. package/dist/components/ui/disclosure/index.js +1 -1
  69. package/dist/components/ui/disclosure/index.js.map +4 -4
  70. package/dist/components/ui/field/field-description.d.ts +1 -0
  71. package/dist/components/ui/field/field-error.d.ts +2 -2
  72. package/dist/components/ui/field/field.d.ts +4 -4
  73. package/dist/components/ui/field/field.script.d.ts +54 -24
  74. package/dist/components/ui/field/index.js +1 -1
  75. package/dist/components/ui/field/index.js.map +4 -4
  76. package/dist/components/ui/form/control-protocol.d.ts +38 -1
  77. package/dist/components/ui/form/form-context.d.ts +3 -0
  78. package/dist/components/ui/form/form.d.ts +6 -0
  79. package/dist/components/ui/form/form.script.d.ts +29 -12
  80. package/dist/components/ui/form/index.d.ts +2 -1
  81. package/dist/components/ui/form/index.js +1 -1
  82. package/dist/components/ui/form/index.js.map +4 -4
  83. package/dist/components/ui/grid/grid.d.ts +4 -3
  84. package/dist/components/ui/grid/grid.script.d.ts +19 -11
  85. package/dist/components/ui/hover-card/hover-card.css +12 -101
  86. package/dist/components/ui/hover-card/hover-card.d.ts +7 -2
  87. package/dist/components/ui/hover-card/hover-card.script.d.ts +36 -5
  88. package/dist/components/ui/hover-card/index.js +1 -1
  89. package/dist/components/ui/hover-card/index.js.map +4 -4
  90. package/dist/components/ui/input/index.js +1 -1
  91. package/dist/components/ui/input/index.js.map +4 -4
  92. package/dist/components/ui/input/input.css +1 -1
  93. package/dist/components/ui/knob/index.js +1 -1
  94. package/dist/components/ui/knob/index.js.map +3 -3
  95. package/dist/components/ui/knob/knob.css +6 -1
  96. package/dist/components/ui/knob/knob.d.ts +4 -4
  97. package/dist/components/ui/knob/knob.script.d.ts +55 -20
  98. package/dist/components/ui/label/index.js +1 -1
  99. package/dist/components/ui/label/index.js.map +4 -4
  100. package/dist/components/ui/label/label.d.ts +2 -1
  101. package/dist/components/ui/listbox/index.d.ts +2 -2
  102. package/dist/components/ui/listbox/index.js +1 -1
  103. package/dist/components/ui/listbox/index.js.map +4 -4
  104. package/dist/components/ui/listbox/listbox.css +14 -0
  105. package/dist/components/ui/listbox/listbox.d.ts +16 -2
  106. package/dist/components/ui/listbox/listbox.script.d.ts +55 -12
  107. package/dist/components/ui/menu-button/index.js +1 -1
  108. package/dist/components/ui/menu-button/index.js.map +4 -4
  109. package/dist/components/ui/menu-button/menu-button.d.ts +2 -2
  110. package/dist/components/ui/menu-button/menu-button.script.d.ts +30 -27
  111. package/dist/components/ui/menubar/index.js +1 -1
  112. package/dist/components/ui/menubar/index.js.map +4 -4
  113. package/dist/components/ui/menubar/menubar.script.d.ts +41 -15
  114. package/dist/components/ui/meter/index.js +1 -1
  115. package/dist/components/ui/meter/index.js.map +3 -3
  116. package/dist/components/ui/meter/meter.css +27 -2
  117. package/dist/components/ui/meter/meter.script.d.ts +19 -14
  118. package/dist/components/ui/navigation-menu/index.d.ts +1 -1
  119. package/dist/components/ui/navigation-menu/index.js +1 -1
  120. package/dist/components/ui/navigation-menu/index.js.map +4 -4
  121. package/dist/components/ui/navigation-menu/navigation-menu.css +32 -34
  122. package/dist/components/ui/navigation-menu/navigation-menu.d.ts +34 -5
  123. package/dist/components/ui/navigation-menu/navigation-menu.script.d.ts +93 -12
  124. package/dist/components/ui/number-field/index.js +1 -1
  125. package/dist/components/ui/number-field/index.js.map +4 -4
  126. package/dist/components/ui/number-field/number-field.css +1 -1
  127. package/dist/components/ui/number-field/number-field.d.ts +8 -19
  128. package/dist/components/ui/number-field/number-field.script.d.ts +30 -9
  129. package/dist/components/ui/pagination/index.d.ts +1 -1
  130. package/dist/components/ui/pagination/index.js +1 -1
  131. package/dist/components/ui/pagination/index.js.map +3 -3
  132. package/dist/components/ui/pagination/pagination.css +50 -13
  133. package/dist/components/ui/pagination/pagination.d.ts +33 -9
  134. package/dist/components/ui/pagination/pagination.script.d.ts +29 -9
  135. package/dist/components/ui/popover/index.js +1 -1
  136. package/dist/components/ui/popover/index.js.map +4 -4
  137. package/dist/components/ui/popover/popover.d.ts +17 -1
  138. package/dist/components/ui/popover/popover.script.d.ts +57 -9
  139. package/dist/components/ui/radio-group/index.js +1 -1
  140. package/dist/components/ui/radio-group/index.js.map +4 -4
  141. package/dist/components/ui/radio-group/radio-group.d.ts +2 -2
  142. package/dist/components/ui/radio-group/radio-group.script.d.ts +35 -16
  143. package/dist/components/ui/select/index.d.ts +2 -2
  144. package/dist/components/ui/select/index.js +1 -1
  145. package/dist/components/ui/select/index.js.map +4 -4
  146. package/dist/components/ui/select/select.css +8 -6
  147. package/dist/components/ui/select/select.d.ts +18 -9
  148. package/dist/components/ui/select/select.script.d.ts +74 -26
  149. package/dist/components/ui/shared/calendar-popover-behavior.d.ts +27 -0
  150. package/dist/components/ui/shared/control-toggle.css +8 -4
  151. package/dist/components/ui/shared/field-label.d.ts +5 -0
  152. package/dist/components/ui/shared/listbox-host-controller.d.ts +41 -0
  153. package/dist/components/ui/shared/listbox-option.d.ts +4 -0
  154. package/dist/components/ui/shared/multi-value.d.ts +23 -1
  155. package/dist/components/ui/shared/numeric-range.d.ts +8 -0
  156. package/dist/components/ui/shared/popover.css +10 -99
  157. package/dist/components/ui/sidebar/index.d.ts +2 -1
  158. package/dist/components/ui/sidebar/index.js +1 -1
  159. package/dist/components/ui/sidebar/index.js.map +4 -4
  160. package/dist/components/ui/sidebar/sidebar-trigger.d.ts +12 -0
  161. package/dist/components/ui/sidebar/sidebar-trigger.script.d.ts +52 -31
  162. package/dist/components/ui/sidebar/sidebar.css +67 -61
  163. package/dist/components/ui/sidebar/sidebar.d.ts +9 -4
  164. package/dist/components/ui/sidebar/sidebar.script.d.ts +42 -20
  165. package/dist/components/ui/slider/index.js +1 -1
  166. package/dist/components/ui/slider/index.js.map +4 -4
  167. package/dist/components/ui/slider/slider.css +5 -5
  168. package/dist/components/ui/slider/slider.d.ts +20 -10
  169. package/dist/components/ui/slider/slider.script.d.ts +103 -27
  170. package/dist/components/ui/switch/index.js +1 -1
  171. package/dist/components/ui/switch/index.js.map +4 -4
  172. package/dist/components/ui/switch/switch.css +28 -22
  173. package/dist/components/ui/switch/switch.d.ts +13 -0
  174. package/dist/components/ui/switch/switch.script.d.ts +34 -8
  175. package/dist/components/ui/table/index.js +1 -1
  176. package/dist/components/ui/table/index.js.map +4 -4
  177. package/dist/components/ui/table/table.d.ts +9 -7
  178. package/dist/components/ui/table/table.script.d.ts +55 -12
  179. package/dist/components/ui/tabs/tabs.css +18 -12
  180. package/dist/components/ui/tabs/tabs.d.ts +7 -4
  181. package/dist/components/ui/tabs/tabs.script.d.ts +39 -9
  182. package/dist/components/ui/tag-group/index.js +1 -1
  183. package/dist/components/ui/tag-group/index.js.map +4 -4
  184. package/dist/components/ui/tag-group/tag-group.d.ts +19 -7
  185. package/dist/components/ui/tag-group/tag-group.script.d.ts +58 -10
  186. package/dist/components/ui/textarea/index.js +1 -1
  187. package/dist/components/ui/textarea/index.js.map +4 -4
  188. package/dist/components/ui/textarea/textarea.css +1 -1
  189. package/dist/components/ui/toast/index.js +1 -1
  190. package/dist/components/ui/toast/index.js.map +4 -4
  191. package/dist/components/ui/toast/toast.css +35 -32
  192. package/dist/components/ui/toast/toast.script.d.ts +17 -31
  193. package/dist/components/ui/toast/toaster.script.d.ts +24 -12
  194. package/dist/components/ui/toc/toc.script.d.ts +19 -8
  195. package/dist/components/ui/toolbar/toolbar.d.ts +5 -0
  196. package/dist/components/ui/toolbar/toolbar.script.d.ts +24 -4
  197. package/dist/components/ui/tooltip/index.js +1 -1
  198. package/dist/components/ui/tooltip/index.js.map +4 -4
  199. package/dist/components/ui/tooltip/tooltip.css +14 -94
  200. package/dist/components/ui/tooltip/tooltip.d.ts +7 -0
  201. package/dist/components/ui/tooltip/tooltip.script.d.ts +36 -6
  202. package/dist/components/ui/tree/tree.d.ts +4 -3
  203. package/dist/components/ui/tree/tree.script.d.ts +28 -15
  204. package/dist/components/ui/treegrid/treegrid.d.ts +5 -3
  205. package/dist/components/ui/treegrid/treegrid.script.d.ts +33 -14
  206. package/dist/components/ui/window-splitter/index.d.ts +1 -1
  207. package/dist/components/ui/window-splitter/index.js +1 -1
  208. package/dist/components/ui/window-splitter/index.js.map +3 -3
  209. package/dist/components/ui/window-splitter/window-splitter.d.ts +10 -1
  210. package/dist/components/ui/window-splitter/window-splitter.script.d.ts +26 -8
  211. package/dist/index.d.ts +2 -0
  212. package/dist/index.js +1 -1
  213. package/dist/index.js.map +4 -4
  214. package/dist/lib/icons/check.d.ts +3 -0
  215. package/dist/lib/icons/chevron-down.d.ts +0 -1
  216. package/dist/lib/icons/index.d.ts +2 -0
  217. package/dist/lib/icons/x.d.ts +5 -0
  218. package/dist/lib/intl-date/index.d.ts +4 -2
  219. package/dist/lib/intl-date/segment-editing.d.ts +34 -0
  220. package/dist/lib/intl-date/segments.d.ts +26 -4
  221. package/dist/lib/non-empty.d.ts +6 -0
  222. package/dist/lib/unique-id.d.ts +11 -0
  223. package/dist/lib/viewport/breakpoints.d.ts +6 -0
  224. package/dist/lib/viewport/mobile-layout.d.ts +15 -0
  225. package/dist/styles/primitives.css +14 -11
  226. package/dist/styles/radiant-ui-core.css +10 -0
  227. package/dist/styles/radiant-ui.css +40 -11
  228. package/dist/styles/style-dependencies.json +38 -13
  229. package/dist/styles/styles.css +485 -252
  230. package/dist/styles/tailwind.css +40 -101
  231. package/dist/styles/tokens/presets/colors/aurora.css +2 -0
  232. package/dist/styles/tokens/presets/colors/basalt.css +2 -0
  233. package/dist/styles/tokens/presets/colors/ember.css +2 -0
  234. package/dist/styles/tokens/presets/colors/glacier.css +2 -0
  235. package/dist/styles/tokens/semantic.css +1 -0
  236. package/dist/styles/tokens/system.css +11 -3
  237. package/dist/styles/tokens/typography/default.css +8 -0
  238. package/package.json +27 -13
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/components/ui/tooltip/tooltip.script.tsx", "../../../../src/lib/focusable-elements.ts", "../../../../src/components/ui/shared/floating-position.ts", "../../../../src/components/ui/tooltip/tooltip.tsx"],
4
- "sourcesContent": ["let _initProto, _initClass, _init_content, _init_extra_content, _init_placement, _init_extra_placement, _init_delay, _init_extra_delay, _init_tooltipTarget, _init_extra_tooltipTarget;\nfunction _applyDecs(e, t, n, r, o, i) { var a, c, u, s, f, l, p, d = Symbol.metadata || Symbol.for(\"Symbol.metadata\"), m = Object.defineProperty, h = Object.create, y = [h(null), h(null)], v = t.length; function g(t, n, r) { return function (o, i) { n && (i = o, o = e); for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); return r ? i : o; }; } function b(e, t, n, r) { if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\")); return e; } function applyDec(e, t, n, r, o, i, u, s, f, l, p) { function d(e) { if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\"); } var h = [].concat(t[0]), v = t[3], w = !u, D = 1 === o, S = 3 === o, j = 4 === o, E = 2 === o; function I(t, n, r) { return function (o, i) { return n && (i = o, o = e), r && r(o), P[t].call(o, i); }; } if (!w) { var P = {}, k = [], F = S ? \"get\" : j || D ? \"set\" : \"value\"; if (f ? (l || D ? P = { get: _setFunctionName(function () { return v(this); }, r, \"get\"), set: function (e) { t[4](this, e); } } : P[F] = v, l || _setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\"); y[+s][r] = o < 3 ? 1 : o; } } for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { var T = b(h[O], \"A decorator\", \"be\", !0), z = n ? h[O - 1] : void 0, A = {}, H = { kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o], name: r, metadata: a, addInitializer: function (e, t) { if (e.v) throw new TypeError(\"attempted to call addInitializer after decoration was finished\"); b(t, \"An initializer\", \"be\", !0), i.push(t); }.bind(null, A) }; if (w) c = T.call(z, N, H), A.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (H.static = s, H.private = f, c = H.access = { has: f ? p.bind() : function (e) { return r in e; } }, j || (c.get = f ? E ? function (e) { return d(e), P.value; } : I(\"get\", 0, d) : function (e) { return e[r]; }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) { e[r] = t; }), N = T.call(z, D ? { get: P.get, set: P.set } : P[F], H), A.v = 1, D) { if (\"object\" == typeof N && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\"); } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N); } return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; } function w(e) { return m(e, d, { configurable: !0, enumerable: !0, value: a }); } return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function (e) { e && f.push(g(e)); }, p = function (t, r) { for (var i = 0; i < n.length; i++) { var a = n[i], c = a[1], l = 7 & c; if ((8 & c) == t && !l == r) { var p = a[2], d = !!a[3], m = 16 & c; applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : _toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { return _checkInRHS(t) === e; } : o); } } }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { e: c, get c() { var n = []; return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; } }; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _setFunctionName(e, t, n) { \"symbol\" == typeof t && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\"); try { Object.defineProperty(e, \"name\", { configurable: !0, value: n ? n + \" \" + t : t }); } catch (e) {} return e; }\nfunction _checkInRHS(e) { if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? typeof e : \"null\")); return e; }\nimport { jsx, jsxs } from \"@ecopages/jsx/jsx-runtime\";\nimport { RadiantElement, bound, customElement, onEvent, onUpdated, prop, query } from \"@ecopages/radiant\";\nimport { findFirstFocusableCandidate } from \"@/lib/focusable-elements\";\nimport { applyFloatingPosition, attachFloating } from \"../shared/floating-position\";\nconst TOOLTIP_GAP = 8;\nlet _RuiTooltip;\nclass RuiTooltip extends RadiantElement {\n static {\n ({\n e: [_init_content, _init_extra_content, _init_placement, _init_extra_placement, _init_delay, _init_extra_delay, _init_tooltipTarget, _init_extra_tooltipTarget, _initProto],\n c: [_RuiTooltip, _initClass]\n } = _applyDecs(this, [customElement(\"rui-tooltip\")], [[prop({\n type: String,\n defaultValue: \"\"\n }), 0, \"content\"], [prop({\n type: String,\n defaultValue: \"top\"\n }), 0, \"placement\"], [prop({\n type: Number,\n defaultValue: 200\n }), 0, \"delay\"], [query({\n ref: \"tooltip\"\n }), 0, \"tooltipTarget\"], [onUpdated([\"content\", \"placement\"]), 2, \"onDescribedPropsUpdated\"], [onEvent({\n document: true,\n type: \"keydown\"\n }), 2, \"onDocumentKeydown\"], [onEvent({\n type: \"focusin\",\n selector: \".rui-tooltip__trigger\"\n }), 2, \"onFocusIn\"], [onEvent({\n type: \"focusout\",\n selector: \".rui-tooltip__trigger\"\n }), 2, \"onFocusOut\"], [bound, 2, \"onPointerEnter\"], [bound, 2, \"onPointerLeave\"]], 0, void 0, RadiantElement));\n }\n content = (_initProto(this), _init_content(this));\n placement = (_init_extra_content(this), _init_placement(this));\n delay = (_init_extra_placement(this), _init_delay(this));\n tooltipTarget = (_init_extra_delay(this), _init_tooltipTarget(this));\n /**\n * Plain (non-reactive) field, not a JSX binding target: `hidden` is toggled\n * imperatively in `setOpen()` rather than bound, since it flips on every\n * hover/focus in/out \u2014 high-frequency enough that a plain synchronous DOM\n * write is preferable to routing it through the reactive binding system.\n */\n open = (_init_extra_tooltipTarget(this), false);\n showTimer = null;\n hideTimer = null;\n tooltipId = `rui-tooltip-${Math.random().toString(36).slice(2, 9)}`;\n describedEl = null;\n cleanupFloating = null;\n /**\n * Pointer enter/leave must be host listeners: those events do not bubble, and\n * `@onEvent` only supports delegated (bubbling) listeners.\n */\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener(\"pointerenter\", this.onPointerEnter);\n this.addEventListener(\"pointerleave\", this.onPointerLeave);\n queueMicrotask(() => this.wireTrigger());\n }\n disconnectedCallback() {\n this.clearTimers();\n this.teardownFloating();\n this.removeEventListener(\"pointerenter\", this.onPointerEnter);\n this.removeEventListener(\"pointerleave\", this.onPointerLeave);\n this.describedEl?.removeAttribute(\"aria-describedby\");\n super.disconnectedCallback();\n }\n clearTimers() {\n if (this.showTimer) clearTimeout(this.showTimer);\n if (this.hideTimer) clearTimeout(this.hideTimer);\n this.showTimer = null;\n this.hideTimer = null;\n }\n teardownFloating() {\n this.cleanupFloating?.();\n this.cleanupFloating = null;\n }\n getAnchor() {\n return findFirstFocusableCandidate(this) ?? this;\n }\n wireTrigger() {\n this.describedEl?.removeAttribute(\"aria-describedby\");\n this.describedEl = this.getAnchor();\n if (this.tooltipTarget) this.tooltipTarget.id = this.tooltipId;\n this.describedEl.setAttribute(\"aria-describedby\", this.tooltipId);\n }\n attachFloating() {\n if (!this.tooltipTarget) return;\n this.teardownFloating();\n this.cleanupFloating = attachFloating({\n anchor: this.getAnchor(),\n floating: this.tooltipTarget,\n getPlacement: () => this.placement,\n gap: TOOLTIP_GAP\n });\n }\n onDescribedPropsUpdated() {\n this.wireTrigger();\n if (this.open && this.tooltipTarget) {\n applyFloatingPosition(this.getAnchor(), this.tooltipTarget, this.placement, TOOLTIP_GAP);\n }\n }\n setOpen(next) {\n this.clearTimers();\n this.open = next;\n if (!this.tooltipTarget) return;\n this.tooltipTarget.hidden = !next;\n if (next) this.attachFloating();else this.teardownFloating();\n }\n scheduleShow() {\n this.clearTimers();\n if (this.delay <= 0) {\n this.setOpen(true);\n return;\n }\n this.showTimer = setTimeout(() => this.setOpen(true), this.delay);\n }\n scheduleHide() {\n this.clearTimers();\n this.hideTimer = setTimeout(() => this.setOpen(false), 80);\n }\n onDocumentKeydown(event) {\n if (!this.open || event.key !== \"Escape\") return;\n this.setOpen(false);\n }\n onFocusIn() {\n this.scheduleShow();\n }\n onFocusOut(event) {\n const next = event.relatedTarget;\n if (next && this.contains(next)) return;\n this.scheduleHide();\n }\n onPointerEnter() {\n this.scheduleShow();\n }\n onPointerLeave() {\n this.scheduleHide();\n }\n render() {\n return /* @__PURE__ */jsxs(\"span\", {\n class: \"rui-tooltip\",\n children: [/* @__PURE__ */jsx(\"span\", {\n class: \"rui-tooltip__trigger\",\n children: /* @__PURE__ */jsx(\"slot\", {})\n }), /* @__PURE__ */jsx(\"span\", {\n \"data-ref\": \"tooltip\",\n id: this.tooltipId,\n class: \"rui-tooltip__content rui-floating\",\n role: \"tooltip\",\n hidden: true,\n children: this.$.content\n })]\n });\n }\n static {\n _initClass();\n }\n}\nexport { _RuiTooltip as RuiTooltip };", "const FOCUSABLE_CANDIDATE_SELECTOR = \"a[href], button, input, select, textarea, [tabindex]\";\nfunction isFocusableCandidate(element) {\n return !element.hasAttribute(\"disabled\") && element.getAttribute(\"tabindex\") !== \"-1\";\n}\nexport function queryFocusableCandidates(root) {\n return Array.from(root.querySelectorAll(FOCUSABLE_CANDIDATE_SELECTOR)).filter(isFocusableCandidate);\n}\nexport function queryRovingTabindexItems(root) {\n return Array.from(root.querySelectorAll(FOCUSABLE_CANDIDATE_SELECTOR)).filter(element => !element.hasAttribute(\"disabled\"));\n}\nexport function findFirstFocusableCandidate(root) {\n return queryFocusableCandidates(root)[0];\n}\nfunction isVisible(element) {\n return element.getClientRects().length > 0 && !element.closest(\"[hidden]\");\n}\nexport function getFocusableElements(root) {\n return queryFocusableCandidates(root).filter(isVisible);\n}", "const OPPOSITE = {\n top: \"bottom\",\n bottom: \"top\",\n left: \"right\",\n right: \"left\"\n};\nconst DEFAULT_VIEWPORT_PADDING = 8;\nfunction parsePlacement(placement) {\n const dash = placement.indexOf(\"-\");\n if (dash === -1) return {\n side: placement,\n align: \"center\"\n };\n const side = placement.slice(0, dash);\n const align = placement.slice(dash + 1);\n return {\n side,\n align: align === \"start\" || align === \"end\" ? align : \"center\"\n };\n}\nfunction primaryAxis(side) {\n return side === \"top\" || side === \"bottom\" ? \"y\" : \"x\";\n}\nfunction coordsFor(anchor, size, side, align, gap) {\n const {\n width,\n height\n } = size;\n let x = 0;\n let y = 0;\n switch (side) {\n case \"top\":\n y = anchor.top - height - gap;\n break;\n case \"bottom\":\n y = anchor.bottom + gap;\n break;\n case \"left\":\n x = anchor.left - width - gap;\n break;\n case \"right\":\n x = anchor.right + gap;\n break;\n }\n if (primaryAxis(side) === \"y\") {\n if (align === \"start\") x = anchor.left;else if (align === \"end\") x = anchor.right - width;else x = anchor.left + (anchor.width - width) / 2;\n } else {\n if (align === \"start\") y = anchor.top;else if (align === \"end\") y = anchor.bottom - height;else y = anchor.top + (anchor.height - height) / 2;\n }\n return {\n x,\n y\n };\n}\nfunction overflowOnPrimary(coords, size, side, viewport) {\n const {\n padding,\n width: vw,\n height: vh\n } = viewport;\n if (side === \"top\") return Math.max(0, padding - coords.y);\n if (side === \"bottom\") return Math.max(0, coords.y + size.height - (vh - padding));\n if (side === \"left\") return Math.max(0, padding - coords.x);\n return Math.max(0, coords.x + size.width - (vw - padding));\n}\nfunction freeSpaceOnSide(anchor, size, side, viewport) {\n const {\n padding,\n width: vw,\n height: vh\n } = viewport;\n if (side === \"top\") return anchor.top - padding - size.height;\n if (side === \"bottom\") return vh - padding - size.height - anchor.bottom;\n if (side === \"left\") return anchor.left - padding - size.width;\n return vw - padding - size.width - anchor.right;\n}\nfunction toPlacement(side, align) {\n if (align === \"center\") {\n return side;\n }\n return `${side}-${align}`;\n}\nfunction clampCrossAxis(coords, size, side, viewport) {\n const {\n padding,\n width: vw,\n height: vh\n } = viewport;\n if (primaryAxis(side) === \"y\") {\n const maxX = Math.max(padding, vw - padding - size.width);\n return {\n x: Math.min(Math.max(coords.x, padding), maxX),\n y: coords.y\n };\n }\n const maxY = Math.max(padding, vh - padding - size.height);\n return {\n x: coords.x,\n y: Math.min(Math.max(coords.y, padding), maxY)\n };\n}\nexport function computeFloatingCoords(anchor, size, placement, gap, viewport = {\n width: typeof window === \"undefined\" ? 0 : window.innerWidth,\n height: typeof window === \"undefined\" ? 0 : window.innerHeight,\n padding: DEFAULT_VIEWPORT_PADDING\n}) {\n return computeFloatingPosition(anchor, size, placement, gap, viewport).coords;\n}\nexport function computeFloatingPosition(anchor, size, placement, gap, viewport = {\n width: typeof window === \"undefined\" ? 0 : window.innerWidth,\n height: typeof window === \"undefined\" ? 0 : window.innerHeight,\n padding: DEFAULT_VIEWPORT_PADDING\n}) {\n const {\n side: preferred,\n align\n } = parsePlacement(placement);\n const preferredCoords = coordsFor(anchor, size, preferred, align, gap);\n const preferredOverflow = overflowOnPrimary(preferredCoords, size, preferred, viewport);\n let side = preferred;\n let coords = preferredCoords;\n if (preferredOverflow > 0) {\n const flipped = OPPOSITE[preferred];\n const flippedCoords = coordsFor(anchor, size, flipped, align, gap);\n const preferredFree = freeSpaceOnSide(anchor, size, preferred, viewport);\n const flippedFree = freeSpaceOnSide(anchor, size, flipped, viewport);\n if (flippedFree > preferredFree) {\n side = flipped;\n coords = flippedCoords;\n }\n }\n return {\n coords: clampCrossAxis(coords, size, side, viewport),\n placement: toPlacement(side, align)\n };\n}\nexport function applyFloatingPosition(anchor, floating, placement, gap, options = {}) {\n const {\n coords,\n placement: resolved\n } = computeFloatingPosition(anchor.getBoundingClientRect(), {\n width: floating.offsetWidth,\n height: floating.offsetHeight\n }, placement, gap);\n Object.assign(floating.style, {\n position: \"fixed\",\n left: `${coords.x}px`,\n top: `${coords.y}px`,\n right: \"auto\",\n bottom: \"auto\",\n visibility: \"visible\"\n });\n if (options.matchAnchorWidth) {\n floating.style.width = `${anchor.offsetWidth}px`;\n }\n floating.setAttribute(\"data-placement\", resolved);\n return resolved;\n}\nexport function attachFloating({\n anchor,\n floating,\n getPlacement,\n gap,\n matchAnchorWidth\n}) {\n const update = () => {\n if (floating.hidden) return;\n applyFloatingPosition(anchor, floating, getPlacement(), gap, {\n matchAnchorWidth\n });\n };\n update();\n window.addEventListener(\"resize\", update);\n window.addEventListener(\"scroll\", update, true);\n const observer = new ResizeObserver(update);\n observer.observe(anchor);\n observer.observe(floating);\n return () => {\n window.removeEventListener(\"resize\", update);\n window.removeEventListener(\"scroll\", update, true);\n observer.disconnect();\n };\n}", "import { jsx, jsxs } from \"@ecopages/jsx/jsx-runtime\";\nimport \"./tooltip.script\";\nexport function RuiTooltip({\n children,\n content = \"\",\n ...props\n}) {\n return /* @__PURE__ */jsx(\"rui-tooltip\", {\n content,\n ...props,\n children: /* @__PURE__ */jsxs(\"span\", {\n class: \"rui-tooltip\",\n children: [/* @__PURE__ */jsx(\"span\", {\n class: \"rui-tooltip__trigger\",\n children\n }), /* @__PURE__ */jsx(\"span\", {\n class: \"rui-tooltip__content rui-floating\",\n \"data-ref\": \"tooltip\",\n role: \"tooltip\",\n hidden: true,\n children: content\n })]\n })\n });\n}"],
5
- "mappings": "AAMA,OAAS,OAAAA,EAAK,QAA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ent", "onUpdated", "prop", "query", "FOCUSABLE_CANDIDATE_SELECTOR", "isFocusableCandidate", "element", "queryFocusableCandidates", "root", "findFirstFocusableCandidate", "root", "queryFocusableCandidates", "OPPOSITE", "DEFAULT_VIEWPORT_PADDING", "parsePlacement", "placement", "dash", "side", "align", "primaryAxis", "coordsFor", "anchor", "size", "gap", "width", "height", "x", "y", "overflowOnPrimary", "coords", "viewport", "padding", "vw", "vh", "freeSpaceOnSide", "toPlacement", "clampCrossAxis", "maxX", "maxY", "computeFloatingPosition", "anchor", "size", "placement", "gap", "viewport", "DEFAULT_VIEWPORT_PADDING", "preferred", "align", "parsePlacement", "preferredCoords", "coordsFor", "preferredOverflow", "overflowOnPrimary", "side", "coords", "flipped", "OPPOSITE", "flippedCoords", "preferredFree", "freeSpaceOnSide", "clampCrossAxis", "toPlacement", "applyFloatingPosition", "floating", "options", "resolved", "attachFloating", "getPlacement", "matchAnchorWidth", "update", "observer", "_initProto", "_initClass", "_init_content", "_init_extra_content", "_init_placement", "_init_extra_placement", "_init_delay", "_init_extra_delay", "_init_tooltipTarget", "_init_extra_tooltipTarget", "_applyDecs", "e", "t", "n", "r", "o", "i", "c", "u", "s", "f", "l", "p", "d", "m", "h", "y", "v", "g", "a", "b", "applyDec", "w", "D", "S", "j", "E", "I", "P", "k", "F", "_setFunctionName", "N", "O", "T", "z", "A", "H", "_toPropertyKey", "_checkInRHS", "_toPrimitive", "TOOLTIP_GAP", "_RuiTooltip", "RuiTooltip", "RadiantElement", "customElement", "prop", "query", "onUpdated", "onEvent", "bound", "findFirstFocusableCandidate", "attachFloating", "applyFloatingPosition", "next", "event", "jsxs", "jsx", "jsx", "jsxs", "RuiTooltip", "children", "content", "props", "jsx", "jsxs"]
3
+ "sources": ["../../../../src/components/ui/tooltip/tooltip.script.tsx", "../../../../src/lib/focusable-elements.ts", "../../../../src/lib/unique-id.ts", "../../../../src/components/ui/shared/floating-position.ts", "../../../../src/components/ui/tooltip/tooltip.tsx"],
4
+ "sourcesContent": ["let _initProto, _initClass, _init_content, _init_extra_content, _init_placement, _init_extra_placement, _init_delay, _init_extra_delay, _init_tooltipTarget, _init_extra_tooltipTarget;\nfunction _applyDecs(e, t, n, r, o, i) { var a, c, u, s, f, l, p, d = Symbol.metadata || Symbol.for(\"Symbol.metadata\"), m = Object.defineProperty, h = Object.create, y = [h(null), h(null)], v = t.length; function g(t, n, r) { return function (o, i) { n && (i = o, o = e); for (var a = 0; a < t.length; a++) i = t[a].apply(o, r ? [i] : []); return r ? i : o; }; } function b(e, t, n, r) { if (\"function\" != typeof e && (r || void 0 !== e)) throw new TypeError(t + \" must \" + (n || \"be\") + \" a function\" + (r ? \"\" : \" or undefined\")); return e; } function applyDec(e, t, n, r, o, i, u, s, f, l, p) { function d(e) { if (!p(e)) throw new TypeError(\"Attempted to access private element on non-instance\"); } var h = [].concat(t[0]), v = t[3], w = !u, D = 1 === o, S = 3 === o, j = 4 === o, E = 2 === o; function I(t, n, r) { return function (o, i) { return n && (i = o, o = e), r && r(o), P[t].call(o, i); }; } if (!w) { var P = {}, k = [], F = S ? \"get\" : j || D ? \"set\" : \"value\"; if (f ? (l || D ? P = { get: _setFunctionName(function () { return v(this); }, r, \"get\"), set: function (e) { t[4](this, e); } } : P[F] = v, l || _setFunctionName(P[F], r, E ? \"\" : F)) : l || (P = Object.getOwnPropertyDescriptor(e, r)), !l && !f) { if ((c = y[+s][r]) && 7 !== (c ^ o)) throw Error(\"Decorating two elements with the same name (\" + P[F].name + \") is not supported yet\"); y[+s][r] = o < 3 ? 1 : o; } } for (var N = e, O = h.length - 1; O >= 0; O -= n ? 2 : 1) { var T = b(h[O], \"A decorator\", \"be\", !0), z = n ? h[O - 1] : void 0, A = {}, H = { kind: [\"field\", \"accessor\", \"method\", \"getter\", \"setter\", \"class\"][o], name: r, metadata: a, addInitializer: function (e, t) { if (e.v) throw new TypeError(\"attempted to call addInitializer after decoration was finished\"); b(t, \"An initializer\", \"be\", !0), i.push(t); }.bind(null, A) }; if (w) c = T.call(z, N, H), A.v = 1, b(c, \"class decorators\", \"return\") && (N = c);else if (H.static = s, H.private = f, c = H.access = { has: f ? p.bind() : function (e) { return r in e; } }, j || (c.get = f ? E ? function (e) { return d(e), P.value; } : I(\"get\", 0, d) : function (e) { return e[r]; }), E || S || (c.set = f ? I(\"set\", 0, d) : function (e, t) { e[r] = t; }), N = T.call(z, D ? { get: P.get, set: P.set } : P[F], H), A.v = 1, D) { if (\"object\" == typeof N && N) (c = b(N.get, \"accessor.get\")) && (P.get = c), (c = b(N.set, \"accessor.set\")) && (P.set = c), (c = b(N.init, \"accessor.init\")) && k.unshift(c);else if (void 0 !== N) throw new TypeError(\"accessor decorators must return an object with get, set, or init properties or undefined\"); } else b(N, (l ? \"field\" : \"method\") + \" decorators\", \"return\") && (l ? k.unshift(N) : P[F] = N); } return o < 2 && u.push(g(k, s, 1), g(i, s, 0)), l || w || (f ? D ? u.splice(-1, 0, I(\"get\", s), I(\"set\", s)) : u.push(E ? P[F] : b.call.bind(P[F])) : m(e, r, P)), N; } function w(e) { return m(e, d, { configurable: !0, enumerable: !0, value: a }); } return void 0 !== i && (a = i[d]), a = h(null == a ? null : a), f = [], l = function (e) { e && f.push(g(e)); }, p = function (t, r) { for (var i = 0; i < n.length; i++) { var a = n[i], c = a[1], l = 7 & c; if ((8 & c) == t && !l == r) { var p = a[2], d = !!a[3], m = 16 & c; applyDec(t ? e : e.prototype, a, m, d ? \"#\" + p : _toPropertyKey(p), l, l < 2 ? [] : t ? s = s || [] : u = u || [], f, !!t, d, r, t && d ? function (t) { return _checkInRHS(t) === e; } : o); } } }, p(8, 0), p(0, 0), p(8, 1), p(0, 1), l(u), l(s), c = f, v || w(e), { e: c, get c() { var n = []; return v && [w(e = applyDec(e, [t], r, e.name, 5, n)), g(n, 1)]; } }; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _setFunctionName(e, t, n) { \"symbol\" == typeof t && (t = (t = t.description) ? \"[\" + t + \"]\" : \"\"); try { Object.defineProperty(e, \"name\", { configurable: !0, value: n ? n + \" \" + t : t }); } catch (e) {} return e; }\nfunction _checkInRHS(e) { if (Object(e) !== e) throw TypeError(\"right-hand side of 'in' should be an object, got \" + (null !== e ? typeof e : \"null\")); return e; }\nimport { jsx, jsxs } from \"@ecopages/jsx/jsx-runtime\";\nimport { RadiantElement, bound, customElement, onEvent, onUpdated, prop, query } from \"@ecopages/radiant\";\nimport { findFirstFocusableCandidate } from \"@/lib/focusable-elements\";\nimport { uniqueId } from \"@/lib/unique-id\";\nimport { applyFloatingPosition, attachFloating } from \"../shared/floating-position\";\nconst TOOLTIP_GAP = 8;\nlet _RuiTooltip;\nclass RuiTooltip extends RadiantElement {\n static {\n ({\n e: [_init_content, _init_extra_content, _init_placement, _init_extra_placement, _init_delay, _init_extra_delay, _init_tooltipTarget, _init_extra_tooltipTarget, _initProto],\n c: [_RuiTooltip, _initClass]\n } = _applyDecs(this, [customElement(\"rui-tooltip\")], [[prop({\n type: String,\n defaultValue: \"\"\n }), 0, \"content\"], [prop({\n type: String,\n defaultValue: \"top\"\n }), 0, \"placement\"], [prop({\n type: Number,\n defaultValue: 200\n }), 0, \"delay\"], [query({\n ref: \"tooltip\"\n }), 0, \"tooltipTarget\"], [onUpdated([\"content\", \"placement\"]), 2, \"onDescribedPropsUpdated\"], [onEvent({\n document: true,\n type: \"keydown\"\n }), 2, \"onDocumentKeydown\"], [onEvent({\n type: \"focusin\",\n ref: \"trigger\"\n }), 2, \"onFocusIn\"], [onEvent({\n type: \"focusout\",\n ref: \"trigger\"\n }), 2, \"onFocusOut\"], [bound, 2, \"onPointerEnter\"], [bound, 2, \"onPointerLeave\"]], 0, void 0, RadiantElement));\n }\n content = (_initProto(this), _init_content(this));\n placement = (_init_extra_content(this), _init_placement(this));\n delay = (_init_extra_placement(this), _init_delay(this));\n tooltipTarget = (_init_extra_delay(this), _init_tooltipTarget(this));\n /**\n * Plain (non-reactive) field, not a JSX binding target: `hidden` is toggled\n * imperatively in `setOpen()` rather than bound, since it flips on every\n * hover/focus in/out \u2014 high-frequency enough that a plain synchronous DOM\n * write is preferable to routing it through the reactive binding system.\n */\n open = (_init_extra_tooltipTarget(this), false);\n showTimer = null;\n hideTimer = null;\n tooltipId = uniqueId(\"rui-tooltip\");\n describedEl = null;\n cleanupFloating = null;\n /**\n * Pointer enter/leave must be host listeners: those events do not bubble, and\n * `@onEvent` only supports delegated (bubbling) listeners.\n */\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener(\"pointerenter\", this.onPointerEnter);\n this.addEventListener(\"pointerleave\", this.onPointerLeave);\n queueMicrotask(() => this.wireTrigger());\n }\n disconnectedCallback() {\n this.clearTimers();\n this.teardownFloating();\n this.removeEventListener(\"pointerenter\", this.onPointerEnter);\n this.removeEventListener(\"pointerleave\", this.onPointerLeave);\n this.describedEl?.removeAttribute(\"aria-describedby\");\n super.disconnectedCallback();\n }\n clearTimers() {\n if (this.showTimer) clearTimeout(this.showTimer);\n if (this.hideTimer) clearTimeout(this.hideTimer);\n this.showTimer = null;\n this.hideTimer = null;\n }\n teardownFloating() {\n this.cleanupFloating?.();\n this.cleanupFloating = null;\n }\n getAnchor() {\n return findFirstFocusableCandidate(this) ?? this;\n }\n wireTrigger() {\n this.describedEl?.removeAttribute(\"aria-describedby\");\n this.describedEl = this.getAnchor();\n if (this.tooltipTarget) this.tooltipTarget.id = this.tooltipId;\n this.describedEl.setAttribute(\"aria-describedby\", this.tooltipId);\n }\n attachFloating() {\n if (!this.tooltipTarget) return;\n this.teardownFloating();\n this.cleanupFloating = attachFloating({\n anchor: this.getAnchor(),\n floating: this.tooltipTarget,\n getPlacement: () => this.placement,\n gap: TOOLTIP_GAP\n });\n }\n onDescribedPropsUpdated() {\n this.wireTrigger();\n if (this.open && this.tooltipTarget) {\n applyFloatingPosition(this.getAnchor(), this.tooltipTarget, this.placement, TOOLTIP_GAP);\n }\n }\n setOpen(next) {\n this.clearTimers();\n this.open = next;\n if (!this.tooltipTarget) return;\n this.tooltipTarget.hidden = !next;\n if (next) this.attachFloating();else this.teardownFloating();\n }\n scheduleShow() {\n this.clearTimers();\n if (this.delay <= 0) {\n this.setOpen(true);\n return;\n }\n this.showTimer = setTimeout(() => this.setOpen(true), this.delay);\n }\n scheduleHide() {\n this.clearTimers();\n this.hideTimer = setTimeout(() => this.setOpen(false), 80);\n }\n onDocumentKeydown(event) {\n if (!this.open || event.key !== \"Escape\") return;\n this.setOpen(false);\n }\n onFocusIn() {\n this.scheduleShow();\n }\n onFocusOut(event) {\n const next = event.relatedTarget;\n if (next && this.contains(next)) return;\n this.scheduleHide();\n }\n onPointerEnter() {\n this.scheduleShow();\n }\n onPointerLeave() {\n this.scheduleHide();\n }\n render() {\n return /* @__PURE__ */jsxs(\"span\", {\n class: \"rui-tooltip\",\n children: [/* @__PURE__ */jsx(\"span\", {\n class: \"rui-tooltip__trigger\",\n \"data-ref\": \"trigger\",\n children: /* @__PURE__ */jsx(\"slot\", {})\n }), /* @__PURE__ */jsx(\"span\", {\n \"data-ref\": \"tooltip\",\n id: this.tooltipId,\n class: \"rui-tooltip__content rui-floating\",\n role: \"tooltip\",\n hidden: true,\n children: this.$.content\n })]\n });\n }\n static {\n _initClass();\n }\n}\nexport { _RuiTooltip as RuiTooltip };", "const FOCUSABLE_CANDIDATE_SELECTOR = \"a[href], button, input, select, textarea, [tabindex]\";\nfunction isFocusableCandidate(element) {\n return !element.hasAttribute(\"disabled\") && element.getAttribute(\"tabindex\") !== \"-1\";\n}\nexport function queryFocusableCandidates(root) {\n return Array.from(root.querySelectorAll(FOCUSABLE_CANDIDATE_SELECTOR)).filter(isFocusableCandidate);\n}\nexport function queryRovingTabindexItems(root) {\n return Array.from(root.querySelectorAll(FOCUSABLE_CANDIDATE_SELECTOR)).filter(element => !element.hasAttribute(\"disabled\"));\n}\nexport function findFirstFocusableCandidate(root) {\n return queryFocusableCandidates(root)[0];\n}\nfunction isVisible(element) {\n return element.getClientRects().length > 0 && !element.closest(\"[hidden]\");\n}\nexport function getFocusableElements(root) {\n return queryFocusableCandidates(root).filter(isVisible);\n}", "const CSS_SAFE_ID = /^[A-Za-z][A-Za-z0-9_-]*$/;\nexport function isCssSafeId(value) {\n return CSS_SAFE_ID.test(value);\n}\nfunction cssSafePrefix(prefix) {\n const trimmed = prefix.trim();\n if (isCssSafeId(trimmed)) {\n return trimmed;\n }\n const prefixed = `rui-${trimmed}`;\n if (trimmed && isCssSafeId(prefixed)) {\n return prefixed;\n }\n return \"rui\";\n}\nexport function uniqueId(prefix) {\n const token = typeof crypto.randomUUID === \"function\" ? crypto.randomUUID().replace(/-/g, \"\") : Array.from(crypto.getRandomValues(new Uint8Array(16)), byte => byte.toString(16).padStart(2, \"0\")).join(\"\");\n return `${cssSafePrefix(prefix)}-${token}`;\n}", "const OPPOSITE = {\n top: \"bottom\",\n bottom: \"top\",\n left: \"right\",\n right: \"left\"\n};\nconst DEFAULT_VIEWPORT_PADDING = 8;\nconst matchAnchorWidthStylesApplied = /* @__PURE__ */new WeakMap();\nfunction clearMatchAnchorWidthStyles(floating) {\n if (!matchAnchorWidthStylesApplied.has(floating)) {\n return;\n }\n floating.style.width = \"\";\n floating.style.minWidth = \"\";\n floating.style.maxWidth = \"\";\n floating.style.boxSizing = \"\";\n matchAnchorWidthStylesApplied.delete(floating);\n}\nfunction parsePlacement(placement) {\n const dash = placement.indexOf(\"-\");\n if (dash === -1) return {\n side: placement,\n align: \"center\"\n };\n const side = placement.slice(0, dash);\n const align = placement.slice(dash + 1);\n return {\n side,\n align: align === \"start\" || align === \"end\" ? align : \"center\"\n };\n}\nfunction primaryAxis(side) {\n return side === \"top\" || side === \"bottom\" ? \"y\" : \"x\";\n}\nfunction coordsFor(anchor, size, side, align, gap) {\n const {\n width,\n height\n } = size;\n let x = 0;\n let y = 0;\n switch (side) {\n case \"top\":\n y = anchor.top - height - gap;\n break;\n case \"bottom\":\n y = anchor.bottom + gap;\n break;\n case \"left\":\n x = anchor.left - width - gap;\n break;\n case \"right\":\n x = anchor.right + gap;\n break;\n }\n if (primaryAxis(side) === \"y\") {\n if (align === \"start\") x = anchor.left;else if (align === \"end\") x = anchor.right - width;else x = anchor.left + (anchor.width - width) / 2;\n } else {\n if (align === \"start\") y = anchor.top;else if (align === \"end\") y = anchor.bottom - height;else y = anchor.top + (anchor.height - height) / 2;\n }\n return {\n x,\n y\n };\n}\nfunction overflowOnPrimary(coords, size, side, viewport) {\n const {\n padding,\n width: vw,\n height: vh\n } = viewport;\n if (side === \"top\") return Math.max(0, padding - coords.y);\n if (side === \"bottom\") return Math.max(0, coords.y + size.height - (vh - padding));\n if (side === \"left\") return Math.max(0, padding - coords.x);\n return Math.max(0, coords.x + size.width - (vw - padding));\n}\nfunction freeSpaceOnSide(anchor, size, side, viewport) {\n const {\n padding,\n width: vw,\n height: vh\n } = viewport;\n if (side === \"top\") return anchor.top - padding - size.height;\n if (side === \"bottom\") return vh - padding - size.height - anchor.bottom;\n if (side === \"left\") return anchor.left - padding - size.width;\n return vw - padding - size.width - anchor.right;\n}\nfunction toPlacement(side, align) {\n if (align === \"center\") {\n return side;\n }\n return `${side}-${align}`;\n}\nfunction clampCrossAxis(coords, size, side, viewport) {\n const {\n padding,\n width: vw,\n height: vh\n } = viewport;\n if (primaryAxis(side) === \"y\") {\n const maxX = Math.max(padding, vw - padding - size.width);\n return {\n x: Math.min(Math.max(coords.x, padding), maxX),\n y: Math.max(padding, coords.y)\n };\n }\n const maxY = Math.max(padding, vh - padding - size.height);\n return {\n x: Math.max(padding, coords.x),\n y: Math.min(Math.max(coords.y, padding), maxY)\n };\n}\nexport function computeFloatingCoords(anchor, size, placement, gap, viewport = {\n width: typeof window === \"undefined\" ? 0 : window.innerWidth,\n height: typeof window === \"undefined\" ? 0 : window.innerHeight,\n padding: DEFAULT_VIEWPORT_PADDING\n}) {\n return computeFloatingPosition(anchor, size, placement, gap, viewport).coords;\n}\nexport function computeFloatingPosition(anchor, size, placement, gap, viewport = {\n width: typeof window === \"undefined\" ? 0 : window.innerWidth,\n height: typeof window === \"undefined\" ? 0 : window.innerHeight,\n padding: DEFAULT_VIEWPORT_PADDING\n}) {\n const {\n side: preferred,\n align\n } = parsePlacement(placement);\n const preferredCoords = coordsFor(anchor, size, preferred, align, gap);\n const preferredOverflow = overflowOnPrimary(preferredCoords, size, preferred, viewport);\n let side = preferred;\n let coords = preferredCoords;\n if (preferredOverflow > 0) {\n const flipped = OPPOSITE[preferred];\n const flippedCoords = coordsFor(anchor, size, flipped, align, gap);\n const preferredFree = freeSpaceOnSide(anchor, size, preferred, viewport);\n const flippedFree = freeSpaceOnSide(anchor, size, flipped, viewport);\n if (flippedFree > preferredFree) {\n side = flipped;\n coords = flippedCoords;\n }\n }\n return {\n coords: clampCrossAxis(coords, size, side, viewport),\n placement: toPlacement(side, align)\n };\n}\nexport function applyFloatingPosition(anchor, floating, placement, gap, options = {}) {\n const matchAnchorWidth = options.matchAnchorWidth === true;\n const anchorWidth = anchor.offsetWidth;\n const size = matchAnchorWidth ? {\n width: anchorWidth,\n height: floating.offsetHeight\n } : {\n width: floating.offsetWidth,\n height: floating.offsetHeight\n };\n if (matchAnchorWidth) {\n floating.style.width = `${anchorWidth}px`;\n floating.style.minWidth = `${anchorWidth}px`;\n floating.style.maxWidth = `${anchorWidth}px`;\n floating.style.boxSizing = \"border-box\";\n matchAnchorWidthStylesApplied.set(floating, true);\n } else {\n clearMatchAnchorWidthStyles(floating);\n }\n const {\n coords,\n placement: resolved\n } = computeFloatingPosition(anchor.getBoundingClientRect(), size, placement, gap);\n Object.assign(floating.style, {\n position: \"fixed\",\n left: `${coords.x}px`,\n top: `${coords.y}px`,\n right: \"auto\",\n bottom: \"auto\",\n visibility: \"visible\"\n });\n floating.setAttribute(\"data-placement\", resolved);\n return resolved;\n}\nexport function attachFloating({\n anchor,\n floating,\n getPlacement,\n gap,\n matchAnchorWidth\n}) {\n const update = () => {\n if (floating.hidden) return;\n applyFloatingPosition(anchor, floating, getPlacement(), gap, {\n matchAnchorWidth\n });\n };\n update();\n window.addEventListener(\"resize\", update);\n window.addEventListener(\"scroll\", update, true);\n const observer = new ResizeObserver(update);\n observer.observe(anchor);\n observer.observe(floating);\n return () => {\n window.removeEventListener(\"resize\", update);\n window.removeEventListener(\"scroll\", update, true);\n observer.disconnect();\n };\n}", "import { jsx, jsxs } from \"@ecopages/jsx/jsx-runtime\";\nimport \"./tooltip.script\";\nexport function RuiTooltip({\n children,\n content = \"\",\n ...props\n}) {\n return /* @__PURE__ */jsx(\"rui-tooltip\", {\n content,\n ...props,\n children: /* @__PURE__ */jsxs(\"span\", {\n class: \"rui-tooltip\",\n children: [/* @__PURE__ */jsx(\"span\", {\n class: \"rui-tooltip__trigger\",\n \"data-ref\": \"trigger\",\n children\n }), /* @__PURE__ */jsx(\"span\", {\n class: \"rui-tooltip__content rui-floating\",\n \"data-ref\": \"tooltip\",\n role: \"tooltip\",\n hidden: true,\n children: content\n })]\n })\n });\n}"],
5
+ "mappings": "AAMA,OAAS,OAAAA,EAAK,QAAAC,OAAY,4BAC1B,OAAS,kBAAAC,GAAgB,SAAAC,GAAO,iBAAAC,GAAe,WAAAC,EAAS,aAAAC,GAAW,QAAAC,EAAM,SAAAC,OAAa,oBCPtF,IAAMC,GAA+B,uDACrC,SAASC,GAAqBC,EAAS,CACrC,MAAO,CAACA,EAAQ,aAAa,UAAU,GAAKA,EAAQ,aAAa,UAAU,IAAM,IACnF,CACO,SAASC,GAAyBC,EAAM,CAC7C,OAAO,MAAM,KAAKA,EAAK,iBAAiBJ,EAA4B,CAAC,EAAE,OAAOC,EAAoB,CACpG,CAIO,SAASI,GAA4BC,EAAM,CAChD,OAAOC,GAAyBD,CAAI,EAA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,OAAQ,CAAC,CAAC,CACzC,CAAC,EAAkBA,EAAI,OAAQ,CAC7B,WAAY,UACZ,GAAI,KAAK,UACT,MAAO,oCACP,KAAM,UACN,OAAQ,GACR,SAAU,KAAK,EAAE,OACnB,CAAC,CAAC,CACJ,CAAC,CACH,CACA,MAAO,CACLnE,GAAW,CACb,CACF,EItKA,OAAS,OAAAoE,EAAK,QAAAC,OAAY,4BAEnB,SAASC,GAAW,CACzB,SAAAC,EACA,QAAAC,EAAU,GACV,GAAGC,CACL,EAAG,CACD,OAAsBC,EAAI,cAAe,CACvC,QAAAF,EACA,GAAGC,EACH,SAAyBE,GAAK,OAAQ,CACpC,MAAO,cACP,SAAU,CAAgBD,EAAI,OAAQ,CACpC,MAAO,uBACP,WAAY,UACZ,SAAAH,CACF,CAAC,EAAkBG,EAAI,OAAQ,CAC7B,MAAO,oCACP,WAAY,UACZ,KAAM,UACN,OAAQ,GACR,SAAUF,CACZ,CAAC,CAAC,CACJ,CAAC,CACH,CAAC,CACH",
6
+ "names": ["jsx", "jsxs", "RadiantElement", "bound", "customElement", "onEvent", "onUpdated", "prop", "query", "FOCUSABLE_CANDIDATE_SELECTOR", "isFocusableCandidate", "element", "queryFocusableCandidates", "root", "findFirstFocusableCandidate", "root", "queryFocusableCandidates", "CSS_SAFE_ID", "isCssSafeId", "value", "cssSafePrefix", "prefix", "trimmed", "prefixed", "uniqueId", "token", "byte", "OPPOSITE", "DEFAULT_VIEWPORT_PADDING", "matchAnchorWidthStylesApplied", "clearMatchAnchorWidthStyles", "floating", "parsePlacement", "placement", "dash", "side", "align", "primaryAxis", "coordsFor", "anchor", "size", "gap", "width", "height", "x", "y", "overflowOnPrimary", "coords", "viewport", "padding", "vw", "vh", "freeSpaceOnSide", "toPlacement", "clampCrossAxis", "maxX", "maxY", "computeFloatingPosition", "anchor", "size", "placement", "gap", "viewport", "DEFAULT_VIEWPORT_PADDING", "preferred", "align", "parsePlacement", "preferredCoords", "coordsFor", "preferredOverflow", "overflowOnPrimary", "side", "coords", "flipped", "OPPOSITE", "flippedCoords", "preferredFree", "freeSpaceOnSide", "clampCrossAxis", "toPlacement", "applyFloatingPosition", "floating", "options", "matchAnchorWidth", "anchorWidth", "matchAnchorWidthStylesApplied", "clearMatchAnchorWidthStyles", "resolved", "attachFloating", "getPlacement", "update", "observer", "_initProto", "_initClass", "_init_content", "_init_extra_content", "_init_placement", "_init_extra_placement", "_init_delay", "_init_extra_delay", "_init_tooltipTarget", "_init_extra_tooltipTarget", "_applyDecs", "e", "t", "n", "r", "o", "i", "a", "c", "u", "s", "f", "l", "p", "d", "m", "h", "y", "v", "g", "b", "applyDec", "w", "D", "S", "j", "E", "I", "P", "k", "F", "_setFunctionName", "N", "O", "T", "z", "A", "H", "_toPropertyKey", "_checkInRHS", "_toPrimitive", "TOOLTIP_GAP", "_RuiTooltip", "RuiTooltip", "RadiantElement", "customElement", "prop", "query", "onUpdated", "onEvent", "bound", "uniqueId", "findFirstFocusableCandidate", "attachFloating", "applyFloatingPosition", "next", "event", "jsxs", "jsx", "jsx", "jsxs", "RuiTooltip", "children", "content", "props", "jsx", "jsxs"]
7
7
  }
@@ -1,6 +1,12 @@
1
1
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties;
3
2
  rui-tooltip {
3
+ --rui-tooltip-max-width: 20rem;
4
+ --rui-tooltip-padding-x: var(--space-2);
5
+ --rui-tooltip-padding-y: var(--space-1);
6
+ --rui-tooltip-radius: var(--radius-container);
7
+ --rui-tooltip-surface: var(--on-background);
8
+ --rui-tooltip-color: var(--background);
9
+ --rui-tooltip-shadow: var(--shadow-overlay);
4
10
  display: inline-flex;
5
11
  }
6
12
  @layer components {
@@ -13,105 +19,19 @@ rui-tooltip {
13
19
  }
14
20
  .rui-tooltip__content {
15
21
  z-index: var(--z-index-overlay, var(--z-overlay));
16
- max-width: var(--container-xs, 20rem);
17
- border-radius: var(--radius-container, var(--radius-container));
18
- background-color: var(--color-on-background, var(--on-background));
19
- padding-inline: var(--spacing-2, var(--space-2));
20
- padding-block: var(--spacing-1, var(--space-1));
21
22
  font-size: var(--text-xs, var(--text-xs));
22
23
  line-height: var(--tw-leading, var(--text-xs--line-height, calc(1 / 0.75)));
23
- color: var(--color-background, var(--background));
24
- --tw-shadow: var(--shadow-overlay);
25
- box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
26
24
  width: max-content;
25
+ max-inline-size: var(--rui-tooltip-max-width);
26
+ padding-inline: var(--rui-tooltip-padding-x);
27
+ padding-block: var(--rui-tooltip-padding-y);
28
+ border-radius: var(--rui-tooltip-radius);
29
+ background-color: var(--rui-tooltip-surface);
30
+ color: var(--rui-tooltip-color);
31
+ box-shadow: var(--rui-tooltip-shadow);
27
32
  pointer-events: none;
28
33
  }
29
34
  .rui-tooltip__content[hidden] {
30
35
  display: none;
31
36
  }
32
37
  }
33
- @property --tw-shadow {
34
- syntax: "*";
35
- inherits: false;
36
- initial-value: 0 0 #0000;
37
- }
38
- @property --tw-shadow-color {
39
- syntax: "*";
40
- inherits: false;
41
- }
42
- @property --tw-shadow-alpha {
43
- syntax: "<percentage>";
44
- inherits: false;
45
- initial-value: 100%;
46
- }
47
- @property --tw-inset-shadow {
48
- syntax: "*";
49
- inherits: false;
50
- initial-value: 0 0 #0000;
51
- }
52
- @property --tw-inset-shadow-color {
53
- syntax: "*";
54
- inherits: false;
55
- }
56
- @property --tw-inset-shadow-alpha {
57
- syntax: "<percentage>";
58
- inherits: false;
59
- initial-value: 100%;
60
- }
61
- @property --tw-ring-color {
62
- syntax: "*";
63
- inherits: false;
64
- }
65
- @property --tw-ring-shadow {
66
- syntax: "*";
67
- inherits: false;
68
- initial-value: 0 0 #0000;
69
- }
70
- @property --tw-inset-ring-color {
71
- syntax: "*";
72
- inherits: false;
73
- }
74
- @property --tw-inset-ring-shadow {
75
- syntax: "*";
76
- inherits: false;
77
- initial-value: 0 0 #0000;
78
- }
79
- @property --tw-ring-inset {
80
- syntax: "*";
81
- inherits: false;
82
- }
83
- @property --tw-ring-offset-width {
84
- syntax: "<length>";
85
- inherits: false;
86
- initial-value: 0px;
87
- }
88
- @property --tw-ring-offset-color {
89
- syntax: "*";
90
- inherits: false;
91
- initial-value: #fff;
92
- }
93
- @property --tw-ring-offset-shadow {
94
- syntax: "*";
95
- inherits: false;
96
- initial-value: 0 0 #0000;
97
- }
98
- @layer properties {
99
- @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
100
- *, ::before, ::after, ::backdrop {
101
- --tw-shadow: 0 0 #0000;
102
- --tw-shadow-color: initial;
103
- --tw-shadow-alpha: 100%;
104
- --tw-inset-shadow: 0 0 #0000;
105
- --tw-inset-shadow-color: initial;
106
- --tw-inset-shadow-alpha: 100%;
107
- --tw-ring-color: initial;
108
- --tw-ring-shadow: 0 0 #0000;
109
- --tw-inset-ring-color: initial;
110
- --tw-inset-ring-shadow: 0 0 #0000;
111
- --tw-ring-inset: initial;
112
- --tw-ring-offset-width: 0px;
113
- --tw-ring-offset-color: #fff;
114
- --tw-ring-offset-shadow: 0 0 #0000;
115
- }
116
- }
117
- }
@@ -1,4 +1,11 @@
1
1
  import type { JsxCustomElementAttributes } from '@ecopages/jsx';
2
2
  import type { RuiTooltip as RuiTooltipElement, RuiTooltipProps } from './tooltip.script';
3
3
  import './tooltip.script';
4
+ /**
5
+ * Tooltip view: stamps trigger wrapper and tooltip surface targets expected by the host.
6
+ *
7
+ * @cssclass rui-tooltip - Root wrapper.
8
+ * @cssclass rui-tooltip__trigger - Trigger wrapper (focus bridge).
9
+ * @cssclass rui-tooltip__content - Tooltip surface (`[data-ref="tooltip"]`, `role="tooltip"`).
10
+ */
4
11
  export declare function RuiTooltip({ children, content, ...props }: JsxCustomElementAttributes<RuiTooltipElement, RuiTooltipProps>): import("@ecopages/jsx").JsxRenderable;
@@ -12,12 +12,32 @@ type RuiTooltipBindings = {
12
12
  content: string;
13
13
  };
14
14
  /**
15
- * `<rui-tooltip>` — a popup that describes a trigger on hover or focus.
15
+ * `<rui-tooltip>` — popup that describes a trigger on hover or focus.
16
+ *
17
+ * The host can render its own trigger + tooltip tree via `render()`, or you can import
18
+ * the script and stamp the same structure in light DOM (as `RuiTooltip` does).
16
19
  *
17
20
  * Implements the WAI-ARIA APG Tooltip pattern: the popup has `role="tooltip"`
18
21
  * and the focusable trigger references it with `aria-describedby`. The tooltip
19
22
  * itself never receives focus.
20
23
  *
24
+ * ## Light-DOM contract
25
+ *
26
+ * Required:
27
+ * - `[data-ref="trigger"]` — trigger wrapper. Host listens for `focusin` / `focusout` here.
28
+ * - `[data-ref="tooltip"]` — tooltip surface (`role="tooltip"`). Host assigns `id`, toggles `hidden`,
29
+ * and positions the floating layer when open.
30
+ *
31
+ * Per trigger:
32
+ * - First focusable descendant inside `[data-ref="trigger"]` (or the wrapper) receives `aria-describedby`.
33
+ *
34
+ * Optional:
35
+ * - `content` attribute — text bound into the tooltip surface when using CE `render()`.
36
+ *
37
+ * Do not set `id`, `hidden`, or `aria-describedby` on the anchor — the host owns those.
38
+ *
39
+ * Nested hosts: none.
40
+ *
21
41
  * Event wiring:
22
42
  * - Bubbling events (`focusin` / `focusout`, document `keydown`) use `@onEvent`.
23
43
  * - `pointerenter` / `pointerleave` are bound directly on the host — they do not
@@ -26,10 +46,20 @@ type RuiTooltipBindings = {
26
46
  * @see https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/
27
47
  *
28
48
  * @element rui-tooltip
29
- * @slot - The trigger element (typically a button or focusable control).
30
- * @cssclass rui-tooltip - Root wrapper.
31
- * @cssclass rui-tooltip__trigger - Host wrapper for the slotted trigger.
32
- * @cssclass rui-tooltip__content - Tooltip surface (`role="tooltip"`); `on-background` fill.
49
+ * @attr {string} content - Accessible description shown in the tooltip.
50
+ * @attr {string} placement - Placement of the tooltip surface relative to its anchor. Default: `top`.
51
+ * @attr {number} delay - Delay in ms before showing on hover/focus. Default: `200`.
52
+ *
53
+ * @cssprop --rui-tooltip-max-width - Surface max inline size. Default: `20rem`.
54
+ * @cssprop --rui-tooltip-padding-x - Surface inline padding. Default: `--space-2`.
55
+ * @cssprop --rui-tooltip-padding-y - Surface block padding. Default: `--space-1`.
56
+ * @cssprop --rui-tooltip-radius - Surface corner radius. Default: `--radius-container`.
57
+ * @cssprop --rui-tooltip-surface - Surface fill. Default: `--on-background`.
58
+ * @cssprop --rui-tooltip-color - Surface text. Default: `--background`.
59
+ * @cssprop --rui-tooltip-shadow - Surface shadow. Default: `--shadow-overlay`.
60
+ *
61
+ * @remarks
62
+ * With CE `render()`, authored children are projected into `[data-ref="trigger"]`.
33
63
  */
34
64
  export declare class RuiTooltip extends RadiantElement<RuiTooltipBindings> {
35
65
  content: string;
@@ -45,7 +75,7 @@ export declare class RuiTooltip extends RadiantElement<RuiTooltipBindings> {
45
75
  private open;
46
76
  private showTimer;
47
77
  private hideTimer;
48
- private tooltipId;
78
+ private readonly tooltipId;
49
79
  private describedEl;
50
80
  private cleanupFloating;
51
81
  /**
@@ -8,13 +8,14 @@ export type RuiTreeNode = {
8
8
  expanded?: boolean;
9
9
  };
10
10
  /**
11
- * Tree composed from a `nodes` structure.
11
+ * Tree view. Pass `nodes` for a data-driven tree, or `children` inside the stamped root list.
12
12
  *
13
+ * @cssclass rui-tree - Root list (`role="tree"`).
13
14
  * @cssclass rui-tree__item - List item wrapping a node.
14
15
  * @cssclass rui-tree__node - Node button (`role="treeitem"`).
15
16
  *
16
- * @remarks The host (`<rui-tree>`) owns selection, expansion, and roving-tabindex
17
- * navigation over the authored `role="treeitem"` markup.
17
+ * @remarks Stamps `[role="tree"]` with `data-ref="root"`. Branch `nodes` render
18
+ * `[role="treeitem"]` + optional `[role="group"]` with `data-value` and `aria-expanded`.
18
19
  */
19
20
  export declare function RuiTree({ nodes, label, children, ...props }: JsxCustomElementAttributes<RuiTreeElement, RuiTreeProps & {
20
21
  nodes?: RuiTreeNode[];
@@ -9,30 +9,43 @@ export type RuiTreeChangeDetail = {
9
9
  value: string;
10
10
  };
11
11
  /**
12
- * `<rui-tree>` — a hierarchical list of tree items.
12
+ * `<rui-tree>` — single-select hierarchical list with expand/collapse.
13
13
  *
14
- * Implements a single-select APG Tree View with Arrow key navigation,
15
- * Home/End, parent navigation on ArrowLeft, and Enter/Space to select.
16
- * Expand/collapse is handled with ArrowRight/ArrowLeft (and `*` for siblings);
17
- * click or Enter on a parent also toggles expansion.
14
+ * The custom element is a behavior host: it does not render the tree. Import the
15
+ * script and place light-DOM children that match the contract below, or use
16
+ * `RuiTree` with a `nodes` structure or authored children inside the root list.
18
17
  *
19
- * @summary Single-select tree with roving-tabindex keyboard navigation.
18
+ * ## Light-DOM contract
20
19
  *
21
- * @see https://www.w3.org/WAI/ARIA/apg/patterns/treeview/
20
+ * Required:
21
+ * - `[role="tree"]` — root list container. Host reads it for sibling scoping; the
22
+ * view sets `aria-label` and `aria-multiselectable="false"`.
23
+ * - `[role="treeitem"]` — one node. Host sets `aria-selected` and roving `tabIndex`.
22
24
  *
23
- * @element rui-tree
25
+ * Per item:
26
+ * - `data-value` — selection identity. Falls back to `id`, then trimmed text.
24
27
  *
25
- * @attr {string} label - Accessible name for the tree.
26
- * @attr {string} value - Selected item's `data-value` / id. Default: `''`.
28
+ * Optional (branch nodes):
29
+ * - `aria-expanded` on a treeitem — when present, the host toggles the adjacent
30
+ * `[role="group"]` sibling's `hidden` and responds to ArrowRight/Left and `*`.
31
+ * - `[role="group"]` — child list container immediately following an expandable
32
+ * treeitem. Host writes `hidden` from `aria-expanded`.
27
33
  *
28
- * @fires rui-change - Emitted with `{ value }` when a tree item is selected.
34
+ * Do not set `aria-selected` or `tabIndex` on treeitems — the host owns those.
35
+ * Author initial `aria-expanded` and `hidden` on groups for the starting state.
36
+ *
37
+ * Nested hosts: none.
29
38
  *
30
- * @cssclass rui-tree - Root list (`role="tree"`).
39
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/treeview/
40
+ * @element rui-tree
41
+ * @attr {string} label - Accessible name for the tree (applied on `[role="tree"]` by the view).
42
+ * @attr {string} value - Selected item `data-value` / id. Default: `''`.
43
+ * @fires rui-change - Emitted with `{ value }` when a tree item is selected.
31
44
  *
32
45
  * @remarks
33
- * Item-level classes (`rui-tree__item`, `rui-tree__node`) are authored by the
34
- * `RuiTree` view. Expand/collapse mutates `aria-expanded` and `hidden` on the
35
- * authored `role="group"` containers.
46
+ * Minimum tree: `[role="tree"]` > `li` > `[role="treeitem"][data-value]`; branch
47
+ * nodes add `[role="group"]` > nested items after the expandable treeitem.
48
+ * BEM classes live on the `RuiTree` view; the host never queries them.
36
49
  */
37
50
  export declare class RuiTree extends RadiantElement {
38
51
  label: string;
@@ -8,16 +8,18 @@ export type RuiTreegridRow = {
8
8
  expanded?: boolean;
9
9
  };
10
10
  /**
11
- * Treegrid composed from `columns` and a nested `rows` structure.
11
+ * Treegrid view. Pass `columns` and `rows` for a data-driven grid, or `children`
12
+ * inside the stamped root surface.
12
13
  *
14
+ * @cssclass rui-treegrid - Root surface (`role="treegrid"`).
13
15
  * @cssclass rui-treegrid__row - Data row (`role="row"`).
14
16
  * @cssclass rui-treegrid__row--header - Header row.
15
17
  * @cssclass rui-treegrid__group - Collapsible row group (`role="rowgroup"`).
16
18
  * @cssclass rui-treegrid__cell - Data cell (`role="gridcell"`).
17
19
  * @cssclass rui-treegrid__cell--header - Column header cell (`role="columnheader"`).
18
20
  *
19
- * @remarks The host (`<rui-treegrid>`) owns expand/collapse and cell-only
20
- * roving-tabindex navigation over the authored row markup.
21
+ * @remarks Stamps `[role="treegrid"]` with `data-ref="root"`. `rows` render
22
+ * `[role="row"][data-row-id]` > `[role="gridcell"]` and optional `[role="rowgroup"]`.
21
23
  */
22
24
  export declare function RuiTreegrid({ columns, rows, label, children, ...props }: JsxCustomElementAttributes<RuiTreegridElement, RuiTreegridProps & {
23
25
  columns?: JsxRenderable[];
@@ -10,31 +10,50 @@ export type RuiTreegridChangeDetail = {
10
10
  columnIndex: number;
11
11
  };
12
12
  /**
13
- * `<rui-treegrid>` — a hierarchical grid navigated with arrow keys.
13
+ * `<rui-treegrid>` — hierarchical grid with cell-only keyboard navigation.
14
14
  *
15
- * Implements a read-only APG Treegrid: rows may expand/collapse to reveal child
16
- * rows, and `role="gridcell"` descendants are focused with roving tabindex.
15
+ * The custom element is a behavior host: it does not render rows. Import the script
16
+ * and place light-DOM children that match the contract below, or use `RuiTreegrid`
17
+ * with `columns` / `rows` or authored children inside the root surface.
17
18
  *
18
19
  * Expand/collapse with ArrowRight/ArrowLeft only from the first cell of a row
19
- * (APG cell-only focus). Enter or click on that cell toggles expansion; Space selects.
20
+ * (APG cell-only focus). Enter or click on that cell toggles expansion; Space activates.
20
21
  *
21
- * @summary Read-only treegrid with cell-only roving-tabindex navigation.
22
+ * ## Light-DOM contract
22
23
  *
23
- * @see https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/
24
+ * Required:
25
+ * - `[role="treegrid"]` — root surface. The view sets `aria-label`.
26
+ * - `[role="row"][data-row-id]` — data row. Host reads `data-row-id` for selection.
27
+ * - `[role="gridcell"]` — direct child of a data row. Host sets `aria-selected` and
28
+ * roving `tabIndex`.
24
29
  *
25
- * @element rui-treegrid
30
+ * Per row:
31
+ * - `data-row-id` — row identity for `value` and `rui-change`.
26
32
  *
27
- * @attr {string} label - Accessible name for the treegrid.
28
- * @attr {string} value - Selected row's `data-row-id`. Default: `''`.
33
+ * Optional (expandable rows):
34
+ * - `aria-expanded` on a data row — when present, the host toggles the adjacent
35
+ * `[role="rowgroup"]` sibling's `hidden` and responds to ArrowRight/Left from
36
+ * the first cell, Enter, click, and `*`.
37
+ * - `[role="rowgroup"]` — child rows container immediately following an expandable
38
+ * row. Host writes `hidden` from `aria-expanded`.
29
39
  *
30
- * @fires rui-change - Emitted with `{ rowId, columnIndex }` when a cell activates.
40
+ * Header rows (`[role="row"]` without `data-row-id`) and `[role="columnheader"]`
41
+ * cells are presentation-only; the host does not query them for behavior.
42
+ *
43
+ * Do not set `aria-selected` or `tabIndex` on gridcells — the host owns those.
31
44
  *
32
- * @cssclass rui-treegrid - Root surface (`role="treegrid"`).
45
+ * Nested hosts: none.
46
+ *
47
+ * @see https://www.w3.org/WAI/ARIA/apg/patterns/treegrid/
48
+ * @element rui-treegrid
49
+ * @attr {string} label - Accessible name for the treegrid (applied on `[role="treegrid"]` by the view).
50
+ * @attr {string} value - Selected row `data-row-id`. Default: `''`.
51
+ * @fires rui-change - Emitted with `{ rowId, columnIndex }` when a cell activates.
33
52
  *
34
53
  * @remarks
35
- * Row/cell/group classes are authored by the `RuiTreegrid` view. The host owns
36
- * expand/collapse (`aria-expanded` + `hidden` on `role="rowgroup"`) and
37
- * cell-only roving-tabindex focus.
54
+ * Minimum tree: `[role="treegrid"]` > `[role="row"][data-row-id]` > `[role="gridcell"]`;
55
+ * expandable rows add `[role="rowgroup"]` > nested rows after the parent row.
56
+ * BEM classes live on the `RuiTreegrid` view; the host never queries them.
38
57
  */
39
58
  export declare class RuiTreegrid extends RadiantElement {
40
59
  label: string;
@@ -1,2 +1,2 @@
1
- export { RuiWindowSplitter as RuiWindowSplitterElement, type RuiWindowSplitterProps, type RuiWindowSplitterChangeDetail, } from './window-splitter.script';
1
+ export { RuiWindowSplitter as RuiWindowSplitterElement, WINDOW_SPLITTER_MAX, WINDOW_SPLITTER_MIN, type RuiWindowSplitterProps, type RuiWindowSplitterChangeDetail, } from './window-splitter.script';
2
2
  export { RuiWindowSplitter } from './window-splitter';