@politiet/sheriff-web-components 1.3.5 → 1.3.7

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 (93) hide show
  1. package/dist/sds-button/sds-button.component.d.ts +41 -0
  2. package/dist/sds-button/sds-button.component.d.ts.map +1 -0
  3. package/dist/sds-button/sds-button.component.js +155 -0
  4. package/dist/sds-button/sds-button.component.js.map +1 -0
  5. package/dist/sds-button/sds-button.d.ts +2 -39
  6. package/dist/sds-button/sds-button.d.ts.map +1 -1
  7. package/dist/sds-button/sds-button.js +2 -147
  8. package/dist/sds-button/sds-button.js.map +1 -1
  9. package/dist/sds-chip/sds-chip.d.ts +2 -0
  10. package/dist/sds-chip/sds-chip.d.ts.map +1 -1
  11. package/dist/sds-chip/sds-chip.js +14 -3
  12. package/dist/sds-chip/sds-chip.js.map +1 -1
  13. package/dist/sds-heading/sds-heading.component.d.ts +15 -0
  14. package/dist/sds-heading/sds-heading.component.d.ts.map +1 -0
  15. package/dist/sds-heading/sds-heading.component.js +53 -0
  16. package/dist/sds-heading/sds-heading.component.js.map +1 -0
  17. package/dist/sds-heading/sds-heading.d.ts +2 -13
  18. package/dist/sds-heading/sds-heading.d.ts.map +1 -1
  19. package/dist/sds-heading/sds-heading.js +2 -45
  20. package/dist/sds-heading/sds-heading.js.map +1 -1
  21. package/dist/sds-icon/sds-icon.component.d.ts +22 -0
  22. package/dist/sds-icon/sds-icon.component.d.ts.map +1 -0
  23. package/dist/sds-icon/sds-icon.component.js +81 -0
  24. package/dist/sds-icon/sds-icon.component.js.map +1 -0
  25. package/dist/sds-icon/sds-icon.d.ts +2 -20
  26. package/dist/sds-icon/sds-icon.d.ts.map +1 -1
  27. package/dist/sds-icon/sds-icon.js +3 -75
  28. package/dist/sds-icon/sds-icon.js.map +1 -1
  29. package/dist/sds-notification/sds-notification.component.d.ts +18 -0
  30. package/dist/sds-notification/sds-notification.component.d.ts.map +1 -0
  31. package/dist/sds-notification/sds-notification.component.js +71 -0
  32. package/dist/sds-notification/sds-notification.component.js.map +1 -0
  33. package/dist/sds-notification/sds-notification.d.ts +2 -14
  34. package/dist/sds-notification/sds-notification.d.ts.map +1 -1
  35. package/dist/sds-notification/sds-notification.js +2 -57
  36. package/dist/sds-notification/sds-notification.js.map +1 -1
  37. package/dist/sds-paragraph/sds-paragraph.component.d.ts +12 -0
  38. package/dist/sds-paragraph/sds-paragraph.component.d.ts.map +1 -0
  39. package/dist/{sds-tag/sds-tag.js → sds-paragraph/sds-paragraph.component.js} +17 -18
  40. package/dist/sds-paragraph/sds-paragraph.component.js.map +1 -0
  41. package/dist/sds-paragraph/sds-paragraph.d.ts +2 -5
  42. package/dist/sds-paragraph/sds-paragraph.d.ts.map +1 -1
  43. package/dist/sds-paragraph/sds-paragraph.js +2 -25
  44. package/dist/sds-paragraph/sds-paragraph.js.map +1 -1
  45. package/dist/sheriff-web-components.js +646 -554
  46. package/package.json +1 -1
  47. package/dist/react-wrappers/SDSAlertWrapper.d.ts +0 -5
  48. package/dist/react-wrappers/SDSAlertWrapper.d.ts.map +0 -1
  49. package/dist/react-wrappers/SDSAlertWrapper.js +0 -12
  50. package/dist/react-wrappers/SDSAlertWrapper.js.map +0 -1
  51. package/dist/react-wrappers/SDSCardWrapper.d.ts +0 -3
  52. package/dist/react-wrappers/SDSCardWrapper.d.ts.map +0 -1
  53. package/dist/react-wrappers/SDSCardWrapper.js +0 -10
  54. package/dist/react-wrappers/SDSCardWrapper.js.map +0 -1
  55. package/dist/react-wrappers/SDSTagWrapper.d.ts +0 -3
  56. package/dist/react-wrappers/SDSTagWrapper.d.ts.map +0 -1
  57. package/dist/react-wrappers/SDSTagWrapper.js +0 -10
  58. package/dist/react-wrappers/SDSTagWrapper.js.map +0 -1
  59. package/dist/sds-alert/sds-alert.d.ts +0 -29
  60. package/dist/sds-alert/sds-alert.d.ts.map +0 -1
  61. package/dist/sds-alert/sds-alert.js +0 -70
  62. package/dist/sds-alert/sds-alert.js.map +0 -1
  63. package/dist/sds-alert/sds-alert.styles.d.ts +0 -2
  64. package/dist/sds-alert/sds-alert.styles.d.ts.map +0 -1
  65. package/dist/sds-alert/sds-alert.styles.js +0 -153
  66. package/dist/sds-alert/sds-alert.styles.js.map +0 -1
  67. package/dist/sds-card/sds-card.d.ts +0 -18
  68. package/dist/sds-card/sds-card.d.ts.map +0 -1
  69. package/dist/sds-card/sds-card.js +0 -58
  70. package/dist/sds-card/sds-card.js.map +0 -1
  71. package/dist/sds-card/sds-card.styles.d.ts +0 -2
  72. package/dist/sds-card/sds-card.styles.d.ts.map +0 -1
  73. package/dist/sds-card/sds-card.styles.js +0 -124
  74. package/dist/sds-card/sds-card.styles.js.map +0 -1
  75. package/dist/sds-icon/sds-icon.system.d.ts +0 -6
  76. package/dist/sds-icon/sds-icon.system.d.ts.map +0 -1
  77. package/dist/sds-icon/sds-icon.system.js +0 -24
  78. package/dist/sds-icon/sds-icon.system.js.map +0 -1
  79. package/dist/sds-tag/sds-tag.d.ts +0 -18
  80. package/dist/sds-tag/sds-tag.d.ts.map +0 -1
  81. package/dist/sds-tag/sds-tag.js.map +0 -1
  82. package/dist/sds-tag/sds-tag.styles.d.ts +0 -2
  83. package/dist/sds-tag/sds-tag.styles.d.ts.map +0 -1
  84. package/dist/sds-tag/sds-tag.styles.js +0 -64
  85. package/dist/sds-tag/sds-tag.styles.js.map +0 -1
  86. package/dist/types.d.ts +0 -5
  87. package/dist/types.d.ts.map +0 -1
  88. package/dist/types.js +0 -2
  89. package/dist/types.js.map +0 -1
  90. package/dist/utils/slot-validator.d.ts +0 -2
  91. package/dist/utils/slot-validator.d.ts.map +0 -1
  92. package/dist/utils/slot-validator.js +0 -24
  93. package/dist/utils/slot-validator.js.map +0 -1
@@ -7,28 +7,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  import { LitElement, html } from 'lit';
8
8
  import { property } from 'lit/decorators.js';
9
9
  import { classMap } from 'lit/directives/class-map.js';
10
- import { guardedCustomElement } from '../utils/guarded-custom-element';
11
- import { styles } from './sds-tag.styles';
12
- let SDSTag = class SDSTag extends LitElement {
10
+ import { styles } from './sds-paragraph.styles';
11
+ export class SDSParagraphComponent extends LitElement {
13
12
  constructor() {
14
13
  super(...arguments);
15
- this.size = 'md';
14
+ // Reactive Props
15
+ this.size = 'xl';
16
16
  }
17
17
  render() {
18
- const tagClasses = {
19
- 'sds-tag': true,
18
+ const styleClasses = {
19
+ 'sds-paragraph': true,
20
+ 'sds-paragraph--xl': this.size === 'xl',
21
+ 'sds-paragraph--l': this.size === 'l',
22
+ 'sds-paragraph--m': this.size === 'm',
20
23
  };
21
- return html `<span class="${classMap(tagClasses)}">
22
- <slot></slot>
23
- </span>`;
24
+ const classes = classMap(styleClasses);
25
+ return html `<p class=${classes}><slot></slot></p>`;
24
26
  }
25
- };
26
- SDSTag.styles = [styles];
27
+ }
28
+ // Styling
29
+ SDSParagraphComponent.styles = [styles];
27
30
  __decorate([
28
- property({ type: String, reflect: true })
29
- ], SDSTag.prototype, "size", void 0);
30
- SDSTag = __decorate([
31
- guardedCustomElement('sds-tag')
32
- ], SDSTag);
33
- export { SDSTag };
34
- //# sourceMappingURL=sds-tag.js.map
31
+ property({ type: String })
32
+ ], SDSParagraphComponent.prototype, "size", void 0);
33
+ //# sourceMappingURL=sds-paragraph.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sds-paragraph.component.js","sourceRoot":"","sources":["../../src/sds-paragraph/sds-paragraph.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,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAQhD,MAAM,OAAO,qBAAsB,SAAQ,UAAU;IAArD;;QAIC,iBAAiB;QACW,SAAI,GAAS,IAAI,CAAC;IAc/C,CAAC;IAZS,MAAM;QACd,MAAM,YAAY,GAAG;YACpB,eAAe,EAAE,IAAI;YACrB,mBAAmB,EAAE,IAAI,CAAC,IAAI,KAAK,IAAI;YACvC,kBAAkB,EAAE,IAAI,CAAC,IAAI,KAAK,GAAG;YACrC,kBAAkB,EAAE,IAAI,CAAC,IAAI,KAAK,GAAG;SACrC,CAAC;QAEF,MAAM,OAAO,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;QAEvC,OAAO,IAAI,CAAA,YAAY,OAAO,oBAAoB,CAAC;IACpD,CAAC;;AAjBD,UAAU;AACM,4BAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAGN;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAmB","sourcesContent":["import { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './sds-paragraph.styles';\n\ntype Size = 'xl' | 'l' | 'm';\n\nexport interface SDSParagraphProps {\n\tsize?: Size;\n}\n\nexport class SDSParagraphComponent extends LitElement {\n\t// Styling\n\tstatic override styles = [styles];\n\n\t// Reactive Props\n\t@property({ type: String }) size: Size = 'xl';\n\n\toverride render() {\n\t\tconst styleClasses = {\n\t\t\t'sds-paragraph': true,\n\t\t\t'sds-paragraph--xl': this.size === 'xl',\n\t\t\t'sds-paragraph--l': this.size === 'l',\n\t\t\t'sds-paragraph--m': this.size === 'm',\n\t\t};\n\n\t\tconst classes = classMap(styleClasses);\n\n\t\treturn html`<p class=${classes}><slot></slot></p>`;\n\t}\n}\n"]}
@@ -1,12 +1,9 @@
1
- import { LitElement } from 'lit';
1
+ import { SDSParagraphComponent } from './sds-paragraph.component';
2
2
  type Size = 'xl' | 'l' | 'm';
3
3
  export interface SDSParagraphProps {
4
4
  size?: Size;
5
5
  }
6
- export declare class SDSParagraph extends LitElement {
7
- static styles: import("lit").CSSResult[];
8
- size: Size;
9
- render(): import("lit-html").TemplateResult<1>;
6
+ export declare class SDSParagraph extends SDSParagraphComponent {
10
7
  }
11
8
  declare global {
12
9
  interface HTMLElementTagNameMap {
@@ -1 +1 @@
1
- {"version":3,"file":"sds-paragraph.d.ts","sourceRoot":"","sources":["../../src/sds-paragraph/sds-paragraph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,KAAK,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IACjC,IAAI,CAAC,EAAE,IAAI,CAAC;CACZ;AAED,qBACa,YAAa,SAAQ,UAAU;IAE3C,OAAgB,MAAM,4BAAY;IAGN,IAAI,EAAE,IAAI,CAAQ;IAErC,MAAM;CAYf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,eAAe,EAAE,YAAY,CAAC;KAC9B;CACD"}
1
+ {"version":3,"file":"sds-paragraph.d.ts","sourceRoot":"","sources":["../../src/sds-paragraph/sds-paragraph.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,KAAK,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7B,MAAM,WAAW,iBAAiB;IACjC,IAAI,CAAC,EAAE,IAAI,CAAC;CACZ;AAED,qBACa,YAAa,SAAQ,qBAAqB;CAAG;AAE1D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,eAAe,EAAE,YAAY,CAAC;KAC9B;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
- import { classMap } from 'lit/directives/class-map.js';
10
7
  import { guardedCustomElement } from '../utils/guarded-custom-element';
11
- import { styles } from './sds-paragraph.styles';
12
- let SDSParagraph = class SDSParagraph extends LitElement {
13
- constructor() {
14
- super(...arguments);
15
- // Reactive Props
16
- this.size = 'xl';
17
- }
18
- render() {
19
- const styleClasses = {
20
- 'sds-paragraph': true,
21
- 'sds-paragraph--xl': this.size === 'xl',
22
- 'sds-paragraph--l': this.size === 'l',
23
- 'sds-paragraph--m': this.size === 'm',
24
- };
25
- const classes = classMap(styleClasses);
26
- return html `<p class=${classes}><slot></slot></p>`;
27
- }
8
+ import { SDSParagraphComponent } from './sds-paragraph.component';
9
+ let SDSParagraph = class SDSParagraph extends SDSParagraphComponent {
28
10
  };
29
- // Styling
30
- SDSParagraph.styles = [styles];
31
- __decorate([
32
- property({ type: String })
33
- ], SDSParagraph.prototype, "size", void 0);
34
11
  SDSParagraph = __decorate([
35
12
  guardedCustomElement('sds-paragraph')
36
13
  ], SDSParagraph);
@@ -1 +1 @@
1
- {"version":3,"file":"sds-paragraph.js","sourceRoot":"","sources":["../../src/sds-paragraph/sds-paragraph.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AASzC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAIN,iBAAiB;QACW,SAAI,GAAS,IAAI,CAAC;IAc/C,CAAC;IAZS,MAAM;QACd,MAAM,YAAY,GAAG;YACpB,eAAe,EAAE,IAAI;YACrB,mBAAmB,EAAE,IAAI,CAAC,IAAI,KAAK,IAAI;YACvC,kBAAkB,EAAE,IAAI,CAAC,IAAI,KAAK,GAAG;YACrC,kBAAkB,EAAE,IAAI,CAAC,IAAI,KAAK,GAAG;SACrC,CAAC;QAEF,MAAM,OAAO,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;QAEvC,OAAO,IAAI,CAAA,YAAY,OAAO,oBAAoB,CAAC;IACpD,CAAC;;AAjBD,UAAU;AACM,mBAAM,GAAG,CAAC,MAAM,CAAC,AAAX,CAAY;AAGN;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CAAmB;AALlC,YAAY;IADxB,oBAAoB,CAAC,eAAe,CAAC;GACzB,YAAY,CAmBxB","sourcesContent":["import { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { guardedCustomElement } from '../utils/guarded-custom-element';\nimport { styles } from './sds-paragraph.styles';\n\ntype Size = 'xl' | 'l' | 'm';\n\nexport interface SDSParagraphProps {\n\tsize?: Size;\n}\n\n@guardedCustomElement('sds-paragraph')\nexport class SDSParagraph extends LitElement {\n\t// Styling\n\tstatic override styles = [styles];\n\n\t// Reactive Props\n\t@property({ type: String }) size: Size = 'xl';\n\n\toverride render() {\n\t\tconst styleClasses = {\n\t\t\t'sds-paragraph': true,\n\t\t\t'sds-paragraph--xl': this.size === 'xl',\n\t\t\t'sds-paragraph--l': this.size === 'l',\n\t\t\t'sds-paragraph--m': this.size === 'm',\n\t\t};\n\n\t\tconst classes = classMap(styleClasses);\n\n\t\treturn html`<p class=${classes}><slot></slot></p>`;\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sds-paragraph': SDSParagraph;\n\t}\n}\n"]}
1
+ {"version":3,"file":"sds-paragraph.js","sourceRoot":"","sources":["../../src/sds-paragraph/sds-paragraph.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAS3D,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,qBAAqB;CAAG,CAAA;AAA7C,YAAY;IADxB,oBAAoB,CAAC,eAAe,CAAC;GACzB,YAAY,CAAiC","sourcesContent":["import { guardedCustomElement } from '../utils/guarded-custom-element';\nimport { SDSParagraphComponent } from './sds-paragraph.component';\n\ntype Size = 'xl' | 'l' | 'm';\n\nexport interface SDSParagraphProps {\n\tsize?: Size;\n}\n\n@guardedCustomElement('sds-paragraph')\nexport class SDSParagraph extends SDSParagraphComponent {}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'sds-paragraph': SDSParagraph;\n\t}\n}\n"]}