Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Toolkit] Introduce the UX Toolkit ✨ #2539

Open
wants to merge 42 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
7d0a214
Initialized the Toolkit component
Halleck45 Jan 30, 2025
bd93798
fixed path
Halleck45 Jan 30, 2025
9557e28
[Toolkit] Init the component
Kocal Jan 30, 2025
0044e0d
[Toolkit] Prepare registry
Kocal Jan 30, 2025
d9db7d7
merged different versions of component
Halleck45 Jan 30, 2025
710985f
added tools for testing components
Halleck45 Jan 30, 2025
a07a607
isolated identifier / repository
Halleck45 Jan 31, 2025
263942c
tests for official repository
Halleck45 Jan 31, 2025
8d69112
Tests the remote github repository
Halleck45 Jan 31, 2025
4864f60
Use finder insteadof f* function
Halleck45 Jan 31, 2025
edeb70e
Re-organize templates, fix Badge props/cva
Kocal Jan 31, 2025
dd67fb8
Fixed typos
Halleck45 Jan 31, 2025
24c3ef3
use filesystem
Halleck45 Jan 31, 2025
6b33a58
way to have screenshots comparaisons
Halleck45 Jan 31, 2025
3e4a7ee
First iteration of Registry
Kocal Jan 31, 2025
9eec434
fixed tests with the new directory structure
Halleck45 Jan 31, 2025
b35b76e
Way to configure ux_toolkit
Halleck45 Jan 31, 2025
daf701d
isolated compiler
Halleck45 Jan 31, 2025
790ec26
Take care of prefix in component generation
Halleck45 Jan 31, 2025
672c5ed
fix linting of JSON file
Halleck45 Jan 31, 2025
ba179e1
fix registry save output format
Kocal Jan 31, 2025
f35483a
refactored project according our previous discussions
Halleck45 Feb 1, 2025
6a6cfa4
minor typos
Halleck45 Feb 2, 2025
46bb2ad
fixed linter
Halleck45 Feb 2, 2025
a32ce21
way to detecte circular deependencies between components
Halleck45 Feb 2, 2025
6b3b126
use Zenstruck for command tests
Halleck45 Feb 2, 2025
2c83380
Way to get the list of available components in current theme
Halleck45 Feb 2, 2025
c3f82c0
compatibility with phpunit 9.5
Halleck45 Feb 2, 2025
d404ff5
Commands install component and its dependencies
Halleck45 Feb 2, 2025
68f86ce
trying to fix depreciations
Halleck45 Feb 2, 2025
8ccb3fc
Command for generate registry
Halleck45 Feb 3, 2025
d42b322
fails installation when fingerprint is incorrect
Halleck45 Feb 3, 2025
aacf196
improved tests
Halleck45 Feb 3, 2025
7021e18
minor fixes in test suite
Halleck45 Feb 4, 2025
5057785
fixed relative path, and tested in a real project
Halleck45 Feb 4, 2025
812e062
used shadcdn theme for button
Halleck45 Feb 4, 2025
dd3bf14
Add options to overwrite file on demand
Halleck45 Feb 5, 2025
241dc50
fix cascade installation
Halleck45 Feb 5, 2025
c61a46d
Grid component
Halleck45 Feb 5, 2025
6803095
Basic grid component
Halleck45 Feb 5, 2025
22261c9
component Row
Halleck45 Feb 5, 2025
6f62a5e
component table
Halleck45 Feb 5, 2025
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
5 changes: 5 additions & 0 deletions src/Toolkit/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.git* export-ignore
/.symfony.bundle.yaml export-ignore
/phpunit.xml.dist export-ignore
/doc export-ignore
/tests export-ignore
8 changes: 8 additions & 0 deletions src/Toolkit/.github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Please do not submit any Pull Requests here. They will be closed.
---

Please submit your PR here instead:
https://github.com/symfony/ux

This repository is what we call a "subtree split": a read-only subset of that main repository.
We're looking forward to your PR there!
20 changes: 20 additions & 0 deletions src/Toolkit/.github/workflows/close-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Close Pull Request

on:
pull_request_target:
types: [opened]

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: |
Thanks for your Pull Request! We love contributions.
However, you should instead open your PR on the main repository:
https://github.com/symfony/ux
This repository is what we call a "subtree split": a read-only subset of that main repository.
We're looking forward to your PR there!
4 changes: 4 additions & 0 deletions src/Toolkit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vendor
composer.lock
.phpunit.result.cache
var
3 changes: 3 additions & 0 deletions src/Toolkit/.symfony.bundle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
branches: ["2.x"]
maintained_branches: ["2.x"]
doc_dir: "doc"
5 changes: 5 additions & 0 deletions src/Toolkit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CHANGELOG

## 2.23

- Component added
19 changes: 19 additions & 0 deletions src/Toolkit/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2025-present Fabien Potencier

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
16 changes: 16 additions & 0 deletions src/Toolkit/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Symfony UX Toolkit

**EXPERIMENTAL** This component is currently experimental and is
likely to change, or even change drastically.

Symfony UX Toolkit provides a set of ready-to-use UI components for Symfony applications.

**This repository is a READ-ONLY sub-tree split**. See
https://github.com/symfony/ux to create issues or submit pull requests.

## Resources

- [Documentation](https://symfony.com/bundles/ux-toolkit/current/index.html)
- [Report issues](https://github.com/symfony/ux/issues) and
[send Pull Requests](https://github.com/symfony/ux/pulls)
in the [main Symfony UX repository](https://github.com/symfony/ux)
4 changes: 4 additions & 0 deletions src/Toolkit/bin/build-registry.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php

// ...
65 changes: 65 additions & 0 deletions src/Toolkit/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "symfony/ux-toolkit",
"type": "symfony-bundle",
"description": "Twig toolkit for Symfony",
"keywords": [
"symfony-ux",
"twig",
"components"
],
"homepage": "https://symfony.com",
"license": "MIT",
"authors": [
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
},
{
"name": "Hugo Alliaume",
"email": "[email protected]"
},
{
"name": "Jean-François Lépine",
"email": "[email protected]"
},
{
"name": "Simon André",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.2",
smnandre marked this conversation as resolved.
Show resolved Hide resolved
"tales-from-a-dev/twig-tailwind-extra": "^0.3.0",
smnandre marked this conversation as resolved.
Show resolved Hide resolved
"twig/extra-bundle": "^2.12|^3.0",
smnandre marked this conversation as resolved.
Show resolved Hide resolved
"twig/html-extra": "^3.19",
"twig/twig": "^2.12|^3.0",
"symfony/console": "^7.2",
"symfony/framework-bundle": "^6.4|^7.0",
"symfony/phpunit-bridge": "^6.4|^7.0",
"symfony/twig-bundle": "^6.4|^7.0",
"symfony/ux-twig-component": "^2.22"
},
"autoload": {
"psr-4": {
"Symfony\\Ux\\Toolkit\\": "src"
smnandre marked this conversation as resolved.
Show resolved Hide resolved
},
"exclude-from-classmap": []
},
"autoload-dev": {
"psr-4": {
"Symfony\\Ux\\Toolkit\\Tests\\": "tests/"
}
},
smnandre marked this conversation as resolved.
Show resolved Hide resolved
"conflict": {
"symfony/ux-twig-component": "<2.21"
},
"extra": {
"thanks": {
"name": "symfony/ux",
"url": "https://github.com/symfony/ux"
}
},
"require-dev": {
"symfony/http-client": "6.4|^7.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add http-contracts on require too

}
}
Loading
Loading