@telia-ace/widget-ui 1.0.26-next.0 → 1.0.27-next.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.
Files changed (44) hide show
  1. package/dist/components/button.d.ts +1 -1
  2. package/dist/components/checkbox.d.ts +1 -1
  3. package/dist/components/drawer/drawer.d.ts +1 -1
  4. package/dist/components/dropdown/dropdown.d.ts +1 -1
  5. package/dist/components/empty.d.ts +1 -1
  6. package/dist/components/grid.d.ts +1 -1
  7. package/dist/components/html.d.ts +2 -2
  8. package/dist/components/icon.d.ts +1 -1
  9. package/dist/components/input.d.ts +1 -1
  10. package/dist/components/item-list.d.ts +2 -2
  11. package/dist/components/item-tree.d.ts +1 -1
  12. package/dist/components/lightbox.d.ts +1 -1
  13. package/dist/components/link.d.ts +1 -1
  14. package/dist/components/list.d.ts +2 -2
  15. package/dist/components/loader.d.ts +1 -1
  16. package/dist/components/modal/confirm.d.ts +1 -1
  17. package/dist/components/modal/modal.d.ts +1 -1
  18. package/dist/components/not-found.d.ts +1 -1
  19. package/dist/components/overlay.d.ts +1 -1
  20. package/dist/components/paragraph.d.ts +1 -1
  21. package/dist/components/portal.d.ts +1 -1
  22. package/dist/components/route-link.d.ts +1 -1
  23. package/dist/components/symbol-badge.d.ts +3 -3
  24. package/dist/components/tab-stop.d.ts +2 -2
  25. package/dist/components/text-link.d.ts +1 -1
  26. package/dist/components/text.d.ts +1 -1
  27. package/dist/components/timestamp.d.ts +1 -1
  28. package/dist/components/tooltip.d.ts +1 -1
  29. package/dist/components/transition-component.d.ts +2 -2
  30. package/dist/components/typography.d.ts +2 -2
  31. package/dist/components/widget-link.d.ts +1 -1
  32. package/dist/components/widget-overlay-outlet.d.ts +1 -1
  33. package/dist/components/zoomable-img.d.ts +1 -1
  34. package/dist/hooks/use-action.d.ts +1 -1
  35. package/dist/hooks/use-children.d.ts +1 -1
  36. package/dist/hooks/use-dispatch.d.ts +1 -1
  37. package/dist/hooks/use-properties.d.ts +1 -1
  38. package/dist/index.js +899 -848
  39. package/dist/index.js.map +1 -1
  40. package/dist/styles.d.ts +1 -1
  41. package/dist/utils/animations.d.ts +2 -2
  42. package/dist/utils/filter-css-props.d.ts +1 -1
  43. package/dist/utils/generic-hash-link.d.ts +1 -1
  44. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare type Props = React.ComponentProps<'button'>;
2
+ export type Props = React.ComponentProps<'button'>;
3
3
  declare const _default: React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>> & React.RefAttributes<HTMLButtonElement>>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = Merge<React.ComponentProps<'input'>, {
2
+ export type Props = Merge<React.ComponentProps<'input'>, {
3
3
  onChange?: (value: string, checked: boolean) => void;
4
4
  onEnter?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
5
5
  }>;
@@ -5,7 +5,7 @@ export declare enum AnimationType {
5
5
  SlideInBottom = "slide-in-bottom",
6
6
  SlideInTop = "slide-in-top"
7
7
  }
8
- export declare type Props = {
8
+ export type Props = {
9
9
  header?: string | React.ReactNode;
10
10
  className?: string;
11
11
  animation?: {
@@ -1,5 +1,5 @@
1
1
  import React, { ReactElement } from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  className?: string;
4
4
  children?: any;
5
5
  trigger: ReactElement;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare type Props = {};
2
+ export type Props = {};
3
3
  declare const Empty: React.FC<Props>;
4
4
  export default Empty;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = Merge<React.ComponentProps<'div'>, {
2
+ export type Props = Merge<React.ComponentProps<'div'>, {
3
3
  columns: number;
4
4
  gap: string;
5
5
  }>;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export declare type HtmlParseInstruction = {
2
+ export type HtmlParseInstruction = {
3
3
  transform: {
4
4
  [htmlTag: string]: (props: any) => JSX.Element;
5
5
  };
6
6
  };
7
- export declare type Props = Merge<React.ComponentProps<'div'>, {
7
+ export type Props = Merge<React.ComponentProps<'div'>, {
8
8
  html: string;
9
9
  htmlParseInstruction?: HtmlParseInstruction;
10
10
  }>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = Merge<React.HTMLProps<HTMLElement>, {
2
+ export type Props = Merge<React.HTMLProps<HTMLElement>, {
3
3
  className?: string;
4
4
  faIcon: string;
5
5
  }>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = Merge<React.ComponentProps<'input'>, {
2
+ export type Props = Merge<React.ComponentProps<'input'>, {
3
3
  onChange?: (value: string) => void;
4
4
  onEnter?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
5
5
  onEscape?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { Props as ListProps } from './list';
3
3
  import { Props as ParagraphProps } from './paragraph';
4
- export declare type ItemListProps = {
4
+ export type ItemListProps = {
5
5
  customHeader?: any;
6
6
  ulProps?: any;
7
7
  };
8
- export declare type Props = Merge<ListProps, ParagraphProps> & ItemListProps;
8
+ export type Props = Merge<ListProps, ParagraphProps> & ItemListProps;
9
9
  declare const _default: React.ForwardRefExoticComponent<Pick<Props, "symbol" | "header" | "html" | "text" | "key" | keyof React.HTMLAttributes<HTMLDivElement> | "htmlParseInstruction" | "renderItem" | "items" | "renderLi" | keyof ItemListProps> & React.RefAttributes<HTMLDivElement>>;
10
10
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  className?: string;
4
4
  tree?: any[];
5
5
  rootItem?: any;
@@ -1,5 +1,5 @@
1
1
  import React, { FC } from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  attrs: React.DetailedHTMLProps<React.HtmlHTMLAttributes<HTMLImageElement>, HTMLImageElement>;
4
4
  htmlBody: string;
5
5
  children?: React.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React, { ElementType } from 'react';
2
- export declare type Props = Merge<React.ComponentProps<'a'>, {
2
+ export type Props = Merge<React.ComponentProps<'a'>, {
3
3
  disabled?: boolean;
4
4
  routeName?: string;
5
5
  params?: {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare type ItemRenderer = (item: any, index: number, items: any[], defaultRenderer?: ItemRenderer) => React.ReactNode;
3
- export declare type Props = Merge<React.ComponentProps<'ul'>, {
2
+ export type ItemRenderer = (item: any, index: number, items: any[], defaultRenderer?: ItemRenderer) => React.ReactNode;
3
+ export type Props = Merge<React.ComponentProps<'ul'>, {
4
4
  renderItem: ItemRenderer;
5
5
  items: any[];
6
6
  renderLi?: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  className?: string;
4
4
  loading: boolean | undefined;
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Props as ModalProps } from './modal';
3
- declare type Props = Merge<{
3
+ type Props = Merge<{
4
4
  header?: string;
5
5
  text?: string;
6
6
  onCancel?: () => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = Merge<{
2
+ export type Props = Merge<{
3
3
  trigger: React.ReactElement;
4
4
  className?: string;
5
5
  onOverlayClick?: (e: React.MouseEvent) => void;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  header?: string;
4
4
  link?: string;
5
5
  suggestionHeader?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  duration?: number;
4
4
  visible: boolean;
5
5
  onClick?: (e: React.MouseEvent) => void;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { Props as HtmlProps } from './html';
3
3
  import { Symbol } from './symbol-badge';
4
- export declare type Props = Merge<HtmlProps, {
4
+ export type Props = Merge<HtmlProps, {
5
5
  text?: string;
6
6
  html?: string;
7
7
  header?: string;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  elementId?: string;
4
4
  parent?: Element | HTMLElement;
5
5
  children?: any;
@@ -1,5 +1,5 @@
1
1
  import React, { ElementType } from 'react';
2
- export declare type Props = Merge<React.ComponentProps<'a'>, {
2
+ export type Props = Merge<React.ComponentProps<'a'>, {
3
3
  disabled?: boolean;
4
4
  name?: string;
5
5
  params?: {
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- export declare type Symbol = {
2
+ export type Symbol = {
3
3
  type: 'Uri' | 'Svg' | 'FontAwesome' | 'Text' | string;
4
4
  content: string;
5
5
  };
6
- export declare type HtmlIconProps = Merge<React.ComponentProps<'i'>, React.ComponentProps<'svg'>>;
7
- export declare type Props = Merge<HtmlIconProps, {
6
+ export type HtmlIconProps = Merge<React.ComponentProps<'i'>, React.ComponentProps<'svg'>>;
7
+ export type Props = Merge<HtmlIconProps, {
8
8
  symbol: Symbol;
9
9
  backgroundSize?: string;
10
10
  size?: number;
@@ -1,9 +1,9 @@
1
1
  import { Container } from '@webprovisions/platform';
2
2
  import { Component } from 'react';
3
- export declare type Props = {
3
+ export type Props = {
4
4
  container: Container;
5
5
  };
6
- declare type State = Readonly<{
6
+ type State = Readonly<{
7
7
  boundFocus: boolean;
8
8
  }>;
9
9
  declare class TabStop extends Component<Props, State> {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Props as LinkProps } from './link';
3
- export declare type Props = Merge<LinkProps, {
3
+ export type Props = Merge<LinkProps, {
4
4
  text: string;
5
5
  description?: string;
6
6
  }>;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- export declare type Props = React.ComponentProps<'span'>;
2
+ export type Props = React.ComponentProps<'span'>;
3
3
  declare const Text: React.FC<Props>;
4
4
  export default Text;
@@ -4,7 +4,7 @@ export declare enum DateFormats {
4
4
  YYYY_MM_DD = "yyyy-mm-dd",
5
5
  YYYY_MM_DD_HH_MM = "yyyy-mm-dd hh:mm"
6
6
  }
7
- export declare type Props = {
7
+ export type Props = {
8
8
  timestamp: string;
9
9
  format?: DateFormats;
10
10
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  className?: string;
4
4
  content: React.ReactNode;
5
5
  sticky: boolean;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type Props = {
2
+ export type Props = {
3
3
  in: boolean;
4
4
  timeout?: number | {
5
5
  enter?: number;
@@ -13,7 +13,7 @@ export declare type Props = {
13
13
  exit: TransitionInfo;
14
14
  };
15
15
  };
16
- declare type TransitionInfo = {
16
+ type TransitionInfo = {
17
17
  type: string;
18
18
  easing?: string;
19
19
  };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- export declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
3
- export declare type Props = {
2
+ export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
3
+ export type Props = {
4
4
  variant: TypographyVariant;
5
5
  component?: React.ElementType;
6
6
  className?: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Props as LinkProps } from './link';
3
- export declare type Props = Merge<LinkProps, {
3
+ export type Props = Merge<LinkProps, {
4
4
  widgetName: string;
5
5
  activationOptions?: {
6
6
  [key: string]: any;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- declare type Props = {
2
+ type Props = {
3
3
  portalId: string;
4
4
  className?: string;
5
5
  children?: ReactNode;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ZoomableImage } from './lightbox';
3
- export declare type Props = {
3
+ export type Props = {
4
4
  zoomState: number;
5
5
  image: ZoomableImage;
6
6
  changeZoom: (num: number) => void;
@@ -1,4 +1,4 @@
1
1
  import { Container } from '@webprovisions/platform';
2
- export declare type Action = (action: string, value?: any) => void;
2
+ export type Action = (action: string, value?: any) => void;
3
3
  export declare const useAction: (passedOrigin?: string, passedContainer?: Container) => Action;
4
4
  export default useAction;
@@ -1,4 +1,4 @@
1
1
  import { ComponentDescriptor } from '@telia-ace/widget-core';
2
- export declare type SetPropertiesAction<T> = (key: string, value: Partial<T>) => void;
2
+ export type SetPropertiesAction<T> = (key: string, value: Partial<T>) => void;
3
3
  declare const useChildren: () => ComponentDescriptor[];
4
4
  export default useChildren;
@@ -1,3 +1,3 @@
1
- export declare type DispatchAction = (key: string, data?: any) => Promise<any>;
1
+ export type DispatchAction = (key: string, data?: any) => Promise<any>;
2
2
  declare const useDispatch: () => DispatchAction;
3
3
  export default useDispatch;
@@ -1,5 +1,5 @@
1
1
  import { ComponentNodeProperties } from '@telia-ace/widget-core';
2
- declare type DataProperties = {
2
+ type DataProperties = {
3
3
  loading?: boolean;
4
4
  };
5
5
  declare const useProperties: <T extends ComponentNodeProperties>() => Merge<DataProperties, T>;