@proximus/lavender-common 0.1.0-alpha.56 → 0.1.0-alpha.57

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 (2) hide show
  1. package/dist/index.js +17 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -499,7 +499,7 @@ const y = [
499
499
  "10",
500
500
  "11",
501
501
  "12"
502
- ], S = [
502
+ ], A = [
503
503
  "",
504
504
  "default",
505
505
  "auto",
@@ -507,7 +507,7 @@ const y = [
507
507
  "end",
508
508
  "center",
509
509
  "stretch"
510
- ], A = [
510
+ ], S = [
511
511
  "",
512
512
  "default",
513
513
  "inherit",
@@ -744,7 +744,19 @@ function F(o, t, s, e = "") {
744
744
  }
745
745
  class I {
746
746
  constructor(t, s, e, i) {
747
- this.component = t, this.attributeName = s, this.cssVariable = i, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = e;
747
+ this.component = t, this.attributeName = s, this.cssVariable = i, this.attributeNameMobile = `${this.attributeName}--mobile`, this.attributeNameTablet = `${this.attributeName}--tablet`, this.attributeNameLaptop = `${this.attributeName}--laptop`, this.attributeNameDesktop = `${this.attributeName}--desktop`, this._attributeValue = e, Object.defineProperty(
748
+ this.component,
749
+ this.toCamelCase(this.attributeName),
750
+ {
751
+ get: () => this.component.getAttribute(this.attributeName),
752
+ set: (a) => {
753
+ this.component.setAttribute(this.attributeName, a);
754
+ }
755
+ }
756
+ );
757
+ }
758
+ toCamelCase(t) {
759
+ return t.replace(/[-_]+(.)?/g, (s, e) => e ? e.toUpperCase() : "");
748
760
  }
749
761
  init(t) {
750
762
  this.setCSSProperty(this.attributeName, t), this.setCSSProperties();
@@ -829,10 +841,10 @@ export {
829
841
  f as cssGridColSpanValues,
830
842
  g as cssGridJustifySelfValues,
831
843
  m as cssGridOrderValues,
832
- S as cssGridPlaceSelfValues,
844
+ A as cssGridPlaceSelfValues,
833
845
  F as cssTokenBreakpoints,
834
846
  h as flexboxAlignSelfValues,
835
- A as fontsizeValues,
847
+ S as fontsizeValues,
836
848
  v as fontweightValues,
837
849
  G as gapValues,
838
850
  d as getSupportedAttributeNames,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proximus/lavender-common",
3
- "version": "0.1.0-alpha.56",
3
+ "version": "0.1.0-alpha.57",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -24,7 +24,7 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "3afda6b407b0237b54182110398d66df50275ce7",
27
+ "gitHead": "c9887f61d33d87b3ecb76e177df729f02694dcca",
28
28
  "lerna": {
29
29
  "command": {
30
30
  "publish": {