@skdx/web-components-blocks 0.39.0 → 0.40.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.
Files changed (50) hide show
  1. package/custom-elements.json +601 -586
  2. package/dist/dashboard-layout/DashboardLayout.cjs +16 -16
  3. package/dist/dashboard-layout/DashboardLayout.d.cts +9 -3
  4. package/dist/dashboard-layout/DashboardLayout.d.ts +9 -3
  5. package/dist/dashboard-layout/DashboardLayout.js +14 -14
  6. package/dist/empty-state/EmptyState.cjs +2 -2
  7. package/dist/empty-state/EmptyState.d.cts +2 -2
  8. package/dist/empty-state/EmptyState.d.ts +2 -2
  9. package/dist/empty-state/EmptyState.js +2 -2
  10. package/dist/forgot-password-page/ForgotPasswordPage.cjs +1 -1
  11. package/dist/forgot-password-page/ForgotPasswordPage.d.cts +1 -1
  12. package/dist/forgot-password-page/ForgotPasswordPage.d.ts +1 -1
  13. package/dist/forgot-password-page/ForgotPasswordPage.js +1 -1
  14. package/dist/form-section/FormSection.cjs +2 -2
  15. package/dist/form-section/FormSection.d.cts +2 -2
  16. package/dist/form-section/FormSection.d.ts +2 -2
  17. package/dist/form-section/FormSection.js +2 -2
  18. package/dist/internal/define.cjs +1 -1
  19. package/dist/internal/define.js +1 -1
  20. package/dist/notification-center/NotificationCenter.cjs +1 -1
  21. package/dist/notification-center/NotificationCenter.d.cts +1 -1
  22. package/dist/notification-center/NotificationCenter.d.ts +1 -1
  23. package/dist/notification-center/NotificationCenter.js +1 -1
  24. package/dist/onboarding-checklist/OnboardingChecklist.cjs +1 -1
  25. package/dist/onboarding-checklist/OnboardingChecklist.d.cts +2 -2
  26. package/dist/onboarding-checklist/OnboardingChecklist.d.ts +2 -2
  27. package/dist/onboarding-checklist/OnboardingChecklist.js +1 -1
  28. package/dist/page-container/PageContainer.cjs +6 -6
  29. package/dist/page-container/PageContainer.d.cts +2 -2
  30. package/dist/page-container/PageContainer.d.ts +2 -2
  31. package/dist/page-container/PageContainer.js +2 -2
  32. package/dist/reset-password-page/ResetPasswordPage.cjs +1 -1
  33. package/dist/reset-password-page/ResetPasswordPage.d.cts +1 -1
  34. package/dist/reset-password-page/ResetPasswordPage.d.ts +1 -1
  35. package/dist/reset-password-page/ResetPasswordPage.js +1 -1
  36. package/dist/sign-in-page/SignInPage.cjs +3 -3
  37. package/dist/sign-in-page/SignInPage.d.cts +1 -1
  38. package/dist/sign-in-page/SignInPage.d.ts +1 -1
  39. package/dist/sign-in-page/SignInPage.js +3 -3
  40. package/dist/sign-up-page/SignUpPage.cjs +1 -1
  41. package/dist/sign-up-page/SignUpPage.d.cts +1 -1
  42. package/dist/sign-up-page/SignUpPage.d.ts +1 -1
  43. package/dist/sign-up-page/SignUpPage.js +1 -1
  44. package/dist/verification-page/VerificationPage.cjs +1 -1
  45. package/dist/verification-page/VerificationPage.d.cts +1 -1
  46. package/dist/verification-page/VerificationPage.d.ts +1 -1
  47. package/dist/verification-page/VerificationPage.js +1 -1
  48. package/dist/workspace-switcher/WorkspaceSwitcher.d.cts +0 -1
  49. package/dist/workspace-switcher/WorkspaceSwitcher.d.ts +0 -1
  50. package/package.json +3 -3
@@ -1,18 +1,18 @@
1
- "use strict";var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var _=Object.prototype.hasOwnProperty;var y=(n,e)=>{for(var a in e)s(n,a,{get:e[a],enumerable:!0})},k=(n,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of m(e))!_.call(n,r)&&r!==a&&s(n,r,{get:()=>e[r],enumerable:!(o=u(e,r))||o.enumerable});return n};var x=n=>k(s({},"__esModule",{value:!0}),n),l=(n,e,a,o)=>{for(var r=o>1?void 0:o?u(e,a):e,v=n.length-1,h;v>=0;v--)(h=n[v])&&(r=(o?h(e,a,r):h(r))||r);return o&&r&&s(e,a,r),r};var N={};y(N,{SkdxDashboardLayout:()=>i});module.exports=x(N);var t=require("lit"),d=require("lit/decorators.js"),c=require("../internal/define.cjs"),b=require("../internal/events.cjs"),g=require("../internal/slots.cjs");var f="data-skdx-dashboard-layout-generated",p={fromAttribute:n=>n!=="false"},$=0,i=class extends t.LitElement{constructor(){super(...arguments);this.title="";this.defaultNavOpen=!0;this.navLabel="Main navigation";this.navToggleLabel="Toggle navigation";this.navId=`skdx-dashboard-layout-nav-${++$}`;this.toggleNav=()=>{let a=!this.open;this.uncontrolledNavOpen=a,this.requestUpdate(),(0,b.emit)(this,"nav-open-change",a)}}createRenderRoot(){return this}get open(){return this.navOpen??this.uncontrolledNavOpen??this.defaultNavOpen}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.requestUpdate())}region(a){return this.querySelector(`.skdx-dashboard-layout__${a}`)}updated(){this.toggleAttribute("data-nav-open",this.open),(0,g.placeSlotted)(this,f,{branding:this.region("branding"),actions:this.region("actions")},this.region("content"))}navList(a){return t.html`<ul class="skdx-dashboard-layout__nav-list">
2
- ${a.map(o=>this.navItem(o))}
3
- </ul>`}navItem(a){return a.kind==="divider"?t.html`<li>
1
+ "use strict";var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var _=(n,a)=>{for(var t in a)s(n,t,{get:a[t],enumerable:!0})},f=(n,a,t,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of m(a))!y.call(n,r)&&r!==t&&s(n,r,{get:()=>a[r],enumerable:!(i=u(a,r))||i.enumerable});return n};var k=n=>f(s({},"__esModule",{value:!0}),n),d=(n,a,t,i)=>{for(var r=i>1?void 0:i?u(a,t):a,v=n.length-1,h;v>=0;v--)(h=n[v])&&(r=(i?h(a,t,r):h(r))||r);return i&&r&&s(a,t,r),r};var N={};_(N,{SkdxDashboardLayout:()=>o});module.exports=k(N);var e=require("lit"),l=require("lit/decorators.js"),p=require("../internal/define.cjs"),b=require("../internal/events.cjs"),g=require("../internal/slots.cjs");var x="data-skdx-dashboard-layout-generated",c={fromAttribute:n=>n!=="false"},$=0,o=class extends e.LitElement{constructor(){super(...arguments);this.title="";this.contentAs="main";this.defaultNavOpen=!0;this.navLabel="Main navigation";this.navToggleLabel="Toggle navigation";this.navId=`skdx-dashboard-layout-nav-${++$}`;this.toggleNav=()=>{let t=!this.open;this.uncontrolledNavOpen=t,this.requestUpdate(),(0,b.emit)(this,"nav-open-change",t)}}createRenderRoot(){return this}get open(){return this.navOpen??this.uncontrolledNavOpen??this.defaultNavOpen}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.requestUpdate())}region(t){return this.querySelector(`.skdx-dashboard-layout__${t}`)}willUpdate(t){if(t.has("contentAs")){let i=this.region("content");i&&this.append(...Array.from(i.childNodes))}}updated(){this.toggleAttribute("data-nav-open",this.open),(0,g.placeSlotted)(this,x,{branding:this.region("branding"),actions:this.region("actions")},this.region("content"))}navList(t){return e.html`<ul class="skdx-dashboard-layout__nav-list">
2
+ ${t.map(i=>this.navItem(i))}
3
+ </ul>`}navItem(t){return t.kind==="divider"?e.html`<li>
4
4
  <hr class="skdx-dashboard-layout__nav-divider" />
5
- </li>`:a.kind==="header"?t.html`<li class="skdx-dashboard-layout__nav-header">${a.label??""}</li>`:a.href!==void 0?t.html`<li>
5
+ </li>`:t.kind==="header"?e.html`<li class="skdx-dashboard-layout__nav-header">${t.label??""}</li>`:t.href!==void 0?e.html`<li>
6
6
  <a
7
7
  class="skdx-dashboard-layout__nav-item"
8
- href=${a.href}
9
- aria-current=${a.current?"page":t.nothing}
10
- >${a.label??""}</a
8
+ href=${t.href}
9
+ aria-current=${t.current?"page":e.nothing}
10
+ >${t.label??""}</a
11
11
  >
12
- </li>`:t.html`<li>
13
- <span class="skdx-dashboard-layout__nav-item">${a.label??""}</span>
14
- ${a.children?.length?this.navList(a.children):t.nothing}
15
- </li>`}render(){let a=this.open;return t.html`
12
+ </li>`:e.html`<li>
13
+ <span class="skdx-dashboard-layout__nav-item">${t.label??""}</span>
14
+ ${t.children?.length?this.navList(t.children):e.nothing}
15
+ </li>`}render(){let t=this.open;return e.html`
16
16
  <header
17
17
  class="skdx-dashboard-layout__app-bar"
18
18
  data-skdx-dashboard-layout-generated
@@ -21,7 +21,7 @@
21
21
  class="skdx-button skdx-dashboard-layout__nav-toggle"
22
22
  type="button"
23
23
  data-icon-only
24
- aria-expanded=${a?"true":"false"}
24
+ aria-expanded=${t?"true":"false"}
25
25
  aria-controls=${this.navId}
26
26
  aria-label=${this.navToggleLabel}
27
27
  @click=${this.toggleNav}
@@ -29,7 +29,7 @@
29
29
 
30
30
  </button>
31
31
  <div class="skdx-dashboard-layout__branding"></div>
32
- ${this.title?t.html`<span class="skdx-dashboard-layout__title">${this.title}</span>`:t.nothing}
32
+ ${this.title?e.html`<span class="skdx-dashboard-layout__title">${this.title}</span>`:e.nothing}
33
33
  <div class="skdx-dashboard-layout__actions"></div>
34
34
  </header>
35
35
  <div
@@ -40,10 +40,10 @@
40
40
  id=${this.navId}
41
41
  class="skdx-dashboard-layout__nav"
42
42
  aria-label=${this.navLabel}
43
- ?hidden=${!a}
43
+ ?hidden=${!t}
44
44
  >
45
45
  ${this.navList(this.navigation??[])}
46
46
  </nav>
47
- <main class="skdx-dashboard-layout__content"></main>
47
+ ${this.contentAs==="div"?e.html`<div class="skdx-dashboard-layout__content"></div>`:e.html`<main class="skdx-dashboard-layout__content"></main>`}
48
48
  </div>
49
- `}};l([(0,d.property)({type:String})],i.prototype,"title",2),l([(0,d.property)({attribute:!1})],i.prototype,"navigation",2),l([(0,d.property)({converter:p,attribute:"nav-open"})],i.prototype,"navOpen",2),l([(0,d.property)({converter:p,attribute:"default-nav-open"})],i.prototype,"defaultNavOpen",2),l([(0,d.property)({type:String,attribute:"nav-label"})],i.prototype,"navLabel",2),l([(0,d.property)({type:String,attribute:"nav-toggle-label"})],i.prototype,"navToggleLabel",2),i=l([(0,c.customElement)("skdx-dashboard-layout","dashboard-layout","root")],i);0&&(module.exports={SkdxDashboardLayout});
49
+ `}};d([(0,l.property)({type:String,attribute:"heading"})],o.prototype,"title",2),d([(0,l.property)({attribute:!1})],o.prototype,"navigation",2),d([(0,l.property)({type:String,attribute:"content-as"})],o.prototype,"contentAs",2),d([(0,l.property)({converter:c,attribute:"nav-open"})],o.prototype,"navOpen",2),d([(0,l.property)({converter:c,attribute:"default-nav-open"})],o.prototype,"defaultNavOpen",2),d([(0,l.property)({type:String,attribute:"nav-label"})],o.prototype,"navLabel",2),d([(0,l.property)({type:String,attribute:"nav-toggle-label"})],o.prototype,"navToggleLabel",2),o=d([(0,p.customElement)("skdx-dashboard-layout","dashboard-layout","root")],o);0&&(module.exports={SkdxDashboardLayout});
@@ -1,4 +1,4 @@
1
- import { LitElement, type TemplateResult } from 'lit';
1
+ import { LitElement, type PropertyValues, type TemplateResult } from 'lit';
2
2
  /** One entry of a `<skdx-dashboard-layout>` side navigation. */
3
3
  export interface SkdxDashboardNavigationItem {
4
4
  /** What the entry renders as: a navigation row, a group label, or a rule. @default 'item' */
@@ -23,7 +23,7 @@ export interface SkdxDashboardNavigationItem {
23
23
  *
24
24
  * @example
25
25
  * ```html
26
- * <skdx-dashboard-layout id="shell" title="Acme">
26
+ * <skdx-dashboard-layout id="shell" heading="Acme">
27
27
  * <p>Dashboard content.</p>
28
28
  * </skdx-dashboard-layout>
29
29
  * <script>
@@ -40,12 +40,17 @@ export declare class SkdxDashboardLayout extends LitElement {
40
40
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
41
41
  createRenderRoot(): HTMLElement | DocumentFragment;
42
42
  /**
43
- * Application title shown in the app bar after the branding, shadowing the native tooltip attribute.
43
+ * Application title shown in the app bar after the branding. The JavaScript property is `title`.
44
44
  * @default '' — no title renders.
45
45
  */
46
46
  title: string;
47
47
  /** The side navigation, one entry per row, nested through each entry's `children`. */
48
48
  navigation: readonly SkdxDashboardNavigationItem[];
49
+ /**
50
+ * Content element: use `div` when embedding inside an existing page main landmark.
51
+ * @default 'main'
52
+ */
53
+ contentAs: 'main' | 'div';
49
54
  /**
50
55
  * Whether the side navigation is shown, for controlled usage.
51
56
  * @default undefined — uncontrolled, following `defaultNavOpen`.
@@ -75,6 +80,7 @@ export declare class SkdxDashboardLayout extends LitElement {
75
80
  connectedCallback(): void;
76
81
  private readonly toggleNav;
77
82
  private region;
83
+ protected willUpdate(changed: PropertyValues<this>): void;
78
84
  protected updated(): void;
79
85
  private navList;
80
86
  private navItem;
@@ -1,4 +1,4 @@
1
- import { LitElement, type TemplateResult } from 'lit';
1
+ import { LitElement, type PropertyValues, type TemplateResult } from 'lit';
2
2
  /** One entry of a `<skdx-dashboard-layout>` side navigation. */
3
3
  export interface SkdxDashboardNavigationItem {
4
4
  /** What the entry renders as: a navigation row, a group label, or a rule. @default 'item' */
@@ -23,7 +23,7 @@ export interface SkdxDashboardNavigationItem {
23
23
  *
24
24
  * @example
25
25
  * ```html
26
- * <skdx-dashboard-layout id="shell" title="Acme">
26
+ * <skdx-dashboard-layout id="shell" heading="Acme">
27
27
  * <p>Dashboard content.</p>
28
28
  * </skdx-dashboard-layout>
29
29
  * <script>
@@ -40,12 +40,17 @@ export declare class SkdxDashboardLayout extends LitElement {
40
40
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
41
41
  createRenderRoot(): HTMLElement | DocumentFragment;
42
42
  /**
43
- * Application title shown in the app bar after the branding, shadowing the native tooltip attribute.
43
+ * Application title shown in the app bar after the branding. The JavaScript property is `title`.
44
44
  * @default '' — no title renders.
45
45
  */
46
46
  title: string;
47
47
  /** The side navigation, one entry per row, nested through each entry's `children`. */
48
48
  navigation: readonly SkdxDashboardNavigationItem[];
49
+ /**
50
+ * Content element: use `div` when embedding inside an existing page main landmark.
51
+ * @default 'main'
52
+ */
53
+ contentAs: 'main' | 'div';
49
54
  /**
50
55
  * Whether the side navigation is shown, for controlled usage.
51
56
  * @default undefined — uncontrolled, following `defaultNavOpen`.
@@ -75,6 +80,7 @@ export declare class SkdxDashboardLayout extends LitElement {
75
80
  connectedCallback(): void;
76
81
  private readonly toggleNav;
77
82
  private region;
83
+ protected willUpdate(changed: PropertyValues<this>): void;
78
84
  protected updated(): void;
79
85
  private navList;
80
86
  private navItem;
@@ -1,18 +1,18 @@
1
- var p=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var t=(l,d,a,i)=>{for(var n=i>1?void 0:i?c(d,a):d,s=l.length-1,v;s>=0;s--)(v=l[s])&&(n=(i?v(d,a,n):v(n))||n);return i&&n&&p(d,a,n),n};import{html as r,LitElement as b,nothing as h}from"lit";import{property as o}from"lit/decorators.js";import{customElement as g}from"../internal/define.js";import{emit as m}from"../internal/events.js";import{placeSlotted as _}from"../internal/slots.js";var y="data-skdx-dashboard-layout-generated",u={fromAttribute:l=>l!=="false"},k=0,e=class extends b{constructor(){super(...arguments);this.title="";this.defaultNavOpen=!0;this.navLabel="Main navigation";this.navToggleLabel="Toggle navigation";this.navId=`skdx-dashboard-layout-nav-${++k}`;this.toggleNav=()=>{let a=!this.open;this.uncontrolledNavOpen=a,this.requestUpdate(),m(this,"nav-open-change",a)}}createRenderRoot(){return this}get open(){return this.navOpen??this.uncontrolledNavOpen??this.defaultNavOpen}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.requestUpdate())}region(a){return this.querySelector(`.skdx-dashboard-layout__${a}`)}updated(){this.toggleAttribute("data-nav-open",this.open),_(this,y,{branding:this.region("branding"),actions:this.region("actions")},this.region("content"))}navList(a){return r`<ul class="skdx-dashboard-layout__nav-list">
2
- ${a.map(i=>this.navItem(i))}
3
- </ul>`}navItem(a){return a.kind==="divider"?r`<li>
1
+ var c=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var n=(d,l,t,a)=>{for(var i=a>1?void 0:a?p(l,t):l,s=d.length-1,v;s>=0;s--)(v=d[s])&&(i=(a?v(l,t,i):v(i))||i);return a&&i&&c(l,t,i),i};import{html as r,LitElement as b,nothing as h}from"lit";import{property as o}from"lit/decorators.js";import{customElement as g}from"../internal/define.js";import{emit as m}from"../internal/events.js";import{placeSlotted as y}from"../internal/slots.js";var _="data-skdx-dashboard-layout-generated",u={fromAttribute:d=>d!=="false"},f=0,e=class extends b{constructor(){super(...arguments);this.title="";this.contentAs="main";this.defaultNavOpen=!0;this.navLabel="Main navigation";this.navToggleLabel="Toggle navigation";this.navId=`skdx-dashboard-layout-nav-${++f}`;this.toggleNav=()=>{let t=!this.open;this.uncontrolledNavOpen=t,this.requestUpdate(),m(this,"nav-open-change",t)}}createRenderRoot(){return this}get open(){return this.navOpen??this.uncontrolledNavOpen??this.defaultNavOpen}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.requestUpdate())}region(t){return this.querySelector(`.skdx-dashboard-layout__${t}`)}willUpdate(t){if(t.has("contentAs")){let a=this.region("content");a&&this.append(...Array.from(a.childNodes))}}updated(){this.toggleAttribute("data-nav-open",this.open),y(this,_,{branding:this.region("branding"),actions:this.region("actions")},this.region("content"))}navList(t){return r`<ul class="skdx-dashboard-layout__nav-list">
2
+ ${t.map(a=>this.navItem(a))}
3
+ </ul>`}navItem(t){return t.kind==="divider"?r`<li>
4
4
  <hr class="skdx-dashboard-layout__nav-divider" />
5
- </li>`:a.kind==="header"?r`<li class="skdx-dashboard-layout__nav-header">${a.label??""}</li>`:a.href!==void 0?r`<li>
5
+ </li>`:t.kind==="header"?r`<li class="skdx-dashboard-layout__nav-header">${t.label??""}</li>`:t.href!==void 0?r`<li>
6
6
  <a
7
7
  class="skdx-dashboard-layout__nav-item"
8
- href=${a.href}
9
- aria-current=${a.current?"page":h}
10
- >${a.label??""}</a
8
+ href=${t.href}
9
+ aria-current=${t.current?"page":h}
10
+ >${t.label??""}</a
11
11
  >
12
12
  </li>`:r`<li>
13
- <span class="skdx-dashboard-layout__nav-item">${a.label??""}</span>
14
- ${a.children?.length?this.navList(a.children):h}
15
- </li>`}render(){let a=this.open;return r`
13
+ <span class="skdx-dashboard-layout__nav-item">${t.label??""}</span>
14
+ ${t.children?.length?this.navList(t.children):h}
15
+ </li>`}render(){let t=this.open;return r`
16
16
  <header
17
17
  class="skdx-dashboard-layout__app-bar"
18
18
  data-skdx-dashboard-layout-generated
@@ -21,7 +21,7 @@ var p=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var t=(l,d,a,i
21
21
  class="skdx-button skdx-dashboard-layout__nav-toggle"
22
22
  type="button"
23
23
  data-icon-only
24
- aria-expanded=${a?"true":"false"}
24
+ aria-expanded=${t?"true":"false"}
25
25
  aria-controls=${this.navId}
26
26
  aria-label=${this.navToggleLabel}
27
27
  @click=${this.toggleNav}
@@ -40,10 +40,10 @@ var p=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var t=(l,d,a,i
40
40
  id=${this.navId}
41
41
  class="skdx-dashboard-layout__nav"
42
42
  aria-label=${this.navLabel}
43
- ?hidden=${!a}
43
+ ?hidden=${!t}
44
44
  >
45
45
  ${this.navList(this.navigation??[])}
46
46
  </nav>
47
- <main class="skdx-dashboard-layout__content"></main>
47
+ ${this.contentAs==="div"?r`<div class="skdx-dashboard-layout__content"></div>`:r`<main class="skdx-dashboard-layout__content"></main>`}
48
48
  </div>
49
- `}};t([o({type:String})],e.prototype,"title",2),t([o({attribute:!1})],e.prototype,"navigation",2),t([o({converter:u,attribute:"nav-open"})],e.prototype,"navOpen",2),t([o({converter:u,attribute:"default-nav-open"})],e.prototype,"defaultNavOpen",2),t([o({type:String,attribute:"nav-label"})],e.prototype,"navLabel",2),t([o({type:String,attribute:"nav-toggle-label"})],e.prototype,"navToggleLabel",2),e=t([g("skdx-dashboard-layout","dashboard-layout","root")],e);export{e as SkdxDashboardLayout};
49
+ `}};n([o({type:String,attribute:"heading"})],e.prototype,"title",2),n([o({attribute:!1})],e.prototype,"navigation",2),n([o({type:String,attribute:"content-as"})],e.prototype,"contentAs",2),n([o({converter:u,attribute:"nav-open"})],e.prototype,"navOpen",2),n([o({converter:u,attribute:"default-nav-open"})],e.prototype,"defaultNavOpen",2),n([o({type:String,attribute:"nav-label"})],e.prototype,"navLabel",2),n([o({type:String,attribute:"nav-toggle-label"})],e.prototype,"navToggleLabel",2),e=n([g("skdx-dashboard-layout","dashboard-layout","root")],e);export{e as SkdxDashboardLayout};
@@ -1,4 +1,4 @@
1
- "use strict";var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var x=(a,t)=>{for(var e in t)l(a,e,{get:t[e],enumerable:!0})},k=(a,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of v(t))!y.call(a,s)&&s!==e&&l(a,s,{get:()=>t[s],enumerable:!(r=m(t,s))||r.enumerable});return a};var $=a=>k(l({},"__esModule",{value:!0}),a),d=(a,t,e,r)=>{for(var s=r>1?void 0:r?m(t,e):t,p=a.length-1,c;p>=0;p--)(c=a[p])&&(s=(r?c(t,e,s):c(s))||s);return r&&s&&l(t,e,s),s};var b={};x(b,{SkdxEmptyState:()=>n});module.exports=$(b);var i=require("lit"),o=require("lit/decorators.js"),u=require("../internal/define.cjs"),h=require("../internal/slots.cjs"),T=require("@skdx/web-components/heading"),L=require("@skdx/web-components/text");var g="data-skdx-empty-state-generated",_=0,n=class extends i.LitElement{constructor(){super(...arguments);this.headingLevel=3;this.align="center";this.titleId=`skdx-empty-state-title-${++_}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.requestUpdate())}region(e){return this.querySelector(`.skdx-empty-state__${e}`)}hasSlotted(e){return this.querySelector(`[slot="${e}"], [data-skdx-slot="${e}"]`)!==null}get hasContent(){return(0,h.hasUnslottedChild)(this,g)||(this.region("content")?.hasChildNodes()??!1)}updated(){this.setAttribute("data-align",this.align),this.size===void 0?this.removeAttribute("data-size"):this.setAttribute("data-size",this.size),(0,h.placeSlotted)(this,g,{icon:this.region("icon"),actions:this.region("actions")},this.region("content"))}render(){return i.html`
1
+ "use strict";var l=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var x=(a,t)=>{for(var e in t)l(a,e,{get:t[e],enumerable:!0})},k=(a,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of v(t))!y.call(a,s)&&s!==e&&l(a,s,{get:()=>t[s],enumerable:!(r=g(t,s))||r.enumerable});return a};var $=a=>k(l({},"__esModule",{value:!0}),a),d=(a,t,e,r)=>{for(var s=r>1?void 0:r?g(t,e):t,p=a.length-1,c;p>=0;p--)(c=a[p])&&(s=(r?c(t,e,s):c(s))||s);return r&&s&&l(t,e,s),s};var b={};x(b,{SkdxEmptyState:()=>n});module.exports=$(b);var i=require("lit"),o=require("lit/decorators.js"),u=require("../internal/define.cjs"),h=require("../internal/slots.cjs"),T=require("@skdx/web-components/heading"),L=require("@skdx/web-components/text");var m="data-skdx-empty-state-generated",_=0,n=class extends i.LitElement{constructor(){super(...arguments);this.headingLevel=3;this.align="center";this.titleId=`skdx-empty-state-title-${++_}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.requestUpdate())}region(e){return this.querySelector(`.skdx-empty-state__${e}`)}hasSlotted(e){return this.querySelector(`[slot="${e}"], [data-skdx-slot="${e}"]`)!==null}get hasContent(){return(0,h.hasUnslottedChild)(this,m)||(this.region("content")?.hasChildNodes()??!1)}updated(){this.setAttribute("data-align",this.align),this.size===void 0?this.removeAttribute("data-size"):this.setAttribute("data-size",this.size),(0,h.placeSlotted)(this,m,{icon:this.region("icon"),actions:this.region("actions")},this.region("content"))}render(){return i.html`
2
2
  ${this.hasSlotted("icon")?i.html`<div
3
3
  class="skdx-empty-state__icon"
4
4
  aria-hidden="true"
@@ -26,4 +26,4 @@
26
26
  class="skdx-empty-state__actions"
27
27
  data-skdx-empty-state-generated
28
28
  ></div>`:i.nothing}
29
- `}};d([(0,o.property)({type:String})],n.prototype,"title",2),d([(0,o.property)({type:String})],n.prototype,"description",2),d([(0,o.property)({type:Number,attribute:"heading-level"})],n.prototype,"headingLevel",2),d([(0,o.property)({type:String})],n.prototype,"size",2),d([(0,o.property)({type:String})],n.prototype,"align",2),n=d([(0,u.customElement)("skdx-empty-state","empty-state","root")],n);0&&(module.exports={SkdxEmptyState});
29
+ `}};d([(0,o.property)({type:String,attribute:"heading"})],n.prototype,"title",2),d([(0,o.property)({type:String})],n.prototype,"description",2),d([(0,o.property)({type:Number,attribute:"heading-level"})],n.prototype,"headingLevel",2),d([(0,o.property)({type:String})],n.prototype,"size",2),d([(0,o.property)({type:String})],n.prototype,"align",2),n=d([(0,u.customElement)("skdx-empty-state","empty-state","root")],n);0&&(module.exports={SkdxEmptyState});
@@ -15,7 +15,7 @@ import '@skdx/web-components/text';
15
15
  * @example
16
16
  * ```html
17
17
  * <skdx-empty-state
18
- * title="No invoices yet"
18
+ * heading="No invoices yet"
19
19
  * description="Invoices you create will show up here."
20
20
  * >
21
21
  * <svg slot="icon"></svg>
@@ -30,7 +30,7 @@ import '@skdx/web-components/text';
30
30
  export declare class SkdxEmptyState extends LitElement {
31
31
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
32
32
  createRenderRoot(): HTMLElement | DocumentFragment;
33
- /** Heading text naming the empty region, rendered into a derived Heading. */
33
+ /** Heading text naming the empty region, rendered into a derived Heading. The JavaScript property is `title`. */
34
34
  title: string;
35
35
  /**
36
36
  * Supporting copy rendered below the title, explaining why the region is empty.
@@ -15,7 +15,7 @@ import '@skdx/web-components/text';
15
15
  * @example
16
16
  * ```html
17
17
  * <skdx-empty-state
18
- * title="No invoices yet"
18
+ * heading="No invoices yet"
19
19
  * description="Invoices you create will show up here."
20
20
  * >
21
21
  * <svg slot="icon"></svg>
@@ -30,7 +30,7 @@ import '@skdx/web-components/text';
30
30
  export declare class SkdxEmptyState extends LitElement {
31
31
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
32
32
  createRenderRoot(): HTMLElement | DocumentFragment;
33
- /** Heading text naming the empty region, rendered into a derived Heading. */
33
+ /** Heading text naming the empty region, rendered into a derived Heading. The JavaScript property is `title`. */
34
34
  title: string;
35
35
  /**
36
36
  * Supporting copy rendered below the title, explaining why the region is empty.
@@ -1,4 +1,4 @@
1
- var m=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var i=(l,a,e,d)=>{for(var s=d>1?void 0:d?g(a,e):a,h=l.length-1,p;h>=0;h--)(p=l[h])&&(s=(d?p(a,e,s):p(s))||s);return d&&s&&m(a,e,s),s};import{html as n,LitElement as u,nothing as o}from"lit";import{property as r}from"lit/decorators.js";import{customElement as v}from"../internal/define.js";import{hasUnslottedChild as y,placeSlotted as x}from"../internal/slots.js";import"@skdx/web-components/heading";import"@skdx/web-components/text";var c="data-skdx-empty-state-generated",k=0,t=class extends u{constructor(){super(...arguments);this.headingLevel=3;this.align="center";this.titleId=`skdx-empty-state-title-${++k}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.requestUpdate())}region(e){return this.querySelector(`.skdx-empty-state__${e}`)}hasSlotted(e){return this.querySelector(`[slot="${e}"], [data-skdx-slot="${e}"]`)!==null}get hasContent(){return y(this,c)||(this.region("content")?.hasChildNodes()??!1)}updated(){this.setAttribute("data-align",this.align),this.size===void 0?this.removeAttribute("data-size"):this.setAttribute("data-size",this.size),x(this,c,{icon:this.region("icon"),actions:this.region("actions")},this.region("content"))}render(){return n`
1
+ var g=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var i=(l,a,e,d)=>{for(var s=d>1?void 0:d?m(a,e):a,h=l.length-1,p;h>=0;h--)(p=l[h])&&(s=(d?p(a,e,s):p(s))||s);return d&&s&&g(a,e,s),s};import{html as n,LitElement as u,nothing as o}from"lit";import{property as r}from"lit/decorators.js";import{customElement as v}from"../internal/define.js";import{hasUnslottedChild as y,placeSlotted as x}from"../internal/slots.js";import"@skdx/web-components/heading";import"@skdx/web-components/text";var c="data-skdx-empty-state-generated",k=0,t=class extends u{constructor(){super(...arguments);this.headingLevel=3;this.align="center";this.titleId=`skdx-empty-state-title-${++k}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.requestUpdate())}region(e){return this.querySelector(`.skdx-empty-state__${e}`)}hasSlotted(e){return this.querySelector(`[slot="${e}"], [data-skdx-slot="${e}"]`)!==null}get hasContent(){return y(this,c)||(this.region("content")?.hasChildNodes()??!1)}updated(){this.setAttribute("data-align",this.align),this.size===void 0?this.removeAttribute("data-size"):this.setAttribute("data-size",this.size),x(this,c,{icon:this.region("icon"),actions:this.region("actions")},this.region("content"))}render(){return n`
2
2
  ${this.hasSlotted("icon")?n`<div
3
3
  class="skdx-empty-state__icon"
4
4
  aria-hidden="true"
@@ -26,4 +26,4 @@ var m=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var i=(l,a,e,d
26
26
  class="skdx-empty-state__actions"
27
27
  data-skdx-empty-state-generated
28
28
  ></div>`:o}
29
- `}};i([r({type:String})],t.prototype,"title",2),i([r({type:String})],t.prototype,"description",2),i([r({type:Number,attribute:"heading-level"})],t.prototype,"headingLevel",2),i([r({type:String})],t.prototype,"size",2),i([r({type:String})],t.prototype,"align",2),t=i([v("skdx-empty-state","empty-state","root")],t);export{t as SkdxEmptyState};
29
+ `}};i([r({type:String,attribute:"heading"})],t.prototype,"title",2),i([r({type:String})],t.prototype,"description",2),i([r({type:Number,attribute:"heading-level"})],t.prototype,"headingLevel",2),i([r({type:String})],t.prototype,"size",2),i([r({type:String})],t.prototype,"align",2),t=i([v("skdx-empty-state","empty-state","root")],t);export{t as SkdxEmptyState};
@@ -55,4 +55,4 @@
55
55
  </skdx-form>`}
56
56
  ${this.hasSlotted("footer")?r.html`<div class="skdx-forgot-password-page__footer"></div>`:r.nothing}
57
57
  </div>
58
- `}};l([(0,d.property)({type:String})],i.prototype,"title",2),l([(0,d.property)({type:String})],i.prototype,"description",2),l([(0,d.property)({type:String})],i.prototype,"error",2),l([(0,d.property)({type:String})],i.prototype,"success",2),l([(0,d.property)({type:Boolean})],i.prototype,"pending",2),l([(0,d.property)({type:String,attribute:"email-label"})],i.prototype,"emailLabel",2),l([(0,d.property)({type:String,attribute:"submit-label"})],i.prototype,"submitLabel",2),i=l([(0,h.customElement)("skdx-forgot-password-page","forgot-password-page","root")],i);0&&(module.exports={SkdxForgotPasswordPage});
58
+ `}};l([(0,d.property)({type:String,attribute:"heading"})],i.prototype,"title",2),l([(0,d.property)({type:String})],i.prototype,"description",2),l([(0,d.property)({type:String})],i.prototype,"error",2),l([(0,d.property)({type:String})],i.prototype,"success",2),l([(0,d.property)({type:Boolean})],i.prototype,"pending",2),l([(0,d.property)({type:String,attribute:"email-label"})],i.prototype,"emailLabel",2),l([(0,d.property)({type:String,attribute:"submit-label"})],i.prototype,"submitLabel",2),i=l([(0,h.customElement)("skdx-forgot-password-page","forgot-password-page","root")],i);0&&(module.exports={SkdxForgotPasswordPage});
@@ -41,7 +41,7 @@ export declare class SkdxForgotPasswordPage extends LitElement {
41
41
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
42
42
  createRenderRoot(): HTMLElement | DocumentFragment;
43
43
  /**
44
- * Heading text, rendered into a derived `<h1>` that names the section.
44
+ * Heading text, rendered into a derived `<h1>` that names the section. The JavaScript property is `title`.
45
45
  * @default 'Reset your password'
46
46
  */
47
47
  title: string;
@@ -41,7 +41,7 @@ export declare class SkdxForgotPasswordPage extends LitElement {
41
41
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
42
42
  createRenderRoot(): HTMLElement | DocumentFragment;
43
43
  /**
44
- * Heading text, rendered into a derived `<h1>` that names the section.
44
+ * Heading text, rendered into a derived `<h1>` that names the section. The JavaScript property is `title`.
45
45
  * @default 'Reset your password'
46
46
  */
47
47
  title: string;
@@ -55,4 +55,4 @@ var u=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var r=(n,l,e,i
55
55
  </skdx-form>`}
56
56
  ${this.hasSlotted("footer")?o`<div class="skdx-forgot-password-page__footer"></div>`:d}
57
57
  </div>
58
- `}};r([a({type:String})],t.prototype,"title",2),r([a({type:String})],t.prototype,"description",2),r([a({type:String})],t.prototype,"error",2),r([a({type:String})],t.prototype,"success",2),r([a({type:Boolean})],t.prototype,"pending",2),r([a({type:String,attribute:"email-label"})],t.prototype,"emailLabel",2),r([a({type:String,attribute:"submit-label"})],t.prototype,"submitLabel",2),t=r([f("skdx-forgot-password-page","forgot-password-page","root")],t);export{t as SkdxForgotPasswordPage};
58
+ `}};r([a({type:String,attribute:"heading"})],t.prototype,"title",2),r([a({type:String})],t.prototype,"description",2),r([a({type:String})],t.prototype,"error",2),r([a({type:String})],t.prototype,"success",2),r([a({type:Boolean})],t.prototype,"pending",2),r([a({type:String,attribute:"email-label"})],t.prototype,"emailLabel",2),r([a({type:String,attribute:"submit-label"})],t.prototype,"submitLabel",2),t=r([f("skdx-forgot-password-page","forgot-password-page","root")],t);export{t as SkdxForgotPasswordPage};
@@ -1,4 +1,4 @@
1
- "use strict";var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var b=(i,e)=>{for(var t in e)l(i,t,{get:e[t],enumerable:!0})},k=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of v(e))!x.call(i,r)&&r!==t&&l(i,r,{get:()=>e[r],enumerable:!(n=m(e,r))||n.enumerable});return i};var $=i=>k(l({},"__esModule",{value:!0}),i),o=(i,e,t,n)=>{for(var r=n>1?void 0:n?m(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(r=(n?p(e,t,r):p(r))||r);return n&&r&&l(e,t,r),r};var _={};b(_,{SkdxFormSection:()=>s});module.exports=$(_);var d=require("lit"),a=require("lit/decorators.js"),f=require("../internal/define.cjs"),g=require("../internal/slots.cjs"),T=require("@skdx/web-components/heading"),L=require("@skdx/web-components/text");var y="data-skdx-form-section-generated",h=0;function u(i,e,t){t===void 0?i.removeAttribute(e):i.setAttribute(e,t)}var s=class extends d.LitElement{constructor(){super(...arguments);this.headingLevel=2;this.titleId=`skdx-form-section-title-${++h}`;this.descriptionId=`skdx-form-section-description-${h}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-labelledby",this.titleId),queueMicrotask(()=>this.requestUpdate())}region(t){return this.querySelector(`.skdx-form-section__${t}`)}hasSlotted(t){return this.querySelector(`[slot="${t}"], [data-skdx-slot="${t}"]`)!==null}updated(){u(this,"data-variant",this.variant),u(this,"aria-describedby",this.description?this.descriptionId:void 0),(0,g.placeSlotted)(this,y,{actions:this.region("footer")},this.region("content"))}render(){return d.html`
1
+ "use strict";var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var x=(i,e)=>{for(var t in e)l(i,t,{get:e[t],enumerable:!0})},k=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of v(e))!b.call(i,r)&&r!==t&&l(i,r,{get:()=>e[r],enumerable:!(n=m(e,r))||n.enumerable});return i};var $=i=>k(l({},"__esModule",{value:!0}),i),o=(i,e,t,n)=>{for(var r=n>1?void 0:n?m(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(r=(n?p(e,t,r):p(r))||r);return n&&r&&l(e,t,r),r};var _={};x(_,{SkdxFormSection:()=>s});module.exports=$(_);var d=require("lit"),a=require("lit/decorators.js"),f=require("../internal/define.cjs"),g=require("../internal/slots.cjs"),T=require("@skdx/web-components/heading"),L=require("@skdx/web-components/text");var y="data-skdx-form-section-generated",h=0;function u(i,e,t){t===void 0?i.removeAttribute(e):i.setAttribute(e,t)}var s=class extends d.LitElement{constructor(){super(...arguments);this.headingLevel=2;this.titleId=`skdx-form-section-title-${++h}`;this.descriptionId=`skdx-form-section-description-${h}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-labelledby",this.titleId),queueMicrotask(()=>this.requestUpdate())}region(t){return this.querySelector(`.skdx-form-section__${t}`)}hasSlotted(t){return this.querySelector(`[slot="${t}"], [data-skdx-slot="${t}"]`)!==null}updated(){u(this,"data-variant",this.variant),u(this,"aria-describedby",this.description?this.descriptionId:void 0),(0,g.placeSlotted)(this,y,{actions:this.region("footer")},this.region("content"))}render(){return d.html`
2
2
  <div
3
3
  class="skdx-form-section__header"
4
4
  data-skdx-form-section-generated
@@ -25,4 +25,4 @@
25
25
  class="skdx-form-section__footer"
26
26
  data-skdx-form-section-generated
27
27
  ></div>`:d.nothing}
28
- `}};o([(0,a.property)({type:String})],s.prototype,"title",2),o([(0,a.property)({type:String})],s.prototype,"description",2),o([(0,a.property)({type:Number,attribute:"heading-level"})],s.prototype,"headingLevel",2),o([(0,a.property)({type:String})],s.prototype,"variant",2),s=o([(0,f.customElement)("skdx-form-section","form-section","root")],s);0&&(module.exports={SkdxFormSection});
28
+ `}};o([(0,a.property)({type:String,attribute:"heading"})],s.prototype,"title",2),o([(0,a.property)({type:String})],s.prototype,"description",2),o([(0,a.property)({type:Number,attribute:"heading-level"})],s.prototype,"headingLevel",2),o([(0,a.property)({type:String})],s.prototype,"variant",2),s=o([(0,f.customElement)("skdx-form-section","form-section","root")],s);0&&(module.exports={SkdxFormSection});
@@ -14,7 +14,7 @@ import '@skdx/web-components/text';
14
14
  * @example
15
15
  * ```html
16
16
  * <skdx-form-section
17
- * title="Billing address"
17
+ * heading="Billing address"
18
18
  * description="Used for invoices and receipts."
19
19
  * >
20
20
  * <skdx-text-field label="Street"></skdx-text-field>
@@ -28,7 +28,7 @@ import '@skdx/web-components/text';
28
28
  export declare class SkdxFormSection extends LitElement {
29
29
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
30
30
  createRenderRoot(): HTMLElement | DocumentFragment;
31
- /** Heading text naming the group, rendered into a derived Heading that names the section. */
31
+ /** Heading text naming the group, rendered into a derived Heading that names the section. The JavaScript property is `title`. */
32
32
  title: string;
33
33
  /**
34
34
  * Supporting copy rendered below the title, explaining the group's fields.
@@ -14,7 +14,7 @@ import '@skdx/web-components/text';
14
14
  * @example
15
15
  * ```html
16
16
  * <skdx-form-section
17
- * title="Billing address"
17
+ * heading="Billing address"
18
18
  * description="Used for invoices and receipts."
19
19
  * >
20
20
  * <skdx-text-field label="Street"></skdx-text-field>
@@ -28,7 +28,7 @@ import '@skdx/web-components/text';
28
28
  export declare class SkdxFormSection extends LitElement {
29
29
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
30
30
  createRenderRoot(): HTMLElement | DocumentFragment;
31
- /** Heading text naming the group, rendered into a derived Heading that names the section. */
31
+ /** Heading text naming the group, rendered into a derived Heading that names the section. The JavaScript property is `title`. */
32
32
  title: string;
33
33
  /**
34
34
  * Supporting copy rendered below the title, explaining the group's fields.
@@ -1,4 +1,4 @@
1
- var u=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var d=(s,t,e,n)=>{for(var r=n>1?void 0:n?f(t,e):t,a=s.length-1,l;a>=0;a--)(l=s[a])&&(r=(n?l(t,e,r):l(r))||r);return n&&r&&u(t,e,r),r};import{html as c,LitElement as g,nothing as p}from"lit";import{property as o}from"lit/decorators.js";import{customElement as v}from"../internal/define.js";import{placeSlotted as x}from"../internal/slots.js";import"@skdx/web-components/heading";import"@skdx/web-components/text";var b="data-skdx-form-section-generated",m=0;function h(s,t,e){e===void 0?s.removeAttribute(t):s.setAttribute(t,e)}var i=class extends g{constructor(){super(...arguments);this.headingLevel=2;this.titleId=`skdx-form-section-title-${++m}`;this.descriptionId=`skdx-form-section-description-${m}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-labelledby",this.titleId),queueMicrotask(()=>this.requestUpdate())}region(e){return this.querySelector(`.skdx-form-section__${e}`)}hasSlotted(e){return this.querySelector(`[slot="${e}"], [data-skdx-slot="${e}"]`)!==null}updated(){h(this,"data-variant",this.variant),h(this,"aria-describedby",this.description?this.descriptionId:void 0),x(this,b,{actions:this.region("footer")},this.region("content"))}render(){return c`
1
+ var u=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var d=(s,t,e,n)=>{for(var r=n>1?void 0:n?f(t,e):t,a=s.length-1,l;a>=0;a--)(l=s[a])&&(r=(n?l(t,e,r):l(r))||r);return n&&r&&u(t,e,r),r};import{html as c,LitElement as g,nothing as p}from"lit";import{property as o}from"lit/decorators.js";import{customElement as v}from"../internal/define.js";import{placeSlotted as b}from"../internal/slots.js";import"@skdx/web-components/heading";import"@skdx/web-components/text";var x="data-skdx-form-section-generated",m=0;function h(s,t,e){e===void 0?s.removeAttribute(t):s.setAttribute(t,e)}var i=class extends g{constructor(){super(...arguments);this.headingLevel=2;this.titleId=`skdx-form-section-title-${++m}`;this.descriptionId=`skdx-form-section-description-${m}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-labelledby",this.titleId),queueMicrotask(()=>this.requestUpdate())}region(e){return this.querySelector(`.skdx-form-section__${e}`)}hasSlotted(e){return this.querySelector(`[slot="${e}"], [data-skdx-slot="${e}"]`)!==null}updated(){h(this,"data-variant",this.variant),h(this,"aria-describedby",this.description?this.descriptionId:void 0),b(this,x,{actions:this.region("footer")},this.region("content"))}render(){return c`
2
2
  <div
3
3
  class="skdx-form-section__header"
4
4
  data-skdx-form-section-generated
@@ -25,4 +25,4 @@ var u=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var d=(s,t,e,n
25
25
  class="skdx-form-section__footer"
26
26
  data-skdx-form-section-generated
27
27
  ></div>`:p}
28
- `}};d([o({type:String})],i.prototype,"title",2),d([o({type:String})],i.prototype,"description",2),d([o({type:Number,attribute:"heading-level"})],i.prototype,"headingLevel",2),d([o({type:String})],i.prototype,"variant",2),i=d([v("skdx-form-section","form-section","root")],i);export{i as SkdxFormSection};
28
+ `}};d([o({type:String,attribute:"heading"})],i.prototype,"title",2),d([o({type:String})],i.prototype,"description",2),d([o({type:Number,attribute:"heading-level"})],i.prototype,"headingLevel",2),d([o({type:String})],i.prototype,"variant",2),i=d([v("skdx-form-section","form-section","root")],i);export{i as SkdxFormSection};
@@ -1 +1 @@
1
- "use strict";var l=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var r=Object.prototype.hasOwnProperty;var a=(e,t)=>{for(var o in t)l(e,o,{get:t[o],enumerable:!0})},C=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of i(t))!r.call(e,s)&&s!==o&&l(e,s,{get:()=>t[s],enumerable:!(n=m(t,s))||n.enumerable});return e};var p=e=>C(l({},"__esModule",{value:!0}),e);var d={};a(d,{customElement:()=>u});module.exports=p(d);var c=require("./part.cjs"),u=(e,t,o)=>n=>{E(n,t,o),customElements.get(e)===void 0&&customElements.define(e,n)};function E(e,t,o){let n=e.prototype,s=n.connectedCallback;n.connectedCallback=function(){(0,c.applyHostPart)(this,t,o),s?.call(this)}}0&&(module.exports={customElement});
1
+ "use strict";var r=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var a=(t,e)=>{for(var o in e)r(t,o,{get:e[o],enumerable:!0})},p=(t,e,o,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of c(e))!m.call(t,s)&&s!==o&&r(t,s,{get:()=>e[s],enumerable:!(n=l(e,s))||n.enumerable});return t};var u=t=>p(r({},"__esModule",{value:!0}),t);var f={};a(f,{customElement:()=>C});module.exports=u(f);var i=require("./part.cjs");function d(t){t.hasAttribute("title")&&t.constructor.elementProperties?.has("title")&&t.removeAttribute("title")}var C=(t,e,o)=>n=>{E(n,e,o),customElements.get(t)===void 0&&customElements.define(t,n)};function E(t,e,o){let n=t.prototype,s=n.connectedCallback;n.connectedCallback=function(){(0,i.applyHostPart)(this,e,o),d(this),s?.call(this)}}0&&(module.exports={customElement});
@@ -1 +1 @@
1
- import{applyHostPart as l}from"./part.js";var i=(e,o,n)=>t=>{c(t,o,n),customElements.get(e)===void 0&&customElements.define(e,t)};function c(e,o,n){let t=e.prototype,s=t.connectedCallback;t.connectedCallback=function(){l(this,o,n),s?.call(this)}}export{i as customElement};
1
+ import{applyHostPart as r}from"./part.js";function i(t){t.hasAttribute("title")&&t.constructor.elementProperties?.has("title")&&t.removeAttribute("title")}var m=(t,o,n)=>e=>{l(e,o,n),customElements.get(t)===void 0&&customElements.define(t,e)};function l(t,o,n){let e=t.prototype,s=e.connectedCallback;e.connectedCallback=function(){r(this,o,n),i(this),s?.call(this)}}export{m as customElement};
@@ -71,4 +71,4 @@
71
71
  </div>`:t.nothing}
72
72
  </div>
73
73
  ${this.content(e)}
74
- `}};s([(0,o.property)({attribute:!1})],r.prototype,"notifications",2),s([(0,o.property)({type:String})],r.prototype,"title",2),s([(0,o.property)({type:Number,attribute:"heading-level"})],r.prototype,"headingLevel",2),s([(0,o.property)({type:String,attribute:"mark-all-read-label"})],r.prototype,"markAllReadLabel",2),s([(0,o.property)({type:String,attribute:"mark-read-label"})],r.prototype,"markReadLabel",2),s([(0,o.property)({type:String,attribute:"mark-unread-label"})],r.prototype,"markUnreadLabel",2),s([(0,o.property)({type:String,attribute:"empty-title"})],r.prototype,"emptyTitle",2),s([(0,o.property)({type:String,attribute:"empty-description"})],r.prototype,"emptyDescription",2),s([(0,o.property)({type:Boolean})],r.prototype,"loading",2),s([(0,o.property)({attribute:!1})],r.prototype,"now",2),s([(0,o.property)({attribute:!1})],r.prototype,"renderLeading",2),s([(0,o.property)({attribute:!1})],r.prototype,"renderActions",2),r=s([(0,v.customElement)("skdx-notification-center","notification-center","root")],r);0&&(module.exports={SkdxNotificationCenter});
74
+ `}};s([(0,o.property)({attribute:!1})],r.prototype,"notifications",2),s([(0,o.property)({type:String,attribute:"heading"})],r.prototype,"title",2),s([(0,o.property)({type:Number,attribute:"heading-level"})],r.prototype,"headingLevel",2),s([(0,o.property)({type:String,attribute:"mark-all-read-label"})],r.prototype,"markAllReadLabel",2),s([(0,o.property)({type:String,attribute:"mark-read-label"})],r.prototype,"markReadLabel",2),s([(0,o.property)({type:String,attribute:"mark-unread-label"})],r.prototype,"markUnreadLabel",2),s([(0,o.property)({type:String,attribute:"empty-title"})],r.prototype,"emptyTitle",2),s([(0,o.property)({type:String,attribute:"empty-description"})],r.prototype,"emptyDescription",2),s([(0,o.property)({type:Boolean})],r.prototype,"loading",2),s([(0,o.property)({attribute:!1})],r.prototype,"now",2),s([(0,o.property)({attribute:!1})],r.prototype,"renderLeading",2),s([(0,o.property)({attribute:!1})],r.prototype,"renderActions",2),r=s([(0,v.customElement)("skdx-notification-center","notification-center","root")],r);0&&(module.exports={SkdxNotificationCenter});
@@ -62,7 +62,7 @@ export declare class SkdxNotificationCenter extends LitElement {
62
62
  /** The notifications to list, in render order, each with an id, a title and read state. */
63
63
  notifications: readonly SkdxNotificationCenterItem[];
64
64
  /**
65
- * Heading text, rendered into a derived Heading that names the section.
65
+ * Heading text, rendered into a derived Heading that names the section. The JavaScript property is `title`.
66
66
  * @default 'Notifications'
67
67
  */
68
68
  title: string;
@@ -62,7 +62,7 @@ export declare class SkdxNotificationCenter extends LitElement {
62
62
  /** The notifications to list, in render order, each with an id, a title and read state. */
63
63
  notifications: readonly SkdxNotificationCenterItem[];
64
64
  /**
65
- * Heading text, rendered into a derived Heading that names the section.
65
+ * Heading text, rendered into a derived Heading that names the section. The JavaScript property is `title`.
66
66
  * @default 'Notifications'
67
67
  */
68
68
  title: string;
@@ -71,4 +71,4 @@ var u=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var a=(c,d,e,i
71
71
  </div>`:o}
72
72
  </div>
73
73
  ${this.content(e)}
74
- `}};a([s({attribute:!1})],r.prototype,"notifications",2),a([s({type:String})],r.prototype,"title",2),a([s({type:Number,attribute:"heading-level"})],r.prototype,"headingLevel",2),a([s({type:String,attribute:"mark-all-read-label"})],r.prototype,"markAllReadLabel",2),a([s({type:String,attribute:"mark-read-label"})],r.prototype,"markReadLabel",2),a([s({type:String,attribute:"mark-unread-label"})],r.prototype,"markUnreadLabel",2),a([s({type:String,attribute:"empty-title"})],r.prototype,"emptyTitle",2),a([s({type:String,attribute:"empty-description"})],r.prototype,"emptyDescription",2),a([s({type:Boolean})],r.prototype,"loading",2),a([s({attribute:!1})],r.prototype,"now",2),a([s({attribute:!1})],r.prototype,"renderLeading",2),a([s({attribute:!1})],r.prototype,"renderActions",2),r=a([k("skdx-notification-center","notification-center","root")],r);export{r as SkdxNotificationCenter};
74
+ `}};a([s({attribute:!1})],r.prototype,"notifications",2),a([s({type:String,attribute:"heading"})],r.prototype,"title",2),a([s({type:Number,attribute:"heading-level"})],r.prototype,"headingLevel",2),a([s({type:String,attribute:"mark-all-read-label"})],r.prototype,"markAllReadLabel",2),a([s({type:String,attribute:"mark-read-label"})],r.prototype,"markReadLabel",2),a([s({type:String,attribute:"mark-unread-label"})],r.prototype,"markUnreadLabel",2),a([s({type:String,attribute:"empty-title"})],r.prototype,"emptyTitle",2),a([s({type:String,attribute:"empty-description"})],r.prototype,"emptyDescription",2),a([s({type:Boolean})],r.prototype,"loading",2),a([s({attribute:!1})],r.prototype,"now",2),a([s({attribute:!1})],r.prototype,"renderLeading",2),a([s({attribute:!1})],r.prototype,"renderActions",2),r=a([k("skdx-notification-center","notification-center","root")],r);export{r as SkdxNotificationCenter};
@@ -52,4 +52,4 @@
52
52
  <ol class="skdx-onboarding-checklist__list">
53
53
  ${e.map(r=>this.renderItem(r))}
54
54
  </ol>
55
- `}};o([(0,d.property)({type:String})],l.prototype,"title",2),o([(0,d.property)({type:String})],l.prototype,"description",2),o([(0,d.property)({type:Number,attribute:"heading-level"})],l.prototype,"headingLevel",2),o([(0,d.property)({attribute:!1})],l.prototype,"items",2),o([(0,d.property)({attribute:!1})],l.prototype,"getProgressLabel",2),o([(0,d.property)({type:String,attribute:"complete-label"})],l.prototype,"completeLabel",2),o([(0,d.property)({type:String,attribute:"optional-label"})],l.prototype,"optionalLabel",2),l=o([(0,m.customElement)("skdx-onboarding-checklist","onboarding-checklist","root")],l);0&&(module.exports={SkdxOnboardingChecklist});
55
+ `}};o([(0,d.property)({type:String,attribute:"heading"})],l.prototype,"title",2),o([(0,d.property)({type:String})],l.prototype,"description",2),o([(0,d.property)({type:Number,attribute:"heading-level"})],l.prototype,"headingLevel",2),o([(0,d.property)({attribute:!1})],l.prototype,"items",2),o([(0,d.property)({attribute:!1})],l.prototype,"getProgressLabel",2),o([(0,d.property)({type:String,attribute:"complete-label"})],l.prototype,"completeLabel",2),o([(0,d.property)({type:String,attribute:"optional-label"})],l.prototype,"optionalLabel",2),l=o([(0,m.customElement)("skdx-onboarding-checklist","onboarding-checklist","root")],l);0&&(module.exports={SkdxOnboardingChecklist});
@@ -34,7 +34,7 @@ export interface SkdxOnboardingChecklistItem {
34
34
  *
35
35
  * @example
36
36
  * ```html
37
- * <skdx-onboarding-checklist id="setup" title="Get started"></skdx-onboarding-checklist>
37
+ * <skdx-onboarding-checklist id="setup" heading="Get started"></skdx-onboarding-checklist>
38
38
  * <script>
39
39
  * const list = document.getElementById('setup');
40
40
  * list.items = [{ id: 'invite', label: 'Invite a teammate', actionLabel: 'Invite' }];
@@ -47,7 +47,7 @@ export interface SkdxOnboardingChecklistItem {
47
47
  export declare class SkdxOnboardingChecklist extends LitElement {
48
48
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
49
49
  createRenderRoot(): HTMLElement | DocumentFragment;
50
- /** Heading text naming the checklist, rendered into a derived Heading that names the section. */
50
+ /** Heading text naming the checklist, rendered into a derived Heading that names the section. The JavaScript property is `title`. */
51
51
  title: string;
52
52
  /**
53
53
  * Supporting copy rendered below the title, explaining what the checklist covers.
@@ -34,7 +34,7 @@ export interface SkdxOnboardingChecklistItem {
34
34
  *
35
35
  * @example
36
36
  * ```html
37
- * <skdx-onboarding-checklist id="setup" title="Get started"></skdx-onboarding-checklist>
37
+ * <skdx-onboarding-checklist id="setup" heading="Get started"></skdx-onboarding-checklist>
38
38
  * <script>
39
39
  * const list = document.getElementById('setup');
40
40
  * list.items = [{ id: 'invite', label: 'Invite a teammate', actionLabel: 'Invite' }];
@@ -47,7 +47,7 @@ export interface SkdxOnboardingChecklistItem {
47
47
  export declare class SkdxOnboardingChecklist extends LitElement {
48
48
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
49
49
  createRenderRoot(): HTMLElement | DocumentFragment;
50
- /** Heading text naming the checklist, rendered into a derived Heading that names the section. */
50
+ /** Heading text naming the checklist, rendered into a derived Heading that names the section. The JavaScript property is `title`. */
51
51
  title: string;
52
52
  /**
53
53
  * Supporting copy rendered below the title, explaining what the checklist covers.
@@ -52,4 +52,4 @@ var m=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var n=(c,r,e,t
52
52
  <ol class="skdx-onboarding-checklist__list">
53
53
  ${e.map(a=>this.renderItem(a))}
54
54
  </ol>
55
- `}};n([d({type:String})],i.prototype,"title",2),n([d({type:String})],i.prototype,"description",2),n([d({type:Number,attribute:"heading-level"})],i.prototype,"headingLevel",2),n([d({attribute:!1})],i.prototype,"items",2),n([d({attribute:!1})],i.prototype,"getProgressLabel",2),n([d({type:String,attribute:"complete-label"})],i.prototype,"completeLabel",2),n([d({type:String,attribute:"optional-label"})],i.prototype,"optionalLabel",2),i=n([u("skdx-onboarding-checklist","onboarding-checklist","root")],i);export{i as SkdxOnboardingChecklist};
55
+ `}};n([d({type:String,attribute:"heading"})],i.prototype,"title",2),n([d({type:String})],i.prototype,"description",2),n([d({type:Number,attribute:"heading-level"})],i.prototype,"headingLevel",2),n([d({attribute:!1})],i.prototype,"items",2),n([d({attribute:!1})],i.prototype,"getProgressLabel",2),n([d({type:String,attribute:"complete-label"})],i.prototype,"completeLabel",2),n([d({type:String,attribute:"optional-label"})],i.prototype,"optionalLabel",2),i=n([u("skdx-onboarding-checklist","onboarding-checklist","root")],i);export{i as SkdxOnboardingChecklist};
@@ -1,14 +1,14 @@
1
- "use strict";var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var k=(r,e)=>{for(var a in e)d(r,a,{get:e[a],enumerable:!0})},x=(r,e,a,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of g(e))!h.call(r,t)&&t!==a&&d(r,t,{get:()=>e[t],enumerable:!(n=p(e,t))||n.enumerable});return r};var v=r=>x(d({},"__esModule",{value:!0}),r),o=(r,e,a,n)=>{for(var t=n>1?void 0:n?p(e,a):e,c=r.length-1,b;c>=0;c--)(b=r[c])&&(t=(n?b(e,a,t):b(t))||t);return n&&t&&d(e,a,t),t};var L={};k(L,{SkdxPageContainer:()=>i});module.exports=v(L);var s=require("lit"),l=require("lit/decorators.js"),m=require("../internal/define.cjs"),u=require("../internal/slots.cjs"),E=require("@skdx/web-components/breadcrumb"),f=require("@skdx/web-components/heading"),T=require("@skdx/web-components/toolbar");var _="data-skdx-page-container-generated",y=0,i=class extends s.LitElement{constructor(){super(...arguments);this.headingLevel=1;this.breadcrumbLabel="Breadcrumb";this.actionsLabel="Page actions";this.titleId=`skdx-page-container-title-${++y}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-labelledby",this.titleId),queueMicrotask(()=>this.requestUpdate())}get hasActions(){return this.querySelector('[slot="actions"], [data-skdx-slot="actions"]')!==null}region(a){return this.querySelector(`.skdx-page-container__${a}`)}updated(){(0,u.placeSlotted)(this,_,{actions:this.region("actions")},this.region("content"))}render(){return s.html`
1
+ "use strict";var l=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var k=(r,e)=>{for(var a in e)l(r,a,{get:e[a],enumerable:!0})},x=(r,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of g(e))!h.call(r,t)&&t!==a&&l(r,t,{get:()=>e[t],enumerable:!(s=p(e,t))||s.enumerable});return r};var v=r=>x(l({},"__esModule",{value:!0}),r),o=(r,e,a,s)=>{for(var t=s>1?void 0:s?p(e,a):e,c=r.length-1,b;c>=0;c--)(b=r[c])&&(t=(s?b(e,a,t):b(t))||t);return s&&t&&l(e,a,t),t};var L={};k(L,{SkdxPageContainer:()=>i});module.exports=v(L);var n=require("lit"),d=require("lit/decorators.js"),u=require("../internal/define.cjs"),m=require("../internal/slots.cjs"),E=require("@skdx/web-components/breadcrumb"),f=require("@skdx/web-components/heading"),T=require("@skdx/web-components/toolbar");var _="data-skdx-page-container-generated",y=0,i=class extends n.LitElement{constructor(){super(...arguments);this.headingLevel=1;this.breadcrumbLabel="Breadcrumb";this.actionsLabel="Page actions";this.titleId=`skdx-page-container-title-${++y}`}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.setAttribute("role","region"),this.setAttribute("aria-labelledby",this.titleId),queueMicrotask(()=>this.requestUpdate())}get hasActions(){return this.querySelector('[slot="actions"], [data-skdx-slot="actions"]')!==null}region(a){return this.querySelector(`.skdx-page-container__${a}`)}updated(){(0,m.placeSlotted)(this,_,{actions:this.region("actions")},this.region("content"))}render(){return n.html`
2
2
  <header
3
3
  class="skdx-page-container__header"
4
4
  data-skdx-page-container-generated
5
5
  role="none"
6
6
  >
7
- ${this.breadcrumbs?.length?s.html`<skdx-breadcrumb
7
+ ${this.breadcrumbs?.length?n.html`<skdx-breadcrumb
8
8
  class="skdx-page-container__breadcrumbs"
9
9
  label=${this.breadcrumbLabel}
10
10
  .items=${this.breadcrumbs}
11
- ></skdx-breadcrumb>`:s.nothing}
11
+ ></skdx-breadcrumb>`:n.nothing}
12
12
  <div class="skdx-page-container__heading-row">
13
13
  <skdx-heading
14
14
  class="skdx-page-container__title"
@@ -16,14 +16,14 @@
16
16
  id=${this.titleId}
17
17
  >${this.title??""}</skdx-heading
18
18
  >
19
- ${this.hasActions?s.html`<skdx-toolbar
19
+ ${this.hasActions?n.html`<skdx-toolbar
20
20
  class="skdx-page-container__actions"
21
21
  aria-label=${this.actionsLabel}
22
- ></skdx-toolbar>`:s.nothing}
22
+ ></skdx-toolbar>`:n.nothing}
23
23
  </div>
24
24
  </header>
25
25
  <div
26
26
  class="skdx-page-container__content"
27
27
  data-skdx-page-container-generated
28
28
  ></div>
29
- `}};o([(0,l.property)({type:String})],i.prototype,"title",2),o([(0,l.property)({type:Number,attribute:"heading-level"})],i.prototype,"headingLevel",2),o([(0,l.property)({attribute:!1})],i.prototype,"breadcrumbs",2),o([(0,l.property)({type:String,attribute:"breadcrumb-label"})],i.prototype,"breadcrumbLabel",2),o([(0,l.property)({type:String,attribute:"actions-label"})],i.prototype,"actionsLabel",2),i=o([(0,m.customElement)("skdx-page-container","page-container","root")],i);0&&(module.exports={SkdxPageContainer});
29
+ `}};o([(0,d.property)({type:String,attribute:"heading"})],i.prototype,"title",2),o([(0,d.property)({type:Number,attribute:"heading-level"})],i.prototype,"headingLevel",2),o([(0,d.property)({attribute:!1})],i.prototype,"breadcrumbs",2),o([(0,d.property)({type:String,attribute:"breadcrumb-label"})],i.prototype,"breadcrumbLabel",2),o([(0,d.property)({type:String,attribute:"actions-label"})],i.prototype,"actionsLabel",2),i=o([(0,u.customElement)("skdx-page-container","page-container","root")],i);0&&(module.exports={SkdxPageContainer});
@@ -20,7 +20,7 @@ export interface SkdxPageContainerBreadcrumb {
20
20
  *
21
21
  * @example
22
22
  * ```html
23
- * <skdx-page-container title="Billing">
23
+ * <skdx-page-container heading="Billing">
24
24
  * <skdx-button slot="actions">Export</skdx-button>
25
25
  * <p>Invoices and payment methods.</p>
26
26
  * </skdx-page-container>
@@ -32,7 +32,7 @@ export interface SkdxPageContainerBreadcrumb {
32
32
  export declare class SkdxPageContainer extends LitElement {
33
33
  /** Light DOM, so `@skdx/skins` and consumer CSS reach the composed core elements. */
34
34
  createRenderRoot(): HTMLElement | DocumentFragment;
35
- /** The page heading text, rendered into a derived Heading that also names the section. */
35
+ /** The page heading text, rendered into a derived Heading that also names the section. The JavaScript property is `title`. */
36
36
  title: string;
37
37
  /**
38
38
  * Heading level of the derived title. A page container normally holds the page's only `<h1>`; lower it when the block sits inside a larger outline.