@odx/foundation 1.0.0-beta.113 → 1.0.0-beta.116
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 +3 -3
- package/dist/components/progress-bar/base-progress.d.ts +13 -0
- package/dist/components/progress-bar/progress-bar.d.ts +2 -19
- package/dist/components/progress-ring/progress-ring.d.ts +33 -0
- package/dist/components/title/title.d.ts +7 -3
- package/dist/components/tooltip/tooltip.d.ts +13 -0
- package/dist/components.js +324 -285
- package/dist/lib/main.d.ts +6 -0
- package/dist/lib/models/layout.d.ts +26 -0
- package/dist/lib/models/variant.d.ts +7 -0
- package/dist/main.js +36 -12
- package/dist/styles.css +1 -1
- package/dist/vendor.js +48 -48
- package/package.json +2 -2
- package/dist/components/circular-progress-bar/circular-progress-bar.d.ts +0 -48
- 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
|
}
|
|
@@ -14,14 +14,14 @@ export * from './card/card.js';
|
|
|
14
14
|
export * from './checkbox/checkbox.js';
|
|
15
15
|
export * from './checkbox-group/checkbox-group.js';
|
|
16
16
|
export * from './chip/chip.js';
|
|
17
|
-
export * from './circular-progress-bar/circular-progress-bar.js';
|
|
18
17
|
export * from './combobox/autocomplete.js';
|
|
19
18
|
export * from './content-box/content-box.js';
|
|
20
19
|
export * from './dropdown/dropdown.js';
|
|
20
|
+
export * from './empty-state/empty-state.js';
|
|
21
21
|
export * from './form-field/form-field.js';
|
|
22
22
|
export * from './format/index.js';
|
|
23
|
+
export * from './gradient-overlay/gradient-overlay.js';
|
|
23
24
|
export * from './header/index.js';
|
|
24
|
-
export * from './headline/headline.js';
|
|
25
25
|
export * from './highlight/highlight.js';
|
|
26
26
|
export * from './icon-button/icon-button.js';
|
|
27
27
|
export * from './image/image.js';
|
|
@@ -46,6 +46,7 @@ export * from './page-layout/page-layout.js';
|
|
|
46
46
|
export * from './pagination/pagination.js';
|
|
47
47
|
export * from './popover/popover.js';
|
|
48
48
|
export * from './progress-bar/progress-bar.js';
|
|
49
|
+
export * from './progress-ring/progress-ring.js';
|
|
49
50
|
export * from './radio-button/radio-button.js';
|
|
50
51
|
export * from './radio-group/radio-group.js';
|
|
51
52
|
export * from './rail-navigation/rail-navigation.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';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CustomElement, ProgressVariant } from '../../lib/main.js';
|
|
2
|
+
export declare class BaseProgress extends CustomElement {
|
|
3
|
+
label?: string;
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
value: number;
|
|
7
|
+
valueText?: string;
|
|
8
|
+
hideValue: boolean;
|
|
9
|
+
indeterminate: boolean;
|
|
10
|
+
variant: ProgressVariant;
|
|
11
|
+
get valuePercentage(): number;
|
|
12
|
+
get valueHidden(): boolean;
|
|
13
|
+
}
|
|
@@ -1,29 +1,12 @@
|
|
|
1
|
-
import { CustomElement, ValuesOf } from '../../lib/main.js';
|
|
2
1
|
import { TemplateResult } from 'lit';
|
|
2
|
+
import { BaseProgress } from './base-progress.js';
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLElementTagNameMap {
|
|
5
5
|
'odx-progress-bar': OdxProgressBar;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
export
|
|
9
|
-
export declare const ProgressBarVariant: {
|
|
10
|
-
readonly CONFIRM: "confirm";
|
|
11
|
-
readonly NEUTRAL: "neutral";
|
|
12
|
-
readonly SUCCESS: "success";
|
|
13
|
-
readonly DANGER: "danger";
|
|
14
|
-
};
|
|
15
|
-
export declare class OdxProgressBar extends CustomElement {
|
|
8
|
+
export declare class OdxProgressBar extends BaseProgress {
|
|
16
9
|
readonly content: HTMLElement[];
|
|
17
|
-
min: number;
|
|
18
|
-
max: number;
|
|
19
|
-
value: number;
|
|
20
|
-
label?: string;
|
|
21
|
-
valueText?: string;
|
|
22
10
|
condensed: boolean;
|
|
23
|
-
hideValue: boolean;
|
|
24
|
-
indeterminate: boolean;
|
|
25
|
-
variant: ProgressBarVariant;
|
|
26
|
-
get valuePercentage(): number;
|
|
27
|
-
get valueHidden(): boolean;
|
|
28
11
|
protected render(): TemplateResult;
|
|
29
12
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ValuesOf } from '../../lib/main.js';
|
|
2
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
3
|
+
import { BaseProgress } from '../progress-bar/base-progress.js';
|
|
4
|
+
declare global {
|
|
5
|
+
interface HTMLElementTagNameMap {
|
|
6
|
+
'odx-progress-ring': OdxProgressRing;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export type ProgressRingSize = ValuesOf<typeof ProgressRingSize>;
|
|
10
|
+
export declare const ProgressRingSize: 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" | "LG">;
|
|
18
|
+
/**
|
|
19
|
+
* A progress ring that indicates the progress of a task.
|
|
20
|
+
* @summary Displays the progress of a task in a circular format
|
|
21
|
+
* @csspart inner - The inner SVG element
|
|
22
|
+
* @csspart track - The track circle element
|
|
23
|
+
* @csspart indicator - The indicator circle element
|
|
24
|
+
*/
|
|
25
|
+
export declare class OdxProgressRing extends BaseProgress {
|
|
26
|
+
private readonly content;
|
|
27
|
+
size: ProgressRingSize;
|
|
28
|
+
stroke: number;
|
|
29
|
+
firstUpdated(changes: PropertyValues<this>): void;
|
|
30
|
+
disconnectedCallback(): void;
|
|
31
|
+
protected render(): TemplateResult;
|
|
32
|
+
normalizeStroke(stroke: number, viewPortSize: number): number;
|
|
33
|
+
}
|
|
@@ -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
|
}
|