@odx/foundation 1.0.0-beta.113 → 1.0.0-beta.115
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/empty-state/empty-state.d.ts +22 -0
- package/dist/components/gradient-overlay/gradient-overlay.d.ts +21 -0
- package/dist/components/icon-button/icon-button.d.ts +8 -1
- package/dist/components/main.d.ts +2 -2
- package/dist/components/title/title.d.ts +7 -3
- package/dist/components/tooltip/tooltip.d.ts +13 -0
- package/dist/components.js +231 -188
- package/dist/lib/main.d.ts +6 -0
- package/dist/lib/models/layout.d.ts +26 -0
- package/dist/main.js +32 -12
- package/dist/styles.css +1 -1
- package/dist/vendor.js +48 -48
- package/package.json +2 -2
- package/dist/components/headline/headline.d.ts +0 -21
- package/dist/components/stack/stack.d.ts +0 -37
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CustomElement, ValuesOf } from '../../lib/main.js';
|
|
2
|
+
import { OdxIconName } from '@odx/icons';
|
|
3
|
+
import { TemplateResult } from 'lit';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-empty-state': OdxEmptyState;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export type EmptyStateSize = ValuesOf<typeof EmptyStateSize>;
|
|
10
|
+
export declare const EmptyStateSize: Pick<{
|
|
11
|
+
readonly XS: "xs";
|
|
12
|
+
readonly SM: "sm";
|
|
13
|
+
readonly MD: "md";
|
|
14
|
+
readonly LG: "lg";
|
|
15
|
+
readonly XL: "xl";
|
|
16
|
+
readonly XXL: "xxl";
|
|
17
|
+
}, "SM" | "MD">;
|
|
18
|
+
export declare class OdxEmptyState extends CustomElement {
|
|
19
|
+
icon?: OdxIconName;
|
|
20
|
+
size: EmptyStateSize;
|
|
21
|
+
protected render(): TemplateResult | string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CustomElement, ValuesOf } from '../../lib/main.js';
|
|
2
|
+
import { TemplateResult } from 'lit';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'odx-gradient-overlay': OdxGradientOverlay;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export type GradientOverlaySize = ValuesOf<typeof GradientOverlaySize>;
|
|
9
|
+
export declare const GradientOverlaySize: Pick<{
|
|
10
|
+
readonly XS: "xs";
|
|
11
|
+
readonly SM: "sm";
|
|
12
|
+
readonly MD: "md";
|
|
13
|
+
readonly LG: "lg";
|
|
14
|
+
readonly XL: "xl";
|
|
15
|
+
readonly XXL: "xxl";
|
|
16
|
+
}, "SM" | "MD">;
|
|
17
|
+
export declare class OdxGradientOverlay extends CustomElement {
|
|
18
|
+
active: boolean;
|
|
19
|
+
size: GradientOverlaySize;
|
|
20
|
+
protected render(): TemplateResult | string;
|
|
21
|
+
}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import { OdxIconName } from '@odx/icons';
|
|
2
|
-
import { TemplateResult } from 'lit';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
3
|
import { OdxButton } from '../button/button.js';
|
|
4
|
+
import { TooltipPlacement } from '../tooltip/tooltip.js';
|
|
4
5
|
declare global {
|
|
5
6
|
interface HTMLElementTagNameMap {
|
|
6
7
|
'odx-icon-button': OdxIconButton;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
export declare class OdxIconButton extends OdxButton {
|
|
11
|
+
#private;
|
|
10
12
|
float: boolean;
|
|
11
13
|
icon?: OdxIconName;
|
|
14
|
+
label?: string;
|
|
15
|
+
labelPlacement?: TooltipPlacement;
|
|
16
|
+
protected render(): TemplateResult;
|
|
17
|
+
protected updated(props: PropertyValues<this>): void;
|
|
12
18
|
protected renderContent(): TemplateResult;
|
|
19
|
+
protected renderTooltip(label: TemplateResult | string): TemplateResult;
|
|
13
20
|
}
|
|
@@ -18,10 +18,11 @@ export * from './circular-progress-bar/circular-progress-bar.js';
|
|
|
18
18
|
export * from './combobox/autocomplete.js';
|
|
19
19
|
export * from './content-box/content-box.js';
|
|
20
20
|
export * from './dropdown/dropdown.js';
|
|
21
|
+
export * from './empty-state/empty-state.js';
|
|
21
22
|
export * from './form-field/form-field.js';
|
|
22
23
|
export * from './format/index.js';
|
|
24
|
+
export * from './gradient-overlay/gradient-overlay.js';
|
|
23
25
|
export * from './header/index.js';
|
|
24
|
-
export * from './headline/headline.js';
|
|
25
26
|
export * from './highlight/highlight.js';
|
|
26
27
|
export * from './icon-button/icon-button.js';
|
|
27
28
|
export * from './image/image.js';
|
|
@@ -56,7 +57,6 @@ export * from './skeleton/skeleton.js';
|
|
|
56
57
|
export * from './slider/index.js';
|
|
57
58
|
export * from './spacer/spacer.js';
|
|
58
59
|
export * from './spinbox/spinbox.js';
|
|
59
|
-
export * from './stack/stack.js';
|
|
60
60
|
export * from './status/status.js';
|
|
61
61
|
export * from './switch/switch.js';
|
|
62
62
|
export * from './table/index.js';
|
|
@@ -6,16 +6,20 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
export type TitleSize = ValuesOf<typeof TitleSize>;
|
|
9
|
-
export declare const TitleSize:
|
|
9
|
+
export declare const TitleSize: {
|
|
10
|
+
readonly 'DISPLAY-SM': "display-sm";
|
|
11
|
+
readonly 'DISPLAY-MD': "display-md";
|
|
12
|
+
readonly 'DISPLAY-LG': "display-lg";
|
|
13
|
+
readonly 'DISPLAY-XL': "display-xl";
|
|
10
14
|
readonly XS: "xs";
|
|
11
15
|
readonly SM: "sm";
|
|
12
16
|
readonly MD: "md";
|
|
13
17
|
readonly LG: "lg";
|
|
14
18
|
readonly XL: "xl";
|
|
15
19
|
readonly XXL: "xxl";
|
|
16
|
-
}
|
|
20
|
+
};
|
|
17
21
|
export declare class OdxTitle extends CustomElement {
|
|
18
|
-
size
|
|
22
|
+
size?: TitleSize;
|
|
19
23
|
level?: number;
|
|
20
24
|
protected willUpdate(props: PropertyValues<this>): void;
|
|
21
25
|
}
|
|
@@ -21,16 +21,29 @@ export declare const TooltipPlacement: Pick<{
|
|
|
21
21
|
readonly LEFT_START: "left-start";
|
|
22
22
|
readonly LEFT_END: "left-end";
|
|
23
23
|
}, "TOP" | "RIGHT" | "BOTTOM" | "LEFT">;
|
|
24
|
+
export type TooltipSize = ValuesOf<typeof TooltipSize>;
|
|
25
|
+
export declare const TooltipSize: Pick<{
|
|
26
|
+
readonly XS: "xs";
|
|
27
|
+
readonly SM: "sm";
|
|
28
|
+
readonly MD: "md";
|
|
29
|
+
readonly LG: "lg";
|
|
30
|
+
readonly XL: "xl";
|
|
31
|
+
readonly XXL: "xxl";
|
|
32
|
+
}, "SM" | "MD" | "LG">;
|
|
24
33
|
export declare class OdxTooltip extends PopoverHost {
|
|
25
34
|
#private;
|
|
35
|
+
interactive: boolean;
|
|
26
36
|
show: boolean;
|
|
37
|
+
size: TooltipSize;
|
|
27
38
|
timeout?: number;
|
|
28
39
|
placement: TooltipPlacement;
|
|
29
40
|
connectedCallback(): void;
|
|
41
|
+
onBeforePopoverShow(): Promise<void> | void;
|
|
30
42
|
onPopoverShow(): void;
|
|
31
43
|
onBeforePopoverHide(): void;
|
|
32
44
|
mountPopover(referenceElement: HTMLElement): void;
|
|
33
45
|
unmountPopover(referenceElement: HTMLElement): void;
|
|
34
46
|
protected render(): TemplateResult;
|
|
35
47
|
protected willUpdate(props: PropertyValues<this>): void;
|
|
48
|
+
protected updated(props: PropertyValues<this>): void;
|
|
36
49
|
}
|