Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
489 commits
Select commit Hold shift + click to select a range
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
3cc8f11
Created a new component Template Card.
creador-dev Jan 28, 2025
2ecf7cb
Created a new component Template Card.
creador-dev Jan 28, 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
cf4b2bd
✨ new(template): template card component styles.
creador-dev Feb 3, 2025
a5c508e
✨ new(template): template card component context and radio input.
creador-dev Feb 4, 2025
01042ed
✨ new(template): added is overflowing hook.
creador-dev Feb 4, 2025
f31fd8c
✨ new(template): template card styles cleanup.
creador-dev Feb 5, 2025
55b570f
✨ new(template): template card focus and hover fix.
creador-dev Feb 5, 2025
d363e0f
✨ new(template): template card high contrast styles.
creador-dev Feb 5, 2025
f2f6da5
✨ new(template): template card rtl styles.
creador-dev Feb 5, 2025
070e0c1
Merge branch 'fix-sui-react-dependencies' into new/template-card
creador-dev Feb 5, 2025
b3cda88
✨ new(template): template card docs.
creador-dev Feb 6, 2025
2bb7ee5
✨ new(template): template card test cases.
creador-dev Feb 6, 2025
2c87d5d
✨ new(template): template card docs missing image.
creador-dev Feb 6, 2025
e838c44
✨ new(template): Update template card readme.
creador-dev Feb 6, 2025
18b2953
✨ new(template): Update template card readme.
creador-dev Feb 6, 2025
4affc63
✨ new(template): Template card package json issue.
creador-dev Feb 7, 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
86d362b
✨new(list): added new list component.
creador-dev Jul 16, 2025
26f88b4
✨new(list): added new list component.
creador-dev Jul 18, 2025
6e85ff5
✨new(list): added list component pro option.
creador-dev Jul 21, 2025
6d25862
✨new(list): list item on item click and on click added.
creador-dev Jul 23, 2025
da001a7
✨new(list): list variants added bordered, unstyled and flushed.
creador-dev Jul 23, 2025
cc3872d
✨new(list): updated list variants and added test cases.
creador-dev Jul 23, 2025
22326d5
📦 Updated packages.
creador-dev Jul 23, 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
8293d5f
✨ docs(list): added list component docs
creador-dev Jul 24, 2025
2d5a54d
✨ docs(list): added list component docs
creador-dev Jul 24, 2025
89bc8d8
✨ docs(list): added list component docs
creador-dev Jul 24, 2025
fc79b1d
📦 Updated packages.
creador-dev Jul 24, 2025
9651c73
Resolved conflicts.
creador-dev Jul 24, 2025
8916fde
fix failing of tests.
creador-dev Jul 24, 2025
399ec05
fix failing of tests.
creador-dev Jul 24, 2025
df71aff
Merge branch 'fix-sui-react-dependencies' into new/template-card
creador-dev Jul 24, 2025
56771f1
Merge branch 'development' into fix/color-picker-blank-image
creador-dev Jul 24, 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
45c5046
fix: add missing ids to components
creador-dev Dec 16, 2025
f9cdc98
docs: added changelog
creador-dev Dec 16, 2025
3b339d8
fix: add missing ids to components
creador-dev Dec 16, 2025
34355bd
fix: add missing types
creador-dev Dec 16, 2025
8c68c83
fix: add missing type for navigation component
creador-dev Dec 23, 2025
b5bb3fa
fix: add missing type for avatar and navigation
creador-dev Dec 23, 2025
8dec2e7
fix: add missing ids for table component
creador-dev Dec 23, 2025
eb0a9a0
fix: add missing ids for dashboard widget
creador-dev Dec 23, 2025
88b5f15
fix: add missing ids for footer component
creador-dev Dec 23, 2025
5088837
fix: missing id for basic box
creador-dev Dec 24, 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
b0c1262
feat: add id prop for button and table cell
creador-dev Jan 13, 2026
43b6c71
feat: add id in tab nav
creador-dev Jan 13, 2026
dd283dc
feat: add id in notification component
creador-dev Jan 13, 2026
a811bfb
fix: failing test cases
creador-dev Jan 13, 2026
98bebd1
fix: failing test cases
creador-dev Jan 13, 2026
1b68533
fix: failing test cases
creador-dev Jan 13, 2026
a98b0db
docs: added changeset
creador-dev Jan 13, 2026
8c3ebf0
docs: remove duplicate changeset
creador-dev Jan 13, 2026
1528507
Merge pull request #358 from wpmudev/new/missing-ids
emgk Jan 13, 2026
4c8cd3c
chore: bump packages version
emgk Jan 13, 2026
a9157b7
fix(sui-css): update _tokens.scss
emgk Jan 13, 2026
c962ee4
fix: table and navigation wpmudev missing id
creador-dev Jan 15, 2026
c837d82
docs: added changeset
creador-dev Jan 15, 2026
a99492e
Merge pull request #360 from wpmudev/fix/missing-id
emgk Jan 15, 2026
409bbf7
chore: update CHANGELOG.md + bump versions
emgk Jan 15, 2026
fa34d69
fix(css): update _tokens.scss
emgk Jan 15, 2026
883fe86
Merge pull request #306 from wpmudev/fix/tag-docs
emgk Jan 19, 2026
22c417d
Merge pull request #314 from wpmudev/fix/color-picker-blank-image
emgk Jan 19, 2026
9839573
Merge branch 'development' into new/list-component
creador-dev Jan 20, 2026
8ef3663
fix: resolve comflicts
creador-dev Jan 20, 2026
e687f21
fix: resolve comflicts
creador-dev Jan 20, 2026
e9abd79
fix: package conflict issue
creador-dev Jan 20, 2026
5c1373f
fix: package conflict issue
creador-dev Jan 20, 2026
0cbbb3e
fix: test case for recipient
creador-dev Jan 20, 2026
f96f38f
fix: test case for uploader
creador-dev Jan 20, 2026
cb2c5e4
fix: test case for template card
creador-dev Jan 20, 2026
4a48b89
docs: added changeset
creador-dev Jan 20, 2026
0a9e7dd
docs: added changeset
creador-dev Jan 20, 2026
c076e6f
docs: added changeset
creador-dev Jan 20, 2026
4658f19
docs: added changeset
creador-dev Jan 20, 2026
dc27ff9
Merge pull request #344 from wpmudev/new/list-component
emgk Jan 20, 2026
5cef527
Merge pull request #313 from wpmudev/new/components-color
emgk Jan 20, 2026
77eae3c
fix: resolve comflicts
creador-dev Jan 20, 2026
5eee2c5
Merge pull request #342 from wpmudev/new/template-card
emgk Jan 20, 2026
c82bcbf
fix: change ids format to kebab case
creador-dev Jan 20, 2026
eaf9cce
fix: change ids format to kebab case
creador-dev Jan 20, 2026
759bc38
fix: change ids format to kebab case
creador-dev Jan 20, 2026
cbbad6f
fix: change ids format to kebab case
creador-dev Jan 20, 2026
a9ead37
docs: added changeset
creador-dev Jan 20, 2026
1b75e5c
Merge pull request #361 from wpmudev/fix/ids-format
emgk Jan 20, 2026
ceae0fa
chore: merge with development
creador-dev Jan 20, 2026
cf120cd
fix: list component css issue
creador-dev Jan 20, 2026
de4695f
docs: added changeset
creador-dev Jan 20, 2026
b69e0a6
Merge pull request #334 from wpmudev/remove-sui-react
emgk Jan 20, 2026
851c938
fix: component styles issues
creador-dev Jan 20, 2026
761d6ab
docs: added changeset
creador-dev Jan 20, 2026
5f66b2f
fix: remove sui react from changeset
creador-dev Jan 20, 2026
752283a
Merge pull request #362 from wpmudev/fix/css-issues
emgk Jan 20, 2026
cec7c4a
chore: improve package.json
emgk Jan 21, 2026
e01e215
chore: update CHANGELOG.md + bump versions
emgk Jan 21, 2026
44a3ab1
Merge pull request #364 from wpmudev/fix/improve-packages
emgk Jan 21, 2026
96a1ca7
fix: update basic box bg issue
creador-dev Jan 21, 2026
ae10f01
docs: added changeset
creador-dev Jan 21, 2026
3e21504
Merge pull request #365 from wpmudev/fix/basic-box-css
emgk Jan 21, 2026
e240bd9
chore: add CHANGELOG.md + bump versions
emgk Jan 21, 2026
8a8a8d6
Merge remote-tracking branch 'original/master' into development
emgk Feb 5, 2026
f51c734
Merge remote-tracking branch 'original/master' into development
emgk Feb 5, 2026
392dab0
chore: downgrade package versions to 0.0.1 and update dependencies
emgk Feb 5, 2026
041f194
chore: downgrade all package versions to 0.0.1 and update dependencies
emgk Feb 5, 2026
0784d2c
chore: add changeset for component updates in Dash plugin
emgk Feb 5, 2026
42e64f2
ci: clarify deployment timestamp format and adjust conditional format…
emgk Feb 5, 2026
8b969d8
ci: update conditional check for PR comment step in deploy workflow
emgk Feb 5, 2026
1ea691b
chore: add package.json for new `@wpmudev/sui-page-header` component
emgk Feb 5, 2026
c2413d3
chore: update package-lock.json to include `@wpmudev/sui-page-header`…
emgk Feb 5, 2026
7954830
docs: update RELEASING.md with a comprehensive release guide
emgk Feb 5, 2026
636fdd9
ci: add build step to deploy workflow
emgk Feb 5, 2026
4082977
Merge pull request #367 from wpmudev/update/reset-pkg-versions
emgk Feb 5, 2026
d2fbf76
ci: pass release PR number to deployment status message
emgk Feb 5, 2026
3e68d6e
ci: update preview link labels in deploy workflow
emgk Feb 5, 2026
74ad426
fix(uploader): update file ID type to `string` and simplify file remo…
emgk Apr 17, 2026
2bfe897
fix(uploader): resolve issue with `onRemoveFile` method in uploader c…
emgk Apr 17, 2026
13cc7cc
chore: update package-lock.json with version upgrades for Storybook d…
emgk Apr 17, 2026
131817a
chore: regenerate package-lock.json with Node 20 / npm 10 to match CI
emgk Apr 17, 2026
c1b138d
Merge pull request #372 from wpmudev/fix/uploader-delete-btn
emgk Apr 17, 2026
a938132
chore: version packages for production release
github-actions[bot] Apr 17, 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
  •  
  •  
  •  
14 changes: 9 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
EOF
export NPM_CONFIG_USERCONFIG=$(pwd)/.npmrc
npx changeset version --snapshot ${{ env.TAG }}
npm run build
npx changeset publish --tag ${{ env.TAG }} --registry ${{ vars.NPM_STAGING }} --no-git-tag

- name: Remove outdated snapshot versions
Expand Down Expand Up @@ -230,7 +231,7 @@ jobs:

- name: Comment - No Changesets Found
uses: mshick/add-pr-comment@v2
if: always() && steps.check_changesets.outputs.found != 'true'
if: success() && steps.check_changesets.outputs.found != 'true'
with:
message-id: 'deployment-status' # Unique key to identify this specific comment thread
message: |
Expand All @@ -249,6 +250,7 @@ jobs:
if: success() && steps.check_changesets.outputs.found == 'true'
with:
message-id: 'deployment-status' # MATCHES the ID above
issue: ${{ env.RELEASE_PR_NUMBER }}
message: |
## ${{ env.TAG == 'rc' && 'Release Candidate' || 'Snapshot' }} Deployment Successful

Expand All @@ -257,17 +259,19 @@ jobs:
- **Registry:** `${{ env.REGISTRY }}`
- **Tag:** `${{ env.TAG }}`
- **Commit:** [`${{ env.SHORT_SHA }}`](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
- **Deployed:** ${{ env.TIMESTAMP }}
- **Deployed:** ${{ env.TIMESTAMP }} (UTC)
- **Branch:** `${{ github.head_ref || github.ref_name }}`

**Preview Links**
- [View Storybook Components](${{ vars.UI_DOC }}/${{ env.TAG }})
- [NPM Registry](${{ env.REGISTRY }})
- [View UI Doc](${{ vars.UI_DOC }}/${{ env.TAG }})
- [Package Registry](${{ env.REGISTRY }})

**Installation**
```bash
npm install <package-name>@${{ env.TAG }} --registry ${{ env.REGISTRY }}
```

**Next Steps**
${{ env.TAG == 'rc' && '- This release candidate is ready for testing \n- Merge to master to publish to production' || '- Review the changes in Storybook \n - Test the snapshot packages in your project' }}
${{ env.TAG == 'rc' && '- This release candidate is ready for testing
- Merge to master to publish to production' || '- Review the changes in Storybook
- Test the snapshot packages in your project' }}
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
4 changes: 3 additions & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ const SuiWrapper = ({ children, context }) => {

return (
<WordPress>
<div className={`sui-wrap sui-theme--${suitheme}`}>{children}</div>
<div id="sui-wrap" className={`sui-wrap sui-theme--${suitheme}`}>
{children}
</div>
</WordPress>
)
}
Expand Down
223 changes: 171 additions & 52 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -1,77 +1,196 @@
# Contribution Guide

This guide outlines the process for contributing to the SUI React repository. Please follow these guidelines to ensure a smooth and consistent contribution workflow.

## Project Setup

To start contributing to SUI React, follow these steps:

1. Fork the repository by clicking the <kbd>Fork</kbd> button located at the top right of this page. ([SUI React repo](https://github.com/wpmudev/sui-react))

1. Fork the repository by clicking the **Fork** button at the top right of the [SUI React repository](https://github.com/<organization>/sui-react).
2. Clone your fork locally:

```sh
git clone https://github.com/<github_username>/sui-react.git
cd sui-react
```

3. Install all dependencies and packages by running `npm ci`. This command will take care of installing the necessary dependencies.
```bash
git clone https://github.com/<github_username>/sui-react.git
cd sui-react
```
3. Install all dependencies and packages:
```bash
npm ci
```

## Development

To enhance our development process, we've implemented tooling and systems. SUI React utilizes a monorepo structure, and each component is treated as an independent package that can be used in isolation.
SUI React utilizes a monorepo structure, where each component is treated as an independent package that can be used in isolation.

### Packages
- **`./packages/assets/css`**: This directory houses styling and CSS files, ensuring a uniform and cohesive UI design.
- **`./packages/assets/icons`**: Icons for icon assets.
- **`./packages/react`**: This package serves as the hub for all UI components, providing a streamlined export for easy integration.
- **`./packages/hooks`**: In this directory, you'll find custom React hooks designed for reusable functionalities, enhancing code modularity.
- **`./packages/utils`**: A collection of helper functions and modules catering to common operations.
- **`./packages/ui/*`**: This folder includes all the UI component packages.
- **`./packages/common/*`**: These packages are combination of component packages which falls under same category.
- **./packages/assets/css**: Houses styling and CSS files for a uniform and cohesive UI design.
- **./packages/assets/icons**: Contains icon assets.
- **./packages/react**: Central hub for all UI components, providing streamlined exports for easy integration.
- **./packages/hooks**: Custom React hooks for reusable functionalities, enhancing code modularity.
- **./packages/utils**: Helper functions and modules for common operations.
- **./packages/ui/***: Individual UI component packages.
- **./packages/common/***: Combinations of component packages grouped by category.

### Tooling

- [Lerna](https://lerna.js.org/) to keep track of packages and dependencies.
- [Storybook](https://storybook.js.org/) helps us quickly develop and test UI components.
- [Testing Library](https://testing-library.com/) ensures our components and hooks are thoroughly tested.
- [Changeset](https://github.com/atlassian/changesets) is there to document changes, create changelogs, and manage releases
- **Lerna**: Manages packages and dependencies in the monorepo.
- **Storybook**: Facilitates rapid development and visual testing of UI components.
- **Testing Library**: Ensures components and hooks are thoroughly tested.
- **Changeset**: Manages versioning, changelogs, and releases.

### Commands
- `npm ci`: Installs all necessary dependencies for development.
- `npm run storybook`: Starts the Storybook server for visually testing components.
- `npm run build`: Builds all component packages.
- `npm run test`: Runs tests for all component packages.
- `npm run test:dev`: Runs tests with the `--watch` flag for continuous monitoring.
- `npm run test:a11y`: Runs tests with accessibility checks.

- **`npm ci`**: Installs all the necessary dependencies for development.
- **`npm run storybook`**: Initiates the Storybook server. This is useful for visually testing components during development.
- **`npm run build`**: Executes the build process for all component packages.
- **`npm run test`**: Runs tests for all component packages.

## Making a Pull Request?
## Commit Guidelines

### Commit Guidelines
We enforce [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) for all commit messages to ensure a clear and consistent commit history. Non-compliant commits will be rejected.

Before submitting Pull Request, ensure that your commits adhere to the commit conventions specified in this repository.
### Commit Message Format
```
<category>(<scope>): <message>
```

When making a commit, please use the following format for your commit message: `category(scope or module): message`. Choose one of the following categories:
- **category**: One of the following:
- `feat`: New features or code.
- `fix`: Bug fixes (ideally reference the related issue).
- `refactor`: Code changes that are neither fixes nor features.
- `docs`: Documentation updates or additions (e.g., README, library usage docs).
- `build`: Changes to app building, dependencies, or new dependencies.
- `test`: Test-related changes, including new or modified tests.
- `ci`: Continuous integration configuration changes (e.g., GitHub Actions).
- `chore`: Other changes not covered by the above categories.
- **scope**: The affected package or module (e.g., `button`, `hooks`, `utils`).
- **message**: A concise description of the change (max 50 characters).

- ✨`feat`: for changes introducing new code or features
- 🐛`fix`: for changes addressing and fixing bugs (ideally, reference the related issue)
- 🔨`refactor`: for any code-related changes that are neither fixes nor features
- 📚`docs`: for modifications to existing documentation or the creation of new documentation (e.g., README, documentation for library usage)
- 📦`build`: for changes related to app building, dependencies, or the addition of new dependencies
- 🚨`test`: for changes related to tests, including the addition of new tests or modifications to existing ones
- 👷`ci`: for changes related to the configuration of continuous integration (e.g., GitHub Actions, CI system)
- 🔧`chore`: for all other changes to the repo that don't fit into the categories mentioned above
**Examples**:
- `feat(button): add new button variants`
- `fix(auth): resolve login error handling`
- `docs(readme): update installation instructions`

> Important:
> 1. Follow the commit convention in both the PR title and commit message.
> 2. Icons will be added to the changelog automatically. Please refrain from using icons when writing commit or pull request titles, as this may result in multiple icons.
**Important**:
- Use the same convention for both commit messages and PR titles.

### PR Submission Process
### Steps to Commit
1. Stage your changes: `git add .` or specific files.
2. Commit with a conventional message: `git commit -m "<category>(<scope>): <message>"`.
3. If the commit is rejected, ensure the message adheres to the format.

1. Begin by forking `sui-react` repository and subsequently clone your fork.
2. Create a new branch originating from the `development` employing the `[type/scope]` such as: `fix/button`.
3. Commit your changes following the commit convention. Validate your changes during development using `npm run storybook` and `npm run test --a11y`.
4. Execute `npm run changeset` to write description of your modifications. It will contributes to the generation of a changelog during the release phase. Check [Changeset documentation](https://github.com/atlassian/changesets/tree/master/packages/cli) for additional insights.
## Branch Naming Conventions

### Tests
Branches should align with Conventional Commits and follow a clear naming pattern to reflect the type of change.

Every commit addressing bugs or introducing new features requires a test, you can use following commands as per your need:
### Branch Naming Pattern
```
<type>/<short-description>
```

- **`npm run test`**: Runs tests for all component packages.
- **`npm run test:dev`**: Runs tests for all component packages with the `--watch` flag, allowing continuous monitoring.
- **`npm run test:a11y`**: Runs tests with accessibility.
- **type**: Matches the commit category (`feat`, `fix`, `docs`, etc.).
- **short-description**: A brief, hyphenated description of the change.

**Examples**:
- `feat/add-button-variants`
- `fix/auth-error-handling`
- `docs/update-readme`

### Main Branches
- **master**: Production-ready branch. Only the `development` branch is merged into `master` during a release. Direct commits or PRs to `master` are not allowed.
- **development**: The integration branch for all changes. All PRs must target this branch.

### Steps to Create a Branch
1. Ensure you are on the `development` branch: `git checkout development`.
2. Create a new branch: `git checkout -b <type>/<short-description>`.
3. Make changes and commit using the Conventional Commits format.
4. Push the branch: `git push origin <type>/<short-description>`.

## Using NVM for Node Version Management

We use [Node Version Manager (nvm)](https://github.com/nvm-sh/nvm) to ensure consistent Node.js versions across development environments.

### Setting the Node Version
1. Install `nvm` by following the instructions in the [official nvm documentation](https://github.com/nvm-sh/nvm#installing-and-updating).
2. Check the required Node version in the `.nvmrc` file:
```bash
cat .nvmrc
```
3. Use the specified version:
```bash
nvm use
```
4. If the version is not installed, install it:
```bash
nvm install
```
5. Verify the active Node version:
```bash
node --version
```

## Using Changesets for Version Management

We use [Changesets](https://github.com/changesets/changesets) to manage versioning and changelogs. Every PR introducing a change (e.g., `feat`, `fix`) must include a changeset.

### Steps to Generate a Changeset
1. After committing changes, run:
```bash
npm run changeset
```
2. Follow the interactive prompts:
- Select affected packages (if applicable).
- Choose the change type (`patch`, `minor`, or `major`).
- Provide a description of the change.
3. This generates a `.md` file in the `.changeset` directory.
4. Commit the changeset file:
```bash
git add .changeset
git commit -m "chore: add changeset for <description>"
```
5. Push changes and create a PR.

### Notes
- Ensure the changeset description is clear and aligns with the PR changes.
- The changeset contributes to the changelog and determines the version bump during release.

## PR Submission Process

1. Fork the [SUI React repository](https://github.com/<organization>/sui-react) and clone your fork.
2. Create a branch from `development` using the `[type]/[scope]` format (e.g., `fix/button`).
3. Commit changes following the Conventional Commits format.
4. Validate changes using:
```bash
npm run storybook
npm run test --a11y
```
5. Generate a changeset:
```bash
npm run changeset
```
6. Push the branch:
```bash
git push origin <type>/<short-description>
```
7. Create a pull request targeting the `development` branch, ensuring:
- The PR title follows the Conventional Commits format.
- A clear description of the changes and their purpose.
- A generated changeset (if applicable).
8. Request a review from the maintainers.

## Tests

Every commit addressing bugs or introducing new features requires tests. Use the following commands as needed:
- `npm run test`: Runs tests for all component packages.
- `npm run test:dev`: Runs tests with the `--watch` flag for continuous monitoring.
- `npm run test:a11y`: Runs tests with accessibility checks.

## Additional Notes
- Keep your branch up-to-date with `development`:
```bash
git fetch origin
git pull origin development
```
- Ensure tests pass and code adheres to linting/formatting rules before submitting a PR.
- Be responsive to feedback during the PR review process.

Thank you for contributing to SUI React!
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
# SUI React

[![npm](https://img.shields.io/npm/v/@wpmudev/sui-react?color=blue&style=for-the-badge)](https://www.npmjs.com/package/@wpmudev/sui-react)
[![npm](https://img.shields.io/npm/v/@wpmudev/sui-css?color=blue&style=for-the-badge)](https://www.npmjs.com/package/@wpmudev/sui-react)
[![GitHub package.json version (subfolder of monorepo)](https://img.shields.io/github/package-json/v/wpmudev/sui-react?color=orange&filename=package.json&label=core&style=for-the-badge)](https://github.com/wpmudev/sui-react/)
[![License: GPLv3](https://img.shields.io/badge/License-GPL%20v3-blue.svg?color=green&style=for-the-badge)](http://www.gnu.org/licenses/gpl-3.0)

The SUI React components are user-interface building blocks of our design system. Each component is reusable and specifically developed to work on a WordPress plugin environment with React library.

## Installation
```shell
npm i --save @wpmudev/sui-react
```

Sui React is structured as a collection of individual packages, with each component developed as a separate package. This modular approach enhances maintainability and ensures cleaner code, allowing for targeted version releases of individual components as needed.

> For the installation of any particular package, check the documentation associated with component: [SUI Doc](https://wpmudev.github.io/sui-react/)

## Contributing
See [CONTRIBUTING.md](https://github.com/wpmudev/sui-react/blob/development/CONTRIBUTION.md) for guidelines.

## Releasing
See [RELEASING.md](https://github.com/wpmudev/sui-react/blob/development/RELEASING.md) for guidelines.
See [RELEASING.md](https://github.com/wpmudev/sui-react/blob/development/RELEASING.md) for guidelines
Loading