@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.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { O as ListerDefinition, Q as ListerRuntimeState, U as ListerProviderHost, W as PresetMap, X as ListerStoreState, Y as ListerSessionId, Z as ListerId, _ as ListerSearchMode, $ as ListerSearchTarget, a0 as ListerSearchPayload, a1 as ListerFilterCtx, a2 as ListerFilterOption, a3 as ListerMode, a4 as ListerApi, a5 as ShadcnJsonEditorProps, a6 as JsonEditorIndexHandle } from './variant-BGkGWsSy.mjs';
4
- export { ab as ListerChangeEvent, av as ListerDetails, al as ListerFilterApply, ak as ListerFilterApplyMode, am as ListerFilterBindKey, ao as ListerFilterGroupOption, an as ListerFilterInput, aq as ListerFilterInputOption, ar as ListerFilterSpec, ap as ListerFilterValueOption, ad as ListerLogCode, ae as ListerLogEntry, ac as ListerLogLevel, ah as ListerMapping, aw as ListerOpenOptions, a7 as ListerOpenReason, ax as ListerOpenResult, ag as ListerOption, au as ListerOptionsForMode, af as ListerPermissionCtx, at as ListerRawForMode, aj as ListerSearchSpec, aC as ListerSessionState, ai as ListerSource, as as ListerValueForMode, aa as OpenAnchor, aA as PresetFilters, aB as PresetMeta, ay as PresetRaw, az as PresetValue, a9 as Resolver, a8 as Selector } from './variant-BGkGWsSy.mjs';
3
+ import { Q as ListerDefinition, U as ListerRuntimeState, W as ListerProviderHost, X as PresetMap, Y as ListerStoreState, Z as ListerSessionId, _ as ListerId, $ as ListerSearchMode, a0 as ListerSearchTarget, a1 as ListerSearchPayload, a2 as ListerFilterCtx, a3 as ListerFilterOption, a4 as ListerMode, a5 as ListerApi, a6 as ShadcnJsonEditorProps, a7 as JsonEditorIndexHandle } from './core-BD0ObjuE.mjs';
4
+ export { ac as ListerChangeEvent, aw as ListerDetails, am as ListerFilterApply, al as ListerFilterApplyMode, an as ListerFilterBindKey, ap as ListerFilterGroupOption, ao as ListerFilterInput, ar as ListerFilterInputOption, as as ListerFilterSpec, aq as ListerFilterValueOption, ae as ListerLogCode, af as ListerLogEntry, ad as ListerLogLevel, ai as ListerMapping, ax as ListerOpenOptions, a8 as ListerOpenReason, ay as ListerOpenResult, ah as ListerOption, av as ListerOptionsForMode, ag as ListerPermissionCtx, au as ListerRawForMode, ak as ListerSearchSpec, aD as ListerSessionState, aj as ListerSource, at as ListerValueForMode, ab as OpenAnchor, aB as PresetFilters, aC as PresetMeta, az as PresetRaw, aA as PresetValue, aa as Resolver, a9 as Selector } from './core-BD0ObjuE.mjs';
5
5
  import 'zod';
6
6
  import './adapter-CvjXO9Gi.mjs';
7
7
  import '@inertiajs/core';
package/dist/extra.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { O as ListerDefinition, Q as ListerRuntimeState, U as ListerProviderHost, W as PresetMap, X as ListerStoreState, Y as ListerSessionId, Z as ListerId, _ as ListerSearchMode, $ as ListerSearchTarget, a0 as ListerSearchPayload, a1 as ListerFilterCtx, a2 as ListerFilterOption, a3 as ListerMode, a4 as ListerApi, a5 as ShadcnJsonEditorProps, a6 as JsonEditorIndexHandle } from './variant-B_L0opEi.js';
4
- export { ab as ListerChangeEvent, av as ListerDetails, al as ListerFilterApply, ak as ListerFilterApplyMode, am as ListerFilterBindKey, ao as ListerFilterGroupOption, an as ListerFilterInput, aq as ListerFilterInputOption, ar as ListerFilterSpec, ap as ListerFilterValueOption, ad as ListerLogCode, ae as ListerLogEntry, ac as ListerLogLevel, ah as ListerMapping, aw as ListerOpenOptions, a7 as ListerOpenReason, ax as ListerOpenResult, ag as ListerOption, au as ListerOptionsForMode, af as ListerPermissionCtx, at as ListerRawForMode, aj as ListerSearchSpec, aC as ListerSessionState, ai as ListerSource, as as ListerValueForMode, aa as OpenAnchor, aA as PresetFilters, aB as PresetMeta, ay as PresetRaw, az as PresetValue, a9 as Resolver, a8 as Selector } from './variant-B_L0opEi.js';
3
+ import { Q as ListerDefinition, U as ListerRuntimeState, W as ListerProviderHost, X as PresetMap, Y as ListerStoreState, Z as ListerSessionId, _ as ListerId, $ as ListerSearchMode, a0 as ListerSearchTarget, a1 as ListerSearchPayload, a2 as ListerFilterCtx, a3 as ListerFilterOption, a4 as ListerMode, a5 as ListerApi, a6 as ShadcnJsonEditorProps, a7 as JsonEditorIndexHandle } from './core-q_p0E4W9.js';
4
+ export { ac as ListerChangeEvent, aw as ListerDetails, am as ListerFilterApply, al as ListerFilterApplyMode, an as ListerFilterBindKey, ap as ListerFilterGroupOption, ao as ListerFilterInput, ar as ListerFilterInputOption, as as ListerFilterSpec, aq as ListerFilterValueOption, ae as ListerLogCode, af as ListerLogEntry, ad as ListerLogLevel, ai as ListerMapping, ax as ListerOpenOptions, a8 as ListerOpenReason, ay as ListerOpenResult, ah as ListerOption, av as ListerOptionsForMode, ag as ListerPermissionCtx, au as ListerRawForMode, ak as ListerSearchSpec, aD as ListerSessionState, aj as ListerSource, at as ListerValueForMode, ab as OpenAnchor, aB as PresetFilters, aC as PresetMeta, az as PresetRaw, aA as PresetValue, aa as Resolver, a9 as Selector } from './core-q_p0E4W9.js';
5
5
  import 'zod';
6
6
  import './adapter-CvjXO9Gi.js';
7
7
  import '@inertiajs/core';
package/dist/extra.js CHANGED
@@ -4488,6 +4488,10 @@ var twMerge = /* @__PURE__ */ createTailwindMerge(getDefaultConfig);
4488
4488
  function cn(...inputs) {
4489
4489
  return twMerge(clsx(inputs));
4490
4490
  }
4491
+ function toArray2(v2) {
4492
+ if (v2 == null) return [];
4493
+ return Array.isArray(v2) ? v2 : [v2];
4494
+ }
4491
4495
  function Popover({
4492
4496
  ...props
4493
4497
  }) {
@@ -19243,10 +19247,6 @@ function pickerBtnSize(size) {
19243
19247
  return "h-7 w-7";
19244
19248
  }
19245
19249
  }
19246
- function toArray2(v2) {
19247
- if (v2 == null) return [];
19248
- return Array.isArray(v2) ? v2 : [v2];
19249
- }
19250
19250
  function normaliseFileLike(input) {
19251
19251
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
19252
19252
  const asAny = input;
@@ -19404,6 +19404,7 @@ var ShadcnFileVariant = React__namespace.forwardRef(function ShadcnFileVariant2(
19404
19404
  formatFileName,
19405
19405
  formatFileSize = formatSizeDefault,
19406
19406
  placeholder = "Select file...",
19407
+ asRaw,
19407
19408
  className,
19408
19409
  custom,
19409
19410
  dropAreaClassName,
@@ -24695,7 +24696,8 @@ function useField(options) {
24695
24696
  readOnly: readOnlyProp = false,
24696
24697
  validate,
24697
24698
  getOriginalValue,
24698
- onValueChange
24699
+ onValueChange,
24700
+ onSubmit
24699
24701
  } = options;
24700
24702
  const ref = React__namespace.useRef(null);
24701
24703
  const stateRef = React__namespace.useRef({
@@ -24782,6 +24784,7 @@ function useField(options) {
24782
24784
  main,
24783
24785
  ignore,
24784
24786
  required,
24787
+ onSubmit,
24785
24788
  ref,
24786
24789
  get defaultValue() {
24787
24790
  return stateRef.current.original;
@@ -24815,7 +24818,8 @@ function useField(options) {
24815
24818
  if (onValueChange) {
24816
24819
  onValueChange(value2, old, variant);
24817
24820
  }
24818
- }
24821
+ },
24822
+ variant: options.variant
24819
24823
  // Flags not directly on the Field interface but used via `as any`
24820
24824
  // in core-provider (getValue/setValue/reset).
24821
24825
  };
@@ -25180,6 +25184,7 @@ function InputField(props) {
25180
25184
  var _a, _b, _c, _d, _e, _f, _g;
25181
25185
  const {
25182
25186
  variant,
25187
+ onSubmit,
25183
25188
  // Field identity / wiring
25184
25189
  name,
25185
25190
  bind,
@@ -25311,6 +25316,8 @@ function InputField(props) {
25311
25316
  alias,
25312
25317
  main,
25313
25318
  ignore,
25319
+ onSubmit,
25320
+ variant,
25314
25321
  required,
25315
25322
  defaultValue,
25316
25323
  validate