@proximus/lavender-paragraph 2.0.0-alpha.21 → 2.0.0-alpha.210

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.
@@ -1,7 +1,7 @@
1
1
  import { PxElement } from '@proximus/lavender-common';
2
2
  export declare class Paragraph extends PxElement<HTMLParagraphElement> {
3
+ protected static readonly template: HTMLTemplateElement;
3
4
  static nativeName: string;
4
- private template;
5
5
  constructor();
6
6
  static get observedAttributes(): string[];
7
7
  attributeChangedCallback(attrName: string, oldValue: string, newValue: string): void;
@@ -12,24 +12,24 @@ export declare class Paragraph extends PxElement<HTMLParagraphElement> {
12
12
  attrName: string;
13
13
  breakpoint: string;
14
14
  };
15
- get variant(): string;
16
- set variant(value: string);
17
- get color(): string;
18
- set color(value: string);
19
- get fontSize(): string;
20
- set fontSize(value: string);
21
- get fontWeight(): string;
22
- set fontWeight(value: string);
23
- get textAlign(): string;
24
- set textAlign(value: string);
25
- get textAlignMobile(): string;
26
- set textAlignMobile(value: string);
27
- get textAlignTablet(): string;
28
- set textAlignTablet(value: string);
29
- get textAlignLaptop(): string;
30
- set textAlignLaptop(value: string);
31
- get inverted(): string;
32
- set inverted(value: string);
33
- get disabled(): string;
34
- set disabled(value: string);
15
+ get variant(): string | null;
16
+ set variant(value: string | null);
17
+ get color(): string | null;
18
+ set color(value: string | null);
19
+ get fontSize(): string | null;
20
+ set fontSize(value: string | null);
21
+ get fontWeight(): string | null;
22
+ set fontWeight(value: string | null);
23
+ get textAlign(): string | null;
24
+ set textAlign(value: string | null);
25
+ get textAlignMobile(): string | null;
26
+ set textAlignMobile(value: string | null);
27
+ get textAlignTablet(): string | null;
28
+ set textAlignTablet(value: string | null);
29
+ get textAlignLaptop(): string | null;
30
+ set textAlignLaptop(value: string | null);
31
+ get inverted(): boolean;
32
+ set inverted(value: boolean);
33
+ get disabled(): boolean;
34
+ set disabled(value: boolean);
35
35
  }
@@ -0,0 +1,242 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/Paragraph.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "",
12
+ "name": "Paragraph",
13
+ "members": [
14
+ {
15
+ "kind": "field",
16
+ "name": "template",
17
+ "privacy": "protected",
18
+ "static": true,
19
+ "readonly": true
20
+ },
21
+ {
22
+ "kind": "field",
23
+ "name": "nativeName",
24
+ "type": {
25
+ "text": "string"
26
+ },
27
+ "static": true,
28
+ "default": "'p'"
29
+ },
30
+ {
31
+ "kind": "method",
32
+ "name": "toggleClass",
33
+ "parameters": [
34
+ {
35
+ "name": "oldValue",
36
+ "type": {
37
+ "text": "string"
38
+ }
39
+ },
40
+ {
41
+ "name": "newValue",
42
+ "type": {
43
+ "text": "string"
44
+ }
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "kind": "method",
50
+ "name": "updateVariant",
51
+ "parameters": [
52
+ {
53
+ "name": "attrName",
54
+ "type": {
55
+ "text": "string"
56
+ }
57
+ },
58
+ {
59
+ "name": "oldValue",
60
+ "type": {
61
+ "text": "string"
62
+ }
63
+ },
64
+ {
65
+ "name": "newValue",
66
+ "type": {
67
+ "text": "string"
68
+ }
69
+ },
70
+ {
71
+ "name": "attrValue",
72
+ "type": {
73
+ "text": "string[]"
74
+ }
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "kind": "method",
80
+ "name": "updateTypography",
81
+ "parameters": [
82
+ {
83
+ "name": "attrName",
84
+ "type": {
85
+ "text": "string"
86
+ }
87
+ },
88
+ {
89
+ "name": "oldValue",
90
+ "type": {
91
+ "text": "string"
92
+ }
93
+ },
94
+ {
95
+ "name": "newValue",
96
+ "type": {
97
+ "text": "string"
98
+ }
99
+ },
100
+ {
101
+ "name": "attrValue",
102
+ "type": {
103
+ "text": "string[]"
104
+ }
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "kind": "method",
110
+ "name": "splitAttrNameFromBreakpoint",
111
+ "parameters": [
112
+ {
113
+ "name": "attrName",
114
+ "type": {
115
+ "text": "string"
116
+ }
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "kind": "field",
122
+ "name": "variant"
123
+ },
124
+ {
125
+ "kind": "field",
126
+ "name": "color"
127
+ },
128
+ {
129
+ "kind": "field",
130
+ "name": "fontSize"
131
+ },
132
+ {
133
+ "kind": "field",
134
+ "name": "fontWeight"
135
+ },
136
+ {
137
+ "kind": "field",
138
+ "name": "textAlign"
139
+ },
140
+ {
141
+ "kind": "field",
142
+ "name": "textAlignMobile"
143
+ },
144
+ {
145
+ "kind": "field",
146
+ "name": "textAlignTablet"
147
+ },
148
+ {
149
+ "kind": "field",
150
+ "name": "textAlignLaptop"
151
+ },
152
+ {
153
+ "kind": "field",
154
+ "name": "inverted"
155
+ },
156
+ {
157
+ "kind": "field",
158
+ "name": "disabled"
159
+ }
160
+ ],
161
+ "attributes": [
162
+ {
163
+ "name": "variant"
164
+ },
165
+ {
166
+ "name": "color"
167
+ },
168
+ {
169
+ "name": "font-size"
170
+ },
171
+ {
172
+ "name": "font-weight"
173
+ },
174
+ {
175
+ "name": "text-align"
176
+ },
177
+ {
178
+ "name": "text-align--mobile"
179
+ },
180
+ {
181
+ "name": "text-align--tablet"
182
+ },
183
+ {
184
+ "name": "text-align--laptop"
185
+ },
186
+ {
187
+ "name": "inverted"
188
+ },
189
+ {
190
+ "name": "disabled"
191
+ }
192
+ ],
193
+ "superclass": {
194
+ "name": "PxElement",
195
+ "package": "@proximus/lavender-common"
196
+ },
197
+ "tagName": "px-p",
198
+ "customElement": true
199
+ }
200
+ ],
201
+ "exports": [
202
+ {
203
+ "kind": "js",
204
+ "name": "Paragraph",
205
+ "declaration": {
206
+ "name": "Paragraph",
207
+ "module": "src/Paragraph.ts"
208
+ }
209
+ },
210
+ {
211
+ "kind": "custom-element-definition",
212
+ "name": "px-p",
213
+ "declaration": {
214
+ "name": "Paragraph",
215
+ "module": "src/Paragraph.ts"
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "kind": "javascript-module",
222
+ "path": "src/index.ts",
223
+ "declarations": [],
224
+ "exports": [
225
+ {
226
+ "kind": "js",
227
+ "name": "*",
228
+ "declaration": {
229
+ "name": "*",
230
+ "module": "src/Paragraph"
231
+ }
232
+ }
233
+ ]
234
+ },
235
+ {
236
+ "kind": "javascript-module",
237
+ "path": "src/paragraph.css",
238
+ "declarations": [],
239
+ "exports": []
240
+ }
241
+ ]
242
+ }
package/dist/index.es.js CHANGED
@@ -1,152 +1,147 @@
1
- import { PxElement as p, textalignValues as g, fontweightValues as f, fontsizeValues as v, colorValues as z, headingValues as c, log as a } from "@proximus/lavender-common";
2
- const m = "p,::slotted(p){font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);font-size:var(--px-text-size-body-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);margin:0}::slotted(p){margin-bottom:var(--px-spacing-xs-mobile)}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-color-text-neutral-inverted)}@media only screen and (max-width: 768px){.text-align-left--mobile{text-align:left}.text-align-center--mobile{text-align:center}.text-align-right--mobile{text-align:right}}@media only screen and (min-width: 768px){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}::slotted(p){margin-bottom:var(--px-spacing-xs-tablet)}.text-align-left--tablet{text-align:left}.text-align-center--tablet{text-align:center}.text-align-right--tablet{text-align:right}}@media only screen and (min-width: 1025px){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}::slotted(p){margin-bottom:var(--px-spacing-xs-laptop)}.text-align-left--laptop{text-align:left}.text-align-center--laptop{text-align:center}.text-align-right--laptop{text-align:right}}@media only screen and (min-width: 90.0625em){::slotted(p){margin-bottom:var(--px-spacing-xs-desktop)}}", b = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{margin:0;font-family:var(--px-font-family);color:var(--heading-color-default, var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile, left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title)}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted, var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-l-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-m-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-base-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-l-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media only screen and (min-width: 768px){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-base-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media only screen and (min-width: 1025px){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop, left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-5xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-4xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-base-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}@media screen and (min-width: 1441px){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop, left)}}", y = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media only screen and (min-width: 48em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}@media only screen and (min-width: 64.0625em){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", d = new CSSStyleSheet(), h = new CSSStyleSheet(), x = new CSSStyleSheet();
3
- d.replaceSync(m);
4
- h.replaceSync(y);
5
- x.replaceSync(b);
6
- const n = class n extends p {
7
- constructor() {
8
- super(h, x, d), this.template = "<p><slot></slot></p>", this.shadowRoot.innerHTML = this.template;
9
- }
10
- static get observedAttributes() {
11
- return [
12
- ...super.observedAttributes,
13
- "variant",
14
- "color",
15
- "font-size",
16
- "font-weight",
17
- "text-align",
18
- "text-align--mobile",
19
- "text-align--tablet",
20
- "text-align--laptop",
21
- "inverted",
22
- "disabled"
23
- ];
24
- }
25
- attributeChangedCallback(t, i, e) {
26
- if (i !== e)
27
- switch (t) {
28
- case "variant":
29
- this.updateVariant(t, i, e, c);
30
- break;
31
- case "color":
32
- this.updateTypography(t, i, e, z);
33
- break;
34
- case "font-size":
35
- this.updateTypography(t, i, e, v);
36
- break;
37
- case "font-weight":
38
- this.updateTypography(t, i, e, f);
39
- break;
40
- case "text-align":
41
- case "text-align--mobile":
42
- case "text-align--tablet":
43
- case "text-align--laptop":
44
- this.updateTypography(t, i, e, g);
45
- break;
46
- case "disabled":
47
- this.color = "state-disabled";
48
- break;
49
- default:
50
- super.attributeChangedCallback(t, i, e);
51
- break;
52
- }
53
- }
54
- toggleClass(t, i) {
55
- t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`), i !== null && i !== "" && i !== "default" && this.$el.classList.toggle(`style-${i}`);
56
- }
57
- updateVariant(t, i, e, o) {
58
- this.checkName(o, e) ? this.toggleClass(i, e) : a(
59
- `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
60
- );
61
- }
62
- updateTypography(t, i, e, o) {
63
- if (!this.checkName(o, e))
64
- a(
65
- `${e} is not an allowed ${t} value for ${this.tagName.toLowerCase()}`
66
- );
67
- else {
68
- const s = this.splitAttrNameFromBreakpoint(t), r = s.breakpoint;
69
- i !== null && i !== "" && this.$el.classList.toggle(
70
- `${s.attrName}-${i}${r}`
71
- ), e !== null && e !== "" && this.$el.classList.toggle(
72
- `${s.attrName}-${e}${r}`
73
- );
74
- }
75
- }
76
- splitAttrNameFromBreakpoint(t) {
77
- let i = "";
78
- if (["--mobile", "--tablet", "--laptop"].some(
79
- (e) => t.includes(e)
80
- )) {
81
- const e = t.split("--");
82
- t = e[0], i = `--${e[1]}`;
83
- }
84
- return { attrName: t, breakpoint: i };
85
- }
86
- get variant() {
87
- return this.getAttribute("variant");
88
- }
89
- set variant(t) {
90
- this.setAttribute("variant", t);
91
- }
92
- get color() {
93
- return this.getAttribute("color");
94
- }
95
- set color(t) {
96
- this.setAttribute("color", t);
97
- }
98
- get fontSize() {
99
- return this.getAttribute("font-size");
100
- }
101
- set fontSize(t) {
102
- this.setAttribute("font-size", t);
103
- }
104
- get fontWeight() {
105
- return this.getAttribute("font-weight");
106
- }
107
- set fontWeight(t) {
108
- this.setAttribute("font-weight", t);
109
- }
110
- get textAlign() {
111
- return this.getAttribute("text-align");
112
- }
113
- set textAlign(t) {
114
- this.setAttribute("text-align", t);
115
- }
116
- get textAlignMobile() {
117
- return this.getAttribute("text-align--mobile");
118
- }
119
- set textAlignMobile(t) {
120
- this.setAttribute("text-align--mobile", t);
121
- }
122
- get textAlignTablet() {
123
- return this.getAttribute("text-align--tablet");
124
- }
125
- set textAlignTablet(t) {
126
- this.setAttribute("text-align--tablet", t);
127
- }
128
- get textAlignLaptop() {
129
- return this.getAttribute("text-align--laptop");
130
- }
131
- set textAlignLaptop(t) {
132
- this.setAttribute("text-align--laptop", t);
133
- }
134
- get inverted() {
135
- return this.getAttribute("inverted");
136
- }
137
- set inverted(t) {
138
- this.setAttribute("inverted", t);
139
- }
140
- get disabled() {
141
- return this.getAttribute("disabled");
142
- }
143
- set disabled(t) {
144
- this.setAttribute("disabled", t);
145
- }
146
- };
147
- n.nativeName = "p";
148
- let l = n;
149
- customElements.get("px-p") || customElements.define("px-p", l);
150
- export {
151
- l as Paragraph
1
+ import { PxElement as e, colorValues as t, createTemplate as n, fontsizeValues as r, fontweightValues as i, headingValues as a, log as o, renderTemplate as s, textalignValues as c } from "@proximus/lavender-common";
2
+ //#region src/paragraph.css?inline
3
+ var l = "p,::slotted(p){font-family:var(--px-font-family);color:var(--px-color-text-neutral-default);font-size:var(--px-text-size-body-m-mobile);font-weight:var(--px-font-weight-body);line-height:var(--px-line-height-ratio-l);margin:0}::slotted(p){margin-bottom:var(--px-spacing-xs-mobile)}.text-align-left{text-align:left}.text-align-center{text-align:center}.text-align-right{text-align:right}:host([inverted]) p,:host([inverted]) ::slotted(p){color:var(--px-color-text-neutral-inverted)}@media screen and (width<=48rem){.text-align-left--mobile{text-align:left}.text-align-center--mobile{text-align:center}.text-align-right--mobile{text-align:right}}@media screen and (width>=48rem){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}::slotted(p){margin-bottom:var(--px-spacing-xs-tablet)}.text-align-left--tablet{text-align:left}.text-align-center--tablet{text-align:center}.text-align-right--tablet{text-align:right}}@media screen and (width>=64.0625rem){p,::slotted(p){font-size:var(--px-text-size-body-m-desktop)}::slotted(p){margin-bottom:var(--px-spacing-xs-laptop)}.text-align-left--laptop{text-align:left}.text-align-center--laptop{text-align:center}.text-align-right--laptop{text-align:right}}@media screen and (width>=90.0625rem){::slotted(p){margin-bottom:var(--px-spacing-xs-desktop)}}", u = "h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{font-family:var(--px-font-family);color:var(--heading-color-default,var(--px-color-text-brand-default));text-align:var(--heading-text-align--mobile,left);font-size:var(--px-text-size-heading-s-mobile);line-height:var(--px-line-height-ratio-l);font-weight:var(--px-font-weight-title);margin:0}::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-mobile)}:host([inverted]) h1,:host([inverted]) .style-title-4xl,:host([inverted]) ::slotted(h1),:host([inverted]) h2,:host([inverted]) .style-title-3xl,:host([inverted]) ::slotted(h2),:host([inverted]) h3,:host([inverted]) .style-title-2xl,:host([inverted]) ::slotted(h3),:host([inverted]) h4,:host([inverted]) .style-title-xl,:host([inverted]) ::slotted(h4),:host([inverted]) h5,:host([inverted]) .style-title-l,:host([inverted]) ::slotted(h5),:host([inverted]) h6,:host([inverted]) .style-title-m,:host([inverted]) ::slotted(h6),:host([inverted]) .style-title-s,:host([inverted]) .style-subtitle{color:var(--heading-color-inverted,var(--px-color-text-brand-inverted))}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-mobile);line-height:var(--px-line-height-ratio-s);font-weight:var(--px-font-weight-title-large)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-mobile);line-height:var(--px-line-height-ratio-s)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-mobile)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-mobile)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-mobile)}.style-subtitle{font-size:var(--px-text-size-heading-xl-mobile);font-weight:var(--px-font-weight-subtitle)}.style-title-s{font-size:var(--px-text-size-heading-s-mobile)}@media screen and (width>=48rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-tablet)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--tablet,left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-tablet)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-tablet)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-tablet)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-tablet)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-tablet)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-tablet)}.style-title-s{font-size:var(--px-text-size-heading-s-tablet)}.style-subtitle{font-size:var(--px-text-size-heading-xl-tablet)}}@media screen and (width>=64.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-laptop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--laptop,left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-laptop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-laptop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-laptop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-laptop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-laptop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-laptop)}.style-title-s{font-size:var(--px-text-size-heading-s-laptop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-laptop)}}@media screen and (width>=90.0625rem){::slotted(h1),::slotted(h2),::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-bottom:var(--px-spacing-heading-to-content-desktop)}h1,.style-title-4xl,::slotted(h1),h2,.style-title-3xl,::slotted(h2),h3,.style-title-2xl,::slotted(h3),h4,.style-title-xl,::slotted(h4),h5,.style-title-l,::slotted(h5),h6,.style-title-m,::slotted(h6),.style-title-s,.style-subtitle{text-align:var(--heading-text-align--desktop,left)}h1,.style-title-4xl,::slotted(h1){font-size:var(--px-text-size-heading-4xl-desktop)}h2,.style-title-3xl,::slotted(h2){font-size:var(--px-text-size-heading-3xl-desktop)}h3,.style-title-2xl,::slotted(h3){font-size:var(--px-text-size-heading-2xl-desktop)}h4,.style-title-xl,::slotted(h4){font-size:var(--px-text-size-heading-xl-desktop)}h5,.style-title-l,::slotted(h5){font-size:var(--px-text-size-heading-l-desktop)}h6,.style-title-m,::slotted(h6){font-size:var(--px-text-size-heading-m-desktop)}.style-title-s{font-size:var(--px-text-size-heading-s-desktop)}.style-subtitle{font-size:var(--px-text-size-heading-xl-desktop)}}", d = ".color-inherit{color:inherit!important}.color-brand{color:var(--px-color-text-brand-default)!important}.color-neutral{color:var(--px-color-text-neutral-default)!important}.color-dimmed{color:var(--px-color-text-dimmed-default)!important}.color-purpose-success{color:var(--px-color-text-purpose-success-default)!important}.color-purpose-warning{color:var(--px-color-text-purpose-warning-default)!important}.color-purpose-error{color:var(--px-color-text-purpose-error-default)!important}.color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-default)!important}.color-purpose-promo{color:var(--px-color-text-purpose-promo-default)!important}.color-state-hover{color:var(--px-color-text-state-hover-default)!important}.color-state-active{color:var(--px-color-text-state-active-default)!important}.color-state-disabled{color:var(--px-color-text-state-disabled-default)!important}:host([inverted]) .color-inherit{color:inherit!important}:host([inverted]) .color-brand{color:var(--px-color-text-brand-inverted)!important}:host([inverted]) .color-neutral{color:var(--px-color-text-neutral-inverted)!important}:host([inverted]) .color-dimmed{color:var(--px-color-text-dimmed-inverted)!important}:host([inverted]) .color-purpose-success{color:var(--px-color-text-purpose-success-inverted)!important}:host([inverted]) .color-purpose-warning{color:var(--px-color-text-purpose-warning-inverted)!important}:host([inverted]) .color-purpose-error{color:var(--px-color-text-purpose-error-inverted)!important}:host([inverted]) .color-purpose-unlimited{color:var(--px-color-text-purpose-unlimited-inverted)!important}:host([inverted]) .color-purpose-promo{color:var(--px-color-text-purpose-promo-inverted)!important}:host([inverted]) .color-state-hover{color:var(--px-color-text-state-hover-inverted)!important}:host([inverted]) .color-state-active{color:var(--px-color-text-state-active-inverted)!important}:host([inverted]) .color-state-disabled{color:var(--px-color-text-state-disabled-inverted)!important}.font-size-inherit{font-size:inherit;line-height:inherit}.font-size-body-l{font-size:var(--px-text-size-body-l-mobile)}.font-size-body-m{font-size:var(--px-text-size-body-m-mobile)}.font-size-body-s{font-size:var(--px-text-size-body-s-mobile)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-mobile)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-mobile)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-mobile)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-mobile)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-mobile)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-mobile)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-mobile)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-mobile)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-mobile)}.font-size-heading-3xl,.font-size-heading-4xl,.font-size-heading-5xl{line-height:var(--px-line-height-ratio-s)}.font-size-link-m{font-size:var(--px-text-size-link-m-mobile)}.font-size-link-s{font-size:var(--px-text-size-link-s-mobile)}@media screen and (width>=48rem){.font-size-body-l{font-size:var(--px-text-size-body-l-tablet)}.font-size-body-m{font-size:var(--px-text-size-body-m-tablet)}.font-size-body-s{font-size:var(--px-text-size-body-s-tablet)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-tablet)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-tablet)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-tablet)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-tablet)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-tablet)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-tablet)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-tablet)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-tablet)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-tablet)}.font-size-link-m{font-size:var(--px-text-size-link-m-tablet)}.font-size-link-s{font-size:var(--px-text-size-link-s-tablet)}}@media screen and (width>=64.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-laptop)}.font-size-body-m{font-size:var(--px-text-size-body-m-laptop)}.font-size-body-s{font-size:var(--px-text-size-body-s-laptop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-laptop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-laptop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-laptop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-laptop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-laptop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-laptop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-laptop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-laptop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-laptop)}.font-size-link-m{font-size:var(--px-text-size-link-m-laptop)}.font-size-link-s{font-size:var(--px-text-size-link-s-laptop)}}@media screen and (width>=90.0625rem){.font-size-body-l{font-size:var(--px-text-size-body-l-desktop)}.font-size-body-m{font-size:var(--px-text-size-body-m-desktop)}.font-size-body-s{font-size:var(--px-text-size-body-s-desktop)}.font-size-body-xs{font-size:var(--px-text-size-body-xs-desktop)}.font-size-heading-5xl{font-size:var(--px-text-size-heading-5xl-desktop)}.font-size-heading-4xl{font-size:var(--px-text-size-heading-4xl-desktop)}.font-size-heading-3xl{font-size:var(--px-text-size-heading-3xl-desktop)}.font-size-heading-2xl{font-size:var(--px-text-size-heading-2xl-desktop)}.font-size-heading-xl{font-size:var(--px-text-size-heading-xl-desktop)}.font-size-heading-l{font-size:var(--px-text-size-heading-l-desktop)}.font-size-heading-m{font-size:var(--px-text-size-heading-m-desktop)}.font-size-heading-s{font-size:var(--px-text-size-heading-s-desktop)}.font-size-link-m{font-size:var(--px-text-size-link-m-desktop)}.font-size-link-s{font-size:var(--px-text-size-link-s-desktop)}}.font-weight-inherit{font-weight:inherit}.font-weight-body{font-weight:var(--px-font-weight-body)}.font-weight-title{font-weight:var(--px-font-weight-title)}.font-weight-title-large{font-weight:var(--px-font-weight-title-large)}.font-weight-subtitle{font-weight:var(--px-font-weight-subtitle)}", f = new CSSStyleSheet(), p = new CSSStyleSheet(), m = new CSSStyleSheet();
4
+ f.replaceSync(l), p.replaceSync(d), m.replaceSync(u);
5
+ var h = class l extends e {
6
+ static {
7
+ this.template = n("<p><slot></slot></p>");
8
+ }
9
+ static {
10
+ this.nativeName = "p";
11
+ }
12
+ constructor() {
13
+ super(p, m, f), s(this.shadowRoot, l.template);
14
+ }
15
+ static get observedAttributes() {
16
+ return [
17
+ ...super.observedAttributes,
18
+ "variant",
19
+ "color",
20
+ "font-size",
21
+ "font-weight",
22
+ "text-align",
23
+ "text-align--mobile",
24
+ "text-align--tablet",
25
+ "text-align--laptop",
26
+ "inverted",
27
+ "disabled"
28
+ ];
29
+ }
30
+ attributeChangedCallback(e, n, o) {
31
+ if (n !== o) switch (e) {
32
+ case "variant":
33
+ this.updateVariant(e, n, o, a);
34
+ break;
35
+ case "color":
36
+ this.updateTypography(e, n, o, t);
37
+ break;
38
+ case "font-size":
39
+ this.updateTypography(e, n, o, r);
40
+ break;
41
+ case "font-weight":
42
+ this.updateTypography(e, n, o, i);
43
+ break;
44
+ case "text-align":
45
+ case "text-align--mobile":
46
+ case "text-align--tablet":
47
+ case "text-align--laptop":
48
+ this.updateTypography(e, n, o, c);
49
+ break;
50
+ case "disabled":
51
+ this.color = "state-disabled";
52
+ break;
53
+ default: super.attributeChangedCallback(e, n, o);
54
+ }
55
+ }
56
+ toggleClass(e, t) {
57
+ e !== null && e !== "" && e !== "default" && this.$el.classList.toggle(`style-${e}`), t !== null && t !== "" && t !== "default" && this.$el.classList.toggle(`style-${t}`);
58
+ }
59
+ updateVariant(e, t, n, r) {
60
+ this.checkName(r, n) ? this.toggleClass(t, n) : o(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
61
+ }
62
+ updateTypography(e, t, n, r) {
63
+ if (!this.checkName(r, n)) o(`"${n}" is not a valid ${e} value for ${this.tagName.toLowerCase()}. Allowed values are: "${r.join("\", \"")}".`);
64
+ else {
65
+ let r = this.splitAttrNameFromBreakpoint(e), i = r.breakpoint;
66
+ t !== null && t !== "" && this.$el.classList.toggle(`${r.attrName}-${t}${i}`), n !== null && n !== "" && this.$el.classList.toggle(`${r.attrName}-${n}${i}`);
67
+ }
68
+ }
69
+ splitAttrNameFromBreakpoint(e) {
70
+ let t = "";
71
+ if ([
72
+ "--mobile",
73
+ "--tablet",
74
+ "--laptop"
75
+ ].some((t) => e.includes(t))) {
76
+ let n = e.split("--");
77
+ e = n[0], t = `--${n[1]}`;
78
+ }
79
+ return {
80
+ attrName: e,
81
+ breakpoint: t
82
+ };
83
+ }
84
+ get variant() {
85
+ return this.getAttribute("variant");
86
+ }
87
+ set variant(e) {
88
+ this._updateAttribute("variant", e);
89
+ }
90
+ get color() {
91
+ return this.getAttribute("color");
92
+ }
93
+ set color(e) {
94
+ this._updateAttribute("color", e);
95
+ }
96
+ get fontSize() {
97
+ return this.getAttribute("font-size");
98
+ }
99
+ set fontSize(e) {
100
+ this._updateAttribute("font-size", e);
101
+ }
102
+ get fontWeight() {
103
+ return this.getAttribute("font-weight");
104
+ }
105
+ set fontWeight(e) {
106
+ this._updateAttribute("font-weight", e);
107
+ }
108
+ get textAlign() {
109
+ return this.getAttribute("text-align");
110
+ }
111
+ set textAlign(e) {
112
+ this._updateAttribute("text-align", e);
113
+ }
114
+ get textAlignMobile() {
115
+ return this.getAttribute("text-align--mobile");
116
+ }
117
+ set textAlignMobile(e) {
118
+ this._updateAttribute("text-align--mobile", e);
119
+ }
120
+ get textAlignTablet() {
121
+ return this.getAttribute("text-align--tablet");
122
+ }
123
+ set textAlignTablet(e) {
124
+ this._updateAttribute("text-align--tablet", e);
125
+ }
126
+ get textAlignLaptop() {
127
+ return this.getAttribute("text-align--laptop");
128
+ }
129
+ set textAlignLaptop(e) {
130
+ this._updateAttribute("text-align--laptop", e);
131
+ }
132
+ get inverted() {
133
+ return this.hasAttribute("inverted");
134
+ }
135
+ set inverted(e) {
136
+ this._updateBooleanAttribute("inverted", e);
137
+ }
138
+ get disabled() {
139
+ return this.hasAttribute("disabled");
140
+ }
141
+ set disabled(e) {
142
+ this._updateBooleanAttribute("disabled", e);
143
+ }
152
144
  };
145
+ customElements.get("px-p") || customElements.define("px-p", h);
146
+ //#endregion
147
+ export { h as Paragraph };
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "properties": [],
5
+ "pseudoElements": []
6
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
+ "version": 1.1,
4
+ "tags": [
5
+ {
6
+ "name": "px-p",
7
+ "description": "\n---\n",
8
+ "attributes": [
9
+ { "name": "variant", "values": [] },
10
+ { "name": "color", "values": [] },
11
+ { "name": "font-size", "values": [] },
12
+ { "name": "font-weight", "values": [] },
13
+ { "name": "text-align", "values": [] },
14
+ { "name": "text-align--mobile", "values": [] },
15
+ { "name": "text-align--tablet", "values": [] },
16
+ { "name": "text-align--laptop", "values": [] },
17
+ { "name": "inverted", "values": [] },
18
+ { "name": "disabled", "values": [] }
19
+ ],
20
+ "references": []
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
+ "name": "@proximus/lavender-paragraph",
4
+ "version": "2.0.0-alpha.210",
5
+ "description-markup": "markdown",
6
+ "contributions": {
7
+ "html": {
8
+ "elements": [
9
+ {
10
+ "name": "px-p",
11
+ "description": "\n\n---\n",
12
+ "doc-url": "",
13
+ "attributes": [
14
+ { "name": "variant", "value": { "type": "string" } },
15
+ { "name": "color", "value": { "type": "string" } },
16
+ { "name": "font-size", "value": { "type": "string" } },
17
+ { "name": "font-weight", "value": { "type": "string" } },
18
+ { "name": "text-align", "value": { "type": "string" } },
19
+ { "name": "text-align--mobile", "value": { "type": "string" } },
20
+ { "name": "text-align--tablet", "value": { "type": "string" } },
21
+ { "name": "text-align--laptop", "value": { "type": "string" } },
22
+ { "name": "inverted", "value": { "type": "string" } },
23
+ { "name": "disabled", "value": { "type": "string" } }
24
+ ],
25
+ "events": [],
26
+ "js": {
27
+ "properties": [
28
+ { "name": "variant" },
29
+ { "name": "color" },
30
+ { "name": "fontSize" },
31
+ { "name": "fontWeight" },
32
+ { "name": "textAlign" },
33
+ { "name": "textAlignMobile" },
34
+ { "name": "textAlignTablet" },
35
+ { "name": "textAlignLaptop" },
36
+ { "name": "inverted" },
37
+ { "name": "disabled" }
38
+ ],
39
+ "events": []
40
+ }
41
+ }
42
+ ]
43
+ },
44
+ "css": {
45
+ "properties": [],
46
+ "pseudo-elements": []
47
+ }
48
+ }
49
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-paragraph",
3
- "version": "2.0.0-alpha.21",
3
+ "version": "2.0.0-alpha.210",
4
4
  "description": "",
5
5
  "main": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "clean": "rm -rf dist",
14
14
  "build": "npm run clean && NODE_ENV=development vite build && tsc && npm run transform-package-json && npm run wc-manifest",
15
15
  "test": "vitest run --coverage",
16
- "wc-manifest": "cem analyze --globs \"src/*\" --config ../custom-elements-manifest.config.js --outdir dist"
16
+ "wc-manifest": "cem analyze --globs \"src/*\" --config ../../custom-elements-manifest.config.js --outdir dist"
17
17
  },
18
18
  "publishConfig": {
19
19
  "access": "public"