@codeandfunction/callaloo 3.18.1 → 3.19.1
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/chunks/{CLA11yButton.vue_vue_type_style_index_0_lang-sAuatKyL.js → CLA11yButton.vue_vue_type_style_index_0_lang-fn1ix3QX.js} +1 -1
- package/dist/chunks/{CLButton.vue_vue_type_style_index_0_lang-iaJCnlnS.js → CLButton.vue_vue_type_style_index_0_lang-D3VM1cBn.js} +3 -3
- package/dist/chunks/{CLCard.vue_vue_type_style_index_0_lang-lzqVCrJ3.js → CLCard.vue_vue_type_style_index_0_lang-yCzIBZpN.js} +5 -5
- package/dist/chunks/{CLFormLabel.vue_vue_type_script_setup_true_lang-DU9hc287.js → CLFormLabel.vue_vue_type_script_setup_true_lang-DYYs8W4N.js} +1 -1
- package/dist/chunks/{CLHeading.vue_vue_type_style_index_0_lang-DSJj-OSE.js → CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js} +1 -1
- package/dist/chunks/{CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js → CLIcon.vue_vue_type_style_index_0_lang-H04QzKpw.js} +1 -1
- package/dist/chunks/{CLInputMessages.vue_vue_type_style_index_0_lang-yVPk0TXA.js → CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js} +1 -1
- package/dist/chunks/{CLLink.vue_vue_type_style_index_0_lang-N1pSMEpM.js → CLLink.vue_vue_type_style_index_0_lang-Dec1U3lb.js} +2 -2
- package/dist/chunks/{CLNavLink.vue_vue_type_script_setup_true_lang-Ck2kQgOd.js → CLNavLink.vue_vue_type_script_setup_true_lang-BlSpkXiA.js} +1 -1
- package/dist/chunks/{CLPill.vue_vue_type_style_index_0_lang-DGFL7WdJ.js → CLPill.vue_vue_type_style_index_0_lang-DjIzyZ-T.js} +3 -3
- package/dist/chunks/{CLSkeleton.vue_vue_type_style_index_0_lang-0bIkQhjj.js → CLSkeleton.vue_vue_type_style_index_0_lang-DO-kZ629.js} +1 -1
- package/dist/chunks/{CLSpinner.vue_vue_type_style_index_0_lang-Bt2htES9.js → CLSpinner.vue_vue_type_style_index_0_lang-ByLBkPr8.js} +1 -1
- package/dist/chunks/{CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js → CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js} +1 -1
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-OqAUY5iU.js +200 -0
- package/dist/chunks/{base-theme-Dp5l5R6W.js → base-theme--kHiV8Yr.js} +22 -22
- package/dist/chunks/{utils-BaOvsXrB.js → utils-BFZ8uebw.js} +1 -1
- package/dist/chunks/{utils-lYiECXLy.js → utils-BT2IMc_A.js} +1 -1
- package/dist/chunks/{utils-Cxr8PSje.js → utils-BwiU4N7s.js} +1 -1
- package/dist/chunks/{utils-c_6HU3mP.js → utils-C9p9W8oE.js} +1 -1
- package/dist/chunks/{utils-COeAI8Q8.js → utils-DtSQZ0tk.js} +1 -1
- package/dist/chunks/{utils-D3pF04kL.js → utils-DvIHDaPn.js} +1 -1
- package/dist/components/Buttons/CLA11yButton/CLA11yButton.js +1 -1
- package/dist/components/Buttons/CLButton/CLButton.js +1 -1
- package/dist/components/CLIcon/CLIcon.js +1 -1
- package/dist/components/CLTable/CLTable.js +2 -2
- package/dist/components/Containers/CLCard/CLCard.js +1 -1
- package/dist/components/Containers/CLCarousel/CLCarousel.js +2 -2
- package/dist/components/Containers/CLDisclosure/CLDisclosure.js +5 -5
- package/dist/components/Form/CLCheckbox/CLCheckbox.js +3 -3
- package/dist/components/Form/CLInput/CLInput.js +5 -5
- package/dist/components/Form/CLRadioButton/CLRadioButton.js +2 -2
- package/dist/components/Form/CLSelect/CLSelect.js +3 -3
- package/dist/components/Form/CLTextArea/CLTextArea.js +2 -2
- package/dist/components/Indicators/CLBadge/CLBadge.js +1 -1
- package/dist/components/Indicators/CLBanner/CLBanner.js +6 -6
- package/dist/components/Indicators/CLPill/CLPill.js +1 -1
- package/dist/components/Indicators/CLProgress/CLProgress.js +2 -2
- package/dist/components/Loading/CLSkeleton/CLSkeleton.js +1 -1
- package/dist/components/Loading/CLSpinner/CLSpinner.js +1 -1
- package/dist/components/Modals/CLModal/CLModal.js +3 -3
- package/dist/components/Navigation/CLLink/CLLink.js +1 -1
- package/dist/components/Navigation/CLNavLink/CLNavLink.js +1 -1
- package/dist/components/Navigation/CLNavSection/CLNavSection.js +2 -2
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +2 -2
- package/dist/components/Popups/CLToast/CLToast.css +1 -1
- package/dist/components/Popups/CLToast/CLToast.js +1 -1
- package/dist/components/Popups/CLToast/CLToast.vue.d.ts +1 -2
- package/dist/components/Popups/utils.d.ts +11 -7
- package/dist/components/Providers/CLThemeProvider/CLThemeProvider.js +1 -1
- package/dist/components/Providers/CLToastProvider/CLToastProvider.js +28 -29
- package/dist/components/Typography/CLHeading/CLHeading.js +1 -1
- package/dist/components/Typography/CLText/CLText.js +1 -1
- package/dist/composables/useTheme.js +1 -1
- package/dist/types.d.ts +1 -3
- package/package.json +1 -1
- package/dist/chunks/CLToast.vue_vue_type_style_index_0_lang-CwrZb7Fw.js +0 -187
|
@@ -2,8 +2,8 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLTextArea.css';
|
|
3
3
|
import '../../../assets/shared/form-utilities.css';
|
|
4
4
|
import { defineComponent as $, mergeModels as b, useTemplateRef as x, useModel as C, computed as L, createBlock as i, openBlock as r, withCtx as B, createElementVNode as d, createCommentVNode as s, normalizeStyle as z, normalizeClass as m, unref as c, withDirectives as v, vModelText as k } from "vue";
|
|
5
|
-
import { _ as T, i as q, a as V } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as w } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as T, i as q, a as V } from "../../../chunks/CLInputMessages.vue_vue_type_style_index_0_lang-CF_lxNr8.js";
|
|
6
|
+
import { _ as w } from "../../../chunks/CLFormLabel.vue_vue_type_script_setup_true_lang-DYYs8W4N.js";
|
|
7
7
|
import { _ as I } from "../../../chunks/CLFormCharCounter.vue_vue_type_style_index_0_lang-CJ4VrvmR.js";
|
|
8
8
|
import { CLOrientation as f, CLCharCounterLayout as F, CLColorVariants as R, CLSizes as M, CLColors as S } from "../../../index.js";
|
|
9
9
|
const A = ["data-testid"], N = ["id", "aria-label", "autocomplete", "cols", "disabled", "form", "maxlength", "minlength", "name", "pattern", "placeholder", "readonly", "required", "spellcheck", "rows"], j = /* @__PURE__ */ $({
|
|
@@ -2,7 +2,7 @@ import '../../../assets/core.css';
|
|
|
2
2
|
import './CLBadge.css';
|
|
3
3
|
import { defineComponent as c, computed as n, createElementBlock as m, openBlock as u, normalizeStyle as f, normalizeClass as s, unref as r, createElementVNode as b, toDisplayString as g } from "vue";
|
|
4
4
|
import { CLColorVariants as p, CLColors as C } from "../../../index.js";
|
|
5
|
-
import { b as v } from "../../../chunks/utils-
|
|
5
|
+
import { b as v } from "../../../chunks/utils-BT2IMc_A.js";
|
|
6
6
|
const $ = ["data-testid"], h = /* @__PURE__ */ c({
|
|
7
7
|
name: "CLBadge",
|
|
8
8
|
__name: "CLBadge",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLBanner.css';
|
|
3
3
|
import { defineComponent as L, computed as h, createBlock as l, openBlock as n, unref as a, withCtx as c, createElementVNode as u, normalizeStyle as v, normalizeClass as d, createElementBlock as m, createCommentVNode as o, createTextVNode as b, toDisplayString as s, createVNode as y } from "vue";
|
|
4
|
-
import { _ as x } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as $ } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as S } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { _ as C } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-
|
|
8
|
-
import { _ as B } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as x } from "../../../chunks/CLA11yButton.vue_vue_type_style_index_0_lang-fn1ix3QX.js";
|
|
5
|
+
import { _ as $ } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D3VM1cBn.js";
|
|
6
|
+
import { _ as S } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js";
|
|
7
|
+
import { _ as C } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-DO-kZ629.js";
|
|
8
|
+
import { _ as B } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
|
|
9
9
|
import { CLColorVariants as r, CLColors as z, CLAlign as D, CLHeadingTypes as T, CLTextTypes as N, CLSizes as w, CLIconSizes as V, CLIconNames as A } from "../../../index.js";
|
|
10
|
-
import { a as I } from "../../../chunks/utils-
|
|
10
|
+
import { a as I } from "../../../chunks/utils-BT2IMc_A.js";
|
|
11
11
|
const R = ["data-testid"], O = /* @__PURE__ */ L({
|
|
12
12
|
name: "CLBanner",
|
|
13
13
|
__name: "CLBanner",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLPill.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLPill.vue_vue_type_style_index_0_lang-DjIzyZ-T.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLPill,
|
|
6
6
|
s as default
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLProgress.css';
|
|
3
3
|
import { defineComponent as f, mergeModels as p, useModel as _, computed as d, createElementBlock as n, openBlock as c, normalizeStyle as y, normalizeClass as s, unref as t, createCommentVNode as $, createElementVNode as l, createVNode as g, withCtx as C, createTextVNode as v, toDisplayString as V } from "vue";
|
|
4
|
-
import { _ as x } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as x } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
|
|
5
5
|
import { CLTextTypes as L, CLColors as u, CLSizes as N } from "../../../index.js";
|
|
6
|
-
import { c as z } from "../../../chunks/utils-
|
|
6
|
+
import { c as z } from "../../../chunks/utils-BT2IMc_A.js";
|
|
7
7
|
const B = ["data-testid"], k = /* @__PURE__ */ f({
|
|
8
8
|
name: "CLProgress",
|
|
9
9
|
__name: "CLProgress",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLSkeleton.css';
|
|
3
|
-
import { _ as e } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as e } from "../../../chunks/CLSkeleton.vue_vue_type_style_index_0_lang-DO-kZ629.js";
|
|
4
4
|
export {
|
|
5
5
|
e as CLSkeleton,
|
|
6
6
|
e as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLSpinner.css';
|
|
3
|
-
import { _ as r } from "../../../chunks/CLSpinner.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as r } from "../../../chunks/CLSpinner.vue_vue_type_style_index_0_lang-ByLBkPr8.js";
|
|
4
4
|
export {
|
|
5
5
|
r as CLSpinner,
|
|
6
6
|
r as default
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLModal.css';
|
|
3
3
|
import { defineComponent as W, useTemplateRef as F, useSlots as U, ref as Z, computed as m, watch as j, onMounted as q, onBeforeUnmount as A, createElementBlock as p, createCommentVNode as v, openBlock as w, normalizeStyle as y, normalizeClass as l, unref as n, createElementVNode as d, createBlock as B, renderSlot as $, withCtx as G, createTextVNode as J, toDisplayString as K } from "vue";
|
|
4
|
-
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as Q } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as P } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D3VM1cBn.js";
|
|
5
|
+
import { _ as Q } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js";
|
|
6
6
|
import { CLMode as k, CLColors as T, CLColorVariants as N, CLBorderRadius as X, CLIconSizes as Y, CLIconNames as ee, CLHeadingTypes as oe } from "../../../index.js";
|
|
7
|
-
import { g as te } from "../../../chunks/utils-
|
|
7
|
+
import { g as te } from "../../../chunks/utils-DtSQZ0tk.js";
|
|
8
8
|
import { useTheme as ne } from "../../../composables/useTheme.js";
|
|
9
9
|
import { useEsc as le } from "../../../composables/useEsc.js";
|
|
10
10
|
import { c as S, i as a } from "../../../chunks/helper-BYpahJAh.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLLink.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLLink.vue_vue_type_style_index_0_lang-Dec1U3lb.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLLink,
|
|
6
6
|
s as default
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
|
-
import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-BlSpkXiA.js";
|
|
3
3
|
export {
|
|
4
4
|
s as CLNavLink,
|
|
5
5
|
s as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLNavSection.css';
|
|
3
3
|
import { defineComponent as f, computed as u, createElementBlock as a, openBlock as l, normalizeClass as m, unref as r, Fragment as p, renderList as _, createVNode as i, withCtx as n, createTextVNode as C, toDisplayString as x } from "vue";
|
|
4
|
-
import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as k } from "../../../chunks/CLNavLink.vue_vue_type_script_setup_true_lang-BlSpkXiA.js";
|
|
5
|
+
import { _ as L } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
|
|
6
6
|
import { CLOrientation as h, CLColors as $ } from "../../../index.js";
|
|
7
7
|
const g = ["data-testid"], V = /* @__PURE__ */ f({
|
|
8
8
|
name: "CLNavSection",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLDropdownMenu.css';
|
|
3
3
|
import { computed as V, ref as E, shallowRef as te, watch as ut, getCurrentScope as ee, onScopeDispose as ne, shallowReadonly as q, unref as A, defineComponent as oe, onBeforeUnmount as ie, createElementBlock as Rt, openBlock as At, normalizeClass as dt, createVNode as Ot, createCommentVNode as re, withCtx as Et, createTextVNode as le, toDisplayString as se, normalizeStyle as ce, renderSlot as ae } from "vue";
|
|
4
|
-
import { _ as fe } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-
|
|
5
|
-
import { _ as ue } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { _ as fe } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-D3VM1cBn.js";
|
|
5
|
+
import { _ as ue } from "../../../chunks/CLCard.vue_vue_type_style_index_0_lang-yCzIBZpN.js";
|
|
6
6
|
import { c as de, i as mt } from "../../../chunks/helper-BYpahJAh.js";
|
|
7
7
|
import { useDropdown as me } from "../../../composables/useDropdown.js";
|
|
8
8
|
import { useEsc as he } from "../../../composables/useEsc.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.clll-toast{bottom:var(--clll-unit-4);position:fixed;overflow:hidden;width:90%;left:0;right:0;margin-left:auto;margin-right:auto;transform:translateY(100vh);background-color:var(--clll-toast-bg-color, white);color:var(--clll-toast-text-color, inherit);transition-property:all;transition-duration:.3s;transition-timing-function:ease;box-shadow:0 0 var(--clll-unit-3) var(--clll-unit-0_5) #0000001f,0 0 var(--clll-unit-1) var(--clll-unit-0_5) #00000005}@media(min-width:768px){.clll-toast{width:var(--clll-toast-width)}}@media(min-width:768px){.clll-toast.clll-toast--bottom-left{left:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-left:0}}@media(min-width:768px){.clll-toast.clll-toast--bottom-center{left:0;right:0;margin-left:auto;margin-right:auto;bottom:var(--clll-unit-8)}}@media(min-width:768px){.clll-toast.clll-toast--bottom-right{right:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-right:0}}@media(min-width:768px){.clll-toast.clll-toast--top-left{left:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-left:0}}@media(min-width:768px){.clll-toast.clll-toast--top-center{left:0;right:0;margin-left:auto;margin-right:auto;top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh)}}@media(min-width:768px){.clll-toast.clll-toast--top-right{right:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-right:0}}.clll-toast .clll-toast__body{display:flex;align-items:center;padding-top:var(--clll-unit-2_5);padding-left:var(--clll-unit-4);padding-bottom:var(--clll-unit-2_5);padding-right:var(--clll-unit-4)}.clll-toast .clll-toast__body>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content{display:flex;align-items:center;flex:1 1 0%}.clll-toast .clll-toast__body .clll-toast__content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__icon{display:flex;flex-direction:column;align-items:center;padding:var(--clll-unit-2);border-radius:var(--clll-rounded-full);background-color:var(--clll-toast-icon-bg, transparent)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__icon .clll-icon{color:var(--clll-toast-icon-color, inherit)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__text{flex:1 1 0%}.clll-toast.clll-toast--has-icon .clll-toast__body{padding-top:var(--clll-unit-2);padding-bottom:var(--clll-unit-2)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body{padding-top:var(--clll-unit-4);padding-bottom:var(--clll-unit-4)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body .clll-toast__content .clll-toast__text .clll-text--large{font-weight:500}.clll-toast.clll-toast--mounted{transform:translateY(0)}.clll-toast.clll-toast--rounded{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-full,.clll-toast.clll-toast--rounded.clll-toast--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-toast.clll-toast--rounded.clll-toast--rounded-lg,.clll-toast.clll-toast--rounded.clll-toast--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-toast.clll-toast--rounded.clll-toast--rounded-md,.clll-toast.clll-toast--rounded.clll-toast--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-toast.clll-toast--rounded.clll-toast--rounded-sm,.clll-toast.clll-toast--rounded.clll-toast--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xs,.clll-toast.clll-toast--rounded.clll-toast--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-none,.clll-toast.clll-toast--rounded.clll-toast--rounded-none .clll-{border-radius:0}.clll-toast.clll-toast--rounded:not([class*=clll-toast--rounded-]){border-radius:var(--clll-toast-theme-radius, var(--clll-rounded-sm))}
|
|
1
|
+
.clll-toast{bottom:var(--clll-unit-4);position:fixed;overflow:hidden;width:90%;left:0;right:0;margin-left:auto;margin-right:auto;transform:translateY(100vh);background-color:var(--clll-toast-bg-color, white);color:var(--clll-toast-text-color, inherit);transition-property:all;transition-duration:.3s;transition-timing-function:ease;box-shadow:0 0 var(--clll-unit-3) var(--clll-unit-0_5) #0000001f,0 0 var(--clll-unit-1) var(--clll-unit-0_5) #00000005}@media(min-width:768px){.clll-toast{width:var(--clll-toast-width)}}@media(min-width:768px){.clll-toast.clll-toast--bottom-left{left:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-left:0}}@media(min-width:768px){.clll-toast.clll-toast--bottom-center{left:0;right:0;margin-left:auto;margin-right:auto;bottom:var(--clll-unit-8)}}@media(min-width:768px){.clll-toast.clll-toast--bottom-right{right:var(--clll-unit-8);bottom:var(--clll-unit-8);margin-right:0}}@media(min-width:768px){.clll-toast.clll-toast--top-left{left:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-left:0}}@media(min-width:768px){.clll-toast.clll-toast--top-center{left:0;right:0;margin-left:auto;margin-right:auto;top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh)}}@media(min-width:768px){.clll-toast.clll-toast--top-right{right:var(--clll-unit-8);top:var(--clll-unit-8);bottom:auto;transform:translateY(-20vh);margin-right:0}}.clll-toast .clll-toast__body{display:flex;align-items:center;padding-top:var(--clll-unit-2_5);padding-left:var(--clll-unit-4);padding-bottom:var(--clll-unit-2_5);padding-right:var(--clll-unit-4)}.clll-toast .clll-toast__body>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content{display:flex;align-items:center;flex:1 1 0%}.clll-toast .clll-toast__body .clll-toast__content>:not([hidden])~:not([hidden]){margin-left:var(--clll-unit-4)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__icon{display:flex;flex-direction:column;align-items:center;padding:var(--clll-unit-2);border-radius:var(--clll-rounded-full);background-color:var(--clll-toast-icon-bg, transparent)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__icon .clll-icon{color:var(--clll-toast-icon-color, inherit)}.clll-toast .clll-toast__body .clll-toast__content .clll-toast__text{flex:1 1 0%}.clll-toast.clll-toast--has-icon .clll-toast__body{padding-top:var(--clll-unit-2);padding-bottom:var(--clll-unit-2)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body{padding-top:var(--clll-unit-4);padding-bottom:var(--clll-unit-4)}.clll-toast.clll-toast--has-titleandmessage .clll-toast__body .clll-toast__content .clll-toast__text .clll-text--large{font-weight:500}.clll-toast.clll-toast--mounted{transform:translateY(0)}.clll-toast.clll-toast--rounded{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-full,.clll-toast.clll-toast--rounded.clll-toast--rounded-full .clll-{border-radius:var(--clll-rounded-full)}.clll-toast.clll-toast--rounded.clll-toast--rounded-lg,.clll-toast.clll-toast--rounded.clll-toast--rounded-lg .clll-{border-radius:var(--clll-rounded-lg)}.clll-toast.clll-toast--rounded.clll-toast--rounded-md,.clll-toast.clll-toast--rounded.clll-toast--rounded-md .clll-{border-radius:var(--clll-rounded-md)}.clll-toast.clll-toast--rounded.clll-toast--rounded-sm,.clll-toast.clll-toast--rounded.clll-toast--rounded-sm .clll-{border-radius:var(--clll-rounded-sm)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xs,.clll-toast.clll-toast--rounded.clll-toast--rounded-xs .clll-{border-radius:var(--clll-rounded-xs)}.clll-toast.clll-toast--rounded.clll-toast--rounded-xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-xl .clll-{border-radius:var(--clll-rounded-xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-2xl .clll-{border-radius:var(--clll-rounded-2xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl,.clll-toast.clll-toast--rounded.clll-toast--rounded-3xl .clll-{border-radius:var(--clll-rounded-3xl)}.clll-toast.clll-toast--rounded.clll-toast--rounded-none,.clll-toast.clll-toast--rounded.clll-toast--rounded-none .clll-{border-radius:0}.clll-toast.clll-toast--rounded:not([class*=clll-toast--rounded-]){border-radius:var(--clll-toast-theme-radius, var(--clll-rounded-sm))}.clll-toast .clll-text{--clll-text-color: var(--clll-toast-text-color) !important}.clll-toast .clll-toast__action-button .clll-button{--clll-button-text-color: var(--clll-toast-action-button-text-color) !important;--clll-button-bg-color: var(--clll-toast-action-button-bg-color) !important;--clll-button-hover-bg: var(--clll-toast-action-button-hover-color) !important}.clll-toast .clll-toast__dismiss-button .clll-button{--clll-button-text-color: var(--clll-toast-dismiss-button-text-color) !important;--clll-button-bg-color: var(--clll-toast-dismiss-button-bg-color) !important;--clll-button-hover-bg: var(--clll-toast-dismiss-button-hover-color) !important}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLToast.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-OqAUY5iU.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLToast,
|
|
6
6
|
s as default
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CLIconSizes, CLColors, CLToastPosition, CLToastProps } from '../../../index.ts';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<CLToastProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CLToastProps> & Readonly<{}>, {
|
|
3
3
|
color: CLColors;
|
|
4
|
-
variant: CLColorVariants;
|
|
5
4
|
rounded: boolean;
|
|
6
5
|
testId: string;
|
|
7
6
|
width: string;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { CLColors
|
|
1
|
+
import { CLColors } from '../../index.ts';
|
|
2
2
|
interface ThemeProps {
|
|
3
3
|
color: CLColors;
|
|
4
|
-
variant: CLColorVariants;
|
|
5
4
|
}
|
|
6
|
-
export declare const toastTheme: ({ color
|
|
5
|
+
export declare const toastTheme: ({ color }: ThemeProps) => {
|
|
7
6
|
'--clll-toast-bg-color': string;
|
|
8
|
-
'--clll-toast-text-color': string;
|
|
9
|
-
'--clll-toast-
|
|
10
|
-
'--clll-toast-
|
|
11
|
-
'--clll-toast-
|
|
7
|
+
'--clll-toast-text-color': string | undefined;
|
|
8
|
+
'--clll-toast-action-button-text-color': string | undefined;
|
|
9
|
+
'--clll-toast-action-button-bg-color': string | undefined;
|
|
10
|
+
'--clll-toast-action-button-hover-color': string | undefined;
|
|
11
|
+
'--clll-toast-dismiss-button-text-color': string | undefined;
|
|
12
|
+
'--clll-toast-dismiss-button-bg-color': string | undefined;
|
|
13
|
+
'--clll-toast-dismiss-button-hover-color': string | undefined;
|
|
14
|
+
'--clll-toast-icon-bg': string | undefined;
|
|
15
|
+
'--clll-toast-icon-color': string | undefined;
|
|
12
16
|
'--clll-toast-theme-radius': string;
|
|
13
17
|
};
|
|
14
18
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import { defineComponent as s, onMounted as l, onBeforeUnmount as m, watch as r, createBlock as f, openBlock as c, resolveDynamicComponent as u, normalizeStyle as h, unref as C, withCtx as D, renderSlot as M } from "vue";
|
|
3
|
-
import { s as g, a as k, b as v, c as d, d as y, D as p } from "../../../chunks/base-theme
|
|
3
|
+
import { s as g, a as k, b as v, c as d, d as y, D as p } from "../../../chunks/base-theme--kHiV8Yr.js";
|
|
4
4
|
import { i as n, a as w } from "../../../chunks/helper-BYpahJAh.js";
|
|
5
5
|
const T = /* @__PURE__ */ s({
|
|
6
6
|
__name: "CLThemeProvider",
|
|
@@ -1,46 +1,45 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
2
|
+
import { defineComponent as C, ref as i, provide as L, createElementBlock as g, openBlock as p, createBlock as k, createCommentVNode as z, renderSlot as B, unref as S } from "vue";
|
|
3
|
+
import { _ as A } from "../../../chunks/CLToast.vue_vue_type_style_index_0_lang-OqAUY5iU.js";
|
|
4
|
+
const $ = { class: "clll-toast-provider" }, E = /* @__PURE__ */ C({
|
|
5
5
|
name: "CLToastProvider",
|
|
6
6
|
__name: "CLToastProvider",
|
|
7
7
|
props: {
|
|
8
8
|
dismissTimer: {},
|
|
9
9
|
position: {}
|
|
10
10
|
},
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
},
|
|
17
|
-
o.value = !1,
|
|
11
|
+
setup(h) {
|
|
12
|
+
const m = h, t = i(), l = i(), s = i(), a = i(), c = i(), n = i(), v = i(), u = i(), d = i(), r = i(), o = i(!1), f = () => {
|
|
13
|
+
t.value = void 0, l.value = void 0, s.value = void 0, a.value = void 0, c.value = void 0, n.value = void 0, v.value = void 0, u.value = void 0, d.value = void 0, r.value = void 0;
|
|
14
|
+
}, b = (e) => {
|
|
15
|
+
f(), t.value = e.actionLabel, l.value = e.color, s.value = e.dismissTimer ?? m.dismissTimer, a.value = e.icon, c.value = e.iconSize, n.value = e.message, v.value = e.onAction, u.value = e.position ?? m.position, d.value = e.title, r.value = e.width, o.value = !0;
|
|
16
|
+
}, _ = () => {
|
|
17
|
+
o.value = !1, f();
|
|
18
18
|
};
|
|
19
|
-
return
|
|
19
|
+
return L("clll-toast", {
|
|
20
20
|
visible: o,
|
|
21
|
-
showToast:
|
|
22
|
-
hideToast:
|
|
23
|
-
}), (e,
|
|
24
|
-
o.value ? (p(),
|
|
21
|
+
showToast: b,
|
|
22
|
+
hideToast: _
|
|
23
|
+
}), (e, x) => (p(), g("div", $, [
|
|
24
|
+
o.value ? (p(), k(S(A), {
|
|
25
25
|
key: 0,
|
|
26
|
-
"action-label":
|
|
27
|
-
color:
|
|
28
|
-
"dismiss-timer":
|
|
29
|
-
icon:
|
|
30
|
-
"icon-size":
|
|
26
|
+
"action-label": t.value,
|
|
27
|
+
color: l.value,
|
|
28
|
+
"dismiss-timer": s.value,
|
|
29
|
+
icon: a.value,
|
|
30
|
+
"icon-size": c.value,
|
|
31
31
|
message: n.value,
|
|
32
|
-
"on-action":
|
|
33
|
-
"on-dismiss":
|
|
32
|
+
"on-action": v.value,
|
|
33
|
+
"on-dismiss": _,
|
|
34
34
|
position: u.value,
|
|
35
|
-
title:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
S(e.$slots, "default")
|
|
35
|
+
title: d.value,
|
|
36
|
+
width: r.value
|
|
37
|
+
}, null, 8, ["action-label", "color", "dismiss-timer", "icon", "icon-size", "message", "on-action", "position", "title", "width"])) : z("", !0),
|
|
38
|
+
B(e.$slots, "default")
|
|
40
39
|
]));
|
|
41
40
|
}
|
|
42
41
|
});
|
|
43
42
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
E as CLToastProvider,
|
|
44
|
+
E as default
|
|
46
45
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLHeading.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLHeading.vue_vue_type_style_index_0_lang-DntAR1dI.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLHeading,
|
|
6
6
|
s as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLText.css';
|
|
3
|
-
import { _ as s } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-
|
|
3
|
+
import { _ as s } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-DVwTAVXM.js";
|
|
4
4
|
export {
|
|
5
5
|
s as CLText,
|
|
6
6
|
s as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../assets/core.css';
|
|
2
2
|
import { ref as t, inject as n } from "vue";
|
|
3
|
-
import { D as o } from "../chunks/base-theme
|
|
3
|
+
import { D as o } from "../chunks/base-theme--kHiV8Yr.js";
|
|
4
4
|
const a = t(o.borderRadius), r = t(o.darkMode), l = t(o.fontFamily), s = t(o.colors || {
|
|
5
5
|
primary: {},
|
|
6
6
|
secondary: {},
|
package/dist/types.d.ts
CHANGED
|
@@ -604,7 +604,7 @@ export declare enum CLTextTypes {
|
|
|
604
604
|
}
|
|
605
605
|
export interface CLThemeConfig {
|
|
606
606
|
colors?: CLPalette;
|
|
607
|
-
darkMode
|
|
607
|
+
darkMode?: boolean;
|
|
608
608
|
fontFamily?: string;
|
|
609
609
|
mode?: CLMode;
|
|
610
610
|
borderRadius?: CLBorderRadius;
|
|
@@ -644,8 +644,6 @@ export interface CLToastProps {
|
|
|
644
644
|
testId?: string;
|
|
645
645
|
/** Set the text of the title which should be displayed */
|
|
646
646
|
title?: string;
|
|
647
|
-
/** Sets the color variant of the buttons and icons */
|
|
648
|
-
variant?: CLColorVariants;
|
|
649
647
|
/** Sets the width of the Toast, it's default value is `24rem`. */
|
|
650
648
|
width?: string;
|
|
651
649
|
}
|
package/package.json
CHANGED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import '../components/Popups/CLToast/CLToast.css';
|
|
2
|
-
import { defineComponent as q, ref as l, computed as G, watch as J, onMounted as K, onUnmounted as O, onBeforeUnmount as Q, createElementBlock as z, openBlock as h, normalizeStyle as W, normalizeClass as c, unref as o, createElementVNode as g, createCommentVNode as $, createVNode as w, createBlock as R, withCtx as D, createTextVNode as M, toDisplayString as S } from "vue";
|
|
3
|
-
import { _ as A } from "./CLButton.vue_vue_type_style_index_0_lang-iaJCnlnS.js";
|
|
4
|
-
import { _ as X } from "./CLIcon.vue_vue_type_style_index_0_lang-D60lhyDD.js";
|
|
5
|
-
import { _ as F } from "./CLText.vue_vue_type_style_index_0_lang-Bm4JS6YC.js";
|
|
6
|
-
import { CLMode as H, CLColorVariants as P, CLToastPosition as Y, CLIconSizes as U, CLColors as y, CLTextTypes as B, CLSizes as p, CLIconNames as ee } from "../index.js";
|
|
7
|
-
import { i as _, g as te, b as ae } from "./helper-BYpahJAh.js";
|
|
8
|
-
import { useEsc as oe } from "../composables/useEsc.js";
|
|
9
|
-
import { g as ie } from "./utils-COeAI8Q8.js";
|
|
10
|
-
import { useTheme as se } from "../composables/useTheme.js";
|
|
11
|
-
const le = ({ color: t, variant: e }) => {
|
|
12
|
-
const { colors: C, darkMode: n } = se(), i = n.value ? H.Dark : H.Light, r = ie({
|
|
13
|
-
color: t,
|
|
14
|
-
colors: C.value,
|
|
15
|
-
mode: i,
|
|
16
|
-
variant: e
|
|
17
|
-
});
|
|
18
|
-
return {
|
|
19
|
-
"--clll-toast-bg-color": n.value ? "black" : "white",
|
|
20
|
-
"--clll-toast-text-color": r?.text ?? "inherit",
|
|
21
|
-
"--clll-toast-icon-bg": r?.bg ?? "transparent",
|
|
22
|
-
"--clll-toast-icon-color": r?.text ?? "inherit",
|
|
23
|
-
"--clll-toast-timer-bg": r?.textDisabled ?? "transparent",
|
|
24
|
-
"--clll-toast-theme-radius": "var(--clll-default-radius)"
|
|
25
|
-
};
|
|
26
|
-
}, ne = ["data-testid"], m = 300, a = "clll-toast", ge = /* @__PURE__ */ q({
|
|
27
|
-
name: "CLToast",
|
|
28
|
-
__name: "CLToast",
|
|
29
|
-
props: {
|
|
30
|
-
actionLabel: {},
|
|
31
|
-
borderRadius: {},
|
|
32
|
-
color: { default: y.Secondary },
|
|
33
|
-
dismissTimer: { default: 5 },
|
|
34
|
-
icon: {},
|
|
35
|
-
iconSize: { default: U.Small },
|
|
36
|
-
message: {},
|
|
37
|
-
onAction: {},
|
|
38
|
-
onDismiss: {},
|
|
39
|
-
position: { default: Y.TopRight },
|
|
40
|
-
rounded: { type: Boolean, default: !0 },
|
|
41
|
-
testId: { default: "clll-toast" },
|
|
42
|
-
title: {},
|
|
43
|
-
variant: { default: P.Soft },
|
|
44
|
-
width: { default: "24rem" }
|
|
45
|
-
},
|
|
46
|
-
setup(t) {
|
|
47
|
-
const e = t, C = l(), n = l(!1), i = l(), r = l(0), s = l(!1), v = l(null), x = l(0), f = l(0), u = l(!1), Z = G(() => [
|
|
48
|
-
a,
|
|
49
|
-
e.borderRadius ? `${a}--${e.borderRadius}` : "",
|
|
50
|
-
e.dismissTimer ? `${a}--has-timer` : "",
|
|
51
|
-
e.icon ? `${a}--has-icon` : "",
|
|
52
|
-
e.message && !e.title ? `${a}--has-messageonly` : "",
|
|
53
|
-
n.value ? `${a}--mounted` : "",
|
|
54
|
-
e.onAction && e.actionLabel ? `${a}--has-action` : "",
|
|
55
|
-
e.rounded ? `${a}--rounded` : `${a}--box`,
|
|
56
|
-
e.title && !e.message ? `${a}--has-titleonly` : "",
|
|
57
|
-
e.title && e.message ? `${a}--has-titleandmessage` : "",
|
|
58
|
-
`${a}--${e.position}`
|
|
59
|
-
]), b = () => {
|
|
60
|
-
v.value !== null && (clearTimeout(v.value), v.value = null), i.value?.stop();
|
|
61
|
-
}, I = () => {
|
|
62
|
-
!e.dismissTimer || s.value || (b(), x.value = Date.now(), f.value = e.dismissTimer * 1e3, u.value = !1, v.value = setTimeout(() => {
|
|
63
|
-
!u.value && !s.value && T();
|
|
64
|
-
}, f.value));
|
|
65
|
-
}, L = () => {
|
|
66
|
-
if (!e.dismissTimer || u.value || s.value) return;
|
|
67
|
-
u.value = !0;
|
|
68
|
-
const d = Date.now() - x.value;
|
|
69
|
-
f.value = Math.max(0, f.value - d), b();
|
|
70
|
-
}, k = () => {
|
|
71
|
-
!e.dismissTimer || !u.value || s.value || (u.value = !1, x.value = Date.now(), v.value = setTimeout(() => {
|
|
72
|
-
!u.value && !s.value && T();
|
|
73
|
-
}, f.value));
|
|
74
|
-
}, N = () => {
|
|
75
|
-
document.hidden ? L() : k();
|
|
76
|
-
}, T = () => {
|
|
77
|
-
s.value || (s.value = !0, n.value = !1, b(), i.value && i.value.start(m, (d) => {
|
|
78
|
-
Math.min(d, m) === m && (i.value?.stop(), e.onDismiss?.());
|
|
79
|
-
}), V());
|
|
80
|
-
};
|
|
81
|
-
J(() => e.dismissTimer, () => {
|
|
82
|
-
b(), s.value = !1, e.dismissTimer && e.dismissTimer > 0 && I();
|
|
83
|
-
}), K(() => {
|
|
84
|
-
_ && (r.value = te() + 1, i.value || (i.value = ae(), i.value.start(100, (d) => {
|
|
85
|
-
Math.min(d, 100) === 100 && (i.value?.stop(), n.value = !0, e.dismissTimer && i.value?.start(m, (j) => {
|
|
86
|
-
Math.min(j, m) === m && (i.value?.stop(), I());
|
|
87
|
-
}));
|
|
88
|
-
})), document.addEventListener("visibilitychange", N));
|
|
89
|
-
}), O(() => {
|
|
90
|
-
_ && (b(), i.value = void 0, document.removeEventListener("visibilitychange", N)), n.value = !1, s.value || (s.value = !0, e.onDismiss?.());
|
|
91
|
-
});
|
|
92
|
-
const { clearEventListeners: V } = oe({ escHandler: T });
|
|
93
|
-
return Q(() => {
|
|
94
|
-
V();
|
|
95
|
-
}), (d, E) => (h(), z("output", {
|
|
96
|
-
ref_key: "elem",
|
|
97
|
-
ref: C,
|
|
98
|
-
class: c(o(Z)),
|
|
99
|
-
"data-testid": t.testId,
|
|
100
|
-
style: W({ zIndex: o(r), "--clll-toast-width": t.width, ...o(le)({ color: t.color, variant: t.variant }) }),
|
|
101
|
-
onMouseenter: L,
|
|
102
|
-
onMouseleave: k,
|
|
103
|
-
onFocusin: L,
|
|
104
|
-
onFocusout: k
|
|
105
|
-
}, [
|
|
106
|
-
g("div", {
|
|
107
|
-
class: c(`${a}__body`)
|
|
108
|
-
}, [
|
|
109
|
-
g("div", {
|
|
110
|
-
class: c(`${a}__content`)
|
|
111
|
-
}, [
|
|
112
|
-
t.icon ? (h(), z("div", {
|
|
113
|
-
key: 0,
|
|
114
|
-
class: c(`${a}__icon`)
|
|
115
|
-
}, [
|
|
116
|
-
w(o(X), {
|
|
117
|
-
name: t.icon,
|
|
118
|
-
size: t.iconSize
|
|
119
|
-
}, null, 8, ["name", "size"])
|
|
120
|
-
], 2)) : $("", !0),
|
|
121
|
-
g("div", {
|
|
122
|
-
class: c(`${a}__text`)
|
|
123
|
-
}, [
|
|
124
|
-
t.title ? (h(), R(o(F), {
|
|
125
|
-
key: 0,
|
|
126
|
-
color: o(y).Neutral,
|
|
127
|
-
"test-id": `${a}__title`,
|
|
128
|
-
type: o(B).Body,
|
|
129
|
-
bold: ""
|
|
130
|
-
}, {
|
|
131
|
-
default: D(() => [
|
|
132
|
-
M(S(t.title), 1)
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
}, 8, ["color", "test-id", "type"])) : $("", !0),
|
|
136
|
-
t.message ? (h(), R(o(F), {
|
|
137
|
-
key: 1,
|
|
138
|
-
color: o(y).Neutral,
|
|
139
|
-
"test-id": `${a}__message`,
|
|
140
|
-
type: t.title ? o(B).Medium : o(B).Body
|
|
141
|
-
}, {
|
|
142
|
-
default: D(() => [
|
|
143
|
-
M(S(t.message), 1)
|
|
144
|
-
]),
|
|
145
|
-
_: 1
|
|
146
|
-
}, 8, ["color", "test-id", "type"])) : $("", !0)
|
|
147
|
-
], 2),
|
|
148
|
-
t.onAction && t.actionLabel ? (h(), z("div", {
|
|
149
|
-
key: 1,
|
|
150
|
-
class: c(`${a}__action-button`)
|
|
151
|
-
}, [
|
|
152
|
-
w(o(A), {
|
|
153
|
-
color: t.color,
|
|
154
|
-
"border-radius": t.borderRadius,
|
|
155
|
-
"on-click": t.onAction,
|
|
156
|
-
"test-id": `${a}__action-button`,
|
|
157
|
-
variant: t.variant
|
|
158
|
-
}, {
|
|
159
|
-
default: D(() => [
|
|
160
|
-
M(S(t.actionLabel), 1)
|
|
161
|
-
]),
|
|
162
|
-
_: 1
|
|
163
|
-
}, 8, ["color", "border-radius", "on-click", "test-id", "variant"])
|
|
164
|
-
], 2)) : $("", !0)
|
|
165
|
-
], 2),
|
|
166
|
-
g("div", {
|
|
167
|
-
class: c(`${a}__dismiss-button`)
|
|
168
|
-
}, [
|
|
169
|
-
w(o(A), {
|
|
170
|
-
"aria-label": "Dismiss toast",
|
|
171
|
-
color: o(y).Neutral,
|
|
172
|
-
"border-radius": t.borderRadius,
|
|
173
|
-
"icon-before": o(ee).Delete,
|
|
174
|
-
"icon-size": o(U).Tiny,
|
|
175
|
-
"on-click": T,
|
|
176
|
-
size: o(p).Tiny,
|
|
177
|
-
"test-id": `${a}__dismiss-button`,
|
|
178
|
-
variant: o(P).Text
|
|
179
|
-
}, null, 8, ["color", "border-radius", "icon-before", "icon-size", "size", "test-id", "variant"])
|
|
180
|
-
], 2)
|
|
181
|
-
], 2)
|
|
182
|
-
], 46, ne));
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
export {
|
|
186
|
-
ge as _
|
|
187
|
-
};
|