@primer-io/primer-js 0.3.9 → 0.3.10

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.
@@ -539,11 +539,6 @@ Falls back to localized default if not explicitly set. */
539
539
  cardFormContext?: CardFormContext | null;
540
540
  };
541
541
 
542
- export type PaymentMethodContentComponentProps = {
543
- /** The asset configuration containing icon and display data */
544
- assetConfig?: AssetConfig | null;
545
- };
546
-
547
542
  export type VaultCvvInputComponentProps = {
548
543
  /** */
549
544
  computedStyles?: CSSStyleDeclaration | null;
@@ -556,6 +551,11 @@ Separated to minimize re-renders on frequent CVV input changes */
556
551
  vaultManagerCvvContext?: VaultItemContextType;
557
552
  };
558
553
 
554
+ export type PaymentMethodContentComponentProps = {
555
+ /** The asset configuration containing icon and display data */
556
+ assetConfig?: AssetConfig | null;
557
+ };
558
+
559
559
  export type VaultDeleteConfirmationComponentProps = {
560
560
  /** Whether a delete operation is in progress */
561
561
  isDeleting?: boolean;
@@ -1035,15 +1035,6 @@ export type CustomElements = {
1035
1035
  */
1036
1036
  "primer-input-cvv": Partial<InputCvvComponentProps & BaseProps & BaseEvents>;
1037
1037
 
1038
- /**
1039
- * PaymentMethodContentComponent - renders payment method information with icon and details
1040
- * This component encapsulates the display logic and styles for payment method content
1041
- * so it can be reused across different containers without style conflicts
1042
- * ---
1043
- *
1044
- */
1045
- "primer-payment-method-content": Partial<PaymentMethodContentComponentProps & BaseProps & BaseEvents>;
1046
-
1047
1038
  /**
1048
1039
  * CVV Input component for vault payment methods
1049
1040
  * Renders a secure iframe for CVV input when required by the selected payment method
@@ -1056,6 +1047,15 @@ export type CustomElements = {
1056
1047
  */
1057
1048
  "primer-vault-cvv-input": Partial<VaultCvvInputComponentProps & BaseProps & BaseEvents>;
1058
1049
 
1050
+ /**
1051
+ * PaymentMethodContentComponent - renders payment method information with icon and details
1052
+ * This component encapsulates the display logic and styles for payment method content
1053
+ * so it can be reused across different containers without style conflicts
1054
+ * ---
1055
+ *
1056
+ */
1057
+ "primer-payment-method-content": Partial<PaymentMethodContentComponentProps & BaseProps & BaseEvents>;
1058
+
1059
1059
  /**
1060
1060
  * VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method
1061
1061
  * ---
@@ -3450,8 +3450,9 @@ declare class NativePaymentComponent extends LitElement {
3450
3450
  constructor();
3451
3451
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
3452
3452
  /**
3453
- * Calculates the button height based on CSS variables
3454
- * Mirrors the calculation used in the host styles
3453
+ * Calculates the button height by reading the computed height from the element.
3454
+ * The CSS already calculates the correct height using CSS variables,
3455
+ * so we just read the browser's computed value (which handles rem/em/% conversions).
3455
3456
  */
3456
3457
  private calculateButtonHeight;
3457
3458
  /**