@justeattakeaway/pie-breadcrumb 0.8.3 → 0.8.4

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.
@@ -26,7 +26,7 @@
26
26
  "type": {
27
27
  "text": "DefaultProps"
28
28
  },
29
- "default": "{\n variant: 'default',\n isCompact: false,\n hideCurrentPage: false,\n}"
29
+ "default": "{ variant: 'default', isCompact: false, hideCurrentPage: false, }"
30
30
  }
31
31
  ],
32
32
  "exports": [
@@ -60,17 +60,22 @@
60
60
  {
61
61
  "kind": "field",
62
62
  "name": "variant",
63
- "privacy": "public"
63
+ "privacy": "public",
64
+ "attribute": "variant"
64
65
  },
65
66
  {
66
67
  "kind": "field",
67
68
  "name": "isCompact",
68
- "privacy": "public"
69
+ "privacy": "public",
70
+ "attribute": "isCompact",
71
+ "reflects": true
69
72
  },
70
73
  {
71
74
  "kind": "field",
72
75
  "name": "hideCurrentPage",
73
- "privacy": "public"
76
+ "privacy": "public",
77
+ "attribute": "hideCurrentPage",
78
+ "reflects": true
74
79
  },
75
80
  {
76
81
  "kind": "field",
@@ -78,7 +83,8 @@
78
83
  "type": {
79
84
  "text": "BreadcrumbProps['aria']"
80
85
  },
81
- "privacy": "public"
86
+ "privacy": "public",
87
+ "attribute": "aria"
82
88
  },
83
89
  {
84
90
  "kind": "method",
@@ -92,6 +98,27 @@
92
98
  "description": "Handles the slot change event."
93
99
  }
94
100
  ],
101
+ "attributes": [
102
+ {
103
+ "name": "variant",
104
+ "fieldName": "variant"
105
+ },
106
+ {
107
+ "name": "isCompact",
108
+ "fieldName": "isCompact"
109
+ },
110
+ {
111
+ "name": "hideCurrentPage",
112
+ "fieldName": "hideCurrentPage"
113
+ },
114
+ {
115
+ "name": "aria",
116
+ "type": {
117
+ "text": "BreadcrumbProps['aria']"
118
+ },
119
+ "fieldName": "aria"
120
+ }
121
+ ],
95
122
  "superclass": {
96
123
  "name": "PieElement",
97
124
  "package": "@justeattakeaway/pie-webc-core/src/internals/PieElement"
@@ -106,7 +133,7 @@
106
133
  "name": "*",
107
134
  "declaration": {
108
135
  "name": "*",
109
- "package": "./defs"
136
+ "module": "src/defs"
110
137
  }
111
138
  },
112
139
  {
@@ -146,7 +173,8 @@
146
173
  "type": {
147
174
  "text": "BreadcrumbItemProps['href']"
148
175
  },
149
- "privacy": "public"
176
+ "privacy": "public",
177
+ "attribute": "href"
150
178
  },
151
179
  {
152
180
  "kind": "field",
@@ -154,7 +182,8 @@
154
182
  "type": {
155
183
  "text": "BreadcrumbItemProps['target']"
156
184
  },
157
- "privacy": "public"
185
+ "privacy": "public",
186
+ "attribute": "target"
158
187
  },
159
188
  {
160
189
  "kind": "field",
@@ -162,7 +191,8 @@
162
191
  "type": {
163
192
  "text": "BreadcrumbItemProps['aria']"
164
193
  },
165
- "privacy": "public"
194
+ "privacy": "public",
195
+ "attribute": "aria"
166
196
  },
167
197
  {
168
198
  "kind": "method",
@@ -182,6 +212,29 @@
182
212
  "description": "Renders a navigation link for a breadcrumb item."
183
213
  }
184
214
  ],
215
+ "attributes": [
216
+ {
217
+ "name": "href",
218
+ "type": {
219
+ "text": "BreadcrumbItemProps['href']"
220
+ },
221
+ "fieldName": "href"
222
+ },
223
+ {
224
+ "name": "target",
225
+ "type": {
226
+ "text": "BreadcrumbItemProps['target']"
227
+ },
228
+ "fieldName": "target"
229
+ },
230
+ {
231
+ "name": "aria",
232
+ "type": {
233
+ "text": "BreadcrumbItemProps['aria']"
234
+ },
235
+ "fieldName": "aria"
236
+ }
237
+ ],
185
238
  "superclass": {
186
239
  "name": "PieElement",
187
240
  "package": "@justeattakeaway/pie-webc-core/src/internals/PieElement"
@@ -196,7 +249,7 @@
196
249
  "name": "*",
197
250
  "declaration": {
198
251
  "name": "*",
199
- "package": "./defs"
252
+ "module": "src/pie-breadcrumb-item/defs"
200
253
  }
201
254
  },
202
255
  {
@@ -4,7 +4,7 @@ const r = class r extends e {
4
4
  this.getAttribute("v") || this.setAttribute("v", r.v);
5
5
  }
6
6
  };
7
- r.v = "0.8.3";
7
+ r.v = "0.8.4";
8
8
  let t = r;
9
9
  const o = "*,*:after,*:before{box-sizing:inherit}:host{display:block}.c-breadcrumb{--breadcrumb-background-color: var(--dt-color-transparent);--breadcrumb-item-flex-direction: row;--breadcrumb-item-color: var(--dt-color-content-link);--breadcrumb-separator-color: var(--dt-color-content-subdued);--breadcrumb-separator-transform: none;background-color:var(--breadcrumb-background-color);padding-block-start:var(--dt-spacing-a);padding-block-end:var(--dt-spacing-a)}.c-breadcrumb--scrim{--breadcrumb-background-color: var(--dt-color-overlay);--breadcrumb-item-color: var(--dt-color-content-link-light);--breadcrumb-separator-color: var(--dt-color-content-light);border-radius:var(--dt-radius-rounded-e);padding-inline-start:var(--dt-spacing-d);padding-inline-end:var(--dt-spacing-d)}.c-breadcrumb-list{margin:0;padding:0;display:flex;flex-flow:row;gap:var(--dt-spacing-a)}.c-breadcrumb-item{display:flex;flex-direction:var(--breadcrumb-item-flex-direction);align-items:center;white-space:nowrap;gap:var(--dt-spacing-a)}.c-breadcrumb-item pie-link{--link-text-color: var(--breadcrumb-item-color);--link-font-weight: var(--dt-font-body-strong-l-link-weight)}.c-breadcrumb-separator{display:inline-flex;color:var(--breadcrumb-separator-color);transform:var(--breadcrumb-separator-transform)}.c-breadcrumb-separator:dir(rtl){--breadcrumb-separator-transform: rotate(180deg)}:host([isCompact]) .c-breadcrumb{--breadcrumb-item-flex-direction: row-reverse;--breadcrumb-separator-transform: rotate(180deg)}:host([isCompact]) ::slotted(pie-breadcrumb-item:not(:nth-last-of-type(2),:only-child)){display:none}:host([hideCurrentPage]) ::slotted(pie-breadcrumb-item:last-of-type){display:none}:host(:last-of-type:not(:only-of-type)) pie-link{--link-font-weight: var(--dt-font-body-l-link-weight)}:host(:last-of-type:not(:only-of-type)) pie-link::part(base):hover,:host(:last-of-type:not(:only-of-type)) pie-link::part(base):active{--link-text-decoration: none}:host(:last-of-type:not(:only-of-type)) pie-link span{max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host(:last-of-type:not(:only-of-type)) .c-breadcrumb-separator{display:none}";
10
10
  export {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { unsafeCSS as u, html as m } from "lit";
2
2
  import { property as n } from "lit/decorators.js";
3
3
  import { validPropertyValues as d, safeCustomElement as b } from "@justeattakeaway/pie-webc-core";
4
4
  import { classMap as h } from "lit/directives/class-map.js";
5
- import { s as f, P as C } from "./breadcrumb-wFdap2Ds.js";
5
+ import { s as f, P as C } from "./breadcrumb-wFbbWTLd.js";
6
6
  const v = ["default", "scrim"], l = {
7
7
  variant: "default",
8
8
  isCompact: !1,
@@ -1,6 +1,6 @@
1
1
  import { unsafeCSS as c, html as l } from "lit";
2
2
  import { property as m } from "lit/decorators.js";
3
- import { s as f, P as b } from "../breadcrumb-wFdap2Ds.js";
3
+ import { s as f, P as b } from "../breadcrumb-wFbbWTLd.js";
4
4
  import { safeCustomElement as h } from "@justeattakeaway/pie-webc-core";
5
5
  import { ifDefined as d } from "lit/directives/if-defined.js";
6
6
  import "@justeattakeaway/pie-link";
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.8.3",
4
+ "version": "0.8.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/justeattakeaway/pie",
@@ -44,13 +44,13 @@
44
44
  "author": "Just Eat Takeaway.com - Design System Team",
45
45
  "license": "Apache-2.0",
46
46
  "devDependencies": {
47
- "@justeattakeaway/pie-components-config": "0.21.1",
47
+ "@justeattakeaway/pie-components-config": "0.21.2",
48
48
  "@justeattakeaway/pie-css": "1.1.1",
49
49
  "@justeattakeaway/pie-monorepo-utils": "0.9.1"
50
50
  },
51
51
  "dependencies": {
52
52
  "@justeattakeaway/pie-icons-webc": "1.23.0",
53
- "@justeattakeaway/pie-link": "1.3.27",
53
+ "@justeattakeaway/pie-link": "1.3.28",
54
54
  "@justeattakeaway/pie-webc-core": "14.0.1"
55
55
  },
56
56
  "volta": {