@mhmo91/schmancy 0.2.106 → 0.2.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/area.cjs +1 -1
  2. package/dist/area.component--h6lcDbh.cjs +8 -0
  3. package/dist/area.component--h6lcDbh.cjs.map +1 -0
  4. package/dist/{area.component-8AQUkma0.js → area.component-D9jjR4-z.js} +32 -32
  5. package/dist/area.component-D9jjR4-z.js.map +1 -0
  6. package/dist/area.js +1 -1
  7. package/dist/card.cjs +1 -1
  8. package/dist/card.js +1 -1
  9. package/dist/{chips-CR5QTRYd.js → chips-BL6vlm9-.js} +12 -12
  10. package/dist/{chips-CR5QTRYd.js.map → chips-BL6vlm9-.js.map} +1 -1
  11. package/dist/chips.js +1 -1
  12. package/dist/content-drawer.cjs +1 -1
  13. package/dist/content-drawer.js +1 -1
  14. package/dist/{delay-DE7SE2Lx.cjs → delay-_tsTZ2IL.cjs} +2 -2
  15. package/dist/{delay-DE7SE2Lx.cjs.map → delay-_tsTZ2IL.cjs.map} +1 -1
  16. package/dist/delay.cjs +1 -1
  17. package/dist/index.cjs +1 -1
  18. package/dist/index.js +40 -41
  19. package/dist/index.js.map +1 -1
  20. package/dist/nav-drawer.cjs +1 -1
  21. package/dist/nav-drawer.js +1 -1
  22. package/dist/notification.cjs +1 -1
  23. package/dist/notification.js +5 -6
  24. package/dist/notification.js.map +1 -1
  25. package/dist/outlet-IKjizKaN.cjs +30 -0
  26. package/dist/outlet-IKjizKaN.cjs.map +1 -0
  27. package/dist/outlet-Us3Wi-TE.js +81 -0
  28. package/dist/outlet-Us3Wi-TE.js.map +1 -0
  29. package/dist/rxjs-utils.js +4 -4
  30. package/dist/teleport.cjs +1 -1
  31. package/dist/{teleport.component-CDsX-2Mg.js → teleport.component-Brodt-vU.js} +9 -10
  32. package/dist/{teleport.component-CDsX-2Mg.js.map → teleport.component-Brodt-vU.js.map} +1 -1
  33. package/dist/{teleport.component-BokvDfBn.cjs → teleport.component-DeCJJ0wk.cjs} +2 -2
  34. package/dist/{teleport.component-BokvDfBn.cjs.map → teleport.component-DeCJJ0wk.cjs.map} +1 -1
  35. package/dist/teleport.js +1 -1
  36. package/dist/{typewriter-SgYEA2OC.js → typewriter-Dn4nHKtu.js} +11 -11
  37. package/dist/{typewriter-SgYEA2OC.js.map → typewriter-Dn4nHKtu.js.map} +1 -1
  38. package/dist/{typewriter-CAmStzUa.cjs → typewriter-I6nigRrM.cjs} +2 -2
  39. package/dist/{typewriter-CAmStzUa.cjs.map → typewriter-I6nigRrM.cjs.map} +1 -1
  40. package/dist/typewriter.cjs +1 -1
  41. package/dist/typewriter.js +1 -1
  42. package/package.json +1 -1
  43. package/types/src/area/area.component.d.ts +17 -8
  44. package/dist/_notification-BMl7x5RW.cjs +0 -2
  45. package/dist/_notification-BMl7x5RW.cjs.map +0 -1
  46. package/dist/_notification-D5MEzxBs.js +0 -21
  47. package/dist/_notification-D5MEzxBs.js.map +0 -1
  48. package/dist/area.component-8AQUkma0.js.map +0 -1
  49. package/dist/area.component-nkE9S6b3.cjs +0 -8
  50. package/dist/area.component-nkE9S6b3.cjs.map +0 -1
  51. package/dist/outlet-B16Pt3na.js +0 -62
  52. package/dist/outlet-B16Pt3na.js.map +0 -1
  53. package/dist/outlet-CT1apG_R.cjs +0 -30
  54. 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-nkE9S6b3.cjs");require("./autocomplete-Ct3zhedL.cjs"),require("./spinner-DisHMwJU.cjs");const y=require("./icon-button-Bj7wtydv.cjs"),e=require("./teleport.component-BokvDfBn.cjs"),b=require("./checkbox-VYAzANWi.cjs");require("./chips-SxuwP65D.cjs");const l=require("./payment-card-form-CQB_MKO_.cjs");require("./date-range-BKcjHwBs.cjs");const o=require("./delay-DE7SE2Lx.cjs"),c=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"),a=require("./list-BZ55pU5L.cjs");require("./menu-Bd6Yleqx.cjs");const m=require("./_notification-BMl7x5RW.cjs"),S=require("./outlet-CT1apG_R.cjs");require("./option-CLhNC_i9.cjs");const p=require("./radio-group-BwJ-r3hy.cjs"),d=require("./rxjs-utils.cjs");require("rxjs"),require("./index-DyJ0oDpR.cjs");const f=require("./select-DOTwG1aT.cjs"),n=require("./sheet-C_gzbR0e.cjs"),h=require("./slider-uzR2YTuo.cjs"),u=require("./surface-jiFO8Fq-.cjs");require("./table-B2-vIMmg.cjs"),require("./tabs-group-DIkk0A7J.cjs"),require("./textarea-hbpsxkKy.cjs");const i=require("./theme.component-BYbrrqK3.cjs"),g=require("./theme.interface-Xg5Zi46a.cjs");require("./theme-button-CsWs0AS9.cjs");const q=require("./tree-OqMXhWak.cjs"),O=require("./types.cjs"),w=require("./typewriter-CAmStzUa.cjs"),D=require("./typography-CMNtjzZE.cjs"),s=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:()=>y.SchmancyButton}),Object.defineProperty(exports,"SchmnacyIconButton",{enumerable:!0,get:()=>y.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:()=>b.SchmancyCheckbox}),Object.defineProperty(exports,"SchmancyPaymentCardForm",{enumerable:!0,get:()=>l.SchmancyPaymentCardForm}),Object.defineProperty(exports,"SchmancyDelay",{enumerable:!0,get:()=>o.SchmancyDelay}),exports.delayContext=o.delayContext,exports.color=c.color,exports.fullHeight=c.fullHeight,exports.ripple=c.ripple,Object.defineProperty(exports,"SchmancyFlex",{enumerable:!0,get:()=>t.SchmancyFlex}),Object.defineProperty(exports,"SchmancyFlexV2",{enumerable:!0,get:()=>t.SchmancyFlexV2}),Object.defineProperty(exports,"SchmancyGrid",{enumerable:!0,get:()=>t.SchmancyGrid}),Object.defineProperty(exports,"SchmancyScroll",{enumerable:!0,get:()=>t.SchmancyScroll}),Object.defineProperty(exports,"List",{enumerable:!0,get:()=>a.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>a.SchmancyListItem}),exports.SchmancyListTypeContext=a.SchmancyListTypeContext,exports.$notify=m.$notify,exports.notify=m.notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>S.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>S.SchmancyNotificationOutlet}),Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:()=>p.RadioGroup}),exports.mutationObserver=d.mutationObserver,Object.defineProperty(exports,"SchmancySelect",{enumerable:!0,get:()=>f.SchmancySelect}),exports.SchmancySheetPosition=n.SchmancySheetPosition,exports.SheetHereMorty=n.SheetHereMorty,exports.SheetWhereAreYouRicky=n.SheetWhereAreYouRicky,exports.sheet=n.sheet,Object.defineProperty(exports,"SchmancySlide",{enumerable:!0,get:()=>h.SchmancySlide}),Object.defineProperty(exports,"SchmancySlider",{enumerable:!0,get:()=>h.SchmancySlider}),Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>u.SchmancySurface}),exports.SchmancySurfaceTypeContext=u.SchmancySurfaceTypeContext,Object.defineProperty(exports,"SchmancyThemeComponent",{enumerable:!0,get:()=>i.SchmancyThemeComponent}),exports.formateTheme=i.formateTheme,exports.tailwindStyles=i.tailwindStyles,exports.SchmancyTheme=g.SchmancyTheme,Object.defineProperty(exports,"SchmancyTree",{enumerable:!0,get:()=>q.SchmancyTree}),exports.SchmancyEvents=O.SchmancyEvents,Object.defineProperty(exports,"TypewriterElement",{enumerable:!0,get:()=>w.TypewriterElement}),Object.defineProperty(exports,"SchmancyTypography",{enumerable:!0,get:()=>D.SchmancyTypography}),exports.intersection$=s.intersection$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-B-gRGTS2.cjs");const r=require("./area.component--h6lcDbh.cjs");require("./autocomplete-Ct3zhedL.cjs"),require("./spinner-DisHMwJU.cjs");const o=require("./icon-button-Bj7wtydv.cjs"),e=require("./teleport.component-DeCJJ0wk.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-8AQUkma0.js";
2
+ import { F as C, H as d, b as T, S as u, a as b, r as N } from "./area.component-D9jjR4-z.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-CDsX-2Mg.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-Brodt-vU.js";
7
7
  import { S as U } from "./checkbox-DxHSWouk.js";
8
- import "./chips-CR5QTRYd.js";
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, n as Da } from "./_notification-D5MEzxBs.js";
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 ba } from "./radio-group-BvtrNylW.js";
24
- import { mutationObserver as Ha } from "./rxjs-utils.js";
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 va } from "./select-D6nFemFx.js";
28
- import { S as Ma, b as ga, a as Ea, s as Aa } from "./sheet-Y-ULBa4y.js";
29
- import { S as Ya, a as $a } from "./slider-CFLiNdqN.js";
30
- import { a as Ga, S as La } from "./surface-D_qD1cZj.js";
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 Wa, f as _a, t as Ba } from "./theme.component-BIjHKguL.js";
35
- import { S as ja } from "./theme.interface-C5Kj6WjD.js";
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 Va } from "./tree-YkLiYcr_.js";
38
- import { SchmancyEvents as za } from "./types.js";
39
- import { T as Qa } from "./typewriter-SgYEA2OC.js";
40
- import { S as Xa } from "./typography-BXJ-xs12.js";
41
- import { i as ar } from "./intersection-CJxzz8c-.js";
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
- ba as RadioGroup,
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
- za as SchmancyEvents,
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
- da as SchmancyNotification,
76
- Ta as SchmancyNotificationOutlet,
74
+ Da as SchmancyNotification,
75
+ Ca as SchmancyNotificationOutlet,
77
76
  Z as SchmancyPaymentCardForm,
78
77
  ia as SchmancyScroll,
79
- va as SchmancySelect,
80
- Ma as SchmancySheetPosition,
81
- Ya as SchmancySlide,
82
- $a as SchmancySlider,
83
- Ga as SchmancySurface,
84
- La as SchmancySurfaceTypeContext,
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
- ja as SchmancyTheme,
87
- Wa as SchmancyThemeComponent,
88
- Va as SchmancyTree,
89
- Xa as SchmancyTypography,
85
+ Pa as SchmancyTheme,
86
+ Oa as SchmancyThemeComponent,
87
+ Ka as SchmancyTree,
88
+ Ua as SchmancyTypography,
90
89
  v as SchmnacyIconButton,
91
- ga as SheetHereMorty,
92
- Ea as SheetWhereAreYouRicky,
93
- Qa as TypewriterElement,
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
- _a as formateTheme,
97
+ Wa as formateTheme,
99
98
  ca as fullHeight,
100
- ar as intersection$,
101
- Ha as mutationObserver,
102
- Da as notify,
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
- Aa as sheet,
108
- Ba as tailwindStyles,
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-BokvDfBn.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-DeCJJ0wk.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
2
2
  //# sourceMappingURL=nav-drawer.cjs.map
@@ -1,4 +1,4 @@
1
- import { $ as c, i as e, k as n, l as m, m as s, j as h, n as i, h as t } from "./teleport.component-CDsX-2Mg.js";
1
+ import { $ as c, i as e, k as n, l as m, m as s, j as h, n as i, h as t } from "./teleport.component-Brodt-vU.js";
2
2
  export {
3
3
  c as $drawer,
4
4
  e as SchmancyDrawerAppbar,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./_notification-BMl7x5RW.cjs"),t=require("./outlet-CT1apG_R.cjs");exports.$notify=e.$notify,exports.notify=e.notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>t.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>t.SchmancyNotificationOutlet});
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
@@ -1,9 +1,8 @@
1
- import { $ as a, n as i } from "./_notification-D5MEzxBs.js";
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
- a as $notify,
5
- c as SchmancyNotification,
6
- f as SchmancyNotificationOutlet,
7
- i as notify
3
+ i as $notify,
4
+ o as SchmancyNotification,
5
+ n as SchmancyNotificationOutlet,
6
+ c as notify
8
7
  };
9
8
  //# sourceMappingURL=notification.js.map
@@ -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;"}
@@ -1,8 +1,8 @@
1
- import { Observable as n } from "rxjs";
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 n((s) => {
4
- const t = new MutationObserver((o) => {
5
- s.next(o);
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-BokvDfBn.cjs");exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.teleport=e.teleport;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-DeCJJ0wk.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
@@ -2,7 +2,7 @@ import { css as g, html as n, nothing as ht } from "lit";
2
2
  import { customElement as p, property as c, state as l, queryAssignedElements as pt, query as V } from "lit/decorators.js";
3
3
  import { Subject as J, merge as L, fromEvent as b, startWith as ft, tap as w, map as f, debounceTime as A, distinctUntilChanged as F, takeUntil as d, from as it, of as q, Observable as vt, zip as ot, filter as dt, take as wt, timeout as gt, bufferTime as xt, concatMap as Ot, interval as Dt, throwIfEmpty as Ct } from "rxjs";
4
4
  import "./animated-text-gc7T0HLa.js";
5
- import { a as rt, F as $t, H as Et } from "./area.component-8AQUkma0.js";
5
+ import { a as rt, F as $t, H as Et } from "./area.component-D9jjR4-z.js";
6
6
  import "./autocomplete-DNypXTYG.js";
7
7
  import "./spinner-Ca50o0jU.js";
8
8
  import "./icon-button-DtoWe88O.js";
@@ -11,7 +11,7 @@ import "lit/directives/style-map.js";
11
11
  import { T as I } from "./tailwind.mixin-ECkyl80C.js";
12
12
  import { S as U } from "./theme.interface-C5Kj6WjD.js";
13
13
  import "./checkbox-DxHSWouk.js";
14
- import "./chips-CR5QTRYd.js";
14
+ import "./chips-BL6vlm9-.js";
15
15
  import "./payment-card-form-BwmcjAMM.js";
16
16
  import { SchmancyEvents as m } from "./types.js";
17
17
  import { n as E, e as $ } from "./provide-BLSgVvMJ.js";
@@ -28,8 +28,7 @@ import "./flex-CxlUwIat.js";
28
28
  import "./list-6C-kQqCi.js";
29
29
  import "./menu-D0izP8_9.js";
30
30
  import { when as Y } from "lit/directives/when.js";
31
- import "@floating-ui/dom";
32
- import "./outlet-B16Pt3na.js";
31
+ import "./outlet-Us3Wi-TE.js";
33
32
  import "./option-CxIpiUcJ.js";
34
33
  import "./radio-group-BvtrNylW.js";
35
34
  import "./index-CuY8m6ta.js";
@@ -43,7 +42,7 @@ import "./textarea-BMSNswLn.js";
43
42
  import "./theme.component-BIjHKguL.js";
44
43
  import "./theme-button-BoAxkMWO.js";
45
44
  import "./tree-YkLiYcr_.js";
46
- import "./typewriter-SgYEA2OC.js";
45
+ import "./typewriter-Dn4nHKtu.js";
47
46
  import "./typography-BXJ-xs12.js";
48
47
  import { map as kt, distinctUntilChanged as Mt, take as jt } from "rxjs/operators";
49
48
  var Pt = Object.getOwnPropertyDescriptor;
@@ -127,7 +126,7 @@ let T = class extends I(g`
127
126
  }
128
127
  };
129
128
  K([c({ type: String, reflect: !0 })], T.prototype, "src", 2), K([c({ type: String })], T.prototype, "fit", 2), T = K([p("schmancy-card-media")], T);
130
- const Fe = new class {
129
+ const Ve = new class {
131
130
  constructor() {
132
131
  this.$drawer = new J(), this.$drawer.pipe().subscribe((t) => {
133
132
  t.action === "dismiss" ? t.ref.dispatchEvent(new CustomEvent(m.ContentDrawerToggle, { detail: { state: "close" }, bubbles: !0, composed: !0 })) : t.action === "render" && (t.ref.dispatchEvent(new CustomEvent(m.ContentDrawerToggle, { detail: { state: "open" }, bubbles: !0, composed: !0 })), t.ref.dispatchEvent(new CustomEvent("schmancy-content-drawer-render", { detail: { component: t.component, title: t.title }, bubbles: !0, composed: !0 })));
@@ -284,7 +283,7 @@ const Ut = new class {
284
283
  close(t) {
285
284
  this.$drawer.next({ self: t, state: !1 });
286
285
  }
287
- }(), Ye = Ut, et = E("push"), st = E("close");
286
+ }(), Fe = Ut, et = E("push"), st = E("close");
288
287
  var Bt = Object.defineProperty, Kt = Object.getOwnPropertyDescriptor, X = (t, e, i, o) => {
289
288
  for (var r, s = o > 1 ? void 0 : o ? Kt(e, i) : e, a = t.length - 1; a >= 0; a--) (r = t[a]) && (s = (o ? r(e, i, s) : r(s)) || s);
290
289
  return o && s && Bt(e, i, s), s;
@@ -506,7 +505,7 @@ let S = class extends W(g``) {
506
505
  };
507
506
  R([c({ type: Number, reflect: !0 })], S.prototype, "uuid", 2), R([c({ type: String })], S.prototype, "id", 2), R([c({ type: Number })], S.prototype, "delay", 2), S = R([p("schmancy-teleport")], S);
508
507
  export {
509
- Ye as $,
508
+ Fe as $,
510
509
  bt as H,
511
510
  Q as S,
512
511
  ut as W,
@@ -525,7 +524,7 @@ export {
525
524
  u as m,
526
525
  O as n,
527
526
  S as o,
528
- Fe as s,
527
+ Ve as s,
529
528
  H as t
530
529
  };
531
- //# sourceMappingURL=teleport.component-CDsX-2Mg.js.map
530
+ //# sourceMappingURL=teleport.component-Brodt-vU.js.map