diff --git a/packages/calcite-components/src/components.d.ts b/packages/calcite-components/src/components.d.ts index 450424a42ac..dbdc6085aa2 100644 --- a/packages/calcite-components/src/components.d.ts +++ b/packages/calcite-components/src/components.d.ts @@ -779,36 +779,6 @@ export namespace Components { */ "thumbnailPosition": LogicalFlowPosition; } - interface CalciteCardGroup { - /** - * When `true`, interaction is prevented and the component is displayed with lower opacity. - */ - "disabled": boolean; - /** - * Accessible name for the component. - */ - "label": string; - /** - * Specifies the size of the component. Child `calcite-card`s inherit the component's value. - */ - "scale": Scale; - /** - * Specifies the component's selected items. - * @readonly - */ - "selectedItems": HTMLCalciteCardElement[]; - /** - * Specifies the selection mode of the component. - */ - "selectionMode": Extract< - "multiple" | "single" | "single-persist" | "none", - SelectionMode - >; - /** - * Sets focus on the component's first focusable element. - */ - "setFocus": () => Promise; - } interface CalciteCheckbox { /** * When `true`, the component is checked. @@ -5451,10 +5421,6 @@ export interface CalciteCardCustomEvent extends CustomEvent { detail: T; target: HTMLCalciteCardElement; } -export interface CalciteCardGroupCustomEvent extends CustomEvent { - detail: T; - target: HTMLCalciteCardGroupElement; -} export interface CalciteCheckboxCustomEvent extends CustomEvent { detail: T; target: HTMLCalciteCheckboxElement; @@ -5915,23 +5881,6 @@ declare global { prototype: HTMLCalciteCardElement; new (): HTMLCalciteCardElement; }; - interface HTMLCalciteCardGroupElementEventMap { - "calciteCardGroupSelect": void; - } - interface HTMLCalciteCardGroupElement extends Components.CalciteCardGroup, HTMLStencilElement { - addEventListener(type: K, listener: (this: HTMLCalciteCardGroupElement, ev: CalciteCardGroupCustomEvent) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; - addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLCalciteCardGroupElement, ev: CalciteCardGroupCustomEvent) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; - removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; - } - var HTMLCalciteCardGroupElement: { - prototype: HTMLCalciteCardGroupElement; - new (): HTMLCalciteCardGroupElement; - }; interface HTMLCalciteCheckboxElementEventMap { "calciteInternalCheckboxBlur": boolean; "calciteCheckboxChange": void; @@ -7412,7 +7361,6 @@ declare global { "calcite-block-section": HTMLCalciteBlockSectionElement; "calcite-button": HTMLCalciteButtonElement; "calcite-card": HTMLCalciteCardElement; - "calcite-card-group": HTMLCalciteCardGroupElement; "calcite-checkbox": HTMLCalciteCheckboxElement; "calcite-chip": HTMLCalciteChipElement; "calcite-chip-group": HTMLCalciteChipGroupElement; @@ -8137,36 +8085,6 @@ declare namespace LocalJSX { */ "thumbnailPosition"?: LogicalFlowPosition; } - interface CalciteCardGroup { - /** - * When `true`, interaction is prevented and the component is displayed with lower opacity. - */ - "disabled"?: boolean; - /** - * Accessible name for the component. - */ - "label": string; - /** - * Emits when the component's selection changes and the selectionMode is not `none`. - */ - "onCalciteCardGroupSelect"?: (event: CalciteCardGroupCustomEvent) => void; - /** - * Specifies the size of the component. Child `calcite-card`s inherit the component's value. - */ - "scale"?: Scale; - /** - * Specifies the component's selected items. - * @readonly - */ - "selectedItems"?: HTMLCalciteCardElement[]; - /** - * Specifies the selection mode of the component. - */ - "selectionMode"?: Extract< - "multiple" | "single" | "single-persist" | "none", - SelectionMode - >; - } interface CalciteCheckbox { /** * When `true`, the component is checked. @@ -13029,7 +12947,6 @@ declare namespace LocalJSX { "calcite-block-section": CalciteBlockSection; "calcite-button": CalciteButton; "calcite-card": CalciteCard; - "calcite-card-group": CalciteCardGroup; "calcite-checkbox": CalciteCheckbox; "calcite-chip": CalciteChip; "calcite-chip-group": CalciteChipGroup; @@ -13143,7 +13060,6 @@ declare module "@stencil/core" { "calcite-block-section": LocalJSX.CalciteBlockSection & JSXBase.HTMLAttributes; "calcite-button": LocalJSX.CalciteButton & JSXBase.HTMLAttributes; "calcite-card": LocalJSX.CalciteCard & JSXBase.HTMLAttributes; - "calcite-card-group": LocalJSX.CalciteCardGroup & JSXBase.HTMLAttributes; "calcite-checkbox": LocalJSX.CalciteCheckbox & JSXBase.HTMLAttributes; "calcite-chip": LocalJSX.CalciteChip & JSXBase.HTMLAttributes; "calcite-chip-group": LocalJSX.CalciteChipGroup & JSXBase.HTMLAttributes; diff --git a/packages/calcite-components/src/components/option-group/option-group.e2e.ts b/packages/calcite-components/src/components/option-group/option-group.e2e.ts index a8393fd3f9c..b39a64af3f0 100644 --- a/packages/calcite-components/src/components/option-group/option-group.e2e.ts +++ b/packages/calcite-components/src/components/option-group/option-group.e2e.ts @@ -36,8 +36,7 @@ describe("calcite-option-group", () => { const page = await newE2EPage({ html: ``, }); - - const group = await page.find("calcite-option-group"); - expect(group.shadowRoot.textContent).toBe("test-group"); + const el = await page.find("calcite-option-group >>> div"); + expect(el.textContent).toBe("test-group"); }); });