@planetaexo/design-system 0.3.5 → 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 +178 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +263 -3
- package/dist/index.d.ts +263 -3
- package/dist/index.js +177 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6453,6 +6453,7 @@ function PaymentModalShell({
|
|
|
6453
6453
|
closeLabel = "Cancel",
|
|
6454
6454
|
closeDisabled,
|
|
6455
6455
|
children,
|
|
6456
|
+
error,
|
|
6456
6457
|
className
|
|
6457
6458
|
}) {
|
|
6458
6459
|
if (!open) return null;
|
|
@@ -6488,6 +6489,7 @@ function PaymentModalShell({
|
|
|
6488
6489
|
"#",
|
|
6489
6490
|
bookingRef
|
|
6490
6491
|
] }),
|
|
6492
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(Alert, { variant: "error", className: "mt-3", children: error }),
|
|
6491
6493
|
busy ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 flex flex-col items-center gap-4 py-6", children: [
|
|
6492
6494
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "h-10 w-10 animate-spin rounded-full border-2 border-primary/30 border-t-primary" }),
|
|
6493
6495
|
busyMessage && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-sm text-muted-foreground font-sans", children: busyMessage })
|
|
@@ -6498,6 +6500,180 @@ function PaymentModalShell({
|
|
|
6498
6500
|
}
|
|
6499
6501
|
);
|
|
6500
6502
|
}
|
|
6503
|
+
|
|
6504
|
+
// src/lib/stripeAppearance.ts
|
|
6505
|
+
var LIGHT = {
|
|
6506
|
+
theme: "none",
|
|
6507
|
+
variables: {
|
|
6508
|
+
// Primary — #47bca9 (brand teal)
|
|
6509
|
+
colorPrimary: "#47bca9",
|
|
6510
|
+
// Backgrounds — --card (#ffffff), --background (#fefefe)
|
|
6511
|
+
colorBackground: "#ffffff",
|
|
6512
|
+
// Text — --foreground (#2e2d2c charcoal)
|
|
6513
|
+
colorText: "#2e2d2c",
|
|
6514
|
+
// Placeholder / muted — --muted-foreground (~#787776)
|
|
6515
|
+
colorTextPlaceholder: "#787776",
|
|
6516
|
+
// Icons
|
|
6517
|
+
colorIcon: "#787776",
|
|
6518
|
+
colorIconTab: "#787776",
|
|
6519
|
+
colorIconTabSelected: "#47bca9",
|
|
6520
|
+
colorIconTabHover: "#2e2d2c",
|
|
6521
|
+
// Danger — --destructive (#ef4444)
|
|
6522
|
+
colorDanger: "#ef4444",
|
|
6523
|
+
// Border radius — --radius (0.5rem = 8px)
|
|
6524
|
+
borderRadius: "8px",
|
|
6525
|
+
// Font — herda do host
|
|
6526
|
+
fontFamily: "inherit"
|
|
6527
|
+
},
|
|
6528
|
+
rules: {
|
|
6529
|
+
".Input": {
|
|
6530
|
+
border: "1px solid #e3eeeb",
|
|
6531
|
+
// --border light
|
|
6532
|
+
borderRadius: "8px",
|
|
6533
|
+
padding: "10px 12px",
|
|
6534
|
+
boxShadow: "none",
|
|
6535
|
+
backgroundColor: "#ffffff",
|
|
6536
|
+
color: "#2e2d2c",
|
|
6537
|
+
fontSize: "14px",
|
|
6538
|
+
lineHeight: "1.5"
|
|
6539
|
+
},
|
|
6540
|
+
".Input:focus": {
|
|
6541
|
+
border: "1px solid #47bca9",
|
|
6542
|
+
// --primary
|
|
6543
|
+
boxShadow: "0 0 0 2px rgba(71,188,169,0.20)",
|
|
6544
|
+
outline: "none"
|
|
6545
|
+
},
|
|
6546
|
+
".Input--invalid": {
|
|
6547
|
+
border: "1px solid #ef4444",
|
|
6548
|
+
boxShadow: "0 0 0 2px rgba(239,68,68,0.15)"
|
|
6549
|
+
},
|
|
6550
|
+
".Label": {
|
|
6551
|
+
color: "#787776",
|
|
6552
|
+
// --muted-foreground
|
|
6553
|
+
fontSize: "12px",
|
|
6554
|
+
fontWeight: "500",
|
|
6555
|
+
marginBottom: "4px"
|
|
6556
|
+
},
|
|
6557
|
+
".Error": {
|
|
6558
|
+
color: "#ef4444",
|
|
6559
|
+
fontSize: "12px"
|
|
6560
|
+
},
|
|
6561
|
+
".Tab": {
|
|
6562
|
+
border: "1px solid #e3eeeb",
|
|
6563
|
+
borderRadius: "8px",
|
|
6564
|
+
boxShadow: "none",
|
|
6565
|
+
backgroundColor: "#ffffff",
|
|
6566
|
+
color: "#787776"
|
|
6567
|
+
},
|
|
6568
|
+
".Tab:hover": {
|
|
6569
|
+
color: "#2e2d2c",
|
|
6570
|
+
border: "1px solid #47bca9"
|
|
6571
|
+
},
|
|
6572
|
+
".Tab--selected": {
|
|
6573
|
+
border: "1px solid #47bca9",
|
|
6574
|
+
backgroundColor: "rgba(71,188,169,0.08)",
|
|
6575
|
+
color: "#2e2d2c",
|
|
6576
|
+
boxShadow: "none"
|
|
6577
|
+
},
|
|
6578
|
+
".TabLabel--selected": {
|
|
6579
|
+
color: "#2e2d2c"
|
|
6580
|
+
},
|
|
6581
|
+
".TabIcon--selected": {
|
|
6582
|
+
fill: "#47bca9"
|
|
6583
|
+
},
|
|
6584
|
+
".Block": {
|
|
6585
|
+
borderRadius: "8px",
|
|
6586
|
+
backgroundColor: "#f3f7f6",
|
|
6587
|
+
// --muted
|
|
6588
|
+
border: "1px solid #e3eeeb"
|
|
6589
|
+
}
|
|
6590
|
+
}
|
|
6591
|
+
};
|
|
6592
|
+
var DARK = {
|
|
6593
|
+
theme: "none",
|
|
6594
|
+
variables: {
|
|
6595
|
+
colorPrimary: "#5dc9b5",
|
|
6596
|
+
// --primary dark (lightened)
|
|
6597
|
+
colorBackground: "#282726",
|
|
6598
|
+
// --card dark
|
|
6599
|
+
colorText: "#f4f8f7",
|
|
6600
|
+
// --foreground dark
|
|
6601
|
+
colorTextPlaceholder: "#999693",
|
|
6602
|
+
// --muted-foreground dark
|
|
6603
|
+
colorIcon: "#999693",
|
|
6604
|
+
colorIconTab: "#999693",
|
|
6605
|
+
colorIconTabSelected: "#5dc9b5",
|
|
6606
|
+
colorIconTabHover: "#f4f8f7",
|
|
6607
|
+
colorDanger: "#ef4444",
|
|
6608
|
+
borderRadius: "8px",
|
|
6609
|
+
fontFamily: "inherit"
|
|
6610
|
+
},
|
|
6611
|
+
rules: {
|
|
6612
|
+
".Input": {
|
|
6613
|
+
border: "1px solid rgba(255,255,255,0.10)",
|
|
6614
|
+
// --border dark
|
|
6615
|
+
borderRadius: "8px",
|
|
6616
|
+
padding: "10px 12px",
|
|
6617
|
+
boxShadow: "none",
|
|
6618
|
+
backgroundColor: "#282726",
|
|
6619
|
+
color: "#f4f8f7",
|
|
6620
|
+
fontSize: "14px",
|
|
6621
|
+
lineHeight: "1.5"
|
|
6622
|
+
},
|
|
6623
|
+
".Input:focus": {
|
|
6624
|
+
border: "1px solid #5dc9b5",
|
|
6625
|
+
boxShadow: "0 0 0 2px rgba(93,201,181,0.20)",
|
|
6626
|
+
outline: "none"
|
|
6627
|
+
},
|
|
6628
|
+
".Input--invalid": {
|
|
6629
|
+
border: "1px solid #ef4444",
|
|
6630
|
+
boxShadow: "0 0 0 2px rgba(239,68,68,0.15)"
|
|
6631
|
+
},
|
|
6632
|
+
".Label": {
|
|
6633
|
+
color: "#999693",
|
|
6634
|
+
fontSize: "12px",
|
|
6635
|
+
fontWeight: "500",
|
|
6636
|
+
marginBottom: "4px"
|
|
6637
|
+
},
|
|
6638
|
+
".Error": {
|
|
6639
|
+
color: "#ef4444",
|
|
6640
|
+
fontSize: "12px"
|
|
6641
|
+
},
|
|
6642
|
+
".Tab": {
|
|
6643
|
+
border: "1px solid rgba(255,255,255,0.10)",
|
|
6644
|
+
borderRadius: "8px",
|
|
6645
|
+
boxShadow: "none",
|
|
6646
|
+
backgroundColor: "#282726",
|
|
6647
|
+
color: "#999693"
|
|
6648
|
+
},
|
|
6649
|
+
".Tab:hover": {
|
|
6650
|
+
color: "#f4f8f7",
|
|
6651
|
+
border: "1px solid #5dc9b5"
|
|
6652
|
+
},
|
|
6653
|
+
".Tab--selected": {
|
|
6654
|
+
border: "1px solid #5dc9b5",
|
|
6655
|
+
backgroundColor: "rgba(93,201,181,0.10)",
|
|
6656
|
+
color: "#f4f8f7",
|
|
6657
|
+
boxShadow: "none"
|
|
6658
|
+
},
|
|
6659
|
+
".TabLabel--selected": {
|
|
6660
|
+
color: "#f4f8f7"
|
|
6661
|
+
},
|
|
6662
|
+
".TabIcon--selected": {
|
|
6663
|
+
fill: "#5dc9b5"
|
|
6664
|
+
},
|
|
6665
|
+
".Block": {
|
|
6666
|
+
borderRadius: "8px",
|
|
6667
|
+
backgroundColor: "#1e1d1c",
|
|
6668
|
+
// --background dark
|
|
6669
|
+
border: "1px solid rgba(255,255,255,0.10)"
|
|
6670
|
+
}
|
|
6671
|
+
}
|
|
6672
|
+
};
|
|
6673
|
+
function getStripeAppearance(isDark = false) {
|
|
6674
|
+
return isDark ? DARK : LIGHT;
|
|
6675
|
+
}
|
|
6676
|
+
var stripeAppearance = LIGHT;
|
|
6501
6677
|
function Input(_a) {
|
|
6502
6678
|
var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
|
|
6503
6679
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6895,5 +7071,7 @@ exports.TripCard = TripCard;
|
|
|
6895
7071
|
exports.TripHeader = TripHeader;
|
|
6896
7072
|
exports.TripPage = TripPage;
|
|
6897
7073
|
exports.cn = cn;
|
|
7074
|
+
exports.getStripeAppearance = getStripeAppearance;
|
|
7075
|
+
exports.stripeAppearance = stripeAppearance;
|
|
6898
7076
|
//# sourceMappingURL=index.cjs.map
|
|
6899
7077
|
//# sourceMappingURL=index.cjs.map
|