diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02968b3001..d345bab4cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,27 +29,5 @@ jobs: token: ${{ steps.app-token.outputs.token }} fetch-depth: 0 - - name: Install - uses: ./.github/actions/install - - - name: Run lint check - run: pnpm run lint:check - - - name: Run format check - run: pnpm run format:check - - - name: Run tests - run: pnpm run test:unit - - - name: Run e2e tests - timeout-minutes: 15 - uses: ./.github/actions/run-e2e-tests - - name: release - if: - ${{ github.ref_name == 'main' && github.actor != 'support-empathy' && - !startsWith(github.event.head_commit.message, 'chore(release):') }} - uses: ./.github/actions/release-alpha - with: - npm_token: ${{ secrets.NPM_TOKEN_GRANULAR_ACCESS }} - github_token: ${{ steps.app-token.outputs.token }} + uses: ./.github/workflows/publish-release.yml diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index de90b7a562..64f47b1bfd 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -1,5 +1,8 @@ name: Release a new version -on: [workflow_dispatch] +on: + push: + branches: + - feat/migrate-tailwind jobs: release: runs-on: ubuntu-latest @@ -25,20 +28,6 @@ jobs: - name: Install uses: ./.github/actions/install - - name: lint packages - run: pnpm run lint:check - - - name: Run format check - run: pnpm run format:check - - - name: Run tests - run: pnpm run test:unit - - - name: Run e2e tests - if: false # Temporarily disabled until the e2e are reviewed and updated so that it does not fail intermittently - timeout-minutes: 15 - uses: ./.github/actions/run-e2e-tests - - name: configure git user run: | git config --local user.email "x@empathy.co" @@ -52,11 +41,4 @@ jobs: NPM_TOKEN: ${{ secrets.NPM_TOKEN_GRANULAR_ACCESS }} - name: publish the release - run: pnpm run publish-release - - - name: push tags - uses: ad-m/github-push-action@master - with: - github_token: ${{ steps.app-token.outputs.token }} - branch: ${{ github.ref }} - tags: true + run: pnpm run publish-release \ No newline at end of file diff --git a/packages/x-components/.postcssrc.js b/packages/x-components/.postcssrc.js deleted file mode 100644 index b5c4eba7df..0000000000 --- a/packages/x-components/.postcssrc.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - plugins: [ - require('tailwindcss'), - require('tailwindcss/nesting'), - require('autoprefixer'), - require('postcss-logical'), - require('postcss-dir-pseudo-class'), - ], -} diff --git a/packages/x-components/CHANGELOG.md b/packages/x-components/CHANGELOG.md index 8b308584fb..45c0510f00 100644 --- a/packages/x-components/CHANGELOG.md +++ b/packages/x-components/CHANGELOG.md @@ -5753,7 +5753,7 @@ All notable changes to this project will be documented in this file. See - **design-system:** add option list tokens - **design-system:** add `x-grid` Design System tokens - **design-system:** add `x-result` Design System tokens -- **design-system:** improve `x-icon` token +- **design-system:** improve `xds:icon` token - **design-system:** add `x-row` and `x-row-item` tokens - **design-system:** add `x-picture` Design System tokens - **facets:** add `SortedFilters` component @@ -5827,11 +5827,11 @@ All notable changes to this project will be documented in this file. See - **design-system:** add `input-group` variants - **design-system:** add `justified` variant to `x-filter` component -- **design-system:** add `x-button` css class in the necessary elements +- **design-system:** add `xds:button` css class in the necessary elements - **design-system:** add `x-filter` tokens and CSS - **design-system:** add `x-suggestion` design tokens - **design-system:** add `x-tag` variants tokens and CSS styles -- **design-system:** add default `x-facet` tokens and CSS and `x-icon` variants +- **design-system:** add default `x-facet` tokens and CSS and `xds:icon` variants - **design-system:** add dropdown design tokens - **design-system:** add input default tokens and CSS - **design-system:** add input variants tokens and CSS diff --git a/packages/x-components/build/rollup.config.ts b/packages/x-components/build/rollup.config.ts index e970999269..8fcd5be916 100644 --- a/packages/x-components/build/rollup.config.ts +++ b/packages/x-components/build/rollup.config.ts @@ -68,7 +68,13 @@ export const rollupConfig: RollupOptions = { declarationDir: typesOutputDir, target: 'es2020', }, - exclude: ['node_modules', './src/main.ts', '**/__tests__/**', '**/__stubs__/**'], + exclude: [ + 'node_modules', + './src/main.ts', + '**/__tests__/**', + '**/__stubs__/**', + '**/src/tailwind/tailwind.config.ts', + ], }, }), vue3({ diff --git a/packages/x-components/package.json b/packages/x-components/package.json index b86caf018f..5676cd4fb8 100644 --- a/packages/x-components/package.json +++ b/packages/x-components/package.json @@ -1,6 +1,6 @@ { "name": "@empathyco/x-components", - "version": "6.0.0-alpha.188", + "version": "6.0.0-alpha.188-RC.MM.3", "description": "Empathy X Components", "author": "Empathy Systems Corporation S.L.", "license": "Apache-2.0", @@ -102,6 +102,8 @@ "@empathyco/x-tailwindcss": "^2.0.0-alpha.21", "@microsoft/api-documenter": "7.28.2", "@microsoft/api-extractor": "7.55.2", + "@tailwindcss/postcss": "4.1.17", + "@tailwindcss/vite": "4.1.17", "@testing-library/jest-dom": "6.9.1", "@types/aria-query": "5.0.4", "@types/jest": "29.5.14", @@ -109,16 +111,12 @@ "@vitejs/plugin-vue": "5.2.4", "@vue/test-utils": "2.4.6", "@vue/vue3-jest": "29.2.6", - "autoprefixer": "10.4.23", "convert-source-map": "2.0.0", "cypress": "15.8.1", "esbuild": "0.27.2", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "jest-scss-transform": "1.0.4", - "postcss": "8.5.6", - "postcss-dir-pseudo-class": "7.0.2", - "postcss-logical": "4.0.2", "rimraf": "3.0.2", "rollup": "4.54.0", "rollup-plugin-copy": "3.5.0", @@ -128,7 +126,7 @@ "rollup-plugin-vue": "6.0.0", "sass": "1.97.1", "start-server-and-test": "2.1.3", - "tailwindcss": "3.4.19", + "tailwindcss": "4.1.17", "ts-jest": "29.4.6", "ts-node": "10.9.2", "typescript": "5.9.3", diff --git a/packages/x-components/src/components/__tests__/base-switch.spec.ts b/packages/x-components/src/components/__tests__/base-switch.spec.ts index 921a1a286a..1415bbdfb6 100644 --- a/packages/x-components/src/components/__tests__/base-switch.spec.ts +++ b/packages/x-components/src/components/__tests__/base-switch.spec.ts @@ -30,12 +30,12 @@ describe('testing Switch component', () => { expect(wrapper.attributes('role')).toBe('switch') expect(wrapper.attributes('aria-checked')).toBeFalsy() expect(wrapper.classes('x-switch--is-selected')).toBe(false) - expect(wrapper.classes('x-selected')).toBe(false) + expect(wrapper.classes('xds:selected')).toBe(false) await wrapper.trigger('click') expect(wrapper.attributes('aria-checked')).toBe('true') expect(wrapper.classes('x-switch--is-selected')).toBe(true) - expect(wrapper.classes('x-selected')).toBe(true) + expect(wrapper.classes('xds:selected')).toBe(true) }) it('supports v-model syntax', async () => { @@ -46,12 +46,12 @@ describe('testing Switch component', () => { expect(wrapper.attributes('role')).toBe('switch') expect(wrapper.attributes('aria-checked')).toBeFalsy() expect(wrapper.classes('x-switch--is-selected')).toBe(false) - expect(wrapper.classes('x-selected')).toBe(false) + expect(wrapper.classes('xds:selected')).toBe(false) await wrapper.trigger('click') expect(wrapper.attributes('aria-checked')).toBe('true') expect(wrapper.classes('x-switch--is-selected')).toBe(true) - expect(wrapper.classes('x-selected')).toBe(true) + expect(wrapper.classes('xds:selected')).toBe(true) }) }) diff --git a/packages/x-components/src/components/base-slider.vue b/packages/x-components/src/components/base-slider.vue index 761efbba08..f772e3eb80 100644 --- a/packages/x-components/src/components/base-slider.vue +++ b/packages/x-components/src/components/base-slider.vue @@ -306,7 +306,7 @@ manually. (() => ({ - 'x-switch--is-selected x-selected': props.modelValue, + 'x-switch--is-selected xds:selected': props.modelValue, })) /** diff --git a/packages/x-components/src/components/column-picker/base-column-picker-list.vue b/packages/x-components/src/components/column-picker/base-column-picker-list.vue index 4ecbbd1c02..d3be543c5e 100644 --- a/packages/x-components/src/components/column-picker/base-column-picker-list.vue +++ b/packages/x-components/src/components/column-picker/base-column-picker-list.vue @@ -1,11 +1,11 @@