@justeattakeaway/pie-modal 0.2.0 → 0.3.0

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,11 +1,14 @@
1
+ [11:03:18 AM] @custom-elements-manifest/analyzer: Created new manifest.
2
+ react wrapper has been added!
1
3
  vite v4.2.1 building for production...
2
4
  transforming...
3
- ✓ 5 modules transformed.
5
+ ✓ 17 modules transformed.
4
6
  rendering chunks...
5
7
  computing gzip size...
6
- dist/index.js 1.78 kB │ gzip: 0.81 kB
8
+ dist/index.js  1.46 kB │ gzip: 0.76 kB
9
+ dist/react.js 59.09 kB │ gzip: 15.93 kB
7
10
  
8
11
  [vite:dts] Start generate declaration files...
9
- ✓ built in 23.66s
10
- [vite:dts] Declaration files built in 23401ms.
12
+ ✓ built in 35.44s
13
+ [vite:dts] Declaration files built in 33629ms.
11
14
  
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @justeattakeaway/pie-modal
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [Changed] - Build script to include generating react wrapper ([#426](https://github.com/justeattakeaway/pie/pull/426)) by [@LTurns](https://github.com/LTurns)
8
+
9
+ ### Patch Changes
10
+
11
+ - [Added] - Missing `test:ci` scripts to package.json ([#492](https://github.com/justeattakeaway/pie/pull/492)) by [@siggerzz](https://github.com/siggerzz)
12
+
13
+ - [Updated] - components to use the shared configurations ([#487](https://github.com/justeattakeaway/pie/pull/487)) by [@fernandofranca](https://github.com/fernandofranca)
14
+
15
+ - Updated dependencies [[`090354733`](https://github.com/justeattakeaway/pie/commit/090354733f24f0aa52ce287db7f8d13648414150)]:
16
+ - @justeattakeaway/pie-webc-core@0.2.0
17
+
3
18
  ## 0.2.0
4
19
 
5
20
  ### Minor Changes
package/README.md CHANGED
@@ -29,3 +29,13 @@ Compile and watch for changes (auto-compiles `dist` on save)
29
29
  ```
30
30
  yarn watch
31
31
  ```
32
+
33
+ ### Importing the component
34
+
35
+ ```javascript
36
+ // default
37
+ import { PieModal } from '@justeattakeaway/pie-button';
38
+
39
+ // react
40
+ import { PieModal } from '@justeattakeaway/pie-button/dist/react';
41
+ ```
package/dist/index.js CHANGED
@@ -1,12 +1,11 @@
1
- import { html as p, LitElement as f } from "lit";
2
- import { customElement as u } from "lit/decorators.js";
3
- import { property as m } from "lit/decorators/property.js";
4
- var v = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, c = (i, e, s, t) => {
5
- for (var r = t > 1 ? void 0 : t ? _(e, s) : e, o = i.length - 1, l; o >= 0; o--)
1
+ import { html as n, LitElement as p } from "lit";
2
+ import { property as d } from "lit/decorators/property.js";
3
+ var u = Object.defineProperty, f = Object.getOwnPropertyDescriptor, m = (i, e, s, t) => {
4
+ for (var r = t > 1 ? void 0 : t ? f(e, s) : e, o = i.length - 1, l; o >= 0; o--)
6
5
  (l = i[o]) && (r = (t ? l(e, s, r) : l(r)) || r);
7
- return t && r && v(e, s, r), r;
6
+ return t && r && u(e, s, r), r;
8
7
  };
9
- const d = (i) => {
8
+ const a = (i) => {
10
9
  class e extends i {
11
10
  constructor() {
12
11
  super(...arguments), this.dir = "";
@@ -25,27 +24,20 @@ const d = (i) => {
25
24
  return this.dir === "ltr" ? !1 : this.dir === "rtl" || ((t = window == null ? void 0 : window.getComputedStyle(this)) == null ? void 0 : t.direction) === "rtl";
26
25
  }
27
26
  }
28
- return c([
29
- m({ type: String })
27
+ return m([
28
+ d({ type: String })
30
29
  ], e.prototype, "dir", 2), e;
31
30
  };
32
- var a = Object.defineProperty, P = Object.getOwnPropertyDescriptor, h = (i, e, s, t) => {
33
- for (var r = t > 1 ? void 0 : t ? P(e, s) : e, o = i.length - 1, l; o >= 0; o--)
34
- (l = i[o]) && (r = (t ? l(e, s, r) : l(r)) || r);
35
- return t && r && a(e, s, r), r;
36
- };
37
- let n = class extends d(f) {
31
+ class c extends a(p) {
38
32
  // eslint-disable-next-line class-methods-use-this
39
33
  render() {
40
- return p`
34
+ return n`
41
35
  <div>This is the Pie Modal
42
36
  <slot></slot>
43
37
  </div>`;
44
38
  }
45
- };
46
- n = h([
47
- u("pie-modal")
48
- ], n);
39
+ }
40
+ customElements.define("pie-modal", c);
49
41
  export {
50
- n as PieModal
42
+ c as PieModal
51
43
  };