@mhmo91/schmancy 0.2.90 → 0.2.94
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 +1 -1
- package/dist/card.js +1 -1
- package/dist/{chips-C0maM-LZ.js → chips-Rnq5GOEq.js} +12 -12
- package/dist/{chips-C0maM-LZ.js.map → chips-Rnq5GOEq.js.map} +1 -1
- package/dist/chips.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +26 -25
- package/dist/{list-CjdF2WAc.js → list-CXPHvvQw.js} +14 -15
- package/dist/list-CXPHvvQw.js.map +1 -0
- package/dist/list-Dy8fudM4.cjs +17 -0
- package/dist/list-Dy8fudM4.cjs.map +1 -0
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/surface-28VxChKi.cjs +22 -0
- package/dist/surface-28VxChKi.cjs.map +1 -0
- package/dist/{surface-Bxn0eKDp.js → surface-DW9nuQvU.js} +21 -24
- package/dist/surface-DW9nuQvU.js.map +1 -0
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +3 -2
- package/dist/teleport.cjs +1 -1
- package/dist/{teleport.component-CgOdCzLc.cjs → teleport.component-CVc7rNr5.cjs} +2 -2
- package/dist/{teleport.component-CgOdCzLc.cjs.map → teleport.component-CVc7rNr5.cjs.map} +1 -1
- package/dist/{teleport.component-DIeFTjTL.js → teleport.component-Do3nxd5Y.js} +5 -5
- package/dist/{teleport.component-DIeFTjTL.js.map → teleport.component-Do3nxd5Y.js.map} +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{typewriter-CIUrZbfY.js → typewriter-BIL8Kwvt.js} +11 -11
- package/dist/{typewriter-CIUrZbfY.js.map → typewriter-BIL8Kwvt.js.map} +1 -1
- package/dist/typewriter-C9L0TA4Y.cjs.map +1 -1
- package/dist/typewriter.js +1 -1
- package/package.json +1 -1
- package/types/src/surface/surface.d.ts +20 -55
- package/dist/context-CHWQnKZ-.cjs +0 -2
- package/dist/context-CHWQnKZ-.cjs.map +0 -1
- package/dist/context-YZmnxxIi.js +0 -6
- package/dist/context-YZmnxxIi.js.map +0 -1
- package/dist/list-BfuHqQMi.cjs +0 -17
- package/dist/list-BfuHqQMi.cjs.map +0 -1
- package/dist/list-CjdF2WAc.js.map +0 -1
- package/dist/surface-BHP347Uc.cjs +0 -26
- package/dist/surface-BHP347Uc.cjs.map +0 -1
- package/dist/surface-Bxn0eKDp.js.map +0 -1
- package/types/mixins/lit/index.d.ts +0 -1
- package/types/mixins/lit/litElement.mixin.d.ts +0 -3
- package/types/mixins/shared/baseElement.d.ts +0 -11
- package/types/mixins/shared/constructor.d.ts +0 -2
- package/types/mixins/shared/index.d.ts +0 -2
- package/types/mixins/tailwind/index.d.ts +0 -1
- package/types/mixins/tailwind/tailwind.mixin.d.ts +0 -7
- package/types/src/animate/animate.component.d.ts +0 -30
- package/types/src/animate/index.d.ts +0 -1
- package/types/src/appbar/index.d.ts +0 -1
- package/types/src/appbar/top.d.ts +0 -13
- package/types/src/directives/tooltip.d.ts +0 -6
- package/types/src/drawer/$navbar.d.ts +0 -11
- package/types/src/drawer/appbar.d.ts +0 -18
- package/types/src/drawer/content.d.ts +0 -10
- package/types/src/drawer/context.d.ts +0 -8
- package/types/src/drawer/drawer.d.ts +0 -33
- package/types/src/drawer/index.d.ts +0 -6
- package/types/src/drawer/navbar.d.ts +0 -17
- package/types/src/drawer/sidebar.d.ts +0 -15
- package/types/src/events.d.ts +0 -4
- package/types/src/layout/layout/layout.d.ts +0 -49
- package/types/src/list/list-v2.d.ts +0 -61
- package/types/src/mixin/index.d.ts +0 -2
- package/types/src/mixin/lit/index.d.ts +0 -1
- package/types/src/mixin/lit/litElement.mixin.d.ts +0 -3
- package/types/src/mixin/shared/baseElement.d.ts +0 -11
- package/types/src/mixin/shared/constructor.d.ts +0 -2
- package/types/src/mixin/shared/index.d.ts +0 -2
- package/types/src/mixin/tailwind/index.d.ts +0 -1
- package/types/src/mixin/tailwind/tailwind.mixin.d.ts +0 -8
- package/types/src/paper/index.d.ts +0 -1
- package/types/src/paper/paper.d.ts +0 -10
- package/types/src/sheet/sheet-content.d.ts +0 -10
- package/types/src/theme/$schmancyTheme.d.ts +0 -66
- package/types/src/theme/defaultTheme.d.ts +0 -2
- package/types/src/theme/dynamicTheme.d.ts +0 -5
- package/types/tailwind.config.d.ts +0 -4
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./animated-text-D0ScsYTh.js";
|
|
2
|
-
import { F as C, H as d, b as T, S as
|
|
2
|
+
import { F as C, H as d, b as T, S as u, a as b, r as N } from "./area.component-Bf5IqH4V.js";
|
|
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 L, i as O, k as W, 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-
|
|
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 L, i as O, k as W, 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-Do3nxd5Y.js";
|
|
7
7
|
import { S as U } from "./checkbox-CwxyfGAd.js";
|
|
8
|
-
import "./chips-
|
|
8
|
+
import "./chips-Rnq5GOEq.js";
|
|
9
9
|
import { S as Z } from "./payment-card-form-E08S_U7K.js";
|
|
10
10
|
import "./date-range-eiBhfMFP.js";
|
|
11
11
|
import { S as ra, d as ea } from "./delay-w1zFi9km.js";
|
|
@@ -15,29 +15,29 @@ import "./form-G748qOFO.js";
|
|
|
15
15
|
import "./icon-VpDcG-1m.js";
|
|
16
16
|
import "./input-DZ2KhA3T.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, a as fa, S as xa } from "./list-
|
|
18
|
+
import { L as pa, a as fa, S as xa } from "./list-CXPHvvQw.js";
|
|
19
19
|
import "./menu-Cpld82tG.js";
|
|
20
20
|
import { $ as wa, S as Da, a as Ca } from "./outlet-Ivt5XK7t.js";
|
|
21
21
|
import "./option-CXpO0NeB.js";
|
|
22
22
|
import { R as Ta } from "./radio-group-BzITeo1Z.js";
|
|
23
|
-
import { mutationObserver as
|
|
23
|
+
import { mutationObserver as ba } from "./rxjs-utils.js";
|
|
24
24
|
import "rxjs";
|
|
25
25
|
import "./index-CuY8m6ta.js";
|
|
26
26
|
import { S as Ha } from "./select-B6Us7Kk8.js";
|
|
27
27
|
import { S as va, b as Ia, a as Ma, s as ga } from "./sheet-CjC176Qy.js";
|
|
28
28
|
import { S as Aa, a as Fa } from "./slider-BYmWjukU.js";
|
|
29
|
-
import {
|
|
29
|
+
import { a as $a, S as ka } from "./surface-DW9nuQvU.js";
|
|
30
30
|
import "./table-BGHYGmrv.js";
|
|
31
31
|
import "./tabs-group-BGt0LDRx.js";
|
|
32
32
|
import "./textarea-DVE0Iujg.js";
|
|
33
|
-
import { S as
|
|
34
|
-
import { S as
|
|
33
|
+
import { S as La, f as Oa, t as Wa } from "./theme.component-Cxzd_0lj.js";
|
|
34
|
+
import { S as Ba } from "./theme.interface-C5Kj6WjD.js";
|
|
35
35
|
import "./theme-button-Rxotzhau.js";
|
|
36
|
-
import { S as
|
|
37
|
-
import { SchmancyEvents as
|
|
38
|
-
import { T as
|
|
39
|
-
import { S as
|
|
40
|
-
import { i as
|
|
36
|
+
import { S as ja } from "./tree-KgbT4fIt.js";
|
|
37
|
+
import { SchmancyEvents as Va } from "./types.js";
|
|
38
|
+
import { T as za } from "./typewriter-BIL8Kwvt.js";
|
|
39
|
+
import { S as Qa } from "./typography-B-peejTb.js";
|
|
40
|
+
import { i as Xa } from "./intersection-CJxzz8c-.js";
|
|
41
41
|
export {
|
|
42
42
|
M as $drawer,
|
|
43
43
|
wa as $notify,
|
|
@@ -47,7 +47,7 @@ export {
|
|
|
47
47
|
g as HereMorty,
|
|
48
48
|
pa as List,
|
|
49
49
|
Ta as RadioGroup,
|
|
50
|
-
|
|
50
|
+
u as SchmancyArea,
|
|
51
51
|
R as SchmancyButton,
|
|
52
52
|
U as SchmancyCheckbox,
|
|
53
53
|
E as SchmancyContentDrawer,
|
|
@@ -62,7 +62,7 @@ export {
|
|
|
62
62
|
O as SchmancyDrawerAppbar,
|
|
63
63
|
W as SchmancyDrawerNavbarMode,
|
|
64
64
|
_ as SchmancyDrawerNavbarState,
|
|
65
|
-
|
|
65
|
+
Va as SchmancyEvents,
|
|
66
66
|
sa as SchmancyFlex,
|
|
67
67
|
Sa as SchmancyFlexV2,
|
|
68
68
|
ha as SchmancyGrid,
|
|
@@ -80,29 +80,30 @@ export {
|
|
|
80
80
|
Aa as SchmancySlide,
|
|
81
81
|
Fa as SchmancySlider,
|
|
82
82
|
$a as SchmancySurface,
|
|
83
|
+
ka as SchmancySurfaceTypeContext,
|
|
83
84
|
K as SchmancyTeleportation,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
Ba as SchmancyTheme,
|
|
86
|
+
La as SchmancyThemeComponent,
|
|
87
|
+
ja as SchmancyTree,
|
|
88
|
+
Qa as SchmancyTypography,
|
|
88
89
|
v as SchmnacyIconButton,
|
|
89
90
|
Ia as SheetHereMorty,
|
|
90
91
|
Ma as SheetWhereAreYouRicky,
|
|
91
|
-
|
|
92
|
+
za as TypewriterElement,
|
|
92
93
|
V as WhereAreYouRicky,
|
|
93
|
-
|
|
94
|
+
b as area,
|
|
94
95
|
oa as color,
|
|
95
96
|
ea as delayContext,
|
|
96
|
-
|
|
97
|
+
Oa as formateTheme,
|
|
97
98
|
ca as fullHeight,
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
Xa as intersection$,
|
|
100
|
+
ba as mutationObserver,
|
|
100
101
|
ma as ripple,
|
|
101
102
|
N as routerHistory,
|
|
102
103
|
q as schmancyContentDrawer,
|
|
103
104
|
z as schmancyNavDrawer,
|
|
104
105
|
ga as sheet,
|
|
105
|
-
|
|
106
|
+
Wa as tailwindStyles,
|
|
106
107
|
J as teleport
|
|
107
108
|
};
|
|
108
109
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as g } from "./consume-fRVATvdE.js";
|
|
2
2
|
import "rxjs";
|
|
3
3
|
import "lit/directives/class-map.js";
|
|
4
4
|
import "lit/directives/style-map.js";
|
|
5
5
|
import { T as y } from "./tailwind.mixin-D4STgS5j.js";
|
|
6
|
-
import {
|
|
7
|
-
import { html as u, css as
|
|
8
|
-
import { property as l, queryAssignedElements as f, customElement as
|
|
9
|
-
import { when as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var j = Object.defineProperty, w = Object.getOwnPropertyDescriptor, p = (s, e, o, r) => {
|
|
6
|
+
import { n as h, e as v } from "./provide-BLSgVvMJ.js";
|
|
7
|
+
import { html as u, css as b } from "lit";
|
|
8
|
+
import { property as l, queryAssignedElements as f, customElement as m } from "lit/decorators.js";
|
|
9
|
+
import { when as x } from "lit/directives/when.js";
|
|
10
|
+
const $ = h(void 0), O = h("surface");
|
|
11
|
+
var j = Object.defineProperty, w = Object.getOwnPropertyDescriptor, c = (s, e, o, r) => {
|
|
13
12
|
for (var n, t = r > 1 ? void 0 : r ? w(e, o) : e, a = s.length - 1; a >= 0; a--) (n = s[a]) && (t = (r ? n(e, o, t) : n(t)) || t);
|
|
14
13
|
return r && t && j(e, o, t), t;
|
|
15
14
|
};
|
|
@@ -31,17 +30,17 @@ let i = class extends y() {
|
|
|
31
30
|
render() {
|
|
32
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 };
|
|
33
32
|
return u` <li .tabIndex=${this.readonly ? -1 : 0} class=${this.classMap(s)}>
|
|
34
|
-
${
|
|
33
|
+
${x(!this.readonly, () => u` <div class="${this.classMap(e)}"></div>`)}
|
|
35
34
|
<slot></slot>
|
|
36
35
|
</li>`;
|
|
37
36
|
}
|
|
38
37
|
};
|
|
39
|
-
|
|
38
|
+
c([g({ context: O, 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([f({ slot: "leading", flatten: !0 })], i.prototype, "leading", 2), c([f({ slot: "trailing", flatten: !0 })], i.prototype, "trailing", 2), i = c([m("schmancy-list-item")], i);
|
|
40
39
|
var B = Object.defineProperty, C = Object.getOwnPropertyDescriptor, d = (s, e, o, r) => {
|
|
41
40
|
for (var n, t = r > 1 ? void 0 : r ? C(e, o) : e, a = s.length - 1; a >= 0; a--) (n = s[a]) && (t = (r ? n(e, o, t) : n(t)) || t);
|
|
42
41
|
return r && t && B(e, o, t), t;
|
|
43
42
|
};
|
|
44
|
-
let
|
|
43
|
+
let p = class extends y(b`
|
|
45
44
|
:host {
|
|
46
45
|
display: block;
|
|
47
46
|
padding-top: 8px;
|
|
@@ -61,10 +60,10 @@ let c = class extends y(v`
|
|
|
61
60
|
`;
|
|
62
61
|
}
|
|
63
62
|
};
|
|
64
|
-
d([
|
|
63
|
+
d([v({ context: $ }), 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([m("schmancy-list")], p);
|
|
65
64
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
p as L,
|
|
66
|
+
$ as S,
|
|
68
67
|
i as a
|
|
69
68
|
};
|
|
70
|
-
//# sourceMappingURL=list-
|
|
69
|
+
//# sourceMappingURL=list-CXPHvvQw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-CXPHvvQw.js","sources":["../src/list/context.ts","../src/surface/context.ts","../src/list/list-item.ts","../src/list/list.ts"],"sourcesContent":["import { createContext } from '@lit/context'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nexport const SchmancyListTypeContext = createContext<TSurfaceColor>(undefined)\n","import { createContext } from '@lit/context'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nexport const SchmancySurfaceTypeContext = createContext<TSurfaceColor>('surface')\n","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 { 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 { 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 by delegating the scroller attribute to the surface.\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/**\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 surface component will handle scrolling behavior.\n\t * This is achieved by passing the boolean attribute to <schmancy-surface>.\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.\n\t * The scroller property is delegated to the surface so that it controls\n\t * the scrollable behavior.\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} ?scroller=${this.scroller}>\n\t\t\t\t<ul>\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":["SchmancyListTypeContext","createContext","SchmancySurfaceTypeContext","SchmancyListItem","TailwindElement","super","arguments","this","selected","imgClasses","firstUpdated","leading","forEach","img","classList","add","trailing","render","classes","rounded","stateLayerClasses","readonly","html","classMap","when","__decorateClass","consume","context","subscribe","property","prototype","type","Boolean","queryAssignedElements","slot","flatten","customElement","List","css","fill","scroller","elevation","surface","provide","String","reflect","Number"],"mappings":"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"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";const h=require("./consume-Bb7_UzYd.cjs");require("rxjs"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const y=require("./tailwind.mixin-CJgIYh7g.cjs"),d=require("./provide-DSU87U5x.cjs"),p=require("lit"),s=require("lit/decorators.js"),m=require("lit/directives/when.js"),u=d.n(void 0),f=d.n("surface");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 y.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
|
+
${m.when(!this.readonly,()=>p.html` <div class="${this.classMap(t)}"></div>`)}
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</li>`}},c([h.c({context:f,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);var L=Object.defineProperty,b=Object.getOwnPropertyDescriptor,a=(i,t,r,o)=>{for(var n,e=o>1?void 0:o?b(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 y.TailwindElement(p.css`
|
|
5
|
+
:host {
|
|
6
|
+
display: block;
|
|
7
|
+
padding-top: 8px;
|
|
8
|
+
padding-bottom: 8px;
|
|
9
|
+
}
|
|
10
|
+
`){constructor(){super(...arguments),this.fill="auto",this.scroller=!1,this.elevation=0}render(){return p.html`
|
|
11
|
+
<schmancy-surface .elevation=${this.elevation} .fill=${this.fill} type=${this.surface} ?scroller=${this.scroller}>
|
|
12
|
+
<ul>
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</ul>
|
|
15
|
+
</schmancy-surface>
|
|
16
|
+
`}},a([d.e({context:u}),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),exports.SchmancyListTypeContext=u;
|
|
17
|
+
//# sourceMappingURL=list-Dy8fudM4.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-Dy8fudM4.cjs","sources":["../src/list/context.ts","../src/surface/context.ts","../src/list/list-item.ts","../src/list/list.ts"],"sourcesContent":["import { createContext } from '@lit/context'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nexport const SchmancyListTypeContext = createContext<TSurfaceColor>(undefined)\n","import { createContext } from '@lit/context'\nimport { TSurfaceColor } from '@schmancy/types/surface'\nexport const SchmancySurfaceTypeContext = createContext<TSurfaceColor>('surface')\n","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 { 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 { 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 by delegating the scroller attribute to the surface.\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/**\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 surface component will handle scrolling behavior.\n\t * This is achieved by passing the boolean attribute to <schmancy-surface>.\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.\n\t * The scroller property is delegated to the surface so that it controls\n\t * the scrollable behavior.\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} ?scroller=${this.scroller}>\n\t\t\t\t<ul>\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":["SchmancyListTypeContext","createContext","SchmancySurfaceTypeContext","SchmancyListItem","TailwindElement","super","arguments","this","selected","leading","forEach","img","classList","add","imgClasses","trailing","classes","rounded","stateLayerClasses","readonly","html","classMap","when","__decorateClass","consume","context","subscribe","property","prototype","type","Boolean","queryAssignedElements","slot","flatten","customElement","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-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./list-Dy8fudM4.cjs");Object.defineProperty(exports,"List",{enumerable:!0,get:()=>e.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>e.SchmancyListItem}),exports.SchmancyListTypeContext=e.SchmancyListTypeContext;
|
|
2
2
|
//# sourceMappingURL=list.cjs.map
|
package/dist/list.js
CHANGED
package/dist/nav-drawer.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CVc7rNr5.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
|
package/dist/nav-drawer.js
CHANGED
|
@@ -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-
|
|
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-Do3nxd5Y.js";
|
|
2
2
|
export {
|
|
3
3
|
c as $drawer,
|
|
4
4
|
e as SchmancyDrawerAppbar,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";const u=require("./provide-DSU87U5x.cjs"),p=require("./tailwind.mixin-CJgIYh7g.cjs"),a=require("lit"),t=require("lit/decorators.js"),d=require("lit/directives/class-map.js");var f=Object.defineProperty,y=Object.getOwnPropertyDescriptor,r=(i,s,h,o)=>{for(var n,e=o>1?void 0:o?y(s,h):s,c=i.length-1;c>=0;c--)(n=i[c])&&(e=(o?n(s,h,e):n(e))||e);return o&&e&&f(s,h,e),e};const l=u.n("surface");exports.SchmancySurface=class extends p.TailwindElement(a.css`
|
|
2
|
+
:host([fill='all']) {
|
|
3
|
+
height: 100%;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
:host([fill='width']) {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
:host([fill='height']) {
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
:host {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
`){constructor(){super(...arguments),this.fill="auto",this.rounded="none",this.type="surface",this.elevation=0}render(){const i={relative:!0,"inset-0":!0,block:!0,"box-border":!0,"rounded-none":this.rounded==="none","rounded-t-[8px]":this.rounded==="top","rounded-l-[8px]":this.rounded==="left","rounded-r-[8px]":this.rounded==="right","rounded-b-[8px]":this.rounded==="bottom","rounded-[8px]":this.rounded==="all","w-full":this.fill==="width"||this.fill==="all","h-full":this.fill==="height"||this.fill==="all","shadow-xs":this.elevation===1,"shadow-sm":this.elevation===2,"shadow-md":this.elevation===3,"shadow-lg":this.elevation===4,"shadow-xl":this.elevation===5,"text-surface-on":this.type==="surface"||this.type==="surfaceDim"||this.type==="surfaceBright"||this.type==="containerLowest"||this.type==="containerLow"||this.type==="container"||this.type==="containerHigh"||this.type==="containerHighest","bg-surface-default":this.type==="surface","bg-surface-dim":this.type==="surfaceDim","bg-surface-bright":this.type==="surfaceBright","bg-surface-lowest":this.type==="containerLowest","bg-surface-low":this.type==="containerLow","bg-surface-container":this.type==="container","bg-surface-high":this.type==="containerHigh","bg-surface-highest":this.type==="containerHighest"};return a.html`
|
|
16
|
+
<section class=${d.classMap(i)}>
|
|
17
|
+
<schmancy-scroll>
|
|
18
|
+
<slot></slot>
|
|
19
|
+
</schmancy-scroll>
|
|
20
|
+
</section>
|
|
21
|
+
`}},r([t.property({type:String,reflect:!0})],exports.SchmancySurface.prototype,"fill",2),r([t.property()],exports.SchmancySurface.prototype,"rounded",2),r([u.e({context:l}),t.property()],exports.SchmancySurface.prototype,"type",2),r([t.property({type:Number,reflect:!0})],exports.SchmancySurface.prototype,"elevation",2),exports.SchmancySurface=r([t.customElement("schmancy-surface")],exports.SchmancySurface),exports.SchmancySurfaceTypeContext=l;
|
|
22
|
+
//# sourceMappingURL=surface-28VxChKi.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surface-28VxChKi.cjs","sources":["../src/surface/surface.ts"],"sourcesContent":["import { createContext, provide } from '@lit/context'\nimport { TailwindElement } from '@mixins/tailwind.mixin'\nimport { TSurfaceColor } from '@schmancy/types'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js' // Import classMap\n\nexport const SchmancySurfaceTypeContext = createContext<TSurfaceColor>('surface')\n\nexport type SchmancySurfaceFill = 'all' | 'width' | 'height' | 'auto'\n/**\n * `<schmancy-surface>` component\n *\n * This component renders a styled container that adapts its dimensions based on the `fill` property.\n * It supports various rounding options, elevation levels, and applies background and text color classes\n * based on the specified surface variant. Additionally, when the `scroller` property is true, the component\n * enables internal scrolling by applying overflow and scroll-behavior styles.\n *\n * @element schmancy-surface\n * @slot - Default slot for projecting child content.\n *\n * @example\n * <schmancy-surface fill=\"all\" rounded=\"all\" elevation=\"3\" type=\"surfaceBright\" scroller>\n * <p>Your scrollable content here</p>\n * </schmancy-surface>\n */\n@customElement('schmancy-surface')\nexport class SchmancySurface extends TailwindElement(css`\n\t:host([fill='all']) {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t:host([fill='width']) {\n\t\twidth: 100%;\n\t}\n\t:host([fill='height']) {\n\t\theight: 100%;\n\t}\n\t:host {\n\t\tdisplay: block;\n\t}\n`) {\n\t/**\n\t * Fill the width and/or height of the parent container.\n\t * Options: 'all', 'width', 'height', 'auto'.\n\t * @default 'auto'\n\t */\n\t@property({ type: String, reflect: true })\n\tfill: 'all' | 'width' | 'height' | 'auto' = 'auto'\n\n\t/**\n\t * Specifies the rounding style of the component's corners.\n\t * Options: 'none', 'top', 'left', 'right', 'bottom', 'all'.\n\t * @default 'none'\n\t */\n\t@property()\n\trounded: 'none' | 'top' | 'left' | 'right' | 'bottom' | 'all' = 'none'\n\n\t/**\n\t * Specifies the surface type for styling.\n\t * Provided to descendant components via context.\n\t * Options: 'surface', 'surfaceDim', 'surfaceBright', 'containerLowest',\n\t * 'containerLow', 'container', 'containerHigh', 'containerHighest'.\n\t * @default 'surface'\n\t */\n\t@provide({ context: SchmancySurfaceTypeContext })\n\t@property()\n\ttype: TSurfaceColor = 'surface'\n\n\t/**\n\t * Defines the elevation level (shadow depth) of the surface.\n\t * Valid values: 0, 1, 2, 3, 4, 5.\n\t * @default 0\n\t */\n\t@property({ type: Number, reflect: true })\n\televation: 0 | 1 | 2 | 3 | 4 | 5 = 0\n\n\tprotected render(): unknown {\n\t\tconst classes = {\n\t\t\trelative: true,\n\t\t\t'inset-0': true,\n\t\t\tblock: true,\n\t\t\t'box-border': true,\n\t\t\t// Rounding classes\n\t\t\t'rounded-none': this.rounded === 'none',\n\t\t\t'rounded-t-[8px]': this.rounded === 'top',\n\t\t\t'rounded-l-[8px]': this.rounded === 'left',\n\t\t\t'rounded-r-[8px]': this.rounded === 'right',\n\t\t\t'rounded-b-[8px]': this.rounded === 'bottom',\n\t\t\t'rounded-[8px]': this.rounded === 'all',\n\t\t\t// Fill classes\n\t\t\t'w-full': this.fill === 'width' || this.fill === 'all',\n\t\t\t'h-full': this.fill === 'height' || this.fill === 'all',\n\t\t\t// Elevation shadow classes\n\t\t\t'shadow-xs': this.elevation === 1,\n\t\t\t'shadow-sm': this.elevation === 2,\n\t\t\t'shadow-md': this.elevation === 3,\n\t\t\t'shadow-lg': this.elevation === 4,\n\t\t\t'shadow-xl': this.elevation === 5,\n\t\t\t// Text color based on the surface variant for optimal readability\n\t\t\t'text-surface-on':\n\t\t\t\tthis.type === 'surface' ||\n\t\t\t\tthis.type === 'surfaceDim' ||\n\t\t\t\tthis.type === 'surfaceBright' ||\n\t\t\t\tthis.type === 'containerLowest' ||\n\t\t\t\tthis.type === 'containerLow' ||\n\t\t\t\tthis.type === 'container' ||\n\t\t\t\tthis.type === 'containerHigh' ||\n\t\t\t\tthis.type === 'containerHighest',\n\t\t\t// Background color classes based on the surface variant\n\t\t\t'bg-surface-default': this.type === 'surface',\n\t\t\t'bg-surface-dim': this.type === 'surfaceDim',\n\t\t\t'bg-surface-bright': this.type === 'surfaceBright',\n\t\t\t'bg-surface-lowest': this.type === 'containerLowest',\n\t\t\t'bg-surface-low': this.type === 'containerLow',\n\t\t\t'bg-surface-container': this.type === 'container',\n\t\t\t'bg-surface-high': this.type === 'containerHigh',\n\t\t\t'bg-surface-highest': this.type === 'containerHighest',\n\t\t}\n\n\t\treturn html`\n\t\t\t<section class=${classMap(classes)}>\n\t\t\t\t<schmancy-scroll>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</schmancy-scroll>\n\t\t\t</section>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-surface': SchmancySurface\n\t}\n}\n"],"names":["SchmancySurfaceTypeContext","createContext","SchmancySurface","TailwindElement","css","super","arguments","this","fill","rounded","type","elevation","render","classes","relative","block","html","classMap","__decorateClass","property","String","reflect","prototype","provide","context","Number","customElement"],"mappings":"2XAOa,MAAAA,EAA6BC,IAA6B,WAoB1DC,QAAAA,gBAAN,cAA8BC,EAAAA,gBAAgBC,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,CAA9C,CAAA,CAAA,aAAAC,CAAAA,MAAAA,GAAAC,SAqBsCC,EAAAA,KAAAC,KAAA,OAQoBD,KAAAE,QAAA,OAW1CF,KAAAG,KAAA,UAQaH,KAAAI,UAAA,CAAA,CAEzB,QAAAC,CACT,MAAMC,EAAU,CACfC,SAAAA,GACA,UAAW,GACXC,MAAO,GACP,gBAEA,eAAgBR,KAAKE,UAAY,OACjC,kBAAmBF,KAAKE,UAAY,MACpC,kBAAmBF,KAAKE,UAAY,OACpC,kBAAmBF,KAAKE,UAAY,QACpC,kBAAmBF,KAAKE,UAAY,SACpC,gBAAiBF,KAAKE,UAAY,MAElC,SAAUF,KAAKC,OAAS,SAAWD,KAAKC,OAAS,MACjD,SAAUD,KAAKC,OAAS,UAAYD,KAAKC,OAAS,MAElD,YAAaD,KAAKI,YAAc,EAChC,YAAaJ,KAAKI,YAAc,EAChC,YAAaJ,KAAKI,YAAc,EAChC,YAAaJ,KAAKI,YAAc,EAChC,YAAaJ,KAAKI,YAAc,EAEhC,kBACCJ,KAAKG,OAAS,WACdH,KAAKG,OAAS,cACdH,KAAKG,OAAS,iBACdH,KAAKG,OAAS,mBACdH,KAAKG,OAAS,gBACdH,KAAKG,OAAS,aACdH,KAAKG,OAAS,iBACdH,KAAKG,OAAS,mBAEf,qBAAsBH,KAAKG,OAAS,UACpC,iBAAkBH,KAAKG,OAAS,aAChC,oBAAqBH,KAAKG,OAAS,gBACnC,oBAAqBH,KAAKG,OAAS,kBACnC,iBAAkBH,KAAKG,OAAS,eAChC,uBAAwBH,KAAKG,OAAS,YACtC,kBAAmBH,KAAKG,OAAS,gBACjC,qBAAsBH,KAAKG,OAAS,kBAG9B,EAAA,OAAAM,EAAAA;AAAAA,oBACWC,EAAAA,SAASJ,CAAAA,CAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,GAAQ,CAAA,EAzEpCK,EAAA,CADCC,EAAAA,SAAS,CAAET,KAAMU,OAAQC,QAAAA,EApBdnB,CAAAA,CAAAA,EAAAA,wBAqBZoB,UAAA,OAAA,CAAA,EAQAJ,EAAA,CADCC,EAASA,SAAAA,CAAAA,EA5BEjB,wBA6BZoB,UAAA,UAAA,CAWAJ,EAAAA,EAAA,CAFCK,IAAQ,CAAEC,QAASxB,CAAAA,CAAAA,EACnBmB,EAASA,SAAAA,CAAAA,EAvCEjB,wBAwCZoB,UAAA,OAAA,CAQAJ,EAAAA,EAAA,CADCC,EAAAA,SAAS,CAAET,KAAMe,OAAQJ,QAAS,EAAA,CAAA,CAAA,EA/CvBnB,wBAgDZoB,UAAA,YAAA,CAhDYpB,EAAAA,QAANA,gBAAAgB,EAAA,CADNQ,EAAAA,cAAc,kBAAA,CAAA,EACFxB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { e as c } from "./provide-BLSgVvMJ.js";
|
|
2
|
-
import { T as
|
|
3
|
-
import { css as
|
|
4
|
-
import { property as
|
|
5
|
-
import { classMap as
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
return h && t && m(i, l, t), t;
|
|
1
|
+
import { e as c, n as p } from "./provide-BLSgVvMJ.js";
|
|
2
|
+
import { T as d } from "./tailwind.mixin-D4STgS5j.js";
|
|
3
|
+
import { css as u, html as f } from "lit";
|
|
4
|
+
import { property as h, customElement as y } from "lit/decorators.js";
|
|
5
|
+
import { classMap as g } from "lit/directives/class-map.js";
|
|
6
|
+
var m = Object.defineProperty, b = Object.getOwnPropertyDescriptor, s = (i, r, n, o) => {
|
|
7
|
+
for (var a, t = o > 1 ? void 0 : o ? b(r, n) : r, l = i.length - 1; l >= 0; l--) (a = i[l]) && (t = (o ? a(r, n, t) : a(t)) || t);
|
|
8
|
+
return o && t && m(r, n, t), t;
|
|
10
9
|
};
|
|
11
|
-
|
|
10
|
+
const w = p("surface");
|
|
11
|
+
let e = class extends d(u`
|
|
12
12
|
:host([fill='all']) {
|
|
13
13
|
height: 100%;
|
|
14
14
|
width: 100%;
|
|
@@ -22,27 +22,24 @@ let e = class extends p(d`
|
|
|
22
22
|
:host {
|
|
23
23
|
display: block;
|
|
24
24
|
}
|
|
25
|
-
/* When the scroller attribute is present, enable scrolling behavior */
|
|
26
|
-
:host([scroller]) {
|
|
27
|
-
overflow: auto;
|
|
28
|
-
scroll-behavior: smooth;
|
|
29
|
-
position: relative;
|
|
30
|
-
}
|
|
31
25
|
`) {
|
|
32
26
|
constructor() {
|
|
33
|
-
super(...arguments), this.fill = "auto", this.rounded = "none", this.type = "surface", this.elevation = 0
|
|
27
|
+
super(...arguments), this.fill = "auto", this.rounded = "none", this.type = "surface", this.elevation = 0;
|
|
34
28
|
}
|
|
35
29
|
render() {
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
<section class=${
|
|
39
|
-
<
|
|
30
|
+
const i = { relative: !0, "inset-0": !0, block: !0, "box-border": !0, "rounded-none": this.rounded === "none", "rounded-t-[8px]": this.rounded === "top", "rounded-l-[8px]": this.rounded === "left", "rounded-r-[8px]": this.rounded === "right", "rounded-b-[8px]": this.rounded === "bottom", "rounded-[8px]": this.rounded === "all", "w-full": this.fill === "width" || this.fill === "all", "h-full": this.fill === "height" || this.fill === "all", "shadow-xs": this.elevation === 1, "shadow-sm": this.elevation === 2, "shadow-md": this.elevation === 3, "shadow-lg": this.elevation === 4, "shadow-xl": this.elevation === 5, "text-surface-on": this.type === "surface" || this.type === "surfaceDim" || this.type === "surfaceBright" || this.type === "containerLowest" || this.type === "containerLow" || this.type === "container" || this.type === "containerHigh" || this.type === "containerHighest", "bg-surface-default": this.type === "surface", "bg-surface-dim": this.type === "surfaceDim", "bg-surface-bright": this.type === "surfaceBright", "bg-surface-lowest": this.type === "containerLowest", "bg-surface-low": this.type === "containerLow", "bg-surface-container": this.type === "container", "bg-surface-high": this.type === "containerHigh", "bg-surface-highest": this.type === "containerHighest" };
|
|
31
|
+
return f`
|
|
32
|
+
<section class=${g(i)}>
|
|
33
|
+
<schmancy-scroll>
|
|
34
|
+
<slot></slot>
|
|
35
|
+
</schmancy-scroll>
|
|
40
36
|
</section>
|
|
41
37
|
`;
|
|
42
38
|
}
|
|
43
39
|
};
|
|
44
|
-
|
|
40
|
+
s([h({ type: String, reflect: !0 })], e.prototype, "fill", 2), s([h()], e.prototype, "rounded", 2), s([c({ context: w }), h()], e.prototype, "type", 2), s([h({ type: Number, reflect: !0 })], e.prototype, "elevation", 2), e = s([y("schmancy-surface")], e);
|
|
45
41
|
export {
|
|
46
|
-
|
|
42
|
+
w as S,
|
|
43
|
+
e as a
|
|
47
44
|
};
|
|
48
|
-
//# sourceMappingURL=surface-
|
|
45
|
+
//# sourceMappingURL=surface-DW9nuQvU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"surface-DW9nuQvU.js","sources":["../src/surface/surface.ts"],"sourcesContent":["import { createContext, provide } from '@lit/context'\nimport { TailwindElement } from '@mixins/tailwind.mixin'\nimport { TSurfaceColor } from '@schmancy/types'\nimport { css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js' // Import classMap\n\nexport const SchmancySurfaceTypeContext = createContext<TSurfaceColor>('surface')\n\nexport type SchmancySurfaceFill = 'all' | 'width' | 'height' | 'auto'\n/**\n * `<schmancy-surface>` component\n *\n * This component renders a styled container that adapts its dimensions based on the `fill` property.\n * It supports various rounding options, elevation levels, and applies background and text color classes\n * based on the specified surface variant. Additionally, when the `scroller` property is true, the component\n * enables internal scrolling by applying overflow and scroll-behavior styles.\n *\n * @element schmancy-surface\n * @slot - Default slot for projecting child content.\n *\n * @example\n * <schmancy-surface fill=\"all\" rounded=\"all\" elevation=\"3\" type=\"surfaceBright\" scroller>\n * <p>Your scrollable content here</p>\n * </schmancy-surface>\n */\n@customElement('schmancy-surface')\nexport class SchmancySurface extends TailwindElement(css`\n\t:host([fill='all']) {\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\t:host([fill='width']) {\n\t\twidth: 100%;\n\t}\n\t:host([fill='height']) {\n\t\theight: 100%;\n\t}\n\t:host {\n\t\tdisplay: block;\n\t}\n`) {\n\t/**\n\t * Fill the width and/or height of the parent container.\n\t * Options: 'all', 'width', 'height', 'auto'.\n\t * @default 'auto'\n\t */\n\t@property({ type: String, reflect: true })\n\tfill: 'all' | 'width' | 'height' | 'auto' = 'auto'\n\n\t/**\n\t * Specifies the rounding style of the component's corners.\n\t * Options: 'none', 'top', 'left', 'right', 'bottom', 'all'.\n\t * @default 'none'\n\t */\n\t@property()\n\trounded: 'none' | 'top' | 'left' | 'right' | 'bottom' | 'all' = 'none'\n\n\t/**\n\t * Specifies the surface type for styling.\n\t * Provided to descendant components via context.\n\t * Options: 'surface', 'surfaceDim', 'surfaceBright', 'containerLowest',\n\t * 'containerLow', 'container', 'containerHigh', 'containerHighest'.\n\t * @default 'surface'\n\t */\n\t@provide({ context: SchmancySurfaceTypeContext })\n\t@property()\n\ttype: TSurfaceColor = 'surface'\n\n\t/**\n\t * Defines the elevation level (shadow depth) of the surface.\n\t * Valid values: 0, 1, 2, 3, 4, 5.\n\t * @default 0\n\t */\n\t@property({ type: Number, reflect: true })\n\televation: 0 | 1 | 2 | 3 | 4 | 5 = 0\n\n\tprotected render(): unknown {\n\t\tconst classes = {\n\t\t\trelative: true,\n\t\t\t'inset-0': true,\n\t\t\tblock: true,\n\t\t\t'box-border': true,\n\t\t\t// Rounding classes\n\t\t\t'rounded-none': this.rounded === 'none',\n\t\t\t'rounded-t-[8px]': this.rounded === 'top',\n\t\t\t'rounded-l-[8px]': this.rounded === 'left',\n\t\t\t'rounded-r-[8px]': this.rounded === 'right',\n\t\t\t'rounded-b-[8px]': this.rounded === 'bottom',\n\t\t\t'rounded-[8px]': this.rounded === 'all',\n\t\t\t// Fill classes\n\t\t\t'w-full': this.fill === 'width' || this.fill === 'all',\n\t\t\t'h-full': this.fill === 'height' || this.fill === 'all',\n\t\t\t// Elevation shadow classes\n\t\t\t'shadow-xs': this.elevation === 1,\n\t\t\t'shadow-sm': this.elevation === 2,\n\t\t\t'shadow-md': this.elevation === 3,\n\t\t\t'shadow-lg': this.elevation === 4,\n\t\t\t'shadow-xl': this.elevation === 5,\n\t\t\t// Text color based on the surface variant for optimal readability\n\t\t\t'text-surface-on':\n\t\t\t\tthis.type === 'surface' ||\n\t\t\t\tthis.type === 'surfaceDim' ||\n\t\t\t\tthis.type === 'surfaceBright' ||\n\t\t\t\tthis.type === 'containerLowest' ||\n\t\t\t\tthis.type === 'containerLow' ||\n\t\t\t\tthis.type === 'container' ||\n\t\t\t\tthis.type === 'containerHigh' ||\n\t\t\t\tthis.type === 'containerHighest',\n\t\t\t// Background color classes based on the surface variant\n\t\t\t'bg-surface-default': this.type === 'surface',\n\t\t\t'bg-surface-dim': this.type === 'surfaceDim',\n\t\t\t'bg-surface-bright': this.type === 'surfaceBright',\n\t\t\t'bg-surface-lowest': this.type === 'containerLowest',\n\t\t\t'bg-surface-low': this.type === 'containerLow',\n\t\t\t'bg-surface-container': this.type === 'container',\n\t\t\t'bg-surface-high': this.type === 'containerHigh',\n\t\t\t'bg-surface-highest': this.type === 'containerHighest',\n\t\t}\n\n\t\treturn html`\n\t\t\t<section class=${classMap(classes)}>\n\t\t\t\t<schmancy-scroll>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</schmancy-scroll>\n\t\t\t</section>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-surface': SchmancySurface\n\t}\n}\n"],"names":["SchmancySurfaceTypeContext","createContext","SchmancySurface","TailwindElement","css","super","arguments","this","fill","rounded","type","elevation","render","classes","relative","block","html","classMap","__decorateClass","property","String","reflect","prototype","provide","context","Number","customElement"],"mappings":";;;;;;;;;AAOa,MAAAA,IAA6BC,EAA6B,SAoB1D;AAAA,IAAAC,IAAN,cAA8BC,EAAgBC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,CAA9C,EAAA;AAAA,EAAA,cAAAC;AAAAA,UAAAA,GAAAC,SAqBsCC,GAAAA,KAAAC,OAAA,QAQoBD,KAAAE,UAAA,QAW1CF,KAAAG,OAAA,WAQaH,KAAAI,YAAA;AAAA,EAAA;AAAA,EAEzB,SAAAC;AACT,UAAMC,IAAU,EACfC,UAAAA,IACA,WAAW,IACXC,OAAO,IACP,kBAEA,gBAAgBR,KAAKE,YAAY,QACjC,mBAAmBF,KAAKE,YAAY,OACpC,mBAAmBF,KAAKE,YAAY,QACpC,mBAAmBF,KAAKE,YAAY,SACpC,mBAAmBF,KAAKE,YAAY,UACpC,iBAAiBF,KAAKE,YAAY,OAElC,UAAUF,KAAKC,SAAS,WAAWD,KAAKC,SAAS,OACjD,UAAUD,KAAKC,SAAS,YAAYD,KAAKC,SAAS,OAElD,aAAaD,KAAKI,cAAc,GAChC,aAAaJ,KAAKI,cAAc,GAChC,aAAaJ,KAAKI,cAAc,GAChC,aAAaJ,KAAKI,cAAc,GAChC,aAAaJ,KAAKI,cAAc,GAEhC,mBACCJ,KAAKG,SAAS,aACdH,KAAKG,SAAS,gBACdH,KAAKG,SAAS,mBACdH,KAAKG,SAAS,qBACdH,KAAKG,SAAS,kBACdH,KAAKG,SAAS,eACdH,KAAKG,SAAS,mBACdH,KAAKG,SAAS,oBAEf,sBAAsBH,KAAKG,SAAS,WACpC,kBAAkBH,KAAKG,SAAS,cAChC,qBAAqBH,KAAKG,SAAS,iBACnC,qBAAqBH,KAAKG,SAAS,mBACnC,kBAAkBH,KAAKG,SAAS,gBAChC,wBAAwBH,KAAKG,SAAS,aACtC,mBAAmBH,KAAKG,SAAS,iBACjC,sBAAsBH,KAAKG,SAAS,mBAATA;AAGrB,WAAAM;AAAAA,oBACWC,EAASJ,CAAAA,CAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,EAAQ;AAzEpCK;AAAAA,EAAA,CADCC,EAAS,EAAET,MAAMU,QAAQC,SAAAA,GApBdnB,CAAAA,CAAAA,GAAAA,EAqBZoB,WAAA,QAAA,IAQAJ,EAAA,CADCC,MA5BWjB,EA6BZoB,WAAA,WAAA,CAWAJ,GAAAA,EAAA,CAFCK,EAAQ,EAAEC,SAASxB,MACnBmB,EAvCWjB,CAAAA,GAAAA,EAwCZoB,WAAA,QAAA,CAAA,GAQAJ,EAAA,CADCC,EAAS,EAAET,MAAMe,QAAQJ,SAAAA,QA/CdnB,EAgDZoB,WAAA,aAAA,CAhDYpB,GAAAA,IAANgB,EAAA,CADNQ,EAAc,kBACFxB,CAAAA,GAAAA,CAAAA;"}
|
package/dist/surface.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./surface-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./surface-28VxChKi.cjs");Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>e.SchmancySurface}),exports.SchmancySurfaceTypeContext=e.SchmancySurfaceTypeContext;
|
|
2
2
|
//# sourceMappingURL=surface.cjs.map
|
package/dist/surface.js
CHANGED
package/dist/teleport.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CVc7rNr5.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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const h=require("lit"),c=require("lit/decorators.js"),n=require("rxjs");require("./animated-text-CoNHPVcy.cjs");const O=require("./area.component-D_L_-rhD.cjs");require("./autocomplete-ButddDCL.cjs"),require("./spinner-DGtAaEn5.cjs"),require("./icon-button-CQafspg2.cjs"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const S=require("./tailwind.mixin-CJgIYh7g.cjs"),$=require("./theme.interface-Xg5Zi46a.cjs");require("./checkbox-CC0UeBQR.cjs"),require("./chips-9AOuHsA9.cjs"),require("./payment-card-form-C03BsKJ1.cjs");const p=require("./types.cjs"),l=require("./provide-DSU87U5x.cjs"),w=require("./litElement.mixin-RgeLRf4d.cjs"),d=require("./consume-Bb7_UzYd.cjs");require("./date-range-DBxAQrWq.cjs"),require("./delay-DMiYzQSi.cjs");const b=require("./ripple-C2BHbhcS.cjs");require("./divider-Cv8bePwT.cjs"),require("./form-BCqsvcur.cjs"),require("./icon-VtRCgMjd.cjs"),require("./input-C-eFwjHu.cjs"),require("./flex-CCO2kjCx.cjs"),require("./list-
|
|
1
|
+
"use strict";const h=require("lit"),c=require("lit/decorators.js"),n=require("rxjs");require("./animated-text-CoNHPVcy.cjs");const O=require("./area.component-D_L_-rhD.cjs");require("./autocomplete-ButddDCL.cjs"),require("./spinner-DGtAaEn5.cjs"),require("./icon-button-CQafspg2.cjs"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const S=require("./tailwind.mixin-CJgIYh7g.cjs"),$=require("./theme.interface-Xg5Zi46a.cjs");require("./checkbox-CC0UeBQR.cjs"),require("./chips-9AOuHsA9.cjs"),require("./payment-card-form-C03BsKJ1.cjs");const p=require("./types.cjs"),l=require("./provide-DSU87U5x.cjs"),w=require("./litElement.mixin-RgeLRf4d.cjs"),d=require("./consume-Bb7_UzYd.cjs");require("./date-range-DBxAQrWq.cjs"),require("./delay-DMiYzQSi.cjs");const b=require("./ripple-C2BHbhcS.cjs");require("./divider-Cv8bePwT.cjs"),require("./form-BCqsvcur.cjs"),require("./icon-VtRCgMjd.cjs"),require("./input-C-eFwjHu.cjs"),require("./flex-CCO2kjCx.cjs"),require("./list-Dy8fudM4.cjs"),require("./menu-qiBmvTtT.cjs");const I=require("lit/directives/when.js");require("./outlet-B9NdhBgt.cjs"),require("./option-DFjInzHW.cjs"),require("./radio-group-DrwawzHG.cjs"),require("./index-DyJ0oDpR.cjs"),require("./select-C3UtMXwp.cjs");const U=require("./sheet-efGG-8da.cjs");require("./slider-BQQQ9rrx.cjs"),require("./surface-28VxChKi.cjs"),require("./table-CJzGX5VB.cjs"),require("./tabs-group-BO-vC7go.cjs"),require("./textarea-B1XE6nT1.cjs"),require("./theme.component-4cjbFqy7.cjs"),require("./theme-button-mmu8bUNx.cjs"),require("./tree-D07FpMNb.cjs"),require("./typewriter-C9L0TA4Y.cjs"),require("./typography-BHeQxLl8.cjs");const T=require("rxjs/operators");var Y=Object.getOwnPropertyDescriptor;let H=class extends S.TailwindElement(h.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
}
|
|
@@ -147,4 +147,4 @@
|
|
|
147
147
|
class="${this.classMap({"fixed inset-0 z-49 hidden":!0})}"
|
|
148
148
|
></div>
|
|
149
149
|
`}},u([d.c({context:W,subscribe:!0}),c.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"mode",2),u([d.c({context:j,subscribe:!0}),c.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"drawerState",2),u([c.query("#overlay")],exports.SchmancyNavigationDrawerSidebar.prototype,"overlay",2),u([c.query("nav")],exports.SchmancyNavigationDrawerSidebar.prototype,"nav",2),u([c.property({type:String})],exports.SchmancyNavigationDrawerSidebar.prototype,"width",2),u([c.state()],exports.SchmancyNavigationDrawerSidebar.prototype,"_initialized",2),exports.SchmancyNavigationDrawerSidebar=u([c.customElement("schmancy-nav-drawer-navbar")],exports.SchmancyNavigationDrawerSidebar);const _="whereAreYouRicky",A="hereMorty",f=new class{constructor(){this.activeTeleportations=new Map,this.flipRequests=new n.Subject,this.find=e=>n.zip([n.fromEvent(window,A).pipe(n.filter(t=>!!t.detail.component.uuid&&!!e.id&&t.detail.component.id===e.id&&t.detail.component.uuid!==e.uuid),n.map(t=>t.detail.component),n.take(1)),n.of(e).pipe(n.tap(()=>{window.dispatchEvent(new CustomEvent(_,{detail:{id:e.id,callerID:e.uuid}}))}))]).pipe(n.map(([t])=>t),n.timeout(0)),this.flip=e=>{const{from:t,to:i}=e,s=i.element.style.zIndex;i.element.style.transformOrigin="top left",i.element.style.setProperty("visibility","visible"),i.element.style.zIndex="1000";const a=[{transform:`translate(${t.rect.left-i.rect.left}px, ${t.rect.top-i.rect.top}px) scale(${t.rect.width/i.rect.width}, ${t.rect.height/i.rect.height})`},{transform:"translate(0, 0) scale(1, 1)"}];i.element.animate(a,{duration:250,delay:10,easing:"cubic-bezier(0.455, 0.03, 0.515, 0.955)"}).onfinish=()=>{i.element.style.zIndex=s,i.element.style.transformOrigin=""}},this.flipRequests.pipe(n.bufferTime(1),n.map(e=>e.map(({from:t,to:i,host:s},a)=>({from:t,to:i,host:s,i:a}))),n.concatMap(e=>n.zip(e.map(t=>n.of(this.flip(t)))))).subscribe()}};function B(e){return n.interval(50).pipe(T.map(()=>e.getBoundingClientRect()),T.distinctUntilChanged((t,i)=>t.width===i.width&&t.height===i.height&&t.top===i.top&&t.right===i.right&&t.bottom===i.bottom&&t.left===i.left),T.take(1))}var ye=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,q=(e,t,i,s)=>{for(var a,r=s>1?void 0:s?ue(t,i):t,o=e.length-1;o>=0;o--)(a=e[o])&&(r=(s?a(t,i,r):a(r))||r);return s&&r&&ye(t,i,r),r};exports.SchmancyTeleportation=class extends w.$LitElement(h.css``){constructor(){super(...arguments),this.uuid=Math.floor(Math.random()*Date.now()),this.delay=0,this.debugging=!1}get _slottedChildren(){return this.shadowRoot.querySelector("slot").assignedElements({flatten:!0})}connectedCallback(){if(this.id===void 0)throw new Error("id is required");super.connectedCallback(),n.merge(n.fromEvent(window,O.FINDING_MORTIES).pipe(n.tap({next:()=>{this.dispatchEvent(new CustomEvent(O.HERE_RICKY,{detail:{component:this},bubbles:!0,composed:!0}))}})),n.fromEvent(window,_).pipe(n.tap({next:e=>{e.detail.id===this.id&&this.uuid&&e.detail.callerID!==this.uuid&&this.dispatchEvent(new CustomEvent(A,{detail:{component:this},bubbles:!0,composed:!0}))}}))).pipe(n.takeUntil(this.disconnecting)).subscribe()}async firstUpdated(){n.of(f.activeTeleportations.get(this.id)).pipe(n.filter(e=>!!e),n.takeUntil(this.disconnecting),n.throwIfEmpty()).subscribe({next:e=>{this.style.setProperty("visibility","hidden"),B(this).pipe(n.takeUntil(this.disconnecting)).subscribe({next:t=>{f.activeTeleportations.set(this.id,t),f.flipRequests.next({from:{rect:e},to:{rect:t,element:this._slottedChildren[0]},host:this})}})},error:()=>{this.style.setProperty("visibility","visible"),B(this).pipe(n.takeUntil(this.disconnecting)).subscribe({next:e=>{f.activeTeleportations.set(this.id,e)}})},complete:()=>{}})}render(){return h.html`<slot></slot>`}},q([c.property({type:Number,reflect:!0})],exports.SchmancyTeleportation.prototype,"uuid",2),q([c.property({type:String})],exports.SchmancyTeleportation.prototype,"id",2),q([c.property({type:Number})],exports.SchmancyTeleportation.prototype,"delay",2),exports.SchmancyTeleportation=q([c.customElement("schmancy-teleport")],exports.SchmancyTeleportation),exports.$drawer=ae,exports.HereMorty=A,exports.SchmancyContentDrawerID=X,exports.SchmancyContentDrawerMaxHeight=k,exports.SchmancyContentDrawerMinWidth=N,exports.SchmancyContentDrawerSheetMode=M,exports.SchmancyContentDrawerSheetState=R,exports.SchmancyDrawerNavbarMode=W,exports.SchmancyDrawerNavbarState=j,exports.WhereAreYouRicky=_,exports.schmancyContentDrawer=Z,exports.schmancyNavDrawer=K,exports.teleport=f;
|
|
150
|
-
//# sourceMappingURL=teleport.component-
|
|
150
|
+
//# sourceMappingURL=teleport.component-CVc7rNr5.cjs.map
|