Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
},
"dependencies": {
"@internetarchive/ia-clearable-text-input": "^1.1.1",
"@internetarchive/ia-dropdown": "^2.2.0",
"@lit/localize": "^0.12.2",
"lit": "^2.8.0 || ^3.3.2",
"magic-snowflakes": "^7.0.2",
Expand Down
11 changes: 7 additions & 4 deletions src/elements/ia-dropdown-search-bar/ia-dropdown-search-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ import {
} from 'lit';
import { customElement, property, query } from 'lit/decorators.js';
import type { IaClearableTextInput } from '@internetarchive/ia-clearable-text-input';
import type { IaDropdown, optionInterface } from '@internetarchive/ia-dropdown';
import type {
IADropdown,
OptionInterface,
} from '@src/elements/ia-dropdown/ia-dropdown';
import type { SearchCategory, SearchRequestedDetail } from './models';

import themeStyles from '@src/themes/theme-styles';
import searchIcon from './search.svg';

import '@internetarchive/ia-clearable-text-input';
import '@internetarchive/ia-dropdown';
import '@src/elements/ia-dropdown/ia-dropdown';
import '@src/elements/ia-status-indicator/ia-status-indicator';

/**
Expand Down Expand Up @@ -54,7 +57,7 @@ export class IADropdownSearchBar extends LitElement {
private searchInput!: IaClearableTextInput;

@query('#category-dropdown')
private categoryDropdown?: IaDropdown;
private categoryDropdown?: IADropdown;

/** The effective selected category, falling back to the first in the list. */
private get resolvedCategory(): string {
Expand Down Expand Up @@ -197,7 +200,7 @@ export class IADropdownSearchBar extends LitElement {
* pattern). The parent also binds this property and may re-set it on re-render.
*/
private handleCategorySelected(
e: CustomEvent<{ option: optionInterface }>,
e: CustomEvent<{ option: OptionInterface }>,
): void {
const newCategoryId = e.detail.option.id;
if (newCategoryId === this.resolvedCategory) return;
Expand Down
4 changes: 4 additions & 0 deletions src/elements/ia-dropdown/assets/caret-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/elements/ia-dropdown/assets/caret-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading