Skip to content

Commit

Permalink
Deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Nov 6, 2024
1 parent 7ae64b5 commit 82d6031
Show file tree
Hide file tree
Showing 9 changed files with 1,018 additions and 1,089 deletions.
631 changes: 317 additions & 314 deletions react/dist/inertiaui-modal.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions react/dist/inertiaui-modal.umd.cjs

Large diffs are not rendered by default.

Binary file removed react/inertiaui-modal-react-0.1.4.tgz
Binary file not shown.
752 changes: 322 additions & 430 deletions react/package-lock.json

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,22 @@
"clsx": "^2.1.1"
},
"devDependencies": {
"@inertiajs/react": "^1.2.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"axios": "^1.6.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.1.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-tailwindcss": "^3.15.1",
"eslint-plugin-unused-imports": "^3.1.0",
"prettier": "^3.2.4",
"eslint": "^8.57.0",
"prettier-plugin-tailwindcss": "^0.5.12",
"vite": "^5.0",
"vite-plugin-eslint": "^1.8.1"
"prettier": "^3.2.4",
"react-dom": "^18.2.0",
"react": "^18.2.0",
"vite-plugin-eslint": "^1.8.1",
"vite": "^5.0"
},
"peerDependencies": {
"@inertiajs/react": "^1.2.0||^2.0.0-beta.1",
Expand Down
74 changes: 37 additions & 37 deletions vue/dist/inertiaui-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var ut = Object.defineProperty;
var dt = (e, t, n) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var B = (e, t, n) => dt(e, typeof t != "symbol" ? t + "" : t, n);
import * as $e from "vue";
import { computed as C, provide as ge, openBlock as g, createBlock as E, unref as v, mergeProps as $, createCommentVNode as P, ref as h, onUnmounted as z, onBeforeMount as ct, watch as D, createElementBlock as j, Fragment as xe, renderSlot as O, h as W, readonly as ft, markRaw as Te, nextTick as U, inject as we, onBeforeUnmount as re, onMounted as ce, useAttrs as Re, defineComponent as A, Comment as mt, cloneVNode as pt, toRefs as je, getCurrentInstance as V, normalizeProps as vt, guardReactiveProps as yt, withCtx as x, reactive as Fe, createVNode as S, watchEffect as F, effectScope as Ue, Teleport as ht, toHandlerKey as gt, camelize as xt, normalizeStyle as wt, getCurrentScope as bt, onScopeDispose as Ct, createElementVNode as T, normalizeClass as X, Transition as be, resolveDynamicComponent as _e, withModifiers as Et, toValue as Ot } from "vue";
import { computed as C, provide as ge, openBlock as g, createBlock as E, unref as v, mergeProps as $, createCommentVNode as P, ref as h, onUnmounted as z, onBeforeMount as ct, watch as D, createElementBlock as F, Fragment as xe, renderSlot as O, h as W, readonly as ft, markRaw as Te, nextTick as U, inject as we, onBeforeUnmount as re, onMounted as ce, useAttrs as je, defineComponent as A, Comment as mt, cloneVNode as pt, toRefs as Fe, getCurrentInstance as V, normalizeProps as vt, guardReactiveProps as yt, withCtx as x, reactive as Re, createVNode as S, watchEffect as R, effectScope as Ue, Teleport as ht, toHandlerKey as gt, camelize as xt, normalizeStyle as wt, getCurrentScope as bt, onScopeDispose as Ct, createElementVNode as T, normalizeClass as X, Transition as be, resolveDynamicComponent as _e, withModifiers as Et, toValue as Ot } from "vue";
import { router as G, usePage as qe } from "@inertiajs/vue3";
import { mergeDataIntoQueryString as At } from "@inertiajs/core";
import ue from "axios";
Expand Down Expand Up @@ -145,7 +145,7 @@ const ze = {
var u;
s && i && s.component === i.component && s.url === i.url && ((u = t.stack.value[0]) == null || u.updateProps(s.props ?? {}));
}
), (s, i) => (g(), j(xe, null, [
), (s, i) => (g(), F(xe, null, [
O(s.$slots, "default"),
v(t).stack.value.length ? (g(), E(ze, {
key: 0,
Expand Down Expand Up @@ -395,7 +395,7 @@ const Wt = /* @__PURE__ */ Object.assign({
var c;
return (c = i.value) == null ? void 0 : c.call(i);
});
const u = Re();
const u = je();
function d() {
i.value = a.value.registerEventListenersFromAttrs(u);
}
Expand Down Expand Up @@ -423,7 +423,7 @@ const Wt = /* @__PURE__ */ Object.assign({
var c;
return (c = l.stack.value.find((p) => p.shouldRender && p.index > a.value.index)) == null ? void 0 : c.index;
});
return (c, p) => (g(), j(xe, null, [
return (c, p) => (g(), F(xe, null, [
v(a).shouldRender ? O(c.$slots, "default", {
key: 0,
id: v(a).id,
Expand Down Expand Up @@ -477,7 +477,7 @@ function Tt(e) {
const o = Ue(!0);
return (...l) => (t || (n = o.run(() => e(...l)), t = !0), n);
}
function Rt(e) {
function jt(e) {
let t = 0, n, o;
const l = () => {
t -= 1, o && t <= 0 && (o.stop(), n = void 0, o = void 0);
Expand All @@ -489,7 +489,7 @@ function Se(e) {
}
const _ = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const jt = (e) => typeof e < "u", Ft = Object.prototype.toString, Ut = (e) => Ft.call(e) === "[object Object]", _t = () => {
const Ft = (e) => typeof e < "u", Rt = Object.prototype.toString, Ut = (e) => Rt.call(e) === "[object Object]", _t = () => {
}, ke = /* @__PURE__ */ qt();
function qt() {
var e, t;
Expand Down Expand Up @@ -567,7 +567,7 @@ function Zt(e, t, n, o = {}) {
} = o, c = V(), p = n || (c == null ? void 0 : c.emit) || ((l = c == null ? void 0 : c.$emit) == null ? void 0 : l.bind(c)) || ((s = (a = c == null ? void 0 : c.proxy) == null ? void 0 : a.$emit) == null ? void 0 : s.bind(c == null ? void 0 : c.proxy));
let y = d;
y = y || `update:${t.toString()}`;
const w = (I) => i ? typeof i == "function" ? i(I) : Jt(I) : I, M = () => jt(e[t]) ? w(e[t]) : r, J = (I) => {
const w = (I) => i ? typeof i == "function" ? i(I) : Jt(I) : I, M = () => Ft(e[t]) ? w(e[t]) : r, J = (I) => {
f ? f(I) && p(y, I) : p(y, I);
};
if (u) {
Expand Down Expand Up @@ -633,7 +633,7 @@ let Yt = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", en
t += Yt[Math.random() * 64 | 0];
return t;
};
const tn = Rt(() => {
const tn = jt(() => {
const e = h(/* @__PURE__ */ new Map()), t = h(), n = C(() => {
for (const s of e.value.values())
if (s)
Expand Down Expand Up @@ -920,7 +920,7 @@ const et = A({
slots: {},
setup(e, { slots: t, expose: n }) {
var o;
const { present: l, forceMount: a } = je(e), s = h(), { isPresent: i } = cn(l, s);
const { present: l, forceMount: a } = Fe(e), s = h(), { isPresent: i } = cn(l, s);
n({ present: i });
let u = t.default({ present: i });
u = Be(u || []);
Expand Down Expand Up @@ -949,7 +949,7 @@ const et = A({
}
}) : null;
}
}), [R, fn] = Me("DialogRoot"), mn = /* @__PURE__ */ A({
}), [j, fn] = Me("DialogRoot"), mn = /* @__PURE__ */ A({
inheritAttrs: !1,
__name: "DialogRoot",
props: {
Expand All @@ -962,7 +962,7 @@ const et = A({
const n = e, o = Zt(n, "open", t, {
defaultValue: n.defaultOpen,
passive: n.open === void 0
}), l = h(), a = h(), { modal: s } = je(n);
}), l = h(), a = h(), { modal: s } = Fe(n);
return fn({
open: o,
modal: s,
Expand Down Expand Up @@ -1030,7 +1030,7 @@ function gn(e, t) {
var n;
const o = ((n = t == null ? void 0 : t.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), l = h(!1), a = h(() => {
});
return F((s) => {
return R((s) => {
if (!_)
return;
const i = async (d) => {
Expand Down Expand Up @@ -1069,7 +1069,7 @@ function gn(e, t) {
function xn(e, t) {
var n;
const o = ((n = t == null ? void 0 : t.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), l = h(!1);
return F((a) => {
return R((a) => {
if (!_)
return;
const s = async (i) => {
Expand All @@ -1085,7 +1085,7 @@ function xn(e, t) {
onBlurCapture: () => l.value = !1
};
}
const N = Fe({
const N = Re({
layersRoot: /* @__PURE__ */ new Set(),
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
branches: /* @__PURE__ */ new Set()
Expand Down Expand Up @@ -1120,11 +1120,11 @@ const N = Fe({
u.value === i.value.size - 1 && (o("escapeKeyDown", p), p.defaultPrevented || o("dismiss"));
});
let c;
return F((p) => {
return R((p) => {
a.value && (n.disableOutsidePointerEvents && (N.layersWithOutsidePointerEventsDisabled.size === 0 && (c = s.value.body.style.pointerEvents, s.value.body.style.pointerEvents = "none"), N.layersWithOutsidePointerEventsDisabled.add(a.value)), i.value.add(a.value), p(() => {
n.disableOutsidePointerEvents && N.layersWithOutsidePointerEventsDisabled.size === 1 && (s.value.body.style.pointerEvents = c);
}));
}), F((p) => {
}), R((p) => {
p(() => {
a.value && (i.value.delete(a.value), N.layersWithOutsidePointerEventsDisabled.delete(a.value));
});
Expand Down Expand Up @@ -1224,7 +1224,7 @@ const Bn = /* @__PURE__ */ A({
},
emits: ["mountAutoFocus", "unmountAutoFocus"],
setup(e, { emit: t }) {
const n = e, o = t, { currentRef: l, currentElement: a } = k(), s = h(null), i = Mn(), u = Fe({
const n = e, o = t, { currentRef: l, currentElement: a } = k(), s = h(null), i = Mn(), u = Re({
paused: !1,
pause() {
this.paused = !0;
Expand All @@ -1233,7 +1233,7 @@ const Bn = /* @__PURE__ */ A({
this.paused = !1;
}
});
F((m) => {
R((m) => {
if (!_)
return;
const r = a.value;
Expand All @@ -1259,7 +1259,7 @@ const Bn = /* @__PURE__ */ A({
r && y.observe(r, { childList: !0, subtree: !0 }), m(() => {
document.removeEventListener("focusin", f), document.removeEventListener("focusout", c), y.disconnect();
});
}), F(async (m) => {
}), R(async (m) => {
const r = a.value;
if (await U(), !r)
return;
Expand Down Expand Up @@ -1340,7 +1340,7 @@ const ot = /* @__PURE__ */ A({
},
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
setup(e, { emit: t }) {
const n = e, o = t, l = R(), { forwardRef: a, currentElement: s } = k();
const n = e, o = t, l = j(), { forwardRef: a, currentElement: s } = k();
return l.titleId || (l.titleId = Pe(void 0, "radix-vue-dialog-title")), l.descriptionId || (l.descriptionId = Pe(void 0, "radix-vue-dialog-description")), ce(() => {
l.contentElement = s, document.activeElement !== document.body && (l.triggerElement.value = document.activeElement);
}), process.env.NODE_ENV !== "production" && kn({
Expand Down Expand Up @@ -1395,7 +1395,7 @@ const ot = /* @__PURE__ */ A({
},
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
setup(e, { emit: t }) {
const n = e, o = t, l = R(), a = Ie(o), { forwardRef: s, currentElement: i } = k();
const n = e, o = t, l = j(), a = Ie(o), { forwardRef: s, currentElement: i } = k();
return rn(i), (u, d) => (g(), E(ot, $({ ...n, ...v(a) }, {
ref: v(s),
"trap-focus": v(l).open.value,
Expand Down Expand Up @@ -1431,7 +1431,7 @@ const ot = /* @__PURE__ */ A({
setup(e, { emit: t }) {
const n = e, o = Ie(t);
k();
const l = R(), a = h(!1), s = h(!1);
const l = j(), a = h(!1), s = h(!1);
return (i, u) => (g(), E(ot, $({ ...n, ...v(o) }, {
"trap-focus": !1,
"disable-outside-pointer-events": !1,
Expand Down Expand Up @@ -1463,7 +1463,7 @@ const ot = /* @__PURE__ */ A({
},
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
setup(e, { emit: t }) {
const n = e, o = t, l = R(), a = Ie(o), { forwardRef: s } = k();
const n = e, o = t, l = j(), a = Ie(o), { forwardRef: s } = k();
return (i, u) => (g(), E(v(et), {
present: i.forceMount || v(l).open.value
}, {
Expand Down Expand Up @@ -1496,7 +1496,7 @@ const ot = /* @__PURE__ */ A({
as: {}
},
setup(e) {
const t = R();
const t = j();
return nn(!0), k(), (n, o) => (g(), E(v(H), {
as: n.as,
"as-child": n.asChild,
Expand All @@ -1517,7 +1517,7 @@ const ot = /* @__PURE__ */ A({
as: {}
},
setup(e) {
const t = R(), { forwardRef: n } = k();
const t = j(), { forwardRef: n } = k();
return (o, l) => {
var a;
return (a = v(t)) != null && a.modal.value ? (g(), E(v(et), {
Expand Down Expand Up @@ -1549,7 +1549,7 @@ const ot = /* @__PURE__ */ A({
setup(e) {
const t = e;
k();
const n = R();
const n = j();
return (o, l) => (g(), E(v(H), $(t, {
type: o.as === "button" ? "button" : void 0,
onClick: l[0] || (l[0] = (a) => v(n).onOpenChange(!1))
Expand All @@ -1567,7 +1567,7 @@ const ot = /* @__PURE__ */ A({
as: { default: "h2" }
},
setup(e) {
const t = e, n = R();
const t = e, n = j();
return k(), (o, l) => (g(), E(v(H), $(t, {
id: v(n).titleId
}), {
Expand Down Expand Up @@ -1629,19 +1629,19 @@ A({
},
setup(e, { slots: t, attrs: n }) {
const o = it(), { primitiveElement: l, currentElement: a } = Ye();
return F((s) => {
return R((s) => {
if (a.value) {
const i = Te(a.value);
o.itemMap.value.set(i, { ref: a.value, value: e.value }), s(() => o.itemMap.value.delete(i));
}
}), () => W(De, { ...n, [o.attrName]: "", ref: l }, t);
}
});
function Rn() {
function jn() {
if (typeof matchMedia == "function")
return matchMedia("(pointer:coarse)").matches ? "coarse" : "fine";
}
Rn();
jn();
const rt = {
__name: "CloseButton",
setup(e) {
Expand All @@ -1667,7 +1667,7 @@ const rt = {
_: 1
}));
}
}, jn = { class: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4" }, Fn = {
}, Fn = { class: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4" }, Rn = {
key: 0,
class: "absolute right-0 top-0 pr-3 pt-3"
}, Un = {
Expand All @@ -1677,7 +1677,7 @@ const rt = {
config: Object
},
setup(e) {
return (t, n) => (g(), j("div", jn, [
return (t, n) => (g(), F("div", Fn, [
T("div", {
class: X(["im-modal-positioner flex min-h-full justify-center", {
"items-start": e.config.position === "top",
Expand Down Expand Up @@ -1729,7 +1729,7 @@ const rt = {
T("div", {
class: X(["im-modal-content relative", [e.config.paddingClasses, e.config.panelClasses]])
}, [
e.config.closeButton ? (g(), j("div", Fn, [
e.config.closeButton ? (g(), F("div", Rn, [
S(rt)
])) : P("", !0),
O(t.$slots, "default", {
Expand All @@ -1756,7 +1756,7 @@ const rt = {
config: Object
},
setup(e) {
return (t, n) => (g(), j("div", _n, [
return (t, n) => (g(), F("div", _n, [
T("div", {
class: X(["im-slideover-positioner flex min-h-full items-center", {
"justify-start rtl:justify-end": e.config.position === "left",
Expand Down Expand Up @@ -1807,7 +1807,7 @@ const rt = {
T("div", {
class: X(["im-slideover-content relative", [e.config.paddingClasses, e.config.panelClasses]])
}, [
e.config.closeButton ? (g(), j("div", qn, [
e.config.closeButton ? (g(), F("div", qn, [
S(rt)
])) : P("", !0),
O(t.$slots, "default", {
Expand Down Expand Up @@ -1936,7 +1936,7 @@ const rt = {
]),
_: 1
}, 8, ["appear"])) : P("", !0),
c > 0 && w ? (g(), j("div", Xn)) : P("", !0),
c > 0 && w ? (g(), F("div", Xn)) : P("", !0),
(g(), E(_e(u != null && u.slideover ? Kn : Un), {
"modal-context": y,
config: u
Expand Down Expand Up @@ -2059,7 +2059,7 @@ const rt = {
var y;
return (y = d.value) == null ? void 0 : y.call(d);
});
const m = Re();
const m = je();
function r() {
d.value = a.value.registerEventListenersFromAttrs(m);
}
Expand Down
6 changes: 3 additions & 3 deletions vue/dist/inertiaui-modal.umd.cjs

Large diffs are not rendered by default.

Loading

0 comments on commit 82d6031

Please sign in to comment.