@planetaexo/design-system 0.94.0 → 0.95.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/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -12562,7 +12562,7 @@ function PhotoTile({
|
|
|
12562
12562
|
onClick,
|
|
12563
12563
|
showCredit = false
|
|
12564
12564
|
}) {
|
|
12565
|
-
var _a, _b;
|
|
12565
|
+
var _a, _b, _c;
|
|
12566
12566
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12567
12567
|
"button",
|
|
12568
12568
|
{
|
|
@@ -12577,8 +12577,8 @@ function PhotoTile({
|
|
|
12577
12577
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12578
12578
|
Picture,
|
|
12579
12579
|
{
|
|
12580
|
-
src: photo.src,
|
|
12581
|
-
alt: (
|
|
12580
|
+
src: (_b = photo.thumbSrc) != null ? _b : photo.src,
|
|
12581
|
+
alt: (_c = photo.alt) != null ? _c : `Photo ${index + 1}`,
|
|
12582
12582
|
title: photo.caption,
|
|
12583
12583
|
className: "w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",
|
|
12584
12584
|
loading: "lazy"
|
|
@@ -12695,7 +12695,7 @@ function MasonryGallery({
|
|
|
12695
12695
|
const visible = expanded || !hasMore ? photos : photos.slice(0, initialVisible);
|
|
12696
12696
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12697
12697
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "columns-2 sm:columns-3 gap-1 [&>*]:break-inside-avoid [&>*]:mb-1", children: visible.map((p, i) => {
|
|
12698
|
-
var _a, _b;
|
|
12698
|
+
var _a, _b, _c;
|
|
12699
12699
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12700
12700
|
"button",
|
|
12701
12701
|
{
|
|
@@ -12707,8 +12707,8 @@ function MasonryGallery({
|
|
|
12707
12707
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12708
12708
|
Picture,
|
|
12709
12709
|
{
|
|
12710
|
-
src: p.src,
|
|
12711
|
-
alt: (
|
|
12710
|
+
src: (_b = p.thumbSrc) != null ? _b : p.src,
|
|
12711
|
+
alt: (_c = p.alt) != null ? _c : `Photo ${i + 1}`,
|
|
12712
12712
|
title: p.caption,
|
|
12713
12713
|
className: "w-full h-auto object-cover transition-transform duration-700 group-hover:scale-105",
|
|
12714
12714
|
loading: "lazy"
|
|
@@ -12736,7 +12736,7 @@ function FilmstripGallery({
|
|
|
12736
12736
|
onOpen
|
|
12737
12737
|
}) {
|
|
12738
12738
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-x-auto flex gap-1 snap-x snap-mandatory pb-1 scrollbar-none", children: photos.map((p, i) => {
|
|
12739
|
-
var _a, _b;
|
|
12739
|
+
var _a, _b, _c;
|
|
12740
12740
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12741
12741
|
"button",
|
|
12742
12742
|
{
|
|
@@ -12748,8 +12748,8 @@ function FilmstripGallery({
|
|
|
12748
12748
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12749
12749
|
Picture,
|
|
12750
12750
|
{
|
|
12751
|
-
src: p.src,
|
|
12752
|
-
alt: (
|
|
12751
|
+
src: (_b = p.thumbSrc) != null ? _b : p.src,
|
|
12752
|
+
alt: (_c = p.alt) != null ? _c : `Photo ${i + 1}`,
|
|
12753
12753
|
title: p.caption,
|
|
12754
12754
|
className: "h-full w-full object-cover transition-transform duration-700 group-hover:scale-105",
|
|
12755
12755
|
loading: "lazy"
|
|
@@ -12803,7 +12803,7 @@ function FeaturedGallery({
|
|
|
12803
12803
|
] })
|
|
12804
12804
|
] }),
|
|
12805
12805
|
expanded && extra.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-1.5 overflow-x-auto flex gap-1.5 snap-x snap-mandatory scrollbar-none rounded-xl overflow-hidden pb-0", children: extra.map((p, i) => {
|
|
12806
|
-
var _a, _b;
|
|
12806
|
+
var _a, _b, _c;
|
|
12807
12807
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
12808
12808
|
"button",
|
|
12809
12809
|
{
|
|
@@ -12815,8 +12815,8 @@ function FeaturedGallery({
|
|
|
12815
12815
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12816
12816
|
Picture,
|
|
12817
12817
|
{
|
|
12818
|
-
src: p.src,
|
|
12819
|
-
alt: (
|
|
12818
|
+
src: (_b = p.thumbSrc) != null ? _b : p.src,
|
|
12819
|
+
alt: (_c = p.alt) != null ? _c : `Photo ${i + 4}`,
|
|
12820
12820
|
title: p.caption,
|
|
12821
12821
|
className: "h-full w-full object-cover transition-transform duration-700 group-hover:scale-105",
|
|
12822
12822
|
loading: "lazy"
|