Skip to content

Commit

Permalink
fix(custom-element): ensure all cwc components use carbonElement (#11937
Browse files Browse the repository at this point in the history
)
  • Loading branch information
annawen1 authored Jul 22, 2024
1 parent d9f94ca commit f727bae
Show file tree
Hide file tree
Showing 23 changed files with 63 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
*/

import { html, LitElement } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { prefix } from '../../globals/settings';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import '../button/button';
import { CHAT_BUTTON_SIZE, CHAT_BUTTON_KIND } from './defs';
import styles from './chat-button.scss';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import Copy16 from '@carbon/icons/lib/copy/16';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import FocusMixin from '../../globals/mixins/focus';
import styles from './copy-button.scss';
Expand Down
5 changes: 3 additions & 2 deletions packages/carbon-web-components/src/components/copy/copy.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { prefix } from '../../globals/settings';
import styles from '../copy-button/copy-button.scss';
import CDSIconButton from '../icon-button/icon-button';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';

/**
* Copy.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { classMap } from 'lit/directives/class-map.js';
import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './data-table.scss';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';

import { delay } from 'bluebird';
import { prefix } from '../../globals/settings';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/**
* @license
*
* Copyright IBM Corp. 2020, 2023
* Copyright IBM Corp. 2020, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { classMap } from 'lit/directives/class-map.js';
import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import HostListenerMixin from '../../globals/mixins/host-listener';
import ifNonEmpty from '../../globals/directives/if-non-empty';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './form-group.scss';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
*/

import { html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import '../tooltip/index';
import '../button/index';
Expand Down
5 changes: 3 additions & 2 deletions packages/carbon-web-components/src/components/layer/layer.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './layer.scss';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand All @@ -13,8 +13,9 @@ import InformationSquareFilled20 from '@carbon/icons/lib/information--square--fi
import WarningFilled20 from '@carbon/icons/lib/warning--filled/20';
import WarningAltFilled20 from '@carbon/icons/lib/warning--alt--filled/20';
import { html, svg } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { prefix } from '../../globals/settings';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { NOTIFICATION_TYPE, NOTIFICATION_KIND } from './defs';
import CDSInlineNotification from './inline-notification';
import styles from './actionable-notification.scss';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './popover.scss';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

import { classMap } from 'lit/directives/class-map.js';
import { LitElement, html } from 'lit';
import { property, customElement, query } from 'lit/decorators.js';
import { property, query } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './popover.scss';
import CDSPopoverContent from './popover-content';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { classMap } from 'lit/directives/class-map.js';
import ErrorFilled16 from '@carbon/icons/lib/error--filled/16';
import CheckmarkFilled16 from '@carbon/icons/lib/checkmark--filled/16';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './select.scss';

Expand Down
5 changes: 3 additions & 2 deletions packages/carbon-web-components/src/components/stack/stack.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2023
* Copyright IBM Corp. 2023, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './stack.scss';
import { STACK_ORIENTATION, SPACING_STEPS } from './defs';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './text-input.scss';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
*/

import { LitElement, html } from 'lit';
import { property, customElement, query } from 'lit/decorators.js';
import { property, query } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { classMap } from 'lit/directives/class-map.js';
import { prefix } from '../../globals/settings';
import View16 from '@carbon/icons/lib/view/16';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

import { classMap } from 'lit/directives/class-map.js';
import { html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import Information16 from '@carbon/icons/lib/information/16';
import { prefix } from '../../globals/settings';
import HostListener from '../../globals/decorators/host-listener';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2023
* Copyright IBM Corp. 2023, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement } from 'lit';
import { property, customElement, query } from 'lit/decorators.js';
import { property, query } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { BUTTON_TOOLTIP_POSITION } from '../button/button';
import CDSButton from '../button/button';
import HostListener from '../../globals/decorators/host-listener';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2023
* Copyright IBM Corp. 2023, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import styles from './header.scss';
import { prefix } from '../../globals/settings';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2023
* Copyright IBM Corp. 2023, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import styles from './side-nav.scss';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { classMap } from 'lit/directives/class-map.js';
import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import { prefix } from '../../globals/settings';
import FocusMixin from '../../globals/mixins/focus';
import styles from './header.scss';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/**
* @license
*
* Copyright IBM Corp. 2023
* Copyright IBM Corp. 2023, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import { LitElement, html } from 'lit';
import { property, customElement } from 'lit/decorators.js';
import { property } from 'lit/decorators.js';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';
import styles from './header.scss';
import { prefix } from '../../globals/settings';

Expand Down

0 comments on commit f727bae

Please sign in to comment.