@entur/tooltip 4.0.0-beta.0 → 4.0.0-beta.1

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/dist/Popover.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { Placement } from '@popperjs/core';
2
+ import { Placement } from './utils';
3
3
  import './Popover.scss';
4
4
  export type PopoverProps = {
5
5
  /** Innholdet i Popover */
@@ -27,5 +27,7 @@ export declare const PopoverCloseButton: React.FC<PopoverCloseButtonProps>;
27
27
  export type PopoverContentProps = {
28
28
  /**Innholdet til Popover */
29
29
  children: React.ReactNode;
30
+ className?: string;
31
+ style?: React.CSSProperties;
30
32
  };
31
33
  export declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
package/dist/Tooltip.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { Placement } from './utils';
2
3
  import './Tooltip.scss';
3
4
  type Modifier = {
4
5
  name: string;
@@ -9,7 +10,6 @@ type Modifier = {
9
10
  data?: Record<string, unknown>;
10
11
  [key: string]: any;
11
12
  };
12
- export type Placement = 'top' | 'top-left' | 'top-start' | 'top-right' | 'top-end' | 'left' | 'right' | 'bottom-left' | 'bottom-start' | 'bottom' | 'bottom-right' | 'bottom-end';
13
13
  /** @deprecated use variant="negative" instead */
14
14
  declare const error = "error";
15
15
  export type TooltipProps = {
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import './index.scss';
2
2
  export * from './Tooltip';
3
3
  export * from './Popover';
4
+ export { Placement } from './utils';