@planetaexo/design-system 0.3.6 → 0.3.9
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 +171 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +252 -21
- package/dist/index.d.ts +252 -21
- package/dist/index.js +171 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6432,6 +6432,7 @@ function PaymentModalShell({
|
|
|
6432
6432
|
closeLabel = "Cancel",
|
|
6433
6433
|
closeDisabled,
|
|
6434
6434
|
children,
|
|
6435
|
+
error,
|
|
6435
6436
|
className
|
|
6436
6437
|
}) {
|
|
6437
6438
|
if (!open) return null;
|
|
@@ -6467,6 +6468,7 @@ function PaymentModalShell({
|
|
|
6467
6468
|
"#",
|
|
6468
6469
|
bookingRef
|
|
6469
6470
|
] }),
|
|
6471
|
+
error && /* @__PURE__ */ jsx(Alert, { variant: "error", className: "mt-3", children: error }),
|
|
6470
6472
|
busy ? /* @__PURE__ */ jsxs("div", { className: "mt-8 flex flex-col items-center gap-4 py-6", children: [
|
|
6471
6473
|
/* @__PURE__ */ jsx("span", { className: "h-10 w-10 animate-spin rounded-full border-2 border-primary/30 border-t-primary" }),
|
|
6472
6474
|
busyMessage && /* @__PURE__ */ jsx("p", { className: "text-center text-sm text-muted-foreground font-sans", children: busyMessage })
|
|
@@ -6479,23 +6481,178 @@ function PaymentModalShell({
|
|
|
6479
6481
|
}
|
|
6480
6482
|
|
|
6481
6483
|
// src/lib/stripeAppearance.ts
|
|
6482
|
-
var
|
|
6483
|
-
theme: "
|
|
6484
|
+
var LIGHT = {
|
|
6485
|
+
theme: "none",
|
|
6486
|
+
variables: {
|
|
6487
|
+
// Primary — #47bca9 (brand teal)
|
|
6488
|
+
colorPrimary: "#47bca9",
|
|
6489
|
+
// Backgrounds — --card (#ffffff), --background (#fefefe)
|
|
6490
|
+
colorBackground: "#ffffff",
|
|
6491
|
+
// Text — --foreground (#2e2d2c charcoal)
|
|
6492
|
+
colorText: "#2e2d2c",
|
|
6493
|
+
// Placeholder / muted — --muted-foreground (~#787776)
|
|
6494
|
+
colorTextPlaceholder: "#787776",
|
|
6495
|
+
// Icons
|
|
6496
|
+
colorIcon: "#787776",
|
|
6497
|
+
colorIconTab: "#787776",
|
|
6498
|
+
colorIconTabSelected: "#47bca9",
|
|
6499
|
+
colorIconTabHover: "#2e2d2c",
|
|
6500
|
+
// Danger — --destructive (#ef4444)
|
|
6501
|
+
colorDanger: "#ef4444",
|
|
6502
|
+
// Border radius — --radius (0.5rem = 8px)
|
|
6503
|
+
borderRadius: "8px",
|
|
6504
|
+
// Font — herda do host
|
|
6505
|
+
fontFamily: "inherit"
|
|
6506
|
+
},
|
|
6507
|
+
rules: {
|
|
6508
|
+
".Input": {
|
|
6509
|
+
border: "1px solid #e3eeeb",
|
|
6510
|
+
// --border light
|
|
6511
|
+
borderRadius: "8px",
|
|
6512
|
+
padding: "10px 12px",
|
|
6513
|
+
boxShadow: "none",
|
|
6514
|
+
backgroundColor: "#ffffff",
|
|
6515
|
+
color: "#2e2d2c",
|
|
6516
|
+
fontSize: "14px",
|
|
6517
|
+
lineHeight: "1.5"
|
|
6518
|
+
},
|
|
6519
|
+
".Input:focus": {
|
|
6520
|
+
border: "1px solid #47bca9",
|
|
6521
|
+
// --primary
|
|
6522
|
+
boxShadow: "0 0 0 2px rgba(71,188,169,0.20)",
|
|
6523
|
+
outline: "none"
|
|
6524
|
+
},
|
|
6525
|
+
".Input--invalid": {
|
|
6526
|
+
border: "1px solid #ef4444",
|
|
6527
|
+
boxShadow: "0 0 0 2px rgba(239,68,68,0.15)"
|
|
6528
|
+
},
|
|
6529
|
+
".Label": {
|
|
6530
|
+
color: "#787776",
|
|
6531
|
+
// --muted-foreground
|
|
6532
|
+
fontSize: "12px",
|
|
6533
|
+
fontWeight: "500",
|
|
6534
|
+
marginBottom: "4px"
|
|
6535
|
+
},
|
|
6536
|
+
".Error": {
|
|
6537
|
+
color: "#ef4444",
|
|
6538
|
+
fontSize: "12px"
|
|
6539
|
+
},
|
|
6540
|
+
".Tab": {
|
|
6541
|
+
border: "1px solid #e3eeeb",
|
|
6542
|
+
borderRadius: "8px",
|
|
6543
|
+
boxShadow: "none",
|
|
6544
|
+
backgroundColor: "#ffffff",
|
|
6545
|
+
color: "#787776"
|
|
6546
|
+
},
|
|
6547
|
+
".Tab:hover": {
|
|
6548
|
+
color: "#2e2d2c",
|
|
6549
|
+
border: "1px solid #47bca9"
|
|
6550
|
+
},
|
|
6551
|
+
".Tab--selected": {
|
|
6552
|
+
border: "1px solid #47bca9",
|
|
6553
|
+
backgroundColor: "rgba(71,188,169,0.08)",
|
|
6554
|
+
color: "#2e2d2c",
|
|
6555
|
+
boxShadow: "none"
|
|
6556
|
+
},
|
|
6557
|
+
".TabLabel--selected": {
|
|
6558
|
+
color: "#2e2d2c"
|
|
6559
|
+
},
|
|
6560
|
+
".TabIcon--selected": {
|
|
6561
|
+
fill: "#47bca9"
|
|
6562
|
+
},
|
|
6563
|
+
".Block": {
|
|
6564
|
+
borderRadius: "8px",
|
|
6565
|
+
backgroundColor: "#f3f7f6",
|
|
6566
|
+
// --muted
|
|
6567
|
+
border: "1px solid #e3eeeb"
|
|
6568
|
+
}
|
|
6569
|
+
}
|
|
6570
|
+
};
|
|
6571
|
+
var DARK = {
|
|
6572
|
+
theme: "none",
|
|
6484
6573
|
variables: {
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6574
|
+
colorPrimary: "#5dc9b5",
|
|
6575
|
+
// --primary dark (lightened)
|
|
6576
|
+
colorBackground: "#282726",
|
|
6577
|
+
// --card dark
|
|
6578
|
+
colorText: "#f4f8f7",
|
|
6579
|
+
// --foreground dark
|
|
6580
|
+
colorTextPlaceholder: "#999693",
|
|
6581
|
+
// --muted-foreground dark
|
|
6582
|
+
colorIcon: "#999693",
|
|
6583
|
+
colorIconTab: "#999693",
|
|
6584
|
+
colorIconTabSelected: "#5dc9b5",
|
|
6585
|
+
colorIconTabHover: "#f4f8f7",
|
|
6586
|
+
colorDanger: "#ef4444",
|
|
6488
6587
|
borderRadius: "8px",
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6588
|
+
fontFamily: "inherit"
|
|
6589
|
+
},
|
|
6590
|
+
rules: {
|
|
6591
|
+
".Input": {
|
|
6592
|
+
border: "1px solid rgba(255,255,255,0.10)",
|
|
6593
|
+
// --border dark
|
|
6594
|
+
borderRadius: "8px",
|
|
6595
|
+
padding: "10px 12px",
|
|
6596
|
+
boxShadow: "none",
|
|
6597
|
+
backgroundColor: "#282726",
|
|
6598
|
+
color: "#f4f8f7",
|
|
6599
|
+
fontSize: "14px",
|
|
6600
|
+
lineHeight: "1.5"
|
|
6601
|
+
},
|
|
6602
|
+
".Input:focus": {
|
|
6603
|
+
border: "1px solid #5dc9b5",
|
|
6604
|
+
boxShadow: "0 0 0 2px rgba(93,201,181,0.20)",
|
|
6605
|
+
outline: "none"
|
|
6606
|
+
},
|
|
6607
|
+
".Input--invalid": {
|
|
6608
|
+
border: "1px solid #ef4444",
|
|
6609
|
+
boxShadow: "0 0 0 2px rgba(239,68,68,0.15)"
|
|
6610
|
+
},
|
|
6611
|
+
".Label": {
|
|
6612
|
+
color: "#999693",
|
|
6613
|
+
fontSize: "12px",
|
|
6614
|
+
fontWeight: "500",
|
|
6615
|
+
marginBottom: "4px"
|
|
6616
|
+
},
|
|
6617
|
+
".Error": {
|
|
6618
|
+
color: "#ef4444",
|
|
6619
|
+
fontSize: "12px"
|
|
6620
|
+
},
|
|
6621
|
+
".Tab": {
|
|
6622
|
+
border: "1px solid rgba(255,255,255,0.10)",
|
|
6623
|
+
borderRadius: "8px",
|
|
6624
|
+
boxShadow: "none",
|
|
6625
|
+
backgroundColor: "#282726",
|
|
6626
|
+
color: "#999693"
|
|
6627
|
+
},
|
|
6628
|
+
".Tab:hover": {
|
|
6629
|
+
color: "#f4f8f7",
|
|
6630
|
+
border: "1px solid #5dc9b5"
|
|
6631
|
+
},
|
|
6632
|
+
".Tab--selected": {
|
|
6633
|
+
border: "1px solid #5dc9b5",
|
|
6634
|
+
backgroundColor: "rgba(93,201,181,0.10)",
|
|
6635
|
+
color: "#f4f8f7",
|
|
6636
|
+
boxShadow: "none"
|
|
6637
|
+
},
|
|
6638
|
+
".TabLabel--selected": {
|
|
6639
|
+
color: "#f4f8f7"
|
|
6640
|
+
},
|
|
6641
|
+
".TabIcon--selected": {
|
|
6642
|
+
fill: "#5dc9b5"
|
|
6643
|
+
},
|
|
6644
|
+
".Block": {
|
|
6645
|
+
borderRadius: "8px",
|
|
6646
|
+
backgroundColor: "#1e1d1c",
|
|
6647
|
+
// --background dark
|
|
6648
|
+
border: "1px solid rgba(255,255,255,0.10)"
|
|
6649
|
+
}
|
|
6497
6650
|
}
|
|
6498
6651
|
};
|
|
6652
|
+
function getStripeAppearance(isDark = false) {
|
|
6653
|
+
return isDark ? DARK : LIGHT;
|
|
6654
|
+
}
|
|
6655
|
+
var stripeAppearance = LIGHT;
|
|
6499
6656
|
function Input(_a) {
|
|
6500
6657
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
6501
6658
|
return /* @__PURE__ */ jsx(
|
|
@@ -6859,6 +7016,6 @@ function LeadCapturePopup({
|
|
|
6859
7016
|
);
|
|
6860
7017
|
}
|
|
6861
7018
|
|
|
6862
|
-
export { ActivityCard, Alert, BookingConfirmation, BookingConfirmationEmail, BookingDetails, BookingForm, BookingShell, COUNTRIES, CounterField, CountrySearchField, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, FilterPanel, FloatingInput, FloatingSelect, Itinerary, LeadCapturePopup, MenuTrip, Offer, OfferAdventureCard, PaymentAmountSelector, PaymentMethodSelector, PaymentModalShell, PhoneCountrySelect, PhotoGallery, PricingTrip, SiteHeader, TermsSection, ThemeToggle, TripCard, TripHeader, TripPage, cn, stripeAppearance };
|
|
7019
|
+
export { ActivityCard, Alert, BookingConfirmation, BookingConfirmationEmail, BookingDetails, BookingForm, BookingShell, COUNTRIES, CounterField, CountrySearchField, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, FilterPanel, FloatingInput, FloatingSelect, Itinerary, LeadCapturePopup, MenuTrip, Offer, OfferAdventureCard, PaymentAmountSelector, PaymentMethodSelector, PaymentModalShell, PhoneCountrySelect, PhotoGallery, PricingTrip, SiteHeader, TermsSection, ThemeToggle, TripCard, TripHeader, TripPage, cn, getStripeAppearance, stripeAppearance };
|
|
6863
7020
|
//# sourceMappingURL=index.js.map
|
|
6864
7021
|
//# sourceMappingURL=index.js.map
|