@hexure/ui 1.8.8 → 1.8.10

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.
@@ -1,8 +1,8 @@
1
- import { FC } from 'react';
1
+ import React, { FC } from 'react';
2
2
  import { AccessibleProps } from '../../utils/Accessibility';
3
3
  export interface CopyProps extends AccessibleProps {
4
4
  /** Set the text to be displayed */
5
- children: string;
5
+ children: string | React.ReactNode;
6
6
  align?: string;
7
7
  /** Set the margin on the element */
8
8
  margin?: string;
@@ -1,2 +1,3 @@
1
- declare const Loader: () => JSX.Element;
1
+ import { FC } from 'react';
2
+ declare const Loader: FC;
2
3
  export default Loader;
@@ -1,11 +1,13 @@
1
1
  import { FC } from 'react';
2
2
  export interface TooltipProps {
3
3
  /** It is used to give label to tag. */
4
- children: string;
4
+ children: any;
5
5
  /** It is callback function called when user wants to close the tag. */
6
6
  position?: 'right-top' | 'right-bottom' | 'right-center' | 'left-top' | 'left-bottom' | 'left-center';
7
7
  /** Override the default content width of 240px */
8
8
  width?: string;
9
+ /** The element to display that triggers the tooltip content */
10
+ trigger?: any;
9
11
  }
10
12
  declare const Tooltip: FC<TooltipProps>;
11
13
  export default Tooltip;
package/dist/index.d.ts CHANGED
@@ -150,7 +150,7 @@ declare const Checklist: FC<ChecklistProps>;
150
150
 
151
151
  interface CopyProps extends AccessibleProps {
152
152
  /** Set the text to be displayed */
153
- children: string;
153
+ children: string | React.ReactNode;
154
154
  align?: string;
155
155
  /** Set the margin on the element */
156
156
  margin?: string;
@@ -214,11 +214,13 @@ declare const Drawer: FC<DrawerProps>;
214
214
 
215
215
  interface TooltipProps {
216
216
  /** It is used to give label to tag. */
217
- children: string;
217
+ children: any;
218
218
  /** It is callback function called when user wants to close the tag. */
219
219
  position?: 'right-top' | 'right-bottom' | 'right-center' | 'left-top' | 'left-bottom' | 'left-center';
220
220
  /** Override the default content width of 240px */
221
221
  width?: string;
222
+ /** The element to display that triggers the tooltip content */
223
+ trigger?: any;
222
224
  }
223
225
  declare const Tooltip: FC<TooltipProps>;
224
226
 
@@ -330,7 +332,7 @@ interface LinkProps extends AccessibleProps {
330
332
  }
331
333
  declare const Link: FC<LinkProps>;
332
334
 
333
- declare const Loader: () => JSX.Element;
335
+ declare const Loader: FC;
334
336
 
335
337
  interface LogoProps extends AccessibleProps {
336
338
  type?: 'mark_red' | 'mark_white' | 'standard_white' | 'standard_black' | 'standard_full' | 'standard_reversed';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.8.8",
3
+ "version": "1.8.10",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",
@@ -38,7 +38,8 @@
38
38
  "@testing-library/user-event": "^14.4.3",
39
39
  "@types/jest": "^29.0.3",
40
40
  "@types/numeral": "^2.0.2",
41
- "@types/react": "^18.0.17",
41
+ "@types/react": "^18.2.33",
42
+ "@types/react-dom": "^18.2.14",
42
43
  "@types/styled-components": "^5.1.26",
43
44
  "@typescript-eslint/eslint-plugin": "^5.50.0",
44
45
  "@typescript-eslint/parser": "^5.50.0",