@planetaexo/design-system 0.3.5 → 0.3.6

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.d.cts CHANGED
@@ -801,11 +801,40 @@ interface PaymentModalShellProps {
801
801
  closeLabel?: string;
802
802
  /** Quando true desabilita o botão de fechar */
803
803
  closeDisabled?: boolean;
804
- children: React.ReactNode;
804
+ /** Formulário de pagamento — não necessário quando busy */
805
+ children?: React.ReactNode;
805
806
  className?: string;
806
807
  }
807
808
  declare function PaymentModalShell({ open, title, subtitle, bookingRef, busy, busyMessage, onClose, closeLabel, closeDisabled, children, className, }: PaymentModalShellProps): react_jsx_runtime.JSX.Element | null;
808
809
 
810
+ /**
811
+ * Configuração de aparência do Stripe Elements alinhada com o Design System PlanetaEXO.
812
+ * Passe este objeto como `appearance` ao inicializar `<Elements>` no host app.
813
+ *
814
+ * @example
815
+ * import { stripeAppearance } from "@planetaexo/design-system";
816
+ * const options = { clientSecret, appearance: stripeAppearance, ... };
817
+ * <Elements stripe={stripePromise} options={options}>...</Elements>
818
+ */
819
+ declare const stripeAppearance: {
820
+ readonly theme: "night";
821
+ readonly variables: {
822
+ /** Cor primária — foco, checkbox, botão interno do Stripe */
823
+ readonly colorPrimary: "#22c55e";
824
+ /** Border-radius dos campos do Stripe */
825
+ readonly borderRadius: "8px";
826
+ /** Background dos campos internos */
827
+ readonly colorBackground: "#020617";
828
+ /** Cor base do texto */
829
+ readonly colorText: "#e2e8f0";
830
+ /** Cor do placeholder */
831
+ readonly colorTextPlaceholder: "#64748b";
832
+ /** Cor da borda padrão */
833
+ readonly colorIconTab: "#94a3b8";
834
+ };
835
+ };
836
+ type StripeAppearance = typeof stripeAppearance;
837
+
809
838
  declare function cn(...inputs: ClassValue[]): string;
810
839
 
811
840
  interface LeadCapturePopupConfig {
@@ -858,4 +887,4 @@ declare function LeadCapturePopup({ config: _config, }: {
858
887
  config: LeadCapturePopupConfig;
859
888
  }): react_jsx_runtime.JSX.Element | null;
860
889
 
861
- export { ActivityCard, type ActivityCardProps, type ActivityCardSize, Alert, type AlertProps, type AlertVariant, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, PricingTrip, type PricingTripProps, type PricingTripVariant, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type SuggestedTraveller, TermsSection, type TermsSectionProps, ThemeToggle, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, cn };
890
+ export { ActivityCard, type ActivityCardProps, type ActivityCardSize, Alert, type AlertProps, type AlertVariant, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, PricingTrip, type PricingTripProps, type PricingTripVariant, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TermsSection, type TermsSectionProps, ThemeToggle, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, cn, stripeAppearance };
package/dist/index.d.ts CHANGED
@@ -801,11 +801,40 @@ interface PaymentModalShellProps {
801
801
  closeLabel?: string;
802
802
  /** Quando true desabilita o botão de fechar */
803
803
  closeDisabled?: boolean;
804
- children: React.ReactNode;
804
+ /** Formulário de pagamento — não necessário quando busy */
805
+ children?: React.ReactNode;
805
806
  className?: string;
806
807
  }
807
808
  declare function PaymentModalShell({ open, title, subtitle, bookingRef, busy, busyMessage, onClose, closeLabel, closeDisabled, children, className, }: PaymentModalShellProps): react_jsx_runtime.JSX.Element | null;
808
809
 
810
+ /**
811
+ * Configuração de aparência do Stripe Elements alinhada com o Design System PlanetaEXO.
812
+ * Passe este objeto como `appearance` ao inicializar `<Elements>` no host app.
813
+ *
814
+ * @example
815
+ * import { stripeAppearance } from "@planetaexo/design-system";
816
+ * const options = { clientSecret, appearance: stripeAppearance, ... };
817
+ * <Elements stripe={stripePromise} options={options}>...</Elements>
818
+ */
819
+ declare const stripeAppearance: {
820
+ readonly theme: "night";
821
+ readonly variables: {
822
+ /** Cor primária — foco, checkbox, botão interno do Stripe */
823
+ readonly colorPrimary: "#22c55e";
824
+ /** Border-radius dos campos do Stripe */
825
+ readonly borderRadius: "8px";
826
+ /** Background dos campos internos */
827
+ readonly colorBackground: "#020617";
828
+ /** Cor base do texto */
829
+ readonly colorText: "#e2e8f0";
830
+ /** Cor do placeholder */
831
+ readonly colorTextPlaceholder: "#64748b";
832
+ /** Cor da borda padrão */
833
+ readonly colorIconTab: "#94a3b8";
834
+ };
835
+ };
836
+ type StripeAppearance = typeof stripeAppearance;
837
+
809
838
  declare function cn(...inputs: ClassValue[]): string;
810
839
 
811
840
  interface LeadCapturePopupConfig {
@@ -858,4 +887,4 @@ declare function LeadCapturePopup({ config: _config, }: {
858
887
  config: LeadCapturePopupConfig;
859
888
  }): react_jsx_runtime.JSX.Element | null;
860
889
 
861
- export { ActivityCard, type ActivityCardProps, type ActivityCardSize, Alert, type AlertProps, type AlertVariant, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, PricingTrip, type PricingTripProps, type PricingTripVariant, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type SuggestedTraveller, TermsSection, type TermsSectionProps, ThemeToggle, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, cn };
890
+ export { ActivityCard, type ActivityCardProps, type ActivityCardSize, Alert, type AlertProps, type AlertVariant, type BookingAdventure, BookingConfirmation, BookingConfirmationEmail, type BookingConfirmationEmailLabels, type BookingConfirmationEmailProps, type BookingConfirmationLabels, type BookingConfirmationProps, type BookingContact, type BookingDepositInfo, BookingDetails, type BookingDetailsProps, BookingForm, type BookingFormProps, type BookingFormValues, BookingShell, type BookingShellProps, type BookingStatus, type BookingSummaryLineItem, type BookingTraveller, COUNTRIES, type ConfirmationAdventure, type ConfirmationDepositInfo, type ConfirmationLineItem, type ConfirmationTraveller, CounterField, type CounterFieldProps, type CountryOption, CountrySearchField, type CountrySearchFieldProps, DEFAULT_HEADER_LINKS, DEFAULT_LANGUAGES, DatePickerField, type DatePickerFieldProps, type FilterGroup, type FilterItem, FilterPanel, type FilterPanelProps, FloatingInput, type FloatingInputProps, FloatingSelect, type FloatingSelectProps, Itinerary, type ItineraryProps, type ItineraryRoute, type ItineraryStop, LeadCapturePopup, type LeadCapturePopupConfig, MenuTrip, type MenuTripProps, type MenuTripSection, type MenuTripVariant, Offer, OfferAdventureCard, type OfferAdventureItem, type OfferAgentInfo, type OfferDepositInfo, type OfferOptionalItem, type OfferProps, type OfferSummaryLineItem, PaymentAmountSelector, type PaymentAmountSelectorProps, type PaymentMethodOption, PaymentMethodSelector, type PaymentMethodSelectorProps, PaymentModalShell, type PaymentModalShellProps, PhoneCountrySelect, PhotoGallery, type PhotoGalleryPhoto, type PhotoGalleryProps, type PhotoGalleryVariant, type PricingOption, PricingTrip, type PricingTripProps, type PricingTripVariant, SiteHeader, type SiteHeaderLanguage, type SiteHeaderLink, type SiteHeaderProps, type SiteHeaderSubItem, type SiteHeaderVariant, type StripeAppearance, type SuggestedTraveller, TermsSection, type TermsSectionProps, ThemeToggle, TripCard, type TripCardCta, type TripCardProps, type TripCardSize, type TripCardStatus, type TripDuration, type TripFaq, TripHeader, type TripHeaderProps, type TripHighlight, type TripInfoGroup, type TripItineraryStep, type TripMeetingPoint, TripPage, type TripPageProps, type TripPricingOption, type TripReview, cn, stripeAppearance };
package/dist/index.js CHANGED
@@ -6477,6 +6477,25 @@ function PaymentModalShell({
6477
6477
  }
6478
6478
  );
6479
6479
  }
6480
+
6481
+ // src/lib/stripeAppearance.ts
6482
+ var stripeAppearance = {
6483
+ theme: "night",
6484
+ variables: {
6485
+ /** Cor primária — foco, checkbox, botão interno do Stripe */
6486
+ colorPrimary: "#22c55e",
6487
+ /** Border-radius dos campos do Stripe */
6488
+ borderRadius: "8px",
6489
+ /** Background dos campos internos */
6490
+ colorBackground: "#020617",
6491
+ /** Cor base do texto */
6492
+ colorText: "#e2e8f0",
6493
+ /** Cor do placeholder */
6494
+ colorTextPlaceholder: "#64748b",
6495
+ /** Cor da borda padrão */
6496
+ colorIconTab: "#94a3b8"
6497
+ }
6498
+ };
6480
6499
  function Input(_a) {
6481
6500
  var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
6482
6501
  return /* @__PURE__ */ jsx(
@@ -6840,6 +6859,6 @@ function LeadCapturePopup({
6840
6859
  );
6841
6860
  }
6842
6861
 
6843
- 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 };
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 };
6844
6863
  //# sourceMappingURL=index.js.map
6845
6864
  //# sourceMappingURL=index.js.map