@devtron-labs/devtron-fe-common-lib 1.19.0-beta-1 → 1.19.0-pre-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.19.0-beta-1",
3
+ "version": "1.19.0-pre-2",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,27 +0,0 @@
1
- import { InteractiveCellTextProps } from './types';
2
- /**
3
- * A reusable component for rendering text within a tooltip. The text can be interactive (clickable) or static.
4
- *
5
- * @param {Object} props - The props for the component.
6
- * @param {string} props.text - The text to display inside the component. Defaults to `'-'` if not provided.
7
- * @param {function} [props.onClickHandler] - Optional click handler function. If provided, the text will be rendered as a button.
8
- * @param {string} [props.dataTestId] - Optional test ID for the component, useful for testing purposes.
9
- * @param {string} [props.rootClassName] - Additional CSS class names to apply to the root element.
10
- * @param {boolean} [props.interactive=false] - Whether the tooltip content is interactive.
11
- * @param {number} [props.fontSize=13] - Font size for the text. Defaults to `13`.
12
- * @param {React.ReactNode} [props.tippyContent=null] - Custom content for the tooltip. If not provided, `text` will be used.
13
- * @returns {JSX.Element} The rendered `InteractiveCellText` component.
14
- *
15
- * @example
16
- * // Example usage:
17
- * <InteractiveCellText
18
- * text="Click me"
19
- * onClickHandler={() => alert('Clicked!')}
20
- * dataTestId="interactive-cell"
21
- * rootClassName="custom-class"
22
- * interactive={true}
23
- * fontSize={14}
24
- * tippyContent="Tooltip content"
25
- * />
26
- */
27
- export declare const InteractiveCellText: ({ text, onClickHandler, dataTestId, rootClassName, interactive, fontSize, tippyContent, }: InteractiveCellTextProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './InteractiveCellText';
2
- export * from './types';
@@ -1,10 +0,0 @@
1
- import { TippyCustomizedProps } from '../Types';
2
- export interface InteractiveCellTextProps {
3
- text: string;
4
- onClickHandler?: () => void;
5
- dataTestId?: string;
6
- rootClassName?: string;
7
- interactive?: boolean;
8
- fontSize?: number;
9
- tippyContent?: TippyCustomizedProps<false>['additionalContent'];
10
- }
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M7 12H12M12 12H17M12 12V7M12 12V17M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z" stroke="#1DAD70" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M7 12H17M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z" stroke="#F33E3E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,4 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="3" y="3" width="18" height="18" rx="2" stroke="#C58D36" stroke-width="1.5"/>
3
- <circle cx="12" cy="12" r="4" fill="#C58D36"/>
4
- </svg>