@patternfly/pfe-core
Advanced tools
Comparing version 2.0.0-next.11 to 2.0.0-next.12
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export declare type Context<T> = { | ||
export type Context<T> = { | ||
name: string; | ||
@@ -16,7 +16,7 @@ initialValue?: T; | ||
*/ | ||
export declare type UnknownContext = Context<unknown>; | ||
export type UnknownContext = Context<unknown>; | ||
/** | ||
* A helper type which can extract a Context value type from a Context type | ||
*/ | ||
export declare type ContextType<T extends UnknownContext> = T extends Context<infer Y> ? Y : never; | ||
export type ContextType<T extends UnknownContext> = T extends Context<infer Y> ? Y : never; | ||
/** | ||
@@ -30,3 +30,3 @@ * A function which creates a Context value object | ||
*/ | ||
export declare type ContextCallback<ValueType> = (value: ValueType, dispose?: () => void) => void; | ||
export type ContextCallback<ValueType> = (value: ValueType, dispose?: () => void) => void; | ||
/** | ||
@@ -33,0 +33,0 @@ * An event fired by a context requester to signal it desires a named context. |
@@ -13,3 +13,3 @@ import type { ReactiveController } from 'lit'; | ||
*/ | ||
export declare type ColorPalette = ('base' | 'accent' | 'complement' | 'lighter' | 'lightest' | 'darker' | 'darkest'); | ||
export type ColorPalette = ('base' | 'accent' | 'complement' | 'lighter' | 'lightest' | 'darker' | 'darkest'); | ||
/** | ||
@@ -20,3 +20,3 @@ * A Color theme is a context-specific restriction on the available color palettes | ||
*/ | ||
export declare type ColorTheme = ('dark' | 'light' | 'saturated'); | ||
export type ColorTheme = ('dark' | 'light' | 'saturated'); | ||
export interface ColorContextOptions { | ||
@@ -23,0 +23,0 @@ prefix?: string; |
import type { ReactiveController, ReactiveElement } from 'lit'; | ||
declare type Direction = 'top' | 'bottom' | 'left' | 'right'; | ||
declare type Alignment = 'start' | 'end'; | ||
type Direction = 'top' | 'bottom' | 'left' | 'right'; | ||
type Alignment = 'start' | 'end'; | ||
/** | ||
* Represents the placement of floating DOM | ||
*/ | ||
export declare type Placement = Direction | `${Direction}-${Alignment}`; | ||
export type Placement = Direction | `${Direction}-${Alignment}`; | ||
/** | ||
@@ -9,0 +9,0 @@ * Controls floating DOM within a web component, e.g. tooltips and popovers |
import type { ReactiveController, ReactiveElement } from 'lit'; | ||
export declare const observedController: unique symbol; | ||
export declare type ChangeCallback<T = ReactiveElement> = (this: T, old?: T[keyof T], newV?: T[keyof T]) => void; | ||
export declare type ChangeCallbackName = `_${string}Changed`; | ||
export declare type PropertyObserverHost<T> = T & Record<ChangeCallbackName, ChangeCallback<T>> & { | ||
export type ChangeCallback<T = ReactiveElement> = (this: T, old?: T[keyof T], newV?: T[keyof T]) => void; | ||
export type ChangeCallbackName = `_${string}Changed`; | ||
export type PropertyObserverHost<T> = T & Record<ChangeCallbackName, ChangeCallback<T>> & { | ||
[observedController]: PropertyObserverController; | ||
@@ -7,0 +7,0 @@ }; |
@@ -11,3 +11,3 @@ import type { ReactiveController, ReactiveElement } from 'lit'; | ||
} | ||
export declare type Slot = NamedSlot | AnonymousSlot; | ||
export type Slot = NamedSlot | AnonymousSlot; | ||
export interface SlotsConfig { | ||
@@ -14,0 +14,0 @@ slots: (string | null)[]; |
import type { ReactiveElement, PropertyDeclaration } from 'lit'; | ||
export declare type DeprecationDeclaration<K extends PropertyKey> = PropertyDeclaration & { | ||
export type DeprecationDeclaration<K extends PropertyKey> = PropertyDeclaration & { | ||
alias: string & K; | ||
@@ -4,0 +4,0 @@ attribute: string; |
import type { ReactiveElement } from 'lit'; | ||
import type { ChangeCallback } from '../controllers/property-observer-controller.js'; | ||
declare type TypedFieldDecorator<T> = (proto: T, key: string | keyof T) => void; | ||
type TypedFieldDecorator<T> = (proto: T, key: string | keyof T) => void; | ||
/** | ||
@@ -5,0 +5,0 @@ * Calls a _fooChanged method on the instance when the value changes. |
{ | ||
"name": "@patternfly/pfe-core", | ||
"version": "2.0.0-next.11", | ||
"version": "2.0.0-next.12", | ||
"license": "MIT", | ||
@@ -21,2 +21,3 @@ "description": "PatternFly Elements Core Library", | ||
"./controllers/logger.js": "./controllers/logger.js", | ||
"./controllers/internals-controller.js": "./controllers/internals-controller.js", | ||
"./controllers/perf-controller.js": "./controllers/perf-controller.js", | ||
@@ -23,0 +24,0 @@ "./controllers/property-observer-controller.js": "./controllers/property-observer-controller.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144259
86
760