@galaxy-ds/core 1.1.45 → 1.1.46

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,4 +1,4 @@
1
1
  import React from "react";
2
- import { customTabsProps } from "./Tabs.types";
3
- declare const Tabs: React.FC<customTabsProps>;
2
+ import { CustomTabsProps } from "./Tabs.types";
3
+ declare const Tabs: React.FC<CustomTabsProps>;
4
4
  export default Tabs;
@@ -1,7 +1,6 @@
1
1
  import { TabsProps } from "@material-ui/core/Tabs";
2
- export interface customTabsProps extends TabsProps {
3
- onChange?: (e: any) => void;
4
- orientation?: 'horizontal' | 'vertical';
2
+ export interface CustomTabsProps extends TabsProps {
3
+ orientation?: "horizontal" | "vertical";
5
4
  value?: any;
6
5
  children: any;
7
6
  }
@@ -1,12 +1,3 @@
1
- /// <reference types="react" />
2
- export interface TooltipProps {
3
- /**
4
- * Tooltip reference element.
5
- */
6
- children: React.ReactElement;
7
- /**
8
- * Tooltip title. Zero-length titles string are never displayed.
9
- */
10
- title: React.ReactNode;
11
- placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
1
+ import { TooltipProps as MuiTooltipProps } from "@material-ui/core";
2
+ export interface TooltipProps extends MuiTooltipProps {
12
3
  }
package/dist/index.esm.js CHANGED
@@ -34482,22 +34482,22 @@ var useStyles$e = makeStyles(createStyles({
34482
34482
  root: {
34483
34483
  flexGrow: 1,
34484
34484
  backgroundColor: common.brand.background.tabs,
34485
- '& .Mui-selected': {
34485
+ "& .Mui-selected": {
34486
34486
  // backgroundColor: common.brand.primary.contrastText,
34487
34487
  },
34488
34488
  },
34489
34489
  tabsRoot: {
34490
34490
  borderBottom: "1px solid " + common.brand.utility.border,
34491
- '&.MuiTabs-vertical': {
34492
- borderBottom: 'none',
34491
+ "&.MuiTabs-vertical": {
34492
+ borderBottom: "none",
34493
34493
  },
34494
34494
  },
34495
34495
  indicator: {
34496
- display: 'none',
34496
+ display: "none",
34497
34497
  },
34498
34498
  }));
34499
34499
  var Tabs = function (_a) {
34500
- var children = _a.children, _b = _a.orientation, orientation = _b === void 0 ? 'horizontal' : _b, props = __rest(_a, ["children", "orientation"]);
34500
+ var children = _a.children, _b = _a.orientation, orientation = _b === void 0 ? "horizontal" : _b, props = __rest(_a, ["children", "orientation"]);
34501
34501
  var classes = useStyles$e();
34502
34502
  return (React__default.createElement("div", { className: classes.root },
34503
34503
  React__default.createElement(MuiTabs, __assign$1({ orientation: orientation }, props, { classes: { root: classes.tabsRoot, indicator: classes.indicator }, indicatorColor: "secondary" }), children)));
@@ -34684,9 +34684,10 @@ var Toolbar = function (props) {
34684
34684
  React__default.createElement(Toolbar$2, null, props.children)));
34685
34685
  };
34686
34686
 
34687
- var Tooltip = function (props) {
34688
- return (React__default.createElement(Tooltip$2, __assign$1({ arrow: true, TransitionProps: { timeout: 0 } }, props)));
34689
- };
34687
+ var Tooltip = React__default.forwardRef(function (props, ref) {
34688
+ var children = props.children, TransitionProps = props.TransitionProps, defaultProps = __rest(props, ["children", "TransitionProps"]);
34689
+ return (React__default.createElement(Tooltip$2, __assign$1({ arrow: true, TransitionProps: __assign$1(__assign$1({}, TransitionProps), { timeout: 0 }), ref: ref }, defaultProps), children));
34690
+ });
34690
34691
 
34691
34692
  function DocTypeAppointment$2(props) {
34692
34693
  return (React__default.createElement(SvgIcon$1, __assign$1({}, props, { viewBox: "0 0 48 48" }),