@telia-ace/widget-ui 1.0.26 → 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.
- package/dist/components/button.d.ts +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/empty.d.ts +1 -1
- package/dist/components/grid.d.ts +1 -1
- package/dist/components/html.d.ts +2 -2
- package/dist/components/icon.d.ts +1 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/item-list.d.ts +2 -2
- package/dist/components/item-tree.d.ts +1 -1
- package/dist/components/lightbox.d.ts +1 -1
- package/dist/components/link.d.ts +1 -1
- package/dist/components/list.d.ts +2 -2
- package/dist/components/loader.d.ts +1 -1
- package/dist/components/modal/confirm.d.ts +1 -1
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/not-found.d.ts +1 -1
- package/dist/components/overlay.d.ts +1 -1
- package/dist/components/paragraph.d.ts +1 -1
- package/dist/components/portal.d.ts +1 -1
- package/dist/components/route-link.d.ts +1 -1
- package/dist/components/symbol-badge.d.ts +3 -3
- package/dist/components/tab-stop.d.ts +2 -2
- package/dist/components/text-link.d.ts +1 -1
- package/dist/components/text.d.ts +1 -1
- package/dist/components/timestamp.d.ts +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/transition-component.d.ts +2 -2
- package/dist/components/typography.d.ts +2 -2
- package/dist/components/widget-link.d.ts +1 -1
- package/dist/components/widget-overlay-outlet.d.ts +1 -1
- package/dist/components/zoomable-img.d.ts +1 -1
- package/dist/hooks/use-action.d.ts +1 -1
- package/dist/hooks/use-children.d.ts +1 -1
- package/dist/hooks/use-dispatch.d.ts +1 -1
- package/dist/hooks/use-properties.d.ts +1 -1
- package/dist/index.js +899 -848
- package/dist/index.js.map +1 -1
- package/dist/styles.d.ts +1 -1
- package/dist/utils/animations.d.ts +2 -2
- package/dist/utils/filter-css-props.d.ts +1 -1
- package/dist/utils/generic-hash-link.d.ts +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
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
|
|
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
|
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type HtmlParseInstruction = {
|
|
3
3
|
transform: {
|
|
4
4
|
[htmlTag: string]: (props: any) => JSX.Element;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
|
-
export
|
|
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
|
|
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
|
|
4
|
+
export type ItemListProps = {
|
|
5
5
|
customHeader?: any;
|
|
6
6
|
ulProps?: any;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type Symbol = {
|
|
3
3
|
type: 'Uri' | 'Svg' | 'FontAwesome' | 'Text' | string;
|
|
4
4
|
content: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
7
|
-
export
|
|
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
|
|
3
|
+
export type Props = {
|
|
4
4
|
container: Container;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type State = Readonly<{
|
|
7
7
|
boundFocus: boolean;
|
|
8
8
|
}>;
|
|
9
9
|
declare class TabStop extends Component<Props, State> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
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
|
-
|
|
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
|
|
3
|
-
export
|
|
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,4 +1,4 @@
|
|
|
1
1
|
import { Container } from '@webprovisions/platform';
|
|
2
|
-
export
|
|
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
|
|
2
|
+
export type SetPropertiesAction<T> = (key: string, value: Partial<T>) => void;
|
|
3
3
|
declare const useChildren: () => ComponentDescriptor[];
|
|
4
4
|
export default useChildren;
|