@apolitical/component-library 6.6.20-ac.2 → 6.6.20-beta.0
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/index.js +25 -25
- package/index.mjs +31 -44
- package/modals/components/modal/modal.d.ts +2 -5
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -1956,47 +1956,49 @@ const Cr = ({ image: e, className: t, testId: n }) => {
|
|
|
1956
1956
|
description: r,
|
|
1957
1957
|
height: i,
|
|
1958
1958
|
type: a,
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1959
|
+
color: s,
|
|
1960
|
+
query: o,
|
|
1961
|
+
url: l,
|
|
1962
|
+
width: u,
|
|
1963
|
+
loading: d,
|
|
1964
|
+
decoding: m,
|
|
1965
|
+
fetchPriority: h
|
|
1966
|
+
} = e, { range: p, sizes: v } = Ah(e), f = Ba({ format: "avif", query: o, range: p, url: l }), b = Ba({ format: "webp", query: o, range: p, url: l }), g = Ba({ format: "", query: o, range: p, url: l });
|
|
1967
|
+
let y = {};
|
|
1968
|
+
return s && (y = { "--color": s }), a && a.includes("svg") ? /* @__PURE__ */ c.jsx("picture", { className: t, style: y, children: /* @__PURE__ */ c.jsx(
|
|
1967
1969
|
"img",
|
|
1968
1970
|
{
|
|
1969
|
-
src:
|
|
1971
|
+
src: l,
|
|
1970
1972
|
alt: r,
|
|
1971
|
-
loading:
|
|
1972
|
-
decoding:
|
|
1973
|
-
fetchpriority:
|
|
1974
|
-
width:
|
|
1973
|
+
loading: d || "lazy",
|
|
1974
|
+
decoding: m || "async",
|
|
1975
|
+
fetchpriority: h || "auto",
|
|
1976
|
+
width: u,
|
|
1975
1977
|
height: i,
|
|
1976
1978
|
"data-testid": n || "image"
|
|
1977
1979
|
}
|
|
1978
|
-
) }) : /* @__PURE__ */ c.jsxs("picture", { className: t, children: [
|
|
1980
|
+
) }) : /* @__PURE__ */ c.jsxs("picture", { className: t, style: y, children: [
|
|
1979
1981
|
a !== "image/gif" && /* @__PURE__ */ c.jsx(
|
|
1980
1982
|
"source",
|
|
1981
1983
|
{
|
|
1982
1984
|
type: "image/avif",
|
|
1983
|
-
srcSet:
|
|
1984
|
-
sizes:
|
|
1985
|
+
srcSet: f,
|
|
1986
|
+
sizes: v,
|
|
1985
1987
|
"data-testid": "source"
|
|
1986
1988
|
}
|
|
1987
1989
|
),
|
|
1988
|
-
/* @__PURE__ */ c.jsx("source", { type: "image/webp", srcSet:
|
|
1990
|
+
/* @__PURE__ */ c.jsx("source", { type: "image/webp", srcSet: b, sizes: v, "data-testid": "source" }),
|
|
1989
1991
|
/* @__PURE__ */ c.jsx(
|
|
1990
1992
|
"img",
|
|
1991
1993
|
{
|
|
1992
|
-
srcSet:
|
|
1993
|
-
sizes:
|
|
1994
|
-
src:
|
|
1994
|
+
srcSet: g,
|
|
1995
|
+
sizes: v,
|
|
1996
|
+
src: l,
|
|
1995
1997
|
alt: r,
|
|
1996
|
-
loading:
|
|
1997
|
-
decoding:
|
|
1998
|
-
fetchpriority:
|
|
1999
|
-
width:
|
|
1998
|
+
loading: d || "lazy",
|
|
1999
|
+
decoding: m || "async",
|
|
2000
|
+
fetchpriority: h || "auto",
|
|
2001
|
+
width: u,
|
|
2000
2002
|
height: i,
|
|
2001
2003
|
"data-testid": n || "image"
|
|
2002
2004
|
}
|
|
@@ -3215,26 +3217,11 @@ const Du = {
|
|
|
3215
3217
|
] })
|
|
3216
3218
|
});
|
|
3217
3219
|
};
|
|
3218
|
-
const Dd = ({
|
|
3219
|
-
|
|
3220
|
-
children: t,
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
additionalContent: i,
|
|
3224
|
-
...a
|
|
3225
|
-
}) => {
|
|
3226
|
-
let s = typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t;
|
|
3227
|
-
return i && (s = /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3228
|
-
/* @__PURE__ */ c.jsx("div", { className: "modal-content", children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t }),
|
|
3229
|
-
/* @__PURE__ */ c.jsx("div", { className: "modal-additional-content", children: typeof i == "string" ? /* @__PURE__ */ c.jsx("p", { children: i }) : i })
|
|
3230
|
-
] })), re.createElement(e, {
|
|
3231
|
-
className: V("modal", n, {
|
|
3232
|
-
success: r === "success"
|
|
3233
|
-
}),
|
|
3234
|
-
children: s,
|
|
3235
|
-
...a
|
|
3236
|
-
});
|
|
3237
|
-
};
|
|
3220
|
+
const Dd = ({ element: e = "section", children: t, className: n, ...r }) => re.createElement(e, {
|
|
3221
|
+
className: V("modal", n),
|
|
3222
|
+
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3223
|
+
...r
|
|
3224
|
+
});
|
|
3238
3225
|
var Ps = { exports: {} }, gi = { exports: {} }, He = {};
|
|
3239
3226
|
/** @license React v16.13.1
|
|
3240
3227
|
* react-is.production.min.js
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
/** The element that will render around the content */
|
|
4
4
|
element?: 'section' | 'div' | 'ul';
|
|
5
5
|
/** The content to display */
|
|
@@ -12,11 +12,8 @@ export interface IModalProps {
|
|
|
12
12
|
hidden?: boolean | string;
|
|
13
13
|
/** Optional styling */
|
|
14
14
|
style?: React.CSSProperties;
|
|
15
|
-
/** Optional variant */
|
|
16
|
-
variant?: 'success' | 'error';
|
|
17
|
-
additionalContent?: React.ReactNode | JSX.Element | string;
|
|
18
15
|
}
|
|
19
|
-
declare const Modal: ({ element, children, className,
|
|
16
|
+
declare const Modal: ({ element, children, className, ...props }: Props) => React.DOMElement<{
|
|
20
17
|
/** The ID of the element */
|
|
21
18
|
id?: string | undefined;
|
|
22
19
|
/** If the element should be hidden */
|