@oc-digital/react-component-library 6.0.0-beta.8 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,10 +4,10 @@
4
4
  * Instead of accepting a HTMLElement, which would require a re-render to get the correct width,
5
5
  * this function is oprimised to accept only the text and max width.
6
6
  */
7
- export declare function getTableTextInputTextWidth(text: string, maxWidth?: number): string;
7
+ export declare function getTableTextInputTextWidth(text: string, minWidth?: number, maxWidth?: number): string;
8
8
  /**
9
9
  * Calculates the width of a given string in pixels (perfect result)
10
10
  *
11
11
  * When using this to size inputs, the input must have CSS box-sizing: content-box
12
12
  */
13
- export declare function getTextWidth(text: string, element: HTMLElement, maxWidth?: number): string;
13
+ export declare function getTextWidth(text: string, element: HTMLElement, minWidth?: number, maxWidth?: number): string;