Skip to content

Commit 013011e

Browse files
committed
remove obsolete renaming steps for KolTable and KolModal from migration script
0 parents  commit 013011e

File tree

281 files changed

+20839
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+20839
-0
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/assets/**
2+
**/complex-form/**

.eslintrc.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
const config = require('@leanup/stack/.eslintrc');
2+
3+
config.parserOptions = {
4+
tsconfigRootDir: __dirname,
5+
};
6+
7+
config.overrides = config.overrides || [];
8+
config.overrides.push({
9+
extends: ['plugin:react/recommended', 'plugin:jsx-a11y/recommended'],
10+
files: ['**/*.tsx'],
11+
parserOptions: {
12+
ecmaFeatures: {
13+
jsx: true,
14+
},
15+
},
16+
rules: {
17+
'@typescript-eslint/consistent-type-imports': 'error',
18+
'@typescript-eslint/no-unsafe-member-access': 'error',
19+
'react/no-unused-state': 'error',
20+
},
21+
});
22+
23+
config.plugins = config.plugins || [];
24+
config.plugins.push('react');
25+
config.plugins.push('jsx-a11y');
26+
27+
config.rules = config.rules || {};
28+
config.rules.eqeqeq = 'error';
29+
30+
config.settings = {
31+
react: {
32+
version: 'detect',
33+
},
34+
};
35+
36+
module.exports = config;
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# =============================================================================
2+
# KoliBri Migration Test Workflow
3+
# =============================================================================
4+
# This workflow performs the migration and then checks code quality.
5+
# It is triggered on push and pull requests to the main branch.
6+
# =============================================================================
7+
8+
name: Migration Test
9+
10+
on:
11+
push:
12+
branches: [main]
13+
pull_request:
14+
branches: [main]
15+
workflow_dispatch: # Allows manual triggering of the workflow
16+
17+
jobs:
18+
# ---------------------------------------------------------------------------
19+
# Migration and Quality Checks
20+
# ---------------------------------------------------------------------------
21+
migration-test:
22+
name: Migration & Quality Checks
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
# -----------------------------------------------------------------------
27+
# 1. SETUP
28+
# -----------------------------------------------------------------------
29+
# Checkout repository and setup Node.js with pnpm
30+
31+
- name: Checkout repository
32+
uses: actions/checkout@v4
33+
34+
- name: Setup pnpm
35+
uses: pnpm/action-setup@v4
36+
with:
37+
version: 10
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: '22'
43+
cache: 'pnpm'
44+
45+
# -----------------------------------------------------------------------
46+
# 2. INSTALL DEPENDENCIES
47+
# -----------------------------------------------------------------------
48+
49+
- name: Install dependencies
50+
run: pnpm i
51+
52+
# -----------------------------------------------------------------------
53+
# 3. RUN MIGRATION
54+
# -----------------------------------------------------------------------
55+
# Runs the KoliBri CLI migration followed by the fix.sh script:
56+
# - npx @public-ui/kolibri-cli migrate src: Automatic code migration
57+
# - fix.sh: Additional cleanup (deprecated components, themes, etc.)
58+
59+
- name: Run KoliBri CLI migration
60+
run: CI=false npx @public-ui/kolibri-cli@latest migrate src
61+
62+
- name: Run fix script
63+
run: |
64+
chmod +x fix.sh
65+
./fix.sh
66+
67+
# -----------------------------------------------------------------------
68+
# 4. QUALITY CHECKS
69+
# -----------------------------------------------------------------------
70+
# Runs various quality checks
71+
72+
# - name: TypeScript type check
73+
# run: pnpm lint:tsc
74+
75+
# - name: ESLint check
76+
# run: pnpm lint:eslint
77+
78+
# - name: Stylelint check
79+
# run: pnpm lint:stylelint
80+
81+
- name: Prettier format check
82+
run: pnpm format
83+
84+
# -----------------------------------------------------------------------
85+
# 5. BUILD
86+
# -----------------------------------------------------------------------
87+
# Builds the application to ensure everything compiles
88+
89+
- name: Build application
90+
run: pnpm build
91+
92+
# -----------------------------------------------------------------------
93+
# 6. E2E TESTS
94+
# -----------------------------------------------------------------------
95+
# Runs End-to-End tests with Playwright
96+
97+
# - name: Install Playwright browsers
98+
# run: pnpm exec playwright install chromium
99+
100+
# - name: Run E2E tests
101+
# run: pnpm test:e2e
102+
103+
# - name: Upload Playwright report
104+
# uses: actions/upload-artifact@v4
105+
# if: failure()
106+
# with:
107+
# name: playwright-report
108+
# path: playwright-report/
109+
# retention-days: 7

.gitignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Next
2+
.next
3+
4+
# GraphQL
5+
src/__generated__
6+
7+
# IDE's
8+
.idea
9+
.project
10+
*.sublime-*
11+
*.code-*
12+
13+
# Node.js
14+
node_modules
15+
npm-debug.log
16+
17+
# Cache
18+
.sass-cache
19+
.cache
20+
21+
# Operating system
22+
.DS_Store
23+
Thumbs.db
24+
25+
# Other
26+
/.husky/
27+
/.reports/
28+
.env
29+
.eslintcache
30+
/dist/
31+
/public/assets/
32+
*~
33+
*.log
34+
*.tgz
35+
*.zip
36+
37+
.kolibri.migrate.json
38+
/test-results/
39+
/playwright-report/
40+
/blob-report/
41+
/playwright/.cache/

.knip.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"ignore": [
4+
"src/assets/**",
5+
"src/scenarios/appointment-form/AppointmentForm.tsx",
6+
"src/scenarios/appointment-form/appointmentService.ts",
7+
"src/scenarios/appointment-form/AvailableAppointmentsForm.tsx",
8+
"src/scenarios/appointment-form/DistrictForm.tsx",
9+
"src/scenarios/appointment-form/formUtils.ts",
10+
"src/scenarios/appointment-form/PersonalInformationForm.tsx",
11+
"src/scenarios/appointment-form/Summary.tsx"
12+
],
13+
"ignoreBinaries": ["eslint", "prettier", "stylelint"],
14+
"ignoreDependencies": [
15+
"@leanup/stack",
16+
"@public-ui/components",
17+
"@public-ui/react-v19",
18+
"@public-ui/themes",
19+
"@unocss/preset-mini",
20+
"eslint-plugin-jsx-a11y",
21+
"eslint-plugin-react",
22+
"uno.css"
23+
],
24+
"project": ["src/**/*.ts", "src/**/*.tsx"]
25+
}

.kolibri.config.json

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{
2+
"migrate": {
3+
"tasks": {
4+
".gitignore-add-rule-.kolibri.migrate.json": true,
5+
".npmrc-add-rule-save-exact=true": true,
6+
"vscode-settings-reconfigure-html.customData": true,
7+
"kol-abbr-rename-property-_align-to-_tooltip-align": true,
8+
"kol-abbr-rename-property-_title-to-_label": true,
9+
"kol-accordion-rename-property-_heading-to-_label": true,
10+
"kol-badge-rename-property-_icon-only-to-_hide-label": true,
11+
"kol-badge-remove-property-_hide-label": true,
12+
"kol-badge-remove-property-_icon-only": true,
13+
"kol-breadcrumb-rename-property-_aria-label-to-_label": true,
14+
"kol-button-link-remove-property-_aria-current": true,
15+
"kol-button-link-remove-property-_aria-label": true,
16+
"kol-button-link-rename-property-_icon-only-to-_hide-label": true,
17+
"kol-button-remove-property-_aria-current": true,
18+
"kol-button-remove-property-_aria-label": true,
19+
"kol-button-remove-property-_icon-align": true,
20+
"kol-button-rename-property-_icon-only-to-_hide-label": true,
21+
"kol-button-rename-property-_icon-to-_icons": true,
22+
"kol-card-rename-property-_heading-to-_label": true,
23+
"kol-card-rename-property-_headline-to-_label": true,
24+
"kol-details-rename-property-_summary-to-_label": true,
25+
"kol-icon-remove-property-_part": true,
26+
"kol-icon-rename-property-_aria-label-to-_label": true,
27+
"kol-icon-rename-property-_icon-to-_icons": true,
28+
"kol-input-checkbox-rename-property-_icon-to-_icons": true,
29+
"kol-checkbox-rename-property-_type-to-_variant": true,
30+
"kol-color-rename-property-_icon-to-_icons": true,
31+
"kol-color-rename-property-_list-to-_suggestions": true,
32+
"kol-input-date-rename-property-_icon-to-_icons": true,
33+
"kol-date-rename-property-_list-to-_suggestions": true,
34+
"kol-input-email-rename-property-_icon-to-_icons": true,
35+
"kol-input-email-rename-property-_list-to-_suggestions": true,
36+
"kol-input-file-rename-property-_icon-to-_icons": true,
37+
"kol-input-number-rename-property-_icon-to-_icons": true,
38+
"kol-input-number-rename-property-_list-to-_suggestions": true,
39+
"kol-input-password-rename-property-_icon-to-_icons": true,
40+
"kol-input-radio-rename-property-_list-to-_options": true,
41+
"kol-input-range-rename-property-_icon-to-_icons": true,
42+
"kol-input-range-rename-property-_list-to-_suggestions": true,
43+
"kol-input-rename-property-_icon-to-_icons": true,
44+
"kol-input-text-rename-property-_icon-to-_icons": true,
45+
"kol-input-text-rename-property-_list-to-_suggestions": true,
46+
"kol-link-button-remove-property-_aria-control": false,
47+
"kol-link-button-remove-property-_aria-expanded": true,
48+
"kol-link-button-remove-property-_aria-label": true,
49+
"kol-link-button-remove-property-_aria-selected": true,
50+
"kol-link-button-remove-property-_disabled": true,
51+
"kol-link-button-rename-property-_aria-current-to-_listen-aria-current": true,
52+
"kol-link-button-rename-property-_icon-only-to-_hide-label": true,
53+
"kol-link-group-rename-property-_heading-to-_label": true,
54+
"kol-link-group-remove-property-_heading": true,
55+
"kol-link-group-remove-property-_ordered": true,
56+
"kol-link-group-rename-property-_aria-label-to-_label": true,
57+
"kol-link-remove-property-_aria-control": false,
58+
"kol-link-remove-property-_aria-expanded": true,
59+
"kol-link-remove-property-_aria-label": true,
60+
"kol-link-remove-property-_aria-selected": true,
61+
"kol-link-remove-property-_disabled": true,
62+
"kol-link-remove-property-_icon-align": true,
63+
"kol-link-remove-property-_selector": true,
64+
"kol-link-remove-property-_stealth": true,
65+
"kol-link-remove-property-_use-case": true,
66+
"kol-link-rename-property-_aria-current-to-_listen-aria-current": true,
67+
"kol-link-rename-property-_icon-only-to-_hide-label": true,
68+
"kol-logo-rename-property-_abbr-to-_org": true,
69+
"kol-modal-rename-property-_aria-label-to-_label": true,
70+
"kol-nav-remove-property-_variant": true,
71+
"kol-nav-rename-property-_aria-label-to-_label": true,
72+
"kol-nav-rename-property-_compact-to-_hide-label": true,
73+
"kol-pagination-rename-property-_count-to-_total": true,
74+
"kol-pagination-rename-property-_total-to-_max": true,
75+
"kol-progress-rename-property-_type-to-_variant": true,
76+
"kol-quote-rename-property-_caption-to-_label": true,
77+
"kol-select-rename-property-_height-to-_rows": true,
78+
"kol-select-rename-property-_icon-to-_icons": true,
79+
"kol-select-rename-property-_list-to-_options": true,
80+
"kol-skip-nav-rename-property-_aria-label-to-_label": true,
81+
"kol-span-rename-property-_icon-only-to-_hide-label": true,
82+
"kol-span-rename-property-_icon-to-_icons": true,
83+
"kol-split-button-remove-property-_aria-label": true,
84+
"kol-split-button-rename-property-_show-dropdown-to-_show": false,
85+
"kol-table-rename-property-_caption-to-_label": true,
86+
"kol-tabs-rename-property-_aria-label-to-_label": true,
87+
"kol-tabs-rename-property-_icon-to-_icons": true,
88+
"kol-tabs-rename-property-_tab-align-to-_align": true,
89+
"kol-toast-remove-property-_show-duration": true,
90+
"kol-toast-rename-property-_heading-to-_label": true,
91+
"kol-version-rename-property-_version-to-_label": true,
92+
"kol-heading-move-innerText-to-property-_label": true,
93+
"kol-input-checkbox-move-innerText-to-property-_label": true,
94+
"kol-input-color-move-innerText-to-property-_label": true,
95+
"kol-input-date-move-innerText-to-property-_label": true,
96+
"kol-input-email-move-innerText-to-property-_label": true,
97+
"kol-input-file-move-innerText-to-property-_label": true,
98+
"kol-input-number-move-innerText-to-property-_label": true,
99+
"kol-input-password-move-innerText-to-property-_label": true,
100+
"kol-input-radio-move-innerText-to-property-_label": true,
101+
"kol-input-range-move-innerText-to-property-_label": true,
102+
"kol-input-text-move-innerText-to-property-_label": true,
103+
"kol-link-move-innerText-to-property-_label": true,
104+
"kol-select-move-innerText-to-property-_label": true,
105+
"kol-textarea-move-innerText-to-property-_label": true,
106+
"kol-accordion-mark-removed-slot-header": true,
107+
"kol-card-mark-removed-slot-footer": true,
108+
"kol-card-mark-removed-slot-header": true,
109+
"kol-accordion-rename-slot-content-to-": true,
110+
"kol-card-rename-slot-content-to-": true,
111+
"refactor-property-label-replace-false": true,
112+
"remove--cpy-cli,rimraf": false,
113+
"add--cpy-cli,rimraf": false,
114+
"package.json-reconfigure-scripts.prepare": false,
115+
"remove-public/assets/codicons": false,
116+
"exec-npx cpy \"node_modules/@public-ui/components/assets/**/*\" \"public/assets\" --dot": false,
117+
"merge-html-codicon-in-index.html": false,
118+
"kol-card-remove-property-_has-footer": true,
119+
"kol-alert-rename-property-_heading-to-_label": true,
120+
"kol-badge-rename-property-_icon-to-_icons": true,
121+
"kol-button-link-remove-property-_access-key": true,
122+
"kol-button-link-rename-property-_icon-to-_icons": true,
123+
"kol-button-remove-property-_access-key": true,
124+
"kol-input-email-remove-property-_size": true,
125+
"kol-input-number-remove-property-_type": true,
126+
"kol-input-password-remove-property-_size": true,
127+
"kol-input-text-remove-property-_size": true,
128+
"kol-link-button-remove-property-_aria-controls": true,
129+
"kol-link-button-rename-property-_icon-to-_icons": true,
130+
"kol-link-remove-property-_aria-controls": true,
131+
"kol-link-rename-property-_icon-to-_icons": true,
132+
"kol-select-remove-property-_size": true,
133+
"kol-split-button-remove-property-_access-key": true,
134+
"kol-split-button-remove-property-_show-dropdown": true,
135+
"kol-split-button-remove-property-_show": true,
136+
"kol-symbol-rename-property-_aria-label-to-_label": true,
137+
"kol-nav-remove-property-_has-compact-button": true,
138+
"kol-link-group-remove-property-_level": true
139+
}
140+
}
141+
}

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/assets/**
2+
*.feature
3+
*.sass
4+
*.scss

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"html.customData": ["./node_modules/@public-ui/components/vscode-custom-data.json"]
3+
}

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# KoliBri - React Sample App
2+
3+
[![npm](https://img.shields.io/npm/v/@public-ui/sample-react)](https://www.npmjs.com/package/@public-ui/components)
4+
[![license](https://img.shields.io/npm/l/@public-ui/sample-react)](https://github.com/public-ui/kolibri/blob/main/LICENSE)
5+
[![downloads](https://img.shields.io/npm/dt/@public-ui/sample-react)](https://www.npmjs.com/package/@public-ui/sample-react)
6+
[![issues](https://img.shields.io/github/issues/public-ui/kolibri)](https://github.com/public-ui/kolibri/issues)
7+
[![pull requests](https://img.shields.io/github/issues-pr/public-ui/kolibri)](https://github.com/public-ui/kolibri/pulls)
8+
[![size](https://img.shields.io/bundlephobia/min/@public-ui/sample-react)](https://bundlephobia.com/result?p=@public-ui/sample-react)
9+
![contributors](https://img.shields.io/github/contributors/public-ui/kolibri)
10+
11+
## Motivation
12+
13+
Showcase of all KoliBri components in a React application.
14+
15+
Live example: <https://release-2--kolibri-public-ui.netlify.app>
16+
17+
## Installation and usage
18+
19+
```bash
20+
git clone [email protected]:public-ui/kolibri.git
21+
cd kolibri
22+
pnpm install
23+
pnpm -r build
24+
cd packages/samples/react
25+
pnpm start
26+
```

0 commit comments

Comments
 (0)