@k8slens/element-components 3.3.1

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 (187) hide show
  1. package/README.md +124 -0
  2. package/dist/index.css +3455 -0
  3. package/dist/index.d.ts +71 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +4024 -0
  6. package/dist/src/element-components.performance-test.d.ts +2 -0
  7. package/dist/src/element-components.performance-test.d.ts.map +1 -0
  8. package/dist/src/elements/minimal-div.d.ts +30 -0
  9. package/dist/src/elements/minimal-div.d.ts.map +1 -0
  10. package/dist/src/elements.d.ts +3379 -0
  11. package/dist/src/elements.d.ts.map +1 -0
  12. package/dist/src/feature.d.ts +2 -0
  13. package/dist/src/feature.d.ts.map +1 -0
  14. package/dist/src/plugins/_shared/colors.d.ts +2 -0
  15. package/dist/src/plugins/_shared/colors.d.ts.map +1 -0
  16. package/dist/src/plugins/_shared/directions.d.ts +9 -0
  17. package/dist/src/plugins/_shared/directions.d.ts.map +1 -0
  18. package/dist/src/plugins/_shared/sizes.d.ts +14 -0
  19. package/dist/src/plugins/_shared/sizes.d.ts.map +1 -0
  20. package/dist/src/plugins/absolute/absolute.d.ts +10 -0
  21. package/dist/src/plugins/absolute/absolute.d.ts.map +1 -0
  22. package/dist/src/plugins/anchor/anchor.d.ts +56 -0
  23. package/dist/src/plugins/anchor/anchor.d.ts.map +1 -0
  24. package/dist/src/plugins/area/area.d.ts +15 -0
  25. package/dist/src/plugins/area/area.d.ts.map +1 -0
  26. package/dist/src/plugins/area-content/area-content.d.ts +12 -0
  27. package/dist/src/plugins/area-content/area-content.d.ts.map +1 -0
  28. package/dist/src/plugins/background-color/background-color.d.ts +22 -0
  29. package/dist/src/plugins/background-color/background-color.d.ts.map +1 -0
  30. package/dist/src/plugins/block/block.d.ts +9 -0
  31. package/dist/src/plugins/block/block.d.ts.map +1 -0
  32. package/dist/src/plugins/border/border.d.ts +28 -0
  33. package/dist/src/plugins/border/border.d.ts.map +1 -0
  34. package/dist/src/plugins/border/get-corner-styles.d.ts +10 -0
  35. package/dist/src/plugins/border/get-corner-styles.d.ts.map +1 -0
  36. package/dist/src/plugins/border/get-side-styles.d.ts +9 -0
  37. package/dist/src/plugins/border/get-side-styles.d.ts.map +1 -0
  38. package/dist/src/plugins/border/types.d.ts +9 -0
  39. package/dist/src/plugins/border/types.d.ts.map +1 -0
  40. package/dist/src/plugins/box-shadow/box-shadow.d.ts +9 -0
  41. package/dist/src/plugins/box-shadow/box-shadow.d.ts.map +1 -0
  42. package/dist/src/plugins/class-name/class-name.d.ts +9 -0
  43. package/dist/src/plugins/class-name/class-name.d.ts.map +1 -0
  44. package/dist/src/plugins/clickable/clickable.d.ts +33 -0
  45. package/dist/src/plugins/clickable/clickable.d.ts.map +1 -0
  46. package/dist/src/plugins/clickable/is-mac.injectable.d.ts +10 -0
  47. package/dist/src/plugins/clickable/is-mac.injectable.d.ts.map +1 -0
  48. package/dist/src/plugins/clickable/on-right-trigger.injectable.d.ts +2 -0
  49. package/dist/src/plugins/clickable/on-right-trigger.injectable.d.ts.map +1 -0
  50. package/dist/src/plugins/color/color.d.ts +23 -0
  51. package/dist/src/plugins/color/color.d.ts.map +1 -0
  52. package/dist/src/plugins/cursor/cursor.d.ts +10 -0
  53. package/dist/src/plugins/cursor/cursor.d.ts.map +1 -0
  54. package/dist/src/plugins/display-contents/display-contents.d.ts +9 -0
  55. package/dist/src/plugins/display-contents/display-contents.d.ts.map +1 -0
  56. package/dist/src/plugins/draggable-and-droppable/_shared/dragged-item-state.injectable.d.ts +3 -0
  57. package/dist/src/plugins/draggable-and-droppable/_shared/dragged-item-state.injectable.d.ts.map +1 -0
  58. package/dist/src/plugins/draggable-and-droppable/draggable.d.ts +9 -0
  59. package/dist/src/plugins/draggable-and-droppable/draggable.d.ts.map +1 -0
  60. package/dist/src/plugins/draggable-and-droppable/droppable.d.ts +3 -0
  61. package/dist/src/plugins/draggable-and-droppable/droppable.d.ts.map +1 -0
  62. package/dist/src/plugins/draggable-and-droppable/get-draggable-context.d.ts +18 -0
  63. package/dist/src/plugins/draggable-and-droppable/get-draggable-context.d.ts.map +1 -0
  64. package/dist/src/plugins/draggable-and-droppable/item-being-dragged.injectable.d.ts +9 -0
  65. package/dist/src/plugins/draggable-and-droppable/item-being-dragged.injectable.d.ts.map +1 -0
  66. package/dist/src/plugins/draggable-and-droppable/make-sure-drag-and-drop-events-have-time-to-happen/make-sure-drag-and-drop-events-have-time-to-happen.default-override.d.ts +4 -0
  67. package/dist/src/plugins/draggable-and-droppable/make-sure-drag-and-drop-events-have-time-to-happen/make-sure-drag-and-drop-events-have-time-to-happen.default-override.d.ts.map +1 -0
  68. package/dist/src/plugins/draggable-and-droppable/make-sure-drag-and-drop-events-have-time-to-happen/make-sure-drag-and-drop-events-have-time-to-happen.injectable.d.ts +2 -0
  69. package/dist/src/plugins/draggable-and-droppable/make-sure-drag-and-drop-events-have-time-to-happen/make-sure-drag-and-drop-events-have-time-to-happen.injectable.d.ts.map +1 -0
  70. package/dist/src/plugins/drop-down-menu/drop-down-menu.d.ts +20 -0
  71. package/dist/src/plugins/drop-down-menu/drop-down-menu.d.ts.map +1 -0
  72. package/dist/src/plugins/enabled/enabled.d.ts +20 -0
  73. package/dist/src/plugins/enabled/enabled.d.ts.map +1 -0
  74. package/dist/src/plugins/faded/faded.d.ts +13 -0
  75. package/dist/src/plugins/faded/faded.d.ts.map +1 -0
  76. package/dist/src/plugins/flex/flex.d.ts +28 -0
  77. package/dist/src/plugins/flex/flex.d.ts.map +1 -0
  78. package/dist/src/plugins/flex-child/flex-child.d.ts +24 -0
  79. package/dist/src/plugins/flex-child/flex-child.d.ts.map +1 -0
  80. package/dist/src/plugins/floating/floating.d.ts +24 -0
  81. package/dist/src/plugins/floating/floating.d.ts.map +1 -0
  82. package/dist/src/plugins/focusable/_private/_shared/focusable-event.d.ts +7 -0
  83. package/dist/src/plugins/focusable/_private/_shared/focusable-event.d.ts.map +1 -0
  84. package/dist/src/plugins/focusable/_private/handle-blur.d.ts +6 -0
  85. package/dist/src/plugins/focusable/_private/handle-blur.d.ts.map +1 -0
  86. package/dist/src/plugins/focusable/_private/handle-focus.d.ts +6 -0
  87. package/dist/src/plugins/focusable/_private/handle-focus.d.ts.map +1 -0
  88. package/dist/src/plugins/focusable/_private/use-cleanup-on-unmount.d.ts +4 -0
  89. package/dist/src/plugins/focusable/_private/use-cleanup-on-unmount.d.ts.map +1 -0
  90. package/dist/src/plugins/focusable/_private/use-keyboard-navigation.d.ts +8 -0
  91. package/dist/src/plugins/focusable/_private/use-keyboard-navigation.d.ts.map +1 -0
  92. package/dist/src/plugins/focusable/_private/use-programmatic-focusing.d.ts +4 -0
  93. package/dist/src/plugins/focusable/_private/use-programmatic-focusing.d.ts.map +1 -0
  94. package/dist/src/plugins/focusable/_private/use-update-when-props-change.d.ts +4 -0
  95. package/dist/src/plugins/focusable/_private/use-update-when-props-change.d.ts.map +1 -0
  96. package/dist/src/plugins/focusable/_shared/focusable-html-element-ref-set.injectable.d.ts +6 -0
  97. package/dist/src/plugins/focusable/_shared/focusable-html-element-ref-set.injectable.d.ts.map +1 -0
  98. package/dist/src/plugins/focusable/_shared/focusable-item-state.injectable.d.ts +3 -0
  99. package/dist/src/plugins/focusable/_shared/focusable-item-state.injectable.d.ts.map +1 -0
  100. package/dist/src/plugins/focusable/_shared/keyboard-navigation-state.injectable.d.ts +19 -0
  101. package/dist/src/plugins/focusable/_shared/keyboard-navigation-state.injectable.d.ts.map +1 -0
  102. package/dist/src/plugins/focusable/do-focus.injectable.d.ts +8 -0
  103. package/dist/src/plugins/focusable/do-focus.injectable.d.ts.map +1 -0
  104. package/dist/src/plugins/focusable/focusable.d.ts +27 -0
  105. package/dist/src/plugins/focusable/focusable.d.ts.map +1 -0
  106. package/dist/src/plugins/focusable/get-focusable-context.d.ts +33 -0
  107. package/dist/src/plugins/focusable/get-focusable-context.d.ts.map +1 -0
  108. package/dist/src/plugins/focusable/item-being-focused.injectable.d.ts +9 -0
  109. package/dist/src/plugins/focusable/item-being-focused.injectable.d.ts.map +1 -0
  110. package/dist/src/plugins/font/font.d.ts +32 -0
  111. package/dist/src/plugins/font/font.d.ts.map +1 -0
  112. package/dist/src/plugins/gradient/gradient.d.ts +9 -0
  113. package/dist/src/plugins/gradient/gradient.d.ts.map +1 -0
  114. package/dist/src/plugins/grayscale/grayscale.d.ts +14 -0
  115. package/dist/src/plugins/grayscale/grayscale.d.ts.map +1 -0
  116. package/dist/src/plugins/grid/grid.d.ts +19 -0
  117. package/dist/src/plugins/grid/grid.d.ts.map +1 -0
  118. package/dist/src/plugins/height/height.d.ts +15 -0
  119. package/dist/src/plugins/height/height.d.ts.map +1 -0
  120. package/dist/src/plugins/hidden/hidden.d.ts +9 -0
  121. package/dist/src/plugins/hidden/hidden.d.ts.map +1 -0
  122. package/dist/src/plugins/hoverable/computed-now.injectable.d.ts +12 -0
  123. package/dist/src/plugins/hoverable/computed-now.injectable.d.ts.map +1 -0
  124. package/dist/src/plugins/hoverable/hoverable-by-dragging.d.ts +12 -0
  125. package/dist/src/plugins/hoverable/hoverable-by-dragging.d.ts.map +1 -0
  126. package/dist/src/plugins/hoverable/hoverable.d.ts +27 -0
  127. package/dist/src/plugins/hoverable/hoverable.d.ts.map +1 -0
  128. package/dist/src/plugins/hoverable/hovered-item-state.injectable.d.ts +14 -0
  129. package/dist/src/plugins/hoverable/hovered-item-state.injectable.d.ts.map +1 -0
  130. package/dist/src/plugins/hoverable/item-being-hovered.injectable.d.ts +9 -0
  131. package/dist/src/plugins/hoverable/item-being-hovered.injectable.d.ts.map +1 -0
  132. package/dist/src/plugins/hoverable/local-hoverable/_private/context-is-being-hovered.injectable.d.ts +4 -0
  133. package/dist/src/plugins/hoverable/local-hoverable/_private/context-is-being-hovered.injectable.d.ts.map +1 -0
  134. package/dist/src/plugins/hoverable/local-hoverable/local-hoverable.d.ts +7 -0
  135. package/dist/src/plugins/hoverable/local-hoverable/local-hoverable.d.ts.map +1 -0
  136. package/dist/src/plugins/invisible-backdrop/invisible-backdrop.d.ts +9 -0
  137. package/dist/src/plugins/invisible-backdrop/invisible-backdrop.d.ts.map +1 -0
  138. package/dist/src/plugins/margin/margin.d.ts +18 -0
  139. package/dist/src/plugins/margin/margin.d.ts.map +1 -0
  140. package/dist/src/plugins/no-pointer-events/no-pointer-events.d.ts +9 -0
  141. package/dist/src/plugins/no-pointer-events/no-pointer-events.d.ts.map +1 -0
  142. package/dist/src/plugins/offset/offset.d.ts +17 -0
  143. package/dist/src/plugins/offset/offset.d.ts.map +1 -0
  144. package/dist/src/plugins/offset-children/offset-children.d.ts +17 -0
  145. package/dist/src/plugins/offset-children/offset-children.d.ts.map +1 -0
  146. package/dist/src/plugins/on-outside-click/on-outside-click.d.ts +22 -0
  147. package/dist/src/plugins/on-outside-click/on-outside-click.d.ts.map +1 -0
  148. package/dist/src/plugins/outline/outline.d.ts +21 -0
  149. package/dist/src/plugins/outline/outline.d.ts.map +1 -0
  150. package/dist/src/plugins/overflow/overflow.d.ts +18 -0
  151. package/dist/src/plugins/overflow/overflow.d.ts.map +1 -0
  152. package/dist/src/plugins/padding/padding.d.ts +18 -0
  153. package/dist/src/plugins/padding/padding.d.ts.map +1 -0
  154. package/dist/src/plugins/popover/popover.d.ts +28 -0
  155. package/dist/src/plugins/popover/popover.d.ts.map +1 -0
  156. package/dist/src/plugins/ref/ref.d.ts +13 -0
  157. package/dist/src/plugins/ref/ref.d.ts.map +1 -0
  158. package/dist/src/plugins/ref/type-test.d.ts +3 -0
  159. package/dist/src/plugins/ref/type-test.d.ts.map +1 -0
  160. package/dist/src/plugins/relative/relative.d.ts +11 -0
  161. package/dist/src/plugins/relative/relative.d.ts.map +1 -0
  162. package/dist/src/plugins/size/size.d.ts +17 -0
  163. package/dist/src/plugins/size/size.d.ts.map +1 -0
  164. package/dist/src/plugins/style/style.d.ts +6 -0
  165. package/dist/src/plugins/style/style.d.ts.map +1 -0
  166. package/dist/src/plugins/text-align/text-align.d.ts +9 -0
  167. package/dist/src/plugins/text-align/text-align.d.ts.map +1 -0
  168. package/dist/src/plugins/tint/tint.d.ts +19 -0
  169. package/dist/src/plugins/tint/tint.d.ts.map +1 -0
  170. package/dist/src/plugins/tooltip/tooltip-delay/tooltip-delay.default-override.d.ts +4 -0
  171. package/dist/src/plugins/tooltip/tooltip-delay/tooltip-delay.default-override.d.ts.map +1 -0
  172. package/dist/src/plugins/tooltip/tooltip-delay/tooltip-delay.injectable.d.ts +2 -0
  173. package/dist/src/plugins/tooltip/tooltip-delay/tooltip-delay.injectable.d.ts.map +1 -0
  174. package/dist/src/plugins/tooltip/tooltip.d.ts +64 -0
  175. package/dist/src/plugins/tooltip/tooltip.d.ts.map +1 -0
  176. package/dist/src/plugins/transition/transition.d.ts +9 -0
  177. package/dist/src/plugins/transition/transition.d.ts.map +1 -0
  178. package/dist/src/plugins/visually-hidden/visually-hidden.d.ts +9 -0
  179. package/dist/src/plugins/visually-hidden/visually-hidden.d.ts.map +1 -0
  180. package/dist/src/plugins/width/width.d.ts +15 -0
  181. package/dist/src/plugins/width/width.d.ts.map +1 -0
  182. package/dist/src/remove-css-module-clutter.default-override.d.ts +3 -0
  183. package/dist/src/remove-css-module-clutter.default-override.d.ts.map +1 -0
  184. package/dist/src/test-util-runnable.injectable.d.ts +4 -0
  185. package/dist/src/test-util-runnable.injectable.d.ts.map +1 -0
  186. package/dist/tsconfig.tsbuildinfo +1 -0
  187. package/package.json +72 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enabled.d.ts","sourceRoot":"","sources":["../../../../src/plugins/enabled/enabled.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa;;;eARb,OAAO;gBACN,OAAO;eAIR,SAAS;WAYpB,CAAC;AAEH,eAAO,MAAM,UAAU,UAAW,kBAAkB,YAInD,CAAC"}
@@ -0,0 +1,13 @@
1
+ export type FadedPluginProps = {
2
+ /**
3
+ * Fades the element (`opacity: 50%`) when `true`. Combine with `$grayscale`
4
+ * to de-emphasise an unavailable item.
5
+ */
6
+ $faded?: boolean;
7
+ };
8
+ export declare const fadedPlugin: import("@k8slens/element-component").Plugin<{
9
+ $className?: import("@k8slens/public-utilities").IClassName;
10
+ className?: string;
11
+ $faded?: boolean;
12
+ }, unknown>;
13
+ //# sourceMappingURL=faded.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"faded.d.ts","sourceRoot":"","sources":["../../../../src/plugins/faded/faded.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,WAAW;;;aAHb,OAAO;WAMf,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { TShirtSize } from "../_shared/sizes";
2
+ export type HorizontalFlexProps = {
3
+ direction?: "horizontal" | "horizontal-reversed";
4
+ horizontalAlign?: "center" | "space-between" | "space-around" | "left" | "right";
5
+ verticalAlign?: "center" | "stretch" | "top" | "bottom";
6
+ };
7
+ export type VerticalFlexProps = {
8
+ direction?: "vertical" | "vertical-reversed";
9
+ horizontalAlign?: "center" | "stretch" | "left" | "right";
10
+ verticalAlign?: "center" | "space-between" | "space-around" | "top" | "bottom";
11
+ };
12
+ export type MaximalFlexProps = (HorizontalFlexProps | VerticalFlexProps) & {
13
+ gap?: TShirtSize | {
14
+ row?: TShirtSize;
15
+ column?: TShirtSize;
16
+ };
17
+ wrap?: boolean;
18
+ };
19
+ export type SimpleFlexProp = boolean;
20
+ export type FlexPluginProps = {
21
+ $flex?: SimpleFlexProp | MaximalFlexProps;
22
+ };
23
+ export declare const flexPlugin: import("@k8slens/element-component").Plugin<{
24
+ $className?: import("@k8slens/public-utilities").IClassName;
25
+ className?: string;
26
+ $flex?: SimpleFlexProp | MaximalFlexProps;
27
+ }, unknown>;
28
+ //# sourceMappingURL=flex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../src/plugins/flex/flex.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,CAAC,EAAE,YAAY,GAAG,qBAAqB,CAAC;IAEjD,eAAe,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC;IACjF,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,UAAU,GAAG,mBAAmB,CAAC;IAE7C,eAAe,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAC1D,aAAa,CAAC,EAAE,QAAQ,GAAG,eAAe,GAAG,cAAc,GAAG,KAAK,GAAG,QAAQ,CAAC;CAChF,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,mBAAmB,GAAG,iBAAiB,CAAC,GAAG;IACzE,GAAG,CAAC,EAAE,UAAU,GAAG;QAAE,GAAG,CAAC,EAAE,UAAU,CAAC;QAAC,MAAM,CAAC,EAAE,UAAU,CAAA;KAAE,CAAC;IAC7D,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC;AAErC,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,GAAG,gBAAgB,CAAA;CAAE,CAAC;AAE5E,eAAO,MAAM,UAAU;;;YAFiB,cAAc,GAAG,gBAAgB;WAiFvE,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * - `true`: share the parent's remaining space equally (`flex: 1 1 0`).
3
+ * - `"shrinkable"`: additionally remove the item's implicit content-sized
4
+ * minimum (`min-height: auto` / `min-width: auto`), so it can actually be
5
+ * sized to the remaining space in a constrained layout — required for a
6
+ * descendant to scroll internally instead of inflating every ancestor.
7
+ * - a number: like `"shrinkable"`, but taking that many shares of the
8
+ * remaining space instead of one (`flex-grow`), for weighted splits between
9
+ * siblings.
10
+ * - `"fixed"`: the opposite — keep the item's own size (`flex-shrink: 0`),
11
+ * opting out of the shrink negotiation entirely (e.g. a content-hugging
12
+ * panel next to a filling one).
13
+ */
14
+ export type FlexChildPluginProps = {
15
+ $flexChild?: boolean | number | "shrinkable" | "fixed";
16
+ };
17
+ export declare const flexChildPlugin: import("@k8slens/element-component").Plugin<{
18
+ $className?: import("@k8slens/public-utilities").IClassName;
19
+ className?: string;
20
+ $style?: React.CSSProperties;
21
+ style?: React.CSSProperties;
22
+ $flexChild?: boolean | number | "shrinkable" | "fixed";
23
+ }, unknown>;
24
+ //# sourceMappingURL=flex-child.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flex-child.d.ts","sourceRoot":"","sources":["../../../../src/plugins/flex-child/flex-child.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO,CAAA;CAAE,CAAC;AAE9F,eAAO,MAAM,eAAe;;;;;iBAFsB,OAAO,GAAG,MAAM,GAAG,YAAY,GAAG,OAAO;WAkB1F,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type Plugin } from "@k8slens/element-component";
2
+ import type React from "react";
3
+ import { type Placement } from "@floating-ui/react-dom";
4
+ export type FloatingContentArgs = {
5
+ readonly floatingStyles: React.CSSProperties;
6
+ readonly contentRef: NonNullable<React.Ref<HTMLDivElement>>;
7
+ };
8
+ export type FloatingContentFactory = (args: FloatingContentArgs) => React.ReactNode;
9
+ export type $FloatingProps = {
10
+ readonly position?: Placement;
11
+ readonly content: FloatingContentFactory;
12
+ };
13
+ export type FloatingPluginProps = {
14
+ readonly children?: React.ReactNode;
15
+ readonly $floating?: $FloatingProps;
16
+ };
17
+ export type FloatingPlugin = Plugin<FloatingPluginProps, unknown>;
18
+ export declare function floatingPlugin<T>(): Plugin<{
19
+ $ref?: import("../ref/ref").$RefProp<T>;
20
+ ref?: import("../ref/ref").RefLike<T>;
21
+ readonly children?: React.ReactNode;
22
+ readonly $floating?: $FloatingProps;
23
+ }, unknown>;
24
+ //# sourceMappingURL=floating.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floating.d.ts","sourceRoot":"","sources":["../../../../src/plugins/floating/floating.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAExF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAItG,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7C,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,mBAAmB,KAAK,KAAK,CAAC,SAAS,CAAC;AAEpF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;AAkClE,wBAAgB,cAAc,CAAC,CAAC;;;wBAtCV,KAAK,CAAC,SAAS;yBACd,cAAc;YAqDpC"}
@@ -0,0 +1,7 @@
1
+ import type { AnyFocusableContext } from "../../get-focusable-context";
2
+ export type FocusableEvent<T> = React.FocusEvent<T> & {
3
+ nativeEvent: FocusEvent & {
4
+ alreadyProcessedFocusableContexts?: Set<AnyFocusableContext<any>>;
5
+ };
6
+ };
7
+ //# sourceMappingURL=focusable-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusable-event.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/focusable/_private/_shared/focusable-event.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEvE,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG;IACpD,WAAW,EAAE,UAAU,GAAG;QACxB,iCAAiC,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC;KACnE,CAAC;CACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { IObservableValue } from "mobx";
2
+ import type { AnyFocusableContext } from "../get-focusable-context";
3
+ import type { FocusableEvent } from "./_shared/focusable-event";
4
+ import type { MutableRefObject } from "react";
5
+ export declare const handleBlurFor: <T>(focusableContext: AnyFocusableContext<T>, state: IObservableValue<T | undefined>, focusedRef: MutableRefObject<boolean>) => <T_1>(event: FocusableEvent<T_1>) => void;
6
+ //# sourceMappingURL=handle-blur.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle-blur.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_private/handle-blur.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C,eAAO,MAAM,aAAa,GACvB,CAAC,oBACkB,mBAAmB,CAAC,CAAC,CAAC,SACjC,gBAAgB,CAAC,CAAC,GAAG,SAAS,CAAC,cAC1B,gBAAgB,CAAC,OAAO,CAAC,MAEtC,GAAC,SAAS,cAAc,CAAC,GAAC,CAAC,SAY3B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type IObservableValue } from "mobx";
2
+ import type { AnyFocusableContext } from "../get-focusable-context";
3
+ import type { MutableRefObject } from "react";
4
+ import type { FocusableEvent } from "./_shared/focusable-event";
5
+ export declare const handleFocusFor: <FocusableItem>(state: IObservableValue<FocusableItem | undefined>, focusableItem: FocusableItem, focusableContext: AnyFocusableContext<FocusableItem>, focusedRef: MutableRefObject<boolean>) => <T>(event: FocusableEvent<T>) => void;
6
+ //# sourceMappingURL=handle-focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handle-focus.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_private/handle-focus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,eAAO,MAAM,cAAc,GACxB,aAAa,SACL,gBAAgB,CAAC,aAAa,GAAG,SAAS,CAAC,iBACnC,aAAa,oBACV,mBAAmB,CAAC,aAAa,CAAC,cACxC,gBAAgB,CAAC,OAAO,CAAC,MAEtC,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,SAgB3B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IObservableValue } from "mobx";
2
+ import { type MutableRefObject } from "react";
3
+ export declare const useCleanupOnUnmount: (focusedRef: MutableRefObject<boolean>, oldStateRef: MutableRefObject<IObservableValue<unknown> | undefined>) => void;
4
+ //# sourceMappingURL=use-cleanup-on-unmount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-cleanup-on-unmount.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_private/use-cleanup-on-unmount.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEzD,eAAO,MAAM,mBAAmB,eAClB,gBAAgB,CAAC,OAAO,CAAC,eACxB,gBAAgB,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,SAgBrE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { IObservableValue } from "mobx";
2
+ import type { KeyboardNavigableFocusableContext } from "../get-focusable-context";
3
+ type KeyboardNavigation = {
4
+ readonly onKeyDown: (event: React.KeyboardEvent) => void;
5
+ };
6
+ export declare const useKeyboardNavigation: (context: KeyboardNavigableFocusableContext<any> | undefined, item: unknown, orderNumber: number | undefined, element: HTMLElement | null, state: IObservableValue<unknown>) => KeyboardNavigation;
7
+ export {};
8
+ //# sourceMappingURL=use-keyboard-navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-keyboard-navigation.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_private/use-keyboard-navigation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAK7C,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAElF,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;CAC1D,CAAC;AAIF,eAAO,MAAM,qBAAqB,YACvB,iCAAiC,CAAC,GAAG,CAAC,GAAG,SAAS,QACrD,OAAO,eACA,MAAM,GAAG,SAAS,WACtB,WAAW,GAAG,IAAI,SACpB,gBAAgB,CAAC,OAAO,CAAC,KAC/B,kBA0EF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { MutableRefObject } from "react";
2
+ import type { AnyFocusableContext } from "../get-focusable-context";
3
+ export declare const useProgrammaticFocusing: <T>(focusableContext: AnyFocusableContext<T>, focusableItem: T, htmlElementRef: MutableRefObject<HTMLElement | undefined>) => void;
4
+ //# sourceMappingURL=use-programmatic-focusing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-programmatic-focusing.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_private/use-programmatic-focusing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAI9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,eAAO,MAAM,uBAAuB,GAAI,CAAC,oBACrB,mBAAmB,CAAC,CAAC,CAAC,iBACzB,CAAC,kBACA,gBAAgB,CAAC,WAAW,GAAG,SAAS,CAAC,SAgB1D,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { IObservableValue } from "mobx";
2
+ import { type MutableRefObject } from "react";
3
+ export declare const useUpdateWhenPropsChange: (focusedRef: MutableRefObject<boolean>, oldStateRef: MutableRefObject<IObservableValue<unknown> | undefined>, state: IObservableValue<unknown>, focusableItem: unknown) => void;
4
+ //# sourceMappingURL=use-update-when-props-change.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-update-when-props-change.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_private/use-update-when-props-change.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAE7C,OAAO,EAAa,KAAK,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEzD,eAAO,MAAM,wBAAwB,eACvB,gBAAgB,CAAC,OAAO,CAAC,eACxB,gBAAgB,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC,SAC7D,gBAAgB,CAAC,OAAO,CAAC,iBACjB,OAAO,SAuBvB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { AnyFocusableContext } from "../get-focusable-context";
2
+ import type { MutableRefObject } from "react";
3
+ type FocusableItem = any;
4
+ export declare const focusableHtmlElementRefSetInjectable: import("@k8slens/injectable").Injectable2<(_context: AnyFocusableContext<FocusableItem>, _item: FocusableItem) => Set<MutableRefObject<HTMLElement | undefined>>>;
5
+ export {};
6
+ //# sourceMappingURL=focusable-html-element-ref-set.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusable-html-element-ref-set.injectable.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_shared/focusable-html-element-ref-set.injectable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE9C,KAAK,aAAa,GAAG,GAAG,CAAC;AAKzB,eAAO,MAAM,oCAAoC,uDAGjB,mBAAmB,CAAC,aAAa,CAAC,SAAS,aAAa,oDAEtF,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { AnyFocusableContext } from "../get-focusable-context";
2
+ export declare const focusableItemStateInjectable: import("@k8slens/injectable").Injectable2<(_context: AnyFocusableContext<any>) => import("mobx").IObservableValue<unknown>>;
3
+ //# sourceMappingURL=focusable-item-state.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusable-item-state.injectable.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_shared/focusable-item-state.injectable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE,eAAO,MAAM,4BAA4B,uDAGT,mBAAmB,CAAC,GAAG,CAAC,8CACtD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { KeyboardNavigableFocusableContext } from "../get-focusable-context";
2
+ export type NavigableEntry = {
3
+ readonly item: unknown;
4
+ readonly orderNumber: number;
5
+ readonly element: HTMLElement;
6
+ };
7
+ type NavigableContext = KeyboardNavigableFocusableContext<any>;
8
+ /**
9
+ * The members of every keyboard-navigable context, and the order the contexts appeared in. Focus
10
+ * belongs to the context that appeared last; when it goes away, the previous one takes it back.
11
+ */
12
+ export declare const keyboardNavigationStateInjectable: import("@k8slens/injectable").Injectable2<() => {
13
+ sortedEntriesOf: (context: NavigableContext) => NavigableEntry[];
14
+ contextInFocus: () => NavigableContext | undefined;
15
+ register: (context: NavigableContext, entry: NavigableEntry) => void;
16
+ deregister: (context: NavigableContext, entry: NavigableEntry) => void;
17
+ }>;
18
+ export {};
19
+ //# sourceMappingURL=keyboard-navigation-state.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboard-navigation-state.injectable.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/focusable/_shared/keyboard-navigation-state.injectable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;CAC/B,CAAC;AAEF,KAAK,gBAAgB,GAAG,iCAAiC,CAAC,GAAG,CAAC,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,iCAAiC;+BAsBb,gBAAgB;;wBAKvB,gBAAgB,SAAS,cAAc;0BAUrC,gBAAgB,SAAS,cAAc;EAejE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { AnyFocusableContext } from "./get-focusable-context";
2
+ export type DoFocus<T> = (item: T) => void;
3
+ export type DoFocusFor = <T>(focusableContext: AnyFocusableContext<T>) => DoFocus<T>;
4
+ export declare const doFocusForInjectionToken: import("@k8slens/injectable").InjectionToken2Base<() => DoFocusFor, () => DoFocusFor[], "one", () => import("@k8slens/injectable").InjectionInstanceWithMeta<DoFocusFor>, () => import("@k8slens/injectable").InjectionInstanceWithMeta<DoFocusFor>[]> & {
5
+ readonly __abstract?: never;
6
+ };
7
+ export declare const doFocusForInjectable: import("@k8slens/injectable").Injectable2<() => DoFocusFor>;
8
+ //# sourceMappingURL=do-focus.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"do-focus.injectable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/focusable/do-focus.injectable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAInE,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;AAC3C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAErF,eAAO,MAAM,wBAAwB,0DAA6C,UAAU;;CAGxF,CAAC;AAEL,eAAO,MAAM,oBAAoB,kDAgBnB,UAAU,CAItB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type React from "react";
2
+ import type { AnyFocusableContext } from "./get-focusable-context";
3
+ export type FocusablePluginProps<T, FocusedItem = any> = {
4
+ $focusable?: {
5
+ context: AnyFocusableContext<FocusedItem>;
6
+ item: FocusedItem;
7
+ orderNumber?: number;
8
+ };
9
+ onFocus?: React.FocusEventHandler<T>;
10
+ onBlur?: React.FocusEventHandler<T>;
11
+ onKeyDown?: React.KeyboardEventHandler<T>;
12
+ tabIndex?: HTMLElement["tabIndex"];
13
+ };
14
+ export declare function focusablePlugin<T>(): import("@k8slens/element-component").Plugin<{
15
+ $ref?: import("../ref/ref").$RefProp<T>;
16
+ ref?: import("../ref/ref").RefLike<T>;
17
+ $focusable?: {
18
+ context: AnyFocusableContext<any>;
19
+ item: any;
20
+ orderNumber?: number;
21
+ } | undefined;
22
+ onFocus?: React.FocusEventHandler<T> | undefined;
23
+ onBlur?: React.FocusEventHandler<T> | undefined;
24
+ onKeyDown?: React.KeyboardEventHandler<T> | undefined;
25
+ tabIndex?: HTMLElement["tabIndex"];
26
+ }, unknown>;
27
+ //# sourceMappingURL=focusable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focusable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/focusable/focusable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAOnE,MAAM,MAAM,oBAAoB,CAAC,CAAC,EAAE,WAAW,GAAG,GAAG,IAAI;IACvD,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;QAC1C,IAAI,EAAE,WAAW,CAAC;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IAEF,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAC1C,QAAQ,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CACpC,CAAC;AA+EF,wBAAgB,eAAe,CAAC,CAAC;;;;;;sBAtFf,MAAM;;;;;eAMX,WAAW,CAAC,UAAU,CAAC;YAsGnC"}
@@ -0,0 +1,33 @@
1
+ import type { FocusablePluginProps } from "./focusable";
2
+ export type $FocusableProps<FocusedItem> = Required<FocusablePluginProps<FocusedItem>>["$focusable"];
3
+ /**
4
+ * Identifies a set of focusables competing for one focused item. Elements join it by declaring
5
+ * `$focusable`; nothing enumerates them at the call site.
6
+ */
7
+ export type FocusableContext<FocusedItem> = {
8
+ readonly id: string;
9
+ readonly isKeyboardNavigable: false;
10
+ focusable: (item: FocusedItem) => $FocusableProps<FocusedItem>;
11
+ };
12
+ /**
13
+ * A focusable context whose members are also navigated with arrow keys, in the order they state.
14
+ * The lowest order number is focused when the members appear, and focus returns to the enclosing
15
+ * context when they go away.
16
+ */
17
+ export type KeyboardNavigableFocusableContext<FocusedItem> = {
18
+ readonly id: string;
19
+ readonly isKeyboardNavigable: true;
20
+ focusable: (item: FocusedItem, orderNumber: number) => $FocusableProps<FocusedItem>;
21
+ };
22
+ export type AnyFocusableContext<FocusedItem = any> = FocusableContext<FocusedItem> | KeyboardNavigableFocusableContext<FocusedItem>;
23
+ /**
24
+ * Declares a focusable context. The same id always yields the same context, so calling this during
25
+ * render is stable — which is what lets a surface with several live instances name one context per
26
+ * instance.
27
+ */
28
+ export declare const getFocusableContext: <FocusedItem>(id: string) => FocusableContext<FocusedItem>;
29
+ /**
30
+ * Declares a focusable context whose members are navigated with arrow keys.
31
+ */
32
+ export declare const getKeyboardNavigableFocusableContext: <FocusedItem>(id: string) => KeyboardNavigableFocusableContext<FocusedItem>;
33
+ //# sourceMappingURL=get-focusable-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-focusable-context.d.ts","sourceRoot":"","sources":["../../../../src/plugins/focusable/get-focusable-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,eAAe,CAAC,WAAW,IAAI,QAAQ,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;AAErG;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,WAAW,IAAI;IAC1C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,mBAAmB,EAAE,KAAK,CAAC;IACpC,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,eAAe,CAAC,WAAW,CAAC,CAAC;CAChE,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iCAAiC,CAAC,WAAW,IAAI;IAC3D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,mBAAmB,EAAE,IAAI,CAAC;IACnC,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,KAAK,eAAe,CAAC,WAAW,CAAC,CAAC;CACrF,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,WAAW,GAAG,GAAG,IAC7C,gBAAgB,CAAC,WAAW,CAAC,GAC7B,iCAAiC,CAAC,WAAW,CAAC,CAAC;AAInD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,WAAW,MAAO,MAAM,KAAG,gBAAgB,CAAC,WAAW,CASvF,CAAC;AAEL;;GAEG;AACH,eAAO,MAAM,oCAAoC,GAAI,WAAW,MAC1D,MAAM,KACT,iCAAiC,CAAC,WAAW,CAS5C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { IComputedValue } from "mobx";
2
+ import type { AnyFocusableContext } from "./get-focusable-context";
3
+ export type ItemBeingFocused = <T>(focusableContext: AnyFocusableContext<T>) => IComputedValue<T | undefined>;
4
+ export declare const itemBeingFocusedInjectionToken: import("@k8slens/injectable").InjectionToken2Base<() => ItemBeingFocused, () => ItemBeingFocused[], "one", () => import("@k8slens/injectable").InjectionInstanceWithMeta<ItemBeingFocused>, () => import("@k8slens/injectable").InjectionInstanceWithMeta<ItemBeingFocused>[]> & {
5
+ readonly __abstract?: never;
6
+ };
7
+ export declare const privateItemBeingFocusedInjectable: import("@k8slens/injectable").Injectable2<(context: AnyFocusableContext<any>) => IComputedValue<unknown>>;
8
+ export declare const itemBeingFocusedInjectable: import("@k8slens/injectable").Injectable2<() => ItemBeingFocused>;
9
+ //# sourceMappingURL=item-being-focused.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-being-focused.injectable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/focusable/item-being-focused.injectable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAG3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,EAAE,gBAAgB,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;AAE9G,eAAO,MAAM,8BAA8B,0DAA6C,gBAAgB;;CAGpG,CAAC;AAEL,eAAO,MAAM,iCAAiC,sDAMzB,mBAAmB,CAAC,GAAG,CAAC,6BAE3C,CAAC;AAEH,eAAO,MAAM,0BAA0B,kDAQ0C,gBAAgB,CAI/F,CAAC"}
@@ -0,0 +1,32 @@
1
+ export type FontSize = "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "3xl" | "4xl";
2
+ export type FontBold = "600";
3
+ export type FontLineHeight = "none" | "tight" | "normal" | "loose";
4
+ export type FontPluginProps = {
5
+ $font?: boolean | {
6
+ size?: FontSize;
7
+ italic?: boolean;
8
+ bold?: boolean | FontBold;
9
+ lineHeight?: FontLineHeight;
10
+ forceWrap?: boolean;
11
+ noWrap?: boolean;
12
+ uppercase?: boolean;
13
+ underline?: boolean;
14
+ textOverflow?: "clip" | "ellipsis" | "default";
15
+ };
16
+ };
17
+ export declare const fontPlugin: import("@k8slens/element-component").Plugin<{
18
+ $className?: import("@k8slens/public-utilities").IClassName;
19
+ className?: string;
20
+ $font?: boolean | {
21
+ size?: FontSize;
22
+ italic?: boolean;
23
+ bold?: boolean | FontBold;
24
+ lineHeight?: FontLineHeight;
25
+ forceWrap?: boolean;
26
+ noWrap?: boolean;
27
+ uppercase?: boolean;
28
+ underline?: boolean;
29
+ textOverflow?: "clip" | "ellipsis" | "default";
30
+ };
31
+ }, unknown>;
32
+ //# sourceMappingURL=font.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"font.d.ts","sourceRoot":"","sources":["../../../../src/plugins/font/font.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAErF,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC;AAE7B,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEnE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EACF,OAAO,GACP;QACE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;QAC1B,UAAU,CAAC,EAAE,cAAc,CAAC;QAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;KAChD,CAAC;CACP,CAAC;AAEF,eAAO,MAAM,UAAU;;;YAdjB,OAAO,GACP;QACE,IAAI,CAAC,EAAE,QAAQ,CAAC;QAChB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;QAC1B,UAAU,CAAC,EAAE,cAAc,CAAC;QAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;KAChD;WAqCL,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type GradientPluginProps = {
2
+ $gradient?: boolean;
3
+ };
4
+ export declare const gradientPlugin: import("@k8slens/element-component").Plugin<{
5
+ $className?: import("@k8slens/public-utilities").IClassName;
6
+ className?: string;
7
+ $gradient?: boolean;
8
+ }, unknown>;
9
+ //# sourceMappingURL=gradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradient.d.ts","sourceRoot":"","sources":["../../../../src/plugins/gradient/gradient.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,mBAAmB,GAAG;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1D,eAAO,MAAM,cAAc;;;gBAFqB,OAAO;WAKpD,CAAC"}
@@ -0,0 +1,14 @@
1
+ export type GrayscalePluginProps = {
2
+ /**
3
+ * Fully desaturates the element (`filter: grayscale(100%)`) when `true` — so
4
+ * even fixed-colour content (e.g. brand logos) greys out, not just themed
5
+ * colours. Combine with `$faded` to de-emphasise an unavailable item.
6
+ */
7
+ $grayscale?: boolean;
8
+ };
9
+ export declare const grayscalePlugin: import("@k8slens/element-component").Plugin<{
10
+ $className?: import("@k8slens/public-utilities").IClassName;
11
+ className?: string;
12
+ $grayscale?: boolean;
13
+ }, unknown>;
14
+ //# sourceMappingURL=grayscale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grayscale.d.ts","sourceRoot":"","sources":["../../../../src/plugins/grayscale/grayscale.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe;;;iBAHb,OAAO;WAMnB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { TShirtSize } from "../_shared/sizes";
2
+ export type GridColumns = 1 | 2 | 3 | 4 | 5 | 6;
3
+ export type GridProps = {
4
+ columns: GridColumns;
5
+ gap?: TShirtSize | {
6
+ row?: TShirtSize;
7
+ column?: TShirtSize;
8
+ };
9
+ alignItems?: "stretch" | "center" | "start" | "end";
10
+ };
11
+ export type GridPluginProps = {
12
+ $grid?: GridProps;
13
+ };
14
+ export declare const gridPlugin: import("@k8slens/element-component").Plugin<{
15
+ $className?: import("@k8slens/public-utilities").IClassName;
16
+ className?: string;
17
+ $grid?: GridProps;
18
+ }, unknown>;
19
+ //# sourceMappingURL=grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../../src/plugins/grid/grid.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEhD,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,WAAW,CAAC;IACrB,GAAG,CAAC,EAAE,UAAU,GAAG;QAAE,GAAG,CAAC,EAAE,UAAU,CAAC;QAAC,MAAM,CAAC,EAAE,UAAU,CAAA;KAAE,CAAC;IAC7D,UAAU,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,CAAC;AAEpD,eAAO,MAAM,UAAU;;;YAFiB,SAAS;WA+B/C,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type { TShirtSize } from "../_shared/sizes";
2
+ export type $HeightProps = {
3
+ height?: TShirtSize | "full" | "stretch" | "auto";
4
+ min?: TShirtSize;
5
+ max?: TShirtSize | "full";
6
+ };
7
+ export type HeightPluginProps = {
8
+ $height?: TShirtSize | "full" | "auto" | "stretch" | $HeightProps;
9
+ };
10
+ export declare const heightPlugin: import("@k8slens/element-component").Plugin<{
11
+ $className?: import("@k8slens/public-utilities").IClassName;
12
+ className?: string;
13
+ $height?: TShirtSize | "full" | "auto" | "stretch" | $HeightProps;
14
+ }, unknown>;
15
+ //# sourceMappingURL=height.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"height.d.ts","sourceRoot":"","sources":["../../../../src/plugins/height/height.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IAClD,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,GAAG,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAAE,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAA;CAAE,CAAC;AAEtG,eAAO,MAAM,YAAY;;;cAFmB,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY;WAejG,CAAC"}
@@ -0,0 +1,9 @@
1
+ export type HiddenPluginProps = {
2
+ $hidden?: boolean;
3
+ };
4
+ export declare const hiddenPlugin: import("@k8slens/element-component").Plugin<{
5
+ $className?: import("@k8slens/public-utilities").IClassName;
6
+ className?: string;
7
+ $hidden?: boolean;
8
+ }, unknown>;
9
+ //# sourceMappingURL=hidden.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hidden.d.ts","sourceRoot":"","sources":["../../../../src/plugins/hidden/hidden.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEtD,eAAO,MAAM,YAAY;;;cAFmB,OAAO;WAMhD,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A clock that advances only while something observes it, so a hover delay
3
+ * keeps being re-evaluated until it has elapsed and costs nothing once nobody
4
+ * is watching.
5
+ *
6
+ * Local rather than taken from the shared interval feature: a design system
7
+ * cannot depend on a feature package, and the hoverable plugin is the only
8
+ * thing here that needs a clock. The interval is the instantiation parameter,
9
+ * so v2 keys one clock per interval.
10
+ */
11
+ export declare const computedNowInjectable: import("@k8slens/injectable").Injectable2<(intervalMs: number) => import("mobx").IComputedValue<number>>;
12
+ //# sourceMappingURL=computed-now.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computed-now.injectable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/hoverable/computed-now.injectable.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,yDAGA,MAAM,2CAqBtC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { type SingleOrMany } from "@k8slens/public-utilities";
2
+ import type { $HoverableProps } from "./hoverable";
3
+ export type $HoverableByDraggingProps<T> = Pick<$HoverableProps<T>, "context" | "item">;
4
+ export type HoverableByDraggingPluginProps<T = any> = {
5
+ $hoverableByDragging?: SingleOrMany<$HoverableByDraggingProps<T>>;
6
+ };
7
+ export declare function hoverableByDraggingPlugin<T>(): import("@k8slens/element-component").Plugin<{
8
+ $ref?: import("../ref/ref").$RefProp<T>;
9
+ ref?: import("../ref/ref").RefLike<T>;
10
+ $hoverableByDragging?: SingleOrMany<$HoverableByDraggingProps<any>> | undefined;
11
+ }, unknown>;
12
+ //# sourceMappingURL=hoverable-by-dragging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hoverable-by-dragging.d.ts","sourceRoot":"","sources":["../../../../src/plugins/hoverable/hoverable-by-dragging.ts"],"names":[],"mappings":"AAKA,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,MAAM,yBAAyB,CAAC,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC,CAAC;AAExF,MAAM,MAAM,8BAA8B,CAAC,CAAC,GAAG,GAAG,IAAI;IACpD,oBAAoB,CAAC,EAAE,YAAY,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC;CACnE,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,CAAC;;;;YA6E1C"}
@@ -0,0 +1,27 @@
1
+ import type React from "react";
2
+ import { type SingleOrMany } from "@k8slens/public-utilities";
3
+ export type HoverableContextOptions = {
4
+ /**
5
+ * In milliseconds
6
+ */
7
+ readonly delay?: number;
8
+ readonly onHover?: VoidFunction;
9
+ readonly onUnhover?: VoidFunction;
10
+ };
11
+ export type HoverableContext<HoveredItem> = {
12
+ readonly hoverable: (item: HoveredItem, options?: HoverableContextOptions) => $HoverableProps<HoveredItem>;
13
+ };
14
+ export interface $HoverableProps<TItem = unknown> {
15
+ readonly context: object;
16
+ readonly item: TItem;
17
+ readonly options: Required<HoverableContextOptions>;
18
+ }
19
+ export type HoverablePluginProps<TElement extends HTMLElement> = {
20
+ readonly $hoverable?: SingleOrMany<$HoverableProps>;
21
+ onMouseEnter?: React.HTMLProps<TElement>["onMouseEnter"];
22
+ onMouseLeave?: React.HTMLProps<TElement>["onMouseLeave"];
23
+ };
24
+ export declare const getHoverableContext: <HoveredItem>() => HoverableContext<HoveredItem>;
25
+ export type HoverablePlugin<T extends HTMLElement> = ReturnType<typeof hoverablePlugin<T>>;
26
+ export declare function hoverablePlugin<TElement extends HTMLElement>(): import("@k8slens/element-component").Plugin<HoverablePluginProps<TElement>, unknown>;
27
+ //# sourceMappingURL=hoverable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hoverable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/hoverable/hoverable.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzE,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,WAAW,IAAI;IAC1C,QAAQ,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,uBAAuB,KAAK,eAAe,CAAC,WAAW,CAAC,CAAC;CAC5G,CAAC;AAEF,MAAM,WAAW,eAAe,CAAC,KAAK,GAAG,OAAO;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC;CACrD;AAED,MAAM,MAAM,oBAAoB,CAAC,QAAQ,SAAS,WAAW,IAAI;IAC/D,QAAQ,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC;IACzD,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,WAAW,OAAM,gBAAgB,CAAC,WAAW,CAchF,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAoG3F,wBAAgB,eAAe,CAAC,QAAQ,SAAS,WAAW,0FAsB3D"}
@@ -0,0 +1,14 @@
1
+ import { type IObservableValue } from "mobx";
2
+ export type ContextMapValue = {
3
+ readonly item: unknown;
4
+ readonly delay: number;
5
+ onHover: VoidFunction;
6
+ onUnhover: VoidFunction;
7
+ };
8
+ export type HoveredItemState = {
9
+ readonly hoveredAt: IObservableValue<number>;
10
+ readonly getProps: () => ContextMapValue | undefined;
11
+ };
12
+ export declare const hoveredItemStateInjectable: import("@k8slens/injectable").Injectable2<(_context: object) => import("mobx").ObservableMap<string, HoveredItemState>>;
13
+ export declare const hoverItemStateForInjectable: import("@k8slens/injectable").Injectable2<() => (context: object) => import("mobx").ObservableMap<string, HoveredItemState>>;
14
+ //# sourceMappingURL=hovered-item-state.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hovered-item-state.injectable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/hoverable/hovered-item-state.injectable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAc,MAAM,MAAM,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,MAAM,eAAe,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,0BAA0B,uDAGP,MAAM,4DACpC,CAAC;AAEH,eAAO,MAAM,2BAA2B,4DAMb,MAAM,4DAE/B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { IComputedValue } from "mobx";
2
+ import type { HoverableContext } from "./hoverable";
3
+ export type ItemBeingHovered = <T>(hoverableContext: HoverableContext<T>) => IComputedValue<T | undefined>;
4
+ export declare const itemBeingHoveredInjectionToken: import("@k8slens/injectable").InjectionToken2Base<() => ItemBeingHovered, () => ItemBeingHovered[], "one", () => import("@k8slens/injectable").InjectionInstanceWithMeta<ItemBeingHovered>, () => import("@k8slens/injectable").InjectionInstanceWithMeta<ItemBeingHovered>[]> & {
5
+ readonly __abstract?: never;
6
+ };
7
+ export declare const privateItemBeingHoveredInjectable: import("@k8slens/injectable").Injectable2<(context: object) => IComputedValue<unknown>>;
8
+ export declare const itemBeingHoveredInjectable: import("@k8slens/injectable").Injectable2<() => ItemBeingHovered>;
9
+ //# sourceMappingURL=item-being-hovered.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item-being-hovered.injectable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/hoverable/item-being-hovered.injectable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAG3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;AAE3G,eAAO,MAAM,8BAA8B,0DAA6C,gBAAgB;;CAGpG,CAAC;AAEL,eAAO,MAAM,iCAAiC,sDAOzB,MAAM,6BAmBzB,CAAC;AAEH,eAAO,MAAM,0BAA0B,kDAQ8B,gBAAgB,CAInF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { HoverableContext } from "../../hoverable";
2
+ import type { MutableRefObject } from "react";
3
+ export declare const contextIsBeingHoveredInjectable: import("@k8slens/injectable").Injectable2<(context: HoverableContext<MutableRefObject<any>>) => import("mobx").IComputedValue<boolean>>;
4
+ //# sourceMappingURL=context-is-being-hovered.injectable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-is-being-hovered.injectable.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/hoverable/local-hoverable/_private/context-is-being-hovered.injectable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAG9C,eAAO,MAAM,+BAA+B,sDAOvB,gBAAgB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,4CAM1D,CAAC"}