@mhmo91/schmancy 0.2.105 → 0.2.107
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/area.cjs +1 -1
- package/dist/area.component-8AQUkma0.js +119 -0
- package/dist/area.component-8AQUkma0.js.map +1 -0
- package/dist/area.component-nkE9S6b3.cjs +8 -0
- package/dist/area.component-nkE9S6b3.cjs.map +1 -0
- package/dist/area.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{chips-CR5QTRYd.js → chips-BL6vlm9-.js} +12 -12
- package/dist/{chips-CR5QTRYd.js.map → chips-BL6vlm9-.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/{delay-DE7SE2Lx.cjs → delay-_tsTZ2IL.cjs} +2 -2
- package/dist/{delay-DE7SE2Lx.cjs.map → delay-_tsTZ2IL.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +40 -41
- package/dist/index.js.map +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +5 -6
- package/dist/notification.js.map +1 -1
- package/dist/outlet-IKjizKaN.cjs +30 -0
- package/dist/outlet-IKjizKaN.cjs.map +1 -0
- package/dist/outlet-Us3Wi-TE.js +81 -0
- package/dist/outlet-Us3Wi-TE.js.map +1 -0
- package/dist/rxjs-utils.js +4 -4
- package/dist/teleport.cjs +1 -1
- package/dist/{teleport.component-CLtX4xnl.cjs → teleport.component-CH--tF4H.cjs} +2 -2
- package/dist/{teleport.component-CLtX4xnl.cjs.map → teleport.component-CH--tF4H.cjs.map} +1 -1
- package/dist/{teleport.component-BbJ2RCj-.js → teleport.component-Kcn8tqQF.js} +9 -10
- package/dist/{teleport.component-BbJ2RCj-.js.map → teleport.component-Kcn8tqQF.js.map} +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{typewriter-SgYEA2OC.js → typewriter-Dn4nHKtu.js} +11 -11
- package/dist/{typewriter-SgYEA2OC.js.map → typewriter-Dn4nHKtu.js.map} +1 -1
- package/dist/{typewriter-CAmStzUa.cjs → typewriter-I6nigRrM.cjs} +2 -2
- package/dist/{typewriter-CAmStzUa.cjs.map → typewriter-I6nigRrM.cjs.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/package.json +1 -1
- package/types/src/area/area.component.d.ts +64 -4
- package/types/src/area/router.types.d.ts +1 -1
- package/dist/_notification-BMl7x5RW.cjs +0 -2
- package/dist/_notification-BMl7x5RW.cjs.map +0 -1
- package/dist/_notification-D5MEzxBs.js +0 -21
- package/dist/_notification-D5MEzxBs.js.map +0 -1
- package/dist/area.component-Bd-yUYxJ.js +0 -107
- package/dist/area.component-Bd-yUYxJ.js.map +0 -1
- package/dist/area.component-DaAJvOaf.cjs +0 -8
- package/dist/area.component-DaAJvOaf.cjs.map +0 -1
- package/dist/outlet-B16Pt3na.js +0 -62
- package/dist/outlet-B16Pt3na.js.map +0 -1
- package/dist/outlet-CT1apG_R.cjs +0 -30
- package/dist/outlet-CT1apG_R.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-B-gRGTS2.cjs");const r=require("./area.component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-B-gRGTS2.cjs");const r=require("./area.component-nkE9S6b3.cjs");require("./autocomplete-Ct3zhedL.cjs"),require("./spinner-DisHMwJU.cjs");const o=require("./icon-button-Bj7wtydv.cjs"),e=require("./teleport.component-CH--tF4H.cjs"),u=require("./checkbox-VYAzANWi.cjs");require("./chips-SxuwP65D.cjs");const b=require("./payment-card-form-CQB_MKO_.cjs");require("./date-range-BKcjHwBs.cjs");const m=require("./delay-_tsTZ2IL.cjs"),a=require("./ripple-C2BHbhcS.cjs");require("./divider-DZ_aPVkO.cjs"),require("./form-CD_4LDVO.cjs"),require("./icon-CHArNkiO.cjs"),require("./input-jRmXX3rp.cjs");const t=require("./flex-BONU-PFy.cjs"),i=require("./list-BZ55pU5L.cjs");require("./menu-Bd6Yleqx.cjs");const n=require("./outlet-IKjizKaN.cjs");require("./option-CLhNC_i9.cjs");const l=require("./radio-group-BwJ-r3hy.cjs"),p=require("./rxjs-utils.cjs");require("rxjs"),require("./index-DyJ0oDpR.cjs");const d=require("./select-DOTwG1aT.cjs"),c=require("./sheet-C_gzbR0e.cjs"),S=require("./slider-uzR2YTuo.cjs"),h=require("./surface-jiFO8Fq-.cjs");require("./table-B2-vIMmg.cjs"),require("./tabs-group-DIkk0A7J.cjs"),require("./textarea-hbpsxkKy.cjs");const y=require("./theme.component-BYbrrqK3.cjs"),f=require("./theme.interface-Xg5Zi46a.cjs");require("./theme-button-CsWs0AS9.cjs");const g=require("./tree-OqMXhWak.cjs"),q=require("./types.cjs"),O=require("./typewriter-I6nigRrM.cjs"),w=require("./typography-CMNtjzZE.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:()=>u.SchmancyCheckbox}),Object.defineProperty(exports,"SchmancyPaymentCardForm",{enumerable:!0,get:()=>b.SchmancyPaymentCardForm}),Object.defineProperty(exports,"SchmancyDelay",{enumerable:!0,get:()=>m.SchmancyDelay}),exports.delayContext=m.delayContext,exports.color=a.color,exports.fullHeight=a.fullHeight,exports.ripple=a.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:()=>i.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>i.SchmancyListItem}),exports.SchmancyListTypeContext=i.SchmancyListTypeContext,exports.$notify=n.$notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>n.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>n.SchmancyNotificationOutlet}),exports.notify=n.notify,Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:()=>l.RadioGroup}),exports.mutationObserver=p.mutationObserver,Object.defineProperty(exports,"SchmancySelect",{enumerable:!0,get:()=>d.SchmancySelect}),exports.SchmancySheetPosition=c.SchmancySheetPosition,exports.SheetHereMorty=c.SheetHereMorty,exports.SheetWhereAreYouRicky=c.SheetWhereAreYouRicky,exports.sheet=c.sheet,Object.defineProperty(exports,"SchmancySlide",{enumerable:!0,get:()=>S.SchmancySlide}),Object.defineProperty(exports,"SchmancySlider",{enumerable:!0,get:()=>S.SchmancySlider}),Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>h.SchmancySurface}),exports.SchmancySurfaceTypeContext=h.SchmancySurfaceTypeContext,Object.defineProperty(exports,"SchmancyThemeComponent",{enumerable:!0,get:()=>y.SchmancyThemeComponent}),exports.formateTheme=y.formateTheme,exports.tailwindStyles=y.tailwindStyles,exports.SchmancyTheme=f.SchmancyTheme,Object.defineProperty(exports,"SchmancyTree",{enumerable:!0,get:()=>g.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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./animated-text-gc7T0HLa.js";
|
|
2
|
-
import { F as C, H as d, b as T, S as u, a as b, r as N } from "./area.component-
|
|
2
|
+
import { F as C, H as d, b as T, S as u, a as b, r as N } from "./area.component-8AQUkma0.js";
|
|
3
3
|
import "./autocomplete-DNypXTYG.js";
|
|
4
4
|
import "./spinner-Ca50o0jU.js";
|
|
5
5
|
import { S as R, a as v } from "./icon-button-DtoWe88O.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-Kcn8tqQF.js";
|
|
7
7
|
import { S as U } from "./checkbox-DxHSWouk.js";
|
|
8
|
-
import "./chips-
|
|
8
|
+
import "./chips-BL6vlm9-.js";
|
|
9
9
|
import { S as Z } from "./payment-card-form-BwmcjAMM.js";
|
|
10
10
|
import "./date-range-CUnECMbS.js";
|
|
11
11
|
import { S as ra, d as ea } from "./delay-6t2zn7t4.js";
|
|
@@ -17,28 +17,27 @@ import "./input-Ctt6mtZc.js";
|
|
|
17
17
|
import { S as sa, c as Sa, a as ha, b as ia } from "./flex-CxlUwIat.js";
|
|
18
18
|
import { L as pa, a as fa, S as xa } from "./list-6C-kQqCi.js";
|
|
19
19
|
import "./menu-D0izP8_9.js";
|
|
20
|
-
import { $ as wa,
|
|
21
|
-
import { S as da, a as Ta } from "./outlet-B16Pt3na.js";
|
|
20
|
+
import { $ as wa, S as Da, a as Ca, n as da } from "./outlet-Us3Wi-TE.js";
|
|
22
21
|
import "./option-CxIpiUcJ.js";
|
|
23
|
-
import { R as
|
|
24
|
-
import { mutationObserver as
|
|
22
|
+
import { R as ua } from "./radio-group-BvtrNylW.js";
|
|
23
|
+
import { mutationObserver as Na } from "./rxjs-utils.js";
|
|
25
24
|
import "rxjs";
|
|
26
25
|
import "./index-CuY8m6ta.js";
|
|
27
|
-
import { S as
|
|
28
|
-
import { S as
|
|
29
|
-
import { S as
|
|
30
|
-
import { a as
|
|
26
|
+
import { S as Ra } from "./select-D6nFemFx.js";
|
|
27
|
+
import { S as Ia, b as Ma, a as ga, s as Ea } from "./sheet-Y-ULBa4y.js";
|
|
28
|
+
import { S as Fa, a as Ya } from "./slider-CFLiNdqN.js";
|
|
29
|
+
import { a as ka, S as Ga } from "./surface-D_qD1cZj.js";
|
|
31
30
|
import "./table-QyTaL_m4.js";
|
|
32
31
|
import "./tabs-group-CWM0kWDK.js";
|
|
33
32
|
import "./textarea-BMSNswLn.js";
|
|
34
|
-
import { S as
|
|
35
|
-
import { S as
|
|
33
|
+
import { S as Oa, f as Wa, t as _a } from "./theme.component-BIjHKguL.js";
|
|
34
|
+
import { S as Pa } from "./theme.interface-C5Kj6WjD.js";
|
|
36
35
|
import "./theme-button-BoAxkMWO.js";
|
|
37
|
-
import { S as
|
|
38
|
-
import { SchmancyEvents as
|
|
39
|
-
import { T as
|
|
40
|
-
import { S as
|
|
41
|
-
import { i as
|
|
36
|
+
import { S as Ka } from "./tree-YkLiYcr_.js";
|
|
37
|
+
import { SchmancyEvents as qa } from "./types.js";
|
|
38
|
+
import { T as Ja } from "./typewriter-Dn4nHKtu.js";
|
|
39
|
+
import { S as Ua } from "./typography-BXJ-xs12.js";
|
|
40
|
+
import { i as Za } from "./intersection-CJxzz8c-.js";
|
|
42
41
|
export {
|
|
43
42
|
M as $drawer,
|
|
44
43
|
wa as $notify,
|
|
@@ -47,7 +46,7 @@ export {
|
|
|
47
46
|
T as HISTORY_STRATEGY,
|
|
48
47
|
g as HereMorty,
|
|
49
48
|
pa as List,
|
|
50
|
-
|
|
49
|
+
ua as RadioGroup,
|
|
51
50
|
u as SchmancyArea,
|
|
52
51
|
R as SchmancyButton,
|
|
53
52
|
U as SchmancyCheckbox,
|
|
@@ -63,7 +62,7 @@ export {
|
|
|
63
62
|
O as SchmancyDrawerAppbar,
|
|
64
63
|
W as SchmancyDrawerNavbarMode,
|
|
65
64
|
_ as SchmancyDrawerNavbarState,
|
|
66
|
-
|
|
65
|
+
qa as SchmancyEvents,
|
|
67
66
|
sa as SchmancyFlex,
|
|
68
67
|
Sa as SchmancyFlexV2,
|
|
69
68
|
ha as SchmancyGrid,
|
|
@@ -72,40 +71,40 @@ export {
|
|
|
72
71
|
B as SchmancyNavigationDrawer,
|
|
73
72
|
P as SchmancyNavigationDrawerContent,
|
|
74
73
|
j as SchmancyNavigationDrawerSidebar,
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
Da as SchmancyNotification,
|
|
75
|
+
Ca as SchmancyNotificationOutlet,
|
|
77
76
|
Z as SchmancyPaymentCardForm,
|
|
78
77
|
ia as SchmancyScroll,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
Ra as SchmancySelect,
|
|
79
|
+
Ia as SchmancySheetPosition,
|
|
80
|
+
Fa as SchmancySlide,
|
|
81
|
+
Ya as SchmancySlider,
|
|
82
|
+
ka as SchmancySurface,
|
|
83
|
+
Ga as SchmancySurfaceTypeContext,
|
|
85
84
|
K as SchmancyTeleportation,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
Pa as SchmancyTheme,
|
|
86
|
+
Oa as SchmancyThemeComponent,
|
|
87
|
+
Ka as SchmancyTree,
|
|
88
|
+
Ua as SchmancyTypography,
|
|
90
89
|
v as SchmnacyIconButton,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
Ma as SheetHereMorty,
|
|
91
|
+
ga as SheetWhereAreYouRicky,
|
|
92
|
+
Ja as TypewriterElement,
|
|
94
93
|
V as WhereAreYouRicky,
|
|
95
94
|
b as area,
|
|
96
95
|
oa as color,
|
|
97
96
|
ea as delayContext,
|
|
98
|
-
|
|
97
|
+
Wa as formateTheme,
|
|
99
98
|
ca as fullHeight,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
Za as intersection$,
|
|
100
|
+
Na as mutationObserver,
|
|
101
|
+
da as notify,
|
|
103
102
|
ma as ripple,
|
|
104
103
|
N as routerHistory,
|
|
105
104
|
q as schmancyContentDrawer,
|
|
106
105
|
z as schmancyNavDrawer,
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
Ea as sheet,
|
|
107
|
+
_a as tailwindStyles,
|
|
109
108
|
J as teleport
|
|
110
109
|
};
|
|
111
110
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
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-CH--tF4H.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-Kcn8tqQF.js";
|
|
2
2
|
export {
|
|
3
3
|
c as $drawer,
|
|
4
4
|
e as SchmancyDrawerAppbar,
|
package/dist/notification.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./outlet-IKjizKaN.cjs");exports.$notify=t.$notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>t.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>t.SchmancyNotificationOutlet}),exports.notify=t.notify;
|
|
2
2
|
//# sourceMappingURL=notification.cjs.map
|
package/dist/notification.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { $ as a, n as
|
|
2
|
-
import { S as c, a as f } from "./outlet-B16Pt3na.js";
|
|
1
|
+
import { $ as i, S as o, a as n, n as c } from "./outlet-Us3Wi-TE.js";
|
|
3
2
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
i as $notify,
|
|
4
|
+
o as SchmancyNotification,
|
|
5
|
+
n as SchmancyNotificationOutlet,
|
|
6
|
+
c as notify
|
|
8
7
|
};
|
|
9
8
|
//# sourceMappingURL=notification.js.map
|
package/dist/notification.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";const u=require("@floating-ui/dom"),l=require("rxjs");require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const y=require("./tailwind.mixin-DFM3jd9q.cjs"),h=require("lit"),f=require("lit/decorators.js");let d=window.innerWidth/2,m=window.innerHeight/2;async function a(e,t,c){const o=await async function(s,n,i){const r=document.createElement("schmancy-notification");r.type=n,r.innerHTML=s;const g=(i==null?void 0:i.referenceElement)||{getBoundingClientRect:()=>({width:0,height:0,x:d,y:m,top:m,right:d,bottom:m,left:d,toJSON:()=>({})})},{x:v,y:w}=await u.computePosition(g,r,{strategy:"fixed",placement:i!=null&&i.referenceElement?"top":"right-start",middleware:[u.offset(8),u.flip(),u.shift({padding:5})]});return r.style.position="fixed",r.style.left=`${v}px`,r.style.top=`${w}px`,r.style.zIndex="9999",document.body.appendChild(r),r}(t,e,c);return l.race(l.fromEvent(o,"close"),l.timer((c==null?void 0:c.duration)??1e3)).subscribe(()=>{o.remove()}),o}l.fromEvent(document,"mousemove").pipe(l.debounceTime(100)).subscribe(e=>{d=e.clientX,m=e.clientY});const x={success:(e,t)=>a("success",e,t),error:(e,t)=>a("error",e,t),warning:(e,t)=>a("warning",e,t),info:(e,t)=>a("info",e,t)};var b=Object.defineProperty,E=Object.getOwnPropertyDescriptor,p=(e,t,c,o)=>{for(var s,n=o>1?void 0:o?E(t,c):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=(o?s(t,c,n):s(n))||n);return o&&n&&b(t,c,n),n};exports.SchmancyNotification=class extends y.TailwindElement(){constructor(){super(...arguments),this.type="success"}render(){return h.html`
|
|
2
|
+
<div
|
|
3
|
+
class="pointer-events-auto w-full max-w-sm
|
|
4
|
+
rounded-lg bg-surface-container shadow-lg
|
|
5
|
+
ring-1 ring-outlineVariant ring-opacity-5 p-3"
|
|
6
|
+
>
|
|
7
|
+
<!-- Icon + Text + Close Button, etc. -->
|
|
8
|
+
<div class="flex items-center">
|
|
9
|
+
<!-- Icon -->
|
|
10
|
+
<div class="shrink-0 mr-2">
|
|
11
|
+
<!-- Show different icons depending on this.type -->
|
|
12
|
+
<!-- e.g., success, error, etc. -->
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<!-- Text slot -->
|
|
16
|
+
<div class="flex-1">
|
|
17
|
+
<slot></slot>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<!-- Close -->
|
|
21
|
+
<schmancy-icon-button
|
|
22
|
+
@click=${()=>this.dispatchEvent(new CustomEvent("close"))}
|
|
23
|
+
variant="outlined"
|
|
24
|
+
class="ml-2 text-sm"
|
|
25
|
+
>Close</schmancy-icon-button
|
|
26
|
+
>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
`}},p([f.property({type:String})],exports.SchmancyNotification.prototype,"type",2),exports.SchmancyNotification=p([f.customElement("schmancy-notification")],exports.SchmancyNotification);var S=Object.getOwnPropertyDescriptor;exports.SchmancyNotificationOutlet=class extends y.TailwindElement(){render(){return h.html` <slot></slot> `}},exports.SchmancyNotificationOutlet=((e,t,c,o)=>{for(var s,n=o>1?void 0:o?S(t,c):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=s(n)||n);return n})([f.customElement("schmancy-notification-outlet")],exports.SchmancyNotificationOutlet),exports.$notify=x,exports.notify=a;
|
|
30
|
+
//# sourceMappingURL=outlet-IKjizKaN.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlet-IKjizKaN.cjs","sources":["../src/notification/$notification.ts","../src/notification/notification.ts","../src/notification/outlet.ts"],"sourcesContent":["import { computePosition, flip, offset, shift } from '@floating-ui/dom'\nimport { debounceTime, fromEvent, race, timer } from 'rxjs'\nimport { SchmancyNotification } from './notification'\n\nexport type TNotification = 'success' | 'error' | 'warning' | 'info'\nexport type TNotificationConfig = {\n\tduration?: number\n\treferenceElement?: HTMLElement\n}\n\n// Track cursor position globally\nlet lastMouseX = window.innerWidth / 2\nlet lastMouseY = window.innerHeight / 2\n\nfromEvent(document, 'mousemove')\n\t.pipe(\n\t\tdebounceTime(100), // Throttle to 10fps\n\t)\n\t.subscribe((e: MouseEvent) => {\n\t\tconsole.count()\n\t\tlastMouseX = e.clientX\n\t\tlastMouseY = e.clientY\n\t})\n\nasync function createNotification(\n\tmessage: string,\n\ttype: TNotification,\n\tconfig?: TNotificationConfig,\n): Promise<SchmancyNotification> {\n\tconst notification = document.createElement('schmancy-notification') as SchmancyNotification\n\tnotification.type = type\n\tnotification.innerHTML = message\n\n\t// Determine reference element\n\tconst referenceElement = config?.referenceElement || {\n\t\tgetBoundingClientRect: () => ({\n\t\t\twidth: 0,\n\t\t\theight: 0,\n\t\t\tx: lastMouseX,\n\t\t\ty: lastMouseY,\n\t\t\ttop: lastMouseY,\n\t\t\tright: lastMouseX,\n\t\t\tbottom: lastMouseY,\n\t\t\tleft: lastMouseX,\n\t\t\ttoJSON: () => ({}), // Required for some Floating UI implementations\n\t\t}),\n\t}\n\n\t// Compute position using Floating UI\n\tconst { x, y } = await computePosition(referenceElement, notification, {\n\t\tstrategy: 'fixed',\n\t\tplacement: config?.referenceElement ? 'top' : 'right-start',\n\t\tmiddleware: [\n\t\t\toffset(8), // 8px gap from reference\n\t\t\tflip(), // Auto-flip directions if needed\n\t\t\tshift({ padding: 5 }), // Prevent screen edges overflow\n\t\t],\n\t})\n\n\t// Apply positioning\n\tnotification.style.position = 'fixed'\n\tnotification.style.left = `${x}px`\n\tnotification.style.top = `${y}px`\n\tnotification.style.zIndex = '9999'\n\n\tdocument.body.appendChild(notification)\n\treturn notification\n}\n\n// Rest of your existing code remains the same...\nexport async function notify(type: TNotification, message: string, config?: TNotificationConfig) {\n\tconst notification = await createNotification(message, type, config)\n\n\t// Remove after duration or close event\n\trace(fromEvent(notification, 'close'), timer(config?.duration ?? 1000)).subscribe(() => {\n\t\tnotification.remove()\n\t})\n\n\treturn notification\n}\n\n// Shorthand API\nexport const $notify = {\n\tsuccess: (message: string, config?: TNotificationConfig) => notify('success', message, config),\n\terror: (message: string, config?: TNotificationConfig) => notify('error', message, config),\n\twarning: (message: string, config?: TNotificationConfig) => notify('warning', message, config),\n\tinfo: (message: string, config?: TNotificationConfig) => notify('info', message, config),\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\n@customElement('schmancy-notification')\nexport class SchmancyNotification extends TailwindElement() {\n\t@property({ type: String })\n\ttype: 'success' | 'error' | 'warning' | 'info' = 'success'\n\n\trender() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=\"pointer-events-auto w-full max-w-sm\n rounded-lg bg-surface-container shadow-lg\n ring-1 ring-outlineVariant ring-opacity-5 p-3\"\n\t\t\t>\n\t\t\t\t<!-- Icon + Text + Close Button, etc. -->\n\t\t\t\t<div class=\"flex items-center\">\n\t\t\t\t\t<!-- Icon -->\n\t\t\t\t\t<div class=\"shrink-0 mr-2\">\n\t\t\t\t\t\t<!-- Show different icons depending on this.type -->\n\t\t\t\t\t\t<!-- e.g., success, error, etc. -->\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Text slot -->\n\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Close -->\n\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t@click=${() => this.dispatchEvent(new CustomEvent('close'))}\n\t\t\t\t\t\tvariant=\"outlined\"\n\t\t\t\t\t\tclass=\"ml-2 text-sm\"\n\t\t\t\t\t\t>Close</schmancy-icon-button\n\t\t\t\t\t>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-notification': SchmancyNotification\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n@customElement('schmancy-notification-outlet')\nexport class SchmancyNotificationOutlet extends TailwindElement() {\n\trender() {\n\t\treturn html` <slot></slot> `\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-notification-outlet': SchmancyNotificationOutlet\n\t}\n}\n"],"names":["lastMouseX","window","innerWidth","lastMouseY","innerHeight","async","notify","type","message","config","notification","document","createElement","innerHTML","referenceElement","getBoundingClientRect","width","height","x","y","top","right","bottom","left","toJSON","computePosition","strategy","placement","middleware","offset","flip","shift","padding","style","position","zIndex","body","appendChild","race","fromEvent","timer","duration","subscribe","remove","pipe","debounceTime","e","clientX","clientY","$notify","success","error","warning","info","SchmancyNotification","TailwindElement","constructor","super","arguments","this","html","dispatchEvent","CustomEvent","__decorateClass","property","String","prototype","customElement","SchmancyNotificationOutlet"],"mappings":"kPAWA,IAAIA,EAAaC,OAAOC,WAAa,EACjCC,EAAaF,OAAOG,YAAc,EA0DhBC,eAAAC,EAAOC,EAAqBC,EAAiBC,EAAAA,CAClE,MAAMC,EAAAA,MA/CPL,eACCG,EACAD,EACAE,EAAAA,CAEM,MAAAC,EAAeC,SAASC,cAAc,uBAC5CF,EAAAA,EAAaH,KAAOA,EACpBG,EAAaG,UAAYL,EAGnB,MAAAM,GAAmBL,GAAAA,YAAAA,EAAQK,mBAAoB,CACpDC,sBAAuB,KAAO,CAC7BC,MAAO,EACPC,OAAQ,EACRC,EAAGlB,EACHmB,EAAGhB,EACHiB,IAAKjB,EACLkB,MAAOrB,EACPsB,OAAQnB,EACRoB,KAAMvB,EACNwB,OAAQ,KAAA,CAAQ,EAAA,EAAA,EAAA,CAKZN,EAAEA,EAAGC,EAAAA,CAAYM,EAAAA,MAAAA,EAAAA,gBAAgBX,EAAkBJ,EAAc,CACtEgB,SAAU,QACVC,UAAWlB,GAAAA,MAAAA,EAAQK,iBAAmB,MAAQ,cAC9Cc,WAAY,CACXC,EAAAA,OAAO,GACPC,SACAC,QAAM,CAAEC,QAAS,CAWZ,CAAA,CAAA,CAAA,CAAA,EAAA,OANPtB,EAAauB,MAAMC,SAAW,QACjBxB,EAAAuB,MAAMV,KAAO,GAAGL,CAAAA,KAChBR,EAAAuB,MAAMb,IAAM,GAAGD,CAAAA,KAC5BT,EAAauB,MAAME,OAAS,OAEnBxB,SAAAyB,KAAKC,YAAY3B,CACnBA,EAAAA,CACR,EAI+CF,EAASD,EAAME,GAOtD,OAJF6B,EAAAA,KAAAC,EAAAA,UAAU7B,EAAc,OAAU8B,EAAAA,EAAAA,OAAM/B,GAAAA,YAAAA,EAAQgC,WAAY,GAAA,CAAA,EAAOC,UAAU,IAAA,CACjFhC,EAAaiC,OAAAA,CAAO,GAGdjC,CACR,CAjEA6B,EAAAA,UAAU5B,SAAU,WAAA,EAClBiC,KACAC,EAAAA,aAAa,GAEbH,CAAAA,EAAAA,UAAWI,GAEX9C,CAAAA,EAAa8C,EAAEC,QACf5C,EAAa2C,EAAEE,OAAA,CA6DV,EAAA,MAAMC,EAAU,CACtBC,QAAS,CAAC1C,EAAiBC,IAAiCH,EAAO,UAAWE,EAASC,CAAAA,EACvF0C,MAAO,CAAC3C,EAAiBC,IAAiCH,EAAO,QAASE,EAASC,CACnF2C,EAAAA,QAAS,CAAC5C,EAAiBC,IAAiCH,EAAO,UAAWE,EAASC,CAAAA,EACvF4C,KAAM,CAAC7C,EAAiBC,IAAiCH,EAAO,OAAQE,EAASC,oMCjFrE6C,QAAAA,qBAAN,cAAmCC,EAAAA,gBAAAA,CAAAA,CAAnC,aAAAC,CAAAC,SAAAC,SAE2CC,EAAAA,KAAApD,KAAA,SAAA,CAEjD,QACQ,CAAA,OAAAqD,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,eAqBM,IAAMD,KAAKE,cAAc,IAAIC,YAAY,OAAA,CAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAS,CAAA,EAxBhEC,EAAA,CADCC,WAAS,CAAEzD,KAAM0D,UADNX,6BAEZY,UAAA,OAAA,GAFYZ,QAANA,qBAAAS,EAAA,CADNI,EAAAA,cAAc,uBACFb,CAAAA,EAAAA,oECAAc,QAAAA,2BAAN,cAAyCb,EAAAA,gBAC/C,CAAA,CAAA,QACQ,CAAA,OAAAK,EAAAA,qBAAA,GAFIQ,QAANA,iIAAA,CADND,EAAAA,cAAc,iCACFC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { computePosition as b, offset as E, flip as C, shift as O } from "@floating-ui/dom";
|
|
2
|
+
import { fromEvent as f, debounceTime as T, race as j, timer as P } from "rxjs";
|
|
3
|
+
import "lit/directives/class-map.js";
|
|
4
|
+
import "lit/directives/style-map.js";
|
|
5
|
+
import { T as y } from "./tailwind.mixin-ECkyl80C.js";
|
|
6
|
+
import { html as g } from "lit";
|
|
7
|
+
import { property as S, customElement as h } from "lit/decorators.js";
|
|
8
|
+
let l = window.innerWidth / 2, d = window.innerHeight / 2;
|
|
9
|
+
async function a(e, t, i) {
|
|
10
|
+
const s = await async function(c, o, n) {
|
|
11
|
+
const r = document.createElement("schmancy-notification");
|
|
12
|
+
r.type = o, r.innerHTML = c;
|
|
13
|
+
const v = (n == null ? void 0 : n.referenceElement) || { getBoundingClientRect: () => ({ width: 0, height: 0, x: l, y: d, top: d, right: l, bottom: d, left: l, toJSON: () => ({}) }) }, { x: w, y: x } = await b(v, r, { strategy: "fixed", placement: n != null && n.referenceElement ? "top" : "right-start", middleware: [E(8), C(), O({ padding: 5 })] });
|
|
14
|
+
return r.style.position = "fixed", r.style.left = `${w}px`, r.style.top = `${x}px`, r.style.zIndex = "9999", document.body.appendChild(r), r;
|
|
15
|
+
}(t, e, i);
|
|
16
|
+
return j(f(s, "close"), P((i == null ? void 0 : i.duration) ?? 1e3)).subscribe(() => {
|
|
17
|
+
s.remove();
|
|
18
|
+
}), s;
|
|
19
|
+
}
|
|
20
|
+
f(document, "mousemove").pipe(T(100)).subscribe((e) => {
|
|
21
|
+
l = e.clientX, d = e.clientY;
|
|
22
|
+
});
|
|
23
|
+
const N = { success: (e, t) => a("success", e, t), error: (e, t) => a("error", e, t), warning: (e, t) => a("warning", e, t), info: (e, t) => a("info", e, t) };
|
|
24
|
+
var $ = Object.defineProperty, I = Object.getOwnPropertyDescriptor, p = (e, t, i, s) => {
|
|
25
|
+
for (var c, o = s > 1 ? void 0 : s ? I(t, i) : t, n = e.length - 1; n >= 0; n--) (c = e[n]) && (o = (s ? c(t, i, o) : c(o)) || o);
|
|
26
|
+
return s && o && $(t, i, o), o;
|
|
27
|
+
};
|
|
28
|
+
let m = class extends y() {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments), this.type = "success";
|
|
31
|
+
}
|
|
32
|
+
render() {
|
|
33
|
+
return g`
|
|
34
|
+
<div
|
|
35
|
+
class="pointer-events-auto w-full max-w-sm
|
|
36
|
+
rounded-lg bg-surface-container shadow-lg
|
|
37
|
+
ring-1 ring-outlineVariant ring-opacity-5 p-3"
|
|
38
|
+
>
|
|
39
|
+
<!-- Icon + Text + Close Button, etc. -->
|
|
40
|
+
<div class="flex items-center">
|
|
41
|
+
<!-- Icon -->
|
|
42
|
+
<div class="shrink-0 mr-2">
|
|
43
|
+
<!-- Show different icons depending on this.type -->
|
|
44
|
+
<!-- e.g., success, error, etc. -->
|
|
45
|
+
</div>
|
|
46
|
+
|
|
47
|
+
<!-- Text slot -->
|
|
48
|
+
<div class="flex-1">
|
|
49
|
+
<slot></slot>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<!-- Close -->
|
|
53
|
+
<schmancy-icon-button
|
|
54
|
+
@click=${() => this.dispatchEvent(new CustomEvent("close"))}
|
|
55
|
+
variant="outlined"
|
|
56
|
+
class="ml-2 text-sm"
|
|
57
|
+
>Close</schmancy-icon-button
|
|
58
|
+
>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
`;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
p([S({ type: String })], m.prototype, "type", 2), m = p([h("schmancy-notification")], m);
|
|
65
|
+
var k = Object.getOwnPropertyDescriptor;
|
|
66
|
+
let u = class extends y() {
|
|
67
|
+
render() {
|
|
68
|
+
return g` <slot></slot> `;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
u = ((e, t, i, s) => {
|
|
72
|
+
for (var c, o = s > 1 ? void 0 : s ? k(t, i) : t, n = e.length - 1; n >= 0; n--) (c = e[n]) && (o = c(o) || o);
|
|
73
|
+
return o;
|
|
74
|
+
})([h("schmancy-notification-outlet")], u);
|
|
75
|
+
export {
|
|
76
|
+
N as $,
|
|
77
|
+
m as S,
|
|
78
|
+
u as a,
|
|
79
|
+
a as n
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=outlet-Us3Wi-TE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outlet-Us3Wi-TE.js","sources":["../src/notification/$notification.ts","../src/notification/notification.ts","../src/notification/outlet.ts"],"sourcesContent":["import { computePosition, flip, offset, shift } from '@floating-ui/dom'\nimport { debounceTime, fromEvent, race, timer } from 'rxjs'\nimport { SchmancyNotification } from './notification'\n\nexport type TNotification = 'success' | 'error' | 'warning' | 'info'\nexport type TNotificationConfig = {\n\tduration?: number\n\treferenceElement?: HTMLElement\n}\n\n// Track cursor position globally\nlet lastMouseX = window.innerWidth / 2\nlet lastMouseY = window.innerHeight / 2\n\nfromEvent(document, 'mousemove')\n\t.pipe(\n\t\tdebounceTime(100), // Throttle to 10fps\n\t)\n\t.subscribe((e: MouseEvent) => {\n\t\tconsole.count()\n\t\tlastMouseX = e.clientX\n\t\tlastMouseY = e.clientY\n\t})\n\nasync function createNotification(\n\tmessage: string,\n\ttype: TNotification,\n\tconfig?: TNotificationConfig,\n): Promise<SchmancyNotification> {\n\tconst notification = document.createElement('schmancy-notification') as SchmancyNotification\n\tnotification.type = type\n\tnotification.innerHTML = message\n\n\t// Determine reference element\n\tconst referenceElement = config?.referenceElement || {\n\t\tgetBoundingClientRect: () => ({\n\t\t\twidth: 0,\n\t\t\theight: 0,\n\t\t\tx: lastMouseX,\n\t\t\ty: lastMouseY,\n\t\t\ttop: lastMouseY,\n\t\t\tright: lastMouseX,\n\t\t\tbottom: lastMouseY,\n\t\t\tleft: lastMouseX,\n\t\t\ttoJSON: () => ({}), // Required for some Floating UI implementations\n\t\t}),\n\t}\n\n\t// Compute position using Floating UI\n\tconst { x, y } = await computePosition(referenceElement, notification, {\n\t\tstrategy: 'fixed',\n\t\tplacement: config?.referenceElement ? 'top' : 'right-start',\n\t\tmiddleware: [\n\t\t\toffset(8), // 8px gap from reference\n\t\t\tflip(), // Auto-flip directions if needed\n\t\t\tshift({ padding: 5 }), // Prevent screen edges overflow\n\t\t],\n\t})\n\n\t// Apply positioning\n\tnotification.style.position = 'fixed'\n\tnotification.style.left = `${x}px`\n\tnotification.style.top = `${y}px`\n\tnotification.style.zIndex = '9999'\n\n\tdocument.body.appendChild(notification)\n\treturn notification\n}\n\n// Rest of your existing code remains the same...\nexport async function notify(type: TNotification, message: string, config?: TNotificationConfig) {\n\tconst notification = await createNotification(message, type, config)\n\n\t// Remove after duration or close event\n\trace(fromEvent(notification, 'close'), timer(config?.duration ?? 1000)).subscribe(() => {\n\t\tnotification.remove()\n\t})\n\n\treturn notification\n}\n\n// Shorthand API\nexport const $notify = {\n\tsuccess: (message: string, config?: TNotificationConfig) => notify('success', message, config),\n\terror: (message: string, config?: TNotificationConfig) => notify('error', message, config),\n\twarning: (message: string, config?: TNotificationConfig) => notify('warning', message, config),\n\tinfo: (message: string, config?: TNotificationConfig) => notify('info', message, config),\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\n@customElement('schmancy-notification')\nexport class SchmancyNotification extends TailwindElement() {\n\t@property({ type: String })\n\ttype: 'success' | 'error' | 'warning' | 'info' = 'success'\n\n\trender() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=\"pointer-events-auto w-full max-w-sm\n rounded-lg bg-surface-container shadow-lg\n ring-1 ring-outlineVariant ring-opacity-5 p-3\"\n\t\t\t>\n\t\t\t\t<!-- Icon + Text + Close Button, etc. -->\n\t\t\t\t<div class=\"flex items-center\">\n\t\t\t\t\t<!-- Icon -->\n\t\t\t\t\t<div class=\"shrink-0 mr-2\">\n\t\t\t\t\t\t<!-- Show different icons depending on this.type -->\n\t\t\t\t\t\t<!-- e.g., success, error, etc. -->\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Text slot -->\n\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Close -->\n\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t@click=${() => this.dispatchEvent(new CustomEvent('close'))}\n\t\t\t\t\t\tvariant=\"outlined\"\n\t\t\t\t\t\tclass=\"ml-2 text-sm\"\n\t\t\t\t\t\t>Close</schmancy-icon-button\n\t\t\t\t\t>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-notification': SchmancyNotification\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n@customElement('schmancy-notification-outlet')\nexport class SchmancyNotificationOutlet extends TailwindElement() {\n\trender() {\n\t\treturn html` <slot></slot> `\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-notification-outlet': SchmancyNotificationOutlet\n\t}\n}\n"],"names":["lastMouseX","window","innerWidth","lastMouseY","innerHeight","async","notify","type","message","config","notification","document","createElement","innerHTML","referenceElement","getBoundingClientRect","width","height","x","y","top","right","bottom","left","toJSON","computePosition","strategy","placement","middleware","offset","flip","shift","padding","style","position","zIndex","body","appendChild","race","fromEvent","timer","duration","subscribe","remove","pipe","debounceTime","e","clientX","clientY","$notify","success","error","warning","info","SchmancyNotification","TailwindElement","constructor","super","arguments","this","render","html","dispatchEvent","CustomEvent","__decorateClass","property","String","prototype","customElement","SchmancyNotificationOutlet"],"mappings":";;;;;;;AAWA,IAAIA,IAAaC,OAAOC,aAAa,GACjCC,IAAaF,OAAOG,cAAc;AA0DhBC,eAAAC,EAAOC,GAAqBC,GAAiBC,GAClE;AAAA,QAAMC,IA/CPL,MAAAA,eACCG,GACAD,GACAE,GAEM;AAAA,UAAAC,IAAeC,SAASC,cAAc,uBAAA;AAC5CF,IAAAA,EAAaH,OAAOA,GACpBG,EAAaG,YAAYL;AAGnB,UAAAM,KAAmBL,KAAAA,gBAAAA,EAAQK,qBAAoB,EACpDC,uBAAuB,OAAO,EAC7BC,OAAO,GACPC,QAAQ,GACRC,GAAGlB,GACHmB,GAAGhB,GACHiB,KAAKjB,GACLkB,OAAOrB,GACPsB,QAAQnB,GACRoB,MAAMvB,GACNwB,QAAQ,OAAA,CAAQ,GAAA,GAAA,GAAA,EAKZN,GAAEA,GAAGC,GAAAA,EAAAA,IAAAA,MAAYM,EAAgBX,GAAkBJ,GAAc,EACtEgB,UAAU,SACVC,WAAWlB,KAAAA,QAAAA,EAAQK,mBAAmB,QAAQ,eAC9Cc,YAAY,CACXC,EAAO,IACPC,EACAC,GAAAA,EAAM,EAAEC,SAAS,EAWZ,CAAA,CAAA,EAAA,CAAA;AAAA,WANPtB,EAAauB,MAAMC,WAAW,SACjBxB,EAAAuB,MAAMV,OAAO,GAAGL,CAChBR,MAAAA,EAAAuB,MAAMb,MAAM,GAAGD,CAC5BT,MAAAA,EAAauB,MAAME,SAAS,QAEnBxB,SAAAyB,KAAKC,YAAY3B,CACnBA,GAAAA;AAAAA,EACR,EAI+CF,GAASD,GAAME;AAOtD,SAJF6B,EAAAC,EAAU7B,GAAc,OAAU8B,GAAAA,GAAM/B,KAAAA,gBAAAA,EAAQgC,aAAY,GAAOC,CAAAA,EAAAA,UAAU,MACjFhC;AAAAA,IAAAA,EAAaiC,OAAO;AAAA,EAAA,CAAA,GAGdjC;AACR;AAjEA6B,EAAU5B,UAAU,WAClBiC,EAAAA,KACAC,EAAa,GAAA,CAAA,EAEbH,UAAWI,CAAAA,MAAAA;AAEX9C,EAAAA,IAAa8C,EAAEC,SACf5C,IAAa2C,EAAEE;AAAA,CA6DV;AAAA,MAAMC,IAAU,EACtBC,SAAS,CAAC1C,GAAiBC,MAAiCH,EAAO,WAAWE,GAASC,CACvF0C,GAAAA,OAAO,CAAC3C,GAAiBC,MAAiCH,EAAO,SAASE,GAASC,IACnF2C,SAAS,CAAC5C,GAAiBC,MAAiCH,EAAO,WAAWE,GAASC,CAAAA,GACvF4C,MAAM,CAAC7C,GAAiBC,MAAiCH,EAAO,QAAQE,GAASC,CAAAA,EAAAA;;;;;ACjFrE,IAAA6C,IAAN,cAAmCC,EAAAA,EAAAA;AAAAA,EAAnC,cAAAC;AAAAC,UAAAC,GAAAA,SAAAA,GAE2CC,KAAApD,OAAA;AAAA,EAAA;AAAA,EAEjD,SAAAqD;AACQ,WAAAC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,eAqBM,MAAMF,KAAKG,cAAc,IAAIC,YAAY,OAAA,CAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAS;AAAA;AAxBhEC,EAAA,CADCC,EAAS,EAAE1D,MAAM2D,OADNZ,CAAAA,CAAAA,GAAAA,EAEZa,WAAA,QAAA,IAFYb,IAANU,EAAA,CADNI,EAAc,2BACFd;;ACAA,IAAAe,IAAN,cAAyCd;EAC/C,SAAAK;AACQ,WAAAC;AAAAA,EAAA;AAFIQ;AAAAA;;;GAAN,CADND,EAAc,8BAAA,CAAA,GACFC;"}
|
package/dist/rxjs-utils.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Observable as
|
|
1
|
+
import { Observable as o } from "rxjs";
|
|
2
2
|
import "./index-CuY8m6ta.js";
|
|
3
|
-
const a = (e, r = { attributes: !0, childList: !0, subtree: !0 }) => new
|
|
4
|
-
const t = new MutationObserver((
|
|
5
|
-
s.next(
|
|
3
|
+
const a = (e, r = { attributes: !0, childList: !0, subtree: !0 }) => new o((s) => {
|
|
4
|
+
const t = new MutationObserver((n) => {
|
|
5
|
+
s.next(n);
|
|
6
6
|
});
|
|
7
7
|
return t.observe(e, r), () => {
|
|
8
8
|
t.disconnect();
|
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-CH--tF4H.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-B-gRGTS2.cjs");const O=require("./area.component-
|
|
1
|
+
"use strict";const h=require("lit"),c=require("lit/decorators.js"),n=require("rxjs");require("./animated-text-B-gRGTS2.cjs");const O=require("./area.component-nkE9S6b3.cjs");require("./autocomplete-Ct3zhedL.cjs"),require("./spinner-DisHMwJU.cjs"),require("./icon-button-Bj7wtydv.cjs"),require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const S=require("./tailwind.mixin-DFM3jd9q.cjs"),$=require("./theme.interface-Xg5Zi46a.cjs");require("./checkbox-VYAzANWi.cjs"),require("./chips-SxuwP65D.cjs"),require("./payment-card-form-CQB_MKO_.cjs");const p=require("./types.cjs"),l=require("./provide-DSU87U5x.cjs"),w=require("./litElement.mixin-9sOZ1KTq.cjs"),d=require("./consume-Bb7_UzYd.cjs");require("./date-range-BKcjHwBs.cjs"),require("./delay-_tsTZ2IL.cjs");const b=require("./ripple-C2BHbhcS.cjs");require("./divider-DZ_aPVkO.cjs"),require("./form-CD_4LDVO.cjs"),require("./icon-CHArNkiO.cjs"),require("./input-jRmXX3rp.cjs"),require("./flex-BONU-PFy.cjs"),require("./list-BZ55pU5L.cjs"),require("./menu-Bd6Yleqx.cjs");const I=require("lit/directives/when.js");require("./outlet-IKjizKaN.cjs"),require("./option-CLhNC_i9.cjs"),require("./radio-group-BwJ-r3hy.cjs"),require("./index-DyJ0oDpR.cjs"),require("./select-DOTwG1aT.cjs");const U=require("./sheet-C_gzbR0e.cjs");require("./slider-uzR2YTuo.cjs"),require("./surface-jiFO8Fq-.cjs"),require("./table-B2-vIMmg.cjs"),require("./tabs-group-DIkk0A7J.cjs"),require("./textarea-hbpsxkKy.cjs"),require("./theme.component-BYbrrqK3.cjs"),require("./theme-button-CsWs0AS9.cjs"),require("./tree-OqMXhWak.cjs"),require("./typewriter-I6nigRrM.cjs"),require("./typography-CMNtjzZE.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-CH--tF4H.cjs.map
|