-
Notifications
You must be signed in to change notification settings - Fork 2.2k
DaisyUI v5 Theme for React JSON Schema Form v6 #4551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
heath-freenome
merged 18 commits into
rjsf-team:rjsf-v6
from
inchoate:rjsf-v6-daisyui-cleanup
Apr 17, 2025
Merged
DaisyUI v5 Theme for React JSON Schema Form v6 #4551
heath-freenome
merged 18 commits into
rjsf-team:rjsf-v6
from
inchoate:rjsf-v6-daisyui-cleanup
Apr 17, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redesigned form templates with connected card styling, consistent spacing, and improved layout. Added proper visual hierarchy for nested elements, optimized control button positioning, and implemented cross-browser date/time widgets. Applied DaisyUI utility classes consistently for a cohesive interface while maintaining full RJSF functionality.
inchoate
commented
Apr 5, 2025
heath-freenome
requested changes
Apr 7, 2025
packages/daisyui/src/widgets/CheckboxesWidget/CheckboxesWidget.tsx
Outdated
Show resolved
Hide resolved
PR feedback. PR review
Looking good.
|
@heath-freenome - ready, sir. |
packages/daisyui/src/templates/ArrayFieldDescriptionTemplate/ArrayFieldDescriptionTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/ArrayFieldTemplate/ArrayFieldTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx
Outdated
Show resolved
Hide resolved
@heath-freenome I think we're closer now.
Core Rating Widget![]() Default Style![]() Daisy Style ❤️![]() |
packages/daisyui/src/templates/ArrayFieldDescriptionTemplate/ArrayFieldDescriptionTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/ArrayFieldDescriptionTemplate/ArrayFieldDescriptionTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/ArrayFieldTemplate/ArrayFieldTemplate.tsx
Outdated
Show resolved
Hide resolved
@inchoate you have a build error to fix with linting. Consider running |
Fixes selects. Uses Fieldsets instead of custom arrays. Uses join for buttons when appropriate. Calendar fix
packages/daisyui/src/templates/ArrayFieldTemplate/ArrayFieldTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/FieldHelpTemplate/FieldHelpTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/DescriptionField/DescriptionField.tsx
Outdated
Show resolved
Hide resolved
* Updated .github templates to add: fluent-rc, shadcn, daisy * Addresses all PR comments * Updates README
Comment on lines
+34
to
+37
const onCopyClick = useMemo(() => onCopyIndexClick(index), [index, onCopyIndexClick]); | ||
const onRemoveClick = useMemo(() => onDropIndexClick(index), [index, onDropIndexClick]); | ||
const onArrowUpClick = useMemo(() => onReorderClick(index, index - 1), [index, onReorderClick]); | ||
const onArrowDownClick = useMemo(() => onReorderClick(index, index + 1), [index, onReorderClick]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could switch these to useCallback()
instead
packages/daisyui/src/templates/BaseInputTemplate/BaseInputTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/widgets/CheckboxesWidget/CheckboxesWidget.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/ArrayFieldTemplate/ArrayFieldTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/ObjectFieldTemplate/ObjectFieldTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/ArrayFieldItemButtonsTemplate/ArrayFieldItemButtonsTemplate.tsx
Outdated
Show resolved
Hide resolved
packages/daisyui/src/templates/ArrayFieldItemButtonsTemplate/ArrayFieldItemButtonsTemplate.tsx
Outdated
Show resolved
Hide resolved
$ npm run lint && npm run cs-format && nx run-many --target=build --parallel=1 --disableNxCache --skipNxCache
> lint
> eslint './packages/**/*.{ts,tsx}' --quiet
> cs-format
> nx run-many --target=cs-format
Nx is configured to use the legacy cache. This cache will be removed in Nx 21. Read more at https://nx.dev/deprecated/legacy-cache.
✔ nx run @rjsf/utils:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/snapshot-tests:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/core:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/validator-ajv8:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/semantic-ui:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/chakra-ui:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/mui:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/fluentui-rc:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/react-bootstrap:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/antd:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/playground:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/daisyui:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/shadcn:cs-format [existing outputs match the cache, left as is]
✔ nx run @rjsf/docs:cs-format [existing outputs match the cache, left as is]
———————————————————————————————————————————————————————————————————————————————————————————
NX Successfully ran target cs-format for 14 projects (68ms)
Nx read the output from the cache instead of running the command for 14 out of 14 tasks.
Nx is configured to use the legacy cache. This cache will be removed in Nx 21. Read more at https://nx.dev/deprecated/legacy-cache. |
Last bits
heath-freenome
approved these changes
Apr 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Integrate DaisyUI v5 with RJSF v6
This PR integrates DaisyUI v5 with React JSON Schema Form v6, providing a complete theme implementation with enhanced visual styling and component architecture.
Changes
nested.ts
to enhance the demoTesting
Tested across multiple browsers with complex nested schemas including:
Screenshots
@heath-freenome @saadeghi