@devtron-labs/devtron-fe-common-lib 0.0.71-beta-5 → 0.0.71-beta-7

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.
@@ -2,11 +2,9 @@
2
2
  import ClipboardProps from './types';
3
3
  /**
4
4
  * @param content - Content to be copied
5
- * @param copiedTippyText - Text to be shown in the tippy when the content is copied, default 'Copied!'
6
- * @param duration - Duration for which the tippy should be shown, default 1000
7
- * @param trigger - To trigger the copy action outside the button, if set to true the content will be copied, use case being triggering the copy action from outside the component
8
- * @param setTrigger - Callback function to set the trigger outside the button
9
- * @param rootClassName - additional classes to add to button
10
- * @param iconSize - size of svg icon to be shown, default 16 (icon-dim-16)
5
+ * @param copiedTippyText - Text to be shown in the tippy when the content is copied
6
+ * @param duration - Duration for which the tippy should be shown
7
+ * @param trigger - To trigger the copy action, if set to true the content will be copied, use case being triggering the copy action from outside the component
8
+ * @param setTrigger - Callback function to set the trigger
11
9
  */
12
- export default function ClipboardButton({ content, copiedTippyText, duration, trigger, setTrigger, rootClassName, iconSize, }: ClipboardProps): JSX.Element;
10
+ export default function ClipboardButton({ content, copiedTippyText, duration, trigger, setTrigger }: ClipboardProps): JSX.Element;
@@ -1,10 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export default interface ClipboardProps {
3
3
  content: string;
4
- copiedTippyText?: string;
5
- duration?: number;
6
- trigger?: boolean;
7
- setTrigger?: React.Dispatch<React.SetStateAction<boolean>>;
8
- rootClassName?: string;
9
- iconSize?: number;
4
+ copiedTippyText: string;
5
+ duration: number;
6
+ trigger: boolean;
7
+ setTrigger: React.Dispatch<React.SetStateAction<boolean>>;
10
8
  }
@@ -69,4 +69,8 @@ export declare const debounce: (func: any, timeout?: number) => (this: any, ...a
69
69
  * Sorts the relative dates based on the sorting direction
70
70
  */
71
71
  export declare const handleRelativeDateSorting: (dateStringA: any, dateStringB: any, sortOrder: any) => number;
72
+ /**
73
+ * Returns a stringified YAML with default indentation & line width
74
+ */
75
+ export declare const YAMLStringify: (obj: string, option?: object) => string;
72
76
  export {};