@planetaexo/design-system 0.78.0 → 0.79.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 +162 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +162 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19255,6 +19255,167 @@ function USP({
|
|
|
19255
19255
|
)
|
|
19256
19256
|
] }) });
|
|
19257
19257
|
}
|
|
19258
|
+
var C = {
|
|
19259
|
+
imageOverlay: "linear-gradient(90deg, rgba(7,33,27,.93) 0%, rgba(8,42,34,.82) 52%, rgba(8,42,34,.62) 100%)",
|
|
19260
|
+
baseBg: "#0a2c25",
|
|
19261
|
+
eyebrow: "#a7e8c4",
|
|
19262
|
+
head: "#f4f1e9",
|
|
19263
|
+
sub: "rgba(244,241,233,.78)",
|
|
19264
|
+
desc: "rgba(244,241,233,.72)",
|
|
19265
|
+
divider: "rgba(244,241,233,.16)",
|
|
19266
|
+
chipBg: "rgba(167,232,196,.16)",
|
|
19267
|
+
chipIcon: "#bff0d6",
|
|
19268
|
+
ctaBg: "#bff0d6",
|
|
19269
|
+
ctaText: "#08231e"
|
|
19270
|
+
};
|
|
19271
|
+
var COLS2 = {
|
|
19272
|
+
2: "sm:grid-cols-2",
|
|
19273
|
+
3: "sm:grid-cols-2 lg:grid-cols-3",
|
|
19274
|
+
4: "sm:grid-cols-2 lg:grid-cols-4"
|
|
19275
|
+
};
|
|
19276
|
+
var ArrowIcon3 = () => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19277
|
+
"svg",
|
|
19278
|
+
{
|
|
19279
|
+
viewBox: "0 0 24 24",
|
|
19280
|
+
width: "18",
|
|
19281
|
+
height: "18",
|
|
19282
|
+
fill: "none",
|
|
19283
|
+
stroke: "currentColor",
|
|
19284
|
+
strokeWidth: 2,
|
|
19285
|
+
strokeLinecap: "round",
|
|
19286
|
+
strokeLinejoin: "round",
|
|
19287
|
+
"aria-hidden": true,
|
|
19288
|
+
className: "ml-2",
|
|
19289
|
+
children: [
|
|
19290
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 12h14" }),
|
|
19291
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m12 5 7 7-7 7" })
|
|
19292
|
+
]
|
|
19293
|
+
}
|
|
19294
|
+
);
|
|
19295
|
+
function USPBand({
|
|
19296
|
+
eyebrow,
|
|
19297
|
+
heading,
|
|
19298
|
+
subheading,
|
|
19299
|
+
items,
|
|
19300
|
+
imageSrc,
|
|
19301
|
+
cta,
|
|
19302
|
+
columns,
|
|
19303
|
+
className
|
|
19304
|
+
}) {
|
|
19305
|
+
const cols = columns != null ? columns : Math.min(Math.max(items.length, 2), 4);
|
|
19306
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19307
|
+
"section",
|
|
19308
|
+
{
|
|
19309
|
+
className: cn("relative w-full overflow-hidden", className),
|
|
19310
|
+
style: { backgroundColor: C.baseBg },
|
|
19311
|
+
children: [
|
|
19312
|
+
imageSrc && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
19313
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19314
|
+
"img",
|
|
19315
|
+
{
|
|
19316
|
+
src: imageSrc,
|
|
19317
|
+
alt: "",
|
|
19318
|
+
"aria-hidden": true,
|
|
19319
|
+
loading: "lazy",
|
|
19320
|
+
decoding: "async",
|
|
19321
|
+
className: "absolute inset-0 h-full w-full object-cover"
|
|
19322
|
+
}
|
|
19323
|
+
),
|
|
19324
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19325
|
+
"div",
|
|
19326
|
+
{
|
|
19327
|
+
"aria-hidden": true,
|
|
19328
|
+
className: "absolute inset-0",
|
|
19329
|
+
style: { background: C.imageOverlay }
|
|
19330
|
+
}
|
|
19331
|
+
)
|
|
19332
|
+
] }),
|
|
19333
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative mx-auto w-full max-w-6xl px-6 py-20 sm:px-8 sm:py-24", children: [
|
|
19334
|
+
eyebrow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
19335
|
+
"p",
|
|
19336
|
+
{
|
|
19337
|
+
className: "font-heading text-xs font-bold uppercase tracking-[0.2em]",
|
|
19338
|
+
style: { color: C.eyebrow },
|
|
19339
|
+
children: eyebrow
|
|
19340
|
+
}
|
|
19341
|
+
),
|
|
19342
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19343
|
+
"h2",
|
|
19344
|
+
{
|
|
19345
|
+
className: "mt-4 max-w-[15ch] font-heading text-3xl font-black uppercase leading-[0.98] tracking-tight sm:text-4xl lg:text-5xl",
|
|
19346
|
+
style: { color: C.head },
|
|
19347
|
+
children: heading
|
|
19348
|
+
}
|
|
19349
|
+
),
|
|
19350
|
+
subheading && /* @__PURE__ */ jsxRuntime.jsx(
|
|
19351
|
+
"p",
|
|
19352
|
+
{
|
|
19353
|
+
className: "mt-4 max-w-[52ch] font-sans text-lg leading-relaxed",
|
|
19354
|
+
style: { color: C.sub },
|
|
19355
|
+
children: subheading
|
|
19356
|
+
}
|
|
19357
|
+
),
|
|
19358
|
+
cta && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19359
|
+
"a",
|
|
19360
|
+
{
|
|
19361
|
+
href: cta.href,
|
|
19362
|
+
onClick: cta.onClick,
|
|
19363
|
+
className: "mt-7 inline-flex items-center rounded-full px-6 py-3 font-heading text-sm font-bold uppercase tracking-wide no-underline transition-transform duration-200 hover:-translate-y-0.5",
|
|
19364
|
+
style: { backgroundColor: C.ctaBg, color: C.ctaText },
|
|
19365
|
+
children: [
|
|
19366
|
+
cta.label,
|
|
19367
|
+
/* @__PURE__ */ jsxRuntime.jsx(ArrowIcon3, {})
|
|
19368
|
+
]
|
|
19369
|
+
}
|
|
19370
|
+
),
|
|
19371
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19372
|
+
"div",
|
|
19373
|
+
{
|
|
19374
|
+
className: cn(
|
|
19375
|
+
"mt-14 grid grid-cols-1 gap-x-8 gap-y-10 lg:gap-x-0",
|
|
19376
|
+
COLS2[cols]
|
|
19377
|
+
),
|
|
19378
|
+
children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19379
|
+
"div",
|
|
19380
|
+
{
|
|
19381
|
+
className: "lg:px-7 lg:[&:first-child]:pl-0 lg:[&:not(:first-child)]:border-l lg:[&:not(:first-child)]:border-solid",
|
|
19382
|
+
style: { borderColor: C.divider },
|
|
19383
|
+
children: [
|
|
19384
|
+
item.icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
19385
|
+
"span",
|
|
19386
|
+
{
|
|
19387
|
+
className: "mb-5 flex h-[54px] w-[54px] items-center justify-center rounded-full [&>svg]:size-6",
|
|
19388
|
+
style: { backgroundColor: C.chipBg, color: C.chipIcon },
|
|
19389
|
+
children: item.icon
|
|
19390
|
+
}
|
|
19391
|
+
),
|
|
19392
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19393
|
+
"h3",
|
|
19394
|
+
{
|
|
19395
|
+
className: "font-heading text-lg font-bold leading-snug",
|
|
19396
|
+
style: { color: C.head },
|
|
19397
|
+
children: item.title
|
|
19398
|
+
}
|
|
19399
|
+
),
|
|
19400
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19401
|
+
"p",
|
|
19402
|
+
{
|
|
19403
|
+
className: "mt-3 font-sans text-[15px] leading-relaxed",
|
|
19404
|
+
style: { color: C.desc },
|
|
19405
|
+
children: item.description
|
|
19406
|
+
}
|
|
19407
|
+
)
|
|
19408
|
+
]
|
|
19409
|
+
},
|
|
19410
|
+
i
|
|
19411
|
+
))
|
|
19412
|
+
}
|
|
19413
|
+
)
|
|
19414
|
+
] })
|
|
19415
|
+
]
|
|
19416
|
+
}
|
|
19417
|
+
);
|
|
19418
|
+
}
|
|
19258
19419
|
function RotatingSubtitle({
|
|
19259
19420
|
phrases,
|
|
19260
19421
|
interval,
|
|
@@ -19975,6 +20136,7 @@ exports.TripHeader = TripHeader;
|
|
|
19975
20136
|
exports.TripPage = TripPage;
|
|
19976
20137
|
exports.TrustpilotEmbed = TrustpilotEmbed;
|
|
19977
20138
|
exports.USP = USP;
|
|
20139
|
+
exports.USPBand = USPBand;
|
|
19978
20140
|
exports.buttonVariants = buttonVariants;
|
|
19979
20141
|
exports.chipVariants = chipVariants;
|
|
19980
20142
|
exports.cn = cn;
|