Skip to content

Commit

Permalink
feat: add button,email,date widgets
Browse files Browse the repository at this point in the history
feat: use core/util getDisplayLabel
Revert changes of other packages
Revert "feat: add button,email,date widgets"
This reverts commit 5c99def.
dep: @rjsf/core changed back
feat: remove getDisplayLabel checkbox and select widget
feat: removed core util changes
feat: update checkbox widget
feat: undo import order

chore: tests updated
  • Loading branch information
jacques-trixta committed Jun 23, 2021
1 parent 579af3f commit 3faee3e
Show file tree
Hide file tree
Showing 12 changed files with 694 additions and 298 deletions.
3 changes: 1 addition & 2 deletions docs/api-reference/themes/semantic-ui/uiSchema.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ wrapLabel: wrap all labels in a div, for custom styling via CSS
```jsx
<Form
formContext={{
"semantic"={
"semantic" : {
"wrapLabel": true,
"wrapContent": true
}
uiSchema={uiSchema}
// other props...
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ export function getUiOptions(uiSchema) {
.filter(key => key.indexOf("ui:") === 0)
.reduce((options, key) => {
const value = uiSchema[key];

if (key === "ui:widget" && isObject(value)) {
console.warn(
"Setting options via ui:widget object is deprecated, use ui:options instead"
Expand All @@ -394,6 +393,7 @@ export function getDisplayLabel(schema, uiSchema, rootSchema) {
isMultiSelect(schema, rootSchema) ||
isFilesArray(schema, uiSchema, rootSchema);
}

if (schema.type === "object") {
displayLabel = false;
}
Expand Down
Loading

0 comments on commit 3faee3e

Please sign in to comment.