phoenix_duskmoon 6.0.7 → 6.0.9
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [6.0.9](https://github.com/gsmlg-dev/phoenix-duskmoon-ui/compare/v6.0.8...v6.0.9) (2025-02-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Fix package.json files. ([885e8e9](https://github.com/gsmlg-dev/phoenix-duskmoon-ui/commit/885e8e9515e310352f6c65525c2059aea0822977))
|
|
7
|
+
* Fix package.json. ([9db1241](https://github.com/gsmlg-dev/phoenix-duskmoon-ui/commit/9db1241af76fa8e7a7dd195cb9d8ccb163cc7e19))
|
|
8
|
+
|
|
9
|
+
## [6.0.8](https://github.com/gsmlg-dev/phoenix-duskmoon-ui/compare/v6.0.7...v6.0.8) (2025-02-06)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* Fix missing css. ([a709509](https://github.com/gsmlg-dev/phoenix-duskmoon-ui/commit/a70950966ebea82ac858ab7e6e6ec8196fe17e88))
|
|
15
|
+
|
|
1
16
|
## [6.0.7](https://github.com/gsmlg-dev/phoenix-duskmoon-ui/compare/v6.0.6...v6.0.7) (2025-02-06)
|
|
2
17
|
|
|
3
18
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
export const WebComponentHook = {
|
|
3
|
+
mounted() {
|
|
4
|
+
const attrs = this.el.attributes;
|
|
5
|
+
const phxTarget = attrs["phx-target"].value;
|
|
6
|
+
const pushEvent = phxTarget
|
|
7
|
+
? (event, payload, callback) =>
|
|
8
|
+
this.pushEventTo(phxTarget, event, payload, callback)
|
|
9
|
+
: this.pushEvent;
|
|
10
|
+
|
|
11
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
12
|
+
if (/^duskmoon-send-/.test(attrs[i].name)) {
|
|
13
|
+
const eventName = attrs[i].name.replace(/^duskmoon-send-/, "");
|
|
14
|
+
const [phxEvent, callbackName] = attrs[i].value.split(';');
|
|
15
|
+
this.el.addEventListener(eventName, ({ detail }) => {
|
|
16
|
+
pushEvent(phxEvent, detail, (e) => {
|
|
17
|
+
this[callbackName]?.(e, detail, eventName)
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
if (/^duskmoon-receive-/.test(attrs[i].name)) {
|
|
22
|
+
const eventName = attrs[i].name.replace(/^duskmoon-receive-/, "");
|
|
23
|
+
const handler = attrs[i].value;
|
|
24
|
+
this.handleEvent(eventName, (payload) => {
|
|
25
|
+
if (handler && this.el[handler]) {
|
|
26
|
+
this.el[handler]?.(payload);
|
|
27
|
+
} else {
|
|
28
|
+
this.el.dispatchEvent(new CustomEvent(eventName, { detail: payload }));
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
if ('duskmoon-receive' === attrs[i].name) {
|
|
33
|
+
const [phxEvent, callbackName] = attrs[i].value.split(';');
|
|
34
|
+
this.handleEvent(phxEvent, (payload) => {
|
|
35
|
+
this.el[callbackName]?.(payload);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
if (window) {
|
|
43
|
+
window.__WebComponentHook__ = WebComponentHook;
|
|
44
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// See the Tailwind configuration guide for advanced usage
|
|
2
|
+
// https://tailwindcss.com/docs/configuration
|
|
3
|
+
const plugin = require('tailwindcss/plugin');
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
content: [
|
|
7
|
+
'./js/**/*.js',
|
|
8
|
+
'../lib/phoenix_duskmoon/*.ex',
|
|
9
|
+
'../lib/phoenix_duskmoon/**/*.ex'
|
|
10
|
+
],
|
|
11
|
+
plugins: [
|
|
12
|
+
plugin(function ({ matchUtilities, theme }) {
|
|
13
|
+
matchUtilities(
|
|
14
|
+
{
|
|
15
|
+
'grid-cols-auto-fill': (value) => ({
|
|
16
|
+
gridTemplateColumns: `repeat(auto-fill, minmax(min(${value}, 100%), 1fr))`,
|
|
17
|
+
}),
|
|
18
|
+
'grid-cols-auto-fit': (value) => ({
|
|
19
|
+
gridTemplateColumns: `repeat(auto-fit, minmax(min(${value}, 100%), 1fr))`,
|
|
20
|
+
}),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
values: theme('width', {}),
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phoenix_duskmoon",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./priv/static/phoenix_duskmoon.js",
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
"CHANGELOG.md",
|
|
19
19
|
"LICENSE",
|
|
20
20
|
"package.json",
|
|
21
|
-
"assets/
|
|
22
|
-
"assets/css/components.css",
|
|
23
|
-
"assets/css/components/",
|
|
21
|
+
"assets/",
|
|
24
22
|
"priv/static/",
|
|
25
23
|
"priv/svg/"
|
|
26
24
|
],
|
|
@@ -28,25 +26,14 @@
|
|
|
28
26
|
"registry": "https://registry.npmjs.org/"
|
|
29
27
|
},
|
|
30
28
|
"dependencies": {
|
|
31
|
-
"@gsmlg/lit": "1.29.5",
|
|
32
|
-
"lit": "^2.4.1",
|
|
33
|
-
"lit-element": "^3.2.2",
|
|
34
|
-
"lit-html": "^2.4.0"
|
|
35
29
|
},
|
|
36
30
|
"devDependencies": {
|
|
37
|
-
"@babel/core": "^7.26.0",
|
|
38
|
-
"@babel/preset-env": "^7.26.0",
|
|
39
31
|
"@mdi/svg": "^7.4.47",
|
|
40
|
-
"@tailwindcss/container-queries": "^0.1.1",
|
|
41
32
|
"@tailwindcss/typography": "^0.5.16",
|
|
42
33
|
"bootstrap-icons": "^1.11.3",
|
|
43
34
|
"daisyui": "^5.0.0-beta.6",
|
|
44
35
|
"postcss": "^8.5.1"
|
|
45
36
|
},
|
|
46
37
|
"peerDependencies": {
|
|
47
|
-
"@gsmlg/lit": "1.29.5",
|
|
48
|
-
"lit": "^2.4.1",
|
|
49
|
-
"lit-element": "^3.2.2",
|
|
50
|
-
"lit-html": "^2.4.0"
|
|
51
38
|
}
|
|
52
39
|
}
|
|
@@ -809,7 +809,7 @@
|
|
|
809
809
|
padding: calc(0.25rem * 0);
|
|
810
810
|
color: inherit;
|
|
811
811
|
overflow-x: hidden;
|
|
812
|
-
transition: transform 0.3s ease-out
|
|
812
|
+
transition: transform 0.3s ease-out, visibility 0s allow-discrete, opacity 0.1s ease-out;
|
|
813
813
|
overflow-y: hidden;
|
|
814
814
|
overscroll-behavior: contain;
|
|
815
815
|
z-index: 999;
|
|
@@ -822,7 +822,7 @@
|
|
|
822
822
|
opacity: 0%;
|
|
823
823
|
}
|
|
824
824
|
background-color: oklch(0% 0 0/ 0.4);
|
|
825
|
-
transition: display 0.3s ease-out allow-discrete, opacity 0.3s ease-out
|
|
825
|
+
transition: display 0.3s ease-out allow-discrete, opacity 0.3s ease-out, visibility 0.3s ease-out allow-discrete;
|
|
826
826
|
}
|
|
827
827
|
&.modal-open, &[open], &:target {
|
|
828
828
|
pointer-events: auto;
|
|
@@ -1837,7 +1837,7 @@
|
|
|
1837
1837
|
overflow: hidden;
|
|
1838
1838
|
opacity: 100%;
|
|
1839
1839
|
scale: 1;
|
|
1840
|
-
transition: margin 0.1s, opacity 0.3s, padding 0.3s, border-width 0.1s
|
|
1840
|
+
transition: margin 0.1s, opacity 0.3s, padding 0.3s, border-width 0.1s;
|
|
1841
1841
|
&:not(:last-child) {
|
|
1842
1842
|
margin-inline-end: calc(0.25rem * 1);
|
|
1843
1843
|
}
|