@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.
- package/README.md +124 -0
- package/dist/index.css +3455 -0
- package/dist/index.d.ts +71 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4024 -0
- package/dist/src/element-components.performance-test.d.ts +2 -0
- package/dist/src/element-components.performance-test.d.ts.map +1 -0
- package/dist/src/elements/minimal-div.d.ts +30 -0
- package/dist/src/elements/minimal-div.d.ts.map +1 -0
- package/dist/src/elements.d.ts +3379 -0
- package/dist/src/elements.d.ts.map +1 -0
- package/dist/src/feature.d.ts +2 -0
- package/dist/src/feature.d.ts.map +1 -0
- package/dist/src/plugins/_shared/colors.d.ts +2 -0
- package/dist/src/plugins/_shared/colors.d.ts.map +1 -0
- package/dist/src/plugins/_shared/directions.d.ts +9 -0
- package/dist/src/plugins/_shared/directions.d.ts.map +1 -0
- package/dist/src/plugins/_shared/sizes.d.ts +14 -0
- package/dist/src/plugins/_shared/sizes.d.ts.map +1 -0
- package/dist/src/plugins/absolute/absolute.d.ts +10 -0
- package/dist/src/plugins/absolute/absolute.d.ts.map +1 -0
- package/dist/src/plugins/anchor/anchor.d.ts +56 -0
- package/dist/src/plugins/anchor/anchor.d.ts.map +1 -0
- package/dist/src/plugins/area/area.d.ts +15 -0
- package/dist/src/plugins/area/area.d.ts.map +1 -0
- package/dist/src/plugins/area-content/area-content.d.ts +12 -0
- package/dist/src/plugins/area-content/area-content.d.ts.map +1 -0
- package/dist/src/plugins/background-color/background-color.d.ts +22 -0
- package/dist/src/plugins/background-color/background-color.d.ts.map +1 -0
- package/dist/src/plugins/block/block.d.ts +9 -0
- package/dist/src/plugins/block/block.d.ts.map +1 -0
- package/dist/src/plugins/border/border.d.ts +28 -0
- package/dist/src/plugins/border/border.d.ts.map +1 -0
- package/dist/src/plugins/border/get-corner-styles.d.ts +10 -0
- package/dist/src/plugins/border/get-corner-styles.d.ts.map +1 -0
- package/dist/src/plugins/border/get-side-styles.d.ts +9 -0
- package/dist/src/plugins/border/get-side-styles.d.ts.map +1 -0
- package/dist/src/plugins/border/types.d.ts +9 -0
- package/dist/src/plugins/border/types.d.ts.map +1 -0
- package/dist/src/plugins/box-shadow/box-shadow.d.ts +9 -0
- package/dist/src/plugins/box-shadow/box-shadow.d.ts.map +1 -0
- package/dist/src/plugins/class-name/class-name.d.ts +9 -0
- package/dist/src/plugins/class-name/class-name.d.ts.map +1 -0
- package/dist/src/plugins/clickable/clickable.d.ts +33 -0
- package/dist/src/plugins/clickable/clickable.d.ts.map +1 -0
- package/dist/src/plugins/clickable/is-mac.injectable.d.ts +10 -0
- package/dist/src/plugins/clickable/is-mac.injectable.d.ts.map +1 -0
- package/dist/src/plugins/clickable/on-right-trigger.injectable.d.ts +2 -0
- package/dist/src/plugins/clickable/on-right-trigger.injectable.d.ts.map +1 -0
- package/dist/src/plugins/color/color.d.ts +23 -0
- package/dist/src/plugins/color/color.d.ts.map +1 -0
- package/dist/src/plugins/cursor/cursor.d.ts +10 -0
- package/dist/src/plugins/cursor/cursor.d.ts.map +1 -0
- package/dist/src/plugins/display-contents/display-contents.d.ts +9 -0
- package/dist/src/plugins/display-contents/display-contents.d.ts.map +1 -0
- package/dist/src/plugins/draggable-and-droppable/_shared/dragged-item-state.injectable.d.ts +3 -0
- package/dist/src/plugins/draggable-and-droppable/_shared/dragged-item-state.injectable.d.ts.map +1 -0
- package/dist/src/plugins/draggable-and-droppable/draggable.d.ts +9 -0
- package/dist/src/plugins/draggable-and-droppable/draggable.d.ts.map +1 -0
- package/dist/src/plugins/draggable-and-droppable/droppable.d.ts +3 -0
- package/dist/src/plugins/draggable-and-droppable/droppable.d.ts.map +1 -0
- package/dist/src/plugins/draggable-and-droppable/get-draggable-context.d.ts +18 -0
- package/dist/src/plugins/draggable-and-droppable/get-draggable-context.d.ts.map +1 -0
- package/dist/src/plugins/draggable-and-droppable/item-being-dragged.injectable.d.ts +9 -0
- package/dist/src/plugins/draggable-and-droppable/item-being-dragged.injectable.d.ts.map +1 -0
- 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
- 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
- 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
- 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
- package/dist/src/plugins/drop-down-menu/drop-down-menu.d.ts +20 -0
- package/dist/src/plugins/drop-down-menu/drop-down-menu.d.ts.map +1 -0
- package/dist/src/plugins/enabled/enabled.d.ts +20 -0
- package/dist/src/plugins/enabled/enabled.d.ts.map +1 -0
- package/dist/src/plugins/faded/faded.d.ts +13 -0
- package/dist/src/plugins/faded/faded.d.ts.map +1 -0
- package/dist/src/plugins/flex/flex.d.ts +28 -0
- package/dist/src/plugins/flex/flex.d.ts.map +1 -0
- package/dist/src/plugins/flex-child/flex-child.d.ts +24 -0
- package/dist/src/plugins/flex-child/flex-child.d.ts.map +1 -0
- package/dist/src/plugins/floating/floating.d.ts +24 -0
- package/dist/src/plugins/floating/floating.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_private/_shared/focusable-event.d.ts +7 -0
- package/dist/src/plugins/focusable/_private/_shared/focusable-event.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_private/handle-blur.d.ts +6 -0
- package/dist/src/plugins/focusable/_private/handle-blur.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_private/handle-focus.d.ts +6 -0
- package/dist/src/plugins/focusable/_private/handle-focus.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_private/use-cleanup-on-unmount.d.ts +4 -0
- package/dist/src/plugins/focusable/_private/use-cleanup-on-unmount.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_private/use-keyboard-navigation.d.ts +8 -0
- package/dist/src/plugins/focusable/_private/use-keyboard-navigation.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_private/use-programmatic-focusing.d.ts +4 -0
- package/dist/src/plugins/focusable/_private/use-programmatic-focusing.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_private/use-update-when-props-change.d.ts +4 -0
- package/dist/src/plugins/focusable/_private/use-update-when-props-change.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_shared/focusable-html-element-ref-set.injectable.d.ts +6 -0
- package/dist/src/plugins/focusable/_shared/focusable-html-element-ref-set.injectable.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_shared/focusable-item-state.injectable.d.ts +3 -0
- package/dist/src/plugins/focusable/_shared/focusable-item-state.injectable.d.ts.map +1 -0
- package/dist/src/plugins/focusable/_shared/keyboard-navigation-state.injectable.d.ts +19 -0
- package/dist/src/plugins/focusable/_shared/keyboard-navigation-state.injectable.d.ts.map +1 -0
- package/dist/src/plugins/focusable/do-focus.injectable.d.ts +8 -0
- package/dist/src/plugins/focusable/do-focus.injectable.d.ts.map +1 -0
- package/dist/src/plugins/focusable/focusable.d.ts +27 -0
- package/dist/src/plugins/focusable/focusable.d.ts.map +1 -0
- package/dist/src/plugins/focusable/get-focusable-context.d.ts +33 -0
- package/dist/src/plugins/focusable/get-focusable-context.d.ts.map +1 -0
- package/dist/src/plugins/focusable/item-being-focused.injectable.d.ts +9 -0
- package/dist/src/plugins/focusable/item-being-focused.injectable.d.ts.map +1 -0
- package/dist/src/plugins/font/font.d.ts +32 -0
- package/dist/src/plugins/font/font.d.ts.map +1 -0
- package/dist/src/plugins/gradient/gradient.d.ts +9 -0
- package/dist/src/plugins/gradient/gradient.d.ts.map +1 -0
- package/dist/src/plugins/grayscale/grayscale.d.ts +14 -0
- package/dist/src/plugins/grayscale/grayscale.d.ts.map +1 -0
- package/dist/src/plugins/grid/grid.d.ts +19 -0
- package/dist/src/plugins/grid/grid.d.ts.map +1 -0
- package/dist/src/plugins/height/height.d.ts +15 -0
- package/dist/src/plugins/height/height.d.ts.map +1 -0
- package/dist/src/plugins/hidden/hidden.d.ts +9 -0
- package/dist/src/plugins/hidden/hidden.d.ts.map +1 -0
- package/dist/src/plugins/hoverable/computed-now.injectable.d.ts +12 -0
- package/dist/src/plugins/hoverable/computed-now.injectable.d.ts.map +1 -0
- package/dist/src/plugins/hoverable/hoverable-by-dragging.d.ts +12 -0
- package/dist/src/plugins/hoverable/hoverable-by-dragging.d.ts.map +1 -0
- package/dist/src/plugins/hoverable/hoverable.d.ts +27 -0
- package/dist/src/plugins/hoverable/hoverable.d.ts.map +1 -0
- package/dist/src/plugins/hoverable/hovered-item-state.injectable.d.ts +14 -0
- package/dist/src/plugins/hoverable/hovered-item-state.injectable.d.ts.map +1 -0
- package/dist/src/plugins/hoverable/item-being-hovered.injectable.d.ts +9 -0
- package/dist/src/plugins/hoverable/item-being-hovered.injectable.d.ts.map +1 -0
- package/dist/src/plugins/hoverable/local-hoverable/_private/context-is-being-hovered.injectable.d.ts +4 -0
- package/dist/src/plugins/hoverable/local-hoverable/_private/context-is-being-hovered.injectable.d.ts.map +1 -0
- package/dist/src/plugins/hoverable/local-hoverable/local-hoverable.d.ts +7 -0
- package/dist/src/plugins/hoverable/local-hoverable/local-hoverable.d.ts.map +1 -0
- package/dist/src/plugins/invisible-backdrop/invisible-backdrop.d.ts +9 -0
- package/dist/src/plugins/invisible-backdrop/invisible-backdrop.d.ts.map +1 -0
- package/dist/src/plugins/margin/margin.d.ts +18 -0
- package/dist/src/plugins/margin/margin.d.ts.map +1 -0
- package/dist/src/plugins/no-pointer-events/no-pointer-events.d.ts +9 -0
- package/dist/src/plugins/no-pointer-events/no-pointer-events.d.ts.map +1 -0
- package/dist/src/plugins/offset/offset.d.ts +17 -0
- package/dist/src/plugins/offset/offset.d.ts.map +1 -0
- package/dist/src/plugins/offset-children/offset-children.d.ts +17 -0
- package/dist/src/plugins/offset-children/offset-children.d.ts.map +1 -0
- package/dist/src/plugins/on-outside-click/on-outside-click.d.ts +22 -0
- package/dist/src/plugins/on-outside-click/on-outside-click.d.ts.map +1 -0
- package/dist/src/plugins/outline/outline.d.ts +21 -0
- package/dist/src/plugins/outline/outline.d.ts.map +1 -0
- package/dist/src/plugins/overflow/overflow.d.ts +18 -0
- package/dist/src/plugins/overflow/overflow.d.ts.map +1 -0
- package/dist/src/plugins/padding/padding.d.ts +18 -0
- package/dist/src/plugins/padding/padding.d.ts.map +1 -0
- package/dist/src/plugins/popover/popover.d.ts +28 -0
- package/dist/src/plugins/popover/popover.d.ts.map +1 -0
- package/dist/src/plugins/ref/ref.d.ts +13 -0
- package/dist/src/plugins/ref/ref.d.ts.map +1 -0
- package/dist/src/plugins/ref/type-test.d.ts +3 -0
- package/dist/src/plugins/ref/type-test.d.ts.map +1 -0
- package/dist/src/plugins/relative/relative.d.ts +11 -0
- package/dist/src/plugins/relative/relative.d.ts.map +1 -0
- package/dist/src/plugins/size/size.d.ts +17 -0
- package/dist/src/plugins/size/size.d.ts.map +1 -0
- package/dist/src/plugins/style/style.d.ts +6 -0
- package/dist/src/plugins/style/style.d.ts.map +1 -0
- package/dist/src/plugins/text-align/text-align.d.ts +9 -0
- package/dist/src/plugins/text-align/text-align.d.ts.map +1 -0
- package/dist/src/plugins/tint/tint.d.ts +19 -0
- package/dist/src/plugins/tint/tint.d.ts.map +1 -0
- package/dist/src/plugins/tooltip/tooltip-delay/tooltip-delay.default-override.d.ts +4 -0
- package/dist/src/plugins/tooltip/tooltip-delay/tooltip-delay.default-override.d.ts.map +1 -0
- package/dist/src/plugins/tooltip/tooltip-delay/tooltip-delay.injectable.d.ts +2 -0
- package/dist/src/plugins/tooltip/tooltip-delay/tooltip-delay.injectable.d.ts.map +1 -0
- package/dist/src/plugins/tooltip/tooltip.d.ts +64 -0
- package/dist/src/plugins/tooltip/tooltip.d.ts.map +1 -0
- package/dist/src/plugins/transition/transition.d.ts +9 -0
- package/dist/src/plugins/transition/transition.d.ts.map +1 -0
- package/dist/src/plugins/visually-hidden/visually-hidden.d.ts +9 -0
- package/dist/src/plugins/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/src/plugins/width/width.d.ts +15 -0
- package/dist/src/plugins/width/width.d.ts.map +1 -0
- package/dist/src/remove-css-module-clutter.default-override.d.ts +3 -0
- package/dist/src/remove-css-module-clutter.default-override.d.ts.map +1 -0
- package/dist/src/test-util-runnable.injectable.d.ts +4 -0
- package/dist/src/test-util-runnable.injectable.d.ts.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +72 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/elements.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyC/B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CzB,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAG1D,CAAC;AAWF,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqG,CAAC;AAEtH,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;AAGxD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"feature.d.ts","sourceRoot":"","sources":["../../src/feature.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,yCAMlC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type Color = "inherit" | "white" | "transparent" | "grey100" | "grey80" | "grey70" | "grey60" | "grey40" | "grey30" | "grey25" | "grey20" | "grey10" | "grey80Alpha85" | "primary" | "success" | "notice" | "warning" | "critical" | "successTint" | "warningTint" | "criticalTint" | "link" | "code";
|
|
2
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/plugins/_shared/colors.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,KAAK,GACb,SAAS,GACT,OAAO,GACP,aAAa,GACb,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,UAAU,GACV,aAAa,GACb,aAAa,GACb,cAAc,GACd,MAAM,GACN,MAAM,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type ShortDirection = keyof typeof directionsMap;
|
|
2
|
+
export type Direction = (typeof directionsMap)[ShortDirection];
|
|
3
|
+
export declare const directionsMap: {
|
|
4
|
+
readonly t: "top";
|
|
5
|
+
readonly r: "right";
|
|
6
|
+
readonly b: "bottom";
|
|
7
|
+
readonly l: "left";
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=directions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directions.d.ts","sourceRoot":"","sources":["../../../../src/plugins/_shared/directions.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,aAAa,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,cAAc,CAAC,CAAC;AAG/D,eAAO,MAAM,aAAa;aACxB,CAAC,EAAE,KAAK;aACR,CAAC,EAAE,OAAO;aACV,CAAC,EAAE,QAAQ;aACX,CAAC,EAAE,MAAM;CACD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Tuple } from "@k8slens/public-utilities";
|
|
2
|
+
export type TShirtSize = "zero" | `${Range<3, 4>}xs` | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | `${Range<3, 11>}xl`;
|
|
3
|
+
export type Range<Start extends number, End extends number> = RangeImpl<Start, End>;
|
|
4
|
+
type RangeImpl<Start extends number, End extends number, T extends void[] = Tuple<void, Start>> = End extends T["length"] ? End : T["length"] | RangeImpl<Start, End, [undefined, ...T]>;
|
|
5
|
+
/** The base unit (in pixels) the t-shirt scale is built on. Mirrors `$unit` in `sizes.scss`. */
|
|
6
|
+
export declare const sizeUnitInPixels = 4;
|
|
7
|
+
/**
|
|
8
|
+
* The pixel length of a t-shirt size — the same value the `$size`/`$width`/`$height`
|
|
9
|
+
* classes resolve to in CSS. Use when a length is needed rather than a sizing class,
|
|
10
|
+
* e.g. to drive an icon font's `font-size`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const tShirtSizeInPixels: (size: TShirtSize) => number;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=sizes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizes.d.ts","sourceRoot":"","sources":["../../../../src/plugins/_shared/sizes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,GAClB,KAAK,GACL,IAAI,GACJ,GAAG,GACH,GAAG,GACH,GAAG,GACH,IAAI,GACJ,KAAK,GACL,GAAG,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC;AAExB,MAAM,MAAM,KAAK,CAAC,KAAK,SAAS,MAAM,EAAE,GAAG,SAAS,MAAM,IAAI,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACpF,KAAK,SAAS,CACZ,KAAK,SAAS,MAAM,EACpB,GAAG,SAAS,MAAM,EAElB,CAAC,SAAS,IAAI,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IACnC,GAAG,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAI3F,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAyBlC;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,SAAU,UAAU,KAAG,MAAkD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type AbsolutePosition = "absolute-center-left-to-relative-center-right" | "absolute-bottom-left-to-relative-top-left" | "absolute-bottom-to-relative-bottom" | "absolute-top-center-to-relative-top-center";
|
|
2
|
+
export type AbsolutePluginProps = {
|
|
3
|
+
$absolute?: AbsolutePosition | boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const absolutePlugin: import("@k8slens/element-component").Plugin<{
|
|
6
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
7
|
+
className?: string;
|
|
8
|
+
$absolute?: AbsolutePosition | boolean;
|
|
9
|
+
}, unknown>;
|
|
10
|
+
//# sourceMappingURL=absolute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"absolute.d.ts","sourceRoot":"","sources":["../../../../src/plugins/absolute/absolute.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,gBAAgB,GACxB,+CAA+C,GAC/C,2CAA2C,GAC3C,oCAAoC,GACpC,4CAA4C,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG;IAAE,SAAS,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAA;CAAE,CAAC;AAE7E,eAAO,MAAM,cAAc;;;gBAFqB,gBAAgB,GAAG,OAAO;WAavE,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { Position2d } from "../clickable/clickable";
|
|
3
|
+
import { type TShirtSize } from "../_shared/sizes";
|
|
4
|
+
/**
|
|
5
|
+
* Where an element sits relative to its anchor: a side of the anchor, optionally refined with how
|
|
6
|
+
* the element extends along that side. A bare side centers the element on it; `span-<direction>`
|
|
7
|
+
* aligns their edges and lets the element extend toward that direction.
|
|
8
|
+
*
|
|
9
|
+
* When the element would not fit the viewport, it falls back to the mirrored positions.
|
|
10
|
+
*/
|
|
11
|
+
export type AnchorPosition = "top" | "bottom" | "left" | "right" | "top span-left" | "top span-right" | "bottom span-left" | "bottom span-right" | "left span-top" | "left span-bottom" | "right span-top" | "right span-bottom";
|
|
12
|
+
/**
|
|
13
|
+
* Either a position relative to the nearest ancestor `$anchor`, or the same position relative to a
|
|
14
|
+
* point in the viewport.
|
|
15
|
+
*/
|
|
16
|
+
export type AnchoredAt = AnchorPosition | {
|
|
17
|
+
readonly position: AnchorPosition;
|
|
18
|
+
/** How far from the anchor the element sits. Defaults to `"xs"`. */
|
|
19
|
+
readonly gap?: TShirtSize;
|
|
20
|
+
/** Sit at this viewport point instead of at an anchor. */
|
|
21
|
+
readonly point?: Position2d;
|
|
22
|
+
};
|
|
23
|
+
export type AnchorPluginProps = {
|
|
24
|
+
readonly children?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Makes the element an anchor for the elements of its subtree that declare {@link $anchoredAt}.
|
|
27
|
+
* The nearest such ancestor wins, so nesting works without naming anything.
|
|
28
|
+
*/
|
|
29
|
+
readonly $anchor?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Positions the element relative to an anchor, above everything else on the page — it escapes
|
|
32
|
+
* clipping ancestors and stacking contexts, so it needs no portal.
|
|
33
|
+
*
|
|
34
|
+
* The anchor is the nearest ancestor declaring {@link $anchor}, or the given point when a point
|
|
35
|
+
* is provided instead.
|
|
36
|
+
*/
|
|
37
|
+
readonly $anchoredAt?: AnchoredAt;
|
|
38
|
+
};
|
|
39
|
+
export declare const anchorPlugin: import("@k8slens/element-component").Plugin<{
|
|
40
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
41
|
+
className?: string;
|
|
42
|
+
readonly $color?: import("../color/color").TextColor | import("../color/color").$ColorProps;
|
|
43
|
+
$backgroundColor?: import("../background-color/background-color").BackgroundColor | import("../background-color/background-color").$BackgroundColorProps;
|
|
44
|
+
$border?: import("../border/border").$BorderProps;
|
|
45
|
+
$padding?: boolean | import("../padding/padding").DirectionalPadding | TShirtSize;
|
|
46
|
+
$margin?: boolean | import("../margin/margin").DirectionalMargin | TShirtSize | "auto";
|
|
47
|
+
$overflow?: import("../overflow/overflow").Overflow | {
|
|
48
|
+
x?: import("../overflow/overflow").Overflow;
|
|
49
|
+
y?: import("../overflow/overflow").Overflow;
|
|
50
|
+
hideScrollbar?: boolean;
|
|
51
|
+
};
|
|
52
|
+
readonly children?: React.ReactNode;
|
|
53
|
+
readonly $anchor?: boolean;
|
|
54
|
+
readonly $anchoredAt?: AnchoredAt;
|
|
55
|
+
}, unknown>;
|
|
56
|
+
//# sourceMappingURL=anchor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchor.d.ts","sourceRoot":"","sources":["../../../../src/plugins/anchor/anchor.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,KAAK,UAAU,EAAsB,MAAM,kBAAkB,CAAC;AASvE;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,GACtB,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,kBAAkB,GAClB,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,CAAC;AAExB;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,cAAc,GACd;IACE,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAElC,oEAAoE;IACpE,QAAQ,CAAC,GAAG,CAAC,EAAE,UAAU,CAAC;IAE1B,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;CAC7B,CAAC;AAIN,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEpC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;;OAMG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;CACnC,CAAC;AAuHF,eAAO,MAAM,YAAY;;;;;;;;;;;;;wBAvIH,KAAK,CAAC,SAAS;uBAMhB,OAAO;2BASH,UAAU;WAqKjC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type AreaPluginProps = {
|
|
2
|
+
$area?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const areaPlugin: import("@k8slens/element-component").Plugin<{
|
|
5
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
6
|
+
className?: string;
|
|
7
|
+
$overflow?: import("../overflow/overflow").Overflow | {
|
|
8
|
+
x?: import("../overflow/overflow").Overflow;
|
|
9
|
+
y?: import("../overflow/overflow").Overflow;
|
|
10
|
+
hideScrollbar?: boolean;
|
|
11
|
+
};
|
|
12
|
+
$flex?: import("../flex/flex").SimpleFlexProp | import("../flex/flex").MaximalFlexProps;
|
|
13
|
+
$area?: boolean;
|
|
14
|
+
}, unknown>;
|
|
15
|
+
//# sourceMappingURL=area.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area.d.ts","sourceRoot":"","sources":["../../../../src/plugins/area/area.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAElD,eAAO,MAAM,UAAU;;;;;;;;;YAFiB,OAAO;WAkB7C,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type AreaContentPluginProps = {
|
|
2
|
+
$areaContent?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const areaContentPlugin: import("@k8slens/element-component").Plugin<{
|
|
5
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
6
|
+
className?: string;
|
|
7
|
+
$style?: React.CSSProperties;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
$flexChild?: boolean | number | "shrinkable" | "fixed";
|
|
10
|
+
$areaContent?: boolean;
|
|
11
|
+
}, unknown>;
|
|
12
|
+
//# sourceMappingURL=area-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area-content.d.ts","sourceRoot":"","sources":["../../../../src/plugins/area-content/area-content.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,sBAAsB,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEhE,eAAO,MAAM,iBAAiB;;;;;;mBAFwB,OAAO;WAK1D,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Color } from "../_shared/colors";
|
|
2
|
+
export type BackgroundColorAlias = keyof typeof aliasToNominal;
|
|
3
|
+
export type BackgroundColor = Color | BackgroundColorAlias;
|
|
4
|
+
export type $BackgroundColorProps = {
|
|
5
|
+
normal?: BackgroundColor;
|
|
6
|
+
hover?: BackgroundColor;
|
|
7
|
+
};
|
|
8
|
+
export type BackgroundColorPluginProps = {
|
|
9
|
+
$backgroundColor?: BackgroundColor | $BackgroundColorProps;
|
|
10
|
+
};
|
|
11
|
+
declare const aliasToNominal: {
|
|
12
|
+
readonly backgroundPrimary: "grey80";
|
|
13
|
+
readonly backgroundSecondary: "grey100";
|
|
14
|
+
readonly backgroundPrimaryDimmed: "grey80Alpha85";
|
|
15
|
+
};
|
|
16
|
+
export declare const backgroundColorPlugin: import("@k8slens/element-component").Plugin<{
|
|
17
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
18
|
+
className?: string;
|
|
19
|
+
$backgroundColor?: BackgroundColor | $BackgroundColorProps;
|
|
20
|
+
}, unknown>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=background-color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background-color.d.ts","sourceRoot":"","sources":["../../../../src/plugins/background-color/background-color.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,cAAc,CAAC;AAC/D,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,oBAAoB,CAAC;AAE3D,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IAAE,gBAAgB,CAAC,EAAE,eAAe,GAAG,qBAAqB,CAAA;CAAE,CAAC;AAExG,QAAA,MAAM,cAAc;aAClB,iBAAiB,EAAE,QAAQ;aAC3B,mBAAmB,EAAE,SAAS;aAC9B,uBAAuB,EAAE,eAAe;CAChC,CAAC;AAIX,eAAO,MAAM,qBAAqB;;;uBAV4B,eAAe,GAAG,qBAAqB;WAyBnG,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type BlockPluginProps = {
|
|
2
|
+
$block?: boolean | "inline";
|
|
3
|
+
};
|
|
4
|
+
export declare const blockPlugin: import("@k8slens/element-component").Plugin<{
|
|
5
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
6
|
+
className?: string;
|
|
7
|
+
$block?: boolean | "inline";
|
|
8
|
+
}, unknown>;
|
|
9
|
+
//# sourceMappingURL=block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../src/plugins/block/block.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,WAAW;;;aAHb,OAAO,GAAG,QAAQ;WAc3B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Color } from "../_shared/colors";
|
|
2
|
+
import type { BorderWidth } from "./types";
|
|
3
|
+
import { type CornerStyles } from "./get-corner-styles";
|
|
4
|
+
import { type SideStyles } from "./get-side-styles";
|
|
5
|
+
export type BorderColorAlias = keyof typeof aliasToNominal;
|
|
6
|
+
export type BorderColor = Color | BorderColorAlias;
|
|
7
|
+
declare const aliasToNominal: {
|
|
8
|
+
readonly borderPrimary: "grey60";
|
|
9
|
+
};
|
|
10
|
+
export type $BorderColorProps = {
|
|
11
|
+
readonly normal?: BorderColor;
|
|
12
|
+
readonly hover?: BorderColor;
|
|
13
|
+
readonly disabled?: BorderColor;
|
|
14
|
+
};
|
|
15
|
+
export type $BorderProps = {
|
|
16
|
+
color?: BorderColor | $BorderColorProps;
|
|
17
|
+
width?: BorderWidth | boolean;
|
|
18
|
+
} & SideStyles & CornerStyles;
|
|
19
|
+
export type BorderPluginProps = {
|
|
20
|
+
$border?: $BorderProps;
|
|
21
|
+
};
|
|
22
|
+
export declare const borderPlugin: import("@k8slens/element-component").Plugin<{
|
|
23
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
24
|
+
className?: string;
|
|
25
|
+
$border?: $BorderProps;
|
|
26
|
+
}, unknown>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=border.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../src/plugins/border/border.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGnE,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,cAAc,CAAC;AAC3D,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,gBAAgB,CAAC;AAEnD,QAAA,MAAM,cAAc;aAAK,aAAa,EAAE,QAAQ;CAAW,CAAC;AAI5D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,GAAG,iBAAiB,CAAC;IAAC,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAA;CAAE,GAAG,UAAU,GAChH,YAAY,CAAC;AAEf,MAAM,MAAM,iBAAiB,GAAG;IAAE,OAAO,CAAC,EAAE,YAAY,CAAA;CAAE,CAAC;AAE3D,eAAO,MAAM,YAAY;;;cAFmB,YAAY;WAWtD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BorderRadiusSize } from "./types";
|
|
2
|
+
export interface CornerStyles {
|
|
3
|
+
radius?: BorderRadiusSize | boolean;
|
|
4
|
+
radiusTopRight?: BorderRadiusSize;
|
|
5
|
+
radiusBottomRight?: BorderRadiusSize;
|
|
6
|
+
radiusBottomLeft?: BorderRadiusSize;
|
|
7
|
+
radiusTopLeft?: BorderRadiusSize;
|
|
8
|
+
}
|
|
9
|
+
export declare const getCornerStyles: (styles: CornerStyles) => string | (string | undefined)[] | undefined;
|
|
10
|
+
//# sourceMappingURL=get-corner-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-corner-styles.d.ts","sourceRoot":"","sources":["../../../../src/plugins/border/get-corner-styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,iBAAiB,CAAC,EAAE,gBAAgB,CAAC;IACrC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,aAAa,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAED,eAAO,MAAM,eAAe,WAAY,YAAY,gDAenD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { BorderSide } from "./types";
|
|
2
|
+
export interface SideStyles {
|
|
3
|
+
top?: BorderSide;
|
|
4
|
+
right?: BorderSide;
|
|
5
|
+
bottom?: BorderSide;
|
|
6
|
+
left?: BorderSide;
|
|
7
|
+
}
|
|
8
|
+
export declare const getSideStyles: (sides: SideStyles) => (string | undefined)[];
|
|
9
|
+
//# sourceMappingURL=get-side-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-side-styles.d.ts","sourceRoot":"","sources":["../../../../src/plugins/border/get-side-styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI1C,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,UAAU,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,UAAW,UAAU,2BAK9C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Color } from "../_shared/colors";
|
|
2
|
+
import type { Range } from "../_shared/sizes";
|
|
3
|
+
export type BorderWidth = "zero" | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | `${Range<3, 5>}xl`;
|
|
4
|
+
export type BorderSide = {
|
|
5
|
+
width?: BorderWidth;
|
|
6
|
+
color?: Color;
|
|
7
|
+
};
|
|
8
|
+
export type BorderRadiusSize = "zero" | "s" | "m" | "ml" | "l" | "50" | "full";
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/plugins/border/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC;AACtG,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAChE,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type BoxShadowPluginProps = {
|
|
2
|
+
$boxShadow?: boolean | "elevated" | "subtle";
|
|
3
|
+
};
|
|
4
|
+
export declare const boxShadowPlugin: import("@k8slens/element-component").Plugin<{
|
|
5
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
6
|
+
className?: string;
|
|
7
|
+
$boxShadow?: boolean | "elevated" | "subtle";
|
|
8
|
+
}, unknown>;
|
|
9
|
+
//# sourceMappingURL=box-shadow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box-shadow.d.ts","sourceRoot":"","sources":["../../../../src/plugins/box-shadow/box-shadow.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,eAAe;;;iBAHb,OAAO,GAAG,UAAU,GAAG,QAAQ;WAgB5C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type IClassName } from "@k8slens/public-utilities";
|
|
2
|
+
export type ClassNamePluginProps = {
|
|
3
|
+
$className?: IClassName;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const classNamePlugin: import("@k8slens/element-component").Plugin<ClassNamePluginProps, unknown>;
|
|
7
|
+
export declare const removeCssModuleClutterForUnitTesting: () => void;
|
|
8
|
+
export declare const showCssModuleClutterForProduction: () => void;
|
|
9
|
+
//# sourceMappingURL=class-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-name.d.ts","sourceRoot":"","sources":["../../../../src/plugins/class-name/class-name.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEtE,MAAM,MAAM,oBAAoB,GAAG;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAInF,eAAO,MAAM,eAAe,4EAO1B,CAAC;AAKH,eAAO,MAAM,oCAAoC,YAEhD,CAAC;AAEF,eAAO,MAAM,iCAAiC,YAE7C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { $CursorProps } from "../cursor/cursor";
|
|
2
|
+
export type Position2d = {
|
|
3
|
+
readonly x: number;
|
|
4
|
+
readonly y: number;
|
|
5
|
+
};
|
|
6
|
+
export type ClickHandlerDetails = {
|
|
7
|
+
readonly cursor: Position2d;
|
|
8
|
+
readonly cause: "click" | "keyboard";
|
|
9
|
+
};
|
|
10
|
+
export type ClickHandler = ((details: ClickHandlerDetails) => void) | ((details: ClickHandlerDetails) => Promise<void>);
|
|
11
|
+
export type ClickPluginProps = {
|
|
12
|
+
$onClick?: ClickHandler;
|
|
13
|
+
$onOnlyMouseClick?: ClickHandler;
|
|
14
|
+
$onDoubleClick?: ClickHandler;
|
|
15
|
+
$onRightClick?: ClickHandler;
|
|
16
|
+
$onMiddleClick?: ClickHandler;
|
|
17
|
+
tabIndex?: number;
|
|
18
|
+
};
|
|
19
|
+
export declare const clickablePlugin: import("@k8slens/element-component").Plugin<{
|
|
20
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
21
|
+
className?: string;
|
|
22
|
+
$enabled?: boolean;
|
|
23
|
+
$disabled?: boolean;
|
|
24
|
+
disabled?: undefined;
|
|
25
|
+
$cursor?: $CursorProps;
|
|
26
|
+
$onClick?: ClickHandler;
|
|
27
|
+
$onOnlyMouseClick?: ClickHandler;
|
|
28
|
+
$onDoubleClick?: ClickHandler;
|
|
29
|
+
$onRightClick?: ClickHandler;
|
|
30
|
+
$onMiddleClick?: ClickHandler;
|
|
31
|
+
tabIndex?: number;
|
|
32
|
+
}, unknown>;
|
|
33
|
+
//# sourceMappingURL=clickable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clickable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/clickable/clickable.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,kBAAkB,CAAC;AAKnE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;AAExH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,iBAAiB,CAAC,EAAE,YAAY,CAAC;IACjC,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAIF,eAAO,MAAM,eAAe;;;;;;;eAVf,YAAY;wBACH,YAAY;qBACf,YAAY;oBACb,YAAY;qBACX,YAAY;eAClB,MAAM;WA2FjB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the keyboard conventions of macOS apply.
|
|
3
|
+
*
|
|
4
|
+
* Read from the browser rather than from `process` or the vars feature: this is
|
|
5
|
+
* a renderer-only design system, it may not depend on a feature package, and
|
|
6
|
+
* `process` is not there to read once the renderer stops running with node
|
|
7
|
+
* integration.
|
|
8
|
+
*/
|
|
9
|
+
export declare const isMacInjectable: import("@k8slens/injectable").Injectable2<() => boolean>;
|
|
10
|
+
//# sourceMappingURL=is-mac.injectable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-mac.injectable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/clickable/is-mac.injectable.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,0DAU1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-right-trigger.injectable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/clickable/on-right-trigger.injectable.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wBAAwB,mKAQnC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Color } from "../_shared/colors";
|
|
2
|
+
export type TextColor = Color | TextColorAlias;
|
|
3
|
+
export type $ColorProps = {
|
|
4
|
+
readonly normal?: TextColor;
|
|
5
|
+
readonly hover?: TextColor;
|
|
6
|
+
readonly disabled?: TextColor;
|
|
7
|
+
};
|
|
8
|
+
export type ColorPluginProps = {
|
|
9
|
+
readonly $color?: TextColor | $ColorProps;
|
|
10
|
+
};
|
|
11
|
+
export type TextColorAlias = keyof typeof aliasToNominal;
|
|
12
|
+
declare const aliasToNominal: {
|
|
13
|
+
readonly textMuted: "grey25";
|
|
14
|
+
readonly textDefault: "grey20";
|
|
15
|
+
readonly textHighlight: "grey10";
|
|
16
|
+
};
|
|
17
|
+
export declare const colorPlugin: import("@k8slens/element-component").Plugin<{
|
|
18
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
19
|
+
className?: string;
|
|
20
|
+
readonly $color?: TextColor | $ColorProps;
|
|
21
|
+
}, unknown>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=color.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/plugins/color/color.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,cAAc,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;CAAE,CAAC;AAC7E,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,cAAc,CAAC;AAEzD,QAAA,MAAM,cAAc;aAClB,SAAS,EAAE,QAAQ;aACnB,WAAW,EAAE,QAAQ;aACrB,aAAa,EAAE,QAAQ;CACf,CAAC;AAIX,eAAO,MAAM,WAAW;;;sBAX2B,SAAS,GAAG,WAAW;WA4BxE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type $CursorProps = "alias" | "all-scroll" | "cell" | "column-resize" | "context-menu" | "copy" | "crosshair" | "default" | "east-resize" | "east-and-west-resize" | "grab" | "grabbing" | "help" | "move" | "north-resize" | "northeast-resize" | "northeast-and-southwest-resize" | "no-drop" | "none" | "not-allowed" | "north-and-south-resize" | "northwest-resize" | "northwest-and-southeast-resize" | "pointer" | "progress" | "row-resize" | "south-resize" | "southeast-resize" | "southwest-resize" | "text" | "vertical-text" | "west-resize" | "wait" | "zoom-in" | "zoom-out";
|
|
2
|
+
export type CursorPluginProps = {
|
|
3
|
+
$cursor?: $CursorProps;
|
|
4
|
+
};
|
|
5
|
+
export declare const cursorPlugin: import("@k8slens/element-component").Plugin<{
|
|
6
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
7
|
+
className?: string;
|
|
8
|
+
$cursor?: $CursorProps;
|
|
9
|
+
}, unknown>;
|
|
10
|
+
//# sourceMappingURL=cursor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../../../src/plugins/cursor/cursor.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,YAAY,GACZ,MAAM,GACN,eAAe,GACf,cAAc,GACd,MAAM,GACN,WAAW,GACX,SAAS,GACT,aAAa,GACb,sBAAsB,GACtB,MAAM,GACN,UAAU,GACV,MAAM,GACN,MAAM,GACN,cAAc,GACd,kBAAkB,GAClB,gCAAgC,GAChC,SAAS,GACT,MAAM,GACN,aAAa,GACb,wBAAwB,GACxB,kBAAkB,GAClB,gCAAgC,GAChC,SAAS,GACT,UAAU,GACV,YAAY,GACZ,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,MAAM,GACN,eAAe,GACf,aAAa,GACb,MAAM,GACN,SAAS,GACT,UAAU,CAAC;AAEf,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,YAAY;;;cAHb,YAAY;WAetB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type DisplayContentsPluginProps = {
|
|
2
|
+
$displayContents?: boolean;
|
|
3
|
+
};
|
|
4
|
+
export declare const displayContentsPlugin: import("@k8slens/element-component").Plugin<{
|
|
5
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
6
|
+
className?: string;
|
|
7
|
+
$displayContents?: boolean;
|
|
8
|
+
}, unknown>;
|
|
9
|
+
//# sourceMappingURL=display-contents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-contents.d.ts","sourceRoot":"","sources":["../../../../src/plugins/display-contents/display-contents.tsx"],"names":[],"mappings":"AAOA,MAAM,MAAM,0BAA0B,GAAG;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;uBAHb,OAAO;WAc1B,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DraggableContext } from "../get-draggable-context";
|
|
2
|
+
export declare const draggedItemStateInjectable: import("@k8slens/injectable").Injectable2<(_context: DraggableContext<any>) => import("mobx").IObservableValue<undefined>>;
|
|
3
|
+
//# sourceMappingURL=dragged-item-state.injectable.d.ts.map
|
package/dist/src/plugins/draggable-and-droppable/_shared/dragged-item-state.injectable.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dragged-item-state.injectable.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/draggable-and-droppable/_shared/dragged-item-state.injectable.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAIjE,eAAO,MAAM,0BAA0B,uDAGP,gBAAgB,CAAC,GAAG,CAAC,gDACnD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const draggablePlugin: import("@k8slens/element-component").Plugin<{
|
|
2
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
3
|
+
className?: string;
|
|
4
|
+
$draggable?: {
|
|
5
|
+
context: import("./get-draggable-context").DraggableContext<any>;
|
|
6
|
+
item: any;
|
|
7
|
+
} | undefined;
|
|
8
|
+
}, unknown>;
|
|
9
|
+
//# sourceMappingURL=draggable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draggable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/draggable-and-droppable/draggable.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,eAAe;;;;;;;WA4C1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"droppable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/draggable-and-droppable/droppable.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,eAAe,4EAmC1B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type DraggablePluginProps<T = any> = {
|
|
2
|
+
$draggable?: {
|
|
3
|
+
context: DraggableContext<T>;
|
|
4
|
+
item: T;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export type DroppablePluginProps<T = any> = {
|
|
8
|
+
$droppable?: {
|
|
9
|
+
context: DraggableContext<T>;
|
|
10
|
+
onDrop: (item: T) => void;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type DraggableContext<DraggedItem> = {
|
|
14
|
+
draggable: (item: DraggedItem) => NonNullable<DraggablePluginProps<DraggedItem>[`$draggable`]>;
|
|
15
|
+
droppable: (onDrop: (item: DraggedItem) => void) => NonNullable<DroppablePluginProps<DraggedItem>["$droppable"]>;
|
|
16
|
+
};
|
|
17
|
+
export declare const getDraggableContext: <DraggedItem>() => DraggableContext<DraggedItem>;
|
|
18
|
+
//# sourceMappingURL=get-draggable-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-draggable-context.d.ts","sourceRoot":"","sources":["../../../../src/plugins/draggable-and-droppable/get-draggable-context.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,GAAG,IAAI;IAC1C,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,EAAE,CAAC,CAAC;KACT,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,GAAG,IAAI;IAC1C,UAAU,CAAC,EAAE;QACX,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,WAAW,IAAI;IAC1C,SAAS,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,WAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;IAC/F,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,KAAK,WAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC;CAClH,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,WAAW,OAAK,gBAAgB,CAAC,WAAW,CAc/E,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IComputedValue } from "mobx";
|
|
2
|
+
import type { DraggableContext } from "./get-draggable-context";
|
|
3
|
+
export type ItemBeingDragged = <T>(draggableContext: DraggableContext<T>) => IComputedValue<T | undefined>;
|
|
4
|
+
export declare const itemBeingDraggedInjectionToken: import("@k8slens/injectable").InjectionToken2Base<() => ItemBeingDragged, () => ItemBeingDragged[], "one", () => import("@k8slens/injectable").InjectionInstanceWithMeta<ItemBeingDragged>, () => import("@k8slens/injectable").InjectionInstanceWithMeta<ItemBeingDragged>[]> & {
|
|
5
|
+
readonly __abstract?: never;
|
|
6
|
+
};
|
|
7
|
+
export declare const privateItemBeingDraggedInjectable: import("@k8slens/injectable").Injectable2<(context: DraggableContext<any>) => IComputedValue<undefined>>;
|
|
8
|
+
export declare const itemBeingDraggedInjectable: import("@k8slens/injectable").Injectable2<() => ItemBeingDragged>;
|
|
9
|
+
//# sourceMappingURL=item-being-dragged.injectable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-being-dragged.injectable.d.ts","sourceRoot":"","sources":["../../../../src/plugins/draggable-and-droppable/item-being-dragged.injectable.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAE3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,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,sDAMzB,gBAAgB,CAAC,GAAG,CAAC,+BAExC,CAAC;AAEH,eAAO,MAAM,0BAA0B,kDAQ8B,gBAAgB,CAInF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make-sure-drag-and-drop-events-have-time-to-happen.default-override.d.ts","sourceRoot":"","sources":["../../../../../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.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;;0BAIvC,EAAE,EAAE,WAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make-sure-drag-and-drop-events-have-time-to-happen.injectable.d.ts","sourceRoot":"","sources":["../../../../../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.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mDAAmD,6DAG1B,MAAM,IAAI,UAK9C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type DropDownMenuSpec } from "@k8slens/drop-down-menu-contracts";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
export type DropDownMenuPluginProps = {
|
|
4
|
+
readonly children?: React.ReactNode;
|
|
5
|
+
readonly tabIndex?: number;
|
|
6
|
+
/**
|
|
7
|
+
* Attaches a drop-down menu to the element. Create the value with `dropDownMenu(kind, options?)`
|
|
8
|
+
* from `@k8slens/drop-down-menu-contracts`; the items come from the contributions registered for
|
|
9
|
+
* the kind.
|
|
10
|
+
*
|
|
11
|
+
* The menu positions itself against the nearest anchor around it, so the element — or something
|
|
12
|
+
* enclosing it — declares `$anchor`.
|
|
13
|
+
*
|
|
14
|
+
* Requires `dropDownMenuFeature` of `@lensapp/drop-down-menu` to be registered: the menu
|
|
15
|
+
* component is resolved through an injection token this package does not implement.
|
|
16
|
+
*/
|
|
17
|
+
readonly $dropDownMenu?: DropDownMenuSpec;
|
|
18
|
+
};
|
|
19
|
+
export declare const dropDownMenuPlugin: import("@k8slens/element-component").Plugin<DropDownMenuPluginProps, unknown>;
|
|
20
|
+
//# sourceMappingURL=drop-down-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-down-menu.d.ts","sourceRoot":"","sources":["../../../../src/plugins/drop-down-menu/drop-down-menu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGxF,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,gBAAgB,CAAC;CAC3C,CAAC;AA8HF,eAAO,MAAM,kBAAkB,+EAiB7B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type EnabledPluginProps = {
|
|
2
|
+
/**
|
|
3
|
+
* This field has higher priority than $disabled
|
|
4
|
+
*/
|
|
5
|
+
$enabled?: boolean;
|
|
6
|
+
$disabled?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This field is overridden via $disabled and $enabled
|
|
9
|
+
*/
|
|
10
|
+
disabled?: undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare const enabledPlugin: import("@k8slens/element-component").Plugin<{
|
|
13
|
+
$className?: import("@k8slens/public-utilities").IClassName;
|
|
14
|
+
className?: string;
|
|
15
|
+
$enabled?: boolean;
|
|
16
|
+
$disabled?: boolean;
|
|
17
|
+
disabled?: undefined;
|
|
18
|
+
}, unknown>;
|
|
19
|
+
export declare const isDisabled: (props: EnabledPluginProps) => boolean;
|
|
20
|
+
//# sourceMappingURL=enabled.d.ts.map
|