@1024pix/pix-ui 54.13.0 → 54.14.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.
@@ -0,0 +1,18 @@
1
+ <nav class="pix-breadcrumb" ...attributes>
2
+ <ol>
3
+ {{#each this.links as |link|}}
4
+ {{#if link.route}}
5
+ <li>
6
+ <LinkTo @route={{this.route}} @models={{if @model (array @model) this.defaultModel}}>
7
+ {{link.label}}
8
+ </LinkTo>
9
+ <PixIcon @name="chevronRight" @ariaHidden={{true}} />
10
+ </li>
11
+ {{else}}
12
+ <li aria-current="page">
13
+ <p>{{link.label}}</p>
14
+ </li>
15
+ {{/if}}
16
+ {{/each}}
17
+ </ol>
18
+ </nav>
@@ -0,0 +1,12 @@
1
+ import Component from '@glimmer/component';
2
+
3
+ export default class PixBreadcrumb extends Component {
4
+ defaultModel = [];
5
+
6
+ get links() {
7
+ return this.args.links.map((link) => ({
8
+ ...link,
9
+ label: link.label.trim(),
10
+ }));
11
+ }
12
+ }
@@ -0,0 +1,37 @@
1
+ @use "pix-design-tokens/typography";
2
+
3
+ .pix-breadcrumb {
4
+ @extend %pix-body-s;
5
+
6
+ > ol {
7
+ display: flex;
8
+
9
+ > li {
10
+ display: flex;
11
+ align-items: center;
12
+
13
+ a {
14
+ color: inherit;
15
+ font-weight: inherit;
16
+ text-decoration: none;
17
+ border-bottom: 1px solid transparent;
18
+ transition: all ease 0.5s;
19
+ }
20
+
21
+ a:hover {
22
+ color: var(--pix-primary-500);
23
+ border-bottom: 1px solid var(--pix-primary-500);
24
+ transition: all ease 0.5s;
25
+ }
26
+
27
+ p {
28
+ font-weight: var(--pix-font-medium);
29
+ }
30
+
31
+ svg {
32
+ width: 1rem;
33
+ margin: 0 0.5rem;
34
+ }
35
+ }
36
+ }
37
+ }
@@ -5,6 +5,7 @@
5
5
  @use 'pix-background-header';
6
6
  @use 'pix-banner-alert';
7
7
  @use 'pix-block';
8
+ @use 'pix-breadcrumb';
8
9
  @use 'pix-button-base';
9
10
  @use 'pix-button';
10
11
  @use 'pix-accordions';
@@ -0,0 +1 @@
1
+ export { default } from '@1024pix/pix-ui/components/pix-breadcrumb';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "54.13.0",
3
+ "version": "54.14.0",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -73,9 +73,9 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@1024pix/ember-testing-library": "^3.0.6",
76
- "@1024pix/eslint-plugin": "^2.0.4",
76
+ "@1024pix/eslint-plugin": "^2.1.0",
77
77
  "@1024pix/stylelint-config": "^5.1.27",
78
- "@babel/eslint-parser": "^7.26.5",
78
+ "@babel/eslint-parser": "^7.26.8",
79
79
  "@babel/plugin-proposal-decorators": "^7.24.7",
80
80
  "@ember/optional-features": "^2.2.0",
81
81
  "@ember/string": "^4.0.0",
@@ -102,22 +102,22 @@
102
102
  "ember-cli": "^6.0.0",
103
103
  "ember-cli-dependency-checker": "^3.3.3",
104
104
  "ember-cli-inject-live-reload": "^2.1.0",
105
- "ember-eslint-parser": "^0.5.7",
105
+ "ember-eslint-parser": "^0.5.9",
106
106
  "ember-load-initializers": "^2.1.2",
107
107
  "ember-page-title": "^8.2.3",
108
108
  "ember-qunit": "^8.1.0",
109
109
  "ember-resolver": "^12.0.0",
110
110
  "ember-sinon": "^5.0.0",
111
111
  "ember-source": "^5.11.0",
112
- "ember-template-lint": "^6.0.0",
112
+ "ember-template-lint": "^7.0.1",
113
113
  "ember-template-lint-plugin-prettier": "^5.0.0",
114
114
  "ember-try": "^3.0.0",
115
- "eslint": "^9.18.0",
116
- "eslint-config-prettier": "^10.0.1",
117
- "eslint-plugin-ember": "^12.3.3",
115
+ "eslint": "^9.21.0",
116
+ "eslint-config-prettier": "^10.0.2",
117
+ "eslint-plugin-ember": "^12.5.0",
118
118
  "eslint-plugin-i18n-json": "^4.0.1",
119
- "eslint-plugin-n": "^17.15.1",
120
- "eslint-plugin-prettier": "^5.2.1",
119
+ "eslint-plugin-n": "^17.16.2",
120
+ "eslint-plugin-prettier": "^5.2.3",
121
121
  "eslint-plugin-qunit": "^8.1.2",
122
122
  "fs-extra": "^11.0.0",
123
123
  "globals": "^15.14.0",
@@ -125,13 +125,13 @@
125
125
  "loader.js": "^4.7.0",
126
126
  "lodash": "^4.17.21",
127
127
  "npm-run-all2": "^7.0.0",
128
- "prettier": "^3.4.2",
128
+ "prettier": "^3.5.3",
129
129
  "qunit": "^2.23.1",
130
130
  "qunit-dom": "^3.4.0",
131
131
  "sass": "^1.83.1",
132
132
  "storybook": "^8.4.7",
133
133
  "storybook-addon-tag-badges": "^1.4.0",
134
- "stylelint": "^16.13.2",
134
+ "stylelint": "^16.15.0",
135
135
  "svg-sprite": "^2.0.4",
136
136
  "svgo": "^3.3.2",
137
137
  "webpack": "^5.97.1"