@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.
@@ -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
  );
@@ -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("div", { className: `${modal_dialog} rounded`, children: /* @__PURE__ */ jsxs("div", { className: `${modal_content} rounded`, children: [
136
- /* @__PURE__ */ jsxs("div", { className: `${modal_header} text_center`, children: [
137
- /* @__PURE__ */ jsx("h2", { className: `${modal_title} header_3`, children: headline }),
138
- /* @__PURE__ */ jsx("p", { className: `${modal_subtitle} p_16 mb_0 push_up`, children: bodyCopy })
139
- ] }),
140
- /* @__PURE__ */ jsx("hr", { className: solid }),
141
- /* @__PURE__ */ jsxs(
142
- "div",
143
- {
144
- className: `${modal_body} text-center flex flex_col center middle mx_auto`,
145
- children: [
146
- /* @__PURE__ */ jsx("p", { className: "p_16", children: "You will now be redirected to:" }),
147
- /* @__PURE__ */ jsx("p", { id: "insert-url", className: site_link, children: body })
148
- ]
149
- }
150
- ),
151
- /* @__PURE__ */ jsx("hr", { className: solid }),
152
- /* @__PURE__ */ jsxs(
153
- "div",
154
- {
155
- className: `${modal_footer} flex center middle push_up_24`,
156
- style: { marginInline: "auto", width: "max-content" },
157
- children: [
158
- /* @__PURE__ */ jsx(Button, { color: "primary", action: onAccept, children: "Continue" }),
159
- /* @__PURE__ */ jsx(
160
- "a",
161
- {
162
- style: { textDecoration: "none", padding: "8px 48px" },
163
- role: "button",
164
- className: `sc__btn ${chevron({ variant: "primary" })}`,
165
- "aria-label": "Close",
166
- title: "Go Back",
167
- id: "close",
168
- onClick: onCancel,
169
- children: "Close"
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 {
@@ -50,6 +50,9 @@
50
50
  font-family: var(--main-font-family);
51
51
  width: 100%;
52
52
  }
53
+ .xtgeqb0 ._1r4ovbu8 {
54
+ align-self: center;
55
+ }
53
56
  ._1r4ovbu9 {
54
57
  display: flex;
55
58
  flex-direction: column;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "1.0.99-feature-toasts.2",
4
+ "version": "1.0.99-feature-toasts.4",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",