@axos-web-dev/shared-components 1.0.99-feature-toasts.2 → 1.0.99-feature-toasts.4
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/ImageToast/index.js
CHANGED
|
@@ -171,7 +171,7 @@ const ToastWrapper = ({
|
|
|
171
171
|
"aria-atomic": "true",
|
|
172
172
|
initial: { opacity: 0, transform: "translate3d(10px,0,0) scale(0.6)" },
|
|
173
173
|
whileInView: { opacity: 1, transform: "translate3d(0,0,0) scale(1)" },
|
|
174
|
-
viewport: { once: true },
|
|
174
|
+
viewport: { once: true, amount: 0.8 },
|
|
175
175
|
children
|
|
176
176
|
}
|
|
177
177
|
);
|
package/dist/Modal/Modal.js
CHANGED
|
@@ -73,6 +73,7 @@ import "next/image.js";
|
|
|
73
73
|
import "../HeroBanner/HeroBanner.css.js";
|
|
74
74
|
import "../HeroBanner/LargeBanner.css.js";
|
|
75
75
|
import "../HeroBanner/SelectionBanner.css.js";
|
|
76
|
+
import { AnimatePresence, motion } from "framer-motion";
|
|
76
77
|
/* empty css */
|
|
77
78
|
import "../SetContainer/SetContainer.css.js";
|
|
78
79
|
import "../Tab/Tab.css.js";
|
|
@@ -132,47 +133,56 @@ const Modal = ({
|
|
|
132
133
|
}) => {
|
|
133
134
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { id: "speedbump", tabIndex: -1, role: "dialog", className: modal, children: [
|
|
134
135
|
/* @__PURE__ */ jsx("div", { className: speedbump_background, onClick: onCancel }),
|
|
135
|
-
/* @__PURE__ */ jsx(
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"div",
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
136
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: /* @__PURE__ */ jsx(
|
|
137
|
+
motion.div,
|
|
138
|
+
{
|
|
139
|
+
className: `${modal_dialog} rounded`,
|
|
140
|
+
initial: { opacity: 0, transform: "translate3d(10px,0,0) scale(0.6)" },
|
|
141
|
+
animate: { opacity: 1, transform: "translate3d(0,0,0) scale(1)" },
|
|
142
|
+
exit: { opacity: 0, transform: "translate3d(10px,0,0) scale(0.6)" },
|
|
143
|
+
children: /* @__PURE__ */ jsxs("div", { className: `${modal_content} rounded`, children: [
|
|
144
|
+
/* @__PURE__ */ jsxs("div", { className: `${modal_header} text_center`, children: [
|
|
145
|
+
/* @__PURE__ */ jsx("h2", { className: `${modal_title} header_3`, children: headline }),
|
|
146
|
+
/* @__PURE__ */ jsx("p", { className: `${modal_subtitle} p_16 mb_0 push_up`, children: bodyCopy })
|
|
147
|
+
] }),
|
|
148
|
+
/* @__PURE__ */ jsx("hr", { className: solid }),
|
|
149
|
+
/* @__PURE__ */ jsxs(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
className: `${modal_body} text-center flex flex_col center middle mx_auto`,
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ jsx("p", { className: "p_16", children: "You will now be redirected to:" }),
|
|
155
|
+
/* @__PURE__ */ jsx("p", { id: "insert-url", className: site_link, children: body })
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ jsx("hr", { className: solid }),
|
|
160
|
+
/* @__PURE__ */ jsxs(
|
|
161
|
+
"div",
|
|
162
|
+
{
|
|
163
|
+
className: `${modal_footer} flex center middle push_up_24`,
|
|
164
|
+
style: { marginInline: "auto", width: "max-content" },
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ jsx(Button, { color: "primary", action: onAccept, children: "Continue" }),
|
|
167
|
+
/* @__PURE__ */ jsx(
|
|
168
|
+
"a",
|
|
169
|
+
{
|
|
170
|
+
style: { textDecoration: "none", padding: "8px 48px" },
|
|
171
|
+
role: "button",
|
|
172
|
+
className: `sc__btn ${chevron({ variant: "primary" })}`,
|
|
173
|
+
"aria-label": "Close",
|
|
174
|
+
title: "Go Back",
|
|
175
|
+
id: "close",
|
|
176
|
+
onClick: onCancel,
|
|
177
|
+
children: "Close"
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
)
|
|
183
|
+
] })
|
|
184
|
+
}
|
|
185
|
+
) })
|
|
176
186
|
] }) });
|
|
177
187
|
};
|
|
178
188
|
export {
|
package/package.json
CHANGED