File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/types.ts.tar
plugins/woocommerce/packages/woocommerce-blocks/packages/checkout/blocks-registry/types.ts 0000644 00000004177 15155210144 0040533 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content /**
* External dependencies
*/
import type { LazyExoticComponent } from '@wordpress/element';
import type { BlockConfiguration } from '@wordpress/blocks';
import type { RegisteredBlockComponent } from '@woocommerce/types';
export enum innerBlockAreas {
CHECKOUT = 'woocommerce/checkout',
CHECKOUT_FIELDS = 'woocommerce/checkout-fields-block',
CHECKOUT_TOTALS = 'woocommerce/checkout-totals-block',
CONTACT_INFORMATION = 'woocommerce/checkout-contact-information-block',
SHIPPING_ADDRESS = 'woocommerce/checkout-shipping-address-block',
BILLING_ADDRESS = 'woocommerce/checkout-billing-address-block',
SHIPPING_METHOD = 'woocommerce/checkout-shipping-method-block',
SHIPPING_METHODS = 'woocommerce/checkout-shipping-methods-block',
PICKUP_LOCATION = 'woocommerce/checkout-pickup-options-block',
PAYMENT_METHODS = 'woocommerce/checkout-payment-methods-block',
CART = 'woocommerce/cart',
EMPTY_CART = 'woocommerce/empty-cart-block',
FILLED_CART = 'woocommerce/filled-cart-block',
CART_ITEMS = 'woocommerce/cart-items-block',
CART_CROSS_SELLS = 'woocommerce/cart-cross-sells-block',
CART_TOTALS = 'woocommerce/cart-totals-block',
MINI_CART = 'woocommerce/mini-cart-contents',
EMPTY_MINI_CART = 'woocommerce/empty-mini-cart-contents-block',
FILLED_MINI_CART = 'woocommerce/filled-mini-cart-contents-block',
MINI_CART_TITLE = 'woocommerce/mini-cart-title-block',
MINI_CART_ITEMS = 'woocommerce/mini-cart-items-block',
MINI_CART_FOOTER = 'woocommerce/mini-cart-footer-block',
CART_ORDER_SUMMARY = 'woocommerce/cart-order-summary-block',
CHECKOUT_ORDER_SUMMARY = 'woocommerce/checkout-order-summary-block',
}
interface CheckoutBlockOptionsMetadata extends Partial< BlockConfiguration > {
name: string;
parent: string[];
}
export type RegisteredBlock = {
blockName: string;
metadata: CheckoutBlockOptionsMetadata;
component: RegisteredBlockComponent;
force: boolean;
};
export type RegisteredBlocks = Record< string, RegisteredBlock >;
export type CheckoutBlockOptions = {
metadata: CheckoutBlockOptionsMetadata;
force?: boolean;
component:
| LazyExoticComponent< React.ComponentType< unknown > >
| ( () => JSX.Element | null )
| null;
};
packages/woocommerce-blocks/packages/checkout/components/store-notices-container/types.ts 0000644 00000000514 15155741704 0044355 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/woocommerce /**
* External dependencies
*/
import type { NoticeType } from '@woocommerce/types';
export interface StoreNoticesContainerProps {
className?: string | undefined;
context?: string | string[];
// List of additional notices that were added inline and not stored in the `core/notices` store.
additionalNotices?: NoticeType[];
}
plugins/woocommerce/packages/woocommerce-blocks/packages/checkout/components/text-input/types.ts 0000644 00000002770 15156134454 0041725 0 ustar 00 var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content /**
* External dependencies
*/
import type { InputHTMLAttributes } from 'react';
export interface ValidatedTextInputProps
extends Omit<
InputHTMLAttributes< HTMLInputElement >,
'onChange' | 'onBlur'
> {
// id to use for the input. If not provided, an id will be generated.
id?: string;
// Unique instance ID. id will be used instead if provided.
instanceId: string;
// Class name to add to the input.
className?: string | undefined;
// aria-describedby attribute to add to the input.
ariaDescribedBy?: string | undefined;
// id to use for the error message. If not provided, an id will be generated.
errorId?: string;
// if true, the input will be focused on mount.
focusOnMount?: boolean;
// Callback to run on change which is passed the updated value.
onChange: ( newValue: string ) => void;
// Optional label for the field.
label?: string | undefined;
// Field value.
value: string;
// If true, validation errors will be shown.
showError?: boolean;
// Error message to display alongside the field regardless of validation.
errorMessage?: string | undefined;
// Custom validation function that is run on change. Use setCustomValidity to set an error message.
customValidation?:
| ( ( inputObject: HTMLInputElement ) => boolean )
| undefined;
// Custom formatted to format values as they are typed.
customFormatter?: ( value: string ) => string;
// Whether validation should run when focused - only has an effect when focusOnMount is also true.
validateOnMount?: boolean | undefined;
}