@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.
- package/dist/sds-button/sds-button.component.d.ts +41 -0
- package/dist/sds-button/sds-button.component.d.ts.map +1 -0
- package/dist/sds-button/sds-button.component.js +155 -0
- package/dist/sds-button/sds-button.component.js.map +1 -0
- package/dist/sds-button/sds-button.d.ts +2 -39
- package/dist/sds-button/sds-button.d.ts.map +1 -1
- package/dist/sds-button/sds-button.js +2 -147
- package/dist/sds-button/sds-button.js.map +1 -1
- package/dist/sds-chip/sds-chip.d.ts +2 -0
- package/dist/sds-chip/sds-chip.d.ts.map +1 -1
- package/dist/sds-chip/sds-chip.js +14 -3
- package/dist/sds-chip/sds-chip.js.map +1 -1
- package/dist/sds-heading/sds-heading.component.d.ts +15 -0
- package/dist/sds-heading/sds-heading.component.d.ts.map +1 -0
- package/dist/sds-heading/sds-heading.component.js +53 -0
- package/dist/sds-heading/sds-heading.component.js.map +1 -0
- package/dist/sds-heading/sds-heading.d.ts +2 -13
- package/dist/sds-heading/sds-heading.d.ts.map +1 -1
- package/dist/sds-heading/sds-heading.js +2 -45
- package/dist/sds-heading/sds-heading.js.map +1 -1
- package/dist/sds-icon/sds-icon.component.d.ts +22 -0
- package/dist/sds-icon/sds-icon.component.d.ts.map +1 -0
- package/dist/sds-icon/sds-icon.component.js +81 -0
- package/dist/sds-icon/sds-icon.component.js.map +1 -0
- package/dist/sds-icon/sds-icon.d.ts +2 -20
- package/dist/sds-icon/sds-icon.d.ts.map +1 -1
- package/dist/sds-icon/sds-icon.js +3 -75
- package/dist/sds-icon/sds-icon.js.map +1 -1
- package/dist/sds-notification/sds-notification.component.d.ts +18 -0
- package/dist/sds-notification/sds-notification.component.d.ts.map +1 -0
- package/dist/sds-notification/sds-notification.component.js +71 -0
- package/dist/sds-notification/sds-notification.component.js.map +1 -0
- package/dist/sds-notification/sds-notification.d.ts +2 -14
- package/dist/sds-notification/sds-notification.d.ts.map +1 -1
- package/dist/sds-notification/sds-notification.js +2 -57
- package/dist/sds-notification/sds-notification.js.map +1 -1
- package/dist/sds-paragraph/sds-paragraph.component.d.ts +12 -0
- package/dist/sds-paragraph/sds-paragraph.component.d.ts.map +1 -0
- package/dist/{sds-tag/sds-tag.js → sds-paragraph/sds-paragraph.component.js} +17 -18
- package/dist/sds-paragraph/sds-paragraph.component.js.map +1 -0
- package/dist/sds-paragraph/sds-paragraph.d.ts +2 -5
- package/dist/sds-paragraph/sds-paragraph.d.ts.map +1 -1
- package/dist/sds-paragraph/sds-paragraph.js +2 -25
- package/dist/sds-paragraph/sds-paragraph.js.map +1 -1
- package/dist/sheriff-web-components.js +646 -554
- package/package.json +1 -1
- package/dist/react-wrappers/SDSAlertWrapper.d.ts +0 -5
- package/dist/react-wrappers/SDSAlertWrapper.d.ts.map +0 -1
- package/dist/react-wrappers/SDSAlertWrapper.js +0 -12
- package/dist/react-wrappers/SDSAlertWrapper.js.map +0 -1
- package/dist/react-wrappers/SDSCardWrapper.d.ts +0 -3
- package/dist/react-wrappers/SDSCardWrapper.d.ts.map +0 -1
- package/dist/react-wrappers/SDSCardWrapper.js +0 -10
- package/dist/react-wrappers/SDSCardWrapper.js.map +0 -1
- package/dist/react-wrappers/SDSTagWrapper.d.ts +0 -3
- package/dist/react-wrappers/SDSTagWrapper.d.ts.map +0 -1
- package/dist/react-wrappers/SDSTagWrapper.js +0 -10
- package/dist/react-wrappers/SDSTagWrapper.js.map +0 -1
- package/dist/sds-alert/sds-alert.d.ts +0 -29
- package/dist/sds-alert/sds-alert.d.ts.map +0 -1
- package/dist/sds-alert/sds-alert.js +0 -70
- package/dist/sds-alert/sds-alert.js.map +0 -1
- package/dist/sds-alert/sds-alert.styles.d.ts +0 -2
- package/dist/sds-alert/sds-alert.styles.d.ts.map +0 -1
- package/dist/sds-alert/sds-alert.styles.js +0 -153
- package/dist/sds-alert/sds-alert.styles.js.map +0 -1
- package/dist/sds-card/sds-card.d.ts +0 -18
- package/dist/sds-card/sds-card.d.ts.map +0 -1
- package/dist/sds-card/sds-card.js +0 -58
- package/dist/sds-card/sds-card.js.map +0 -1
- package/dist/sds-card/sds-card.styles.d.ts +0 -2
- package/dist/sds-card/sds-card.styles.d.ts.map +0 -1
- package/dist/sds-card/sds-card.styles.js +0 -124
- package/dist/sds-card/sds-card.styles.js.map +0 -1
- package/dist/sds-icon/sds-icon.system.d.ts +0 -6
- package/dist/sds-icon/sds-icon.system.d.ts.map +0 -1
- package/dist/sds-icon/sds-icon.system.js +0 -24
- package/dist/sds-icon/sds-icon.system.js.map +0 -1
- package/dist/sds-tag/sds-tag.d.ts +0 -18
- package/dist/sds-tag/sds-tag.d.ts.map +0 -1
- package/dist/sds-tag/sds-tag.js.map +0 -1
- package/dist/sds-tag/sds-tag.styles.d.ts +0 -2
- package/dist/sds-tag/sds-tag.styles.d.ts.map +0 -1
- package/dist/sds-tag/sds-tag.styles.js +0 -64
- package/dist/sds-tag/sds-tag.styles.js.map +0 -1
- package/dist/types.d.ts +0 -5
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/utils/slot-validator.d.ts +0 -2
- package/dist/utils/slot-validator.d.ts.map +0 -1
- package/dist/utils/slot-validator.js +0 -24
- 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 {
|
|
11
|
-
|
|
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
|
-
|
|
14
|
+
// Reactive Props
|
|
15
|
+
this.size = 'xl';
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
const
|
|
19
|
-
'sds-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
</span>`;
|
|
24
|
+
const classes = classMap(styleClasses);
|
|
25
|
+
return html `<p class=${classes}><slot></slot></p>`;
|
|
24
26
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
+
}
|
|
28
|
+
// Styling
|
|
29
|
+
SDSParagraphComponent.styles = [styles];
|
|
27
30
|
__decorate([
|
|
28
|
-
property({ type: String
|
|
29
|
-
],
|
|
30
|
-
|
|
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 {
|
|
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
|
|
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":"
|
|
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 {
|
|
12
|
-
let SDSParagraph = class SDSParagraph extends
|
|
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,
|
|
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"]}
|