Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3838 commits
Select commit Hold shift + click to select a range
38e6f01
fix: minor issue in Uploader
abder Sep 24, 2024
d06717c
fix settings block body style
abder Sep 24, 2024
356d3c7
✨ new(skeleton): skeleton loading component created.
creador-dev Sep 24, 2024
86f1bfe
fix textarea value prop not updating the state
abder Sep 30, 2024
bc76fc7
✨ new(skeleton): skeleton component styles and variation added.
creador-dev Sep 30, 2024
f7ba014
✨ new(skeleton): skeleton component docs added.
creador-dev Oct 1, 2024
b09d37a
✨ new(skeleton): skeleton component docs added.
creador-dev Oct 1, 2024
65c3c9a
✨ new(skeleton): skeleton component tests added.
creador-dev Oct 1, 2024
12a66fe
✨ new(skeleton): skeleton component docs added.
creador-dev Oct 1, 2024
66405e8
Added onClick prop to tabs
abder Oct 3, 2024
edc15e3
✨ new(navigation): navigation component design updated.
creador-dev Oct 3, 2024
d4466e1
✨ new(navigation): navigation component design updated.
creador-dev Oct 4, 2024
0f859ea
✨ new(navigation): navigation component design updated.
creador-dev Oct 9, 2024
e932f84
✨ new(navigation): navigation component design updated.
creador-dev Oct 9, 2024
c7c979a
centerFooterActions prop for basic box component
abder Oct 9, 2024
df30417
✨ new(navigation): navigation component props added for arrows.
creador-dev Oct 9, 2024
ac93fdd
Merge branch 'fix/missing-icons' of https://github.com/wpmudev/sui-re…
abder Oct 9, 2024
6914230
merge with remote
abder Oct 9, 2024
a4e39b1
skeleton merge
abder Oct 9, 2024
1c4cc0a
Added skeleton to react package
abder Oct 9, 2024
c3ae970
✨ new(multiselect): multiselect async variation added.
creador-dev Oct 10, 2024
e1cfd9b
✨ new(navigation): navigation component mobile actions added.
creador-dev Oct 10, 2024
785be9c
✨ new(navigation): navigation component mobile actions added.
creador-dev Oct 10, 2024
9c8193a
✨ new(navigation): navigation component mobile actions added.
creador-dev Oct 10, 2024
92276a4
✨ new(navigation): navigation component mobile actions added.
creador-dev Oct 10, 2024
14fd260
✨ new(multiselect): multiselect async variation added.
creador-dev Oct 10, 2024
5f84953
✨ new(multiselect): multiselect test fixes.
creador-dev Oct 11, 2024
95a89eb
fix colSpan issue in tablecell
abder Oct 11, 2024
35c527a
✨ new(multiselect): multiselect set selected items only if items leng…
creador-dev Oct 11, 2024
a56eff6
fetch new/multiselect-variation
abder Oct 11, 2024
e86abaf
Merge branch 'new/multiselect-variation' of https://github.com/wpmude…
abder Oct 11, 2024
6858937
Added: hiddenOverflow to settings block
abder Oct 11, 2024
2648190
✨ new(multiselect): multiselect set selected items seperated state.
creador-dev Oct 13, 2024
68aaf41
✨ new(multiselect): multiselect test fix.
creador-dev Oct 13, 2024
1bc3ebb
✨ new(multiselect): multiselect test fix.
creador-dev Oct 13, 2024
b9de8de
✨ new(navigation): added new component more from wpmudev for navigati…
creador-dev Oct 13, 2024
b190c9e
✨ new(navigation): added new component more from wpmudev for navigati…
creador-dev Oct 14, 2024
29c4064
Merge branch 'new/multiselect-variation' of https://github.com/wpmude…
abder Oct 14, 2024
b286c79
Merge fixes
abder Oct 14, 2024
b0bb353
✨ new(multiselect): multiselect onChange selected prop added.
creador-dev Oct 14, 2024
cac3f6d
✨ new(variable): select variable onChange fix.
creador-dev Oct 14, 2024
0a809cd
✨ new(navigation): cleaning up navigation component.
creador-dev Oct 15, 2024
370fdcb
Merge branch 'new/multiselect-variation' of https://github.com/wpmude…
abder Oct 15, 2024
73ba866
Merge with new/multiselect-variation
abder Oct 15, 2024
d939df2
Merge pull request #309 from wpmudev/new/progress-bar
emgk Oct 15, 2024
cbc877a
Merge pull request #310 from wpmudev/new/form-field
emgk Oct 15, 2024
ceedcb0
Merge pull request #311 from wpmudev/fix/notifications
emgk Oct 15, 2024
0d8d496
Merge pull request #328 from wpmudev/new/use-responsive-hook
emgk Oct 15, 2024
94f76c9
fix: onChange invoke on removing an item using its tag
abder Oct 15, 2024
c031b0a
Merge branch 'new/multiselect-variation' into fix-sui-react-dependencies
abder Oct 15, 2024
29fac07
fix: onChange type
abder Oct 15, 2024
f0fc854
fix: onChange type
abder Oct 15, 2024
518b2a1
Merge branch 'fix-sui-react-dependencies' of https://github.com/wpmud…
abder Oct 15, 2024
72295bf
Merge pull request #331 from wpmudev/new/multiselect-variation
emgk Oct 15, 2024
cc136f3
✨ new(navigation): navigation component for plugins.
creador-dev Oct 16, 2024
392865a
✨ new(navigation): navigation component for plugins.
creador-dev Oct 16, 2024
c795ce9
✨ new(navigation): navigation component for plugins.
creador-dev Oct 16, 2024
221d5fd
✨ new(navigation): resolved tests.
creador-dev Oct 16, 2024
30e2acc
fix: select default value
abder Oct 16, 2024
0c5733f
✨ new(navigation): resolved tests.
creador-dev Oct 16, 2024
86ad2d0
✨ new(navigation): resolved conflicts.
creador-dev Oct 16, 2024
29065b6
Merge branch 'fix-sui-react-dependencies' of https://github.com/wpmud…
abder Oct 16, 2024
8c0ace7
Merge branch 'fix-sui-react-dependencies' into new/navigation-design
creador-dev Oct 17, 2024
bdcf45b
Merge pull request #330 from wpmudev/new/navigation-design
emgk Oct 17, 2024
a0afe36
Resolved conflicts.
creador-dev Oct 17, 2024
1eefe00
Resolved conflicts.
creador-dev Oct 17, 2024
7bb0858
✨ new(navigation-wpmudev): types issues fix.
creador-dev Oct 17, 2024
ee3fe97
✨ new(navigation-wpmudev): types issues fix.
creador-dev Oct 17, 2024
0a05b92
Fix: modal advanced variant scroll
abder Oct 17, 2024
b873543
✨ new(dashboard widget): dashboard widget full width prop added.
creador-dev Oct 17, 2024
b6caa70
✨ new(color): migrated colors to new.
creador-dev Oct 17, 2024
05628eb
✨ new(main): reverted react doc gen typescript.
creador-dev Oct 18, 2024
06150c0
Update README.md
emgk Oct 18, 2024
674cfec
✨ new(color): resolved test case.
creador-dev Oct 18, 2024
b2abf9b
Merge branch 'new/color-palette' of github.com:wpmudev/sui-react into…
creador-dev Oct 18, 2024
cf59166
✨ new(color): resolved test case.
creador-dev Oct 18, 2024
6c570ac
✨ new(color): resolved test case.
creador-dev Oct 18, 2024
30557f8
Merge pull request #332 from wpmudev/new/color-palette
emgk Oct 18, 2024
db2ba0b
✨ new(box): box component improvments.
creador-dev Oct 18, 2024
27b22bd
✨ new(color): basic box color fix.
creador-dev Oct 18, 2024
c7823f1
fix: add onChange callback to select all checkbox
abder Oct 18, 2024
2c17da6
Merge branch 'fix-sui-react-dependencies' of https://github.com/wpmud…
abder Oct 18, 2024
bf03f70
✨ new(box): summary box styles updated.
creador-dev Oct 18, 2024
7536502
Merge branch 'fix-sui-react-dependencies' of github.com:wpmudev/sui-r…
creador-dev Oct 18, 2024
ccf3ed4
✨ new(box): summary box styles updated.
creador-dev Oct 18, 2024
5c465d3
✨ new(grid): improved columns structure.
creador-dev Oct 18, 2024
f99251c
✨ new(settings block): settings block styles issue.
creador-dev Oct 18, 2024
347a879
✨ new(settings block): resolved test cases.
creador-dev Oct 18, 2024
02efee9
✨ new(settings block): removed unnecessary use of no-info.
creador-dev Oct 18, 2024
7e22ab8
new: tabs narrow variation
abder Oct 18, 2024
fb764d8
fix: search icon position in input
abder Oct 18, 2024
ff7f46b
box hasLargeRadius prop
abder Oct 18, 2024
22e83af
Basic Box large border radius prop
abder Oct 18, 2024
19ec685
fix: Box style
abder Oct 18, 2024
87a1283
page header mobile style fix
abder Oct 18, 2024
08dcc6b
fix: useDefaultChildren component 0 value
abder Oct 21, 2024
2f797df
added: upsell features icon and title props
abder Oct 22, 2024
44548cf
fix: upsell features icon size
abder Oct 22, 2024
44a6cdd
new: dev utils package
abder Oct 23, 2024
3ba3346
update: READMEs
abder Oct 23, 2024
99ddb96
update package lock file
abder Oct 23, 2024
d2122c6
update package lock
abder Oct 23, 2024
a8e1079
update npm registery
abder Oct 24, 2024
c405a03
merge with dev utils branch
abder Oct 24, 2024
37b2b9e
fix: skeleton a11y test
abder Oct 24, 2024
be4612b
Fix: a11y test
abder Oct 24, 2024
de46af8
new: use-prevent-unload hook
abder Oct 28, 2024
88d5fef
usePreventUnlod hook docs
abder Oct 28, 2024
e49b98d
fix useStyles hook not working in safari
abder Nov 6, 2024
9b26214
Removed unecessary packages
abder Nov 6, 2024
632a5f5
removed the check on css props validity
abder Nov 6, 2024
c33ccb6
new: added border to DashboardWidget component
abder Nov 7, 2024
725e595
fix: toolbar actions size has to be larger
abder Nov 7, 2024
12df340
fix spacing issue in toggle toolbar
abder Nov 7, 2024
9aad4ae
fix: sidebar dropdown z-index issue
abder Nov 8, 2024
93766cf
fix nested rows with columns style issue
abder Nov 8, 2024
023f6d3
spacing fixes for summary box
abder Nov 8, 2024
fe02304
🐛 fix(grid): grid spacing fix.
creador-dev Nov 11, 2024
38eba48
table selection cell issue in safari
abder Nov 11, 2024
b99caf6
Merge branch 'fix/sui-grid' of https://github.com/wpmudev/sui-react i…
abder Nov 12, 2024
f91d90d
minor fixes
abder Nov 12, 2024
d4b840e
Merge pull request #335 from wpmudev/fix/sui-grid
emgk Nov 13, 2024
8fb5f69
flex direction fix in summary box
abder Nov 13, 2024
73488fa
Merge branch 'fix-sui-react-dependencies' of https://github.com/wpmud…
abder Nov 13, 2024
036af19
✨ new(navigation): wpmudev navigation structure improved.
creador-dev Nov 13, 2024
6dc477e
✨ new(navigation): wpmudev navigation structure improved.
creador-dev Nov 13, 2024
7e136bd
✨ new(navigation): navigation wpmudev styles improvement.
creador-dev Nov 13, 2024
9663293
✨ new(navigation): navigation wpmudev added new style.
creador-dev Nov 13, 2024
359ec21
fix colors in notification & tabs
abder Nov 14, 2024
398e4e3
notifiaction color fix & button link external
abder Nov 15, 2024
abe6769
fix: link focus outline not appearing
abder Nov 15, 2024
5c0039f
merge
abder Nov 18, 2024
40bd2f8
Added: new SummaryBox variation
abder Nov 18, 2024
1c97387
fix: modal scroll bar background
abder Nov 19, 2024
9480e73
✨ new(navigation wpmudev): navigation wpmudev docs updated.
creador-dev Nov 19, 2024
b7008f3
✨ new(navigation wpmudev): navigation wpmudev docs updated.
creador-dev Nov 20, 2024
5027f0f
minor fixes and features
abder Nov 20, 2024
300013f
fix: spacing issues
abder Nov 25, 2024
1965cc2
summarybox variations: code & examples
abder Nov 25, 2024
74ce86d
merge with summary new variations
abder Nov 26, 2024
8d95cdc
fix build css not working
abder Nov 26, 2024
376b779
fix build css not working
abder Nov 26, 2024
a009e34
merge with remote
abder Nov 26, 2024
9e6244e
Merge pull request #337 from wpmudev/improvement/navigation-wpmudev
emgk Nov 27, 2024
f93ffcf
fix: lint issues
abder Nov 27, 2024
420e4c9
🐛 fix(selector): selector color issue fix.
creador-dev Nov 28, 2024
7732043
🐛 fix(radio): radio color fix.
creador-dev Nov 29, 2024
44480f5
🐛 fix(button): button transition fix.
creador-dev Dec 3, 2024
5cf9760
🐛 fix(colors): component colors improved.
creador-dev Dec 3, 2024
a5f7870
🐛 fix(colors): component colors improved.
creador-dev Dec 3, 2024
37a59f0
🐛 fix(colors): component colors improved.
creador-dev Dec 3, 2024
1e06f32
🐛 fix(colors): segmented control and recipient color updated.
creador-dev Dec 3, 2024
b4452d6
🐛 fix(colors): component colors improved.
creador-dev Dec 3, 2024
080e66e
Merge pull request #339 from wpmudev/fix/color-issues
emgk Dec 5, 2024
d104479
✨ new(notification): neutral variation added for notification.
creador-dev Dec 18, 2024
2d71be4
✨ new(sidebar): sidebar docs and styles updated.
creador-dev Dec 18, 2024
37c1a85
Merge pull request #340 from wpmudev/notifications-variation
emgk Dec 18, 2024
89ecf60
Merge pull request #341 from wpmudev/docs/sidebar
emgk Dec 18, 2024
d1a3cdc
update: disable bulk select if there're no rows to select
abder Dec 23, 2024
51bace2
Added disable check to table
abder Dec 23, 2024
c4c9538
update: rows selection and bulk action process improved
abder Dec 23, 2024
b3dcca6
fix: tertiary button disabled style
abder Dec 24, 2024
4c1bf53
Added name prop for PasswordField
abder Dec 24, 2024
6c42672
updated Table component docs
abder Dec 24, 2024
320f756
white variation for spinner + fix button width when loading
abder Dec 26, 2024
dc2d733
fix: loading iconed button width
abder Dec 26, 2024
e85c333
Added gray variation to spinner
abder Dec 26, 2024
c53364c
fix: test error
abder Dec 26, 2024
a8d7c69
Added missed isDisabled prop to button loader
abder Dec 26, 2024
0349e1e
updated usage tab for setting block
abder Dec 30, 2024
51bed4a
Examples & props for the new SettingBlockOption component
abder Dec 31, 2024
5ce6d1b
Added full layout example
abder Jan 1, 2025
a0ba425
fix: option title color
abder Jan 2, 2025
04ed16d
fix: console error on toggle button
abder Jan 2, 2025
ab7c0ae
fix: enable switch only when clicking on label or the toggle itself
abder Jan 13, 2025
47c6c1b
Fix: spacing issue in toggle for dhasboard
abder Jan 13, 2025
21d171f
fix: checkbox label expanded width to 100%
abder Jan 20, 2025
037a106
fix/THC: setting block component header full width
abder Jan 23, 2025
c3780fb
fix: Setting Block option style
abder Jan 24, 2025
32834db
fix: SettingBlockOption component width
abder Jan 24, 2025
38677ab
fix: footer links style
abdo99989 Jan 31, 2025
6f12fdf
New: target field for footer links
abdo99989 Jan 31, 2025
fbb5daf
fix: summary box doc images
abdo99989 Feb 3, 2025
0a62819
✨ new(datepicker): datepicker styles improvement.
creador-dev Feb 25, 2025
4d281ce
✨ new(box): box stories updated.
creador-dev Feb 25, 2025
1847637
✨ new(datepicker): datepicker styles improvement.
creador-dev Feb 25, 2025
f4c3b89
🐛 fix(select): select remove selected item method re-run issue fix.
creador-dev Mar 4, 2025
f62f60e
🐛 fix(toggle): toggle description tag changed from p to div.
creador-dev Mar 5, 2025
8cb6e69
🐛 fix(setting block): settings block description tag changed from p t…
creador-dev Mar 6, 2025
559b1e4
Fix multi-select wrapping issue
creador-dev Mar 28, 2025
728838c
Fix tooltip width
creador-dev Mar 28, 2025
e40a358
fix(select): multiselect options width fix.
creador-dev Apr 3, 2025
eb0450b
fix(select): multiselect options width fix.
creador-dev Apr 3, 2025
243100d
fix(segmented control): segmneted conrol scroll when overflow.
creador-dev Apr 3, 2025
d82c5c4
fix(segmented control): segmneted conrol scroll when overflow.
creador-dev Apr 3, 2025
de57663
fix(segmented control): segmneted control added use scroll feature.
creador-dev Apr 3, 2025
f6f8dd9
fix(use scroll): useScrol hook observe the element in the DOM.
creador-dev Apr 3, 2025
1a36044
Mock IntersectionObserver in jest for tests
creador-dev May 27, 2025
4c7afd7
Mock IntersectionObserver in jest for tests
creador-dev May 27, 2025
9c9091b
footer: add option for custom footer hide links and text.
creador-dev Jun 2, 2025
65968c1
Dashboard widget field list styles.
creador-dev Jun 26, 2025
754e566
chore: configure husky + nvm
emgk Jul 23, 2025
ebbd6fd
chore: configure commitlint.config.js
emgk Jul 23, 2025
2cda229
chore: improve package.json
emgk Jul 23, 2025
6b6176c
test commit
emgk Jul 24, 2025
f606e82
chore: improve husky hooks
emgk Jul 24, 2025
59414a8
docs(contribution): update with new tools
emgk Jul 25, 2025
7814992
Merge pull request #346 from wpmudev/update/improve-workflow
emgk Jul 25, 2025
69d6fcd
fix(tabs): tabs component scroll fix
creador-dev Aug 18, 2025
3d73467
fix(tabs): tabs scroll fix so it slides only one item
creador-dev Aug 20, 2025
0a485e2
new(alert-banner) Alert banner content fluid option
creador-dev Aug 20, 2025
e9d00cf
new(alert-banner) Alert banner content fluid styles
creador-dev Aug 20, 2025
5008bab
new(alert-banner) Alert banner content fluid option
creador-dev Aug 20, 2025
a4fb0c1
Merge pull request #350 from wpmudev/new/alert-banner-fluid
emgk Aug 20, 2025
48c48a1
fix(tabs): tabs scroll fix so it slides only one item
creador-dev Aug 20, 2025
334ea9e
changeset(tabs): added changelog for scrollable hook
creador-dev Aug 21, 2025
ae9b911
Merge pull request #351 from wpmudev/fix/tabs-scroll
emgk Aug 25, 2025
5e18b8d
Exported menu types for navigation component.
creador-dev Aug 25, 2025
01693ba
Merge pull request #343 from wpmudev/fix/datepiker-styles
emgk Sep 22, 2025
36d59fb
Merge remote-tracking branch 'origin/development' into fix-sui-react-…
emgk Sep 22, 2025
9502338
chore: update package-lock.json
emgk Sep 22, 2025
3d6c997
refactor: remove react package from some packages
emgk Sep 22, 2025
3d1b7ff
chore: update package-lock.json
emgk Sep 22, 2025
9be8149
chore: update package-lock.json
emgk Sep 22, 2025
190911a
chore: create changeset version file
emgk Sep 23, 2025
5a3ee46
Merge pull request #307 from wpmudev/fix-sui-react-dependencies
emgk Sep 23, 2025
064c669
chore(release): bump versions and update CHANGELOG.md
emgk Sep 23, 2025
b7dd28e
Table allow row selection disabled.
creador-dev Sep 25, 2025
94385e0
Merge pull request #352 from wpmudev/fix/table-row-selection
emgk Sep 25, 2025
600ee94
chore(table): bump sui-table to 1.0.1
emgk Sep 25, 2025
b4c6527
fix(summary): summary box pro tag props fix
creador-dev Sep 29, 2025
46cebae
fix(summary): summary box pro link props fix
creador-dev Sep 29, 2025
73acb59
Merge pull request #353 from wpmudev/fix/summary-box-tag
emgk Sep 30, 2025
d23d2db
chore(summary-box): bump summary-box to 0.1.1
emgk Sep 30, 2025
b0366a0
fix: wordpress hide wp footer
creador-dev Oct 10, 2025
8f2507a
docs: added changelog
creador-dev Oct 10, 2025
35d8c9a
Update cuddly-adults-smell.md
creador-dev Oct 13, 2025
ac03b2a
Merge pull request #354 from wpmudev/fix/wordpress-styles
emgk Oct 13, 2025
abd5721
chore(css): bump css to 0.1.1
emgk Oct 13, 2025
060b11a
fix: fix react key error
creador-dev Oct 25, 2025
3792b7e
docs: added changeset
creador-dev Oct 25, 2025
c7cc8d4
Update changelog
creador-dev Nov 3, 2025
02497df
Merge pull request #356 from wpmudev/fix/key-error
emgk Nov 3, 2025
f547d0e
chore: bump multi package versions
emgk Nov 3, 2025
7071525
fix: use validation in input copy paste
creador-dev Dec 1, 2025
263158b
docs: useValidation hook changeset
creador-dev Dec 1, 2025
48e1b47
feat: password field onChange prop added
creador-dev Dec 1, 2025
7baefe9
docs: added changeset for password field
creador-dev Dec 1, 2025
752ca89
chore: update changeset to patch versions
emgk Jan 7, 2026
594f219
Merge pull request #357 from wpmudev/fix/use-validation
emgk Jan 7, 2026
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
16 changes: 16 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
13 changes: 13 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "wpmudev/sui-react" }
],
"commit": false,
"linked": [],
"access": "restricted",
"baseBranch": "development",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/deep-peas-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpmudev/sui-input": patch
---

useValidation hook validate support for copy/paste
5 changes: 5 additions & 0 deletions .changeset/sad-chairs-lie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpmudev/sui-password-field": patch
---

onChange prop added for password field
5 changes: 2 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
root = true

[*]
indent_style = tab
indent_size = 4
tab_width = 4
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[{package.json,*.yml}]
indent_style = space
Expand Down
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.cache
.idea
dist
node_modules
44 changes: 44 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
parser: "@typescript-eslint/parser",
env: {
es6: true,
browser: true,
node: true,
"jest/globals": true,
},
settings: {
react: {
version: "detect",
},
},
extends: [
"plugin:@wordpress/eslint-plugin/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:eslint-comments/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:storybook/recommended",
],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react"],
rules: {
"import/no-extraneous-dependencies": "off",
},
}
32 changes: 32 additions & 0 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Code Review

on:
pull_request:
branches:
- development
- master
push:
branches:
- development
- master

jobs:
code-quality:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install Dependencies
run: npm ci

- name: Run code quality checks
run: |
npm run test:a11y -- --coverage
npm run lint
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ node_modules
.npmrc
.changelog
.dccache
dist
lib
.idea
storybook-static
coverage
verdaccio
.vscode

# Ignore all error logs.
*.log
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit "$1"
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
19
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ coverage
# Ignore minified files:
*.min.js
*.min.css
*.md
*.mdx
13 changes: 8 additions & 5 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"useTabs": true,
"tabWidth": 4,
"bracketSpacing": true,
"jsxSingleQuote": false,
"printWidth": 80,
"singleQuote": true,
"trailingComma": "es5",
"proseWrap": "always",
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": true,
"bracketSameLine": false,
"arrowParens": "always",
"parenSpacing": true,
"bracketSpacing": true,
"endOfLine": "lf",
"overrides": [
{
Expand Down
7 changes: 7 additions & 0 deletions .storybook/.babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-typescript",
"@babel/preset-react"
]
}
21 changes: 21 additions & 0 deletions .storybook/assets/css/wordpress.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Version: 6.0
* Source: wp-includes/css/
*/
@import url(./wordpress/dashicons.css);
@import url(./wordpress/admin-bar.css);

/**
* Version: 6.0
* Source: wp-admin/css/
*/
@import url(./wordpress/common.css);
@import url(./wordpress/admin-menu.css);
@import url(./wordpress/nav-menus.css);
@import url(./wordpress/l10n.css);

/**
* Showcase
*
* Add some custom styles for showcase admin bar.
*/
Loading
Loading