@telia-ace/widget-ui 1.0.35 → 1.1.1-rc.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/components/button.d.ts +4 -0
- package/components/grid.d.ts +7 -0
- package/{dist/components → components}/html.d.ts +1 -1
- package/components/input.d.ts +10 -0
- package/{dist/components → components}/item-list.d.ts +1 -1
- package/{dist/components → components}/link.d.ts +1 -1
- package/{dist/components → components}/list.d.ts +1 -1
- package/{dist/components → components}/modal/modal.d.ts +1 -1
- package/{dist/components → components}/paragraph.d.ts +1 -1
- package/{dist/components → components}/route-link.d.ts +1 -1
- package/{dist/components → components}/tab-stop.d.ts +1 -1
- package/components/text-link.d.ts +8 -0
- package/components/text.d.ts +4 -0
- package/components/widget-link.d.ts +10 -0
- package/index.js +777 -0
- package/index.mjs +8717 -0
- package/package.json +18 -46
- package/{dist/styles.d.ts → styles.d.ts} +1 -1
- package/{dist/utils → utils}/animations.d.ts +2 -2
- package/{dist/utils → utils}/create-empty-component.d.ts +1 -2
- package/{dist/utils → utils}/embedded-link-mapper.d.ts +1 -2
- package/{dist/utils → utils}/generic-hash-link.d.ts +1 -1
- package/{dist/utils → utils}/render-instructions.d.ts +3 -3
- package/LICENSE.txt +0 -6
- package/README.md +0 -3
- package/dist/components/button.d.ts +0 -4
- package/dist/components/grid.d.ts +0 -7
- package/dist/components/input.d.ts +0 -10
- package/dist/components/text-link.d.ts +0 -8
- package/dist/components/text.d.ts +0 -4
- package/dist/components/widget-link.d.ts +0 -10
- package/dist/index.js +0 -3223
- package/dist/index.js.map +0 -1
- /package/{dist/components → components}/anchor-link.d.ts +0 -0
- /package/{dist/components → components}/checkbox.d.ts +0 -0
- /package/{dist/components → components}/drawer/drawer.d.ts +0 -0
- /package/{dist/components → components}/drawer/index.d.ts +0 -0
- /package/{dist/components → components}/dropdown/dropdown.d.ts +0 -0
- /package/{dist/components → components}/dropdown/index.d.ts +0 -0
- /package/{dist/components → components}/dropdown/use-position.d.ts +0 -0
- /package/{dist/components → components}/empty.d.ts +0 -0
- /package/{dist/components → components}/icon.d.ts +0 -0
- /package/{dist/components → components}/index.d.ts +0 -0
- /package/{dist/components → components}/item-tree.d.ts +0 -0
- /package/{dist/components → components}/lightbox.d.ts +0 -0
- /package/{dist/components → components}/loader.d.ts +0 -0
- /package/{dist/components → components}/modal/confirm.d.ts +0 -0
- /package/{dist/components → components}/modal/index.d.ts +0 -0
- /package/{dist/components → components}/not-found.d.ts +0 -0
- /package/{dist/components → components}/overlay.d.ts +0 -0
- /package/{dist/components → components}/portal.d.ts +0 -0
- /package/{dist/components → components}/symbol-badge.d.ts +0 -0
- /package/{dist/components → components}/timestamp.d.ts +0 -0
- /package/{dist/components → components}/tooltip.d.ts +0 -0
- /package/{dist/components → components}/transition-component.d.ts +0 -0
- /package/{dist/components → components}/typography.d.ts +0 -0
- /package/{dist/components → components}/widget-overlay-outlet.d.ts +0 -0
- /package/{dist/components → components}/zoomable-img.d.ts +0 -0
- /package/{dist/contexts → contexts}/index.d.ts +0 -0
- /package/{dist/create-react-component.d.ts → create-react-component.d.ts} +0 -0
- /package/{dist/hooks → hooks}/index.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-action.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-children.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-columns.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-component-descriptor.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-component-node.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-component-platform.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-component.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-container.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-context.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-conversation.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-dispatch.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-event-listener.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-events.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-is-mounted.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-is-tabbing.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-key-press.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-layout.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-previous.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-properties.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-render-state.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-route-data.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-router.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-scroll.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-settings.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-toggle.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-transition-end.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-unique-menu.d.ts +0 -0
- /package/{dist/hooks → hooks}/use-widget-event.d.ts +0 -0
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/utils → utils}/browser.d.ts +0 -0
- /package/{dist/utils → utils}/convert-to-string-attributes.d.ts +0 -0
- /package/{dist/utils → utils}/filter-css-props.d.ts +0 -0
- /package/{dist/utils → utils}/heading-styles.d.ts +0 -0
- /package/{dist/utils → utils}/index.d.ts +0 -0
- /package/{dist/utils → utils}/process-html-string.d.ts +0 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Props = React.ComponentProps<'button'>;
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Props = Merge<React.ComponentProps<'div'>, {
|
|
3
|
+
columns: number;
|
|
4
|
+
gap: string;
|
|
5
|
+
}>;
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export default _default;
|
|
@@ -8,5 +8,5 @@ export type Props = Merge<React.ComponentProps<'div'>, {
|
|
|
8
8
|
html: string;
|
|
9
9
|
htmlParseInstruction?: HtmlParseInstruction;
|
|
10
10
|
}>;
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Props = Merge<React.ComponentProps<'input'>, {
|
|
3
|
+
onChange?: (value: string) => void;
|
|
4
|
+
onEnter?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
5
|
+
onEscape?: (event: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
6
|
+
onFocusChange?: (focused: boolean) => void;
|
|
7
|
+
selectAllOnFocus?: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
10
|
+
export default _default;
|
|
@@ -6,5 +6,5 @@ export type ItemListProps = {
|
|
|
6
6
|
ulProps?: any;
|
|
7
7
|
};
|
|
8
8
|
export type Props = Merge<ListProps, ParagraphProps> & ItemListProps;
|
|
9
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export default _default;
|
|
@@ -8,5 +8,5 @@ export type Props = Merge<React.ComponentProps<'a'>, {
|
|
|
8
8
|
to?: string;
|
|
9
9
|
as?: ElementType<any>;
|
|
10
10
|
}>;
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
12
|
export default _default;
|
|
@@ -5,5 +5,5 @@ export type Props = Merge<React.ComponentProps<'ul'>, {
|
|
|
5
5
|
items: any[];
|
|
6
6
|
renderLi?: boolean;
|
|
7
7
|
}>;
|
|
8
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
9
9
|
export default _default;
|
|
@@ -6,5 +6,5 @@ export type Props = Merge<{
|
|
|
6
6
|
close?: boolean;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}, React.ComponentProps<'div'>>;
|
|
9
|
-
declare const Modal: React.ForwardRefExoticComponent<
|
|
9
|
+
declare const Modal: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<any>>;
|
|
10
10
|
export default Modal;
|
|
@@ -7,5 +7,5 @@ export type Props = Merge<HtmlProps, {
|
|
|
7
7
|
header?: string;
|
|
8
8
|
symbol?: Symbol;
|
|
9
9
|
}>;
|
|
10
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
10
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export default _default;
|
|
@@ -8,5 +8,5 @@ export type Props = Merge<React.ComponentProps<'a'>, {
|
|
|
8
8
|
to?: string;
|
|
9
9
|
as?: ElementType<any>;
|
|
10
10
|
}>;
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
12
|
export default _default;
|
|
@@ -13,6 +13,6 @@ declare class TabStop extends Component<Props, State> {
|
|
|
13
13
|
componentWillMount(): void;
|
|
14
14
|
componentDidMount(): void;
|
|
15
15
|
componentWillUnmount(): void;
|
|
16
|
-
render():
|
|
16
|
+
render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
17
17
|
}
|
|
18
18
|
export default TabStop;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props as LinkProps } from './link';
|
|
3
|
+
export type Props = Merge<LinkProps, {
|
|
4
|
+
text: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}>;
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type Props = React.ComponentProps<'span'>;
|
|
3
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
export default Text;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Props as LinkProps } from './link';
|
|
3
|
+
export type Props = Merge<LinkProps, {
|
|
4
|
+
widgetName: string;
|
|
5
|
+
activationOptions?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
}>;
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
export default _default;
|