@1024pix/pix-ui 54.13.1 → 54.14.1

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
+ }
@@ -13,7 +13,13 @@
13
13
  </div>
14
14
  </th>
15
15
  {{else}}
16
- <td ...attributes class={{this.typeClass}}>
17
- {{yield to="cell"}}
18
- </td>
16
+ {{#if @isMainRow}}
17
+ <th scope="row" class={{this.typeClass}} ...attributes>
18
+ {{yield to="cell"}}
19
+ </th>
20
+ {{else}}
21
+ <td class={{this.typeClass}} ...attributes>
22
+ {{yield to="cell"}}
23
+ </td>
24
+ {{/if}}
19
25
  {{/if}}
@@ -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
+ }
@@ -1,5 +1,5 @@
1
1
  .pix-table-column {
2
2
  &--number{
3
- text-align: right;
3
+ text-align: left;
4
4
  }
5
5
  }
@@ -59,11 +59,17 @@
59
59
  align-items: center;
60
60
  }
61
61
 
62
- th {
62
+ th[scope='col'] {
63
+ font-weight: var(--pix-font-bold);
63
64
  text-align: start;
64
65
  vertical-align: middle;
65
66
  }
66
67
 
68
+ th[scope='row'] {
69
+ font-weight: var(--pix-font-normal);
70
+ }
71
+
72
+
67
73
  td, th {
68
74
  padding: var(--pix-spacing-6x) var(--pix-spacing-4x);
69
75
 
@@ -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.1",
3
+ "version": "54.14.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"