@ama-pt/agora-design-system 2.2.6 → 2.2.8
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/artifacts/dist/index.mjs +12 -23
- package/artifacts/dist/index.mjs.map +1 -1
- package/artifacts/dist/index.umd.js +1 -1
- package/artifacts/dist/index.umd.js.map +1 -1
- package/artifacts/dist/style.css +1 -1
- package/artifacts/dist/tailwind.css +0 -22
- package/artifacts/dist/types/components/accordion-group/accordion-group.d.ts +3 -3
- package/package.json +1 -1
package/artifacts/dist/index.mjs
CHANGED
|
@@ -865,11 +865,11 @@ const Ge = (t, i = 10) => {
|
|
|
865
865
|
var m, R;
|
|
866
866
|
o(I), (R = (m = E.props).onExpanded) == null || R.call(m, g);
|
|
867
867
|
};
|
|
868
|
-
return /* @__PURE__ */ e.createElement(Vt, { ...E.props,
|
|
868
|
+
return /* @__PURE__ */ e.createElement("li", { key: I }, /* @__PURE__ */ e.createElement(Vt, { ...E.props, ref: b, onExpanded: u, darkMode: n }));
|
|
869
869
|
}), N = y("agora-accordion-group", "mt-0 p-0 w-full", t, {
|
|
870
870
|
"dark-mode": s(n)
|
|
871
871
|
});
|
|
872
|
-
return /* @__PURE__ */ e.createElement("
|
|
872
|
+
return /* @__PURE__ */ e.createElement("ul", { className: N, ...a, ref: l }, A);
|
|
873
873
|
}, Li = le(Fi), Oi = ({
|
|
874
874
|
darkMode: t = !1,
|
|
875
875
|
appearance: i = "text",
|
|
@@ -3149,13 +3149,7 @@ const Ge = (t, i = 10) => {
|
|
|
3149
3149
|
)
|
|
3150
3150
|
), c && !c.link && c.icon && /* @__PURE__ */ e.createElement(ie, { name: c.icon, alt: c.iconAlt }));
|
|
3151
3151
|
}))
|
|
3152
|
-
), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-
|
|
3153
|
-
"hr",
|
|
3154
|
-
{
|
|
3155
|
-
"aria-hidden": !0,
|
|
3156
|
-
className: "border-1 border-white opacity-5 xl:h-[calc(100%-2px)] max-xl:w-full xl:bottom-0 xs:left-0 md:left-0 xl:left-1/2 absolute"
|
|
3157
|
-
}
|
|
3158
|
-
)), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-7 xs:py-32 md:py-64" }, i && /* @__PURE__ */ e.createElement("nav", { className: "xs:col-span-4 md:col-span-8 xl:col-span-7", "aria-label": l }, /* @__PURE__ */ e.createElement("ul", { className: "flex flex-wrap xs:flex-col md:flex-row xl:flex-row md:justify-center xl:justify-end xs:gap-x-32 md:gap-[30px]" }, i.filter((c, r) => r < 8).map((c, r) => {
|
|
3152
|
+
), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-7 xs:py-32 md:py-64" }, i && /* @__PURE__ */ e.createElement("nav", { className: "xs:col-span-4 md:col-span-8 xl:col-span-7", "aria-label": l }, /* @__PURE__ */ e.createElement("ul", { className: "flex flex-wrap xs:flex-col md:flex-row xl:flex-row md:justify-center xl:justify-end xs:gap-x-32 md:gap-[30px]" }, i.filter((c, r) => r < 8).map((c, r) => {
|
|
3159
3153
|
const o = `useful-${r}`;
|
|
3160
3154
|
return /* @__PURE__ */ e.createElement("li", { key: o, className: "py-8" }, /* @__PURE__ */ e.createElement(De, { ...c, darkMode: !0, appearance: "link", variant: "neutral" }));
|
|
3161
3155
|
}))), /* @__PURE__ */ e.createElement("div", { className: "xs:col-span-4 md:col-span-8 xl:col-span-7 mt-32" }, /* @__PURE__ */ e.createElement("span", { className: "text-s-regular text-[var(--color-neutral-500)] flex md:justify-center xl:justify-end" }, n)))), Ht = ({
|
|
@@ -8011,7 +8005,7 @@ const _e = ({
|
|
|
8011
8005
|
const d = {
|
|
8012
8006
|
"aria-label": `${n.timepickerMessageLabel}, ${n.timepickerMessageAriaLabel}`
|
|
8013
8007
|
};
|
|
8014
|
-
return n.cancelAriaLabel || delete d["aria-label"], /* @__PURE__ */ e.createElement("div", { ref: E, className: N }, /* @__PURE__ */ e.createElement(ac, null), /* @__PURE__ */ e.createElement("div", { className: "border-1 border-[var(--color-neutral-300)]" }), /* @__PURE__ */ e.createElement("div", { className: "px-32" }, /* @__PURE__ */ e.createElement(lc, { setInputTextValue: t })), s(a) && /* @__PURE__ */ e.createElement("div", { className: "timepicker-message", ...d }, /* @__PURE__ */ e.createElement(ie, { name: "agora-solid-alert-circle", className: "timepicker-message__icon" }), /* @__PURE__ */ e.createElement("div", { className: "timepicker-message__text" }, n.timepickerMessageLabel)));
|
|
8008
|
+
return n.cancelAriaLabel || delete d["aria-label"], /* @__PURE__ */ e.createElement("div", { ref: E, className: N }, /* @__PURE__ */ e.createElement(ac, null), /* @__PURE__ */ e.createElement("div", { className: "border-1 border-[var(--color-neutral-300)]" }), /* @__PURE__ */ e.createElement("div", { className: "px-32" }, /* @__PURE__ */ e.createElement(lc, { setInputTextValue: t })), s(a) && /* @__PURE__ */ e.createElement("div", { className: "timepicker-message", ...d }, /* @__PURE__ */ e.createElement(ie, { name: "agora-solid-alert-circle", className: "timepicker-message__icon", alt: n.timepickerMessageAriaLabel }), /* @__PURE__ */ e.createElement("div", { className: "timepicker-message__text" }, n.timepickerMessageLabel)));
|
|
8015
8009
|
}, rc = ({
|
|
8016
8010
|
className: t,
|
|
8017
8011
|
darkMode: i,
|
|
@@ -8814,12 +8808,7 @@ const _e = ({
|
|
|
8814
8808
|
return r.forEach((u) => {
|
|
8815
8809
|
z(u) && (b += u.props.max ?? 0);
|
|
8816
8810
|
}), b;
|
|
8817
|
-
}, [r]), N =
|
|
8818
|
-
let b = 0;
|
|
8819
|
-
return r.forEach((u) => {
|
|
8820
|
-
z(u) && (b += u.props.value ?? 0);
|
|
8821
|
-
}), b;
|
|
8822
|
-
}, [r]), E = (b, u) => {
|
|
8811
|
+
}, [r]), N = (b, u) => {
|
|
8823
8812
|
const g = u === o;
|
|
8824
8813
|
let m = b.props.value ?? 0;
|
|
8825
8814
|
return l && (m = o < u ? 0 : m), Ee(b, {
|
|
@@ -8828,27 +8817,27 @@ const _e = ({
|
|
|
8828
8817
|
value: m,
|
|
8829
8818
|
"aria-hidden": !0
|
|
8830
8819
|
});
|
|
8831
|
-
},
|
|
8820
|
+
}, E = () => {
|
|
8832
8821
|
let b = 0;
|
|
8833
8822
|
return O.forEach(a, (u, g) => {
|
|
8834
8823
|
z(u) && u.props.value !== void 0 && u.props.max !== void 0 && (!l || g <= o) && (b += Math.min(u.props.value, u.props.max));
|
|
8835
8824
|
}), Math.round(b / A * 100);
|
|
8836
|
-
},
|
|
8825
|
+
}, d = y("progress-bar-percentage", {
|
|
8837
8826
|
"sr-only": n,
|
|
8838
8827
|
"not-sr-only": !n
|
|
8839
|
-
});
|
|
8828
|
+
}), I = E();
|
|
8840
8829
|
return /* @__PURE__ */ e.createElement("div", { ...c }, !i && /* @__PURE__ */ e.createElement("div", { "aria-hidden": !0 }, t), /* @__PURE__ */ e.createElement(
|
|
8841
8830
|
"div",
|
|
8842
8831
|
{
|
|
8843
8832
|
className: "progress-bar-group",
|
|
8844
8833
|
role: "progressbar",
|
|
8845
|
-
"aria-valuenow":
|
|
8846
|
-
"aria-valuetext": `${
|
|
8834
|
+
"aria-valuenow": I,
|
|
8835
|
+
"aria-valuetext": `${I}%`,
|
|
8847
8836
|
"aria-valuemax": 100,
|
|
8848
8837
|
"aria-label": t
|
|
8849
8838
|
},
|
|
8850
|
-
O.map(a, (b, u) => z(b) ?
|
|
8851
|
-
), !n && /* @__PURE__ */ e.createElement("div", { className:
|
|
8839
|
+
O.map(a, (b, u) => z(b) ? N(b, u) : null)
|
|
8840
|
+
), !n && /* @__PURE__ */ e.createElement("div", { className: d, role: "status" }, I, "%"));
|
|
8852
8841
|
}, pc = ({
|
|
8853
8842
|
label: t,
|
|
8854
8843
|
hasError: i,
|