Skip to content

Commit 9cbe195

Browse files
committed
fix: reintroduce propagateFocus import in multiple components for consistent focus management
1 parent 88f34f1 commit 9cbe195

File tree

24 files changed

+88
-43
lines changed

24 files changed

+88
-43
lines changed

packages/components/src/components/accordion/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import type { JSX } from '@stencil/core';
33
import { Component, Element, h, Method, Prop, State, Watch } from '@stencil/core';
44
import KolCollapsibleFc, { type CollapsibleProps } from '../../functional-components/Collapsible';
5-
import { propagateFocus } from '../../utils/element-focus';
65
import type {
76
AccordionAPI,
87
AccordionCallbacksPropType,
@@ -15,6 +14,7 @@ import type {
1514
} from '../../schema';
1615
import { featureHint, validateAccordionCallbacks, validateDisabled, validateLabel, validateOpen } from '../../schema';
1716
import { nonce } from '../../utils/dev.utils';
17+
import { propagateFocus } from '../../utils/element-focus';
1818
import { dispatchDomEvent, KolEvent } from '../../utils/events';
1919
import { watchHeadingLevel } from '../heading/validation';
2020

packages/components/src/components/button-link/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { JSX } from '@stencil/core';
22
import { Component, Element, h, Method, Prop } from '@stencil/core';
33
import { KolButtonWcTag } from '../../core/component-names';
4-
import { propagateFocus } from '../../utils/element-focus';
54
import type {
65
AccessKeyPropType,
76
AlternativeButtonLinkRolePropType,
@@ -20,6 +19,7 @@ import type {
2019
TooltipAlignPropType,
2120
VariantClassNamePropType,
2221
} from '../../schema';
22+
import { propagateFocus } from '../../utils/element-focus';
2323

2424
/**
2525
* The **ButtonLink** component is semantically a button but has the appearance of a link. All relevant properties of the Button component are adopted and extended with the design-defining properties of a link.

packages/components/src/components/button/component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ import { SpanFC } from '../../internal/functional-components/span/component';
5656
import type { AriaHasPopupPropType } from '../../schema/props/aria-has-popup';
5757
import { validateAccessAndShortKey } from '../../schema/validators/access-and-short-key';
5858
import clsx from '../../utils/clsx';
59-
import { dispatchDomEvent, KolEvent } from '../../utils/events';
6059
import { propagateFocus } from '../../utils/element-focus';
60+
import { dispatchDomEvent, KolEvent } from '../../utils/events';
6161
import { propagateResetEventToForm, propagateSubmitEventToForm } from '../form/controller';
6262
import { AssociatedInputController } from '../input-adapter-leanup/associated.controller';
6363

packages/components/src/components/button/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { JSX } from '@stencil/core';
22
import { Component, Element, h, Method, Prop } from '@stencil/core';
33
import { KolButtonWcTag } from '../../core/component-names';
4-
import { propagateFocus } from '../../utils/element-focus';
54
import type {
65
AccessKeyPropType,
76
AlternativeButtonLinkRolePropType,
@@ -20,6 +19,7 @@ import type {
2019
SyncValueBySelectorPropType,
2120
TooltipAlignPropType,
2221
} from '../../schema';
22+
import { propagateFocus } from '../../utils/element-focus';
2323

2424
/**
2525
* The **Button** component is used to present users with action options and arrange them in a clear hierarchy. It helps users find the most important actions on a page or within a viewport and allows them to execute those actions. The button label clearly indicates which action will be triggered. Buttons allow users to confirm a change, complete steps in a task, or make decisions.

packages/components/src/components/details/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Component, Element, h, type JSX, Method, Prop, State, Watch } from '@stencil/core';
22
import KolCollapsibleFc, { type CollapsibleProps } from '../../functional-components/Collapsible';
33
import type { DetailsAPI, DetailsCallbacksPropType, DetailsStates, DisabledPropType, FocusableElement, HeadingLevel, LabelPropType } from '../../schema';
4-
import { propagateFocus } from '../../utils/element-focus';
54
import { validateDetailsCallbacks, validateDisabled, validateLabel, validateOpen } from '../../schema';
65
import { nonce } from '../../utils/dev.utils';
6+
import { propagateFocus } from '../../utils/element-focus';
77
import { dispatchDomEvent, KolEvent } from '../../utils/events';
88
import { watchHeadingLevel } from '../heading/validation';
99

packages/components/src/components/input-checkbox/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import type {
2626
TooltipAlignPropType,
2727
} from '../../schema';
2828

29-
import { propagateFocus } from '../../utils/element-focus';
3029
import { nonce } from '../../utils/dev.utils';
30+
import { propagateFocus } from '../../utils/element-focus';
3131
import { InputCheckboxController } from './controller';
3232

3333
import KolCheckboxStateWrapperFc, { type CheckboxStateWrapperProps } from '../../functional-component-wrappers/CheckboxStateWrapper/CheckboxStateWrapper';

packages/components/src/components/input-date/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ import { deprecatedHint } from '../../schema';
3333
import KolFormFieldStateWrapperFc, { type FormFieldStateWrapperProps } from '../../functional-component-wrappers/FormFieldStateWrapper/FormFieldStateWrapper';
3434
import KolInputContainerFc from '../../functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper';
3535
import KolInputStateWrapperFc, { type InputStateWrapperProps } from '../../functional-component-wrappers/InputStateWrapper/InputStateWrapper';
36-
import { propagateFocus } from '../../utils/element-focus';
3736
import { nonce } from '../../utils/dev.utils';
37+
import { propagateFocus } from '../../utils/element-focus';
3838
import { propagateSubmitEventToForm } from '../form/controller';
3939
import { InputDateController } from './controller';
4040

packages/components/src/components/input-email/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ import type {
3333
import KolFormFieldStateWrapperFc, { type FormFieldStateWrapperProps } from '../../functional-component-wrappers/FormFieldStateWrapper/FormFieldStateWrapper';
3434
import KolInputContainerFc from '../../functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper';
3535
import KolInputStateWrapperFc, { type InputStateWrapperProps } from '../../functional-component-wrappers/InputStateWrapper/InputStateWrapper';
36-
import { propagateFocus } from '../../utils/element-focus';
3736
import { nonce } from '../../utils/dev.utils';
37+
import { propagateFocus } from '../../utils/element-focus';
3838
import { propagateSubmitEventToForm } from '../form/controller';
3939
import { InputEmailController } from './controller';
4040

packages/components/src/components/input-file/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import KolFormFieldStateWrapperFc, { type FormFieldStateWrapperProps } from '../
3030
import KolInputContainerFc from '../../functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper';
3131
import KolInputStateWrapperFc, { type InputStateWrapperProps } from '../../functional-component-wrappers/InputStateWrapper/InputStateWrapper';
3232
import { translate } from '../../i18n';
33-
import { propagateFocus } from '../../utils/element-focus';
3433
import { nonce } from '../../utils/dev.utils';
34+
import { propagateFocus } from '../../utils/element-focus';
3535
import { InputFileController } from './controller';
3636

3737
/**

packages/components/src/components/input-number/shadow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import KolFormFieldStateWrapperFc, { type FormFieldStateWrapperProps } from '../
3232
import KolInputContainerFc from '../../functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper';
3333
import KolInputStateWrapperFc, { type InputStateWrapperProps } from '../../functional-component-wrappers/InputStateWrapper/InputStateWrapper';
3434
import { IconFC } from '../../internal/functional-components/icon/component';
35-
import { propagateFocus } from '../../utils/element-focus';
3635
import { nonce } from '../../utils/dev.utils';
36+
import { propagateFocus } from '../../utils/element-focus';
3737
import { propagateSubmitEventToForm } from '../form/controller';
3838
import { InputNumberController } from './controller';
3939

0 commit comments

Comments
 (0)