@politiet/sheriff-web-components 2.1.3 → 2.2.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 (48) hide show
  1. package/dist/index.d.ts +5 -5
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/sds-alert/sds-alert.component.d.ts +25 -0
  5. package/dist/sds-alert/sds-alert.component.d.ts.map +1 -0
  6. package/dist/sds-alert/sds-alert.component.js +73 -0
  7. package/dist/sds-alert/sds-alert.component.js.map +1 -0
  8. package/dist/sds-alert/sds-alert.d.ts +3 -19
  9. package/dist/sds-alert/sds-alert.d.ts.map +1 -1
  10. package/dist/sds-alert/sds-alert.js +2 -55
  11. package/dist/sds-alert/sds-alert.js.map +1 -1
  12. package/dist/sds-alert/sds-alert.styles.d.ts.map +1 -1
  13. package/dist/sds-alert/sds-alert.styles.js +5 -4
  14. package/dist/sds-alert/sds-alert.styles.js.map +1 -1
  15. package/dist/sds-button/sds-button.component.d.ts +44 -0
  16. package/dist/sds-button/sds-button.component.d.ts.map +1 -0
  17. package/dist/sds-button/sds-button.component.js +159 -0
  18. package/dist/sds-button/sds-button.component.js.map +1 -0
  19. package/dist/sds-button/sds-button.d.ts +2 -42
  20. package/dist/sds-button/sds-button.d.ts.map +1 -1
  21. package/dist/sds-button/sds-button.js +2 -151
  22. package/dist/sds-button/sds-button.js.map +1 -1
  23. package/dist/sds-heading/sds-heading.component.d.ts +16 -0
  24. package/dist/sds-heading/sds-heading.component.d.ts.map +1 -0
  25. package/dist/sds-heading/sds-heading.component.js +50 -0
  26. package/dist/sds-heading/sds-heading.component.js.map +1 -0
  27. package/dist/sds-heading/sds-heading.d.ts +2 -14
  28. package/dist/sds-heading/sds-heading.d.ts.map +1 -1
  29. package/dist/sds-heading/sds-heading.js +2 -42
  30. package/dist/sds-heading/sds-heading.js.map +1 -1
  31. package/dist/sds-icon/sds-icon.component.d.ts +31 -0
  32. package/dist/sds-icon/sds-icon.component.d.ts.map +1 -0
  33. package/dist/sds-icon/sds-icon.component.js +73 -0
  34. package/dist/sds-icon/sds-icon.component.js.map +1 -0
  35. package/dist/sds-icon/sds-icon.d.ts +2 -29
  36. package/dist/sds-icon/sds-icon.d.ts.map +1 -1
  37. package/dist/sds-icon/sds-icon.js +3 -67
  38. package/dist/sds-icon/sds-icon.js.map +1 -1
  39. package/dist/sds-text/sds-text.component.d.ts +17 -0
  40. package/dist/sds-text/sds-text.component.d.ts.map +1 -0
  41. package/dist/sds-text/sds-text.component.js +33 -0
  42. package/dist/sds-text/sds-text.component.js.map +1 -0
  43. package/dist/sds-text/sds-text.d.ts +2 -15
  44. package/dist/sds-text/sds-text.d.ts.map +1 -1
  45. package/dist/sds-text/sds-text.js +2 -25
  46. package/dist/sds-text/sds-text.js.map +1 -1
  47. package/dist/sheriff-web-components.js +118 -114
  48. package/package.json +1 -1
@@ -4,75 +4,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- var SDSIcon_1;
8
- import { LitElement, html } from 'lit';
9
- import { property, state } from 'lit/decorators.js';
10
- import { ifDefined } from 'lit/directives/if-defined.js';
11
- import { unsafeSVG } from 'lit/directives/unsafe-svg.js';
12
- import { SDSIconLoader } from './sds-icon-loader';
13
7
  import { guardedCustomElement } from '../utils/guarded-custom-element';
14
- import { styles } from './sds-icon.styles';
15
- let SDSIcon = SDSIcon_1 = class SDSIcon extends LitElement {
16
- constructor() {
17
- super(...arguments);
18
- this.name = '';
19
- this.color = '';
20
- this.label = '';
21
- this.svg = '';
22
- }
23
- static setLoadLocal(loadLocal) {
24
- this.iconLoader.loadLocal = loadLocal;
25
- }
26
- static registerResolver(resolver) {
27
- this.iconLoader.resolver = resolver;
28
- }
29
- render() {
30
- return html `
31
- <div class="sds-icon" role="${ifDefined(this.label ? 'img' : undefined)}" style="${ifDefined(this.color ? `color:${this.color}` : undefined)}" aria-label="${ifDefined(this.label)}">
32
- ${this.name ? html `<slot aria-hidden="true">${unsafeSVG(this.svg)}</slot>` : html `<slot aria-hidden="true"></slot>`}
33
- </div>
34
- `;
35
- }
36
- /**
37
- * Wraps the icon loader's callback in a promise. Even if the loader
38
- * calls the callback synchronously, awaiting the promise defers the
39
- * property update to the next microtask.
40
- */
41
- async fetchIcon() {
42
- if (!this.name) {
43
- this.svg = '';
44
- return;
45
- }
46
- const svg = await new Promise((resolve) => {
47
- SDSIcon_1.iconLoader.resolve(this.name, resolve);
48
- });
49
- this.svg = svg;
50
- }
51
- updated(changedProperties) {
52
- super.updated(changedProperties);
53
- if (changedProperties.has('name') && this.name) {
54
- void this.fetchIcon();
55
- }
56
- }
8
+ import { SDSIconComponent } from './sds-icon.component';
9
+ let SDSIcon = class SDSIcon extends SDSIconComponent {
57
10
  };
58
- SDSIcon.styles = [styles];
59
- SDSIcon.iconLoader = new SDSIconLoader();
60
- __decorate([
61
- property({ type: String, reflect: true })
62
- ], SDSIcon.prototype, "name", void 0);
63
- __decorate([
64
- property({ type: String, reflect: true })
65
- ], SDSIcon.prototype, "size", void 0);
66
- __decorate([
67
- property({ type: String, reflect: true })
68
- ], SDSIcon.prototype, "color", void 0);
69
- __decorate([
70
- property({ type: String, reflect: true })
71
- ], SDSIcon.prototype, "label", void 0);
72
- __decorate([
73
- state()
74
- ], SDSIcon.prototype, "svg", void 0);
75
- SDSIcon = SDSIcon_1 = __decorate([
11
+ SDSIcon = __decorate([
76
12
  guardedCustomElement('sds-icon')
77
13
  ], SDSIcon);
78
14
  export { SDSIcon };
@@ -1 +1 @@
1
- {"version":3,"file":"sds-icon.js","sourceRoot":"","sources":["../../src/sds-icon/sds-icon.ts"],"names":[],"mappings":"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","sourcesContent":["import { LitElement, html } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { SDSIconLoader, type IconPromise } from './sds-icon-loader';\nimport { guardedCustomElement } from '../utils/guarded-custom-element';\nimport { styles } from './sds-icon.styles';\nimport { SDS_SIZES } from '../types';\n\ntype IconSizes = Extract<SDS_SIZES, 'sm' | 'md' | 'lg'>;\nexport interface SDSIconProps {\n\tname?: string;\n\tsize?: 's' | 'm' | IconSizes;\n\tcolor?: string;\n\tlabel?: string;\n}\n@guardedCustomElement('sds-icon')\nexport class SDSIcon extends LitElement {\n\tstatic override styles = [styles];\n\n\tprivate static readonly iconLoader = new SDSIconLoader();\n\n\tstatic setLoadLocal(loadLocal: boolean): void {\n\t\tthis.iconLoader.loadLocal = loadLocal;\n\t}\n\n\tstatic registerResolver(resolver: IconPromise): void {\n\t\tthis.iconLoader.resolver = resolver;\n\t}\n\n\t@property({ type: String, reflect: true }) name: string = '';\n\t@property({ type: String, reflect: true }) size?: 's' | 'm' | IconSizes;\n\t@property({ type: String, reflect: true }) color: string = '';\n\t@property({ type: String, reflect: true }) label: string = '';\n\n\t@state() private svg: string = '';\n\n\toverride render() {\n\t\treturn html`\n\t\t\t<div class=\"sds-icon\" role=\"${ifDefined(this.label ? 'img' : undefined)}\" style=\"${ifDefined(this.color ? `color:${this.color}` : undefined)}\" aria-label=\"${ifDefined(this.label)}\">\n\t\t\t\t${this.name ? html`<slot aria-hidden=\"true\">${unsafeSVG(this.svg)}</slot>` : html`<slot aria-hidden=\"true\"></slot>`}\n\t\t\t</div>\n\t\t`;\n\t}\n\n\t/**\n\t * Wraps the icon loader's callback in a promise. Even if the loader\n\t * calls the callback synchronously, awaiting the promise defers the\n\t * property update to the next microtask.\n\t */\n\tprivate async fetchIcon() {\n\t\tif (!this.name) {\n\t\t\tthis.svg = '';\n\t\t\treturn;\n\t\t}\n\t\tconst svg = await new Promise<string>((resolve) => {\n\t\t\tSDSIcon.iconLoader.resolve(this.name, resolve);\n\t\t});\n\t\tthis.svg = svg;\n\t}\n\n\toverride updated(changedProperties: Map<string | number | symbol, unknown>): void {\n\t\tsuper.updated(changedProperties);\n\t\tif (changedProperties.has('name') && this.name) {\n\t\t\tvoid this.fetchIcon();\n\t\t}\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sds-icon': SDSIcon;\n\t}\n}\n"]}
1
+ {"version":3,"file":"sds-icon.js","sourceRoot":"","sources":["../../src/sds-icon/sds-icon.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGjD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,gBAAgB;CAAG,CAAA;AAAnC,OAAO;IADnB,oBAAoB,CAAC,UAAU,CAAC;GACpB,OAAO,CAA4B","sourcesContent":["import { guardedCustomElement } from '../utils/guarded-custom-element';\nimport { SDSIconComponent } from './sds-icon.component';\n\n@guardedCustomElement('sds-icon')\nexport class SDSIcon extends SDSIconComponent {}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sds-icon': SDSIcon;\n\t}\n}\n"]}
@@ -0,0 +1,17 @@
1
+ import { LitElement } from 'lit';
2
+ import { SDS_SIZES } from '../types';
3
+ type Size = SDS_SIZES;
4
+ export interface SDSTextProps {
5
+ size?: Size;
6
+ strong?: boolean;
7
+ tall?: boolean;
8
+ }
9
+ export declare class SDSTextComponent extends LitElement {
10
+ static styles: import("lit").CSSResult[];
11
+ size: Size;
12
+ strong: boolean;
13
+ tall: boolean;
14
+ render(): import("lit-html").TemplateResult<1>;
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=sds-text.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sds-text.component.d.ts","sourceRoot":"","sources":["../../src/sds-text/sds-text.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,KAAK,IAAI,GAAG,SAAS,CAAC;AAEtB,MAAM,WAAW,YAAY;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,qBAAa,gBAAiB,SAAQ,UAAU;IAE/C,OAAgB,MAAM,4BAAY;IAGS,IAAI,EAAE,IAAI,CAAQ;IACjB,MAAM,EAAE,OAAO,CAAS;IACxB,IAAI,EAAE,OAAO,CAAS;IAEzD,MAAM;CAGf"}
@@ -0,0 +1,33 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { LitElement, html } from 'lit';
8
+ import { property } from 'lit/decorators.js';
9
+ import { styles } from './sds-text.styles';
10
+ export class SDSTextComponent extends LitElement {
11
+ constructor() {
12
+ super(...arguments);
13
+ // Reactive Props
14
+ this.size = 'md';
15
+ this.strong = false;
16
+ this.tall = false;
17
+ }
18
+ render() {
19
+ return html `<p><slot></slot></p>`;
20
+ }
21
+ }
22
+ // Styling
23
+ SDSTextComponent.styles = [styles];
24
+ __decorate([
25
+ property({ type: String, reflect: true })
26
+ ], SDSTextComponent.prototype, "size", void 0);
27
+ __decorate([
28
+ property({ type: Boolean, reflect: true })
29
+ ], SDSTextComponent.prototype, "strong", void 0);
30
+ __decorate([
31
+ property({ type: Boolean, reflect: true })
32
+ ], SDSTextComponent.prototype, "tall", void 0);
33
+ //# sourceMappingURL=sds-text.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sds-text.component.js","sourceRoot":"","sources":["../../src/sds-text/sds-text.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAW3C,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAAhD;;QAIC,iBAAiB;QAC0B,SAAI,GAAS,IAAI,CAAC;QACjB,WAAM,GAAY,KAAK,CAAC;QACxB,SAAI,GAAY,KAAK,CAAC;IAKnE,CAAC;IAHS,MAAM;QACd,OAAO,IAAI,CAAA,sBAAsB,CAAC;IACnC,CAAC;;AAVD,UAAU;AACM,uBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAGS;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAmB;AACjB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gDAAyB;AACxB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAuB","sourcesContent":["import { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { styles } from './sds-text.styles';\nimport { SDS_SIZES } from '../types';\n\ntype Size = SDS_SIZES;\n\nexport interface SDSTextProps {\n\tsize?: Size;\n\tstrong?: boolean;\n\ttall?: boolean;\n}\n\nexport class SDSTextComponent extends LitElement {\n\t// Styling\n\tstatic override styles = [styles];\n\n\t// Reactive Props\n\t@property({ type: String, reflect: true }) size: Size = 'md';\n\t@property({ type: Boolean, reflect: true }) strong: boolean = false;\n\t@property({ type: Boolean, reflect: true }) tall: boolean = false;\n\n\toverride render() {\n\t\treturn html`<p><slot></slot></p>`;\n\t}\n}\n"]}
@@ -1,22 +1,9 @@
1
- import { LitElement } from 'lit';
2
- import { SDS_SIZES } from '../types';
3
- type Size = SDS_SIZES;
4
- export interface SDSTextProps {
5
- size?: Size;
6
- strong?: boolean;
7
- tall?: boolean;
8
- }
9
- export declare class SDSText extends LitElement {
10
- static styles: import("lit").CSSResult[];
11
- size: Size;
12
- strong: boolean;
13
- tall: boolean;
14
- render(): import("lit-html").TemplateResult<1>;
1
+ import { SDSTextComponent } from './sds-text.component';
2
+ export declare class SDSText extends SDSTextComponent {
15
3
  }
16
4
  declare global {
17
5
  interface HTMLElementTagNameMap {
18
6
  'sds-text': SDSText;
19
7
  }
20
8
  }
21
- export {};
22
9
  //# sourceMappingURL=sds-text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sds-text.d.ts","sourceRoot":"","sources":["../../src/sds-text/sds-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAIvC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,KAAK,IAAI,GAAG,SAAS,CAAC;AAEtB,MAAM,WAAW,YAAY;IAC5B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CACf;AAED,qBACa,OAAQ,SAAQ,UAAU;IAEtC,OAAgB,MAAM,4BAAY;IAGS,IAAI,EAAE,IAAI,CAAQ;IACjB,MAAM,EAAE,OAAO,CAAS;IACxB,IAAI,EAAE,OAAO,CAAS;IAEzD,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,OAAO,CAAC;KACpB;CACD"}
1
+ {"version":3,"file":"sds-text.d.ts","sourceRoot":"","sources":["../../src/sds-text/sds-text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,qBACa,OAAQ,SAAQ,gBAAgB;CAAG;AAEhD,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,UAAU,EAAE,OAAO,CAAC;KACpB;CACD"}
@@ -4,33 +4,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- import { LitElement, html } from 'lit';
8
- import { property } from 'lit/decorators.js';
9
7
  import { guardedCustomElement } from '../utils/guarded-custom-element';
10
- import { styles } from './sds-text.styles';
11
- let SDSText = class SDSText extends LitElement {
12
- constructor() {
13
- super(...arguments);
14
- // Reactive Props
15
- this.size = 'md';
16
- this.strong = false;
17
- this.tall = false;
18
- }
19
- render() {
20
- return html `<p><slot></slot></p>`;
21
- }
8
+ import { SDSTextComponent } from './sds-text.component';
9
+ let SDSText = class SDSText extends SDSTextComponent {
22
10
  };
23
- // Styling
24
- SDSText.styles = [styles];
25
- __decorate([
26
- property({ type: String, reflect: true })
27
- ], SDSText.prototype, "size", void 0);
28
- __decorate([
29
- property({ type: Boolean, reflect: true })
30
- ], SDSText.prototype, "strong", void 0);
31
- __decorate([
32
- property({ type: Boolean, reflect: true })
33
- ], SDSText.prototype, "tall", void 0);
34
11
  SDSText = __decorate([
35
12
  guardedCustomElement('sds-text')
36
13
  ], SDSText);
@@ -1 +1 @@
1
- {"version":3,"file":"sds-text.js","sourceRoot":"","sources":["../../src/sds-text/sds-text.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAYpC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,UAAU;IAAhC;;QAIN,iBAAiB;QAC0B,SAAI,GAAS,IAAI,CAAC;QACjB,WAAM,GAAY,KAAK,CAAC;QACxB,SAAI,GAAY,KAAK,CAAC;IAKnE,CAAC;IAHS,MAAM;QACd,OAAO,IAAI,CAAA,sBAAsB,CAAC;IACnC,CAAC;;AAVD,UAAU;AACM,cAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAGS;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAAmB;AACjB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uCAAyB;AACxB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCAAuB;AAPtD,OAAO;IADnB,oBAAoB,CAAC,UAAU,CAAC;GACpB,OAAO,CAYnB","sourcesContent":["import { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { guardedCustomElement } from '../utils/guarded-custom-element';\nimport { styles } from './sds-text.styles';\nimport { SDS_SIZES } from '../types';\n\ntype Size = SDS_SIZES;\n\nexport interface SDSTextProps {\n\tsize?: Size;\n\tstrong?: boolean;\n\ttall?: boolean;\n}\n\n@guardedCustomElement('sds-text')\nexport class SDSText extends LitElement {\n\t// Styling\n\tstatic override styles = [styles];\n\n\t// Reactive Props\n\t@property({ type: String, reflect: true }) size: Size = 'md';\n\t@property({ type: Boolean, reflect: true }) strong: boolean = false;\n\t@property({ type: Boolean, reflect: true }) tall: boolean = false;\n\n\toverride render() {\n\t\treturn html`<p><slot></slot></p>`;\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sds-text': SDSText;\n\t}\n}\n"]}
1
+ {"version":3,"file":"sds-text.js","sourceRoot":"","sources":["../../src/sds-text/sds-text.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGjD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,gBAAgB;CAAG,CAAA;AAAnC,OAAO;IADnB,oBAAoB,CAAC,UAAU,CAAC;GACpB,OAAO,CAA4B","sourcesContent":["import { guardedCustomElement } from '../utils/guarded-custom-element';\nimport { SDSTextComponent } from './sds-text.component';\n\n@guardedCustomElement('sds-text')\nexport class SDSText extends SDSTextComponent {}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sds-text': SDSText;\n\t}\n}\n"]}