armtek-uikit-react 1.0.165 → 1.0.166

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 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.165","description":"Armtek UIKit for React","main":"cjs/index.js","module":"esm/index.js","types":"esm/index.d.ts","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.166","description":"Armtek UIKit for React","main":"cjs/index.js","module":"esm/index.js","types":"esm/index.d.ts","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -1,13 +1,12 @@
1
- import { ReactNode } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  type Classes = {
3
3
  tooltip: string;
4
4
  popper: string;
5
5
  };
6
6
  export type TooltipProps = {
7
7
  text: string | ReactNode;
8
- children: ReactNode;
9
8
  classNames?: Partial<Classes>;
10
9
  placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
11
10
  };
12
- declare function Tooltip(props: TooltipProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function Tooltip(props: TooltipProps & Omit<ComponentPropsWithoutRef<'span'>, keyof TooltipProps>): import("react/jsx-runtime").JSX.Element;
13
12
  export default Tooltip;
@@ -27,7 +27,8 @@ function Tooltip(props) {
27
27
  text,
28
28
  children: childrenProp,
29
29
  placement = 'top',
30
- classNames
30
+ classNames,
31
+ ...restProps
31
32
  } = props;
32
33
  const children = /*#__PURE__*/(0, _react.isValidElement)(childrenProp) ? childrenProp : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
33
34
  children: childrenProp
@@ -74,7 +75,8 @@ function Tooltip(props) {
74
75
  className: classNames == null ? void 0 : classNames.popper,
75
76
  anchorEl: anchorEl.current,
76
77
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
77
- className: (0, _clsx.default)('arm-tooltip__item', classNames == null ? void 0 : classNames.tooltip),
78
+ ...restProps,
79
+ className: (0, _clsx.default)('arm-tooltip__item', classNames == null ? void 0 : classNames.tooltip, restProps.className),
78
80
  children: text
79
81
  })
80
82
  })]