diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a7005169..a3a0844a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,144 +1,98 @@ name: Release +# `npm run release` creates and pushes a tag after updating the version and +# CHANGELOG. Start this workflow manually and enter that tag to publish it. on: workflow_dispatch: inputs: - releaseType: - description: 'Release Type' + version_tag: + description: 'Existing release tag to publish, for example v2.6.0' required: true - type: choice - default: 'patch' - options: - - patch - - minor - - major - releaseChannel: - description: 'Release Channel' - required: true - type: choice - default: next - options: - - stable - - next - - nextmajor + type: string permissions: - id-token: write contents: write + id-token: write jobs: release: runs-on: ubuntu-latest + env: + VERSION_TAG: ${{ inputs.version_tag }} steps: - - name: Input parameters - run: echo "${{ toJSON(github.event.inputs) }}" + - name: Validate release tag + shell: bash + run: | + if [[ ! "$VERSION_TAG" =~ ^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then + echo "Invalid version tag: $VERSION_TAG" >&2 + echo "Expected a tag such as v2.6.0 or v2.6.0-beta.1" >&2 + exit 1 + fi - - name: Clone Repository + - name: Checkout repository uses: actions/checkout@v7 with: + ref: refs/tags/${{ inputs.version_tag }} fetch-depth: 0 - - name: Setup Git - run: | - git config --global user.name "github-actions" - git config --global user.email "szoftverhiba+github-actions@gmail.com" - - - name: Get Current Version Number - run: | - CURRENT_VERSION=$(npm pkg get version | cut -d'"' -f 2) - echo "CURRENT_VERSION=$CURRENT_VERSION" >> $GITHUB_ENV - echo $CURRENT_VERSION - - - name: Setup Node version + - name: Setup Node.js uses: actions/setup-node@v6 with: - scope: '@vscode-elements' node-version: 24 registry-url: 'https://registry.npmjs.org' - cache: 'npm' - cache-dependency-path: | - package-lock.json + cache: npm + + - name: Verify release version + shell: bash + run: | + PACKAGE_VERSION=$(node -p "require('./package.json').version") + TAG_VERSION=${VERSION_TAG#v} + if [[ "$PACKAGE_VERSION" != "$TAG_VERSION" ]]; then + echo "Tag version $TAG_VERSION does not match package version $PACKAGE_VERSION" >&2 + exit 1 + fi + echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> "$GITHUB_ENV" - name: Install dependencies run: npm ci - - name: Bump version (Next) - run: | - RELEASE_VERSION=$(npx semver -i prerelease --preid=pre $CURRENT_VERSION) - echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV - npm version $RELEASE_VERSION --git-tag-version=false - if: ${{ github.event.inputs.releaseChannel == 'next' || github.event.inputs.releaseChannel == 'nextmajor' }} + - name: Build + run: npm run build - - name: Bump version (Stable) - run: | - RELEASE_VERSION=$(npx semver $CURRENT_VERSION -i ${{ github.event.inputs.releaseType }}) - echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV - npm version $RELEASE_VERSION --git-tag-version=false - if: ${{ github.event.inputs.releaseChannel == 'stable' }} + - name: Test + run: npm run test - - name: Update Changelog (Stable) - run: node scripts/update-changelog.mjs - if: ${{ github.event.inputs.releaseChannel == 'stable' }} + - name: Test release scripts + run: npm run test:release - - name: Update version number in the base class - run: node scripts/update-version-number.mjs + - name: Lint + run: npm run lint - - name: Build - run: | - npm run build - npm run test - npm run lint - npm pack + - name: Check formatting + run: npm run prettier - - name: Tagging - run: | - git add . - git commit -m "$RELEASE_VERSION" - git tag -a v$RELEASE_VERSION -m "$RELEASE_VERSION" + - name: Pack package + run: npm pack - - name: Push tag + - name: Publish to npmjs + shell: bash run: | - git push - git push origin --tags - - - run: | - export GIT_TAG=$(git describe --tags --abbrev=0) - echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV - - - name: Publish to Npmjs.com (Next) - run: npm publish --access=public --tag=next vscode-elements-elements-${{ env.RELEASE_VERSION }}.tgz + if npm view "nusys-ui@${PACKAGE_VERSION}" version >/dev/null 2>&1; then + echo "nusys-ui@${PACKAGE_VERSION} is already published; skipping npm publish." + else + npm publish "nusys-ui-${PACKAGE_VERSION}.tgz" --access=public --provenance + fi env: NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} - if: ${{ github.event.inputs.releaseChannel == 'next' }} - - name: Publish to Npmjs.com (Next Major) - run: npm publish --access=public --tag=nextmajor vscode-elements-elements-${{ env.RELEASE_VERSION }}.tgz - env: - NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} - if: ${{ github.event.inputs.releaseChannel == 'nextmajor' }} + - name: Extract release notes + run: node scripts/extract-release-notes.mjs "$PACKAGE_VERSION" - - name: Publish to Npmjs.com (Stable) - run: npm publish --access=public vscode-elements-elements-${{ env.RELEASE_VERSION }}.tgz + - name: Create GitHub release env: - NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} - if: ${{ github.event.inputs.releaseChannel == 'stable' }} - - - name: Github Release (Next) - uses: ncipollo/release-action@v1 - if: ${{ github.event.inputs.releaseChannel == 'next' || github.event.inputs.releaseChannel == 'nextmajor' }} - with: - artifacts: './vscode-elements-elements-*' - prerelease: true - draft: true - tag: ${{ env.GIT_TAG }} - generateReleaseNotes: true - - - name: Github Release (Stable) - uses: ncipollo/release-action@v1 - if: ${{ github.event.inputs.releaseChannel == 'stable' }} - with: - artifacts: './vscode-elements-elements-*' - prerelease: false - draft: true - tag: ${{ env.GIT_TAG }} - generateReleaseNotes: true + GH_TOKEN: ${{ github.token }} + run: >- + gh release create "$VERSION_TAG" + "nusys-ui-${PACKAGE_VERSION}.tgz" + --title "$VERSION_TAG" + --notes-file dist/release-notes.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5f50b7a0e..bc67a67fc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,3 +27,16 @@ Writing tests is not required, but we appreciate it if you add tests for new cod affect the user-facing functionality, please update the changelog file. Commit messages aim to follow the [50/72 style](https://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). + +## Publish a release + +Releases are created locally with `npm run release`. The command defaults to a patch release; pass +`minor`, `major`, or an explicit version when needed, for example `npm run release -- minor`. + +The release assistant requires a clean Git working tree. It previews and updates `CHANGELOG.md` from +commits since the latest release, synchronizes `package.json` and `package-lock.json`, and creates a +release commit and annotated tag. After pushing that tag to `origin`, open the GitHub `Release` +workflow, choose **Run workflow**, and enter the existing version tag (for example, `v2.6.0`). The +workflow checks out that tag, runs all verification steps, and publishes the package to npmjs. npm +publish credentials are only used by GitHub Actions; the local command never publishes a package +directly. diff --git a/README.md b/README.md index bb35b5781..6c16ea7d6 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,14 @@ For the end-user documentation, [click here](https://vscode-elements.github.io). This documentation is intended for developers who would like to contribute to or modify the code on their own. +## Documentation + +Details of the changes made in this repository are documented in the [`docs`](docs/) directory. For all other documentation, visit [https://vscode-elements.github.io/](https://vscode-elements.github.io/). + +- [Form control sizes](docs/form-size.md) explains the shared `small`, + `medium`, and `large` sizes, supported components, runtime usage, form groups, + and icon sizing. + VSCode Elements is based on the [Lit](https://lit.dev/) library. The local development environment requires `NodeJS 22` or newer. If you want to use a local copy of the library in your codebase, you can use the `npm link` command. First, navigate to the VSCode Elements directory and run: ```bash @@ -13,7 +21,7 @@ npm link Then, go to the library where you want to use it and run: ```bash -npm link @vscode-elements/elements +npm link nusys-ui ``` > [!WARNING] @@ -21,7 +29,7 @@ npm link @vscode-elements/elements > Multiple packages must be linked with a single command. For example: > > ```bash -> npm link @vscode-elements/elements @vscode-elements/webview-playground +> npm link nusys-ui @vscode-elements/webview-playground > ``` Don't forget to run the build script before using the package. diff --git a/dev/vscode-badge/basic-example.html b/dev/vscode-badge/basic-example.html index 7810dbc93..e3a4c0003 100644 --- a/dev/vscode-badge/basic-example.html +++ b/dev/vscode-badge/basic-example.html @@ -3,7 +3,7 @@ - VSCode Elements + badge/basic-example - VSCode Elements + badge/fallback-styles - <vscode-button-group> Demo + button-group/dropdown-menu

Basic example

- + +
+ + + +
+ diff --git a/dev/vscode-button/autofocus.html b/dev/vscode-button/autofocus.html index 885fd8deb..23e4dbfd8 100644 --- a/dev/vscode-button/autofocus.html +++ b/dev/vscode-button/autofocus.html @@ -3,7 +3,7 @@ - VSCode Elements + button/autofocus

Autofocus

- + Focused +
+ + + +
+ diff --git a/dev/vscode-button/basic-examples.html b/dev/vscode-button/basic-examples.html index 6bdd50a49..3ce57835c 100644 --- a/dev/vscode-button/basic-examples.html +++ b/dev/vscode-button/basic-examples.html @@ -3,7 +3,7 @@ - VSCode Elements + button/basic-examples
- - Primary Button - Secondary Button - +
+ + Primary Button + Secondary Button +
+ + + +
+
+
+ diff --git a/dev/vscode-button/block-button.html b/dev/vscode-button/block-button.html index 2e4edb58f..f56cc47b2 100644 --- a/dev/vscode-button/block-button.html +++ b/dev/vscode-button/block-button.html @@ -3,7 +3,7 @@ - VSCode Elements + button/block-button
- +
@@ -35,7 +35,23 @@ Block Button Secondary Block Button
+
+ + + +
+ diff --git a/dev/vscode-button/fallback-styles.html b/dev/vscode-button/fallback-styles.html index 05d91f766..df0599009 100644 --- a/dev/vscode-button/fallback-styles.html +++ b/dev/vscode-button/fallback-styles.html @@ -3,7 +3,7 @@ - VSCode Elements + button/fallback-styles
-

Primary Button

-

Secondary Button

+
+

Primary Button

+

Secondary Button

+
+
+ + + +
+ diff --git a/dev/vscode-button/icon-button.html b/dev/vscode-button/icon-button.html index 55a9c6d8e..80990c04e 100644 --- a/dev/vscode-button/icon-button.html +++ b/dev/vscode-button/icon-button.html @@ -3,7 +3,7 @@ - VSCode Elements + button/icon-button
- + +
+ + + +
+ diff --git a/dev/vscode-button/reset.html b/dev/vscode-button/reset.html index 6b740b95d..ecb07fdda 100644 --- a/dev/vscode-button/reset.html +++ b/dev/vscode-button/reset.html @@ -3,7 +3,7 @@ - VSCode Elements + button/reset

Reset form

- +

Reset
+
+ + + +
+ diff --git a/dev/vscode-button/slots.html b/dev/vscode-button/slots.html index 7f157b4e1..b42b0834c 100644 --- a/dev/vscode-button/slots.html +++ b/dev/vscode-button/slots.html @@ -3,7 +3,7 @@ - VSCode Elements + button/slots
- + Button label +
+ + + +
+ diff --git a/dev/vscode-button/submit.html b/dev/vscode-button/submit.html index c0db71bf1..09727e71c 100644 --- a/dev/vscode-button/submit.html +++ b/dev/vscode-button/submit.html @@ -3,7 +3,7 @@ - VSCode Elements + button/submit

Reset form

- +

Submit
+
+ + + +
+ diff --git a/dev/vscode-button/variations.html b/dev/vscode-button/variations.html index 6249a8cba..2d4bfa1c0 100644 --- a/dev/vscode-button/variations.html +++ b/dev/vscode-button/variations.html @@ -3,7 +3,7 @@ - VSCode Elements + button/variations
- +
Primary ButtonSecondary Button
+
+ + + +
+ diff --git a/dev/vscode-checkbox/basic-example.html b/dev/vscode-checkbox/basic-example.html index 9b5337022..570ce0a2a 100644 --- a/dev/vscode-checkbox/basic-example.html +++ b/dev/vscode-checkbox/basic-example.html @@ -4,7 +4,7 @@ - VSCode Webview Elements demo page + checkbox/basic-example -
+
+

Basic example

+ + + + + + + +
+ + + +
+
+
+ diff --git a/dev/vscode-checkbox/fallback-styles.html b/dev/vscode-checkbox/fallback-styles.html index ef26a7ec1..f7a9a4bca 100644 --- a/dev/vscode-checkbox/fallback-styles.html +++ b/dev/vscode-checkbox/fallback-styles.html @@ -3,7 +3,7 @@ - VSCode Elements + checkbox/fallback-styles
- Checkbox test +
+ Checkbox test +
+
+ + + +
+ diff --git a/dev/vscode-checkbox/group.html b/dev/vscode-checkbox/group.html index f22da88ea..07569eb94 100644 --- a/dev/vscode-checkbox/group.html +++ b/dev/vscode-checkbox/group.html @@ -3,7 +3,7 @@ - Checkbox + checkbox/group

Checkbox

Listen "change" and "invalid" events

- +

@@ -52,6 +52,22 @@

Listen "change" and "invalid" events

logEvents('#checkbox-3', 'invalid'); logEvents('#native-checkbox-1', 'change'); +
+ + + +
+ diff --git a/dev/vscode-checkbox/toggle.html b/dev/vscode-checkbox/toggle.html index d917ba3bb..d65d9ca42 100644 --- a/dev/vscode-checkbox/toggle.html +++ b/dev/vscode-checkbox/toggle.html @@ -4,7 +4,7 @@ - VSCode Webview Elements — Checkbox Toggle Demo + checkbox/toggle +
+ + + +
+ diff --git a/dev/vscode-checkbox/validate-checked.html b/dev/vscode-checkbox/validate-checked.html index ba7b5944c..15dfeaeae 100644 --- a/dev/vscode-checkbox/validate-checked.html +++ b/dev/vscode-checkbox/validate-checked.html @@ -4,7 +4,7 @@ - VSCode Webview Elements demo page + checkbox/validate-checked diff --git a/dev/vscode-collapsible/actions-stop-propagation.html b/dev/vscode-collapsible/actions-stop-propagation.html index 339432837..115e6e418 100644 --- a/dev/vscode-collapsible/actions-stop-propagation.html +++ b/dev/vscode-collapsible/actions-stop-propagation.html @@ -3,7 +3,7 @@ - VSCode Elements + collapsible/actions-stop-propagation Component demo

Lorem ipsum

Lorem ipsum

+
+ Icon size: + + + +
+ diff --git a/dev/vscode-collapsible/always-show-header-actions.html b/dev/vscode-collapsible/always-show-header-actions.html index 77215ce18..c22745297 100644 --- a/dev/vscode-collapsible/always-show-header-actions.html +++ b/dev/vscode-collapsible/always-show-header-actions.html @@ -3,7 +3,7 @@ - VSCode Elements + collapsible/always-show-header-actions Basic example

lorem ipsum dolor sit

+
+ Icon size: + + + +
+ diff --git a/dev/vscode-collapsible/vscode-collapsible.html b/dev/vscode-collapsible/vscode-collapsible.html index ba2e31345..dd4d3a0fb 100644 --- a/dev/vscode-collapsible/vscode-collapsible.html +++ b/dev/vscode-collapsible/vscode-collapsible.html @@ -3,7 +3,7 @@ - VSCode Elements + collapsible/vscode-collapsible Basic example

lorem ipsum dolor sit

+
+ Icon size: + + + +
+ diff --git a/dev/vscode-context-menu/basic-example.html b/dev/vscode-context-menu/basic-example.html index de709e3a2..ef51d971a 100644 --- a/dev/vscode-context-menu/basic-example.html +++ b/dev/vscode-context-menu/basic-example.html @@ -3,7 +3,7 @@ - Context Menu + context-menu/basic-example - VSCode Elements + context-menu/fallback-styles - VSCode Elements + divider/basic-example - VSCode Elements + divider/fallback-styles - VSCode Elements + form-helper/csp - VSCode Elements + icon/fallback-styles
- +
+ +
+
+ + + +
+ diff --git a/dev/vscode-icon/missing-codicon-css.html b/dev/vscode-icon/missing-codicon-css.html index 42336887a..aae50f237 100644 --- a/dev/vscode-icon/missing-codicon-css.html +++ b/dev/vscode-icon/missing-codicon-css.html @@ -3,7 +3,7 @@ - VSCode Elements + icon/missing-codicon-css diff --git a/dev/vscode-icon/nonce.html b/dev/vscode-icon/nonce.html index 9a9fbda3c..ff14eab9c 100644 --- a/dev/vscode-icon/nonce.html +++ b/dev/vscode-icon/nonce.html @@ -7,7 +7,7 @@ http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'nonce-abc123'; script-src-elem 'nonce-abc123'; font-src 'self' data: 'nonce-abc123'; style-src-elem 'nonce-abc123'" /> - VSCode Elements + icon/nonce

Using nonce property

- + Using nonce property > Hello World Hello World +
+ + + +
+ diff --git a/dev/vscode-label/basic-example.html b/dev/vscode-label/basic-example.html index e75a40797..20a9a0941 100644 --- a/dev/vscode-label/basic-example.html +++ b/dev/vscode-label/basic-example.html @@ -3,7 +3,7 @@ - VSCode Elements + label/basic-example
- - + + Label example +
+ + + +
+ diff --git a/dev/vscode-multi-select/a11y-combobox.html b/dev/vscode-multi-select/a11y-combobox.html index 1ee110eea..969d849d8 100644 --- a/dev/vscode-multi-select/a11y-combobox.html +++ b/dev/vscode-multi-select/a11y-combobox.html @@ -3,7 +3,7 @@ - VSCode Elements + multi-select/a11y-combobox
- + Banana Cherry @@ -34,7 +34,23 @@ Lemon Orange +
+ + + +
+ diff --git a/dev/vscode-multi-select/a11y-select.html b/dev/vscode-multi-select/a11y-select.html index 9bd28cb14..3ae9e73d2 100644 --- a/dev/vscode-multi-select/a11y-select.html +++ b/dev/vscode-multi-select/a11y-select.html @@ -3,7 +3,7 @@ - VSCode Elements + multi-select/a11y-select
- + Banana Cherry @@ -34,7 +34,23 @@ Lemon Orange +
+ + + +
+ diff --git a/dev/vscode-multi-select/autofocus-combobox.html b/dev/vscode-multi-select/autofocus-combobox.html index 4af705b29..c43003386 100644 --- a/dev/vscode-multi-select/autofocus-combobox.html +++ b/dev/vscode-multi-select/autofocus-combobox.html @@ -3,7 +3,7 @@ - multi combo + multi-select/autofocus-combobox
- + Lorem Ipsum Dolor +
+ + + +
+ diff --git a/dev/vscode-multi-select/autofocus-select.html b/dev/vscode-multi-select/autofocus-select.html index 2b85cfe75..b46300a05 100644 --- a/dev/vscode-multi-select/autofocus-select.html +++ b/dev/vscode-multi-select/autofocus-select.html @@ -3,7 +3,7 @@ - multi select + multi-select/autofocus-select
- + Lorem Ipsum Dolor +
+ + + +
+ diff --git a/dev/vscode-multi-select/combobox-suggestion-mode.html b/dev/vscode-multi-select/combobox-suggestion-mode.html index fb24f754a..ebbffc556 100644 --- a/dev/vscode-multi-select/combobox-suggestion-mode.html +++ b/dev/vscode-multi-select/combobox-suggestion-mode.html @@ -3,7 +3,7 @@ - VSCode Elements + multi-select/combobox-suggestion-mode
- + Afghanistan Albania @@ -227,7 +227,23 @@ logEvents('vscode-multi-select', 'change'); logEvents('vscode-multi-select', 'vsc-multi-select-create-option'); +
+ + + +
+ diff --git a/dev/vscode-multi-select/combobox.html b/dev/vscode-multi-select/combobox.html index 0b25f7e12..437fe5aa8 100644 --- a/dev/vscode-multi-select/combobox.html +++ b/dev/vscode-multi-select/combobox.html @@ -3,7 +3,7 @@ - VSCode Elements + multi-select/combobox
- + Lorem Ipsum @@ -37,7 +37,23 @@ console.log(sl.value); }); +
+ + + +
+ diff --git a/dev/vscode-multi-select/events.html b/dev/vscode-multi-select/events.html index fa0814c1a..323d65321 100644 --- a/dev/vscode-multi-select/events.html +++ b/dev/vscode-multi-select/events.html @@ -3,7 +3,7 @@ - MultiSelect + multi-select/events

MultiSelect

- +

Change event

Lorem @@ -36,6 +36,11 @@

Change event

+
+ + + +
@@ -52,5 +57,16 @@

Invalid event

logEvents('#select-2', 'invalid');
+ diff --git a/dev/vscode-multi-select/fallback-styles.html b/dev/vscode-multi-select/fallback-styles.html index 0b973d848..83480c744 100644 --- a/dev/vscode-multi-select/fallback-styles.html +++ b/dev/vscode-multi-select/fallback-styles.html @@ -3,7 +3,7 @@ - VSCode Elements + multi-select/fallback-styles
- - Lorem - Ipsum - Dolor - +
+ + Lorem + Ipsum + Dolor + +
+
+ + + +
+ diff --git a/dev/vscode-multi-select/issue-510.html b/dev/vscode-multi-select/issue-510.html index 27b4d8433..450f037f1 100644 --- a/dev/vscode-multi-select/issue-510.html +++ b/dev/vscode-multi-select/issue-510.html @@ -3,7 +3,7 @@ - multi combo + multi-select/issue-510
- + Lorem Ipsum Dolor +
+ + + +
+ diff --git a/dev/vscode-multi-select/long-text.html b/dev/vscode-multi-select/long-text.html index c51497310..74085084d 100644 --- a/dev/vscode-multi-select/long-text.html +++ b/dev/vscode-multi-select/long-text.html @@ -3,7 +3,7 @@ - multi select + multi-select/long-text
- + Lorem Ipsum @@ -41,6 +41,11 @@ > +
+ + + +
+ diff --git a/dev/vscode-multi-select/open-prop.html b/dev/vscode-multi-select/open-prop.html index 032eb0bfb..b039c2aa0 100644 --- a/dev/vscode-multi-select/open-prop.html +++ b/dev/vscode-multi-select/open-prop.html @@ -3,7 +3,7 @@ - VSCode Elements + multi-select/open-prop

Open by default

- + Lorem Ipsum Dolor +
+ + + +
+ diff --git a/dev/vscode-multi-select/set-option.html b/dev/vscode-multi-select/set-option.html index 76d7ea705..38845e47f 100644 --- a/dev/vscode-multi-select/set-option.html +++ b/dev/vscode-multi-select/set-option.html @@ -3,7 +3,7 @@ - Multi Select + multi-select/set-option

Multi Select

description

- + A B @@ -42,6 +42,22 @@

Multi Select

select.value = ['A', 'B', 'C']; // fill with all values console.log(select.value); // show all set now +
+ + + +
+ diff --git a/dev/vscode-multi-select/set-value-before-options.html b/dev/vscode-multi-select/set-value-before-options.html index bcd4a7051..6f22d6979 100644 --- a/dev/vscode-multi-select/set-value-before-options.html +++ b/dev/vscode-multi-select/set-value-before-options.html @@ -3,7 +3,7 @@ - Select + multi-select/set-value-before-options

Select

- + +
+ + + +
+ diff --git a/dev/vscode-multi-select/sync-options.html b/dev/vscode-multi-select/sync-options.html index 900915f45..f0e009697 100644 --- a/dev/vscode-multi-select/sync-options.html +++ b/dev/vscode-multi-select/sync-options.html @@ -3,7 +3,7 @@ - VSCode Elements + multi-select/sync-options

Sync options

- + Lorem Ipsum @@ -46,7 +46,23 @@

Sync options

op3.selected = true; }); +
+ + + +
+ diff --git a/dev/vscode-progress-bar/basic-example.html b/dev/vscode-progress-bar/basic-example.html index 51ba11e37..c958821ce 100644 --- a/dev/vscode-progress-bar/basic-example.html +++ b/dev/vscode-progress-bar/basic-example.html @@ -3,7 +3,7 @@ - <vscode-progress-bar> Demo + progress-bar/basic-example - VSCode Elements + progress-bar/fallback-styles - VSCode Elements + progress-ring/fallback-styles - VSCode Elements + radio-group/checked

Component demo

- +
- + Lorem IpsumComponent demo console.log(Array.from(fd.entries)); }); +
+ + + +
@@ -80,5 +85,16 @@

Component demo

+ diff --git a/dev/vscode-radio-group/default-checked.html b/dev/vscode-radio-group/default-checked.html index 9cf7c08e8..5d34e55cb 100644 --- a/dev/vscode-radio-group/default-checked.html +++ b/dev/vscode-radio-group/default-checked.html @@ -3,7 +3,7 @@ - VSCode Elements + radio-group/default-checked

Component demo

- +
Lorem @@ -51,6 +51,11 @@

Component demo

console.log(Array.from(fd.entries)); }); +
+ + + +
@@ -82,5 +87,16 @@

Component demo

+ diff --git a/dev/vscode-radio-group/issue-511.html b/dev/vscode-radio-group/issue-511.html index f26893c86..5bc66303b 100644 --- a/dev/vscode-radio-group/issue-511.html +++ b/dev/vscode-radio-group/issue-511.html @@ -3,7 +3,7 @@ - VSCode Elements + radio-group/issue-511

Component demo

- + +
+ + + +
+ diff --git a/dev/vscode-radio/fallback-styles.html b/dev/vscode-radio/fallback-styles.html index 23b810c78..249cbf5a5 100644 --- a/dev/vscode-radio/fallback-styles.html +++ b/dev/vscode-radio/fallback-styles.html @@ -3,7 +3,7 @@ - VSCode Elements + radio/fallback-styles

%%TITLE%%

- - Lorem - Ipsum - +
+ + Lorem + Ipsum + +
+
+ + + +
+ diff --git a/dev/vscode-scrollable/always-visible.html b/dev/vscode-scrollable/always-visible.html index cb87674e0..1a39a3eb3 100644 --- a/dev/vscode-scrollable/always-visible.html +++ b/dev/vscode-scrollable/always-visible.html @@ -3,7 +3,7 @@ - VSCode Elements + scrollable/always-visible - VSCode Elements + scrollable/change-event - VSCode Elements + scrollable/csp - VSCode Elements + scrollable/fallback-styles - VSCode Elements + single-select/combobox-mode/a11y
- + Banana Cherry @@ -34,7 +34,23 @@ Lemon Orange +
+ + + +
+ diff --git a/dev/vscode-single-select/combobox-mode/autofocus-combobox.html b/dev/vscode-single-select/combobox-mode/autofocus-combobox.html index d3666cd38..c15f90aad 100644 --- a/dev/vscode-single-select/combobox-mode/autofocus-combobox.html +++ b/dev/vscode-single-select/combobox-mode/autofocus-combobox.html @@ -3,7 +3,7 @@ - single combo + single-select/combobox-mode/autofocus-combobox
- + Lorem Ipsum Dolor +
+ + + +
+ diff --git a/dev/vscode-single-select/combobox-mode/combobox-suggestion-mode.html b/dev/vscode-single-select/combobox-mode/combobox-suggestion-mode.html index 294941f5e..be530fc7d 100644 --- a/dev/vscode-single-select/combobox-mode/combobox-suggestion-mode.html +++ b/dev/vscode-single-select/combobox-mode/combobox-suggestion-mode.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/combobox-mode/combobox-suggestion-mode
- + Afghanistan Albania @@ -233,6 +233,11 @@ console.log(ev); }); +
+ + + +
@@ -437,5 +442,16 @@
+ diff --git a/dev/vscode-single-select/combobox-mode/combobox.html b/dev/vscode-single-select/combobox-mode/combobox.html index 93ce12c1d..10ff8308f 100644 --- a/dev/vscode-single-select/combobox-mode/combobox.html +++ b/dev/vscode-single-select/combobox-mode/combobox.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/combobox-mode/combobox
- + Lorem Ipsum @@ -37,7 +37,23 @@ console.log(sl.value); }); +
+ + + +
+ diff --git a/dev/vscode-single-select/combobox-mode/deleting-value.html b/dev/vscode-single-select/combobox-mode/deleting-value.html index d4208d7fd..c1f649be2 100644 --- a/dev/vscode-single-select/combobox-mode/deleting-value.html +++ b/dev/vscode-single-select/combobox-mode/deleting-value.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/combobox-mode/deleting-value
- + Banana Cherry @@ -51,8 +51,24 @@ logEvents('#native-select', 'change'); logEvents('#native-select', 'input'); +
+ + + +
+ diff --git a/dev/vscode-single-select/issue-530.html b/dev/vscode-single-select/issue-530.html index 93d43169b..bfb9954c5 100644 --- a/dev/vscode-single-select/issue-530.html +++ b/dev/vscode-single-select/issue-530.html @@ -3,7 +3,7 @@ - vscode-single-select stale index repro + single-select/issue-530

vscode-single-select stale index repro

-
+
+
+ + + +
@@ -91,6 +96,12 @@

vscode-single-select stale index repro

throw e; } }; + + document.querySelectorAll('.size-buttons button').forEach((button) => { + button.addEventListener('click', () => { + sel.setAttribute('size', button.dataset.size); + }); + }); diff --git a/dev/vscode-single-select/select-mode/a11y.html b/dev/vscode-single-select/select-mode/a11y.html index 01fcb4e7f..d9ba3ec4f 100644 --- a/dev/vscode-single-select/select-mode/a11y.html +++ b/dev/vscode-single-select/select-mode/a11y.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/a11y
- + Banana Cherry @@ -34,7 +34,23 @@ Lemon Orange +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/autofocus-select.html b/dev/vscode-single-select/select-mode/autofocus-select.html index 5cc564664..c2b6b1d4d 100644 --- a/dev/vscode-single-select/select-mode/autofocus-select.html +++ b/dev/vscode-single-select/select-mode/autofocus-select.html @@ -3,7 +3,7 @@ - single select + single-select/select-mode/autofocus-select
- + Lorem Ipsum Dolor +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/basic-example.html b/dev/vscode-single-select/select-mode/basic-example.html index 5d50c9c6c..4f11055aa 100644 --- a/dev/vscode-single-select/select-mode/basic-example.html +++ b/dev/vscode-single-select/select-mode/basic-example.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/basic-example
- + Lorem Ipsum Dolor Sit - + +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/default-empty.html b/dev/vscode-single-select/select-mode/default-empty.html index 53c9e62a5..122c8d01b 100644 --- a/dev/vscode-single-select/select-mode/default-empty.html +++ b/dev/vscode-single-select/select-mode/default-empty.html @@ -3,7 +3,7 @@ - Select + single-select/select-mode/default-empty

Select

- + lorem ipsum dolor +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/description.html b/dev/vscode-single-select/select-mode/description.html index 074694f8d..d8c9a48c7 100644 --- a/dev/vscode-single-select/select-mode/description.html +++ b/dev/vscode-single-select/select-mode/description.html @@ -3,7 +3,7 @@ - Single Select + single-select/select-mode/description Description vscode-option registered after vscode-single-select!

- + LoremDescription >Dolor +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/disabled-options.html b/dev/vscode-single-select/select-mode/disabled-options.html index 3767e1a8c..d5a7b7bda 100644 --- a/dev/vscode-single-select/select-mode/disabled-options.html +++ b/dev/vscode-single-select/select-mode/disabled-options.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/disabled-options
- + Lorem Ipsum @@ -38,6 +38,11 @@ console.log(sl.value); }); +
+ + + +
@@ -51,5 +56,16 @@
+ diff --git a/dev/vscode-single-select/select-mode/dispatch-invalid-event.html b/dev/vscode-single-select/select-mode/dispatch-invalid-event.html index 09146b746..1f0abd8b8 100644 --- a/dev/vscode-single-select/select-mode/dispatch-invalid-event.html +++ b/dev/vscode-single-select/select-mode/dispatch-invalid-event.html @@ -3,7 +3,7 @@ - Single Select + single-select/select-mode/dispatch-invalid-event

Single Select

Dispatch "invalid" event

- +

@@ -39,6 +39,22 @@

Dispatch "invalid" event

console.log(ev); }); +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/element-value.html b/dev/vscode-single-select/select-mode/element-value.html index a01655e88..f5c6a6077 100644 --- a/dev/vscode-single-select/select-mode/element-value.html +++ b/dev/vscode-single-select/select-mode/element-value.html @@ -4,7 +4,7 @@ - <vscode-single-select> Demo + single-select/select-mode/element-value + diff --git a/dev/vscode-single-select/select-mode/empty-label.html b/dev/vscode-single-select/select-mode/empty-label.html index 2b3010115..7e7d2bf3f 100644 --- a/dev/vscode-single-select/select-mode/empty-label.html +++ b/dev/vscode-single-select/select-mode/empty-label.html @@ -3,7 +3,7 @@ - Single Select + single-select/select-mode/empty-label Single Select

Basic example

- + lorem ipsum +
+ + + +

Combobox example

@@ -44,5 +49,16 @@

Combobox example

ipsum
+ diff --git a/dev/vscode-single-select/select-mode/initial-form-value.html b/dev/vscode-single-select/select-mode/initial-form-value.html index b1d828bdf..8d6976c5f 100644 --- a/dev/vscode-single-select/select-mode/initial-form-value.html +++ b/dev/vscode-single-select/select-mode/initial-form-value.html @@ -4,7 +4,7 @@ - <vscode-single-select> Demo + single-select/select-mode/initial-form-value + diff --git a/dev/vscode-single-select/select-mode/issue-514.html b/dev/vscode-single-select/select-mode/issue-514.html index 1dc1fc6a7..fe9a45da4 100644 --- a/dev/vscode-single-select/select-mode/issue-514.html +++ b/dev/vscode-single-select/select-mode/issue-514.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/issue-514

Component demo

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

- - Option 1 - Option 2 - Option 3 - Option 4 - -
-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

-

line

+
+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+ + Option 1 + Option 2 + Option 3 + Option 4 + +
+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+

line

+
+ +
+
+ + +
-
+ diff --git a/dev/vscode-single-select/select-mode/large-list-within-collapsible.html b/dev/vscode-single-select/select-mode/large-list-within-collapsible.html index e4c88587f..e0e521d60 100644 --- a/dev/vscode-single-select/select-mode/large-list-within-collapsible.html +++ b/dev/vscode-single-select/select-mode/large-list-within-collapsible.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/large-list-within-collapsible
- + Afghanistan @@ -235,6 +235,11 @@ console.log(ev); }); +
+ + + +
@@ -439,5 +444,16 @@
+ diff --git a/dev/vscode-single-select/select-mode/large-list.html b/dev/vscode-single-select/select-mode/large-list.html index 0665dde49..e9c097ffc 100644 --- a/dev/vscode-single-select/select-mode/large-list.html +++ b/dev/vscode-single-select/select-mode/large-list.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/large-list
- + Afghanistan Albania @@ -233,6 +233,11 @@ console.log(ev); }); +
+ + + +
@@ -437,5 +442,16 @@
+ diff --git a/dev/vscode-single-select/select-mode/long-text.html b/dev/vscode-single-select/select-mode/long-text.html index 464adfaae..548f05265 100644 --- a/dev/vscode-single-select/select-mode/long-text.html +++ b/dev/vscode-single-select/select-mode/long-text.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/long-text
- + Lorem Ipsum @@ -36,7 +36,23 @@ elit. +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/open-prop.html b/dev/vscode-single-select/select-mode/open-prop.html index c6e07fbb9..c309be94c 100644 --- a/dev/vscode-single-select/select-mode/open-prop.html +++ b/dev/vscode-single-select/select-mode/open-prop.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/open-prop

Open by default

- + Lorem Ipsum Dolor +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/open-when-enter-key-pressed.html b/dev/vscode-single-select/select-mode/open-when-enter-key-pressed.html index 40d8718a5..1d0c0636b 100644 --- a/dev/vscode-single-select/select-mode/open-when-enter-key-pressed.html +++ b/dev/vscode-single-select/select-mode/open-when-enter-key-pressed.html @@ -3,7 +3,7 @@ - Select + single-select/select-mode/open-when-enter-key-pressed

Select

- + Lorem +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/option-with-empty-value.html b/dev/vscode-single-select/select-mode/option-with-empty-value.html index 6d830f84f..a2e5c252c 100644 --- a/dev/vscode-single-select/select-mode/option-with-empty-value.html +++ b/dev/vscode-single-select/select-mode/option-with-empty-value.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/option-with-empty-value Option with empty value

VSCode Elements SingleSelect

- + --- Choose an option --- @@ -42,6 +42,11 @@

VSCode Elements SingleSelect

+
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/position-above.html b/dev/vscode-single-select/select-mode/position-above.html index 0b1e6d155..f73e38325 100644 --- a/dev/vscode-single-select/select-mode/position-above.html +++ b/dev/vscode-single-select/select-mode/position-above.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/position-above
- +

Scroll down

 

@@ -172,7 +172,23 @@

 

 

+
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/required-flag.html b/dev/vscode-single-select/select-mode/required-flag.html index 0e6e56aa8..facb704bf 100644 --- a/dev/vscode-single-select/select-mode/required-flag.html +++ b/dev/vscode-single-select/select-mode/required-flag.html @@ -3,7 +3,7 @@ - Required + single-select/select-mode/required-flag - +

+

+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/scroll-demo.html b/dev/vscode-single-select/select-mode/scroll-demo.html index 725f82d1c..72badf972 100644 --- a/dev/vscode-single-select/select-mode/scroll-demo.html +++ b/dev/vscode-single-select/select-mode/scroll-demo.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/scroll-demo
- + Option 1 Option 2 @@ -48,7 +48,23 @@ Option 19 Option 20 +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/scroll-to-the-selected-option.html b/dev/vscode-single-select/select-mode/scroll-to-the-selected-option.html index 3c5f512dc..714a3f181 100644 --- a/dev/vscode-single-select/select-mode/scroll-to-the-selected-option.html +++ b/dev/vscode-single-select/select-mode/scroll-to-the-selected-option.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/scroll-to-the-selected-option
- + Afghanistan Albania @@ -48,7 +48,23 @@ Benin Bhutan +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/set-empty-value-before-options.html b/dev/vscode-single-select/select-mode/set-empty-value-before-options.html index 94e5ed87d..124ff68ae 100644 --- a/dev/vscode-single-select/select-mode/set-empty-value-before-options.html +++ b/dev/vscode-single-select/select-mode/set-empty-value-before-options.html @@ -3,7 +3,7 @@ - Select + single-select/select-mode/set-empty-value-before-options

Select

- +
+
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/set-value-before-options.html b/dev/vscode-single-select/select-mode/set-value-before-options.html index 23c76afa7..51d5eb5be 100644 --- a/dev/vscode-single-select/select-mode/set-value-before-options.html +++ b/dev/vscode-single-select/select-mode/set-value-before-options.html @@ -3,7 +3,7 @@ - Select + single-select/select-mode/set-value-before-options

Select

- + +
+ + + +
+ diff --git a/dev/vscode-single-select/select-mode/sync-options.html b/dev/vscode-single-select/select-mode/sync-options.html index 3cc439ef1..41013df8d 100644 --- a/dev/vscode-single-select/select-mode/sync-options.html +++ b/dev/vscode-single-select/select-mode/sync-options.html @@ -3,7 +3,7 @@ - VSCode Elements + single-select/select-mode/sync-options

Sync options

- + +
+ + + +
+ diff --git a/dev/vscode-textfield/validation-on-value-change.html b/dev/vscode-textfield/validation-on-value-change.html index 0555827e1..2c3afaaa9 100644 --- a/dev/vscode-textfield/validation-on-value-change.html +++ b/dev/vscode-textfield/validation-on-value-change.html @@ -3,7 +3,7 @@ - <vscode-textfield> Demo + textfield/validation-on-value-change

Textfield

Validation on value change

- +