@planetaexo/design-system 0.79.0 → 0.80.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 CHANGED
@@ -19416,6 +19416,159 @@ function USPBand({
19416
19416
  }
19417
19417
  );
19418
19418
  }
19419
+ var TONES = {
19420
+ light: {
19421
+ bg: "#faf7f1",
19422
+ vars: {
19423
+ "--ps-eyebrow": "#1a5f56",
19424
+ "--ps-head": "#2e2d2c",
19425
+ "--ps-sub": "#74726e",
19426
+ "--ps-chip-bd": "#ccd2d0",
19427
+ "--ps-chip-fg": "#2e2d2c",
19428
+ "--ps-chip-hover-bg": "#1a5f56",
19429
+ "--ps-chip-hover-fg": "#ffffff",
19430
+ "--ps-feat-bg": "#1a5f56",
19431
+ "--ps-feat-fg": "#ffffff",
19432
+ "--ps-feat-hover-bg": "#0d3832"
19433
+ }
19434
+ },
19435
+ dark: {
19436
+ bg: "#14352e",
19437
+ vars: {
19438
+ "--ps-eyebrow": "#a7e8c4",
19439
+ "--ps-head": "#f4f1e9",
19440
+ "--ps-sub": "rgba(244,241,233,.7)",
19441
+ "--ps-chip-bd": "rgba(244,241,233,.22)",
19442
+ "--ps-chip-fg": "#f4f1e9",
19443
+ "--ps-chip-hover-bg": "#f4f1e9",
19444
+ "--ps-chip-hover-fg": "#14352e",
19445
+ "--ps-feat-bg": "#bff0d6",
19446
+ "--ps-feat-fg": "#08231e",
19447
+ "--ps-feat-hover-bg": "#a7e8c4"
19448
+ }
19449
+ }
19450
+ };
19451
+ var SIZES = {
19452
+ md: {
19453
+ pad: "py-20 sm:py-28",
19454
+ heading: "text-2xl sm:text-3xl lg:text-4xl",
19455
+ chip: "px-5 py-2.5 text-sm",
19456
+ gap: "gap-2.5",
19457
+ chipsMt: "mt-9"
19458
+ },
19459
+ sm: {
19460
+ pad: "py-16 sm:py-24",
19461
+ heading: "text-xl sm:text-2xl lg:text-3xl",
19462
+ chip: "px-3.5 py-1.5 text-[13px]",
19463
+ gap: "gap-2",
19464
+ chipsMt: "mt-7"
19465
+ }
19466
+ };
19467
+ var SCOPED_CSS = `
19468
+ .ps-chip{border:1px solid var(--ps-chip-bd);background:transparent;color:var(--ps-chip-fg);text-decoration:none;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
19469
+ .ps-chip:hover{background:var(--ps-chip-hover-bg);border-color:var(--ps-chip-hover-bg);color:var(--ps-chip-hover-fg)}
19470
+ .ps-chip[data-featured="true"]{background:var(--ps-feat-bg);border-color:var(--ps-feat-bg);color:var(--ps-feat-fg)}
19471
+ .ps-chip[data-featured="true"]:hover{background:var(--ps-feat-hover-bg);border-color:var(--ps-feat-hover-bg)}
19472
+ `;
19473
+ function PopularSearches({
19474
+ eyebrow,
19475
+ title,
19476
+ subtitle,
19477
+ chips,
19478
+ tone = "light",
19479
+ size = "md",
19480
+ align = "center",
19481
+ className
19482
+ }) {
19483
+ const t = TONES[tone];
19484
+ const s = SIZES[size];
19485
+ const centered = align === "center";
19486
+ return /* @__PURE__ */ jsxRuntime.jsxs(
19487
+ "section",
19488
+ {
19489
+ className: cn("ps-root w-full", className),
19490
+ style: __spreadValues({ backgroundColor: t.bg }, t.vars),
19491
+ children: [
19492
+ /* @__PURE__ */ jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: SCOPED_CSS } }),
19493
+ /* @__PURE__ */ jsxRuntime.jsxs(
19494
+ "div",
19495
+ {
19496
+ className: cn(
19497
+ "mx-auto w-full max-w-6xl px-6 sm:px-8",
19498
+ s.pad,
19499
+ centered && "text-center"
19500
+ ),
19501
+ children: [
19502
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("max-w-2xl", centered && "mx-auto"), children: [
19503
+ eyebrow && /* @__PURE__ */ jsxRuntime.jsx(
19504
+ "p",
19505
+ {
19506
+ className: "mb-3 font-ui text-xs font-bold uppercase tracking-[0.24em]",
19507
+ style: { color: "var(--ps-eyebrow)" },
19508
+ children: eyebrow
19509
+ }
19510
+ ),
19511
+ /* @__PURE__ */ jsxRuntime.jsx(
19512
+ "h2",
19513
+ {
19514
+ className: cn(
19515
+ "font-heading font-black uppercase leading-[1.05]",
19516
+ s.heading
19517
+ ),
19518
+ style: { color: "var(--ps-head)" },
19519
+ children: title
19520
+ }
19521
+ ),
19522
+ subtitle && /* @__PURE__ */ jsxRuntime.jsx(
19523
+ "p",
19524
+ {
19525
+ className: cn("mt-3 max-w-[46ch] text-base", centered && "mx-auto"),
19526
+ style: { color: "var(--ps-sub)" },
19527
+ children: subtitle
19528
+ }
19529
+ )
19530
+ ] }),
19531
+ /* @__PURE__ */ jsxRuntime.jsx(
19532
+ "div",
19533
+ {
19534
+ className: cn(
19535
+ "flex max-w-4xl flex-wrap items-center",
19536
+ s.gap,
19537
+ s.chipsMt,
19538
+ centered ? "mx-auto justify-center" : "justify-start"
19539
+ ),
19540
+ children: chips.map((chip, i) => {
19541
+ const className2 = "ps-chip inline-flex items-center rounded-full font-ui font-bold " + s.chip;
19542
+ const inner = chip.label;
19543
+ return chip.href ? /* @__PURE__ */ jsxRuntime.jsx(
19544
+ "a",
19545
+ {
19546
+ href: chip.href,
19547
+ onClick: chip.onClick,
19548
+ "data-featured": chip.featured ? "true" : void 0,
19549
+ className: className2,
19550
+ children: inner
19551
+ },
19552
+ i
19553
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
19554
+ "span",
19555
+ {
19556
+ "data-featured": chip.featured ? "true" : void 0,
19557
+ className: className2,
19558
+ children: inner
19559
+ },
19560
+ i
19561
+ );
19562
+ })
19563
+ }
19564
+ )
19565
+ ]
19566
+ }
19567
+ )
19568
+ ]
19569
+ }
19570
+ );
19571
+ }
19419
19572
  function RotatingSubtitle({
19420
19573
  phrases,
19421
19574
  interval,
@@ -20111,6 +20264,7 @@ exports.PhoneCountrySelect = PhoneCountrySelect;
20111
20264
  exports.PhotoGallery = PhotoGallery;
20112
20265
  exports.PhotoTourProvider = PhotoTourProvider;
20113
20266
  exports.Picture = Picture;
20267
+ exports.PopularSearches = PopularSearches;
20114
20268
  exports.PriceProgress = PriceProgress;
20115
20269
  exports.PricingMatrixCard = PricingMatrixCard;
20116
20270
  exports.PricingTrip = PricingTrip;