@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.
- package/.turbo/turbo-build.log +7 -4
- package/CHANGELOG.md +15 -0
- package/README.md +10 -0
- package/dist/index.js +13 -21
- package/dist/react.js +1604 -0
- package/dist/types/packages/components/pie-modal/src/index.d.ts.map +1 -1
- package/dist/types/packages/components/pie-modal/src/react.d.ts +3 -0
- package/dist/types/packages/components/pie-modal/src/react.d.ts.map +1 -0
- package/dist/types/react.d.ts +1 -0
- package/package.json +8 -4
- package/src/index.ts +2 -2
- package/tsconfig.json +3 -25
- package/vite.config.js +4 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
[11:03:18 AM] @custom-elements-manifest/analyzer: Created new manifest.
|
|
2
|
+
react wrapper has been added!
|
|
1
3
|
[36mvite v4.2.1 [32mbuilding for production...[36m[39m
|
|
2
4
|
transforming...
|
|
3
|
-
[32m✓[39m
|
|
5
|
+
[32m✓[39m 17 modules transformed.
|
|
4
6
|
rendering chunks...
|
|
5
7
|
computing gzip size...
|
|
6
|
-
[2mdist/[22m[36mindex.js [39m[1m[
|
|
8
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m 1.46 kB[22m[1m[22m[2m │ gzip: 0.76 kB[22m
|
|
9
|
+
[2mdist/[22m[36mreact.js [39m[1m[2m59.09 kB[22m[1m[22m[2m │ gzip: 15.93 kB[22m
|
|
7
10
|
[32m
|
|
8
11
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
9
|
-
[32m✓[39m built in
|
|
10
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
12
|
+
[32m✓[39m built in 35.44s
|
|
13
|
+
[32m[36m[vite:dts][32m Declaration files built in 33629ms.
|
|
11
14
|
[39m
|
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
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
var
|
|
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 &&
|
|
6
|
+
return t && r && u(e, s, r), r;
|
|
8
7
|
};
|
|
9
|
-
const
|
|
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
|
|
29
|
-
|
|
27
|
+
return m([
|
|
28
|
+
d({ type: String })
|
|
30
29
|
], e.prototype, "dir", 2), e;
|
|
31
30
|
};
|
|
32
|
-
|
|
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
|
|
34
|
+
return n`
|
|
41
35
|
<div>This is the Pie Modal
|
|
42
36
|
<slot></slot>
|
|
43
37
|
</div>`;
|
|
44
38
|
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
u("pie-modal")
|
|
48
|
-
], n);
|
|
39
|
+
}
|
|
40
|
+
customElements.define("pie-modal", c);
|
|
49
41
|
export {
|
|
50
|
-
|
|
42
|
+
c as PieModal
|
|
51
43
|
};
|