@timeax/form-palette 0.1.2 → 0.1.3

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
@@ -4451,6 +4451,10 @@ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
4451
4451
  function cn(...inputs) {
4452
4452
  return twMerge(clsx(inputs));
4453
4453
  }
4454
+ function toArray2(v2) {
4455
+ if (v2 == null) return [];
4456
+ return Array.isArray(v2) ? v2 : [v2];
4457
+ }
4454
4458
  function Popover({
4455
4459
  ...props
4456
4460
  }) {
@@ -19206,10 +19210,6 @@ function pickerBtnSize(size) {
19206
19210
  return "h-7 w-7";
19207
19211
  }
19208
19212
  }
19209
- function toArray2(v2) {
19210
- if (v2 == null) return [];
19211
- return Array.isArray(v2) ? v2 : [v2];
19212
- }
19213
19213
  function normaliseFileLike(input) {
19214
19214
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
19215
19215
  const asAny = input;
@@ -19367,6 +19367,7 @@ var ShadcnFileVariant = React.forwardRef(function ShadcnFileVariant2(props, ref)
19367
19367
  formatFileName,
19368
19368
  formatFileSize = formatSizeDefault,
19369
19369
  placeholder = "Select file...",
19370
+ asRaw,
19370
19371
  className,
19371
19372
  custom,
19372
19373
  dropAreaClassName,
@@ -24658,7 +24659,8 @@ function useField(options) {
24658
24659
  readOnly: readOnlyProp = false,
24659
24660
  validate,
24660
24661
  getOriginalValue,
24661
- onValueChange
24662
+ onValueChange,
24663
+ onSubmit
24662
24664
  } = options;
24663
24665
  const ref = React.useRef(null);
24664
24666
  const stateRef = React.useRef({
@@ -24745,6 +24747,7 @@ function useField(options) {
24745
24747
  main,
24746
24748
  ignore,
24747
24749
  required,
24750
+ onSubmit,
24748
24751
  ref,
24749
24752
  get defaultValue() {
24750
24753
  return stateRef.current.original;
@@ -24778,7 +24781,8 @@ function useField(options) {
24778
24781
  if (onValueChange) {
24779
24782
  onValueChange(value2, old, variant);
24780
24783
  }
24781
- }
24784
+ },
24785
+ variant: options.variant
24782
24786
  // Flags not directly on the Field interface but used via `as any`
24783
24787
  // in core-provider (getValue/setValue/reset).
24784
24788
  };
@@ -25143,6 +25147,7 @@ function InputField(props) {
25143
25147
  var _a, _b, _c, _d, _e, _f, _g;
25144
25148
  const {
25145
25149
  variant,
25150
+ onSubmit,
25146
25151
  // Field identity / wiring
25147
25152
  name,
25148
25153
  bind,
@@ -25274,6 +25279,8 @@ function InputField(props) {
25274
25279
  alias,
25275
25280
  main,
25276
25281
  ignore,
25282
+ onSubmit,
25283
+ variant,
25277
25284
  required,
25278
25285
  defaultValue,
25279
25286
  validate