@justeattakeaway/pie-webc-core 0.25.0 → 0.25.1

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 +5 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
- import { isServer as c } from "lit";
1
+ import { isServer as u } from "lit";
2
2
  const d = (t, e, n) => function(s, r) {
3
3
  const o = `#${r}`;
4
4
  Object.defineProperty(s, r, {
5
5
  get() {
6
6
  return this[o];
7
7
  },
8
- set(u) {
9
- e.includes(u) ? this[o] = u : (console.error(
10
- `<${t}> Invalid value "${u}" provided for property "${r}".`,
8
+ set(c) {
9
+ e.includes(c) ? this[o] = c : (console.error(
10
+ `<${t}> Invalid value "${c}" provided for property "${r}".`,
11
11
  `Must be one of: ${e.join(" | ")}.`,
12
12
  `Falling back to default value: "${n}"`
13
13
  ), this[o] = n);
@@ -59,7 +59,7 @@ const m = (t) => {
59
59
  * @returns {boolean} - Returns `true` if the text direction is RTL, otherwise `false`.
60
60
  */
61
61
  get isRTL() {
62
- return this.dir ? this.dir === "rtl" : !c && !this.dir ? document.documentElement.getAttribute("dir") === "rtl" : !1;
62
+ return this.dir ? this.dir === "rtl" : !u && !this.dir ? document.documentElement.getAttribute("dir") === "rtl" : !1;
63
63
  }
64
64
  }
65
65
  return e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-webc-core",
3
- "version": "0.25.0",
3
+ "version": "0.25.1",
4
4
  "description": "PIE design system base classes, mixins and utilities for web components",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "lit": "3.2.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@justeattakeaway/pie-components-config": "0.19.0"
31
+ "@justeattakeaway/pie-components-config": "0.19.1"
32
32
  },
33
33
  "volta": {
34
34
  "extends": "../../../package.json"