Skip to content

Commit

Permalink
refactor: Turn pin-input-cells events to event delegation.
Browse files Browse the repository at this point in the history
  • Loading branch information
hossein-nas committed Aug 19, 2024
1 parent a3a96a8 commit 32aa7c5
Show file tree
Hide file tree
Showing 14 changed files with 7,268 additions and 6,305 deletions.
12,980 changes: 7,121 additions & 5,859 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/icon-button/icon-button.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { queryAssignedElements } from 'lit/decorators.js';
import { BaseButton } from '../base-button';
import { PropertyValues } from 'lit';
import { TapIcon } from '../icon';
import { Icon } from '@tapsioss/icons/dist/icon/icon';

export class IconButton extends BaseButton {
@queryAssignedElements() private icon!: TapIcon[];
@queryAssignedElements() private icon!: Icon[];

protected updated(_changedProperties: PropertyValues) {
super.updated(_changedProperties);
Expand Down
5 changes: 0 additions & 5 deletions src/pin-input-cell/constants.ts

This file was deleted.

122 changes: 0 additions & 122 deletions src/pin-input-cell/events.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/pin-input-cell/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { customElement } from 'lit/decorators.js';
import { PinInputCell } from './pin-input-cell.js';
import styles from './pin-input-cell.style.js';
export * from './events.js';
export * from './constants.js';

@customElement('tap-pin-input-cell')
export class TapPinInputCell extends PinInputCell {
Expand Down
Loading

0 comments on commit 32aa7c5

Please sign in to comment.