@purpurds/drawer 5.35.0 → 6.0.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/LICENSE.txt +3 -3
- package/dist/drawer.cjs.js +1 -1
- package/dist/drawer.cjs.js.map +1 -1
- package/dist/drawer.es.js +21 -33
- package/dist/drawer.es.js.map +1 -1
- package/package.json +6 -6
- package/src/drawer-header.tsx +2 -2
package/dist/drawer.es.js
CHANGED
|
@@ -1833,52 +1833,26 @@ const Oo = /* @__PURE__ */ Do(No), Lo = {
|
|
|
1833
1833
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
1834
1834
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
1835
1835
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
1836
|
-
}, Ro = {
|
|
1837
|
-
name: "arrow-left",
|
|
1838
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',
|
|
1839
|
-
keywords: ["arrow-left"],
|
|
1840
|
-
category: "utility"
|
|
1841
|
-
}, Mo = {
|
|
1842
|
-
name: "close",
|
|
1843
|
-
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
1844
|
-
keywords: ["close"],
|
|
1845
|
-
category: "utility"
|
|
1846
|
-
}, Kt = (e) => /* @__PURE__ */ _(
|
|
1847
|
-
rt,
|
|
1848
|
-
{
|
|
1849
|
-
...e,
|
|
1850
|
-
svg: Ro
|
|
1851
|
-
}
|
|
1852
|
-
);
|
|
1853
|
-
Kt.displayName = "IconArrowLeft";
|
|
1854
|
-
const Gt = (e) => /* @__PURE__ */ _(
|
|
1855
|
-
rt,
|
|
1856
|
-
{
|
|
1857
|
-
...e,
|
|
1858
|
-
svg: Mo
|
|
1859
|
-
}
|
|
1860
|
-
);
|
|
1861
|
-
Gt.displayName = "IconClose";
|
|
1862
|
-
const Io = Oo.bind(Lo), $t = "purpur-icon", ko = "md", Fo = (e) => e.filter((r) => Object.keys(r).length >= 1).map((r) => `${r.name}="${r.value}"`).join(" "), jo = ({ content: e = "", title: r } = {}) => {
|
|
1836
|
+
}, Ro = Oo.bind(Lo), $t = "purpur-icon", Mo = "md", Io = (e) => e.filter((r) => Object.keys(r).length >= 1).map((r) => `${r.name}="${r.value}"`).join(" "), ko = ({ content: e = "", title: r } = {}) => {
|
|
1863
1837
|
const t = [
|
|
1864
1838
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
1865
1839
|
{ name: "fill", value: "currentColor" },
|
|
1866
1840
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
1867
1841
|
r ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
1868
1842
|
], o = r ? `<title>${r}</title>` : "";
|
|
1869
|
-
return `<svg ${
|
|
1870
|
-
},
|
|
1843
|
+
return `<svg ${Io(t)}>${o}${e}</svg>`;
|
|
1844
|
+
}, Fo = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim(), rt = ({
|
|
1871
1845
|
["data-testid"]: e,
|
|
1872
1846
|
svg: r,
|
|
1873
1847
|
allyTitle: t,
|
|
1874
1848
|
className: o,
|
|
1875
|
-
size: a =
|
|
1849
|
+
size: a = Mo,
|
|
1876
1850
|
...n
|
|
1877
1851
|
}) => {
|
|
1878
|
-
const i =
|
|
1879
|
-
content:
|
|
1852
|
+
const i = ko({
|
|
1853
|
+
content: Fo(r.svg),
|
|
1880
1854
|
title: t
|
|
1881
|
-
}), c =
|
|
1855
|
+
}), c = Ro(o, $t, `${$t}--${a}`);
|
|
1882
1856
|
return /* @__PURE__ */ _(
|
|
1883
1857
|
"span",
|
|
1884
1858
|
{
|
|
@@ -1891,6 +1865,20 @@ const Io = Oo.bind(Lo), $t = "purpur-icon", ko = "md", Fo = (e) => e.filter((r)
|
|
|
1891
1865
|
);
|
|
1892
1866
|
};
|
|
1893
1867
|
rt.displayName = "Icon";
|
|
1868
|
+
const jo = {
|
|
1869
|
+
name: "arrow-left",
|
|
1870
|
+
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',
|
|
1871
|
+
keywords: ["arrow-left"],
|
|
1872
|
+
category: "utility"
|
|
1873
|
+
}, Kt = (e) => /* @__PURE__ */ _(rt, { ...e, svg: jo });
|
|
1874
|
+
Kt.displayName = "IconArrowLeft";
|
|
1875
|
+
const zo = {
|
|
1876
|
+
name: "close",
|
|
1877
|
+
svg: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.864 4.864a.9.9 0 0 1 1.273 0L12 10.727l5.864-5.863a.9.9 0 0 1 1.272 1.272L13.273 12l5.863 5.864a.9.9 0 1 1-1.272 1.272L12 13.273l-5.863 5.863a.9.9 0 0 1-1.273-1.272L10.727 12 4.864 6.136a.9.9 0 0 1 0-1.272Z" clip-rule="evenodd"/></svg>',
|
|
1878
|
+
keywords: ["close"],
|
|
1879
|
+
category: "utility"
|
|
1880
|
+
}, Gt = (e) => /* @__PURE__ */ _(rt, { ...e, svg: zo });
|
|
1881
|
+
Gt.displayName = "IconClose";
|
|
1894
1882
|
const Wo = {
|
|
1895
1883
|
"purpur-drawer-header__row": "_purpur-drawer-header__row_1yg5w_1",
|
|
1896
1884
|
"purpur-drawer-header__row--with-back-button": "_purpur-drawer-header__row--with-back-button_1yg5w_6",
|