@loadsmart/miranda-wc 1.23.0 → 1.24.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 (49) hide show
  1. package/dist/components/banner/banner.d.ts +1 -0
  2. package/dist/components/banner/banner.d.ts.map +1 -1
  3. package/dist/components/banner/banner.styles.d.ts.map +1 -1
  4. package/dist/components/checkbox/checkbox.d.ts +1 -0
  5. package/dist/components/checkbox/checkbox.d.ts.map +1 -1
  6. package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -1
  7. package/dist/components/close-button/close-button.d.ts +1 -0
  8. package/dist/components/close-button/close-button.d.ts.map +1 -1
  9. package/dist/components/close-button/close-button.styles.d.ts.map +1 -1
  10. package/dist/components/field/field-hint.d.ts +33 -0
  11. package/dist/components/field/field-hint.d.ts.map +1 -0
  12. package/dist/components/field/field-hint.styles.d.ts +3 -0
  13. package/dist/components/field/field-hint.styles.d.ts.map +1 -0
  14. package/dist/components/field/field-label.d.ts +39 -0
  15. package/dist/components/field/field-label.d.ts.map +1 -0
  16. package/dist/components/field/field-label.styles.d.ts +3 -0
  17. package/dist/components/field/field-label.styles.d.ts.map +1 -0
  18. package/dist/components/field/field.context.d.ts +11 -0
  19. package/dist/components/field/field.context.d.ts.map +1 -0
  20. package/dist/components/field/field.d.ts +64 -0
  21. package/dist/components/field/field.d.ts.map +1 -0
  22. package/dist/components/field/field.types.d.ts +3 -0
  23. package/dist/components/field/field.types.d.ts.map +1 -0
  24. package/dist/components/field/index.d.ts +8 -0
  25. package/dist/components/field/index.d.ts.map +1 -0
  26. package/dist/components/icon/available-icons.d.ts +4 -0
  27. package/dist/components/icon/available-icons.d.ts.map +1 -0
  28. package/dist/components/icon/icon.d.ts +59 -0
  29. package/dist/components/icon/icon.d.ts.map +1 -0
  30. package/dist/components/icon/icon.styles.d.ts +3 -0
  31. package/dist/components/icon/icon.styles.d.ts.map +1 -0
  32. package/dist/components/icon/index.d.ts +4 -0
  33. package/dist/components/icon/index.d.ts.map +1 -0
  34. package/dist/components/toggle-group/toggle.d.ts +1 -0
  35. package/dist/components/toggle-group/toggle.d.ts.map +1 -1
  36. package/dist/components/toggle-group/toggle.styles.d.ts.map +1 -1
  37. package/dist/icons/attention.js +3 -0
  38. package/dist/icons/bell.js +3 -0
  39. package/dist/icons/check.js +3 -0
  40. package/dist/icons/close.js +3 -0
  41. package/dist/icons/indeterminate.js +3 -0
  42. package/dist/icons/info-circle.js +3 -0
  43. package/dist/index.d.ts +1 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +627 -543
  46. package/dist/index.js.map +1 -1
  47. package/dist/styles/margin.d.ts +16 -14
  48. package/dist/styles/margin.d.ts.map +1 -1
  49. package/package.json +4 -2
@@ -4,6 +4,7 @@ import type { BannerActionPrimary } from './banner-action-primary';
4
4
  import '../button';
5
5
  import '../close-button';
6
6
  import '../text';
7
+ import '../icon';
7
8
  export type BannerVariant = 'neutral' | 'warning' | 'danger' | 'success';
8
9
  export interface BannerProps {
9
10
  variant?: BannerVariant;
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../../src/components/banner/banner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,WAAW,CAAC;AACnB,OAAO,iBAAiB,CAAC;AACzB,OAAO,SAAS,CAAC;AAEjB,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AA0DzE,MAAM,WAAW,WAAW;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBAAa,M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EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAEhD;;OAEG;IACK,SAAS,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;;IAe5C,IAAI,aAAa,IAAI,mBAAmB,GAAG,IAAI,CAM9C;IAEQ,OAAO,CAAC,iBAAiB,EAAE,cAAc;IASzC,MAAM;CA8Cf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,MAAM,CAAC;KACnB;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"banner.styles.d.ts","sourceRoot":"","sources":["../../../src/components/banner/banner.styles.ts"],"names":[],"mappings":"AAKA,wBAAgB,MAAM,4BAqErB"}
1
+ {"version":3,"file":"banner.styles.d.ts","sourceRoot":"","sources":["../../../src/components/banner/banner.styles.ts"],"names":[],"mappings":"AAKA,wBAAgB,MAAM,4BAwErB"}
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import '../icon';
2
3
  export interface CheckboxProps {
3
4
  id?: string;
4
5
  name?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,MAAM,WAAW,aAAa;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CACZ,KAAK,EAAE,WAAW,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC,KAC5D,IAAI,CAAC;CACV;AAED,qBAAa,QAAS,SAAQ,UAAU;;IACvC,OAAgB,MAAM,4BAAc;IAEpC,WAAoB,UAAU;;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G;IACK,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAEpC;;OAEG;IACK,QAAQ,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACK,OAAO,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACK,aAAa,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,QAAgB,KAAK,CAAmB;IAExC;;OAEG;IACH,QAAgB,KAAK,CAAmB;IAE/B,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAI5B,YAAY,IAAI,IAAI;IAKpB,OAAO,IAAI,IAAI;IAIf,MAAM;CA+Cf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,QAAQ,CAAC;KACvB;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.styles.ts"],"names":[],"mappings":"AAYA,iBAAS,MAAM,4BAkGd;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"checkbox.styles.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.styles.ts"],"names":[],"mappings":"AAYA,iBAAS,MAAM,4BAmGd;AAED,eAAe,MAAM,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Component } from '../component';
2
+ import '../icon';
2
3
  export type CloseButtonSize = 'small' | 'default' | 'large';
3
4
  export interface CloseButtonProps {
4
5
  controls?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"close-button.d.ts","sourceRoot":"","sources":["../../../src/components/close-button/close-button.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC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U,CAAC,CAAC;IAE/C;;OAEG;IACK,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAE/C;;OAEG;IACK,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAE/C;;OAEG;IACK,KAAK,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEzC;;OAEG;IACK,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;;IAU9B,MAAM;CAyBf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,WAAW,CAAC;KAC9B;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"close-button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/close-button/close-button.styles.ts"],"names":[],"mappings":"AAMA,wBAAgB,MAAM,4BAyErB"}
1
+ {"version":3,"file":"close-button.styles.d.ts","sourceRoot":"","sources":["../../../src/components/close-button/close-button.styles.ts"],"names":[],"mappings":"AAMA,wBAAgB,MAAM,4BA8ErB"}
@@ -0,0 +1,33 @@
1
+ import { Component } from '../component';
2
+ import type { FieldStatus } from './field.types';
3
+ import '../icon';
4
+ import '../layout/group';
5
+ export interface FieldHintProps extends HTMLElement {
6
+ status?: FieldStatus;
7
+ }
8
+ export declare class FieldHint extends Component {
9
+ #private;
10
+ static styles: import("lit").CSSResult[][];
11
+ static get properties(): {
12
+ status: {
13
+ type: StringConstructor;
14
+ };
15
+ slot: {
16
+ type: StringConstructor;
17
+ };
18
+ };
19
+ /**
20
+ * Hint status type.
21
+ */
22
+ status: FieldHintProps['status'];
23
+ slot: string;
24
+ private field;
25
+ constructor();
26
+ render(): import("lit-html").TemplateResult<1>;
27
+ }
28
+ declare global {
29
+ interface HTMLElementTagNameMap {
30
+ 'm-field-hint': FieldHint;
31
+ }
32
+ }
33
+ //# sourceMappingURL=field-hint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-hint.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-hint.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,OAAO,SAAS,CAAC;AACjB,OAAO,iBAAiB,CAAC;AAEzB,MAAM,WAAW,cAAe,SAAQ,WAAW;IAClD,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,qBAAa,SAAU,SAAQ,SAAS;;IACvC,OAAgB,MAAM,8BAAc;IAEpC,WAAoB,UAAU;;;;;;;MAK7B;IAED;;OAEG;IACK,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAEjC,IAAI,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,KAAK,CAA4D;;IAQhE,MAAM;CAiCf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,cAAc,EAAE,SAAS,CAAC;KAC1B;CACD"}
@@ -0,0 +1,3 @@
1
+ declare function styles(): import("lit").CSSResult[];
2
+ export default styles;
3
+ //# sourceMappingURL=field-hint.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-hint.styles.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-hint.styles.ts"],"names":[],"mappings":"AAMA,iBAAS,MAAM,8BAqBd;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { Component } from '../component';
2
+ import type { FieldSize } from './field.types';
3
+ export interface FieldLabelProps extends HTMLElement {
4
+ size?: FieldSize;
5
+ required?: boolean;
6
+ }
7
+ export declare class FieldLabel extends Component {
8
+ #private;
9
+ static styles: import("lit").CSSResult[][];
10
+ static get properties(): {
11
+ required: {
12
+ type: BooleanConstructor;
13
+ };
14
+ size: {
15
+ type: StringConstructor;
16
+ };
17
+ slot: {
18
+ type: StringConstructor;
19
+ };
20
+ };
21
+ /**
22
+ * Is this field required.
23
+ */
24
+ required: FieldLabelProps['required'];
25
+ /**
26
+ * Field size.
27
+ */
28
+ size: FieldLabelProps['size'];
29
+ slot: string;
30
+ private field;
31
+ constructor();
32
+ render(): import("lit-html").TemplateResult<1>;
33
+ }
34
+ declare global {
35
+ interface HTMLElementTagNameMap {
36
+ 'm-field-label': FieldLabel;
37
+ }
38
+ }
39
+ //# sourceMappingURL=field-label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-label.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-label.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,eAAgB,SAAQ,WAAW;IACnD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,UAAW,SAAQ,SAAS;;IACxC,OAAgB,MAAM,8BAAc;IAEpC,WAAoB,UAAU;;;;;;;;;;MAM7B;IAED;;OAEG;IACK,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAE9C;;OAEG;IACK,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAE9B,IAAI,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,KAAK,CAA4D;;IAQhE,MAAM;CAuBf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,eAAe,EAAE,UAAU,CAAC;KAC5B;CACD"}
@@ -0,0 +1,3 @@
1
+ declare function styles(): import("lit").CSSResult[];
2
+ export default styles;
3
+ //# sourceMappingURL=field-label.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-label.styles.d.ts","sourceRoot":"","sources":["../../../src/components/field/field-label.styles.ts"],"names":[],"mappings":"AAMA,iBAAS,MAAM,8BAuCd;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { FieldSize, FieldStatus } from './field.types';
2
+ export interface FieldContext {
3
+ required?: boolean;
4
+ status?: FieldStatus;
5
+ size?: FieldSize;
6
+ }
7
+ declare const fieldContext: {
8
+ __context__: FieldContext;
9
+ };
10
+ export default fieldContext;
11
+ //# sourceMappingURL=field.context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.context.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CACjB;AAED,QAAA,MAAM,YAAY;;CAAuC,CAAC;AAE1D,eAAe,YAAY,CAAC"}
@@ -0,0 +1,64 @@
1
+ import { type PropertyValues } from 'lit';
2
+ import { Component } from '../component';
3
+ import type { FieldStatus, FieldSize } from './field.types';
4
+ import '../layout/group';
5
+ import '../layout/stack';
6
+ import '../close-button';
7
+ import './field-hint';
8
+ import './field-label';
9
+ export interface FieldProps {
10
+ hint?: string;
11
+ label?: string;
12
+ size?: FieldSize;
13
+ status?: FieldStatus;
14
+ required?: boolean;
15
+ }
16
+ export declare class Field extends Component {
17
+ static get properties(): {
18
+ label: {
19
+ type: StringConstructor;
20
+ };
21
+ hint: {
22
+ type: StringConstructor;
23
+ };
24
+ required: {
25
+ type: BooleanConstructor;
26
+ };
27
+ status: {
28
+ type: StringConstructor;
29
+ };
30
+ size: {
31
+ type: StringConstructor;
32
+ };
33
+ };
34
+ /**
35
+ * Label that describes what this field is about.
36
+ */
37
+ label: FieldProps['label'];
38
+ /**
39
+ * Auxiliary message to help the user with the field purpose or its `status`.
40
+ */
41
+ hint: FieldProps['hint'];
42
+ /**
43
+ * Is this field required.
44
+ */
45
+ required: FieldProps['required'];
46
+ /**
47
+ * Field [validation] status.
48
+ */
49
+ status: FieldProps['status'];
50
+ /**
51
+ * Field size.
52
+ */
53
+ size: FieldProps['size'];
54
+ private provider;
55
+ constructor();
56
+ update(changedProperties: PropertyValues): void;
57
+ render(): import("lit-html").TemplateResult<1>;
58
+ }
59
+ declare global {
60
+ interface HTMLElementTagNameMap {
61
+ 'm-field': Field;
62
+ }
63
+ }
64
+ //# sourceMappingURL=field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAIhD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE5D,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AACzB,OAAO,iBAAiB,CAAC;AAEzB,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,UAAU;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,KAAM,SAAQ,SAAS;IACnC,WAAoB,UAAU;;;;;;;;;;;;;;;;MAQ7B;IAED;;OAEG;IACK,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAEnC;;OAEG;IACK,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAEjC;;OAEG;IACK,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAEzC;;OAEG;IACK,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAErC;;OAEG;IACK,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IAEjC,OAAO,CAAC,QAAQ,CAIb;;IAUM,MAAM,CAAC,iBAAiB,EAAE,cAAc;IAgBxC,MAAM;CAaf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,SAAS,EAAE,KAAK,CAAC;KACjB;CACD"}
@@ -0,0 +1,3 @@
1
+ export type FieldStatus = 'default' | 'danger';
2
+ export type FieldSize = 'small' | 'default';
3
+ //# sourceMappingURL=field.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.types.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC/C,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { Field } from './field';
2
+ export { FieldHint } from './field-hint';
3
+ export { FieldLabel } from './field-label';
4
+ export type { FieldProps } from './field';
5
+ export type { FieldHintProps } from './field-hint';
6
+ export type { FieldLabelProps } from './field-label';
7
+ export type { FieldSize, FieldStatus } from './field.types';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ declare const AVAILABLE_ICONS: readonly ["attention", "bell", "check", "close", "info-circle", "indeterminate"];
2
+ export type IconName = (typeof AVAILABLE_ICONS)[number];
3
+ export default AVAILABLE_ICONS;
4
+ //# sourceMappingURL=available-icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"available-icons.d.ts","sourceRoot":"","sources":["../../../src/components/icon/available-icons.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe,kFAOX,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,eAAe,eAAe,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { nothing } from 'lit';
2
+ import { type ColorToken } from '@loadsmart/miranda-tokens';
3
+ import type { PropertyValues, SVGTemplateResult } from 'lit';
4
+ import { Component } from '../component';
5
+ import { type IconName } from './available-icons';
6
+ export interface IconProps {
7
+ name: IconName;
8
+ size?: string;
9
+ color?: ColorToken;
10
+ }
11
+ /**
12
+ * This component is meant to be used only inside this repository.
13
+ * The icon's `color` and `size` are intentionally not set by default so that they can be customized via:
14
+ * - setting color and size CSS custom properties
15
+ * - setting color and size attributes
16
+ * Notice that setting color and size through their attributes will override any set CSS custom properties!
17
+ */
18
+ export declare class Icon extends Component {
19
+ #private;
20
+ static styles: import("lit").CSSResult[][];
21
+ static get properties(): {
22
+ name: {
23
+ type: StringConstructor;
24
+ };
25
+ size: {
26
+ type: StringConstructor;
27
+ };
28
+ color: {
29
+ type: StringConstructor;
30
+ };
31
+ loading: {
32
+ state: boolean;
33
+ };
34
+ };
35
+ /**
36
+ * Icon color.
37
+ */
38
+ color: ColorToken;
39
+ /**
40
+ * Icon to be rendered.
41
+ */
42
+ name: IconProps['name'];
43
+ /**
44
+ * Icon size.
45
+ */
46
+ size: IconProps['size'];
47
+ private icon;
48
+ constructor();
49
+ connectedCallback(): void;
50
+ update(changedProperties: PropertyValues<Icon>): void;
51
+ updated(changedProperties: PropertyValues<Icon>): void;
52
+ render(): typeof nothing | SVGTemplateResult;
53
+ }
54
+ declare global {
55
+ interface HTMLElementTagNameMap {
56
+ 'm-icon': Icon;
57
+ }
58
+ }
59
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,2BAA2B,CAAC;AAExE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,KAAK,CAAC;AAG7D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAwB,EAAE,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEnE,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;CACnB;AAED;;;;;;GAMG;AACH,qBAAa,IAAK,SAAQ,SAAS;;IAClC,OAAgB,MAAM,8BAAc;IAEpC,WAAoB,UAAU;;;;;;;;;;;;;MAO7B;IAED;;OAEG;IACK,KAAK,EAAE,UAAU,CAAC;IAE1B;;OAEG;IACK,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAEhC;;OAEG;IACK,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAEhC,OAAO,CAAC,IAAI,CAAkC;;IAQrC,iBAAiB;IAMjB,MAAM,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAQ9C,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAe/C,MAAM;CA4Bf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,QAAQ,EAAE,IAAI,CAAC;KACf;CACD"}
@@ -0,0 +1,3 @@
1
+ declare function styles(): import("lit").CSSResult[];
2
+ export default styles;
3
+ //# sourceMappingURL=icon.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.styles.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.styles.ts"],"names":[],"mappings":"AAKA,iBAAS,MAAM,8BA0Bd;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { Icon } from './icon';
2
+ export type { IconProps } from './icon';
3
+ export type { IconName } from './available-icons';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { LitElement, type PropertyValues } from 'lit';
2
+ import '../icon';
2
3
  export interface ToggleProps {
3
4
  checked?: boolean;
4
5
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-group/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAM5D,MAAM,WAAW,WAAW;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,MAAO,SAAQ,UAAU;;IACrC,OAAgB,MAAM,8BAAc;IAEpC,WAAoB,UAAU;;;;;;;;;;;;;;;MAO7B;IAED;;;OAGG;IACK,QAAQ,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACK,IAAI,EAAE,OAAO,GAAG,YAAY,CAAC;IAErC;;OAEG;IACK,OAAO,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACK,KAAK,EAAE,MAAM,CAAC;;IASb,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;cAMlB,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAYhE,MAAM;CAuDf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,MAAM,CAAC;KACnB;CACD"}
1
+ {"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-group/toggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAM5D,OAAO,SAAS,CAAC;AAEjB,MAAM,WAAW,WAAW;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACd;AAED,qBAAa,MAAO,SAAQ,UAAU;;IACrC,OAAgB,MAAM,8BAAc;IAEpC,WAAoB,UAAU;;;;;;;;;;;;;;;MAO7B;IAED;;;OAGG;IACK,QAAQ,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACK,IAAI,EAAE,OAAO,GAAG,YAAY,CAAC;IAErC;;OAEG;IACK,OAAO,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACK,KAAK,EAAE,MAAM,CAAC;;IASb,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;cAMlB,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI;IAYhE,MAAM;CA4Cf;AAID,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,MAAM,CAAC;KACnB;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"toggle.styles.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-group/toggle.styles.ts"],"names":[],"mappings":"AAOA,iBAAS,MAAM,8BAmDd;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"toggle.styles.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-group/toggle.styles.ts"],"names":[],"mappings":"AAOA,iBAAS,MAAM,8BA+Cd;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { svg } from 'lit';
2
+
3
+ export default svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M6.732 42.889h34.537c2.06 0 3.376-2.192 2.406-4.005l-17.27-32.33c-1.026-1.924-3.785-1.924-4.813 0L4.324 38.883c-.968 1.813.349 4.005 2.408 4.005zm14.542-24.504h5.452v10.89h-5.452zM24 31.998a2.726 2.726 0 0 1 2.726 2.723A2.726 2.726 0 0 1 24 37.444a2.726 2.726 0 0 1-2.726-2.723A2.726 2.726 0 0 1 24 31.998z"/></svg>`;
@@ -0,0 +1,3 @@
1
+ import { svg } from 'lit';
2
+
3
+ export default svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M34.417 21.526v9.133l3.632 3.654v1.826H9v-1.827l3.631-3.653v-9.133c0-5.626 2.96-10.302 8.17-11.544V8.74A2.728 2.728 0 0123.524 6a2.728 2.728 0 012.724 2.74v1.242c5.192 1.242 8.17 5.937 8.17 11.544zm-7.262 16.44c0 2.01-1.634 3.653-3.63 3.653-2.016 0-3.632-1.644-3.632-3.653h7.262z"/></svg>`;
@@ -0,0 +1,3 @@
1
+ import { svg } from 'lit';
2
+
3
+ export default svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M44.4205 13.3433L40.1778 9.10067L18.9646 30.3139L9.06512 20.4144L4.82248 24.657L14.722 34.5565L18.9646 38.7992L23.2073 34.5565L44.4205 13.3433Z"/></svg>`;
@@ -0,0 +1,3 @@
1
+ import { svg } from 'lit';
2
+
3
+ export default svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M40.9706 11.2721L36.7279 7.02944L24 19.7574L11.2721 7.02944L7.02944 11.2721L19.7574 24L7.02944 36.7279L11.2721 40.9706L24 28.2426L36.7279 40.9706L40.9706 36.7279L28.2426 24L40.9706 11.2721Z"/></svg>`;
@@ -0,0 +1,3 @@
1
+ import { svg } from 'lit';
2
+
3
+ export default svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M19 13H5v-2h14v2z" /></svg>`;
@@ -0,0 +1,3 @@
1
+ import { svg } from 'lit';
2
+
3
+ export default svg`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M24 4C12.9551 4 4 12.9583 4 24C4 35.0481 12.9551 44 24 44C35.0449 44 44 35.0481 44 24C44 12.9583 35.0449 4 24 4ZM24 12.871C25.8706 12.871 27.3871 14.3874 27.3871 16.2581C27.3871 18.1287 25.8706 19.6452 24 19.6452C22.1294 19.6452 20.6129 18.1287 20.6129 16.2581C20.6129 14.3874 22.1294 12.871 24 12.871ZM28.5161 33.3548C28.5161 33.8893 28.0828 34.3226 27.5484 34.3226H20.4516C19.9172 34.3226 19.4839 33.8893 19.4839 33.3548V31.4194C19.4839 30.8849 19.9172 30.4516 20.4516 30.4516H21.4194V25.2903H20.4516C19.9172 25.2903 19.4839 24.857 19.4839 24.3226V22.3871C19.4839 21.8527 19.9172 21.4194 20.4516 21.4194H25.6129C26.1473 21.4194 26.5806 21.8527 26.5806 22.3871V30.4516H27.5484C28.0828 30.4516 28.5161 30.8849 28.5161 31.4194V33.3548Z"/></svg>`;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './components/card';
4
4
  export * from './components/checkbox';
5
5
  export * from './components/close-button';
6
6
  export * from './components/divider';
7
+ export * from './components/field';
7
8
  export * from './components/layout';
8
9
  export * from './components/progress-bar';
9
10
  export * from './components/progress-bar-countdown';
@@ -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,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,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"}