Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
213 commits
Select commit Hold shift + click to select a range
873f9d9
fix autocomplete width
mayan-000 Nov 28, 2025
cde0182
Merge pull request #84 from rtCamp/fix/autocomplete
mohdsayed Dec 1, 2025
d03ce79
Bump pacakge version
mohdsayed Dec 1, 2025
236c9b8
Merge pull request #85 from rtCamp/release/bump-version
mohdsayed Dec 1, 2025
b7a0877
Fix: typescript build error for list provider
amovar18 Dec 1, 2025
0897360
Fix console.log
amovar18 Dec 1, 2025
0a098fb
Merge pull request #86 from rtCamp/fix/build-errors
mohdsayed Dec 1, 2025
b2692d6
Update Autocomplete component styles for better responsiveness
mayan-000 Dec 2, 2025
864c695
Merge pull request #87 from rtCamp/fix/autocomplete
mohdsayed Dec 2, 2025
50f7aa4
Fix autocomplete width.
amovar18 Dec 2, 2025
d9aac9f
Merge pull request #88 from rtCamp/fix/autocomplete
mohdsayed Dec 2, 2025
d6c851e
Bump version to v1.0.0
mohdsayed Dec 2, 2025
b514c7b
Merge pull request #89 from rtCamp/release/v1.0.0
mohdsayed Dec 2, 2025
9b23b62
Fix Combobox styles
b1ink0 Dec 3, 2025
4ebafd9
Add custom header by default to Calendar
b1ink0 Dec 3, 2025
63f06e4
Add switch option to dropdown with updated stories
b1ink0 Dec 4, 2025
d24d05b
Add new stories to FormControl
b1ink0 Dec 4, 2025
1e21990
Update select story prefix and add default story
b1ink0 Dec 4, 2025
4d6a592
Add stories and icon support for Switch
b1ink0 Dec 4, 2025
60a0e33
Remove hover underline and add vertical tab indicator for Tabs
b1ink0 Dec 4, 2025
0debc68
Update Date UI for DatePicker component
b1ink0 Dec 4, 2025
87c8d9b
Add month and year selector to Date component
b1ink0 Dec 4, 2025
cb2b45b
Update Date Time UI for DatePicker component
b1ink0 Dec 4, 2025
40ac8d0
Update Date Range UI for DatePicker component
b1ink0 Dec 5, 2025
1eb6d0f
Fix missed UI fixes
b1ink0 Dec 5, 2025
c6a63c8
Refactored Calendar to ues DatePicker component
b1ink0 Dec 5, 2025
4321fd1
Add DatePicker to Calendar custom header
b1ink0 Dec 5, 2025
ccc7672
Fix nitpicks
b1ink0 Dec 8, 2025
35c9b33
Update npm package readme
mohdsayed Dec 8, 2025
554694c
Merge pull request #95 from rtCamp/fix/update-npm-readme
mohdsayed Dec 8, 2025
d5c9571
Fix style issues
b1ink0 Dec 8, 2025
d4f9434
Fix Combobox pre-selected value
b1ink0 Dec 8, 2025
2e35ff1
Merge pull request #90 from rtCamp/fix/align-components-with-frappe-ui
mohdsayed Dec 9, 2025
60b6601
Bump version
mohdsayed Dec 9, 2025
6029754
Merge pull request #96 from rtCamp/release/bump-version-1.0.1
mohdsayed Dec 9, 2025
e7d2d7d
[TextArea] Add Disabled story to Storybook
Rohitgautam02 Dec 16, 2025
8cf93bc
Merge branch 'main' of github.com:rtCamp/frappe-ui-react into develop
mohdsayed Dec 17, 2025
289edb6
Merge pull request #99 from Rohitgautam02/docs/textarea-add-disabled-…
mohdsayed Dec 17, 2025
6f65126
Bump storybook from 9.1.10 to 9.1.17
dependabot[bot] Dec 18, 2025
a32422f
Fix dark mode colors across components
b1ink0 Dec 18, 2025
25058bf
Merge pull request #102 from rtCamp/fix/dark-mode-colors
mohdsayed Dec 21, 2025
74727f1
Merge pull request #101 from rtCamp/dependabot/npm_and_yarn/storybook…
mohdsayed Dec 21, 2025
4e90184
Bump version
mohdsayed Dec 21, 2025
9db1fe6
Merge pull request #103 from rtCamp/release/v1.0.2
mohdsayed Dec 21, 2025
fa109ad
[Divider] Add Storybook stories
Rohitgautam02 Dec 22, 2025
6964b1b
Merge branch 'main' of github.com:rtCamp/frappe-ui-react into develop
mohdsayed Dec 22, 2025
8e6984b
Add ButtonGroup component
b1ink0 Dec 24, 2025
b3e6cfb
Fix incorrect component story filename
b1ink0 Dec 24, 2025
4b7a2cc
[Divider] Increase margin on action position labels
Rohitgautam02 Dec 24, 2025
d815aa0
Add RadioButton component
b1ink0 Dec 25, 2025
b8cd23d
Refactor RadioButton component to use HeadlessUI
b1ink0 Dec 25, 2025
07553ab
Add Tag commponent
b1ink0 Dec 25, 2025
acb6cc7
[Divider] Remove labels in ActionPositions story; rely on button labels
Rohitgautam02 Dec 25, 2025
0ea6328
Add Slider component
b1ink0 Dec 26, 2025
bd9eb71
Merge pull request #104 from Rohitgautam02/docs/divider-add-storybook…
b1ink0 Dec 29, 2025
bfd7652
Add Spacer component
b1ink0 Dec 30, 2025
159c698
Merge branch 'develop' into feat/new-components-espresso
b1ink0 Dec 30, 2025
3797934
Refactor Divider component to support slot
b1ink0 Dec 30, 2025
10f3d8a
Fix Divider component slot positioning
b1ink0 Dec 30, 2025
633e0d5
Fix feedback
b1ink0 Dec 31, 2025
6a93ca6
Improve Slider component types
b1ink0 Dec 31, 2025
db6ff8a
Migrate Dropdown from radix-ui to base-ui
abhishekxix Jan 7, 2026
47577a7
Migrate Dialog from radix-ui to base-ui
abhishekxix Jan 7, 2026
0fb4d38
Remove radix-ui dialog and dropdown menu
abhishekxix Jan 7, 2026
9a0e925
Migrate Tooltip from radix-ui to base-ui
abhishekxix Jan 8, 2026
d8cf571
Remove radix-ui tooltip
abhishekxix Jan 8, 2026
7fc2d6b
WIP: Migrate toast component from radix-ui to base-ui
abhishekxix Jan 8, 2026
f8393ec
Migrate Toast from radix-ui to base-ui
abhishekxix Jan 9, 2026
e30b1b7
Remove radix-ui toast
abhishekxix Jan 9, 2026
e472a45
Fix timeout logic
abhishekxix Jan 9, 2026
40ec5d0
Add type keyword to type imports
abhishekxix Jan 9, 2026
d5b067b
Update toast styles for animation
abhishekxix Jan 9, 2026
42bf300
Fix dropdown not showing inside dialog
abhishekxix Jan 12, 2026
8fc9565
Convert conditional classes to clsx call
abhishekxix Jan 12, 2026
4b987c1
Prevent layout shift on dropdown open
abhishekxix Jan 12, 2026
fa53325
Update packages/frappe-ui-react/src/components/dropdown/dropdown.tsx
abhishekxix Jan 12, 2026
7ba1eb2
Replace string interpolation with clsx
abhishekxix Jan 12, 2026
696587d
Revert the initial z-index for dropdown and dialog
abhishekxix Jan 12, 2026
dfe4f8a
Fix escaping issue in toast description
abhishekxix Jan 13, 2026
5864761
chore: add dependabot configuration
iamimmanuelraj Jan 13, 2026
552c24a
Merge pull request #111 from rtCamp/chore/add-dependabot-xyz
iamimmanuelraj Jan 13, 2026
24fd9d0
Bump actions/upload-pages-artifact from 3 to 4
dependabot[bot] Jan 13, 2026
9bf3035
Bump actions/setup-node from 4 to 6
dependabot[bot] Jan 13, 2026
0fc48f9
Bump typescript-eslint from 8.46.0 to 8.53.0
dependabot[bot] Jan 13, 2026
aecdce4
Bump playwright from 1.56.0 to 1.57.0
dependabot[bot] Jan 13, 2026
a15bbd8
Add unit tests
b1ink0 Jan 13, 2026
5360e4b
Merge pull request #112 from rtCamp/dependabot/github_actions/actions…
mohdsayed Jan 13, 2026
41a0c1b
Merge pull request #113 from rtCamp/dependabot/github_actions/actions…
mohdsayed Jan 13, 2026
675233c
Bump actions/checkout from 4 to 6
dependabot[bot] Jan 13, 2026
3f20998
Merge pull request #115 from rtCamp/dependabot/npm_and_yarn/typescrip…
b1ink0 Jan 13, 2026
8fe493a
Bump react-dom and @types/react-dom
dependabot[bot] Jan 13, 2026
3cfdc04
Merge pull request #117 from rtCamp/dependabot/npm_and_yarn/playwrigh…
b1ink0 Jan 13, 2026
22381d3
Merge pull request #114 from rtCamp/dependabot/github_actions/actions…
b1ink0 Jan 13, 2026
8ee8fca
Merge pull request #118 from rtCamp/dependabot/npm_and_yarn/multi-92c…
b1ink0 Jan 13, 2026
2c817ad
Bump react-resizable from 3.0.5 to 3.1.3
dependabot[bot] Jan 13, 2026
7c30649
Merge pull request #119 from rtCamp/dependabot/npm_and_yarn/react-res…
b1ink0 Jan 13, 2026
04c5bd2
Bump dompurify from 3.2.7 to 3.3.1
dependabot[bot] Jan 14, 2026
0af3823
Bump eslint-plugin-jest from 29.0.1 to 29.12.1
dependabot[bot] Jan 14, 2026
cdbc9fe
Merge pull request #121 from rtCamp/dependabot/npm_and_yarn/dompurify…
mohdsayed Jan 14, 2026
8a2fa42
Bump rimraf from 5.0.10 to 6.1.2
dependabot[bot] Jan 14, 2026
ebc5452
Merge pull request #122 from rtCamp/dependabot/npm_and_yarn/eslint-pl…
mohdsayed Jan 14, 2026
9a79f4d
Bump tailwindcss from 4.1.14 to 4.1.18
dependabot[bot] Jan 14, 2026
be9e744
Bump echarts from 5.6.0 to 6.0.0
dependabot[bot] Jan 14, 2026
67d392b
Bump typescript from 5.8.3 to 5.9.3
dependabot[bot] Jan 14, 2026
dc9a9cf
Merge pull request #125 from rtCamp/dependabot/npm_and_yarn/tailwindc…
iamimmanuelraj Jan 14, 2026
e15fce2
Merge pull request #124 from rtCamp/dependabot/npm_and_yarn/rimraf-6.1.2
iamimmanuelraj Jan 14, 2026
2d2c9af
Merge pull request #123 from rtCamp/dependabot/npm_and_yarn/typescrip…
iamimmanuelraj Jan 14, 2026
583169a
Merge pull request #120 from rtCamp/dependabot/npm_and_yarn/echarts-6…
iamimmanuelraj Jan 14, 2026
e962432
Bump prettier from 2.8.8 to 3.7.4
dependabot[bot] Jan 14, 2026
f396067
Merge pull request #116 from rtCamp/dependabot/npm_and_yarn/prettier-…
iamimmanuelraj Jan 14, 2026
08248bf
Add Prettier config
b1ink0 Jan 14, 2026
48d4bff
Merge pull request #127 from rtCamp/add/prettier-config
mohdsayed Jan 14, 2026
e3c8d0a
Fix async issues and add test cases for dropdown
abhishekxix Jan 14, 2026
6d65f32
Add more test cases for dropdown component
abhishekxix Jan 14, 2026
c93e38b
Replace `quill-image-resize-module-react` with `quill-resize-module`
b1ink0 Jan 14, 2026
21455ec
Merge pull request #128 from rtCamp/update/react-quill-image-resize-m…
mohdsayed Jan 14, 2026
32c22b1
Fix: Add an Quill alias in Storybook configuration
mohdsayed Jan 14, 2026
d411acc
Merge pull request #130 from rtCamp/fix/quill-resolve-issue
mohdsayed Jan 14, 2026
6eea34d
Add test cases for toast
abhishekxix Jan 14, 2026
e732ac7
Add test cases for tooltip
abhishekxix Jan 14, 2026
c2e64de
Remove unused import for act
abhishekxix Jan 14, 2026
e9a0d1c
Bump react-quill-new from 3.6.0 to 3.7.0
dependabot[bot] Jan 15, 2026
e9d1a5e
Bump eslint-plugin-react-refresh from 0.4.23 to 0.4.26
dependabot[bot] Jan 15, 2026
d038153
Bump @storybook/addon-docs from 9.1.10 to 9.1.17
dependabot[bot] Jan 15, 2026
df8e3cf
Merge pull request #135 from rtCamp/dependabot/npm_and_yarn/storybook…
b1ink0 Jan 15, 2026
04ccd63
Merge pull request #133 from rtCamp/dependabot/npm_and_yarn/eslint-pl…
b1ink0 Jan 15, 2026
ac5afbd
Bump eslint from 9.37.0 to 9.39.2
dependabot[bot] Jan 15, 2026
0818622
Merge pull request #134 from rtCamp/dependabot/npm_and_yarn/eslint-9.…
b1ink0 Jan 15, 2026
8f99224
Migrate Husky configuration from v8 to v9 format
b1ink0 Jan 15, 2026
43d4c25
Merge pull request #136 from rtCamp/fix/husky-v9-migration
mohdsayed Jan 15, 2026
fc74f2a
Bump husky from 8.0.3 to 9.1.7
dependabot[bot] Jan 15, 2026
0e14e8b
Merge pull request #132 from rtCamp/dependabot/npm_and_yarn/husky-9.1.7
b1ink0 Jan 15, 2026
a55ca12
Merge pull request #131 from rtCamp/dependabot/npm_and_yarn/react-qui…
b1ink0 Jan 15, 2026
c604311
fix: eslint config file
ayushnirwal Jan 15, 2026
255cbd1
fix: eslint config file
ayushnirwal Jan 15, 2026
09a0d86
fix: update baseline-browser mapping
ayushnirwal Jan 15, 2026
cdcd3f4
fix: bad use of useEffect
ayushnirwal Jan 15, 2026
cb278d9
fix: partially fix lint errors
ayushnirwal Jan 15, 2026
d876493
Bump globals from 16.4.0 to 17.0.0
dependabot[bot] Jan 16, 2026
796efcb
Bump vite from 7.1.11 to 7.3.1
dependabot[bot] Jan 16, 2026
dbe6ac7
Merge pull request #109 from rtCamp/chore/migrate-to-base-ui
mohdsayed Jan 16, 2026
a38bea4
Bump version to v1.0.3
mohdsayed Jan 16, 2026
9a78768
Merge pull request #142 from rtCamp/release/v1.0.3
mohdsayed Jan 16, 2026
d045782
refactor: fix TextEditor lint errors
ayushnirwal Jan 17, 2026
3d3df91
refactor: fix TextEditor lint errors
ayushnirwal Jan 17, 2026
4e247d4
chore: add missing dependency in effect
ayushnirwal Jan 17, 2026
377f42f
fix: update baseline-browser mapping
ayushnirwal Jan 17, 2026
23b0f82
Merge pull request #143 from rtCamp/fix/lint-issues
mohdsayed Jan 17, 2026
9f1217c
Merge main and resolve conflics
mohdsayed Jan 17, 2026
597474d
chore: fix formatting issues
ayushnirwal Jan 19, 2026
b9213ed
Merge branch 'develop' into fix/format-issues
ayushnirwal Jan 19, 2026
db9de06
chore: fix formatting
ayushnirwal Jan 19, 2026
12779ba
chore: add final newline
ayushnirwal Jan 19, 2026
a22e46e
Merge pull request #141 from rtCamp/dependabot/npm_and_yarn/vite-7.3.1
ayushnirwal Jan 19, 2026
e1ee184
Merge pull request #138 from rtCamp/dependabot/npm_and_yarn/globals-1…
ayushnirwal Jan 19, 2026
68d61d9
fix: tsconfig file for node env
ayushnirwal Jan 19, 2026
df9c58e
fix: ts config for node files and type check command
ayushnirwal Jan 19, 2026
245e295
fix: ts config file for src files
ayushnirwal Jan 19, 2026
c3ff00b
fix: verbatimModuleSyntax errors
ayushnirwal Jan 19, 2026
0b93306
refactor: format first
ayushnirwal Jan 19, 2026
2fa57d9
Merge develop and resolve conflicts
ayushnirwal Jan 19, 2026
392b25f
fix: misc type check error
ayushnirwal Jan 19, 2026
d62dbe0
Update `@tailwindcss/vite` to latest version to fix `node-tar` vulner…
b1ink0 Jan 20, 2026
1b4db85
Use echarts rainbow theme for light mode
b1ink0 Jan 20, 2026
2591466
Merge pull request #151 from rtCamp/fix/node-tar-vulnerability
mohdsayed Jan 20, 2026
4eeafa0
Merge pull request #146 from rtCamp/fix/type-lint
mayan-000 Jan 20, 2026
f44c8bb
Merge pull request #145 from rtCamp/fix/format-issues
mayan-000 Jan 20, 2026
ba55f48
Merge pull request #154 from rtCamp/fix/missing-colors-for-chart-comp…
mohdsayed Jan 20, 2026
5d3c52b
fix:remove quill
ayushnirwal Jan 21, 2026
fb005ac
Fix type errors
b1ink0 Jan 21, 2026
2ba6b67
Merge pull request #158 from rtCamp/fix/type-errors
b1ink0 Jan 21, 2026
f468bd0
fix: add stub for TextEditor
ayushnirwal Jan 21, 2026
4c3f7d4
chore: fix export order
ayushnirwal Jan 21, 2026
7bebc32
chore: eof added
ayushnirwal Jan 21, 2026
85102ad
Merge pull request #157 from rtCamp/fix/remove-quill
mohdsayed Jan 21, 2026
ac1de51
chore: remove dependency from package.json
ayushnirwal Jan 21, 2026
e582346
Merge pull request #159 from rtCamp/fix/remove-quill-deps
b1ink0 Jan 21, 2026
be9fa61
Bump version
mohdsayed Jan 21, 2026
055620a
Merge pull request #160 from rtCamp/release/v1.0.4
mohdsayed Jan 21, 2026
95d69fe
chore: sync changed in main to develop
ayushnirwal Jan 22, 2026
a74b067
chore: setup pnpm
ayushnirwal Jan 22, 2026
1c3e499
chore: only allow pnpm engine
ayushnirwal Jan 22, 2026
5f89160
chore: eol fix
ayushnirwal Jan 22, 2026
47e44d9
fix: build script and build error by adding return type
ayushnirwal Jan 22, 2026
07b052f
fix: update contributing doc
ayushnirwal Jan 22, 2026
0870d1a
fix: update getting started doc
ayushnirwal Jan 22, 2026
f98de05
fix: update deploy workflow
ayushnirwal Jan 22, 2026
c22dfa9
fix: update bach commands
ayushnirwal Jan 22, 2026
357192c
chore: update readme
ayushnirwal Jan 22, 2026
670c476
chore: update contribuiting
ayushnirwal Jan 22, 2026
2e73a73
fix: build config
ayushnirwal Jan 22, 2026
c875413
chore: remove duplicate entry
ayushnirwal Jan 22, 2026
7c558b9
fix: move tailwind dependency
ayushnirwal Jan 22, 2026
8306120
fix: tsconfig for build
ayushnirwal Jan 22, 2026
9c30027
chore: update lockfile
ayushnirwal Jan 22, 2026
fbf5a23
fix: lint:types script
ayushnirwal Jan 22, 2026
d70b6bc
fix: add pnpm install step
ayushnirwal Jan 22, 2026
eca69fa
fix: remove tsconfig.json from publish
ayushnirwal Jan 22, 2026
567af07
Merge pull request #162 from rtCamp/feat/add-only-allow
b1ink0 Jan 22, 2026
9a01536
Fix storybook parameters and export for Typography, TaskStatus and Ca…
b1ink0 Jan 29, 2026
36f371e
Fix DatePicker component
b1ink0 Jan 29, 2026
8acee67
Fix Switch component dark mode colors
b1ink0 Jan 29, 2026
d43dc4e
Fix Card component colors and exports
b1ink0 Jan 29, 2026
f29bcbe
chore: remove onboarding addon
ayushnirwal Jan 29, 2026
e2c82d9
fix:vitest addon
ayushnirwal Jan 29, 2026
9aaadd3
chore: add an example interaction
ayushnirwal Jan 29, 2026
bfd7901
refactor: run test in headless mode
ayushnirwal Jan 29, 2026
30632be
chore: rename variable
ayushnirwal Jan 30, 2026
6c03f15
fix: remove addons from storybook production buil
ayushnirwal Jan 30, 2026
8423212
chore: remove optimization for production build
ayushnirwal Jan 30, 2026
2552e83
Merge pull request #180 from rtCamp/fix/storybook-config
ayushnirwal Jan 30, 2026
9ad6d88
Merge pull request #179 from rtCamp/fix/old-components
ayushnirwal Jan 30, 2026
ce3d9d5
chore: merge develop
ayushnirwal Feb 2, 2026
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
7 changes: 6 additions & 1 deletion .editorConfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ indent_size = 2

# Markdown files
[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = false

# Style files
[*.css]
indent_size = 4

34 changes: 34 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "terraform"
directory: "/"
schedule:
interval: "daily"
15 changes: 9 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'npm'
cache: 'pnpm'

- name: Install dependencies
run: |
ls
pwd
rm -rf **/node_modules
rm -rf package-lock.json
npm install || true
pnpm install || true

- name: Build Storybook
run: npm run build-storybook
run: pnpm build-storybook

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4
with:
path: './storybook-static'

Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged --relative
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict = true
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.github
pnpm-lock.yaml
storybook-static
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "es5"
}
6 changes: 3 additions & 3 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ const config: StorybookConfig = {
"../**/src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: [
getAbsolutePath("@chromatic-com/storybook"),
getAbsolutePath("@storybook/addon-docs"),
getAbsolutePath("@storybook/addon-onboarding"),
getAbsolutePath("@storybook/addon-a11y"),
getAbsolutePath("@storybook/addon-themes"),
getAbsolutePath("@storybook/addon-vitest"),
],
framework: {
name: getAbsolutePath("@storybook/react-vite"),
Expand All @@ -40,7 +39,8 @@ const config: StorybookConfig = {
check: true,
skipCompiler: true,
reactDocgenTypescriptOptions: {
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
propFilter: (prop) =>
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
},
},
};
Expand Down
14 changes: 7 additions & 7 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ addons.setConfig({
theme: create({
base: "light",
brandTitle:
'<h1 id="fur-title">frappe-ui-react</h1> <span id="fur-version">(v1.0.0-beta.3)</span>', // update version as per package.json
'<h1 id="fur-title">frappe-ui-react</h1> <span id="fur-version">(v1.0.4)</span>', // update version as per package.json
brandUrl: undefined, // disables link on the title
brandImage: undefined,

// Sidebar/Toolbar active state color
barSelectedColor: 'rgb(153, 153, 153)',
// Sidebar/Toolbar active state color
barSelectedColor: "rgb(153, 153, 153)",

// Primary accent color for buttons, links, focus states
colorPrimary: 'rgb(153, 153, 153)',
colorSecondary: 'rgb(153, 153, 153)',
colorPrimary: "rgb(153, 153, 153)",
colorSecondary: "rgb(153, 153, 153)",
fontBase: '"Inter", sans-serif',
}),
panelPosition: 'right', // Options: 'bottom' (default), 'right'
panelPosition: "right", // Options: 'bottom' (default), 'right'
});
27 changes: 20 additions & 7 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import type { Preview } from "@storybook/react-vite";
import { themes } from 'storybook/theming';
import { DocsRenderer } from '@storybook/addon-docs';
import type { DocsContextProps, Parameters, Renderer } from 'storybook/internal/types';
import './preview-styles.css';
import { themes } from "storybook/theming";
import { DocsRenderer } from "@storybook/addon-docs";
import type {
DocsContextProps,
Parameters,
Renderer,
} from "storybook/internal/types";
import "./preview-styles.css";
import "@rtcamp/frappe-ui-react/theme.css";

import { decorators } from "./modeDecorator";
Expand All @@ -22,12 +26,21 @@ const preview: Preview = {
const renderer = new DocsRenderer();
const oldRender = renderer.render;

renderer.render = async (context: DocsContextProps<Renderer>, docsParameter: Parameters, element: HTMLElement) => {
renderer.render = async (
context: DocsContextProps<Renderer>,
docsParameter: Parameters,
element: HTMLElement
) => {
const theme = (context as any).store.userGlobals.globals.theme;

docsParameter.theme = theme === 'dark' ? themes.dark : themes.light;
docsParameter.theme = theme === "dark" ? themes.dark : themes.light;

const result = await oldRender.call(renderer, context, docsParameter, element);
const result = await oldRender.call(
renderer,
context,
docsParameter,
element
);

return result;
};
Expand Down
1 change: 0 additions & 1 deletion .storybook/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
import { setProjectAnnotations } from "@storybook/react-vite";

import * as projectAnnotations from "./preview";

// This is an important step to apply the right configuration when testing your stories.
Expand Down
21 changes: 10 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ git checkout main
git pull upstream main
```

4. Install the dependencies with npm and run storybook.
4. Install the dependencies with pnpm and run storybook.

```bash
nvm use # To ensure correct node version.
npm install
npm run storybook
pnpm install
pnpm storybook
```

5. Create a new topic branch:
Expand Down Expand Up @@ -116,9 +115,9 @@ Make sure the following is true:
We will only merge a PR when all tests pass.
The following statements must be true:

- The code is formatted. If the code was changed, run `npm run lint:js:fix`.
- The code is linted. If the code was changed, run `npm run lint:js`.
- The code is type-safe. If TypeScript sources or declarations were changed, run `npm run lint:types` to confirm that the check passes.
- The code is formatted. If the code was changed, run `pnpm lint:js:fix`.
- The code is linted. If the code was changed, run `pnpm lint:js`.
- The code is type-safe. If TypeScript sources or declarations were changed, run `pnpm lint:types` to confirm that the check passes.
- The pull request title follows the pattern `[Component/Area] Imperative commit message`. (See: [How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/) for a great explanation).

Don't worry if you miss a step—the Continuous Integration will run a thorough set of tests on your commits, and the maintainers of the project can assist you if you run into problems.
Expand Down Expand Up @@ -152,9 +151,9 @@ This ensures the package can be built successfully for distribution.
Please follow the coding style of the project.
It uses Prettier and ESLint, so if possible, enable linting in your editor to get real-time feedback.

- `npm run lint:js:fix` reformats the code and fixes linting issues.
- `npm run lint:js` runs the linting rules.
- `npm run lint:types` checks TypeScript types.
- `pnpm lint:js:fix` reformats the code and fixes linting issues.
- `pnpm lint:js` runs the linting rules.
- `pnpm lint:types` checks TypeScript types.

When you submit a PR, these checks are run again by our continuous integration tools, but hopefully your code is already clean!

Expand Down Expand Up @@ -220,7 +219,7 @@ export const Default: Story = {
Run Storybook locally to ensure your new story appears and works correctly:

```bash
npm run storybook
pnpm storybook
```

#### 4. Submit your PR
Expand Down
8 changes: 6 additions & 2 deletions GETTING-STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ You can set up `frappe-ui-react` in your existing Frappe app with the following

### Step 1: Installation

Install the package using npm.
Install the packages.

```bash
npm install @rtcamp/frappe-ui-react
```
OR

```bash
pnpm add @rtcamp/frappe-ui-react
```

### Step 2: Configuration

Expand Down Expand Up @@ -85,7 +90,6 @@ This library is built on top of several excellent open-source projects:
- **[TailwindCSS](https://github.com/tailwindlabs/tailwindcss)**: Utility-first CSS framework for building design system-based UIs.
- **[Headless UI](https://github.com/tailwindlabs/headlessui)**: Unstyled and accessible UI components.
- **[Radix UI](https://github.com/radix-ui/themes)**: Low-level, unstyled, and accessible UI primitives.
- **[React Quill](https://github.com/zenoamaro/react-quill)**: Rich text editor component for React.
- **[dayjs](https://github.com/iamkun/dayjs)**: Lightweight JavaScript library for working with dates.

## Inspiration & Credits
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ You can set up `frappe-ui-react` in your existing Frappe app with the following

### Step 1: Installation

Install the package using npm.
Install the packages.

```bash
npm install @rtcamp/frappe-ui-react
```
OR

```bash
pnpm add @rtcamp/frappe-ui-react
```

### Step 2: Configuration

Expand Down Expand Up @@ -91,7 +96,6 @@ This library is built on top of several excellent open-source projects:
- **[TailwindCSS](https://github.com/tailwindlabs/tailwindcss)**: Utility-first CSS framework for building design system-based UIs.
- **[Headless UI](https://github.com/tailwindlabs/headlessui)**: Unstyled and accessible UI components.
- **[Radix UI](https://github.com/radix-ui/themes)**: Low-level, unstyled, and accessible UI primitives.
- **[React Quill](https://github.com/zenoamaro/react-quill)**: Rich text editor component for React.
- **[dayjs](https://github.com/iamkun/dayjs)**: Lightweight JavaScript library for working with dates.

## Inspiration & Credits
Expand Down
2 changes: 1 addition & 1 deletion bin/setup-local-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ curdir=$(dirname "$(realpath $0)")

(cd && nohup npx verdaccio --config "$curdir/verdaccio-config.yml" &>$tmp_registry_log &)

npm i --global verdaccio-memory
pnpm i --global verdaccio-memory

# Wait for Verdaccio to boot.
grep -q 'http address' <(tail -f $tmp_registry_log)
Expand Down
42 changes: 20 additions & 22 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,25 @@ import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import { globalIgnores } from "eslint/config";
import { defineConfig, globalIgnores } from "eslint/config";

export default tseslint.config(
[
globalIgnores(["dist"]),
{
files: ["**/*.{ts,tsx}"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs["recommended-latest"],
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
rules: {
"@typescript-eslint/no-explicit-any": "warn",
},
export default defineConfig([
globalIgnores(["dist", "storybook-static"]),
reactHooks.configs.flat.recommended,
{
files: ["**/*.{ts,tsx}"],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactRefresh.configs.vite,
storybook.configs["flat/recommended"],
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
],
storybook.configs["flat/recommended"]
);
rules: {
"@typescript-eslint/no-explicit-any": "warn",
},
},
]);
14 changes: 0 additions & 14 deletions index.html

This file was deleted.

Loading