@timeax/form-palette 0.0.39 → 0.1.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/extra.mjs CHANGED
@@ -19367,6 +19367,7 @@ var ShadcnFileVariant = React.forwardRef(function ShadcnFileVariant2(props, ref)
19367
19367
  formatFileSize = formatSizeDefault,
19368
19368
  placeholder = "Select file...",
19369
19369
  className,
19370
+ custom,
19370
19371
  dropAreaClassName,
19371
19372
  listClassName,
19372
19373
  triggerClassName,
@@ -19478,7 +19479,7 @@ var ShadcnFileVariant = React.forwardRef(function ShadcnFileVariant2(props, ref)
19478
19479
  const openPicker = React.useCallback(async () => {
19479
19480
  var _a;
19480
19481
  if (isDisabled) return;
19481
- let resolvedLoader = customLoader != null ? customLoader : getPaletteUtil("customLoader");
19482
+ let resolvedLoader = customLoader != null ? customLoader : custom && getPaletteUtil("customLoader");
19482
19483
  if (resolvedLoader) {
19483
19484
  try {
19484
19485
  const result = await resolvedLoader({ multiple, current: items, allowedTypes: toArray2(accept) });