@mhmo91/schmancy 0.2.83 → 0.2.85

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.
package/dist/card.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";require("./teleport.component-CZIVznqr.cjs");
1
+ "use strict";require("./teleport.component-CEgJ1UMu.cjs");
2
2
  //# sourceMappingURL=card.cjs.map
package/dist/card.js CHANGED
@@ -1,2 +1,2 @@
1
- import "./teleport.component-h1hczZwl.js";
1
+ import "./teleport.component-BDwKenAE.js";
2
2
  //# sourceMappingURL=card.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CZIVznqr.cjs");Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>e.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=e.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>e.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=e.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=e.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>e.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=e.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=e.SchmancyContentDrawerSheetState,exports.schmancyContentDrawer=e.schmancyContentDrawer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CEgJ1UMu.cjs");Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>e.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=e.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>e.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=e.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=e.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>e.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=e.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=e.SchmancyContentDrawerSheetState,exports.schmancyContentDrawer=e.schmancyContentDrawer;
2
2
  //# sourceMappingURL=content-drawer.cjs.map
@@ -1,4 +1,4 @@
1
- import { e as n, b as t, f as r, c, d as h, g as S, S as o, a as s, s as m } from "./teleport.component-h1hczZwl.js";
1
+ import { e as n, b as t, f as r, c, d as h, g as S, S as o, a as s, s as m } from "./teleport.component-BDwKenAE.js";
2
2
  export {
3
3
  n as SchmancyContentDrawer,
4
4
  t as SchmancyContentDrawerID,
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-CoNHPVcy.cjs");const r=require("./area.component-D_L_-rhD.cjs");require("./autocomplete-ButddDCL.cjs"),require("./spinner-DGtAaEn5.cjs");const o=require("./icon-button-CQafspg2.cjs"),e=require("./teleport.component-CZIVznqr.cjs"),S=require("./checkbox-DzIUvkYN.cjs");require("./chips-9AOuHsA9.cjs");const u=require("./payment-card-form-C03BsKJ1.cjs");require("./date-range-CtF2mjKx.cjs");const y=require("./delay-DMiYzQSi.cjs"),c=require("./ripple-C2BHbhcS.cjs");require("./divider-Cv8bePwT.cjs"),require("./form-BCqsvcur.cjs"),require("./icon-VtRCgMjd.cjs"),require("./input-CXj30kcz.cjs");const t=require("./flex-CCO2kjCx.cjs"),m=require("./list-CjGhfk17.cjs");require("./menu-qiBmvTtT.cjs");const a=require("./outlet-B9NdhBgt.cjs");require("./option-DFjInzHW.cjs");const b=require("./radio-group-DrwawzHG.cjs"),l=require("./rxjs-utils.cjs");require("rxjs"),require("./index-DyJ0oDpR.cjs");const d=require("./select-C3UtMXwp.cjs"),n=require("./sheet-PgbfqWGo.cjs"),h=require("./slider-BQQQ9rrx.cjs"),p=require("./surface-BbkSDH8N.cjs");require("./table-CJzGX5VB.cjs"),require("./tabs-group-BO-vC7go.cjs"),require("./textarea-B1XE6nT1.cjs");const i=require("./theme.component-4cjbFqy7.cjs"),g=require("./theme.interface-Xg5Zi46a.cjs");require("./theme-button-mmu8bUNx.cjs");const f=require("./tree-D07FpMNb.cjs"),q=require("./types.cjs"),O=require("./typewriter-C9L0TA4Y.cjs"),w=require("./typography-BHeQxLl8.cjs"),D=require("./intersection-CVvaDv96.cjs");exports.FINDING_MORTIES=r.FINDING_MORTIES,exports.HERE_RICKY=r.HERE_RICKY,exports.HISTORY_STRATEGY=r.HISTORY_STRATEGY,Object.defineProperty(exports,"SchmancyArea",{enumerable:!0,get:()=>r.SchmancyArea}),exports.area=r.area,exports.routerHistory=r.routerHistory,Object.defineProperty(exports,"SchmancyButton",{enumerable:!0,get:()=>o.SchmancyButton}),Object.defineProperty(exports,"SchmnacyIconButton",{enumerable:!0,get:()=>o.SchmnacyIconButton}),exports.$drawer=e.$drawer,exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>e.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=e.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>e.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=e.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=e.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>e.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=e.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=e.SchmancyContentDrawerSheetState,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.schmancyContentDrawer=e.schmancyContentDrawer,exports.schmancyNavDrawer=e.schmancyNavDrawer,exports.teleport=e.teleport,Object.defineProperty(exports,"SchmancyCheckbox",{enumerable:!0,get:()=>S.SchmancyCheckbox}),Object.defineProperty(exports,"SchmancyPaymentCardForm",{enumerable:!0,get:()=>u.SchmancyPaymentCardForm}),Object.defineProperty(exports,"SchmancyDelay",{enumerable:!0,get:()=>y.SchmancyDelay}),exports.delayContext=y.delayContext,exports.color=c.color,exports.fullHeight=c.fullHeight,exports.ripple=c.ripple,Object.defineProperty(exports,"SchmancyFlex",{enumerable:!0,get:()=>t.SchmancyFlex}),Object.defineProperty(exports,"SchmancyFlexV2",{enumerable:!0,get:()=>t.SchmancyFlexV2}),Object.defineProperty(exports,"SchmancyGrid",{enumerable:!0,get:()=>t.SchmancyGrid}),Object.defineProperty(exports,"SchmancyScroll",{enumerable:!0,get:()=>t.SchmancyScroll}),Object.defineProperty(exports,"List",{enumerable:!0,get:()=>m.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>m.SchmancyListItem}),exports.$notify=a.$notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>a.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>a.SchmancyNotificationOutlet}),Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:()=>b.RadioGroup}),exports.mutationObserver=l.mutationObserver,Object.defineProperty(exports,"SchmancySelect",{enumerable:!0,get:()=>d.SchmancySelect}),exports.SchmancySheetPosition=n.SchmancySheetPosition,exports.SheetHereMorty=n.SheetHereMorty,exports.SheetWhereAreYouRicky=n.SheetWhereAreYouRicky,exports.sheet=n.sheet,Object.defineProperty(exports,"SchmancySlide",{enumerable:!0,get:()=>h.SchmancySlide}),Object.defineProperty(exports,"SchmancySlider",{enumerable:!0,get:()=>h.SchmancySlider}),Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>p.SchmancySurface}),Object.defineProperty(exports,"SchmancyThemeComponent",{enumerable:!0,get:()=>i.SchmancyThemeComponent}),exports.formateTheme=i.formateTheme,exports.tailwindStyles=i.tailwindStyles,exports.SchmancyTheme=g.SchmancyTheme,Object.defineProperty(exports,"SchmancyTree",{enumerable:!0,get:()=>f.SchmancyTree}),exports.SchmancyEvents=q.SchmancyEvents,Object.defineProperty(exports,"TypewriterElement",{enumerable:!0,get:()=>O.TypewriterElement}),Object.defineProperty(exports,"SchmancyTypography",{enumerable:!0,get:()=>w.SchmancyTypography}),exports.intersection$=D.intersection$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-CoNHPVcy.cjs");const r=require("./area.component-D_L_-rhD.cjs");require("./autocomplete-ButddDCL.cjs"),require("./spinner-DGtAaEn5.cjs");const o=require("./icon-button-CQafspg2.cjs"),e=require("./teleport.component-CEgJ1UMu.cjs"),S=require("./checkbox-DzIUvkYN.cjs");require("./chips-9AOuHsA9.cjs");const u=require("./payment-card-form-C03BsKJ1.cjs");require("./date-range-CtF2mjKx.cjs");const y=require("./delay-DMiYzQSi.cjs"),c=require("./ripple-C2BHbhcS.cjs");require("./divider-Cv8bePwT.cjs"),require("./form-BCqsvcur.cjs"),require("./icon-VtRCgMjd.cjs"),require("./input-CXj30kcz.cjs");const t=require("./flex-CCO2kjCx.cjs"),m=require("./list-pIDcGS1c.cjs");require("./menu-qiBmvTtT.cjs");const a=require("./outlet-B9NdhBgt.cjs");require("./option-DFjInzHW.cjs");const b=require("./radio-group-DrwawzHG.cjs"),l=require("./rxjs-utils.cjs");require("rxjs"),require("./index-DyJ0oDpR.cjs");const d=require("./select-C3UtMXwp.cjs"),n=require("./sheet-PgbfqWGo.cjs"),h=require("./slider-BQQQ9rrx.cjs"),p=require("./surface-BbkSDH8N.cjs");require("./table-CJzGX5VB.cjs"),require("./tabs-group-BO-vC7go.cjs"),require("./textarea-B1XE6nT1.cjs");const i=require("./theme.component-4cjbFqy7.cjs"),g=require("./theme.interface-Xg5Zi46a.cjs");require("./theme-button-mmu8bUNx.cjs");const f=require("./tree-D07FpMNb.cjs"),q=require("./types.cjs"),O=require("./typewriter-C9L0TA4Y.cjs"),w=require("./typography-BHeQxLl8.cjs"),D=require("./intersection-CVvaDv96.cjs");exports.FINDING_MORTIES=r.FINDING_MORTIES,exports.HERE_RICKY=r.HERE_RICKY,exports.HISTORY_STRATEGY=r.HISTORY_STRATEGY,Object.defineProperty(exports,"SchmancyArea",{enumerable:!0,get:()=>r.SchmancyArea}),exports.area=r.area,exports.routerHistory=r.routerHistory,Object.defineProperty(exports,"SchmancyButton",{enumerable:!0,get:()=>o.SchmancyButton}),Object.defineProperty(exports,"SchmnacyIconButton",{enumerable:!0,get:()=>o.SchmnacyIconButton}),exports.$drawer=e.$drawer,exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>e.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=e.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>e.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=e.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=e.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>e.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=e.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=e.SchmancyContentDrawerSheetState,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.schmancyContentDrawer=e.schmancyContentDrawer,exports.schmancyNavDrawer=e.schmancyNavDrawer,exports.teleport=e.teleport,Object.defineProperty(exports,"SchmancyCheckbox",{enumerable:!0,get:()=>S.SchmancyCheckbox}),Object.defineProperty(exports,"SchmancyPaymentCardForm",{enumerable:!0,get:()=>u.SchmancyPaymentCardForm}),Object.defineProperty(exports,"SchmancyDelay",{enumerable:!0,get:()=>y.SchmancyDelay}),exports.delayContext=y.delayContext,exports.color=c.color,exports.fullHeight=c.fullHeight,exports.ripple=c.ripple,Object.defineProperty(exports,"SchmancyFlex",{enumerable:!0,get:()=>t.SchmancyFlex}),Object.defineProperty(exports,"SchmancyFlexV2",{enumerable:!0,get:()=>t.SchmancyFlexV2}),Object.defineProperty(exports,"SchmancyGrid",{enumerable:!0,get:()=>t.SchmancyGrid}),Object.defineProperty(exports,"SchmancyScroll",{enumerable:!0,get:()=>t.SchmancyScroll}),Object.defineProperty(exports,"List",{enumerable:!0,get:()=>m.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>m.SchmancyListItem}),exports.$notify=a.$notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>a.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>a.SchmancyNotificationOutlet}),Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:()=>b.RadioGroup}),exports.mutationObserver=l.mutationObserver,Object.defineProperty(exports,"SchmancySelect",{enumerable:!0,get:()=>d.SchmancySelect}),exports.SchmancySheetPosition=n.SchmancySheetPosition,exports.SheetHereMorty=n.SheetHereMorty,exports.SheetWhereAreYouRicky=n.SheetWhereAreYouRicky,exports.sheet=n.sheet,Object.defineProperty(exports,"SchmancySlide",{enumerable:!0,get:()=>h.SchmancySlide}),Object.defineProperty(exports,"SchmancySlider",{enumerable:!0,get:()=>h.SchmancySlider}),Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>p.SchmancySurface}),Object.defineProperty(exports,"SchmancyThemeComponent",{enumerable:!0,get:()=>i.SchmancyThemeComponent}),exports.formateTheme=i.formateTheme,exports.tailwindStyles=i.tailwindStyles,exports.SchmancyTheme=g.SchmancyTheme,Object.defineProperty(exports,"SchmancyTree",{enumerable:!0,get:()=>f.SchmancyTree}),exports.SchmancyEvents=q.SchmancyEvents,Object.defineProperty(exports,"TypewriterElement",{enumerable:!0,get:()=>O.TypewriterElement}),Object.defineProperty(exports,"SchmancyTypography",{enumerable:!0,get:()=>w.SchmancyTypography}),exports.intersection$=D.intersection$;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { F as C, H as d, b as T, S as b, a as u, r as N } from "./area.component
3
3
  import "./autocomplete-mnVXXSzl.js";
4
4
  import "./spinner-mbCqGAta.js";
5
5
  import { S as R, a as v } from "./icon-button-CJ-eY6wF.js";
6
- import { $ as M, H as g, e as E, b as A, f as F, c as Y, d as $, g as k, S as G, a as O, i as W, k as L, l as _, m as B, j as P, n as j, o as K, W as V, s as q, h as z, t as J } from "./teleport.component-h1hczZwl.js";
6
+ import { $ as M, H as g, e as E, b as A, f as F, c as Y, d as $, g as k, S as G, a as O, i as W, k as L, l as _, m as B, j as P, n as j, o as K, W as V, s as q, h as z, t as J } from "./teleport.component-BDwKenAE.js";
7
7
  import { S as U } from "./checkbox-bDNd_3dy.js";
8
8
  import "./chips-C0maM-LZ.js";
9
9
  import { S as Z } from "./payment-card-form-E08S_U7K.js";
@@ -15,7 +15,7 @@ import "./form-G748qOFO.js";
15
15
  import "./icon-VpDcG-1m.js";
16
16
  import "./input-DQo_jcQh.js";
17
17
  import { S as sa, c as Sa, a as ha, b as ia } from "./flex-BD4c3vZt.js";
18
- import { L as pa, S as fa } from "./list-BdzGJPAk.js";
18
+ import { L as pa, S as fa } from "./list-C9s_UTGh.js";
19
19
  import "./menu-Cpld82tG.js";
20
20
  import { $ as la, S as wa, a as Da } from "./outlet-Ivt5XK7t.js";
21
21
  import "./option-CXpO0NeB.js";
@@ -7,10 +7,10 @@ import { S as g } from "./context-YZmnxxIi.js";
7
7
  import { html as u, css as b } from "lit";
8
8
  import { property as l, queryAssignedElements as h, customElement as y } from "lit/decorators.js";
9
9
  import { when as x } from "lit/directives/when.js";
10
- import { n as $, e as w } from "./provide-BLSgVvMJ.js";
11
- var j = Object.defineProperty, O = Object.getOwnPropertyDescriptor, c = (o, e, s, r) => {
12
- for (var n, t = r > 1 ? void 0 : r ? O(e, s) : e, a = o.length - 1; a >= 0; a--) (n = o[a]) && (t = (r ? n(e, s, t) : n(t)) || t);
13
- return r && t && j(e, s, t), t;
10
+ import { n as $, e as j } from "./provide-BLSgVvMJ.js";
11
+ var w = Object.defineProperty, O = Object.getOwnPropertyDescriptor, c = (s, e, o, r) => {
12
+ for (var n, t = r > 1 ? void 0 : r ? O(e, o) : e, a = s.length - 1; a >= 0; a--) (n = s[a]) && (t = (r ? n(e, o, t) : n(t)) || t);
13
+ return r && t && w(e, o, t), t;
14
14
  };
15
15
  let i = class extends f() {
16
16
  constructor() {
@@ -20,16 +20,16 @@ let i = class extends f() {
20
20
  return ["h-[24px]", "w-[24px]", "object-contain"];
21
21
  }
22
22
  firstUpdated() {
23
- var o, e;
24
- (o = this.leading) == null || o.forEach((s) => {
25
- s.classList.add(...this.imgClasses);
26
- }), (e = this.trailing) == null || e.forEach((s) => {
27
- s.classList.add(...this.imgClasses);
23
+ var s, e;
24
+ (s = this.leading) == null || s.forEach((o) => {
25
+ o.classList.add(...this.imgClasses);
26
+ }), (e = this.trailing) == null || e.forEach((o) => {
27
+ o.classList.add(...this.imgClasses);
28
28
  });
29
29
  }
30
30
  render() {
31
- const o = { "rounded-none": this.rounded === !1, "rounded-full": this.rounded, "relative inset-0 w-full flex items-center min-h-[56px] py-[8px] px-[16px] duration-500 transition-colors focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:z-1 outline-secondary-default outline-hidden": !0, "bg-secondary-container text-secondery-onContainer": this.selected }, e = { "z-0 duration-500 transition-opacity": !0, "rounded-none": this.rounded === !1, "rounded-full": this.rounded, "hover:bg-surface-on opacity-[0.08] cursor-pointer absolute inset-0 ": !this.readonly };
32
- return u` <li .tabIndex=${this.readonly ? -1 : 0} class=${this.classMap(o)}>
31
+ const s = { "rounded-none": this.rounded === !1, "rounded-full": this.rounded, "relative inset-0 w-full flex items-center min-h-[56px] py-[8px] px-[16px] duration-500 transition-colors focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:z-1 outline-secondary-default outline-hidden": !0, "bg-secondary-container text-secondery-onContainer": this.selected }, e = { "z-0 duration-500 transition-opacity": !0, "rounded-none": this.rounded === !1, "rounded-full": this.rounded, "hover:bg-surface-on opacity-[0.08] cursor-pointer absolute inset-0 ": !this.readonly };
32
+ return u` <li .tabIndex=${this.readonly ? -1 : 0} class=${this.classMap(s)}>
33
33
  ${x(!this.readonly, () => u` <div class="${this.classMap(e)}"></div>`)}
34
34
  <slot></slot>
35
35
  </li>`;
@@ -37,9 +37,9 @@ let i = class extends f() {
37
37
  };
38
38
  c([m({ context: g, subscribe: !0 }), l()], i.prototype, "variant", 2), c([l({ type: Boolean })], i.prototype, "rounded", 2), c([l({ type: Boolean })], i.prototype, "readonly", 2), c([l({ type: Boolean })], i.prototype, "selected", 2), c([h({ slot: "leading", flatten: !0 })], i.prototype, "leading", 2), c([h({ slot: "trailing", flatten: !0 })], i.prototype, "trailing", 2), i = c([y("schmancy-list-item")], i);
39
39
  const B = $(void 0);
40
- var C = Object.defineProperty, E = Object.getOwnPropertyDescriptor, d = (o, e, s, r) => {
41
- for (var n, t = r > 1 ? void 0 : r ? E(e, s) : e, a = o.length - 1; a >= 0; a--) (n = o[a]) && (t = (r ? n(e, s, t) : n(t)) || t);
42
- return r && t && C(e, s, t), t;
40
+ var C = Object.defineProperty, E = Object.getOwnPropertyDescriptor, d = (s, e, o, r) => {
41
+ for (var n, t = r > 1 ? void 0 : r ? E(e, o) : e, a = s.length - 1; a >= 0; a--) (n = s[a]) && (t = (r ? n(e, o, t) : n(t)) || t);
42
+ return r && t && C(e, o, t), t;
43
43
  };
44
44
  let p = class extends f(b`
45
45
  :host {
@@ -48,8 +48,8 @@ let p = class extends f(b`
48
48
  padding-bottom: 8px;
49
49
  }
50
50
 
51
- /* Apply scrolling behavior to the surface element when it has the "scroller" class */
52
- :host schmancy-surface.scroller {
51
+ /* When the ul element has the "scroller" class, apply scrolling behavior */
52
+ ul.scroller {
53
53
  position: relative;
54
54
  contain: size layout;
55
55
  overflow: auto;
@@ -60,24 +60,18 @@ let p = class extends f(b`
60
60
  super(...arguments), this.fill = "auto", this.scroller = !1, this.elevation = 0;
61
61
  }
62
62
  render() {
63
- const o = { scroller: this.scroller };
64
63
  return u`
65
- <schmancy-surface
66
- class=${v(o)}
67
- .elevation=${this.elevation}
68
- .fill=${this.fill}
69
- type=${this.surface}
70
- >
71
- <ul>
64
+ <schmancy-surface .elevation=${this.elevation} .fill=${this.fill} type=${this.surface}>
65
+ <ul class=${v({ scroller: this.scroller })}>
72
66
  <slot></slot>
73
67
  </ul>
74
68
  </schmancy-surface>
75
69
  `;
76
70
  }
77
71
  };
78
- d([w({ context: B }), l()], p.prototype, "surface", 2), d([l({ type: String, reflect: !0 })], p.prototype, "fill", 2), d([l({ type: Boolean, reflect: !0 })], p.prototype, "scroller", 2), d([l({ type: Number })], p.prototype, "elevation", 2), p = d([y("schmancy-list")], p);
72
+ d([j({ context: B }), l()], p.prototype, "surface", 2), d([l({ type: String, reflect: !0 })], p.prototype, "fill", 2), d([l({ type: Boolean, reflect: !0 })], p.prototype, "scroller", 2), d([l({ type: Number })], p.prototype, "elevation", 2), p = d([y("schmancy-list")], p);
79
73
  export {
80
74
  p as L,
81
75
  i as S
82
76
  };
83
- //# sourceMappingURL=list-BdzGJPAk.js.map
77
+ //# sourceMappingURL=list-C9s_UTGh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-C9s_UTGh.js","sources":["../src/list/list-item.ts","../src/list/context.ts","../src/list/list.ts"],"sourcesContent":["import { consume } from '@lit/context'\nimport { TailwindElement } from '@mixins/index'\nimport { SchmancySurfaceTypeContext } from '@schmancy/surface/context'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nimport { html } from 'lit'\nimport { customElement, property, queryAssignedElements } from 'lit/decorators.js'\nimport { when } from 'lit/directives/when.js'\n\n/**\n * @element schmancy-list-item\n * @slot leading - leading content\n * @slot trailing - trailing content\n * @slot - default content\n */\n@customElement('schmancy-list-item')\nexport class SchmancyListItem extends TailwindElement() {\n\t@consume({ context: SchmancySurfaceTypeContext, subscribe: true })\n\t@property()\n\tvariant: TSurfaceColor\n\n\t@property({ type: Boolean })\n\trounded: boolean\n\n\t@property({ type: Boolean }) readonly: boolean\n\n\t@property({ type: Boolean }) selected: boolean = false\n\n\t@queryAssignedElements({\n\t\tslot: 'leading',\n\t\tflatten: true,\n\t})\n\tprivate leading!: HTMLElement[]\n\n\t@queryAssignedElements({\n\t\tslot: 'trailing',\n\t\tflatten: true,\n\t})\n\tprivate trailing!: HTMLElement[]\n\n\tprotected get imgClasses(): string[] {\n\t\treturn ['h-[24px]', 'w-[24px]', 'object-contain']\n\t}\n\n\tfirstUpdated() {\n\t\tthis.leading?.forEach(img => {\n\t\t\timg.classList.add(...this.imgClasses)\n\t\t})\n\t\tthis.trailing?.forEach(img => {\n\t\t\timg.classList.add(...this.imgClasses)\n\t\t})\n\t}\n\n\trender() {\n\t\tconst classes = {\n\t\t\t'rounded-none': this.rounded === false,\n\t\t\t'rounded-full': this.rounded,\n\t\t\t'relative inset-0 w-full flex items-center min-h-[56px] py-[8px] px-[16px] duration-500 transition-colors focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:z-1 outline-secondary-default outline-hidden':\n\t\t\t\ttrue,\n\t\t\t'bg-secondary-container text-secondery-onContainer': this.selected,\n\t\t}\n\n\t\tconst stateLayerClasses = {\n\t\t\t'z-0 duration-500 transition-opacity': true,\n\t\t\t'rounded-none': this.rounded === false,\n\t\t\t'rounded-full': this.rounded,\n\t\t\t'hover:bg-surface-on opacity-[0.08] cursor-pointer absolute inset-0 ': !this.readonly,\n\t\t}\n\t\treturn html` <li .tabIndex=${this.readonly ? -1 : 0} class=${this.classMap(classes)}>\n\t\t\t${when(!this.readonly, () => html` <div class=\"${this.classMap(stateLayerClasses)}\"></div>`)}\n\t\t\t<slot></slot>\n\t\t</li>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-list-item': SchmancyListItem\n\t}\n}\n","import { createContext } from '@lit/context'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nexport const SchmancyListTypeContext = createContext<TSurfaceColor>(undefined)\n","import { provide } from '@lit/context'\nimport { TailwindElement } from '@mixins/index'\nimport { SchmancySurfaceFill } from '@schmancy/surface'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { SchmancyListTypeContext } from './context'\n\n/**\n * `<schmancy-list>` component.\n *\n * A list component that wraps its content within a customizable surface.\n * It allows you to set the surface type and fill style, and can optionally\n * enable scrolling behavior using the `scroller` property.\n *\n * @element schmancy-list\n * @slot - The default slot for list items.\n *\n * @example\n * <schmancy-list surface=\"container\" scroller>\n * <schmancy-list-item>List Item 1</schmancy-list-item>\n * </schmancy-list>\n */\n@customElement('schmancy-list')\nexport class List extends TailwindElement(css`\n\t:host {\n\t\tdisplay: block;\n\t\tpadding-top: 8px;\n\t\tpadding-bottom: 8px;\n\t}\n\n\t/* When the ul element has the \"scroller\" class, apply scrolling behavior */\n\tul.scroller {\n\t\tposition: relative;\n\t\tcontain: size layout;\n\t\toverflow: auto;\n\t\tscroll-behavior: smooth;\n\t}\n`) {\n\t/**\n\t * Defines the type or color of the surface used by the component.\n\t * This value is provided to descendant components via context.\n\t *\n\t * @attr surface\n\t * @type {TSurfaceColor}\n\t * @default 'surface'\n\t */\n\t@provide({ context: SchmancyListTypeContext })\n\t@property()\n\tsurface: TSurfaceColor\n\n\t/**\n\t * Determines the fill style of the underlying surface.\n\t *\n\t * @attr fill\n\t * @type {SchmancySurfaceFill}\n\t * @default 'auto'\n\t */\n\t@property({ type: String, reflect: true })\n\tfill: SchmancySurfaceFill = 'auto'\n\n\t/**\n\t * When set to true, the component renders its list content with scrollable behavior.\n\t * This is achieved by conditionally adding the 'scroller' CSS class to the <ul> element.\n\t *\n\t * @attr scroller\n\t * @type {boolean}\n\t * @default false\n\t */\n\t@property({ type: Boolean, reflect: true })\n\tscroller: boolean = false\n\n\t/**\n\t * Defines the elevation level of the surface.\n\t *\n\t * @attr elevation\n\t * @type {number}\n\t * @default 0\n\t */\n\t@property({ type: Number })\n\televation: 0 | 1 | 2 | 3 | 4 | 5 = 0\n\n\t/**\n\t * Renders the component's template.\n\t * The list content is wrapped inside a `<schmancy-surface>` element for consistent styling.\n\t * The <ul> element conditionally receives the \"scroller\" class based on the `scroller` property.\n\t *\n\t * @returns The HTML template for the component.\n\t */\n\trender() {\n\t\treturn html`\n\t\t\t<schmancy-surface .elevation=${this.elevation} .fill=${this.fill} type=${this.surface}>\n\t\t\t\t<ul class=${classMap({ scroller: this.scroller })}>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</ul>\n\t\t\t</schmancy-surface>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-list': List\n\t}\n}\n"],"names":["SchmancyListItem","TailwindElement","constructor","super","arguments","this","selected","imgClasses","leading","forEach","img","classList","add","trailing","classes","rounded","stateLayerClasses","readonly","html","classMap","when","__decorateClass","consume","context","SchmancySurfaceTypeContext","subscribe","property","prototype","type","Boolean","queryAssignedElements","slot","flatten","customElement","SchmancyListTypeContext","createContext","List","css","fill","scroller","elevation","render","surface","provide","String","reflect","Number"],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ "use strict";const y=require("./consume-Bb7_UzYd.cjs");require("rxjs");const h=require("lit/directives/class-map.js");require("lit/directives/style-map.js");const u=require("./tailwind.mixin-CJgIYh7g.cjs"),m=require("./context-CHWQnKZ-.cjs"),p=require("lit"),s=require("lit/decorators.js"),f=require("lit/directives/when.js"),d=require("./provide-DSU87U5x.cjs");var g=Object.defineProperty,v=Object.getOwnPropertyDescriptor,c=(i,t,r,o)=>{for(var n,e=o>1?void 0:o?v(t,r):t,l=i.length-1;l>=0;l--)(n=i[l])&&(e=(o?n(t,r,e):n(e))||e);return o&&e&&g(t,r,e),e};exports.SchmancyListItem=class extends u.TailwindElement(){constructor(){super(...arguments),this.selected=!1}get imgClasses(){return["h-[24px]","w-[24px]","object-contain"]}firstUpdated(){var i,t;(i=this.leading)==null||i.forEach(r=>{r.classList.add(...this.imgClasses)}),(t=this.trailing)==null||t.forEach(r=>{r.classList.add(...this.imgClasses)})}render(){const i={"rounded-none":this.rounded===!1,"rounded-full":this.rounded,"relative inset-0 w-full flex items-center min-h-[56px] py-[8px] px-[16px] duration-500 transition-colors focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:z-1 outline-secondary-default outline-hidden":!0,"bg-secondary-container text-secondery-onContainer":this.selected},t={"z-0 duration-500 transition-opacity":!0,"rounded-none":this.rounded===!1,"rounded-full":this.rounded,"hover:bg-surface-on opacity-[0.08] cursor-pointer absolute inset-0 ":!this.readonly};return p.html` <li .tabIndex=${this.readonly?-1:0} class=${this.classMap(i)}>
2
+ ${f.when(!this.readonly,()=>p.html` <div class="${this.classMap(t)}"></div>`)}
3
+ <slot></slot>
4
+ </li>`}},c([y.c({context:m.SchmancySurfaceTypeContext,subscribe:!0}),s.property()],exports.SchmancyListItem.prototype,"variant",2),c([s.property({type:Boolean})],exports.SchmancyListItem.prototype,"rounded",2),c([s.property({type:Boolean})],exports.SchmancyListItem.prototype,"readonly",2),c([s.property({type:Boolean})],exports.SchmancyListItem.prototype,"selected",2),c([s.queryAssignedElements({slot:"leading",flatten:!0})],exports.SchmancyListItem.prototype,"leading",2),c([s.queryAssignedElements({slot:"trailing",flatten:!0})],exports.SchmancyListItem.prototype,"trailing",2),exports.SchmancyListItem=c([s.customElement("schmancy-list-item")],exports.SchmancyListItem);const b=d.n(void 0);var L=Object.defineProperty,x=Object.getOwnPropertyDescriptor,a=(i,t,r,o)=>{for(var n,e=o>1?void 0:o?x(t,r):t,l=i.length-1;l>=0;l--)(n=i[l])&&(e=(o?n(t,r,e):n(e))||e);return o&&e&&L(t,r,e),e};exports.List=class extends u.TailwindElement(p.css`
5
+ :host {
6
+ display: block;
7
+ padding-top: 8px;
8
+ padding-bottom: 8px;
9
+ }
10
+
11
+ /* When the ul element has the "scroller" class, apply scrolling behavior */
12
+ ul.scroller {
13
+ position: relative;
14
+ contain: size layout;
15
+ overflow: auto;
16
+ scroll-behavior: smooth;
17
+ }
18
+ `){constructor(){super(...arguments),this.fill="auto",this.scroller=!1,this.elevation=0}render(){return p.html`
19
+ <schmancy-surface .elevation=${this.elevation} .fill=${this.fill} type=${this.surface}>
20
+ <ul class=${h.classMap({scroller:this.scroller})}>
21
+ <slot></slot>
22
+ </ul>
23
+ </schmancy-surface>
24
+ `}},a([d.e({context:b}),s.property()],exports.List.prototype,"surface",2),a([s.property({type:String,reflect:!0})],exports.List.prototype,"fill",2),a([s.property({type:Boolean,reflect:!0})],exports.List.prototype,"scroller",2),a([s.property({type:Number})],exports.List.prototype,"elevation",2),exports.List=a([s.customElement("schmancy-list")],exports.List);
25
+ //# sourceMappingURL=list-pIDcGS1c.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-pIDcGS1c.cjs","sources":["../src/list/list-item.ts","../src/list/context.ts","../src/list/list.ts"],"sourcesContent":["import { consume } from '@lit/context'\nimport { TailwindElement } from '@mixins/index'\nimport { SchmancySurfaceTypeContext } from '@schmancy/surface/context'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nimport { html } from 'lit'\nimport { customElement, property, queryAssignedElements } from 'lit/decorators.js'\nimport { when } from 'lit/directives/when.js'\n\n/**\n * @element schmancy-list-item\n * @slot leading - leading content\n * @slot trailing - trailing content\n * @slot - default content\n */\n@customElement('schmancy-list-item')\nexport class SchmancyListItem extends TailwindElement() {\n\t@consume({ context: SchmancySurfaceTypeContext, subscribe: true })\n\t@property()\n\tvariant: TSurfaceColor\n\n\t@property({ type: Boolean })\n\trounded: boolean\n\n\t@property({ type: Boolean }) readonly: boolean\n\n\t@property({ type: Boolean }) selected: boolean = false\n\n\t@queryAssignedElements({\n\t\tslot: 'leading',\n\t\tflatten: true,\n\t})\n\tprivate leading!: HTMLElement[]\n\n\t@queryAssignedElements({\n\t\tslot: 'trailing',\n\t\tflatten: true,\n\t})\n\tprivate trailing!: HTMLElement[]\n\n\tprotected get imgClasses(): string[] {\n\t\treturn ['h-[24px]', 'w-[24px]', 'object-contain']\n\t}\n\n\tfirstUpdated() {\n\t\tthis.leading?.forEach(img => {\n\t\t\timg.classList.add(...this.imgClasses)\n\t\t})\n\t\tthis.trailing?.forEach(img => {\n\t\t\timg.classList.add(...this.imgClasses)\n\t\t})\n\t}\n\n\trender() {\n\t\tconst classes = {\n\t\t\t'rounded-none': this.rounded === false,\n\t\t\t'rounded-full': this.rounded,\n\t\t\t'relative inset-0 w-full flex items-center min-h-[56px] py-[8px] px-[16px] duration-500 transition-colors focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-0 focus-visible:z-1 outline-secondary-default outline-hidden':\n\t\t\t\ttrue,\n\t\t\t'bg-secondary-container text-secondery-onContainer': this.selected,\n\t\t}\n\n\t\tconst stateLayerClasses = {\n\t\t\t'z-0 duration-500 transition-opacity': true,\n\t\t\t'rounded-none': this.rounded === false,\n\t\t\t'rounded-full': this.rounded,\n\t\t\t'hover:bg-surface-on opacity-[0.08] cursor-pointer absolute inset-0 ': !this.readonly,\n\t\t}\n\t\treturn html` <li .tabIndex=${this.readonly ? -1 : 0} class=${this.classMap(classes)}>\n\t\t\t${when(!this.readonly, () => html` <div class=\"${this.classMap(stateLayerClasses)}\"></div>`)}\n\t\t\t<slot></slot>\n\t\t</li>`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-list-item': SchmancyListItem\n\t}\n}\n","import { createContext } from '@lit/context'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nexport const SchmancyListTypeContext = createContext<TSurfaceColor>(undefined)\n","import { provide } from '@lit/context'\nimport { TailwindElement } from '@mixins/index'\nimport { SchmancySurfaceFill } from '@schmancy/surface'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { SchmancyListTypeContext } from './context'\n\n/**\n * `<schmancy-list>` component.\n *\n * A list component that wraps its content within a customizable surface.\n * It allows you to set the surface type and fill style, and can optionally\n * enable scrolling behavior using the `scroller` property.\n *\n * @element schmancy-list\n * @slot - The default slot for list items.\n *\n * @example\n * <schmancy-list surface=\"container\" scroller>\n * <schmancy-list-item>List Item 1</schmancy-list-item>\n * </schmancy-list>\n */\n@customElement('schmancy-list')\nexport class List extends TailwindElement(css`\n\t:host {\n\t\tdisplay: block;\n\t\tpadding-top: 8px;\n\t\tpadding-bottom: 8px;\n\t}\n\n\t/* When the ul element has the \"scroller\" class, apply scrolling behavior */\n\tul.scroller {\n\t\tposition: relative;\n\t\tcontain: size layout;\n\t\toverflow: auto;\n\t\tscroll-behavior: smooth;\n\t}\n`) {\n\t/**\n\t * Defines the type or color of the surface used by the component.\n\t * This value is provided to descendant components via context.\n\t *\n\t * @attr surface\n\t * @type {TSurfaceColor}\n\t * @default 'surface'\n\t */\n\t@provide({ context: SchmancyListTypeContext })\n\t@property()\n\tsurface: TSurfaceColor\n\n\t/**\n\t * Determines the fill style of the underlying surface.\n\t *\n\t * @attr fill\n\t * @type {SchmancySurfaceFill}\n\t * @default 'auto'\n\t */\n\t@property({ type: String, reflect: true })\n\tfill: SchmancySurfaceFill = 'auto'\n\n\t/**\n\t * When set to true, the component renders its list content with scrollable behavior.\n\t * This is achieved by conditionally adding the 'scroller' CSS class to the <ul> element.\n\t *\n\t * @attr scroller\n\t * @type {boolean}\n\t * @default false\n\t */\n\t@property({ type: Boolean, reflect: true })\n\tscroller: boolean = false\n\n\t/**\n\t * Defines the elevation level of the surface.\n\t *\n\t * @attr elevation\n\t * @type {number}\n\t * @default 0\n\t */\n\t@property({ type: Number })\n\televation: 0 | 1 | 2 | 3 | 4 | 5 = 0\n\n\t/**\n\t * Renders the component's template.\n\t * The list content is wrapped inside a `<schmancy-surface>` element for consistent styling.\n\t * The <ul> element conditionally receives the \"scroller\" class based on the `scroller` property.\n\t *\n\t * @returns The HTML template for the component.\n\t */\n\trender() {\n\t\treturn html`\n\t\t\t<schmancy-surface .elevation=${this.elevation} .fill=${this.fill} type=${this.surface}>\n\t\t\t\t<ul class=${classMap({ scroller: this.scroller })}>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</ul>\n\t\t\t</schmancy-surface>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-list': List\n\t}\n}\n"],"names":["SchmancyListItem","TailwindElement","constructor","super","arguments","this","selected","imgClasses","firstUpdated","leading","forEach","img","classList","add","trailing","classes","rounded","stateLayerClasses","readonly","html","classMap","when","__decorateClass","consume","context","SchmancySurfaceTypeContext","subscribe","property","prototype","type","Boolean","queryAssignedElements","slot","flatten","customElement","SchmancyListTypeContext","createContext","List","css","fill","scroller","elevation","surface","provide","String","reflect","Number"],"mappings":"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"}
package/dist/list.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./list-CjGhfk17.cjs");Object.defineProperty(exports,"List",{enumerable:!0,get:()=>e.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>e.SchmancyListItem});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./list-pIDcGS1c.cjs");Object.defineProperty(exports,"List",{enumerable:!0,get:()=>e.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>e.SchmancyListItem});
2
2
  //# sourceMappingURL=list.cjs.map
package/dist/list.js CHANGED
@@ -1,4 +1,4 @@
1
- import { L as a, S as m } from "./list-BdzGJPAk.js";
1
+ import { L as a, S as m } from "./list-C9s_UTGh.js";
2
2
  export {
3
3
  a as List,
4
4
  m as SchmancyListItem
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CZIVznqr.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CEgJ1UMu.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
2
2
  //# sourceMappingURL=nav-drawer.cjs.map
@@ -1,4 +1,4 @@
1
- import { $ as c, i as e, k as n, l as m, m as s, j as h, n as i, h as t } from "./teleport.component-h1hczZwl.js";
1
+ import { $ as c, i as e, k as n, l as m, m as s, j as h, n as i, h as t } from "./teleport.component-BDwKenAE.js";
2
2
  export {
3
3
  c as $drawer,
4
4
  e as SchmancyDrawerAppbar,
package/dist/teleport.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CZIVznqr.cjs");exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.teleport=e.teleport;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CEgJ1UMu.cjs");exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.teleport=e.teleport;
2
2
  //# sourceMappingURL=teleport.cjs.map
@@ -25,7 +25,7 @@ import "./form-G748qOFO.js";
25
25
  import "./icon-VpDcG-1m.js";
26
26
  import "./input-DQo_jcQh.js";
27
27
  import "./flex-BD4c3vZt.js";
28
- import "./list-BdzGJPAk.js";
28
+ import "./list-C9s_UTGh.js";
29
29
  import "./menu-Cpld82tG.js";
30
30
  import { when as Y } from "lit/directives/when.js";
31
31
  import "./outlet-Ivt5XK7t.js";
@@ -527,4 +527,4 @@ export {
527
527
  Ve as s,
528
528
  H as t
529
529
  };
530
- //# sourceMappingURL=teleport.component-h1hczZwl.js.map
530
+ //# sourceMappingURL=teleport.component-BDwKenAE.js.map