Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged

2.x #799

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
531 commits
Select commit Hold shift + click to select a range
a634322
code optimizations
ph7jack Oct 10, 2023
8ed2d1f
change datepicker translations
ph7jack Oct 10, 2023
af24e66
Merge pull request #748 from wireui/feature/v2-inputs
ph7jack Oct 10, 2023
6e29518
format code
ph7jack Oct 10, 2023
3335c41
rename service provider
ph7jack Oct 12, 2023
cd9c314
fix prefix and suffix slot attributes
ph7jack Oct 12, 2023
76d5010
hide prefix and fix empty white space
ph7jack Oct 12, 2023
46bbefd
move method to the right order
ph7jack Oct 12, 2023
2dedaec
feat(enums): adding enums
joaopalopes24 Oct 14, 2023
db35a1d
refactor(traits): refactor traits
joaopalopes24 Oct 14, 2023
d53646d
add Alpine.effect() signature
ph7jack Oct 15, 2023
eedcdb7
add new Alpine structure
ph7jack Oct 15, 2023
b319e3e
add helpers
ph7jack Oct 15, 2023
935a71e
update eslint rules
ph7jack Oct 15, 2023
09ecbb5
change tailwindColors import
ph7jack Oct 15, 2023
2a9bde1
update packages
ph7jack Oct 15, 2023
fec8d44
update phpunit.xml config
ph7jack Oct 15, 2023
e4a10ed
fix pint rules
ph7jack Oct 15, 2023
2b7806c
check js and exclude dist and tests
ph7jack Oct 15, 2023
508006c
export props function
ph7jack Oct 15, 2023
9f28dfc
add popover 2.0
ph7jack Oct 15, 2023
37b1191
add focusable 2.0
ph7jack Oct 15, 2023
4dece82
make value private
ph7jack Oct 15, 2023
a7af61b
add Livewire interfaces and types
ph7jack Oct 15, 2023
2d6797f
add SupportsAlpine plugin
ph7jack Oct 15, 2023
3cc1292
refactor color picker
ph7jack Oct 15, 2023
cc07248
fix tsconfig.json
ph7jack Oct 15, 2023
19671a1
add $destroy
ph7jack Oct 15, 2023
26228ac
fix tests
ph7jack Oct 15, 2023
26550be
allow AlpineComponent
ph7jack Oct 15, 2023
915d1a8
make state public
ph7jack Oct 15, 2023
7268420
build assets
ph7jack Oct 15, 2023
ab9dfb2
move entangleable to Alpine modules
ph7jack Oct 15, 2023
0e4e771
build assets
ph7jack Oct 15, 2023
b7eef53
feat(packs): adjust packs, config and components
joaopalopes24 Oct 16, 2023
a95e49a
feat(card): using packs in card
joaopalopes24 Oct 16, 2023
10d8711
add dusk macros
ph7jack Oct 16, 2023
0da1d21
remove unused attribute
ph7jack Oct 16, 2023
0d1fa74
fix blur event
ph7jack Oct 16, 2023
61ed687
remove coverage empty key
ph7jack Oct 16, 2023
f262f91
inject livewire
ph7jack Oct 16, 2023
9c80154
add color picker tests
ph7jack Oct 16, 2023
4e3bcfb
add livewire dusk support
ph7jack Oct 16, 2023
9adc3d5
update dependencies
ph7jack Oct 16, 2023
25591e4
fix tmp path
ph7jack Oct 16, 2023
a152401
feat(config): adjust config to avoid duplicate code
joaopalopes24 Oct 16, 2023
0fc7375
remove old button class
ph7jack Oct 16, 2023
38c1ca9
change methods visibility
ph7jack Oct 16, 2023
aebfb2b
refactor badge tests
ph7jack Oct 16, 2023
7186e0e
build assets
ph7jack Oct 16, 2023
d34626b
refactor(inpot): realocate folder of input component
joaopalopes24 Oct 16, 2023
f72bae7
refactor(traits): rename some traits
joaopalopes24 Oct 16, 2023
168fcd8
refactor browser function
ph7jack Oct 16, 2023
5420dc4
refactor checkbox tests
ph7jack Oct 16, 2023
67c9cdb
refactor confirm directive test
ph7jack Oct 16, 2023
4c51efa
use test_ prefix in all tests instead of @test comment
ph7jack Oct 16, 2023
0bd359c
WIP: refactor tests
ph7jack Oct 16, 2023
a84b20b
style(pint): run the pint command
joaopalopes24 Oct 16, 2023
8a373fe
refactor(traits): revert some traits
joaopalopes24 Oct 16, 2023
d75208c
refactor(lang): refactor langs
joaopalopes24 Oct 16, 2023
aee147f
refactor(components): revert x-data in components
joaopalopes24 Oct 16, 2023
d9e4fe0
feat(dropdown): adding dropdown packas and config
joaopalopes24 Oct 16, 2023
7564733
feat(modal): adding modal packs and config
joaopalopes24 Oct 16, 2023
5742d30
feat(notifications): adding notifications config and packs
joaopalopes24 Oct 16, 2023
7ccb739
feat(link): adding packs and configs to link component
joaopalopes24 Oct 16, 2023
779a931
refactor(pack): changing global const in component pack
joaopalopes24 Oct 16, 2023
78d0c35
feat(prefix): adding prefix in all components
joaopalopes24 Oct 17, 2023
cb495aa
refactor(prefix): remove : as default in prefix
joaopalopes24 Oct 17, 2023
a2413d7
refactor(forms): using traits in form components
joaopalopes24 Oct 17, 2023
08d50c8
refactor(alias): rename input components
joaopalopes24 Oct 17, 2023
cc808dc
feat(traits): create properties and remove some traits
joaopalopes24 Oct 17, 2023
e3fe980
refactor(props): rename property
joaopalopes24 Oct 17, 2023
a59ca95
feat(badge and button): using new properties in badge and button comp…
joaopalopes24 Oct 17, 2023
e7d2c8c
refactor(props): adjust manage props trait
joaopalopes24 Oct 17, 2023
6378307
wip
joaopalopes24 Oct 17, 2023
daf2e2a
wip
joaopalopes24 Oct 17, 2023
3a08f71
feat(icon-size): remove icon size trait and use in packs
joaopalopes24 Oct 17, 2023
9d67f29
refactor(wireui-component): remove callback option in getData function
joaopalopes24 Oct 17, 2023
229e331
feat(dropdown): use new properties in dropdown
joaopalopes24 Oct 17, 2023
3307b30
refactor(props): remove boolean property in manage props trait
joaopalopes24 Oct 18, 2023
9e3e398
feat(enums): updating enum consts
joaopalopes24 Oct 18, 2023
bab79f9
Merge pull request #756 from wireui/feature-encapsulate-traits
ph7jack Oct 18, 2023
7836717
Merge pull request #755 from wireui/feature-config-components
ph7jack Oct 18, 2023
db572b2
refactor(form): adding shadow pack in form components
joaopalopes24 Oct 18, 2023
12eee24
Merge branch '2.x' into v2-adjustments
ph7jack Oct 18, 2023
71f3c13
Merge branch '2.x' into v2-adjustments
ph7jack Oct 18, 2023
2b75cd9
fix pint rules
ph7jack Oct 15, 2023
d93c242
style(pint): run the pint command
joaopalopes24 Oct 18, 2023
1385d97
test(traits): remove old tests
joaopalopes24 Oct 18, 2023
4511329
add new positions
ph7jack Oct 18, 2023
a4a9e6b
remove interfaces
ph7jack Oct 18, 2023
b2fc69c
test(traits): adding new skeleton tests
joaopalopes24 Oct 18, 2023
816c998
feat(dropdown): adjust dropdown components to use props
joaopalopes24 Oct 18, 2023
2953345
Merge remote-tracking branch 'origin/2.x' into v2-adjustments
ph7jack Oct 18, 2023
6f8256f
refactor(props): using packs and props in more components
joaopalopes24 Oct 18, 2023
64bc4a3
Merge pull request #758 from wireui/feature-adjust-packs-and-props
ph7jack Oct 18, 2023
31b28d3
Merge remote-tracking branch 'origin/2.x' into v2-adjustments
ph7jack Oct 18, 2023
9f80415
extend positionable to accept more components
ph7jack Oct 18, 2023
b2c4e1e
set default position
ph7jack Oct 18, 2023
ad399bd
remake dropdown component
ph7jack Oct 18, 2023
128c60b
remove duplicated input key
ph7jack Oct 18, 2023
878e4d8
remove import/named eslint rule
ph7jack Oct 18, 2023
ea66fc7
update eslint deps
ph7jack Oct 18, 2023
4d75ea9
add tests to dropdown
ph7jack Oct 18, 2023
dd304af
delete non used attribute
ph7jack Oct 18, 2023
fec4e76
set default rounded to MD
ph7jack Oct 18, 2023
db01ebd
fix tailwind content paths
ph7jack Oct 18, 2023
638c0b4
refactor time picker
ph7jack Oct 18, 2023
bc70456
build assets
ph7jack Oct 18, 2023
7b3a908
Merge branch 'main' into feature-adding-tests-to-traits
joaopalopes24 Oct 18, 2023
005d5a2
feat(main): merging new features of v1 in v2
joaopalopes24 Oct 18, 2023
d1d61c6
wip
joaopalopes24 Oct 18, 2023
5960d63
Merge pull request #762 from wireui/feature-adding-tests-to-traits
ph7jack Oct 18, 2023
0ccfc02
code enhancements
ph7jack Oct 19, 2023
a363d63
Merge pull request #760 from wireui/v2-adjustments
ph7jack Oct 19, 2023
f33738e
format file
ph7jack Oct 19, 2023
506844c
refactor walk to allow any moviment
ph7jack Oct 19, 2023
2e77a4c
remove unused attribute
ph7jack Oct 19, 2023
585cc83
refactor datetime picker
ph7jack Oct 19, 2023
ace778d
add dateTimePicker config
ph7jack Oct 19, 2023
bd45dbc
add datetime picker config
ph7jack Oct 19, 2023
4629f8a
update composer
ph7jack Oct 19, 2023
31a6f8b
build assets
ph7jack Oct 19, 2023
287af13
test(props): adding tests to manage props trait
joaopalopes24 Oct 19, 2023
0a8212f
test(number): adding tests to number component
joaopalopes24 Oct 19, 2023
3e225cf
test(number): adding tests to number component
joaopalopes24 Oct 20, 2023
0628263
refactor(props): adding values in props as required
joaopalopes24 Oct 20, 2023
3d0e94c
refactor(traits): revert type in properties
joaopalopes24 Oct 20, 2023
f8ddd8e
test(button): refactor tests to button trait
joaopalopes24 Oct 20, 2023
8cb3883
test(badge): adding tests to badge component
joaopalopes24 Oct 20, 2023
1e57fa9
test(button): adding tests to button component
joaopalopes24 Oct 20, 2023
afcce8b
test(badge and button): adding custom rounded in tests
joaopalopes24 Oct 20, 2023
3405546
test(alert): adding tests to alert component
joaopalopes24 Oct 20, 2023
aa91e63
test(avatar): adding tests to avatar component
joaopalopes24 Oct 20, 2023
21a6f1a
perf(button): using custom render pest function in tests
joaopalopes24 Oct 20, 2023
b1b960d
test(button): using custom render pest function in tests
joaopalopes24 Oct 20, 2023
eb58a7f
Merge branch 'feature-adding-tests-to-traits' of github.com:wireui/wi…
joaopalopes24 Oct 20, 2023
8651c56
test(render): adjust blade render in some tests
joaopalopes24 Oct 20, 2023
50f1a2b
Merge branch 'main' into feature-merge-with-main
joaopalopes24 Oct 23, 2023
be9be6d
format file
ph7jack Oct 23, 2023
486a14f
remove tailwind forms
ph7jack Oct 23, 2023
b984375
update popovers
ph7jack Oct 23, 2023
ecce823
build assets
ph7jack Oct 23, 2023
46a2e35
Merge pull request #764 from wireui/feature-adding-tests-to-traits
ph7jack Oct 23, 2023
42fe0de
Merge branch '2.x' into feature-merge-with-main
ph7jack Oct 23, 2023
c40d3f5
refactor(entangleable): remove entangleable in v2
joaopalopes24 Oct 24, 2023
d58740c
refactor(main): resolving conflicts
joaopalopes24 Oct 24, 2023
e506dc4
Merge branch 'feature-merge-with-main' of github.com:wireui/wireui in…
joaopalopes24 Oct 24, 2023
60d1391
docs(readme): update readme
joaopalopes24 Oct 24, 2023
8baf212
Merge pull request #772 from wireui/feature-merge-with-main
ph7jack Oct 24, 2023
e6de0d1
refactor(traits): realocate IsForm trait
joaopalopes24 Oct 24, 2023
53b1e7e
refactor(link): fixing props and packs
joaopalopes24 Oct 24, 2023
45bc1a3
Merge remote-tracking branch 'origin/2.x' into v2-adjustments-2-of-3
ph7jack Oct 25, 2023
3e89131
use processed hook
ph7jack Oct 25, 2023
0e8f6cf
add #[AllowDynamicProperties] decorator
ph7jack Oct 25, 2023
fc2e7b5
Merge remote-tracking branch 'origin/feature-refactor-traits' into v2…
ph7jack Oct 25, 2023
debd373
fix blade rendering on closure
ph7jack Oct 25, 2023
371865e
Merge remote-tracking branch 'origin/2.x' into feature-refactor-traits
ph7jack Oct 25, 2023
a7c50b0
update deps
ph7jack Oct 25, 2023
0355a57
Merge branch 'feature-refactor-traits' into v2-adjustments-2-of-3
ph7jack Oct 25, 2023
8096428
fix datetime picker popover width
ph7jack Oct 25, 2023
75da996
fix(modal): import modal global functions in index.ts
joaopalopes24 Oct 25, 2023
620a808
fix(props): fixing bug when user pass slot in props and remove publis…
joaopalopes24 Oct 27, 2023
f5e5dc7
add logging helper
ph7jack Oct 29, 2023
dc8906c
use WireUi::toJs instead of @tojs
ph7jack Oct 29, 2023
4b81564
toggle scrollbar on positionable module
ph7jack Oct 29, 2023
20b7556
add time selector component
ph7jack Oct 29, 2023
1223484
WIP: add time selector core
ph7jack Oct 29, 2023
e7b76cb
WIP: tmp disable no-invalid-this
ph7jack Oct 29, 2023
1e5eeca
add period AM/PM
ph7jack Oct 29, 2023
2e691ec
fix(alert): fixing title slot
joaopalopes24 Oct 29, 2023
2f125a7
register time-selector
ph7jack Oct 29, 2023
1b506db
add seconds get/set
ph7jack Oct 29, 2023
ee309bf
fill value from input
ph7jack Oct 29, 2023
c084750
fix initial position
ph7jack Oct 29, 2023
0ca4b62
add props
ph7jack Oct 29, 2023
f5191ba
type period parameter
ph7jack Oct 29, 2023
9fcd78e
fix issues using military-time
ph7jack Oct 29, 2023
ca9b327
add cursor grab/grabbing effect
ph7jack Oct 29, 2023
d7c53b2
hide seconds when not in format value
ph7jack Oct 29, 2023
7da8f7d
merge config
ph7jack Oct 29, 2023
4816dcd
add style config
ph7jack Oct 29, 2023
39c07de
use entangleable
ph7jack Oct 29, 2023
0150352
fix classToObject function
ph7jack Oct 31, 2023
dbbf52d
feat(avatar): adjust avatar component
joaopalopes24 Oct 31, 2023
012e62d
refactor helper functions
ph7jack Oct 31, 2023
50a273b
add $safeWatch
ph7jack Oct 31, 2023
94df941
refactor(padding): adjust padding in alert and card components
joaopalopes24 Oct 31, 2023
6513177
refactor time selection
ph7jack Oct 31, 2023
7a7b244
fix dark color
ph7jack Oct 31, 2023
37a617c
refactor(props): remove unused class
joaopalopes24 Oct 31, 2023
640f8f6
add onlyLetters helper
ph7jack Oct 31, 2023
ed540fb
add periodToken
ph7jack Oct 31, 2023
aed5b54
refactor time picker
ph7jack Oct 31, 2023
14948db
set AM as default
ph7jack Oct 31, 2023
a30b374
build assets
ph7jack Oct 31, 2023
01e2112
Merge remote-tracking branch 'origin/feature-refactor-traits' into v2…
ph7jack Oct 31, 2023
f6c1436
build assets
ph7jack Oct 31, 2023
91cbdb6
update packages
ph7jack Oct 31, 2023
85689a8
Merge pull request #787 from wireui/v2-adjustments-2-of-3
ph7jack Oct 31, 2023
d15a97b
add bg color
ph7jack Oct 31, 2023
28d028c
fix seconds removal
ph7jack Oct 31, 2023
a92916d
fix cleanup functions
ph7jack Oct 31, 2023
7db9634
refactor(notification): adjust z-index
joaopalopes24 Oct 31, 2023
300ce73
fix select popover
ph7jack Oct 31, 2023
577193d
fix toJs function
ph7jack Oct 31, 2023
453c8cf
refactor(card): adjust card component
joaopalopes24 Oct 31, 2023
748a203
Merge branch 'v2-adjustments-3' into 2.x
ph7jack Oct 31, 2023
0523e91
feat(dropdown): adding change icon
joaopalopes24 Nov 1, 2023
0ea305f
add config to toggle, checkbox, radio
ph7jack Nov 1, 2023
ba8c549
Merge branch '2.x' of github.com:wireui/wireui into 2.x
ph7jack Nov 1, 2023
9fbb085
feat(dropdown): adjust in dropdown
joaopalopes24 Nov 1, 2023
5395759
create wrapper switcher
ph7jack Nov 1, 2023
4595290
refactor toggle
ph7jack Nov 1, 2023
e4c8b45
fix flex alignment
ph7jack Nov 1, 2023
196872c
Merge branch '2.x' of github.com:wireui/wireui into 2.x
ph7jack Nov 1, 2023
f34c3e7
build assets
ph7jack Nov 1, 2023
d22ca1d
refactor(errors): adjusting errors component
joaopalopes24 Nov 1, 2023
67295d7
refactor radio
ph7jack Nov 1, 2023
f44934f
remove w-full from radio, checkbox, and toggle
ph7jack Nov 1, 2023
71307e1
add tailwind forms back
ph7jack Nov 1, 2023
e7a7215
refactor checkbox
ph7jack Nov 1, 2023
7cbea75
Merge branch '2.x' of github.com:wireui/wireui into 2.x
ph7jack Nov 1, 2023
922c987
fix modal card
ph7jack Nov 1, 2023
a428f3a
fix tailwind forms
ph7jack Nov 1, 2023
c201f73
wip
ph7jack Nov 1, 2023
d8ffe40
build assets
ph7jack Nov 1, 2023
838e2b0
feat(switcher): adjust packs
joaopalopes24 Nov 1, 2023
f4663f2
feat(button): merge invalidated color in packs
joaopalopes24 Nov 1, 2023
16a0d40
fix(modal): revert x-data in modal
joaopalopes24 Nov 1, 2023
1fb335c
test(button): adjusts button unit tests
joaopalopes24 Nov 1, 2023
d820404
refactor(errors and modal-card): using $_laravel_slots variable
joaopalopes24 Nov 1, 2023
43f00e3
Merge branch 'main' into merge-with-main
joaopalopes24 Nov 1, 2023
64ebadd
build(assets): building assets
joaopalopes24 Nov 1, 2023
1145cb2
Merge pull request #790 from wireui/merge-with-main
ph7jack Nov 1, 2023
96c47e8
build assets
ph7jack Nov 1, 2023
57458da
fix button color
ph7jack Nov 1, 2023
d41255f
refactor(modal-card): adjust attributes in modal card
joaopalopes24 Nov 1, 2023
98de69f
fix(hooks): fixing bug in finished hooks
joaopalopes24 Nov 1, 2023
63a04d8
test(color-picker): adjust color-picker unit tests
joaopalopes24 Nov 1, 2023
5b4e16f
fix(select): remove @toJs in select option
joaopalopes24 Nov 3, 2023
b246402
test(components): rename components in tests
joaopalopes24 Nov 3, 2023
6fea7ab
fix(switcher): fixing bug in switchers components
joaopalopes24 Nov 3, 2023
3f0540d
fix(toggle): fixing type in toggle component
joaopalopes24 Nov 3, 2023
6fdcdda
test(providers): adding static in provider functions
joaopalopes24 Nov 3, 2023
3365fa1
Merge branch 'main' into merge-with-main
joaopalopes24 Nov 3, 2023
00912bc
test(todo): adding tests to do
joaopalopes24 Nov 3, 2023
0275204
fix dropdown for mobile
ph7jack Nov 3, 2023
780d2a0
build assets
ph7jack Nov 3, 2023
cd5fcb3
Merge pull request #798 from wireui/merge-with-main
joaopalopes24 Nov 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 1 addition & 7 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,8 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.ts]
indent_size = 2

[*.js]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
[*.{ts,js,yml,yaml}]
indent_size = 2
8 changes: 5 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
// Possible Errors
"no-extra-parens": ["error", "all", { "returnAssign": false }],
"import/first": "off",
"import/named": "error",
"import/namespace": "error",
"import/default": "error",
"import/export": "error",
Expand All @@ -30,7 +29,7 @@

// Best Practices
"eqeqeq": "error",
"no-invalid-this": "error",
// "no-invalid-this": "error",
"no-return-assign": ["error", "except-parens"],
"no-unused-expressions": ["error", { "allowTernary": true }],
"no-useless-concat": "error",
Expand Down Expand Up @@ -107,8 +106,11 @@
"plugins": ["@typescript-eslint"],
"rules": {
"indent": "off",
"no-use-before-define": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/indent": ["error", 2]
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-use-before-define": "error"
}
}
]
Expand Down
39 changes: 21 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
- 2.x
- 0.x

pull_request:
types: [ready_for_review, synchronize, opened]
Expand All @@ -16,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2]
php: [8.2]
laravel: [10.*]

name: PHP:${{ matrix.php }} / Laravel:${{ matrix.laravel }}
Expand All @@ -25,14 +27,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node and run tests
uses: actions/setup-node@v1
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16.x"
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn test
node-version: "v18.12.x"

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
Expand All @@ -42,25 +40,30 @@ jobs:
tools: composer:v2
coverage: none

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-
- name: Install Node Modules
run: yarn install --frozen-lockfile

- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --no-interaction --no-suggest

- name: Check Composer configuration
run: composer validate --strict

- name: Setup dusk/chrome
run: vendor/bin/dusk-updater detect --auto-update

- name: Code Style Check
run: |
composer pint:test
yarn lint

- name: Run Jest tests
run: |
yarn build
yarn test

- name: Run PHPUnit tests
run: composer test
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ coverage
tests/Browser/console
tests/Browser/screenshots
tests/Browser/source
tests/Browser/tmp
.phpunit.result.cache
.phpunit.cache/
yarn-error.log
.idea
.vscode
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.15.0
v18.18.0
86 changes: 0 additions & 86 deletions .php-cs-fixer.php

This file was deleted.

98 changes: 61 additions & 37 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,78 @@
# Contributing
# Contributing to WireUI

## Before you start
We welcome contributions from everyone, and are grateful for the time and effort spent by contributors.
This document provides guidelines and steps for contributing to WireUI.

Please, make sure you have taken a look on [our documentation](https://livewire-wireui.com/).
## Table of Contents
- [Before You Start](#before-you-start)
- [Setting Up Your Environment](#setting-up-your-environment)
- [Working on a Local Project](#working-on-a-local-project)
- [Submitting Your Contributions](#submitting-your-contributions)

Are you with problem with one of ours components? The best way to reach us is to
open a new issue, we just ask you to search if your problem was discussed before
and if so continue the discussion there.
## Before You Start

Wanna to submit a new pull request? Let us know what you're planning to work opening a
new issue this will prevent that we're working on the same thing. We'll be very happy
to discuss and review your code.
- Please ensure you have reviewed [our documentation](https://wireui.dev) to familiarize yourself with the project.
- If you encounter issues with any of our components, we encourage you to [open a new issue](https://github.com/wireui/wireui/issues). Before doing so, please check for existing issues to avoid duplicates and continue the discussion there if the issue has already been reported.
- If you're planning to submit a pull request, kindly [open a new issue](https://github.com/wireui/wireui/issues) detailing your plans to ensure we're not working on the same feature/bug fix. We're always excited to review and discuss your code!

## Installing
## Setting Up Your Environment

To clone the project source and install its dependencies, run:
1. **Clone the repository and install dependencies:**

```shell
git clone [email protected]:wireui/wireui.git
cd wireui
```shell
git clone [email protected]:wireui/wireui.git
cd wireui
composer install
yarn install
```

2. **Running Tests:**
Make sure you have a chromium-based browser installed for running tests.

composer install
yarn install
```
```shell
composer test
yarn test
```

3. **Code Formatting:**
We adhere to a coding standard to maintain consistency. Before submitting your PR, ensure your code is formatted by running:

To run the project test make sure you have installed the chromium-browser and run:
```shell
composer pint
yarn lint
```
## Working on a Local Project
1. **Create a new Laravel project:**
```shell
composer create-project laravel/laravel wireui-demo
cd wireui-demo
```

```shell
composer test
```

Now you can work on the project. We're using a code standard to format our code
so before send your PR make sure that you run ` composer phpcs `.

## Work on a local project with the project source

After installing the projects using the steps above you can create a brand new laravel
project and add to the composer.json:

```json
...,
2. **Link local wireui into composer.json**
```json
"repositories": {
"local": {
"type": "path",
"url": "../path/to/wireui"
}
}
}
```
```

3. **Install WireUI as a local dependency:**
```shell
composer require wireui/wireui
```

4. **Complete the setup:**

Follow the WireUI [installation instructions](https://wireui.dev/docs/installation) to finish the setup.


5. **You're ready to contribute! 🎉**

## Submitting Your Contributions
Head over to the Pull Requests section in GitHub and create a new pull request.

Please provide a clear description of the changes you made, and reference any related issues.

After added this configuration you can install the wireui project as a local dependency
using ` composer require wireui/wireui `, so when you change the wireui source code
it will be reflected on your laravel package.
We look forward to your contributions!
24 changes: 14 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@
"blade components"
],
"require": {
"php": "^8.1",
"laravel/framework": "10.*",
"livewire/livewire": "^3.0"
"php": "^8.2",
"laravel/framework": "^10.0",
"livewire/livewire": "^3.1",
"wireui/heroicons": "^2.4"
},
"require-dev": {
"mockery/mockery": "^1.5",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^10.0",
"orchestra/testbench": "^8.0",
"orchestra/testbench-dusk": "^8.0",
"psy/psysh": "@stable",
"friendsofphp/php-cs-fixer": "^3.9",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-mock": "^1.0"
"psy/psysh": "^0.11.12",
"pestphp/pest": "^2.24",
"pestphp/pest-plugin-livewire": "^2.1",
"pestphp/pest-plugin-laravel": "^2.0",
"laravel/pint": "^1.10",
"livewire/volt": "^1.3"
},
"authors": [
{
Expand Down Expand Up @@ -50,12 +53,13 @@
],
"test": "./vendor/bin/pest",
"test:ci": "CI=true ./vendor/bin/pest",
"phpcs": "./vendor/bin/php-cs-fixer fix"
"pint": "./vendor/bin/pint",
"pint:test": "./vendor/bin/pint --test"
},
"extra": {
"laravel": {
"providers": [
"WireUi\\Providers\\WireUiServiceProvider"
"WireUi\\ServiceProvider"
],
"aliases": []
}
Expand Down
Loading