ywana-core8 0.0.749 → 0.0.751
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/index.cjs +9 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +9 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -8
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CollectionPage.js +1 -0
- package/src/html/textfield.js +2 -2
package/package.json
CHANGED
@@ -351,6 +351,7 @@ export const CollectionTree = (props) => {
|
|
351
351
|
* Collection Editor
|
352
352
|
*/
|
353
353
|
const CollectionEditor = (props) => {
|
354
|
+
const site = useContext(SiteContext)
|
354
355
|
const [pageContext, setPageContext] = useContext(PageContext)
|
355
356
|
const { selected } = pageContext
|
356
357
|
const { icon, title, schema, layout, autosave = false, delay = 1000, canDelete, onReload, onChange, patch = false, actions } = props
|
package/src/html/textfield.js
CHANGED
@@ -120,7 +120,7 @@ export const TextArea = (props) => {
|
|
120
120
|
export const DropDown = (props) => {
|
121
121
|
|
122
122
|
const site = useContext(SiteContext)
|
123
|
-
const { id,
|
123
|
+
const { id, options = [], value, onChange, predictive = false, readOnly = false, verbose = true, editable = false, onBlur } = props
|
124
124
|
const [open, setOpen] = useState(false)
|
125
125
|
const [label, setLabel] = useState()
|
126
126
|
|
@@ -182,7 +182,7 @@ export const DropDown = (props) => {
|
|
182
182
|
const items = filterActive ? options.filter(option => option.label.toUpperCase().indexOf(label.toUpperCase()) >= 0) : options
|
183
183
|
const lis = items.map(option => (
|
184
184
|
<li key={option.value} value={option.value} onClick={() => select(option.value)}>
|
185
|
-
{icon ? <Icon icon={icon} size="small" /> : ''}
|
185
|
+
{option.icon ? <Icon icon={option.icon} size="small" /> : ''}
|
186
186
|
<Text>{option.label}</Text>
|
187
187
|
</li>
|
188
188
|
))
|