@rjsf/daisyui 6.2.5 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chakra-ui.esm.js +2 -3
- package/dist/chakra-ui.esm.js.map +2 -2
- package/dist/chakra-ui.umd.js +1 -3
- package/dist/index.cjs +12 -13
- package/dist/index.cjs.map +3 -3
- package/lib/templates/BaseInputTemplate/BaseInputTemplate.js +2 -5
- package/lib/templates/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/templates/ButtonTemplates/DaisyUIButton.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
- package/src/templates/BaseInputTemplate/BaseInputTemplate.tsx +2 -9
- package/src/templates/ButtonTemplates/DaisyUIButton.tsx +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/daisyui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"description": "Daisy UI components for react-jsonschema-form",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -63,28 +63,28 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@fortawesome/fontawesome-svg-core": "^7.
|
|
67
|
-
"@fortawesome/free-solid-svg-icons": "^7.
|
|
68
|
-
"@fortawesome/react-fontawesome": "^3.
|
|
66
|
+
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
67
|
+
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
68
|
+
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
69
69
|
"date-fns": "^4.1.0",
|
|
70
|
-
"react-day-picker": "^9.
|
|
70
|
+
"react-day-picker": "^9.13.2",
|
|
71
71
|
"tailwindcss": "^4.1.18"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@rjsf/core": "^6.
|
|
75
|
-
"@rjsf/utils": "^6.
|
|
74
|
+
"@rjsf/core": "^6.3.x",
|
|
75
|
+
"@rjsf/utils": "^6.3.x",
|
|
76
76
|
"daisyui": "^5.0.29",
|
|
77
77
|
"react": ">=18"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@rjsf/core": "
|
|
81
|
-
"@rjsf/snapshot-tests": "
|
|
82
|
-
"@rjsf/utils": "
|
|
83
|
-
"@rjsf/validator-ajv8": "
|
|
80
|
+
"@rjsf/core": "6.3.1",
|
|
81
|
+
"@rjsf/snapshot-tests": "6.3.1",
|
|
82
|
+
"@rjsf/utils": "6.3.1",
|
|
83
|
+
"@rjsf/validator-ajv8": "6.3.1",
|
|
84
84
|
"@testing-library/dom": "^10.4.1",
|
|
85
85
|
"@testing-library/jest-dom": "^6.9.1",
|
|
86
|
-
"@testing-library/react": "^16.3.
|
|
87
|
-
"daisyui": "^5.
|
|
86
|
+
"@testing-library/react": "^16.3.2",
|
|
87
|
+
"daisyui": "^5.5.18"
|
|
88
88
|
},
|
|
89
89
|
"repository": {
|
|
90
90
|
"type": "git",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
ariaDescribedByIds,
|
|
9
9
|
examplesId,
|
|
10
10
|
} from '@rjsf/utils';
|
|
11
|
+
import { SchemaExamples } from '@rjsf/core';
|
|
11
12
|
|
|
12
13
|
/** The `BaseInputTemplate` component is a template for rendering basic input elements
|
|
13
14
|
* with DaisyUI styling. It's used as the foundation for various input types in forms.
|
|
@@ -114,15 +115,7 @@ export default function BaseInputTemplate<
|
|
|
114
115
|
)}
|
|
115
116
|
</div>
|
|
116
117
|
</div>
|
|
117
|
-
{
|
|
118
|
-
<datalist id={examplesId(id)}>
|
|
119
|
-
{(schema.examples as string[])
|
|
120
|
-
.concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])
|
|
121
|
-
.map((example: any) => {
|
|
122
|
-
return <option key={example} value={example} />;
|
|
123
|
-
})}
|
|
124
|
-
</datalist>
|
|
125
|
-
)}
|
|
118
|
+
<SchemaExamples id={id} schema={schema} />
|
|
126
119
|
</>
|
|
127
120
|
);
|
|
128
121
|
}
|
|
@@ -4,8 +4,11 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
|
4
4
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
5
5
|
|
|
6
6
|
/** Interface for props specific to DaisyUIButton, extending IconButtonProps but with stricter icon typing */
|
|
7
|
-
interface DaisyUIButtonProps<
|
|
8
|
-
|
|
7
|
+
interface DaisyUIButtonProps<
|
|
8
|
+
T = any,
|
|
9
|
+
S extends StrictRJSFSchema = RJSFSchema,
|
|
10
|
+
F extends FormContextType = any,
|
|
11
|
+
> extends Omit<IconButtonProps<T, S, F>, 'icon'> {
|
|
9
12
|
/** The FontAwesome icon to display in the button */
|
|
10
13
|
icon: IconDefinition;
|
|
11
14
|
}
|