@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/index.mjs CHANGED
@@ -19689,6 +19689,7 @@ var ShadcnFileVariant = React68.forwardRef(function ShadcnFileVariant2(props, re
19689
19689
  formatFileSize = formatSizeDefault,
19690
19690
  placeholder = "Select file...",
19691
19691
  className,
19692
+ custom,
19692
19693
  dropAreaClassName,
19693
19694
  listClassName,
19694
19695
  triggerClassName,
@@ -19800,7 +19801,7 @@ var ShadcnFileVariant = React68.forwardRef(function ShadcnFileVariant2(props, re
19800
19801
  const openPicker = React68.useCallback(async () => {
19801
19802
  var _a;
19802
19803
  if (isDisabled) return;
19803
- let resolvedLoader = customLoader != null ? customLoader : getPaletteUtil("customLoader");
19804
+ let resolvedLoader = customLoader != null ? customLoader : custom && getPaletteUtil("customLoader");
19804
19805
  if (resolvedLoader) {
19805
19806
  try {
19806
19807
  const result = await resolvedLoader({ multiple, current: items, allowedTypes: toArray(accept) });