@justeattakeaway/pie-breadcrumb 0.0.1 → 0.1.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/custom-elements.json +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +30 -16
- package/dist/react.d.ts +2 -2
- package/package.json +4 -3
- package/src/index.ts +5 -4
package/custom-elements.json
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSResult } from 'lit';
|
|
2
2
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
3
|
-
import
|
|
3
|
+
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
4
4
|
import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
|
|
5
5
|
import type { TemplateResult } from 'lit-html';
|
|
6
6
|
|
|
@@ -19,6 +19,6 @@ export declare class PieBreadcrumb extends PieBreadcrumb_base implements Breadcr
|
|
|
19
19
|
static styles: CSSResult;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
declare const PieBreadcrumb_base: GenericConstructor<RTLInterface> & typeof
|
|
22
|
+
declare const PieBreadcrumb_base: GenericConstructor<RTLInterface> & typeof PieElement;
|
|
23
23
|
|
|
24
24
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
import { LitElement as
|
|
2
|
-
import { RtlMixin as
|
|
3
|
-
import { classMap as
|
|
4
|
-
|
|
1
|
+
import { LitElement as c, html as d, unsafeCSS as m } from "lit";
|
|
2
|
+
import { RtlMixin as f, defineCustomElement as u } from "@justeattakeaway/pie-webc-core";
|
|
3
|
+
import { classMap as g } from "lit/directives/class-map.js";
|
|
4
|
+
import { property as v } from "lit/decorators.js";
|
|
5
|
+
var b = Object.defineProperty, y = (t, r, o, h) => {
|
|
6
|
+
for (var e = void 0, a = t.length - 1, i; a >= 0; a--)
|
|
7
|
+
(i = t[a]) && (e = i(r, o, e) || e);
|
|
8
|
+
return e && b(r, o, e), e;
|
|
9
|
+
};
|
|
10
|
+
class l extends c {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments), this.v = "0.1.0";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
y([
|
|
16
|
+
v({ type: String, reflect: !0 })
|
|
17
|
+
], l.prototype, "v");
|
|
18
|
+
const x = "*,*:after,*:before{box-sizing:inherit}.c-breadcrumb{--breadcrumb-background-color: var(--dt-color-transparent);padding:var(--dt-spacing-a) var(--dt-spacing-d) var(--dt-spacing-a) var(--dt-spacing-d)}.c-breadcrumb ol{margin:0;padding:0;display:flex;flex-flow:row;gap:var(--dt-spacing-a)}.c-breadcrumb ol li{list-style-type:none}", p = "pie-breadcrumb", C = "c-breadcrumb", s = class s extends f(l) {
|
|
5
19
|
render() {
|
|
6
|
-
const
|
|
7
|
-
[
|
|
20
|
+
const r = {
|
|
21
|
+
[C]: !0
|
|
8
22
|
};
|
|
9
|
-
return
|
|
10
|
-
<nav
|
|
11
|
-
data-test-id="${
|
|
12
|
-
class="${
|
|
23
|
+
return d`
|
|
24
|
+
<nav
|
|
25
|
+
data-test-id="${p}"
|
|
26
|
+
class="${g(r)}">
|
|
13
27
|
<ol>
|
|
14
28
|
<li><span>Previous Page</span></li>
|
|
15
29
|
<li><span>Current Page</span></li>
|
|
@@ -17,11 +31,11 @@ const p = "*,*:after,*:before{box-sizing:inherit}.c-breadcrumb{--breadcrumb-back
|
|
|
17
31
|
</nav>`;
|
|
18
32
|
}
|
|
19
33
|
};
|
|
20
|
-
|
|
21
|
-
let
|
|
22
|
-
|
|
34
|
+
s.styles = m(x);
|
|
35
|
+
let n = s;
|
|
36
|
+
u(p, n);
|
|
23
37
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
38
|
+
n as PieBreadcrumb,
|
|
39
|
+
C as componentClass,
|
|
40
|
+
p as componentSelector
|
|
27
41
|
};
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CSSResult } from 'lit';
|
|
2
2
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
3
|
-
import
|
|
3
|
+
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
4
4
|
import * as React_2 from 'react';
|
|
5
5
|
import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
|
|
6
6
|
import type { TemplateResult } from 'lit-html';
|
|
@@ -22,7 +22,7 @@ declare class PieBreadcrumb_2 extends PieBreadcrumb_base implements BreadcrumbPr
|
|
|
22
22
|
static styles: CSSResult;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
declare const PieBreadcrumb_base: GenericConstructor<RTLInterface> & typeof
|
|
25
|
+
declare const PieBreadcrumb_base: GenericConstructor<RTLInterface> & typeof PieElement;
|
|
26
26
|
|
|
27
27
|
declare type ReactBaseType = React_2.HTMLAttributes<HTMLElement>;
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-breadcrumb",
|
|
3
3
|
"description": "PIE Design System Breadcrumb built using Web Components",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -33,12 +33,13 @@
|
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
36
|
-
"@justeattakeaway/pie-components-config": "0.
|
|
36
|
+
"@justeattakeaway/pie-components-config": "0.19.0",
|
|
37
37
|
"@justeattakeaway/pie-css": "0.16.0",
|
|
38
|
+
"@justeattakeaway/pie-monorepo-utils": "0.5.0",
|
|
38
39
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
39
40
|
},
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"@justeattakeaway/pie-webc-core": "0.
|
|
42
|
+
"@justeattakeaway/pie-webc-core": "0.25.0"
|
|
42
43
|
},
|
|
43
44
|
"volta": {
|
|
44
45
|
"extends": "../../../package.json"
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { html, unsafeCSS } from 'lit';
|
|
2
2
|
import { RtlMixin, defineCustomElement } from '@justeattakeaway/pie-webc-core';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
|
|
5
|
+
import { PieElement } from '@justeattakeaway/pie-webc-core/src/internals/PieElement';
|
|
5
6
|
import styles from './breadcrumb.scss?inline';
|
|
6
7
|
import { type BreadcrumbProps, componentSelector, componentClass } from './defs';
|
|
7
8
|
|
|
@@ -11,15 +12,15 @@ export * from './defs';
|
|
|
11
12
|
/**
|
|
12
13
|
* @tagname pie-breadcrumb
|
|
13
14
|
*/
|
|
14
|
-
export class PieBreadcrumb extends RtlMixin(
|
|
15
|
+
export class PieBreadcrumb extends RtlMixin(PieElement) implements BreadcrumbProps {
|
|
15
16
|
render () {
|
|
16
17
|
const componentWrapperClasses = {
|
|
17
18
|
[componentClass]: true,
|
|
18
19
|
};
|
|
19
20
|
|
|
20
21
|
return html`
|
|
21
|
-
<nav
|
|
22
|
-
data-test-id="${componentSelector}"
|
|
22
|
+
<nav
|
|
23
|
+
data-test-id="${componentSelector}"
|
|
23
24
|
class="${classMap(componentWrapperClasses)}">
|
|
24
25
|
<ol>
|
|
25
26
|
<li><span>Previous Page</span></li>
|