diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d1a59e..30847a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,7 +67,7 @@ jobs: - run: pnpm install --frozen-lockfile - name: Install Playwright browsers - run: pnpm dlx playwright install --with-deps chromium + run: pnpm exec playwright install --with-deps chromium - name: Run tests run: pnpm test diff --git a/package.json b/package.json index e764e9a..0fb7498 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "./EpNotification.js": "./dist/EpNotification.js", "./EpToast.js": "./dist/EpToast.js", "./EpToolbarSelect.js": "./dist/EpToolbarSelect.js", + "./EpSelect.js": "./dist/EpSelect.js", "./EpUserBadge.js": "./dist/EpUserBadge.js", "./EpTheme.js": "./dist/EpTheme.js", "./EpEditor.js": "./dist/EpEditor.js", diff --git a/src/EpSelect.ts b/src/EpSelect.ts new file mode 100644 index 0000000..5c6b6bd --- /dev/null +++ b/src/EpSelect.ts @@ -0,0 +1,249 @@ +import { LitElement, html, css } from 'lit'; +import { customElement, property, state } from 'lit/decorators.js'; +import { classMap } from 'lit/directives/class-map.js'; + +export interface EpSelectOption { + value: string; + label: string; + disabled?: boolean; +} + +/** + * `` — a styled form select, matching Etherpad colibris's + * nice-select look (the plugin Etherpad uses to skin native `