@loadsmart/miranda-wc 1.29.1 → 1.30.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 (37) hide show
  1. package/dist/components/dialog/dialog-action-primary.d.ts +12 -0
  2. package/dist/components/dialog/dialog-action-primary.d.ts.map +1 -0
  3. package/dist/components/dialog/dialog-action-secondary.d.ts +10 -0
  4. package/dist/components/dialog/dialog-action-secondary.d.ts.map +1 -0
  5. package/dist/components/dialog/dialog-action-tertiary.d.ts +10 -0
  6. package/dist/components/dialog/dialog-action-tertiary.d.ts.map +1 -0
  7. package/dist/components/dialog/dialog-actions.d.ts +11 -0
  8. package/dist/components/dialog/dialog-actions.d.ts.map +1 -0
  9. package/dist/components/dialog/dialog-body.d.ts +12 -0
  10. package/dist/components/dialog/dialog-body.d.ts.map +1 -0
  11. package/dist/components/dialog/dialog-body.styles.d.ts +2 -0
  12. package/dist/components/dialog/dialog-body.styles.d.ts.map +1 -0
  13. package/dist/components/dialog/dialog-close.d.ts +11 -0
  14. package/dist/components/dialog/dialog-close.d.ts.map +1 -0
  15. package/dist/components/dialog/dialog-footer.d.ts +11 -0
  16. package/dist/components/dialog/dialog-footer.d.ts.map +1 -0
  17. package/dist/components/dialog/dialog-header.d.ts +16 -0
  18. package/dist/components/dialog/dialog-header.d.ts.map +1 -0
  19. package/dist/components/dialog/dialog-header.styles.d.ts +2 -0
  20. package/dist/components/dialog/dialog-header.styles.d.ts.map +1 -0
  21. package/dist/components/dialog/dialog.context.d.ts +8 -0
  22. package/dist/components/dialog/dialog.context.d.ts.map +1 -0
  23. package/dist/components/dialog/dialog.d.ts +50 -0
  24. package/dist/components/dialog/dialog.d.ts.map +1 -0
  25. package/dist/components/dialog/dialog.styles.d.ts +2 -0
  26. package/dist/components/dialog/dialog.styles.d.ts.map +1 -0
  27. package/dist/components/dialog/dialog.types.d.ts +19 -0
  28. package/dist/components/dialog/dialog.types.d.ts.map +1 -0
  29. package/dist/components/dialog/index.d.ts +12 -0
  30. package/dist/components/dialog/index.d.ts.map +1 -0
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +584 -456
  34. package/dist/index.js.map +1 -1
  35. package/dist/utils/wait-for-animations.d.ts +9 -0
  36. package/dist/utils/wait-for-animations.d.ts.map +1 -0
  37. package/package.json +2 -2
@@ -0,0 +1,12 @@
1
+ import { Button } from '../button';
2
+ export declare class DialogActionPrimary extends Button {
3
+ #private;
4
+ private context;
5
+ constructor();
6
+ }
7
+ declare global {
8
+ interface HTMLElementTagNameMap {
9
+ 'm-dialog-action-primary': DialogActionPrimary;
10
+ }
11
+ }
12
+ //# sourceMappingURL=dialog-action-primary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-action-primary.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-action-primary.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,qBAAa,mBAAoB,SAAQ,MAAM;;IAC9C,QAAgB,OAAO,CAAC;;CA8BxB;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,yBAAyB,EAAE,mBAAmB,CAAC;KAC/C;CACD"}
@@ -0,0 +1,10 @@
1
+ import { Button } from '../button';
2
+ export declare class DialogActionSecondary extends Button {
3
+ constructor();
4
+ }
5
+ declare global {
6
+ interface HTMLElementTagNameMap {
7
+ 'm-dialog-action-secondary': DialogActionSecondary;
8
+ }
9
+ }
10
+ //# sourceMappingURL=dialog-action-secondary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-action-secondary.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-action-secondary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,qBAAa,qBAAsB,SAAQ,MAAM;;CAOhD;AAOD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,2BAA2B,EAAE,qBAAqB,CAAC;KACnD;CACD"}
@@ -0,0 +1,10 @@
1
+ import { Button } from '../button';
2
+ export declare class DialogActionTertiary extends Button {
3
+ constructor();
4
+ }
5
+ declare global {
6
+ interface HTMLElementTagNameMap {
7
+ 'm-dialog-action-tertiary': DialogActionTertiary;
8
+ }
9
+ }
10
+ //# sourceMappingURL=dialog-action-tertiary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-action-tertiary.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-action-tertiary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,qBAAa,oBAAqB,SAAQ,MAAM;;CAO/C;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,0BAA0B,EAAE,oBAAoB,CAAC;KACjD;CACD"}
@@ -0,0 +1,11 @@
1
+ import { Group } from '../layout/group';
2
+ export declare class DialogActions extends Group {
3
+ constructor();
4
+ connectedCallback(): void;
5
+ }
6
+ declare global {
7
+ interface HTMLElementTagNameMap {
8
+ 'm-dialog-actions': DialogActions;
9
+ }
10
+ }
11
+ //# sourceMappingURL=dialog-actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-actions.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC,qBAAa,aAAc,SAAQ,KAAK;;IAS9B,iBAAiB,IAAI,IAAI;CAKlC;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,kBAAkB,EAAE,aAAa,CAAC;KAClC;CACD"}
@@ -0,0 +1,12 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class DialogBody extends LitElement {
3
+ static styles: import("lit").CSSResult[];
4
+ connectedCallback(): void;
5
+ render(): import("lit-html").TemplateResult<1>;
6
+ }
7
+ declare global {
8
+ interface HTMLElementTagNameMap {
9
+ 'm-dialog-body': DialogBody;
10
+ }
11
+ }
12
+ //# sourceMappingURL=dialog-body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-body.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAIvC,qBAAa,UAAW,SAAQ,UAAU;IACzC,OAAgB,MAAM,4BAAc;IAE3B,iBAAiB,IAAI,IAAI;IAMzB,MAAM;CAGf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,eAAe,EAAE,UAAU,CAAC;KAC5B;CACD"}
@@ -0,0 +1,2 @@
1
+ export declare function styles(): import("lit").CSSResult;
2
+ //# sourceMappingURL=dialog-body.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-body.styles.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-body.styles.ts"],"names":[],"mappings":"AAIA,wBAAgB,MAAM,4BASrB"}
@@ -0,0 +1,11 @@
1
+ import { CloseButton } from '../close-button';
2
+ export declare class DialogClose extends CloseButton {
3
+ constructor();
4
+ connectedCallback(): void;
5
+ }
6
+ declare global {
7
+ interface HTMLElementTagNameMap {
8
+ 'm-dialog-close': DialogClose;
9
+ }
10
+ }
11
+ //# sourceMappingURL=dialog-close.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-close.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-close.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,qBAAa,WAAY,SAAQ,WAAW;;IAOlC,iBAAiB,IAAI,IAAI;CAKlC;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,WAAW,CAAC;KAC9B;CACD"}
@@ -0,0 +1,11 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class DialogFooter extends LitElement {
3
+ connectedCallback(): void;
4
+ render(): import("lit-html").TemplateResult<1>;
5
+ }
6
+ declare global {
7
+ interface HTMLElementTagNameMap {
8
+ 'm-dialog-footer': DialogFooter;
9
+ }
10
+ }
11
+ //# sourceMappingURL=dialog-footer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-footer.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-footer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,MAAM,KAAK,CAAC;AAEvC,qBAAa,YAAa,SAAQ,UAAU;IAClC,iBAAiB,IAAI,IAAI;IAMzB,MAAM;CAGf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,YAAY,CAAC;KAChC;CACD"}
@@ -0,0 +1,16 @@
1
+ import { Component } from '../component';
2
+ import '../icon';
3
+ import '../layout';
4
+ export declare class DialogHeader extends Component {
5
+ #private;
6
+ static styles: import("lit").CSSResult[];
7
+ constructor();
8
+ connectedCallback(): void;
9
+ render(): import("lit-html").TemplateResult<1>;
10
+ }
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ 'm-dialog-header': DialogHeader;
14
+ }
15
+ }
16
+ //# sourceMappingURL=dialog-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-header.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-header.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,OAAO,SAAS,CAAC;AACjB,OAAO,WAAW,CAAC;AAEnB,qBAAa,YAAa,SAAQ,SAAS;;IAC1C,OAAgB,MAAM,4BAAc;;IAU3B,iBAAiB,IAAI,IAAI;IAMzB,MAAM;CAuCf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,YAAY,CAAC;KAChC;CACD"}
@@ -0,0 +1,2 @@
1
+ export declare function styles(): import("lit").CSSResult;
2
+ //# sourceMappingURL=dialog-header.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog-header.styles.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog-header.styles.ts"],"names":[],"mappings":"AAIA,wBAAgB,MAAM,4BASrB"}
@@ -0,0 +1,8 @@
1
+ import type { DialogVariant } from './dialog.types';
2
+ export type DialogContext = {
3
+ variant?: DialogVariant;
4
+ };
5
+ export declare const dialogContext: {
6
+ __context__: DialogContext;
7
+ };
8
+ //# sourceMappingURL=dialog.context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.context.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,MAAM,aAAa,GAAG;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,aAAa;;CAAiD,CAAC"}
@@ -0,0 +1,50 @@
1
+ import { type PropertyValues } from 'lit';
2
+ import { Component } from '../component';
3
+ import type { DialogProps } from './dialog.types';
4
+ export declare class Dialog extends Component {
5
+ #private;
6
+ static styles: import("lit").CSSResult[];
7
+ static get properties(): {
8
+ open: {
9
+ type: BooleanConstructor;
10
+ reflect: boolean;
11
+ };
12
+ size: {
13
+ type: StringConstructor;
14
+ reflect: boolean;
15
+ };
16
+ variant: {
17
+ type: StringConstructor;
18
+ reflect: boolean;
19
+ };
20
+ };
21
+ /**
22
+ * Determine if the dialog is open or closed
23
+ */
24
+ open: Required<DialogProps['open']>;
25
+ /**
26
+ * Determines the size of the dialog
27
+ */
28
+ size: DialogProps['size'];
29
+ /**
30
+ * Determines the style of the dialog
31
+ */
32
+ variant: DialogProps['variant'];
33
+ constructor();
34
+ render(): import("lit-html").TemplateResult<1>;
35
+ updated(changedProperties: PropertyValues<this>): void;
36
+ /**
37
+ * Make the dialog visible
38
+ */
39
+ show(): void;
40
+ /**
41
+ * Hide the dialog
42
+ */
43
+ hide(): void;
44
+ }
45
+ declare global {
46
+ interface HTMLElementTagNameMap {
47
+ 'm-dialog': Dialog;
48
+ }
49
+ }
50
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKhD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,qBAAa,MAAO,SAAQ,SAAS;;IACpC,OAAgB,MAAM,4BAAc;IAEpC,WAAoB,UAAU;;;;;;;;;;;;;MAM7B;IAED;;OAEG;IACK,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IAE5C;;OAEG;IACK,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAElC;;OAEG;IACK,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;;IAc/B,MAAM;IAoBN,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAcxD;;OAEG;IACH,IAAI,IAAI,IAAI;IAIZ;;OAEG;IACH,IAAI,IAAI,IAAI;CAoEZ;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,MAAM,CAAC;KACnB;CACD"}
@@ -0,0 +1,2 @@
1
+ export declare function styles(): import("lit").CSSResult;
2
+ //# sourceMappingURL=dialog.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.styles.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.styles.ts"],"names":[],"mappings":"AAOA,wBAAgB,MAAM,4BA+FrB"}
@@ -0,0 +1,19 @@
1
+ export declare const DIALOG_SIZES: readonly ["small", "medium", "large", "extra-large"];
2
+ export type DialogSize = (typeof DIALOG_SIZES)[number];
3
+ export declare const DIALOG_VARIANTS: readonly ["neutral", "success", "warning", "danger"];
4
+ export type DialogVariant = (typeof DIALOG_VARIANTS)[number];
5
+ export interface DialogProps {
6
+ /**
7
+ * Determine if the dialog is open or closed
8
+ */
9
+ open?: boolean;
10
+ /**
11
+ * Determines the size of the dialog
12
+ */
13
+ size?: DialogSize;
14
+ /**
15
+ * Determines the style of the dialog
16
+ */
17
+ variant?: DialogVariant;
18
+ }
19
+ //# sourceMappingURL=dialog.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.types.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/dialog.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,sDAKf,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,eAAO,MAAM,eAAe,sDAKlB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACxB"}
@@ -0,0 +1,12 @@
1
+ export { Dialog } from './dialog';
2
+ export { DIALOG_SIZES, DIALOG_VARIANTS } from './dialog.types';
3
+ export type { DialogProps, DialogSize, DialogVariant } from './dialog.types';
4
+ export { DialogActionPrimary } from './dialog-action-primary';
5
+ export { DialogActionSecondary } from './dialog-action-secondary';
6
+ export { DialogActionTertiary } from './dialog-action-tertiary';
7
+ export { DialogActions } from './dialog-actions';
8
+ export { DialogBody } from './dialog-body';
9
+ export { DialogClose } from './dialog-close';
10
+ export { DialogFooter } from './dialog-footer';
11
+ export { DialogHeader } from './dialog-header';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC/D,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './components/button';
3
3
  export * from './components/card';
4
4
  export * from './components/checkbox';
5
5
  export * from './components/close-button';
6
+ export * from './components/dialog';
6
7
  export * from './components/divider';
7
8
  export * from './components/field';
8
9
  export * from './components/layout';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}