@skf-design-system/ui-components 1.0.0-alpha.32 → 1.0.0-alpha.34

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,29 @@
1
+ import type { SkfBreadcrumbItem } from '../breadcrumb-item/breadcrumb-item.component.js';
2
+ import { SkfElement } from '../../internal/components/skf-element';
3
+ import { type CSSResultGroup } from 'lit';
4
+ /**
5
+ * The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
6
+ *
7
+ * @documentation See [zeroheight](https://zeroheight.com/****) for design principles
8
+ *
9
+ * @event click - Fired when the item is clicked
10
+ *
11
+ * @slot - One or more `<skf-breadcrumb-item>`
12
+ *
13
+ * @tagname skf-breadcrumb
14
+ */
15
+ export declare class SkfBreadcrumb extends SkfElement {
16
+ static styles: CSSResultGroup;
17
+ /** aria-label for the breadcrumb control */
18
+ label: string;
19
+ /** Displays an alternative size */
20
+ size: 'md' | 'sm';
21
+ /** @internal */
22
+ _isDynamic: boolean;
23
+ /** @internal */
24
+ _items: NodeListOf<SkfBreadcrumbItem>;
25
+ firstUpdated(): void;
26
+ /** @internal */
27
+ private _handleSlotChange;
28
+ render(): import("lit").TemplateResult;
29
+ }
@@ -0,0 +1,8 @@
1
+ import { SkfBreadcrumb } from './breadcrumb.component';
2
+ export * from './breadcrumb.component';
3
+ export default SkfBreadcrumb;
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'skf-breadcrumb': SkfBreadcrumb;
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,25 @@
1
+ import '../icon/icon.js';
2
+ import { SkfElement } from '../../internal/components/skf-element';
3
+ import { type CSSResultGroup } from 'lit';
4
+ /**
5
+ * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
6
+ *
7
+ * @slot - Label of the breadcrumb item
8
+ *
9
+ * @tagname skf-breadcrumb-item
10
+ */
11
+ export declare class SkfBreadcrumbItem extends SkfElement {
12
+ static styles: CSSResultGroup;
13
+ private _onClick?;
14
+ /** If defined, loads url on click */
15
+ href?: string;
16
+ /** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
17
+ set onClick(onClickFn: ((event: Event, route: string) => void) | undefined);
18
+ get onClick(): ((event: Event, route: string) => void) | undefined;
19
+ /** @internal */
20
+ _isCurrent: boolean;
21
+ connectedCallback(): void;
22
+ /** @internal */
23
+ private _clickHandler;
24
+ render(): import("lit").TemplateResult<1>;
25
+ }
@@ -0,0 +1,8 @@
1
+ import { SkfBreadcrumbItem } from './breadcrumb-item.component';
2
+ export * from './breadcrumb-item.component';
3
+ export default SkfBreadcrumbItem;
4
+ declare global {
5
+ interface HTMLElementTagNameMap {
6
+ 'skf-breadcrumb-item': SkfBreadcrumbItem;
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -16,7 +16,6 @@ import { type CSSResultGroup } from 'lit';
16
16
  * @documentation See [InVision DSM](https://skf.invisionapp.com/dsm/ab-skf/4-web-applications/nav/5fa7caf78c01200018354495/asset/6229d63d9fe16020a60657e5) for design principles
17
17
  *
18
18
  * @slot - The dialog component's content
19
- * @slot heading - The dialog component's heading
20
19
  * @slot footer - The dialog component's buttons goes here
21
20
  *
22
21
  * @event skf-dialog-open - Fires when the dialog is opened (after transitioned in)
@@ -119,9 +119,7 @@ const y = class y extends v {
119
119
  })}
120
120
  >
121
121
  <div class="dialog__head">
122
- <h2 class="dialog__heading">
123
- <slot name="heading"></slot>
124
- </h2>
122
+ <h2 class="dialog__heading">${this.heading}</h2>
125
123
  ${this.noCloseButton ? k : b`
126
124
  <button
127
125
  @click=${this._handleClose}
@@ -1,52 +1,51 @@
1
- import { SkfElement as c } from "../../internal/components/skf-element.js";
2
- import { ICONS as f } from "@skf-design-system/ui-assets";
1
+ import { SkfElement as f } from "../../internal/components/skf-element.js";
2
+ import { ICONS as c } from "@skf-design-system/ui-assets";
3
3
  import d from "../../styles/component.styles.js";
4
4
  import { html as h } from "lit";
5
- import { property as o } from "lit/decorators.js";
5
+ import { property as t } from "lit/decorators.js";
6
6
  import { classMap as u } from "lit/directives/class-map.js";
7
- import { ifDefined as l } from "lit/directives/if-defined.js";
7
+ import { ifDefined as s } from "lit/directives/if-defined.js";
8
8
  import v from "./icon.styles.js";
9
- var y = Object.defineProperty, i = (p, e, a, $) => {
10
- for (var r = void 0, s = p.length - 1, n; s >= 0; s--)
11
- (n = p[s]) && (r = n(e, a, r) || r);
12
- return r && y(e, a, r), r;
9
+ var y = Object.defineProperty, o = (m, p, a, $) => {
10
+ for (var r = void 0, i = m.length - 1, n; i >= 0; i--)
11
+ (n = m[i]) && (r = n(p, a, r) || r);
12
+ return r && y(p, a, r), r;
13
13
  };
14
- const m = class m extends c {
14
+ const l = class l extends f {
15
15
  constructor() {
16
16
  super(...arguments), this.color = "primary", this.size = "md";
17
17
  }
18
18
  render() {
19
- const e = f[this.name];
20
19
  return h`
21
20
  <div
22
- aria-hidden=${l(this.label ? void 0 : "true")}
23
- aria-label=${l(this.label)}
21
+ aria-hidden=${s(this.label ? void 0 : "true")}
22
+ aria-label=${s(this.label)}
24
23
  class=${u({
25
24
  icon: !0,
26
25
  [`icon--color-${this.color}`]: !0,
27
26
  [`icon--size-${this.size}`]: !0
28
27
  })}
29
- role=${l(this.label ? "img" : void 0)}
28
+ role=${s(this.label ? "img" : void 0)}
30
29
  >
31
- ${e}
30
+ ${c[this.name]}
32
31
  </div>
33
32
  `;
34
33
  }
35
34
  };
36
- m.styles = [d, v];
37
- let t = m;
38
- i([
39
- o({ reflect: !0 })
40
- ], t.prototype, "color");
41
- i([
42
- o()
43
- ], t.prototype, "label");
44
- i([
45
- o()
46
- ], t.prototype, "name");
47
- i([
48
- o({ reflect: !0 })
49
- ], t.prototype, "size");
35
+ l.styles = [d, v];
36
+ let e = l;
37
+ o([
38
+ t({ reflect: !0 })
39
+ ], e.prototype, "color");
40
+ o([
41
+ t()
42
+ ], e.prototype, "label");
43
+ o([
44
+ t()
45
+ ], e.prototype, "name");
46
+ o([
47
+ t({ reflect: !0 })
48
+ ], e.prototype, "size");
50
49
  export {
51
- t as SkfIcon
50
+ e as SkfIcon
52
51
  };
@@ -281,6 +281,155 @@
281
281
  }
282
282
  ]
283
283
  },
284
+ {
285
+ "kind": "javascript-module",
286
+ "path": "src/components/breadcrumb/breadcrumb.component.ts",
287
+ "declarations": [
288
+ {
289
+ "kind": "class",
290
+ "description": "The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.",
291
+ "name": "SkfBreadcrumb",
292
+ "slots": [
293
+ {
294
+ "description": "One or more `<skf-breadcrumb-item>`",
295
+ "name": ""
296
+ }
297
+ ],
298
+ "members": [
299
+ {
300
+ "kind": "field",
301
+ "name": "label",
302
+ "type": {
303
+ "text": "string"
304
+ },
305
+ "default": "'Breadcrumb'",
306
+ "description": "aria-label for the breadcrumb control",
307
+ "attribute": "label"
308
+ },
309
+ {
310
+ "kind": "field",
311
+ "name": "size",
312
+ "type": {
313
+ "text": "'md' | 'sm'"
314
+ },
315
+ "default": "'md'",
316
+ "description": "Displays an alternative size",
317
+ "attribute": "size",
318
+ "reflects": true
319
+ }
320
+ ],
321
+ "events": [
322
+ {
323
+ "description": "Fired when the item is clicked",
324
+ "name": "click"
325
+ }
326
+ ],
327
+ "attributes": [
328
+ {
329
+ "name": "label",
330
+ "type": {
331
+ "text": "string"
332
+ },
333
+ "default": "'Breadcrumb'",
334
+ "description": "aria-label for the breadcrumb control",
335
+ "fieldName": "label"
336
+ },
337
+ {
338
+ "name": "size",
339
+ "type": {
340
+ "text": "'md' | 'sm'"
341
+ },
342
+ "default": "'md'",
343
+ "description": "Displays an alternative size",
344
+ "fieldName": "size"
345
+ }
346
+ ],
347
+ "superclass": {
348
+ "name": "SkfElement",
349
+ "package": "@internal/components/skf-element"
350
+ },
351
+ "tagName": "skf-breadcrumb",
352
+ "customElement": true
353
+ }
354
+ ],
355
+ "exports": [
356
+ {
357
+ "kind": "js",
358
+ "name": "SkfBreadcrumb",
359
+ "declaration": {
360
+ "name": "SkfBreadcrumb",
361
+ "module": "src/components/breadcrumb/breadcrumb.component.ts"
362
+ }
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "kind": "javascript-module",
368
+ "path": "src/components/breadcrumb-item/breadcrumb-item.component.ts",
369
+ "declarations": [
370
+ {
371
+ "kind": "class",
372
+ "description": "The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component",
373
+ "name": "SkfBreadcrumbItem",
374
+ "slots": [
375
+ {
376
+ "description": "Label of the breadcrumb item",
377
+ "name": ""
378
+ }
379
+ ],
380
+ "members": [
381
+ {
382
+ "kind": "field",
383
+ "name": "_onClick",
384
+ "type": {
385
+ "text": "(event: Event, route: string) => void | undefined"
386
+ },
387
+ "privacy": "private"
388
+ },
389
+ {
390
+ "kind": "field",
391
+ "name": "href",
392
+ "type": {
393
+ "text": "string | undefined"
394
+ },
395
+ "description": "If defined, loads url on click",
396
+ "attribute": "href"
397
+ },
398
+ {
399
+ "kind": "field",
400
+ "name": "onClick",
401
+ "description": "If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined."
402
+ }
403
+ ],
404
+ "attributes": [
405
+ {
406
+ "name": "href",
407
+ "type": {
408
+ "text": "string | undefined"
409
+ },
410
+ "description": "If defined, loads url on click",
411
+ "fieldName": "href"
412
+ }
413
+ ],
414
+ "superclass": {
415
+ "name": "SkfElement",
416
+ "package": "@internal/components/skf-element"
417
+ },
418
+ "tagName": "skf-breadcrumb-item",
419
+ "customElement": true
420
+ }
421
+ ],
422
+ "exports": [
423
+ {
424
+ "kind": "js",
425
+ "name": "SkfBreadcrumbItem",
426
+ "declaration": {
427
+ "name": "SkfBreadcrumbItem",
428
+ "module": "src/components/breadcrumb-item/breadcrumb-item.component.ts"
429
+ }
430
+ }
431
+ ]
432
+ },
284
433
  {
285
434
  "kind": "javascript-module",
286
435
  "path": "src/components/button/button.component.ts",
@@ -1090,10 +1239,6 @@
1090
1239
  "description": "The dialog component's content",
1091
1240
  "name": ""
1092
1241
  },
1093
- {
1094
- "description": "The dialog component's heading",
1095
- "name": "heading"
1096
- },
1097
1242
  {
1098
1243
  "description": "The dialog component's buttons goes here",
1099
1244
  "name": "footer"
@@ -1,5 +1,7 @@
1
1
  export { default as SkfAccordion } from './skf-accordion/index.js';
2
2
  export { default as SkfAlert } from './skf-alert/index.js';
3
+ export { default as SkfBreadcrumb } from './skf-breadcrumb/index.js';
4
+ export { default as SkfBreadcrumbItem } from './skf-breadcrumb-item/index.js';
3
5
  export { default as SkfButton } from './skf-button/index.js';
4
6
  export { default as SkfCard } from './skf-card/index.js';
5
7
  export { default as SkfCheckbox } from './skf-checkbox/index.js';
@@ -1,5 +1,7 @@
1
1
  export { default as SkfAccordion } from './skf-accordion/index.js';
2
2
  export { default as SkfAlert } from './skf-alert/index.js';
3
+ export { default as SkfBreadcrumb } from './skf-breadcrumb/index.js';
4
+ export { default as SkfBreadcrumbItem } from './skf-breadcrumb-item/index.js';
3
5
  export { default as SkfButton } from './skf-button/index.js';
4
6
  export { default as SkfCard } from './skf-card/index.js';
5
7
  export { default as SkfCheckbox } from './skf-checkbox/index.js';
@@ -0,0 +1,9 @@
1
+ import Component from '../../components/breadcrumb/breadcrumb.js';
2
+ import { type SkfBreadcrumb } from '../../components/breadcrumb/breadcrumb.js';
3
+ import { type EventName } from '@lit/react';
4
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
5
+ onClick: EventName<Event & {
6
+ target: SkfBreadcrumb;
7
+ }>;
8
+ }>;
9
+ export default reactWrapper;
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/breadcrumb/breadcrumb.js';
4
+ import {} from '../../components/breadcrumb/breadcrumb.js';
5
+ import {} from '@lit/react';
6
+ const tagName = 'skf-breadcrumb';
7
+ Component.define('skf-breadcrumb');
8
+ const reactWrapper = createComponent({
9
+ tagName,
10
+ elementClass: Component,
11
+ react: React,
12
+ events: {
13
+ onClick: 'click',
14
+ },
15
+ displayName: 'SkfBreadcrumb',
16
+ });
17
+ export default reactWrapper;
@@ -0,0 +1,3 @@
1
+ import Component from '../../components/breadcrumb-item/breadcrumb-item.js';
2
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
3
+ export default reactWrapper;
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/breadcrumb-item/breadcrumb-item.js';
4
+ const tagName = 'skf-breadcrumb-item';
5
+ Component.define('skf-breadcrumb-item');
6
+ const reactWrapper = createComponent({
7
+ tagName,
8
+ elementClass: Component,
9
+ react: React,
10
+ events: {},
11
+ displayName: 'SkfBreadcrumbItem',
12
+ });
13
+ export default reactWrapper;
@@ -89,6 +89,23 @@ export type SkfAlertProps = {
89
89
  "onskf-alert-close"?: (e: CustomEvent<never>) => void;
90
90
  };
91
91
 
92
+ export type SkfBreadcrumbProps = {
93
+ /** aria-label for the breadcrumb control */
94
+ label?: string;
95
+ /** Displays an alternative size */
96
+ size?: "md" | "sm";
97
+
98
+ /** Fired when the item is clicked */
99
+ onclick?: (e: CustomEvent<never>) => void;
100
+ };
101
+
102
+ export type SkfBreadcrumbItemProps = {
103
+ /** If defined, loads url on click */
104
+ href?: string | undefined;
105
+ /** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
106
+ onClick?: string;
107
+ };
108
+
92
109
  export type SkfButtonProps = {
93
110
  /** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
94
111
  destructive?: boolean;
@@ -1555,6 +1572,29 @@ export type CustomElements = {
1555
1572
  */
1556
1573
  "skf-alert": Partial<SkfAlertProps & BaseProps & BaseEvents>;
1557
1574
 
1575
+ /**
1576
+ * The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
1577
+ * ---
1578
+ *
1579
+ *
1580
+ * ### **Events:**
1581
+ * - **click** - Fired when the item is clicked
1582
+ *
1583
+ * ### **Slots:**
1584
+ * - _default_ - One or more `<skf-breadcrumb-item>`
1585
+ */
1586
+ "skf-breadcrumb": Partial<SkfBreadcrumbProps & BaseProps & BaseEvents>;
1587
+
1588
+ /**
1589
+ * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
1590
+ * ---
1591
+ *
1592
+ *
1593
+ * ### **Slots:**
1594
+ * - _default_ - Label of the breadcrumb item
1595
+ */
1596
+ "skf-breadcrumb-item": Partial<SkfBreadcrumbItemProps & BaseProps & BaseEvents>;
1597
+
1558
1598
  /**
1559
1599
  * Component to be used in forms or for interactivity
1560
1600
  * ---
@@ -1625,7 +1665,6 @@ export type CustomElements = {
1625
1665
  *
1626
1666
  * ### **Slots:**
1627
1667
  * - _default_ - The dialog component's content
1628
- * - **heading** - The dialog component's heading
1629
1668
  * - **footer** - The dialog component's buttons goes here
1630
1669
  *
1631
1670
  * ### **CSS Properties:**
@@ -2,6 +2,8 @@ import type { DefineComponent } from "vue";
2
2
 
3
3
  import type { SkfAccordion } from "../../components/accordion/accordion.component.js";
4
4
  import type { SkfAlert } from "../../components/alert/alert.component.js";
5
+ import type { SkfBreadcrumb } from "../../components/breadcrumb/breadcrumb.component.js";
6
+ import type { SkfBreadcrumbItem } from "../../components/breadcrumb-item/breadcrumb-item.component.js";
5
7
  import type { SkfButton } from "../../components/button/button.component.js";
6
8
  import type { SkfCard } from "../../components/card/card.component.js";
7
9
  import type { SkfCheckbox } from "../../components/checkbox/checkbox.component.js";
@@ -63,6 +65,23 @@ type SkfAlertProps = {
63
65
  "onskf-alert-close"?: (e: CustomEvent<never>) => void;
64
66
  };
65
67
 
68
+ type SkfBreadcrumbProps = {
69
+ /** aria-label for the breadcrumb control */
70
+ label?: SkfBreadcrumb["label"];
71
+ /** Displays an alternative size */
72
+ size?: SkfBreadcrumb["size"];
73
+
74
+ /** Fired when the item is clicked */
75
+ onclick?: (e: CustomEvent<never>) => void;
76
+ };
77
+
78
+ type SkfBreadcrumbItemProps = {
79
+ /** If defined, loads url on click */
80
+ href?: SkfBreadcrumbItem["href"];
81
+ /** If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined. */
82
+ onClick?: SkfBreadcrumbItem["onClick"];
83
+ };
84
+
66
85
  type SkfButtonProps = {
67
86
  /** If true, gives destructive appearance. **Notice!** Only applicable if `variant` is `primary`. */
68
87
  destructive?: SkfButton["destructive"];
@@ -718,6 +737,29 @@ export type CustomElements = {
718
737
  */
719
738
  "skf-alert": DefineComponent<SkfAlertProps>;
720
739
 
740
+ /**
741
+ * The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.
742
+ * ---
743
+ *
744
+ *
745
+ * ### **Events:**
746
+ * - **click** - Fired when the item is clicked
747
+ *
748
+ * ### **Slots:**
749
+ * - _default_ - One or more `<skf-breadcrumb-item>`
750
+ */
751
+ "skf-breadcrumb": DefineComponent<SkfBreadcrumbProps>;
752
+
753
+ /**
754
+ * The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component
755
+ * ---
756
+ *
757
+ *
758
+ * ### **Slots:**
759
+ * - _default_ - Label of the breadcrumb item
760
+ */
761
+ "skf-breadcrumb-item": DefineComponent<SkfBreadcrumbItemProps>;
762
+
721
763
  /**
722
764
  * Component to be used in forms or for interactivity
723
765
  * ---
@@ -788,7 +830,6 @@ export type CustomElements = {
788
830
  *
789
831
  * ### **Slots:**
790
832
  * - _default_ - The dialog component's content
791
- * - **heading** - The dialog component's heading
792
833
  * - **footer** - The dialog component's buttons goes here
793
834
  *
794
835
  * ### **CSS Properties:**
@@ -77,6 +77,35 @@
77
77
  ],
78
78
  "references": []
79
79
  },
80
+ {
81
+ "name": "skf-breadcrumb",
82
+ "description": "The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.\n---\n\n\n### **Events:**\n - **click** - Fired when the item is clicked\n\n### **Slots:**\n - _default_ - One or more `<skf-breadcrumb-item>`",
83
+ "attributes": [
84
+ {
85
+ "name": "label",
86
+ "description": "aria-label for the breadcrumb control",
87
+ "values": []
88
+ },
89
+ {
90
+ "name": "size",
91
+ "description": "Displays an alternative size",
92
+ "values": [{ "name": "md" }, { "name": "sm" }]
93
+ }
94
+ ],
95
+ "references": []
96
+ },
97
+ {
98
+ "name": "skf-breadcrumb-item",
99
+ "description": "The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component\n---\n\n\n### **Slots:**\n - _default_ - Label of the breadcrumb item",
100
+ "attributes": [
101
+ {
102
+ "name": "href",
103
+ "description": "If defined, loads url on click",
104
+ "values": []
105
+ }
106
+ ],
107
+ "references": []
108
+ },
80
109
  {
81
110
  "name": "skf-button",
82
111
  "description": "Component to be used in forms or for interactivity\n---\n\n\n### **Events:**\n - **click** - Fires when the button is clicked\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n\n### **Slots:**\n - _default_ - The Primary content",
@@ -424,7 +453,7 @@
424
453
  },
425
454
  {
426
455
  "name": "skf-dialog",
427
- "description": "The `<skf-dialog>` is a component that open up a dialog with the content provided\n---\n\n\n### **Events:**\n - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)\n- **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)\n- **close** - Fires when the dialog is closed (after transitioned out)\n\n### **Slots:**\n - _default_ - The dialog component's content\n- **heading** - The dialog component's heading\n- **footer** - The dialog component's buttons goes here\n\n### **CSS Properties:**\n - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_\n- **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_",
456
+ "description": "The `<skf-dialog>` is a component that open up a dialog with the content provided\n---\n\n\n### **Events:**\n - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)\n- **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)\n- **close** - Fires when the dialog is closed (after transitioned out)\n\n### **Slots:**\n - _default_ - The dialog component's content\n- **footer** - The dialog component's buttons goes here\n\n### **CSS Properties:**\n - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_\n- **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_",
428
457
  "attributes": [
429
458
  {
430
459
  "name": "close-button-aria-label",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@skf-design-system/ui-components",
4
- "version": "1.0.0-beta.7",
4
+ "version": "1.0.0-beta.9",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -160,6 +160,79 @@
160
160
  ]
161
161
  }
162
162
  },
163
+ {
164
+ "name": "skf-breadcrumb",
165
+ "description": "The `<skf-breadcrumb>` component consists of multiple `<skf-breadcrumb-item>`, working together.\n---\n\n\n### **Events:**\n - **click** - Fired when the item is clicked\n\n### **Slots:**\n - _default_ - One or more `<skf-breadcrumb-item>`",
166
+ "doc-url": "",
167
+ "attributes": [
168
+ {
169
+ "name": "label",
170
+ "description": "aria-label for the breadcrumb control",
171
+ "value": { "type": "string", "default": "'Breadcrumb'" }
172
+ },
173
+ {
174
+ "name": "size",
175
+ "description": "Displays an alternative size",
176
+ "value": { "type": "'md' | 'sm'", "default": "'md'" }
177
+ }
178
+ ],
179
+ "slots": [
180
+ { "name": "", "description": "One or more `<skf-breadcrumb-item>`" }
181
+ ],
182
+ "events": [
183
+ { "name": "click", "description": "Fired when the item is clicked" }
184
+ ],
185
+ "js": {
186
+ "properties": [
187
+ {
188
+ "name": "label",
189
+ "description": "aria-label for the breadcrumb control",
190
+ "type": "string"
191
+ },
192
+ {
193
+ "name": "size",
194
+ "description": "Displays an alternative size",
195
+ "type": "'md' | 'sm'"
196
+ }
197
+ ],
198
+ "events": [
199
+ {
200
+ "name": "click",
201
+ "description": "Fired when the item is clicked"
202
+ }
203
+ ]
204
+ }
205
+ },
206
+ {
207
+ "name": "skf-breadcrumb-item",
208
+ "description": "The `<skf-breadcrumb-item>` is used in conjunction with the `<skf-breadcrumb>` component\n---\n\n\n### **Slots:**\n - _default_ - Label of the breadcrumb item",
209
+ "doc-url": "",
210
+ "attributes": [
211
+ {
212
+ "name": "href",
213
+ "description": "If defined, loads url on click",
214
+ "value": { "type": "string | undefined" }
215
+ }
216
+ ],
217
+ "slots": [
218
+ { "name": "", "description": "Label of the breadcrumb item" }
219
+ ],
220
+ "events": [],
221
+ "js": {
222
+ "properties": [
223
+ {
224
+ "name": "href",
225
+ "description": "If defined, loads url on click",
226
+ "type": "string | undefined"
227
+ },
228
+ {
229
+ "name": "onClick",
230
+ "description": "If defined, custom onClick where the second return parameter enables custom routing. **Notice!** Only applicable if `href` is defined."
231
+ }
232
+ ],
233
+ "events": []
234
+ }
235
+ },
163
236
  {
164
237
  "name": "skf-button",
165
238
  "description": "Component to be used in forms or for interactivity\n---\n\n\n### **Events:**\n - **click** - Fires when the button is clicked\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n\n### **Slots:**\n - _default_ - The Primary content",
@@ -573,7 +646,7 @@
573
646
  },
574
647
  {
575
648
  "name": "skf-dialog",
576
- "description": "The `<skf-dialog>` is a component that open up a dialog with the content provided\n---\n\n\n### **Events:**\n - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)\n- **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)\n- **close** - Fires when the dialog is closed (after transitioned out)\n\n### **Slots:**\n - _default_ - The dialog component's content\n- **heading** - The dialog component's heading\n- **footer** - The dialog component's buttons goes here\n\n### **CSS Properties:**\n - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_\n- **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_",
649
+ "description": "The `<skf-dialog>` is a component that open up a dialog with the content provided\n---\n\n\n### **Events:**\n - **skf-dialog-open** - Fires when the dialog is opened (after transitioned in)\n- **skf-dialog-close** - Fires when the dialog is closed (before transitioned out)\n- **close** - Fires when the dialog is closed (after transitioned out)\n\n### **Slots:**\n - _default_ - The dialog component's content\n- **footer** - The dialog component's buttons goes here\n\n### **CSS Properties:**\n - **--skf-dialog-height** - A custom height for the Dialog. Pass valid CSS **block-size** values _(default: undefined)_\n- **--skf-dialog-width** - A custom width for the Dialog Pass valid CSS **inline-size** values _(default: undefined)_",
577
650
  "doc-url": "",
578
651
  "attributes": [
579
652
  {
@@ -608,10 +681,6 @@
608
681
  ],
609
682
  "slots": [
610
683
  { "name": "", "description": "The dialog component's content" },
611
- {
612
- "name": "heading",
613
- "description": "The dialog component's heading"
614
- },
615
684
  {
616
685
  "name": "footer",
617
686
  "description": "The dialog component's buttons goes here"
package/package.json CHANGED
@@ -34,19 +34,19 @@
34
34
  "sideEffects": true,
35
35
  "type": "module",
36
36
  "types": "./dist/index.d.ts",
37
- "version": "1.0.0-alpha.32",
37
+ "version": "1.0.0-alpha.34",
38
38
  "dependencies": {
39
39
  "@floating-ui/dom": "^1.6.12"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@chromatic-com/storybook": "^3.2.2",
43
- "@commitlint/cli": "^19.6.0",
43
+ "@commitlint/cli": "^19.6.1",
44
44
  "@commitlint/config-conventional": "^19.6.0",
45
- "@custom-elements-manifest/analyzer": "^0.10.3",
46
- "@eslint/js": "^9.16.0",
45
+ "@custom-elements-manifest/analyzer": "^0.10.4",
46
+ "@eslint/js": "^9.17.0",
47
47
  "@lit/react": "^1.0.6",
48
- "@playwright/test": "^1.49.0",
49
- "@skf-design-system/ui-assets": "0.1.3-beta.9",
48
+ "@playwright/test": "^1.49.1",
49
+ "@skf-design-system/ui-assets": "0.1.3-beta.4",
50
50
  "@skf-design-system/wc-storybook-helpers": "^0.1.0",
51
51
  "@storybook/addon-a11y": "^8.4.7",
52
52
  "@storybook/addon-essentials": "^8.4.7",
@@ -59,7 +59,7 @@
59
59
  "@storybook/theming": "^8.4.7",
60
60
  "@storybook/web-components": "^8.4.7",
61
61
  "@storybook/web-components-vite": "^8.4.7",
62
- "@types/node": "^22.10.1",
62
+ "@types/node": "^22.10.2",
63
63
  "@types/react": "^18.3.12",
64
64
  "cem-plugin-expanded-types": "^1.3.3",
65
65
  "command-line-args": "^6.0.1",
@@ -69,27 +69,27 @@
69
69
  "custom-element-vs-code-integration": "^1.4.1",
70
70
  "custom-element-vuejs-integration": "^1.3.3",
71
71
  "del": "^8.0.0",
72
- "eslint": "^9.16.0",
72
+ "eslint": "^9.17.0",
73
73
  "eslint-config-prettier": "^9.1.0",
74
74
  "eslint-plugin-lit": "^1.15.0",
75
75
  "eslint-plugin-lit-a11y": "^4.1.4",
76
76
  "eslint-plugin-wc": "^2.2.0",
77
77
  "express": "^4.21.2",
78
78
  "husky": "^9.1.7",
79
- "lint-staged": "^15.2.10",
79
+ "lint-staged": "^15.2.11",
80
80
  "lit": "^3.2.1",
81
81
  "postcss-styled-syntax": "^0.7.0",
82
82
  "prettier": "3.4.2",
83
83
  "react": "^18.3.1",
84
84
  "storybook": "^8.4.7",
85
- "stylelint": "^16.11.0",
85
+ "stylelint": "^16.12.0",
86
86
  "stylelint-config-standard": "^36.0.1",
87
87
  "stylelint-no-unsupported-browser-features": "^8.0.2",
88
88
  "stylelint-order": "^6.0.4",
89
89
  "stylelint-value-no-unknown-custom-properties": "^6.0.1",
90
90
  "tsc-alias": "^1.8.10",
91
91
  "typescript": "^5.7.2",
92
- "typescript-eslint": "^8.17.0",
92
+ "typescript-eslint": "^8.18.1",
93
93
  "vite": "^6.0.3",
94
94
  "vite-tsconfig-paths": "^5.1.4"
95
95
  },