@mission-studio/puck 1.0.5 → 1.0.15

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.
@@ -1,20 +1,22 @@
1
1
  import {
2
2
  borderRadiusScale,
3
- cn,
4
3
  fontFamilies,
5
4
  fontSizes,
6
5
  fontWeights,
7
6
  getClosestBorderRadiusValue,
8
7
  getClosestSpacingValue,
9
8
  getFontSizeCSS,
9
+ spacingScale
10
+ } from "./chunk-A3QDUUOF.mjs";
11
+ import {
12
+ cn,
10
13
  hexToRgba,
11
14
  isValidHex,
12
15
  normalizeHex,
13
16
  shadowPresets,
14
- spacingScale,
15
17
  useEntries,
16
18
  useTheme
17
- } from "./chunk-TTKY3YGP.mjs";
19
+ } from "./chunk-XRKFMCSS.mjs";
18
20
 
19
21
  // fields/BorderRadiusField.tsx
20
22
  import { useState } from "react";
@@ -408,8 +410,8 @@ function ColorPickerField({
408
410
  }
409
411
 
410
412
  // node_modules/@radix-ui/react-select/dist/index.mjs
411
- import * as React32 from "react";
412
- import * as ReactDOM5 from "react-dom";
413
+ import * as React31 from "react";
414
+ import * as ReactDOM4 from "react-dom";
413
415
 
414
416
  // node_modules/@radix-ui/number/dist/index.mjs
415
417
  function clamp(value, [min2, max2]) {
@@ -3375,51 +3377,13 @@ var Portal = React18.forwardRef((props, forwardedRef) => {
3375
3377
  });
3376
3378
  Portal.displayName = PORTAL_NAME;
3377
3379
 
3378
- // node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.mjs
3379
- import * as React19 from "react";
3380
- import * as ReactDOM4 from "react-dom";
3381
- import { createSlot as createSlot4 } from "@radix-ui/react-slot";
3382
- import { jsx as jsx17 } from "react/jsx-runtime";
3383
- var NODES2 = [
3384
- "a",
3385
- "button",
3386
- "div",
3387
- "form",
3388
- "h2",
3389
- "h3",
3390
- "img",
3391
- "input",
3392
- "label",
3393
- "li",
3394
- "nav",
3395
- "ol",
3396
- "p",
3397
- "select",
3398
- "span",
3399
- "svg",
3400
- "ul"
3401
- ];
3402
- var Primitive2 = NODES2.reduce((primitive, node) => {
3403
- const Slot3 = createSlot4(`Primitive.${node}`);
3404
- const Node2 = React19.forwardRef((props, forwardedRef) => {
3405
- const { asChild, ...primitiveProps } = props;
3406
- const Comp = asChild ? Slot3 : node;
3407
- if (typeof window !== "undefined") {
3408
- window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
3409
- }
3410
- return /* @__PURE__ */ jsx17(Comp, { ...primitiveProps, ref: forwardedRef });
3411
- });
3412
- Node2.displayName = `Primitive.${node}`;
3413
- return { ...primitive, [node]: Node2 };
3414
- }, {});
3415
-
3416
3380
  // node_modules/@radix-ui/react-select/dist/index.mjs
3417
- import { createSlot as createSlot5 } from "@radix-ui/react-slot";
3381
+ import { createSlot as createSlot4 } from "@radix-ui/react-slot";
3418
3382
 
3419
3383
  // node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
3420
- import * as React20 from "react";
3384
+ import * as React19 from "react";
3421
3385
  import * as React23 from "react";
3422
- var useInsertionEffect = React20[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
3386
+ var useInsertionEffect = React19[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
3423
3387
  function useControllableState({
3424
3388
  prop,
3425
3389
  defaultProp,
@@ -3434,8 +3398,8 @@ function useControllableState({
3434
3398
  const isControlled = prop !== void 0;
3435
3399
  const value = isControlled ? prop : uncontrolledProp;
3436
3400
  if (true) {
3437
- const isControlledRef = React20.useRef(prop !== void 0);
3438
- React20.useEffect(() => {
3401
+ const isControlledRef = React19.useRef(prop !== void 0);
3402
+ React19.useEffect(() => {
3439
3403
  const wasControlled = isControlledRef.current;
3440
3404
  if (wasControlled !== isControlled) {
3441
3405
  const from = wasControlled ? "controlled" : "uncontrolled";
@@ -3447,7 +3411,7 @@ function useControllableState({
3447
3411
  isControlledRef.current = isControlled;
3448
3412
  }, [isControlled, caller]);
3449
3413
  }
3450
- const setValue = React20.useCallback(
3414
+ const setValue = React19.useCallback(
3451
3415
  (nextValue) => {
3452
3416
  if (isControlled) {
3453
3417
  const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
@@ -3466,13 +3430,13 @@ function useUncontrolledState({
3466
3430
  defaultProp,
3467
3431
  onChange
3468
3432
  }) {
3469
- const [value, setValue] = React20.useState(defaultProp);
3470
- const prevValueRef = React20.useRef(value);
3471
- const onChangeRef = React20.useRef(onChange);
3433
+ const [value, setValue] = React19.useState(defaultProp);
3434
+ const prevValueRef = React19.useRef(value);
3435
+ const onChangeRef = React19.useRef(onChange);
3472
3436
  useInsertionEffect(() => {
3473
3437
  onChangeRef.current = onChange;
3474
3438
  }, [onChange]);
3475
- React20.useEffect(() => {
3439
+ React19.useEffect(() => {
3476
3440
  if (prevValueRef.current !== value) {
3477
3441
  onChangeRef.current?.(value);
3478
3442
  prevValueRef.current = value;
@@ -3485,10 +3449,10 @@ function isFunction(value) {
3485
3449
  }
3486
3450
 
3487
3451
  // node_modules/@radix-ui/react-use-previous/dist/index.mjs
3488
- import * as React21 from "react";
3452
+ import * as React20 from "react";
3489
3453
  function usePrevious(value) {
3490
- const ref = React21.useRef({ value, previous: value });
3491
- return React21.useMemo(() => {
3454
+ const ref = React20.useRef({ value, previous: value });
3455
+ return React20.useMemo(() => {
3492
3456
  if (ref.current.value !== value) {
3493
3457
  ref.current.previous = ref.current.value;
3494
3458
  ref.current.value = value;
@@ -3498,8 +3462,8 @@ function usePrevious(value) {
3498
3462
  }
3499
3463
 
3500
3464
  // node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
3501
- import * as React24 from "react";
3502
- import { jsx as jsx18 } from "react/jsx-runtime";
3465
+ import * as React21 from "react";
3466
+ import { jsx as jsx17 } from "react/jsx-runtime";
3503
3467
  var VISUALLY_HIDDEN_STYLES = Object.freeze({
3504
3468
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
3505
3469
  position: "absolute",
@@ -3514,9 +3478,9 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
3514
3478
  wordWrap: "normal"
3515
3479
  });
3516
3480
  var NAME2 = "VisuallyHidden";
3517
- var VisuallyHidden = React24.forwardRef(
3481
+ var VisuallyHidden = React21.forwardRef(
3518
3482
  (props, forwardedRef) => {
3519
- return /* @__PURE__ */ jsx18(
3483
+ return /* @__PURE__ */ jsx17(
3520
3484
  Primitive.span,
3521
3485
  {
3522
3486
  ...props,
@@ -3682,10 +3646,10 @@ function __spreadArray(to, from, pack) {
3682
3646
  }
3683
3647
 
3684
3648
  // node_modules/react-remove-scroll/dist/es2015/Combination.js
3685
- import * as React31 from "react";
3649
+ import * as React30 from "react";
3686
3650
 
3687
3651
  // node_modules/react-remove-scroll/dist/es2015/UI.js
3688
- import * as React27 from "react";
3652
+ import * as React26 from "react";
3689
3653
 
3690
3654
  // node_modules/react-remove-scroll-bar/dist/es2015/constants.js
3691
3655
  var zeroRightClassName = "right-scroll-bar-position";
@@ -3732,8 +3696,8 @@ function useCallbackRef2(initialValue, callback) {
3732
3696
  }
3733
3697
 
3734
3698
  // node_modules/use-callback-ref/dist/es2015/useMergeRef.js
3735
- import * as React25 from "react";
3736
- var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React25.useLayoutEffect : React25.useEffect;
3699
+ import * as React24 from "react";
3700
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React24.useLayoutEffect : React24.useEffect;
3737
3701
  var currentValues = /* @__PURE__ */ new WeakMap();
3738
3702
  function useMergeRefs(refs, defaultValue) {
3739
3703
  var callbackRef = useCallbackRef2(defaultValue || null, function(newValue) {
@@ -3850,7 +3814,7 @@ function createSidecarMedium(options) {
3850
3814
  }
3851
3815
 
3852
3816
  // node_modules/use-sidecar/dist/es2015/exports.js
3853
- import * as React26 from "react";
3817
+ import * as React25 from "react";
3854
3818
  var SideCar = function(_a) {
3855
3819
  var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
3856
3820
  if (!sideCar) {
@@ -3860,7 +3824,7 @@ var SideCar = function(_a) {
3860
3824
  if (!Target) {
3861
3825
  throw new Error("Sidecar medium not found");
3862
3826
  }
3863
- return React26.createElement(Target, __assign({}, rest));
3827
+ return React25.createElement(Target, __assign({}, rest));
3864
3828
  };
3865
3829
  SideCar.isSideCarExport = true;
3866
3830
  function exportSidecar(medium, exported) {
@@ -3875,9 +3839,9 @@ var effectCar = createSidecarMedium();
3875
3839
  var nothing = function() {
3876
3840
  return;
3877
3841
  };
3878
- var RemoveScroll = React27.forwardRef(function(props, parentRef) {
3879
- var ref = React27.useRef(null);
3880
- var _a = React27.useState({
3842
+ var RemoveScroll = React26.forwardRef(function(props, parentRef) {
3843
+ var ref = React26.useRef(null);
3844
+ var _a = React26.useState({
3881
3845
  onScrollCapture: nothing,
3882
3846
  onWheelCapture: nothing,
3883
3847
  onTouchMoveCapture: nothing
@@ -3886,11 +3850,11 @@ var RemoveScroll = React27.forwardRef(function(props, parentRef) {
3886
3850
  var SideCar2 = sideCar;
3887
3851
  var containerRef = useMergeRefs([ref, parentRef]);
3888
3852
  var containerProps = __assign(__assign({}, rest), callbacks);
3889
- return React27.createElement(
3890
- React27.Fragment,
3853
+ return React26.createElement(
3854
+ React26.Fragment,
3891
3855
  null,
3892
- enabled && React27.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
3893
- forwardProps ? React27.cloneElement(React27.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React27.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
3856
+ enabled && React26.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
3857
+ forwardProps ? React26.cloneElement(React26.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React26.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
3894
3858
  );
3895
3859
  });
3896
3860
  RemoveScroll.defaultProps = {
@@ -3904,13 +3868,13 @@ RemoveScroll.classNames = {
3904
3868
  };
3905
3869
 
3906
3870
  // node_modules/react-remove-scroll/dist/es2015/SideEffect.js
3907
- import * as React30 from "react";
3871
+ import * as React29 from "react";
3908
3872
 
3909
3873
  // node_modules/react-remove-scroll-bar/dist/es2015/component.js
3910
- import * as React29 from "react";
3874
+ import * as React28 from "react";
3911
3875
 
3912
3876
  // node_modules/react-style-singleton/dist/es2015/hook.js
3913
- import * as React28 from "react";
3877
+ import * as React27 from "react";
3914
3878
 
3915
3879
  // node_modules/get-nonce/dist/es2015/index.js
3916
3880
  var currentNonce;
@@ -3974,7 +3938,7 @@ var stylesheetSingleton = function() {
3974
3938
  var styleHookSingleton = function() {
3975
3939
  var sheet = stylesheetSingleton();
3976
3940
  return function(styles, isDynamic) {
3977
- React28.useEffect(function() {
3941
+ React27.useEffect(function() {
3978
3942
  sheet.add(styles);
3979
3943
  return function() {
3980
3944
  sheet.remove();
@@ -4048,7 +4012,7 @@ var getCurrentUseCounter = function() {
4048
4012
  return isFinite(counter) ? counter : 0;
4049
4013
  };
4050
4014
  var useLockAttribute = function() {
4051
- React29.useEffect(function() {
4015
+ React28.useEffect(function() {
4052
4016
  document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
4053
4017
  return function() {
4054
4018
  var newCounter = getCurrentUseCounter() - 1;
@@ -4063,10 +4027,10 @@ var useLockAttribute = function() {
4063
4027
  var RemoveScrollBar = function(_a) {
4064
4028
  var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
4065
4029
  useLockAttribute();
4066
- var gap = React29.useMemo(function() {
4030
+ var gap = React28.useMemo(function() {
4067
4031
  return getGapWidth(gapMode);
4068
4032
  }, [gapMode]);
4069
- return React29.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
4033
+ return React28.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
4070
4034
  };
4071
4035
 
4072
4036
  // node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
@@ -4207,16 +4171,16 @@ var generateStyle = function(id) {
4207
4171
  var idCounter = 0;
4208
4172
  var lockStack = [];
4209
4173
  function RemoveScrollSideCar(props) {
4210
- var shouldPreventQueue = React30.useRef([]);
4211
- var touchStartRef = React30.useRef([0, 0]);
4212
- var activeAxis = React30.useRef();
4213
- var id = React30.useState(idCounter++)[0];
4214
- var Style2 = React30.useState(styleSingleton)[0];
4215
- var lastProps = React30.useRef(props);
4216
- React30.useEffect(function() {
4174
+ var shouldPreventQueue = React29.useRef([]);
4175
+ var touchStartRef = React29.useRef([0, 0]);
4176
+ var activeAxis = React29.useRef();
4177
+ var id = React29.useState(idCounter++)[0];
4178
+ var Style2 = React29.useState(styleSingleton)[0];
4179
+ var lastProps = React29.useRef(props);
4180
+ React29.useEffect(function() {
4217
4181
  lastProps.current = props;
4218
4182
  }, [props]);
4219
- React30.useEffect(function() {
4183
+ React29.useEffect(function() {
4220
4184
  if (props.inert) {
4221
4185
  document.body.classList.add("block-interactivity-".concat(id));
4222
4186
  var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
@@ -4232,7 +4196,7 @@ function RemoveScrollSideCar(props) {
4232
4196
  }
4233
4197
  return;
4234
4198
  }, [props.inert, props.lockRef.current, props.shards]);
4235
- var shouldCancelEvent = React30.useCallback(function(event, parent) {
4199
+ var shouldCancelEvent = React29.useCallback(function(event, parent) {
4236
4200
  if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
4237
4201
  return !lastProps.current.allowPinchZoom;
4238
4202
  }
@@ -4274,7 +4238,7 @@ function RemoveScrollSideCar(props) {
4274
4238
  var cancelingAxis = activeAxis.current || currentAxis;
4275
4239
  return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
4276
4240
  }, []);
4277
- var shouldPrevent = React30.useCallback(function(_event) {
4241
+ var shouldPrevent = React29.useCallback(function(_event) {
4278
4242
  var event = _event;
4279
4243
  if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
4280
4244
  return;
@@ -4301,7 +4265,7 @@ function RemoveScrollSideCar(props) {
4301
4265
  }
4302
4266
  }
4303
4267
  }, []);
4304
- var shouldCancel = React30.useCallback(function(name, delta, target, should) {
4268
+ var shouldCancel = React29.useCallback(function(name, delta, target, should) {
4305
4269
  var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
4306
4270
  shouldPreventQueue.current.push(event);
4307
4271
  setTimeout(function() {
@@ -4310,17 +4274,17 @@ function RemoveScrollSideCar(props) {
4310
4274
  });
4311
4275
  }, 1);
4312
4276
  }, []);
4313
- var scrollTouchStart = React30.useCallback(function(event) {
4277
+ var scrollTouchStart = React29.useCallback(function(event) {
4314
4278
  touchStartRef.current = getTouchXY(event);
4315
4279
  activeAxis.current = void 0;
4316
4280
  }, []);
4317
- var scrollWheel = React30.useCallback(function(event) {
4281
+ var scrollWheel = React29.useCallback(function(event) {
4318
4282
  shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
4319
4283
  }, []);
4320
- var scrollTouchMove = React30.useCallback(function(event) {
4284
+ var scrollTouchMove = React29.useCallback(function(event) {
4321
4285
  shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
4322
4286
  }, []);
4323
- React30.useEffect(function() {
4287
+ React29.useEffect(function() {
4324
4288
  lockStack.push(Style2);
4325
4289
  props.setCallbacks({
4326
4290
  onScrollCapture: scrollWheel,
@@ -4340,11 +4304,11 @@ function RemoveScrollSideCar(props) {
4340
4304
  };
4341
4305
  }, []);
4342
4306
  var removeScrollBar = props.removeScrollBar, inert = props.inert;
4343
- return React30.createElement(
4344
- React30.Fragment,
4307
+ return React29.createElement(
4308
+ React29.Fragment,
4345
4309
  null,
4346
- inert ? React30.createElement(Style2, { styles: generateStyle(id) }) : null,
4347
- removeScrollBar ? React30.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
4310
+ inert ? React29.createElement(Style2, { styles: generateStyle(id) }) : null,
4311
+ removeScrollBar ? React29.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
4348
4312
  );
4349
4313
  }
4350
4314
  function getOutermostShadowParent(node) {
@@ -4363,14 +4327,14 @@ function getOutermostShadowParent(node) {
4363
4327
  var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
4364
4328
 
4365
4329
  // node_modules/react-remove-scroll/dist/es2015/Combination.js
4366
- var ReactRemoveScroll = React31.forwardRef(function(props, ref) {
4367
- return React31.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
4330
+ var ReactRemoveScroll = React30.forwardRef(function(props, ref) {
4331
+ return React30.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
4368
4332
  });
4369
4333
  ReactRemoveScroll.classNames = RemoveScroll.classNames;
4370
4334
  var Combination_default = ReactRemoveScroll;
4371
4335
 
4372
4336
  // node_modules/@radix-ui/react-select/dist/index.mjs
4373
- import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs4 } from "react/jsx-runtime";
4337
+ import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs4 } from "react/jsx-runtime";
4374
4338
  var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
4375
4339
  var SELECTION_KEYS = [" ", "Enter"];
4376
4340
  var SELECT_NAME = "Select";
@@ -4400,9 +4364,9 @@ var Select = (props) => {
4400
4364
  form
4401
4365
  } = props;
4402
4366
  const popperScope = usePopperScope(__scopeSelect);
4403
- const [trigger, setTrigger] = React32.useState(null);
4404
- const [valueNode, setValueNode] = React32.useState(null);
4405
- const [valueNodeHasChildren, setValueNodeHasChildren] = React32.useState(false);
4367
+ const [trigger, setTrigger] = React31.useState(null);
4368
+ const [valueNode, setValueNode] = React31.useState(null);
4369
+ const [valueNodeHasChildren, setValueNodeHasChildren] = React31.useState(false);
4406
4370
  const direction = useDirection(dir);
4407
4371
  const [open, setOpen] = useControllableState({
4408
4372
  prop: openProp,
@@ -4416,11 +4380,11 @@ var Select = (props) => {
4416
4380
  onChange: onValueChange,
4417
4381
  caller: SELECT_NAME
4418
4382
  });
4419
- const triggerPointerDownPosRef = React32.useRef(null);
4383
+ const triggerPointerDownPosRef = React31.useRef(null);
4420
4384
  const isFormControl = trigger ? form || !!trigger.closest("form") : true;
4421
- const [nativeOptionsSet, setNativeOptionsSet] = React32.useState(/* @__PURE__ */ new Set());
4385
+ const [nativeOptionsSet, setNativeOptionsSet] = React31.useState(/* @__PURE__ */ new Set());
4422
4386
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
4423
- return /* @__PURE__ */ jsx19(Root22, { ...popperScope, children: /* @__PURE__ */ jsxs4(
4387
+ return /* @__PURE__ */ jsx18(Root22, { ...popperScope, children: /* @__PURE__ */ jsxs4(
4424
4388
  SelectProvider,
4425
4389
  {
4426
4390
  required,
@@ -4440,14 +4404,14 @@ var Select = (props) => {
4440
4404
  triggerPointerDownPosRef,
4441
4405
  disabled,
4442
4406
  children: [
4443
- /* @__PURE__ */ jsx19(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx19(
4407
+ /* @__PURE__ */ jsx18(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx18(
4444
4408
  SelectNativeOptionsProvider,
4445
4409
  {
4446
4410
  scope: props.__scopeSelect,
4447
- onNativeOptionAdd: React32.useCallback((option) => {
4411
+ onNativeOptionAdd: React31.useCallback((option) => {
4448
4412
  setNativeOptionsSet((prev) => new Set(prev).add(option));
4449
4413
  }, []),
4450
- onNativeOptionRemove: React32.useCallback((option) => {
4414
+ onNativeOptionRemove: React31.useCallback((option) => {
4451
4415
  setNativeOptionsSet((prev) => {
4452
4416
  const optionsSet = new Set(prev);
4453
4417
  optionsSet.delete(option);
@@ -4470,7 +4434,7 @@ var Select = (props) => {
4470
4434
  disabled,
4471
4435
  form,
4472
4436
  children: [
4473
- value === void 0 ? /* @__PURE__ */ jsx19("option", { value: "" }) : null,
4437
+ value === void 0 ? /* @__PURE__ */ jsx18("option", { value: "" }) : null,
4474
4438
  Array.from(nativeOptionsSet)
4475
4439
  ]
4476
4440
  },
@@ -4482,7 +4446,7 @@ var Select = (props) => {
4482
4446
  };
4483
4447
  Select.displayName = SELECT_NAME;
4484
4448
  var TRIGGER_NAME = "SelectTrigger";
4485
- var SelectTrigger = React32.forwardRef(
4449
+ var SelectTrigger = React31.forwardRef(
4486
4450
  (props, forwardedRef) => {
4487
4451
  const { __scopeSelect, disabled = false, ...triggerProps } = props;
4488
4452
  const popperScope = usePopperScope(__scopeSelect);
@@ -4490,7 +4454,7 @@ var SelectTrigger = React32.forwardRef(
4490
4454
  const isDisabled = context.disabled || disabled;
4491
4455
  const composedRefs = useComposedRefs(forwardedRef, context.onTriggerChange);
4492
4456
  const getItems = useCollection(__scopeSelect);
4493
- const pointerTypeRef = React32.useRef("touch");
4457
+ const pointerTypeRef = React31.useRef("touch");
4494
4458
  const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {
4495
4459
  const enabledItems = getItems().filter((item) => !item.disabled);
4496
4460
  const currentItem = enabledItems.find((item) => item.value === context.value);
@@ -4511,8 +4475,8 @@ var SelectTrigger = React32.forwardRef(
4511
4475
  };
4512
4476
  }
4513
4477
  };
4514
- return /* @__PURE__ */ jsx19(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx19(
4515
- Primitive2.button,
4478
+ return /* @__PURE__ */ jsx18(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx18(
4479
+ Primitive.button,
4516
4480
  {
4517
4481
  type: "button",
4518
4482
  role: "combobox",
@@ -4560,7 +4524,7 @@ var SelectTrigger = React32.forwardRef(
4560
4524
  );
4561
4525
  SelectTrigger.displayName = TRIGGER_NAME;
4562
4526
  var VALUE_NAME = "SelectValue";
4563
- var SelectValue = React32.forwardRef(
4527
+ var SelectValue = React31.forwardRef(
4564
4528
  (props, forwardedRef) => {
4565
4529
  const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
4566
4530
  const context = useSelectContext(VALUE_NAME, __scopeSelect);
@@ -4570,55 +4534,55 @@ var SelectValue = React32.forwardRef(
4570
4534
  useLayoutEffect2(() => {
4571
4535
  onValueNodeHasChildrenChange(hasChildren);
4572
4536
  }, [onValueNodeHasChildrenChange, hasChildren]);
4573
- return /* @__PURE__ */ jsx19(
4574
- Primitive2.span,
4537
+ return /* @__PURE__ */ jsx18(
4538
+ Primitive.span,
4575
4539
  {
4576
4540
  ...valueProps,
4577
4541
  ref: composedRefs,
4578
4542
  style: { pointerEvents: "none" },
4579
- children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx19(Fragment3, { children: placeholder }) : children
4543
+ children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx18(Fragment3, { children: placeholder }) : children
4580
4544
  }
4581
4545
  );
4582
4546
  }
4583
4547
  );
4584
4548
  SelectValue.displayName = VALUE_NAME;
4585
4549
  var ICON_NAME = "SelectIcon";
4586
- var SelectIcon = React32.forwardRef(
4550
+ var SelectIcon = React31.forwardRef(
4587
4551
  (props, forwardedRef) => {
4588
4552
  const { __scopeSelect, children, ...iconProps } = props;
4589
- return /* @__PURE__ */ jsx19(Primitive2.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "\u25BC" });
4553
+ return /* @__PURE__ */ jsx18(Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "\u25BC" });
4590
4554
  }
4591
4555
  );
4592
4556
  SelectIcon.displayName = ICON_NAME;
4593
4557
  var PORTAL_NAME2 = "SelectPortal";
4594
4558
  var SelectPortal = (props) => {
4595
- return /* @__PURE__ */ jsx19(Portal, { asChild: true, ...props });
4559
+ return /* @__PURE__ */ jsx18(Portal, { asChild: true, ...props });
4596
4560
  };
4597
4561
  SelectPortal.displayName = PORTAL_NAME2;
4598
4562
  var CONTENT_NAME2 = "SelectContent";
4599
- var SelectContent = React32.forwardRef(
4563
+ var SelectContent = React31.forwardRef(
4600
4564
  (props, forwardedRef) => {
4601
4565
  const context = useSelectContext(CONTENT_NAME2, props.__scopeSelect);
4602
- const [fragment, setFragment] = React32.useState();
4566
+ const [fragment, setFragment] = React31.useState();
4603
4567
  useLayoutEffect2(() => {
4604
4568
  setFragment(new DocumentFragment());
4605
4569
  }, []);
4606
4570
  if (!context.open) {
4607
4571
  const frag = fragment;
4608
- return frag ? ReactDOM5.createPortal(
4609
- /* @__PURE__ */ jsx19(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx19(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx19("div", { children: props.children }) }) }),
4572
+ return frag ? ReactDOM4.createPortal(
4573
+ /* @__PURE__ */ jsx18(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx18(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx18("div", { children: props.children }) }) }),
4610
4574
  frag
4611
4575
  ) : null;
4612
4576
  }
4613
- return /* @__PURE__ */ jsx19(SelectContentImpl, { ...props, ref: forwardedRef });
4577
+ return /* @__PURE__ */ jsx18(SelectContentImpl, { ...props, ref: forwardedRef });
4614
4578
  }
4615
4579
  );
4616
4580
  SelectContent.displayName = CONTENT_NAME2;
4617
4581
  var CONTENT_MARGIN = 10;
4618
4582
  var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME2);
4619
4583
  var CONTENT_IMPL_NAME = "SelectContentImpl";
4620
- var Slot2 = createSlot5("SelectContent.RemoveScroll");
4621
- var SelectContentImpl = React32.forwardRef(
4584
+ var Slot2 = createSlot4("SelectContent.RemoveScroll");
4585
+ var SelectContentImpl = React31.forwardRef(
4622
4586
  (props, forwardedRef) => {
4623
4587
  const {
4624
4588
  __scopeSelect,
@@ -4642,21 +4606,21 @@ var SelectContentImpl = React32.forwardRef(
4642
4606
  ...contentProps
4643
4607
  } = props;
4644
4608
  const context = useSelectContext(CONTENT_NAME2, __scopeSelect);
4645
- const [content, setContent] = React32.useState(null);
4646
- const [viewport, setViewport] = React32.useState(null);
4609
+ const [content, setContent] = React31.useState(null);
4610
+ const [viewport, setViewport] = React31.useState(null);
4647
4611
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
4648
- const [selectedItem, setSelectedItem] = React32.useState(null);
4649
- const [selectedItemText, setSelectedItemText] = React32.useState(
4612
+ const [selectedItem, setSelectedItem] = React31.useState(null);
4613
+ const [selectedItemText, setSelectedItemText] = React31.useState(
4650
4614
  null
4651
4615
  );
4652
4616
  const getItems = useCollection(__scopeSelect);
4653
- const [isPositioned, setIsPositioned] = React32.useState(false);
4654
- const firstValidItemFoundRef = React32.useRef(false);
4655
- React32.useEffect(() => {
4617
+ const [isPositioned, setIsPositioned] = React31.useState(false);
4618
+ const firstValidItemFoundRef = React31.useRef(false);
4619
+ React31.useEffect(() => {
4656
4620
  if (content) return hideOthers(content);
4657
4621
  }, [content]);
4658
4622
  useFocusGuards();
4659
- const focusFirst2 = React32.useCallback(
4623
+ const focusFirst2 = React31.useCallback(
4660
4624
  (candidates) => {
4661
4625
  const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);
4662
4626
  const [lastItem] = restItems.slice(-1);
@@ -4672,17 +4636,17 @@ var SelectContentImpl = React32.forwardRef(
4672
4636
  },
4673
4637
  [getItems, viewport]
4674
4638
  );
4675
- const focusSelectedItem = React32.useCallback(
4639
+ const focusSelectedItem = React31.useCallback(
4676
4640
  () => focusFirst2([selectedItem, content]),
4677
4641
  [focusFirst2, selectedItem, content]
4678
4642
  );
4679
- React32.useEffect(() => {
4643
+ React31.useEffect(() => {
4680
4644
  if (isPositioned) {
4681
4645
  focusSelectedItem();
4682
4646
  }
4683
4647
  }, [isPositioned, focusSelectedItem]);
4684
4648
  const { onOpenChange, triggerPointerDownPosRef } = context;
4685
- React32.useEffect(() => {
4649
+ React31.useEffect(() => {
4686
4650
  if (content) {
4687
4651
  let pointerMoveDelta = { x: 0, y: 0 };
4688
4652
  const handlePointerMove = (event) => {
@@ -4712,7 +4676,7 @@ var SelectContentImpl = React32.forwardRef(
4712
4676
  };
4713
4677
  }
4714
4678
  }, [content, onOpenChange, triggerPointerDownPosRef]);
4715
- React32.useEffect(() => {
4679
+ React31.useEffect(() => {
4716
4680
  const close = () => onOpenChange(false);
4717
4681
  window.addEventListener("blur", close);
4718
4682
  window.addEventListener("resize", close);
@@ -4729,7 +4693,7 @@ var SelectContentImpl = React32.forwardRef(
4729
4693
  setTimeout(() => nextItem.ref.current.focus());
4730
4694
  }
4731
4695
  });
4732
- const itemRefCallback = React32.useCallback(
4696
+ const itemRefCallback = React31.useCallback(
4733
4697
  (node, value, disabled) => {
4734
4698
  const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
4735
4699
  const isSelectedItem = context.value !== void 0 && context.value === value;
@@ -4740,8 +4704,8 @@ var SelectContentImpl = React32.forwardRef(
4740
4704
  },
4741
4705
  [context.value]
4742
4706
  );
4743
- const handleItemLeave = React32.useCallback(() => content?.focus(), [content]);
4744
- const itemTextRefCallback = React32.useCallback(
4707
+ const handleItemLeave = React31.useCallback(() => content?.focus(), [content]);
4708
+ const itemTextRefCallback = React31.useCallback(
4745
4709
  (node, value, disabled) => {
4746
4710
  const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
4747
4711
  const isSelectedItem = context.value !== void 0 && context.value === value;
@@ -4764,7 +4728,7 @@ var SelectContentImpl = React32.forwardRef(
4764
4728
  hideWhenDetached,
4765
4729
  avoidCollisions
4766
4730
  } : {};
4767
- return /* @__PURE__ */ jsx19(
4731
+ return /* @__PURE__ */ jsx18(
4768
4732
  SelectContentProvider,
4769
4733
  {
4770
4734
  scope: __scopeSelect,
@@ -4780,7 +4744,7 @@ var SelectContentImpl = React32.forwardRef(
4780
4744
  position,
4781
4745
  isPositioned,
4782
4746
  searchRef,
4783
- children: /* @__PURE__ */ jsx19(Combination_default, { as: Slot2, allowPinchZoom: true, children: /* @__PURE__ */ jsx19(
4747
+ children: /* @__PURE__ */ jsx18(Combination_default, { as: Slot2, allowPinchZoom: true, children: /* @__PURE__ */ jsx18(
4784
4748
  FocusScope,
4785
4749
  {
4786
4750
  asChild: true,
@@ -4792,7 +4756,7 @@ var SelectContentImpl = React32.forwardRef(
4792
4756
  context.trigger?.focus({ preventScroll: true });
4793
4757
  event.preventDefault();
4794
4758
  }),
4795
- children: /* @__PURE__ */ jsx19(
4759
+ children: /* @__PURE__ */ jsx18(
4796
4760
  DismissableLayer,
4797
4761
  {
4798
4762
  asChild: true,
@@ -4801,7 +4765,7 @@ var SelectContentImpl = React32.forwardRef(
4801
4765
  onPointerDownOutside,
4802
4766
  onFocusOutside: (event) => event.preventDefault(),
4803
4767
  onDismiss: () => context.onOpenChange(false),
4804
- children: /* @__PURE__ */ jsx19(
4768
+ children: /* @__PURE__ */ jsx18(
4805
4769
  SelectPosition,
4806
4770
  {
4807
4771
  role: "listbox",
@@ -4852,18 +4816,18 @@ var SelectContentImpl = React32.forwardRef(
4852
4816
  );
4853
4817
  SelectContentImpl.displayName = CONTENT_IMPL_NAME;
4854
4818
  var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
4855
- var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
4819
+ var SelectItemAlignedPosition = React31.forwardRef((props, forwardedRef) => {
4856
4820
  const { __scopeSelect, onPlaced, ...popperProps } = props;
4857
4821
  const context = useSelectContext(CONTENT_NAME2, __scopeSelect);
4858
4822
  const contentContext = useSelectContentContext(CONTENT_NAME2, __scopeSelect);
4859
- const [contentWrapper, setContentWrapper] = React32.useState(null);
4860
- const [content, setContent] = React32.useState(null);
4823
+ const [contentWrapper, setContentWrapper] = React31.useState(null);
4824
+ const [content, setContent] = React31.useState(null);
4861
4825
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
4862
4826
  const getItems = useCollection(__scopeSelect);
4863
- const shouldExpandOnScrollRef = React32.useRef(false);
4864
- const shouldRepositionRef = React32.useRef(true);
4827
+ const shouldExpandOnScrollRef = React31.useRef(false);
4828
+ const shouldRepositionRef = React31.useRef(true);
4865
4829
  const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
4866
- const position = React32.useCallback(() => {
4830
+ const position = React31.useCallback(() => {
4867
4831
  if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {
4868
4832
  const triggerRect = context.trigger.getBoundingClientRect();
4869
4833
  const contentRect = content.getBoundingClientRect();
@@ -4963,11 +4927,11 @@ var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
4963
4927
  onPlaced
4964
4928
  ]);
4965
4929
  useLayoutEffect2(() => position(), [position]);
4966
- const [contentZIndex, setContentZIndex] = React32.useState();
4930
+ const [contentZIndex, setContentZIndex] = React31.useState();
4967
4931
  useLayoutEffect2(() => {
4968
4932
  if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
4969
4933
  }, [content]);
4970
- const handleScrollButtonChange = React32.useCallback(
4934
+ const handleScrollButtonChange = React31.useCallback(
4971
4935
  (node) => {
4972
4936
  if (node && shouldRepositionRef.current === true) {
4973
4937
  position();
@@ -4977,14 +4941,14 @@ var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
4977
4941
  },
4978
4942
  [position, focusSelectedItem]
4979
4943
  );
4980
- return /* @__PURE__ */ jsx19(
4944
+ return /* @__PURE__ */ jsx18(
4981
4945
  SelectViewportProvider,
4982
4946
  {
4983
4947
  scope: __scopeSelect,
4984
4948
  contentWrapper,
4985
4949
  shouldExpandOnScrollRef,
4986
4950
  onScrollButtonChange: handleScrollButtonChange,
4987
- children: /* @__PURE__ */ jsx19(
4951
+ children: /* @__PURE__ */ jsx18(
4988
4952
  "div",
4989
4953
  {
4990
4954
  ref: setContentWrapper,
@@ -4994,8 +4958,8 @@ var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
4994
4958
  position: "fixed",
4995
4959
  zIndex: contentZIndex
4996
4960
  },
4997
- children: /* @__PURE__ */ jsx19(
4998
- Primitive2.div,
4961
+ children: /* @__PURE__ */ jsx18(
4962
+ Primitive.div,
4999
4963
  {
5000
4964
  ...popperProps,
5001
4965
  ref: composedRefs,
@@ -5016,7 +4980,7 @@ var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
5016
4980
  });
5017
4981
  SelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;
5018
4982
  var POPPER_POSITION_NAME = "SelectPopperPosition";
5019
- var SelectPopperPosition = React32.forwardRef((props, forwardedRef) => {
4983
+ var SelectPopperPosition = React31.forwardRef((props, forwardedRef) => {
5020
4984
  const {
5021
4985
  __scopeSelect,
5022
4986
  align = "start",
@@ -5024,7 +4988,7 @@ var SelectPopperPosition = React32.forwardRef((props, forwardedRef) => {
5024
4988
  ...popperProps
5025
4989
  } = props;
5026
4990
  const popperScope = usePopperScope(__scopeSelect);
5027
- return /* @__PURE__ */ jsx19(
4991
+ return /* @__PURE__ */ jsx18(
5028
4992
  Content,
5029
4993
  {
5030
4994
  ...popperScope,
@@ -5051,15 +5015,15 @@ var SelectPopperPosition = React32.forwardRef((props, forwardedRef) => {
5051
5015
  SelectPopperPosition.displayName = POPPER_POSITION_NAME;
5052
5016
  var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME2, {});
5053
5017
  var VIEWPORT_NAME = "SelectViewport";
5054
- var SelectViewport = React32.forwardRef(
5018
+ var SelectViewport = React31.forwardRef(
5055
5019
  (props, forwardedRef) => {
5056
5020
  const { __scopeSelect, nonce, ...viewportProps } = props;
5057
5021
  const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);
5058
5022
  const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
5059
5023
  const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);
5060
- const prevScrollTopRef = React32.useRef(0);
5024
+ const prevScrollTopRef = React31.useRef(0);
5061
5025
  return /* @__PURE__ */ jsxs4(Fragment3, { children: [
5062
- /* @__PURE__ */ jsx19(
5026
+ /* @__PURE__ */ jsx18(
5063
5027
  "style",
5064
5028
  {
5065
5029
  dangerouslySetInnerHTML: {
@@ -5068,8 +5032,8 @@ var SelectViewport = React32.forwardRef(
5068
5032
  nonce
5069
5033
  }
5070
5034
  ),
5071
- /* @__PURE__ */ jsx19(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx19(
5072
- Primitive2.div,
5035
+ /* @__PURE__ */ jsx18(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx18(
5036
+ Primitive.div,
5073
5037
  {
5074
5038
  "data-radix-select-viewport": "",
5075
5039
  role: "presentation",
@@ -5120,26 +5084,26 @@ var SelectViewport = React32.forwardRef(
5120
5084
  SelectViewport.displayName = VIEWPORT_NAME;
5121
5085
  var GROUP_NAME = "SelectGroup";
5122
5086
  var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);
5123
- var SelectGroup = React32.forwardRef(
5087
+ var SelectGroup = React31.forwardRef(
5124
5088
  (props, forwardedRef) => {
5125
5089
  const { __scopeSelect, ...groupProps } = props;
5126
5090
  const groupId = useId();
5127
- return /* @__PURE__ */ jsx19(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx19(Primitive2.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
5091
+ return /* @__PURE__ */ jsx18(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx18(Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
5128
5092
  }
5129
5093
  );
5130
5094
  SelectGroup.displayName = GROUP_NAME;
5131
5095
  var LABEL_NAME = "SelectLabel";
5132
- var SelectLabel = React32.forwardRef(
5096
+ var SelectLabel = React31.forwardRef(
5133
5097
  (props, forwardedRef) => {
5134
5098
  const { __scopeSelect, ...labelProps } = props;
5135
5099
  const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
5136
- return /* @__PURE__ */ jsx19(Primitive2.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
5100
+ return /* @__PURE__ */ jsx18(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
5137
5101
  }
5138
5102
  );
5139
5103
  SelectLabel.displayName = LABEL_NAME;
5140
5104
  var ITEM_NAME = "SelectItem";
5141
5105
  var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);
5142
- var SelectItem = React32.forwardRef(
5106
+ var SelectItem = React31.forwardRef(
5143
5107
  (props, forwardedRef) => {
5144
5108
  const {
5145
5109
  __scopeSelect,
@@ -5151,14 +5115,14 @@ var SelectItem = React32.forwardRef(
5151
5115
  const context = useSelectContext(ITEM_NAME, __scopeSelect);
5152
5116
  const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);
5153
5117
  const isSelected = context.value === value;
5154
- const [textValue, setTextValue] = React32.useState(textValueProp ?? "");
5155
- const [isFocused, setIsFocused] = React32.useState(false);
5118
+ const [textValue, setTextValue] = React31.useState(textValueProp ?? "");
5119
+ const [isFocused, setIsFocused] = React31.useState(false);
5156
5120
  const composedRefs = useComposedRefs(
5157
5121
  forwardedRef,
5158
5122
  (node) => contentContext.itemRefCallback?.(node, value, disabled)
5159
5123
  );
5160
5124
  const textId = useId();
5161
- const pointerTypeRef = React32.useRef("touch");
5125
+ const pointerTypeRef = React31.useRef("touch");
5162
5126
  const handleSelect = () => {
5163
5127
  if (!disabled) {
5164
5128
  context.onValueChange(value);
@@ -5170,7 +5134,7 @@ var SelectItem = React32.forwardRef(
5170
5134
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
5171
5135
  );
5172
5136
  }
5173
- return /* @__PURE__ */ jsx19(
5137
+ return /* @__PURE__ */ jsx18(
5174
5138
  SelectItemContextProvider,
5175
5139
  {
5176
5140
  scope: __scopeSelect,
@@ -5178,18 +5142,18 @@ var SelectItem = React32.forwardRef(
5178
5142
  disabled,
5179
5143
  textId,
5180
5144
  isSelected,
5181
- onItemTextChange: React32.useCallback((node) => {
5145
+ onItemTextChange: React31.useCallback((node) => {
5182
5146
  setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
5183
5147
  }, []),
5184
- children: /* @__PURE__ */ jsx19(
5148
+ children: /* @__PURE__ */ jsx18(
5185
5149
  Collection.ItemSlot,
5186
5150
  {
5187
5151
  scope: __scopeSelect,
5188
5152
  value,
5189
5153
  disabled,
5190
5154
  textValue,
5191
- children: /* @__PURE__ */ jsx19(
5192
- Primitive2.div,
5155
+ children: /* @__PURE__ */ jsx18(
5156
+ Primitive.div,
5193
5157
  {
5194
5158
  role: "option",
5195
5159
  "aria-labelledby": textId,
@@ -5241,14 +5205,14 @@ var SelectItem = React32.forwardRef(
5241
5205
  );
5242
5206
  SelectItem.displayName = ITEM_NAME;
5243
5207
  var ITEM_TEXT_NAME = "SelectItemText";
5244
- var SelectItemText = React32.forwardRef(
5208
+ var SelectItemText = React31.forwardRef(
5245
5209
  (props, forwardedRef) => {
5246
5210
  const { __scopeSelect, className, style, ...itemTextProps } = props;
5247
5211
  const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);
5248
5212
  const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);
5249
5213
  const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);
5250
5214
  const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);
5251
- const [itemTextNode, setItemTextNode] = React32.useState(null);
5215
+ const [itemTextNode, setItemTextNode] = React31.useState(null);
5252
5216
  const composedRefs = useComposedRefs(
5253
5217
  forwardedRef,
5254
5218
  (node) => setItemTextNode(node),
@@ -5256,8 +5220,8 @@ var SelectItemText = React32.forwardRef(
5256
5220
  (node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled)
5257
5221
  );
5258
5222
  const textContent = itemTextNode?.textContent;
5259
- const nativeOption = React32.useMemo(
5260
- () => /* @__PURE__ */ jsx19("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),
5223
+ const nativeOption = React31.useMemo(
5224
+ () => /* @__PURE__ */ jsx18("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),
5261
5225
  [itemContext.disabled, itemContext.value, textContent]
5262
5226
  );
5263
5227
  const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
@@ -5266,26 +5230,26 @@ var SelectItemText = React32.forwardRef(
5266
5230
  return () => onNativeOptionRemove(nativeOption);
5267
5231
  }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
5268
5232
  return /* @__PURE__ */ jsxs4(Fragment3, { children: [
5269
- /* @__PURE__ */ jsx19(Primitive2.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
5270
- itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM5.createPortal(itemTextProps.children, context.valueNode) : null
5233
+ /* @__PURE__ */ jsx18(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
5234
+ itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM4.createPortal(itemTextProps.children, context.valueNode) : null
5271
5235
  ] });
5272
5236
  }
5273
5237
  );
5274
5238
  SelectItemText.displayName = ITEM_TEXT_NAME;
5275
5239
  var ITEM_INDICATOR_NAME = "SelectItemIndicator";
5276
- var SelectItemIndicator = React32.forwardRef(
5240
+ var SelectItemIndicator = React31.forwardRef(
5277
5241
  (props, forwardedRef) => {
5278
5242
  const { __scopeSelect, ...itemIndicatorProps } = props;
5279
5243
  const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
5280
- return itemContext.isSelected ? /* @__PURE__ */ jsx19(Primitive2.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
5244
+ return itemContext.isSelected ? /* @__PURE__ */ jsx18(Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
5281
5245
  }
5282
5246
  );
5283
5247
  SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
5284
5248
  var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton";
5285
- var SelectScrollUpButton = React32.forwardRef((props, forwardedRef) => {
5249
+ var SelectScrollUpButton = React31.forwardRef((props, forwardedRef) => {
5286
5250
  const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
5287
5251
  const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
5288
- const [canScrollUp, setCanScrollUp] = React32.useState(false);
5252
+ const [canScrollUp, setCanScrollUp] = React31.useState(false);
5289
5253
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
5290
5254
  useLayoutEffect2(() => {
5291
5255
  if (contentContext.viewport && contentContext.isPositioned) {
@@ -5300,7 +5264,7 @@ var SelectScrollUpButton = React32.forwardRef((props, forwardedRef) => {
5300
5264
  return () => viewport.removeEventListener("scroll", handleScroll22);
5301
5265
  }
5302
5266
  }, [contentContext.viewport, contentContext.isPositioned]);
5303
- return canScrollUp ? /* @__PURE__ */ jsx19(
5267
+ return canScrollUp ? /* @__PURE__ */ jsx18(
5304
5268
  SelectScrollButtonImpl,
5305
5269
  {
5306
5270
  ...props,
@@ -5316,10 +5280,10 @@ var SelectScrollUpButton = React32.forwardRef((props, forwardedRef) => {
5316
5280
  });
5317
5281
  SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
5318
5282
  var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton";
5319
- var SelectScrollDownButton = React32.forwardRef((props, forwardedRef) => {
5283
+ var SelectScrollDownButton = React31.forwardRef((props, forwardedRef) => {
5320
5284
  const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
5321
5285
  const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
5322
- const [canScrollDown, setCanScrollDown] = React32.useState(false);
5286
+ const [canScrollDown, setCanScrollDown] = React31.useState(false);
5323
5287
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
5324
5288
  useLayoutEffect2(() => {
5325
5289
  if (contentContext.viewport && contentContext.isPositioned) {
@@ -5335,7 +5299,7 @@ var SelectScrollDownButton = React32.forwardRef((props, forwardedRef) => {
5335
5299
  return () => viewport.removeEventListener("scroll", handleScroll22);
5336
5300
  }
5337
5301
  }, [contentContext.viewport, contentContext.isPositioned]);
5338
- return canScrollDown ? /* @__PURE__ */ jsx19(
5302
+ return canScrollDown ? /* @__PURE__ */ jsx18(
5339
5303
  SelectScrollButtonImpl,
5340
5304
  {
5341
5305
  ...props,
@@ -5350,26 +5314,26 @@ var SelectScrollDownButton = React32.forwardRef((props, forwardedRef) => {
5350
5314
  ) : null;
5351
5315
  });
5352
5316
  SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
5353
- var SelectScrollButtonImpl = React32.forwardRef((props, forwardedRef) => {
5317
+ var SelectScrollButtonImpl = React31.forwardRef((props, forwardedRef) => {
5354
5318
  const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;
5355
5319
  const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
5356
- const autoScrollTimerRef = React32.useRef(null);
5320
+ const autoScrollTimerRef = React31.useRef(null);
5357
5321
  const getItems = useCollection(__scopeSelect);
5358
- const clearAutoScrollTimer = React32.useCallback(() => {
5322
+ const clearAutoScrollTimer = React31.useCallback(() => {
5359
5323
  if (autoScrollTimerRef.current !== null) {
5360
5324
  window.clearInterval(autoScrollTimerRef.current);
5361
5325
  autoScrollTimerRef.current = null;
5362
5326
  }
5363
5327
  }, []);
5364
- React32.useEffect(() => {
5328
+ React31.useEffect(() => {
5365
5329
  return () => clearAutoScrollTimer();
5366
5330
  }, [clearAutoScrollTimer]);
5367
5331
  useLayoutEffect2(() => {
5368
5332
  const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
5369
5333
  activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
5370
5334
  }, [getItems]);
5371
- return /* @__PURE__ */ jsx19(
5372
- Primitive2.div,
5335
+ return /* @__PURE__ */ jsx18(
5336
+ Primitive.div,
5373
5337
  {
5374
5338
  "aria-hidden": true,
5375
5339
  ...scrollIndicatorProps,
@@ -5393,31 +5357,31 @@ var SelectScrollButtonImpl = React32.forwardRef((props, forwardedRef) => {
5393
5357
  );
5394
5358
  });
5395
5359
  var SEPARATOR_NAME = "SelectSeparator";
5396
- var SelectSeparator = React32.forwardRef(
5360
+ var SelectSeparator = React31.forwardRef(
5397
5361
  (props, forwardedRef) => {
5398
5362
  const { __scopeSelect, ...separatorProps } = props;
5399
- return /* @__PURE__ */ jsx19(Primitive2.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
5363
+ return /* @__PURE__ */ jsx18(Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
5400
5364
  }
5401
5365
  );
5402
5366
  SelectSeparator.displayName = SEPARATOR_NAME;
5403
5367
  var ARROW_NAME2 = "SelectArrow";
5404
- var SelectArrow = React32.forwardRef(
5368
+ var SelectArrow = React31.forwardRef(
5405
5369
  (props, forwardedRef) => {
5406
5370
  const { __scopeSelect, ...arrowProps } = props;
5407
5371
  const popperScope = usePopperScope(__scopeSelect);
5408
5372
  const context = useSelectContext(ARROW_NAME2, __scopeSelect);
5409
5373
  const contentContext = useSelectContentContext(ARROW_NAME2, __scopeSelect);
5410
- return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx19(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
5374
+ return context.open && contentContext.position === "popper" ? /* @__PURE__ */ jsx18(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
5411
5375
  }
5412
5376
  );
5413
5377
  SelectArrow.displayName = ARROW_NAME2;
5414
5378
  var BUBBLE_INPUT_NAME = "SelectBubbleInput";
5415
- var SelectBubbleInput = React32.forwardRef(
5379
+ var SelectBubbleInput = React31.forwardRef(
5416
5380
  ({ __scopeSelect, value, ...props }, forwardedRef) => {
5417
- const ref = React32.useRef(null);
5381
+ const ref = React31.useRef(null);
5418
5382
  const composedRefs = useComposedRefs(forwardedRef, ref);
5419
5383
  const prevValue = usePrevious(value);
5420
- React32.useEffect(() => {
5384
+ React31.useEffect(() => {
5421
5385
  const select = ref.current;
5422
5386
  if (!select) return;
5423
5387
  const selectProto = window.HTMLSelectElement.prototype;
@@ -5432,8 +5396,8 @@ var SelectBubbleInput = React32.forwardRef(
5432
5396
  select.dispatchEvent(event);
5433
5397
  }
5434
5398
  }, [prevValue, value]);
5435
- return /* @__PURE__ */ jsx19(
5436
- Primitive2.select,
5399
+ return /* @__PURE__ */ jsx18(
5400
+ Primitive.select,
5437
5401
  {
5438
5402
  ...props,
5439
5403
  style: { ...VISUALLY_HIDDEN_STYLES, ...props.style },
@@ -5449,9 +5413,9 @@ function shouldShowPlaceholder(value) {
5449
5413
  }
5450
5414
  function useTypeaheadSearch(onSearchChange) {
5451
5415
  const handleSearchChange = useCallbackRef(onSearchChange);
5452
- const searchRef = React32.useRef("");
5453
- const timerRef = React32.useRef(0);
5454
- const handleTypeaheadSearch = React32.useCallback(
5416
+ const searchRef = React31.useRef("");
5417
+ const timerRef = React31.useRef(0);
5418
+ const handleTypeaheadSearch = React31.useCallback(
5455
5419
  (key) => {
5456
5420
  const search = searchRef.current + key;
5457
5421
  handleSearchChange(search);
@@ -5463,11 +5427,11 @@ function useTypeaheadSearch(onSearchChange) {
5463
5427
  },
5464
5428
  [handleSearchChange]
5465
5429
  );
5466
- const resetTypeahead = React32.useCallback(() => {
5430
+ const resetTypeahead = React31.useCallback(() => {
5467
5431
  searchRef.current = "";
5468
5432
  window.clearTimeout(timerRef.current);
5469
5433
  }, []);
5470
- React32.useEffect(() => {
5434
+ React31.useEffect(() => {
5471
5435
  return () => window.clearTimeout(timerRef.current);
5472
5436
  }, []);
5473
5437
  return [searchRef, handleTypeaheadSearch, resetTypeahead];
@@ -5502,16 +5466,16 @@ var ScrollDownButton = SelectScrollDownButton;
5502
5466
 
5503
5467
  // shadcn/select.tsx
5504
5468
  import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
5505
- import { jsx as jsx20, jsxs as jsxs5 } from "react/jsx-runtime";
5469
+ import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
5506
5470
  function Select2({
5507
5471
  ...props
5508
5472
  }) {
5509
- return /* @__PURE__ */ jsx20(Root23, { "data-slot": "select", ...props });
5473
+ return /* @__PURE__ */ jsx19(Root23, { "data-slot": "select", ...props });
5510
5474
  }
5511
5475
  function SelectValue2({
5512
5476
  ...props
5513
5477
  }) {
5514
- return /* @__PURE__ */ jsx20(Value, { "data-slot": "select-value", ...props });
5478
+ return /* @__PURE__ */ jsx19(Value, { "data-slot": "select-value", ...props });
5515
5479
  }
5516
5480
  function SelectTrigger2({
5517
5481
  className,
@@ -5531,7 +5495,7 @@ function SelectTrigger2({
5531
5495
  ...props,
5532
5496
  children: [
5533
5497
  children,
5534
- /* @__PURE__ */ jsx20(Icon, { asChild: true, children: /* @__PURE__ */ jsx20(ChevronDownIcon, { className: "size-4 opacity-50" }) })
5498
+ /* @__PURE__ */ jsx19(Icon, { asChild: true, children: /* @__PURE__ */ jsx19(ChevronDownIcon, { className: "size-4 opacity-50" }) })
5535
5499
  ]
5536
5500
  }
5537
5501
  );
@@ -5543,7 +5507,7 @@ function SelectContent2({
5543
5507
  align = "center",
5544
5508
  ...props
5545
5509
  }) {
5546
- return /* @__PURE__ */ jsx20(Portal2, { children: /* @__PURE__ */ jsxs5(
5510
+ return /* @__PURE__ */ jsx19(Portal2, { children: /* @__PURE__ */ jsxs5(
5547
5511
  Content2,
5548
5512
  {
5549
5513
  "data-slot": "select-content",
@@ -5556,8 +5520,8 @@ function SelectContent2({
5556
5520
  align,
5557
5521
  ...props,
5558
5522
  children: [
5559
- /* @__PURE__ */ jsx20(SelectScrollUpButton2, {}),
5560
- /* @__PURE__ */ jsx20(
5523
+ /* @__PURE__ */ jsx19(SelectScrollUpButton2, {}),
5524
+ /* @__PURE__ */ jsx19(
5561
5525
  Viewport,
5562
5526
  {
5563
5527
  className: cn(
@@ -5567,7 +5531,7 @@ function SelectContent2({
5567
5531
  children
5568
5532
  }
5569
5533
  ),
5570
- /* @__PURE__ */ jsx20(SelectScrollDownButton2, {})
5534
+ /* @__PURE__ */ jsx19(SelectScrollDownButton2, {})
5571
5535
  ]
5572
5536
  }
5573
5537
  ) });
@@ -5587,15 +5551,15 @@ function SelectItem2({
5587
5551
  ),
5588
5552
  ...props,
5589
5553
  children: [
5590
- /* @__PURE__ */ jsx20(
5554
+ /* @__PURE__ */ jsx19(
5591
5555
  "span",
5592
5556
  {
5593
5557
  "data-slot": "select-item-indicator",
5594
5558
  className: "absolute right-2 flex size-3.5 items-center justify-center",
5595
- children: /* @__PURE__ */ jsx20(ItemIndicator, { children: /* @__PURE__ */ jsx20(CheckIcon, { className: "size-4" }) })
5559
+ children: /* @__PURE__ */ jsx19(ItemIndicator, { children: /* @__PURE__ */ jsx19(CheckIcon, { className: "size-4" }) })
5596
5560
  }
5597
5561
  ),
5598
- /* @__PURE__ */ jsx20(ItemText, { children })
5562
+ /* @__PURE__ */ jsx19(ItemText, { children })
5599
5563
  ]
5600
5564
  }
5601
5565
  );
@@ -5604,7 +5568,7 @@ function SelectScrollUpButton2({
5604
5568
  className,
5605
5569
  ...props
5606
5570
  }) {
5607
- return /* @__PURE__ */ jsx20(
5571
+ return /* @__PURE__ */ jsx19(
5608
5572
  ScrollUpButton,
5609
5573
  {
5610
5574
  "data-slot": "select-scroll-up-button",
@@ -5613,7 +5577,7 @@ function SelectScrollUpButton2({
5613
5577
  className
5614
5578
  ),
5615
5579
  ...props,
5616
- children: /* @__PURE__ */ jsx20(ChevronUpIcon, { className: "size-4" })
5580
+ children: /* @__PURE__ */ jsx19(ChevronUpIcon, { className: "size-4" })
5617
5581
  }
5618
5582
  );
5619
5583
  }
@@ -5621,7 +5585,7 @@ function SelectScrollDownButton2({
5621
5585
  className,
5622
5586
  ...props
5623
5587
  }) {
5624
- return /* @__PURE__ */ jsx20(
5588
+ return /* @__PURE__ */ jsx19(
5625
5589
  ScrollDownButton,
5626
5590
  {
5627
5591
  "data-slot": "select-scroll-down-button",
@@ -5630,13 +5594,13 @@ function SelectScrollDownButton2({
5630
5594
  className
5631
5595
  ),
5632
5596
  ...props,
5633
- children: /* @__PURE__ */ jsx20(ChevronDownIcon, { className: "size-4" })
5597
+ children: /* @__PURE__ */ jsx19(ChevronDownIcon, { className: "size-4" })
5634
5598
  }
5635
5599
  );
5636
5600
  }
5637
5601
 
5638
5602
  // fields/EntryBoundTextField.tsx
5639
- import { jsx as jsx21, jsxs as jsxs6 } from "react/jsx-runtime";
5603
+ import { jsx as jsx20, jsxs as jsxs6 } from "react/jsx-runtime";
5640
5604
  function isEntryBoundValue(value) {
5641
5605
  return typeof value === "object" && value !== null && "useEntry" in value;
5642
5606
  }
@@ -5693,8 +5657,8 @@ function EntryBoundTextField({
5693
5657
  const hasEntries = entryNames.length > 0;
5694
5658
  return /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-2", children: [
5695
5659
  /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between", children: [
5696
- /* @__PURE__ */ jsx21("span", { className: "text-sm font-medium", children: label }),
5697
- hasEntries && /* @__PURE__ */ jsx21(
5660
+ /* @__PURE__ */ jsx20("span", { className: "text-sm font-medium", children: label }),
5661
+ hasEntries && /* @__PURE__ */ jsx20(
5698
5662
  Toggle,
5699
5663
  {
5700
5664
  pressed: isUsingEntry,
@@ -5716,8 +5680,8 @@ function EntryBoundTextField({
5716
5680
  onValueChange: handleEntryChange,
5717
5681
  disabled,
5718
5682
  children: [
5719
- /* @__PURE__ */ jsx21(SelectTrigger2, { className: "flex-1", children: /* @__PURE__ */ jsx21(SelectValue2, { placeholder: "Select entry" }) }),
5720
- /* @__PURE__ */ jsx21(SelectContent2, { children: entryNames.map((name) => /* @__PURE__ */ jsx21(SelectItem2, { value: name, children: name }, name)) })
5683
+ /* @__PURE__ */ jsx20(SelectTrigger2, { className: "flex-1", children: /* @__PURE__ */ jsx20(SelectValue2, { placeholder: "Select entry" }) }),
5684
+ /* @__PURE__ */ jsx20(SelectContent2, { children: entryNames.map((name) => /* @__PURE__ */ jsx20(SelectItem2, { value: name, children: name }, name)) })
5721
5685
  ]
5722
5686
  }
5723
5687
  ),
@@ -5728,17 +5692,17 @@ function EntryBoundTextField({
5728
5692
  onValueChange: handleFieldChange,
5729
5693
  disabled: disabled || !currentEntryName,
5730
5694
  children: [
5731
- /* @__PURE__ */ jsx21(SelectTrigger2, { className: "flex-1", children: /* @__PURE__ */ jsx21(SelectValue2, { placeholder: "Select field" }) }),
5732
- /* @__PURE__ */ jsx21(SelectContent2, { children: availableFields.map((field) => /* @__PURE__ */ jsx21(SelectItem2, { value: field, children: field }, field)) })
5695
+ /* @__PURE__ */ jsx20(SelectTrigger2, { className: "flex-1", children: /* @__PURE__ */ jsx20(SelectValue2, { placeholder: "Select field" }) }),
5696
+ /* @__PURE__ */ jsx20(SelectContent2, { children: availableFields.map((field) => /* @__PURE__ */ jsx20(SelectItem2, { value: field, children: field }, field)) })
5733
5697
  ]
5734
5698
  }
5735
5699
  )
5736
5700
  ] }),
5737
5701
  resolvedValue && /* @__PURE__ */ jsxs6("div", { className: "bg-muted rounded-md p-2", children: [
5738
- /* @__PURE__ */ jsx21(Label, { className: "text-muted-foreground text-xs", children: "Preview" }),
5739
- /* @__PURE__ */ jsx21("p", { className: "text-sm", children: resolvedValue })
5702
+ /* @__PURE__ */ jsx20(Label, { className: "text-muted-foreground text-xs", children: "Preview" }),
5703
+ /* @__PURE__ */ jsx20("p", { className: "text-sm", children: resolvedValue })
5740
5704
  ] })
5741
- ] }) : /* @__PURE__ */ jsx21(
5705
+ ] }) : /* @__PURE__ */ jsx20(
5742
5706
  Input,
5743
5707
  {
5744
5708
  value: resolvedValue,
@@ -5757,7 +5721,7 @@ function createEntryBoundTextField(label, placeholder) {
5757
5721
  value,
5758
5722
  onChange,
5759
5723
  readOnly
5760
- }) => /* @__PURE__ */ jsx21(
5724
+ }) => /* @__PURE__ */ jsx20(
5761
5725
  EntryBoundTextField,
5762
5726
  {
5763
5727
  value,
@@ -5772,7 +5736,7 @@ function createEntryBoundTextField(label, placeholder) {
5772
5736
 
5773
5737
  // fields/ResponsiveToggleField.tsx
5774
5738
  import { Monitor, Smartphone } from "lucide-react";
5775
- import { jsx as jsx23, jsxs as jsxs7 } from "react/jsx-runtime";
5739
+ import { jsx as jsx21, jsxs as jsxs7 } from "react/jsx-runtime";
5776
5740
  var breakpoints = [
5777
5741
  { key: "mobile", label: "Mobile", icon: Smartphone },
5778
5742
  { key: "desktop", label: "Desktop", icon: Monitor }
@@ -5794,8 +5758,8 @@ function ResponsiveToggleField({
5794
5758
  });
5795
5759
  };
5796
5760
  return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-3", children: [
5797
- /* @__PURE__ */ jsx23(Label, { className: "text-sm font-medium", children: label }),
5798
- /* @__PURE__ */ jsx23("div", { className: "flex gap-2", children: breakpoints.map(({ key, label: bpLabel, icon: Icon2 }) => /* @__PURE__ */ jsxs7(
5761
+ /* @__PURE__ */ jsx21(Label, { className: "text-sm font-medium", children: label }),
5762
+ /* @__PURE__ */ jsx21("div", { className: "flex gap-2", children: breakpoints.map(({ key, label: bpLabel, icon: Icon2 }) => /* @__PURE__ */ jsxs7(
5799
5763
  "button",
5800
5764
  {
5801
5765
  type: "button",
@@ -5807,13 +5771,13 @@ function ResponsiveToggleField({
5807
5771
  ),
5808
5772
  "aria-label": `${bpLabel} visibility`,
5809
5773
  children: [
5810
- /* @__PURE__ */ jsx23(Icon2, { className: "size-5" }),
5811
- /* @__PURE__ */ jsx23("span", { className: "text-xs font-medium", children: bpLabel })
5774
+ /* @__PURE__ */ jsx21(Icon2, { className: "size-5" }),
5775
+ /* @__PURE__ */ jsx21("span", { className: "text-xs font-medium", children: bpLabel })
5812
5776
  ]
5813
5777
  },
5814
5778
  key
5815
5779
  )) }),
5816
- /* @__PURE__ */ jsx23("p", { className: "text-muted-foreground text-xs", children: !visibility.mobile && !visibility.desktop ? "Hidden on all devices" : `Visible on ${[
5780
+ /* @__PURE__ */ jsx21("p", { className: "text-muted-foreground text-xs", children: !visibility.mobile && !visibility.desktop ? "Hidden on all devices" : `Visible on ${[
5817
5781
  visibility.mobile && "mobile",
5818
5782
  visibility.desktop && "desktop"
5819
5783
  ].filter(Boolean).join(" & ")}` })
@@ -5821,7 +5785,7 @@ function ResponsiveToggleField({
5821
5785
  }
5822
5786
 
5823
5787
  // fields/ShadowField.tsx
5824
- import { jsx as jsx24, jsxs as jsxs8 } from "react/jsx-runtime";
5788
+ import { jsx as jsx23, jsxs as jsxs8 } from "react/jsx-runtime";
5825
5789
  function ShadowField({
5826
5790
  value,
5827
5791
  onChangeAction,
@@ -5830,8 +5794,8 @@ function ShadowField({
5830
5794
  }) {
5831
5795
  const currentValue = value ?? "none";
5832
5796
  return /* @__PURE__ */ jsxs8("div", { className: "flex flex-col gap-3", children: [
5833
- /* @__PURE__ */ jsx24(Label, { className: "text-sm font-medium", children: label }),
5834
- /* @__PURE__ */ jsx24("div", { className: "grid grid-cols-4 gap-2", children: shadowPresets.map((preset) => /* @__PURE__ */ jsxs8(
5797
+ /* @__PURE__ */ jsx23(Label, { className: "text-sm font-medium", children: label }),
5798
+ /* @__PURE__ */ jsx23("div", { className: "grid grid-cols-4 gap-2", children: shadowPresets.map((preset) => /* @__PURE__ */ jsxs8(
5835
5799
  Button,
5836
5800
  {
5837
5801
  type: "button",
@@ -5844,14 +5808,14 @@ function ShadowField({
5844
5808
  currentValue === preset.value && "ring-ring ring-2"
5845
5809
  ),
5846
5810
  children: [
5847
- /* @__PURE__ */ jsx24(
5811
+ /* @__PURE__ */ jsx23(
5848
5812
  "div",
5849
5813
  {
5850
5814
  className: "bg-background size-8 rounded",
5851
5815
  style: { boxShadow: preset.css }
5852
5816
  }
5853
5817
  ),
5854
- /* @__PURE__ */ jsx24("span", { className: "text-xs", children: preset.label })
5818
+ /* @__PURE__ */ jsx23("span", { className: "text-xs", children: preset.label })
5855
5819
  ]
5856
5820
  },
5857
5821
  preset.value
@@ -5862,7 +5826,7 @@ function ShadowField({
5862
5826
  // fields/SpacingSliderField.tsx
5863
5827
  import { useState as useState15 } from "react";
5864
5828
  import { Magnet as Magnet2 } from "lucide-react";
5865
- import { jsx as jsx25, jsxs as jsxs9 } from "react/jsx-runtime";
5829
+ import { jsx as jsx24, jsxs as jsxs9 } from "react/jsx-runtime";
5866
5830
  var MAX_VALUE2 = spacingScale[spacingScale.length - 1].value;
5867
5831
  function SpacingSliderField({
5868
5832
  value,
@@ -5904,8 +5868,8 @@ function SpacingSliderField({
5904
5868
  const displayLabel = matchingPreset?.label ?? "Custom";
5905
5869
  return /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-3", children: [
5906
5870
  /* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between", children: [
5907
- /* @__PURE__ */ jsx25(Label, { className: "text-sm font-medium", children: label }),
5908
- /* @__PURE__ */ jsx25(
5871
+ /* @__PURE__ */ jsx24(Label, { className: "text-sm font-medium", children: label }),
5872
+ /* @__PURE__ */ jsx24(
5909
5873
  Toggle,
5910
5874
  {
5911
5875
  pressed: quantized,
@@ -5914,13 +5878,13 @@ function SpacingSliderField({
5914
5878
  variant: "outline",
5915
5879
  "aria-label": "Snap to grid",
5916
5880
  title: quantized ? "Snap to grid (on)" : "Snap to grid (off)",
5917
- children: /* @__PURE__ */ jsx25(Magnet2, { className: "size-3.5" })
5881
+ children: /* @__PURE__ */ jsx24(Magnet2, { className: "size-3.5" })
5918
5882
  }
5919
5883
  )
5920
5884
  ] }),
5921
5885
  /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-2", children: [
5922
- /* @__PURE__ */ jsx25("span", { className: "text-muted-foreground flex-1 text-sm", children: displayLabel }),
5923
- /* @__PURE__ */ jsx25(
5886
+ /* @__PURE__ */ jsx24("span", { className: "text-muted-foreground flex-1 text-sm", children: displayLabel }),
5887
+ /* @__PURE__ */ jsx24(
5924
5888
  Input,
5925
5889
  {
5926
5890
  type: "number",
@@ -5932,9 +5896,9 @@ function SpacingSliderField({
5932
5896
  max: MAX_VALUE2
5933
5897
  }
5934
5898
  ),
5935
- /* @__PURE__ */ jsx25("span", { className: "text-muted-foreground text-xs", children: "px" })
5899
+ /* @__PURE__ */ jsx24("span", { className: "text-muted-foreground text-xs", children: "px" })
5936
5900
  ] }),
5937
- /* @__PURE__ */ jsx25(
5901
+ /* @__PURE__ */ jsx24(
5938
5902
  Slider,
5939
5903
  {
5940
5904
  value: [currentValue],
@@ -5945,7 +5909,7 @@ function SpacingSliderField({
5945
5909
  disabled
5946
5910
  }
5947
5911
  ),
5948
- /* @__PURE__ */ jsx25("div", { className: "flex flex-wrap gap-1", children: spacingScale.filter((_, i) => i % 2 === 0 || i === spacingScale.length - 1).map((preset) => /* @__PURE__ */ jsx25(
5912
+ /* @__PURE__ */ jsx24("div", { className: "flex flex-wrap gap-1", children: spacingScale.filter((_, i) => i % 2 === 0 || i === spacingScale.length - 1).map((preset) => /* @__PURE__ */ jsx24(
5949
5913
  Button,
5950
5914
  {
5951
5915
  type: "button",
@@ -5961,7 +5925,7 @@ function SpacingSliderField({
5961
5925
  }
5962
5926
 
5963
5927
  // fields/ThemeableColorField.tsx
5964
- import { jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
5928
+ import { jsx as jsx25, jsxs as jsxs10 } from "react/jsx-runtime";
5965
5929
  function isThemeableValue(value) {
5966
5930
  return typeof value === "object" && value !== null && "useTheme" in value;
5967
5931
  }
@@ -5988,8 +5952,8 @@ function ThemeableColorField({
5988
5952
  };
5989
5953
  return /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-2", children: [
5990
5954
  /* @__PURE__ */ jsxs10("div", { className: "flex items-center justify-between", children: [
5991
- /* @__PURE__ */ jsx26("span", { className: "text-sm font-medium", children: label }),
5992
- /* @__PURE__ */ jsx26(
5955
+ /* @__PURE__ */ jsx25("span", { className: "text-sm font-medium", children: label }),
5956
+ /* @__PURE__ */ jsx25(
5993
5957
  Toggle,
5994
5958
  {
5995
5959
  pressed: isUsingTheme,
@@ -6003,7 +5967,7 @@ function ThemeableColorField({
6003
5967
  )
6004
5968
  ] }),
6005
5969
  isUsingTheme ? /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-2 rounded-md border p-2", children: [
6006
- /* @__PURE__ */ jsx26(
5970
+ /* @__PURE__ */ jsx25(
6007
5971
  "div",
6008
5972
  {
6009
5973
  className: "size-6 shrink-0 rounded border",
@@ -6016,7 +5980,7 @@ function ThemeableColorField({
6016
5980
  "Theme: ",
6017
5981
  themeKey
6018
5982
  ] })
6019
- ] }) : /* @__PURE__ */ jsx26(
5983
+ ] }) : /* @__PURE__ */ jsx25(
6020
5984
  ColorPickerField,
6021
5985
  {
6022
5986
  value: customValue,
@@ -6035,7 +5999,7 @@ function createThemeableColorField(label, themeKey) {
6035
5999
  value,
6036
6000
  onChange,
6037
6001
  readOnly
6038
- }) => /* @__PURE__ */ jsx26(
6002
+ }) => /* @__PURE__ */ jsx25(
6039
6003
  ThemeableColorField,
6040
6004
  {
6041
6005
  value,
@@ -6049,7 +6013,7 @@ function createThemeableColorField(label, themeKey) {
6049
6013
  }
6050
6014
 
6051
6015
  // fields/TypographyField.tsx
6052
- import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
6016
+ import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
6053
6017
  function TypographyField({
6054
6018
  value,
6055
6019
  onChangeAction,
@@ -6081,8 +6045,8 @@ function TypographyField({
6081
6045
  });
6082
6046
  };
6083
6047
  return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3", children: [
6084
- /* @__PURE__ */ jsx27(Label, { className: "text-sm font-medium", children: label }),
6085
- /* @__PURE__ */ jsx27(
6048
+ /* @__PURE__ */ jsx26(Label, { className: "text-sm font-medium", children: label }),
6049
+ /* @__PURE__ */ jsx26(
6086
6050
  "div",
6087
6051
  {
6088
6052
  className: "bg-muted rounded-md p-3 text-center",
@@ -6095,7 +6059,7 @@ function TypographyField({
6095
6059
  }
6096
6060
  ),
6097
6061
  /* @__PURE__ */ jsxs11("div", { children: [
6098
- /* @__PURE__ */ jsx27(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Family" }),
6062
+ /* @__PURE__ */ jsx26(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Family" }),
6099
6063
  /* @__PURE__ */ jsxs11(
6100
6064
  Select2,
6101
6065
  {
@@ -6103,8 +6067,8 @@ function TypographyField({
6103
6067
  onValueChange: handleFamilyChange,
6104
6068
  disabled,
6105
6069
  children: [
6106
- /* @__PURE__ */ jsx27(SelectTrigger2, { className: "h-8", children: /* @__PURE__ */ jsx27(SelectValue2, {}) }),
6107
- /* @__PURE__ */ jsx27(SelectContent2, { children: fontFamilies.map((font) => /* @__PURE__ */ jsx27(
6070
+ /* @__PURE__ */ jsx26(SelectTrigger2, { className: "h-8", children: /* @__PURE__ */ jsx26(SelectValue2, {}) }),
6071
+ /* @__PURE__ */ jsx26(SelectContent2, { children: fontFamilies.map((font) => /* @__PURE__ */ jsx26(
6108
6072
  SelectItem2,
6109
6073
  {
6110
6074
  value: font.value,
@@ -6118,8 +6082,8 @@ function TypographyField({
6118
6082
  )
6119
6083
  ] }),
6120
6084
  /* @__PURE__ */ jsxs11("div", { children: [
6121
- /* @__PURE__ */ jsx27(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Size" }),
6122
- /* @__PURE__ */ jsx27("div", { className: "flex flex-wrap gap-1", children: fontSizes.map((size4) => /* @__PURE__ */ jsx27(
6085
+ /* @__PURE__ */ jsx26(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Size" }),
6086
+ /* @__PURE__ */ jsx26("div", { className: "flex flex-wrap gap-1", children: fontSizes.map((size4) => /* @__PURE__ */ jsx26(
6123
6087
  Button,
6124
6088
  {
6125
6089
  type: "button",
@@ -6133,8 +6097,8 @@ function TypographyField({
6133
6097
  )) })
6134
6098
  ] }),
6135
6099
  /* @__PURE__ */ jsxs11("div", { children: [
6136
- /* @__PURE__ */ jsx27(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Weight" }),
6137
- /* @__PURE__ */ jsx27("div", { className: "flex flex-wrap gap-1", children: fontWeights.map((weight) => /* @__PURE__ */ jsx27(
6100
+ /* @__PURE__ */ jsx26(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Weight" }),
6101
+ /* @__PURE__ */ jsx26("div", { className: "flex flex-wrap gap-1", children: fontWeights.map((weight) => /* @__PURE__ */ jsx26(
6138
6102
  Button,
6139
6103
  {
6140
6104
  type: "button",
@@ -6151,7 +6115,7 @@ function TypographyField({
6151
6115
  }
6152
6116
 
6153
6117
  // fields/index.tsx
6154
- import { jsx as jsx28 } from "react/jsx-runtime";
6118
+ import { jsx as jsx27 } from "react/jsx-runtime";
6155
6119
  function createColorField(label) {
6156
6120
  return {
6157
6121
  type: "custom",
@@ -6160,7 +6124,7 @@ function createColorField(label) {
6160
6124
  value,
6161
6125
  onChange,
6162
6126
  readOnly
6163
- }) => /* @__PURE__ */ jsx28(
6127
+ }) => /* @__PURE__ */ jsx27(
6164
6128
  ColorPickerField,
6165
6129
  {
6166
6130
  value,
@@ -6179,7 +6143,7 @@ function createSpacingField(label) {
6179
6143
  value,
6180
6144
  onChange,
6181
6145
  readOnly
6182
- }) => /* @__PURE__ */ jsx28(
6146
+ }) => /* @__PURE__ */ jsx27(
6183
6147
  SpacingSliderField,
6184
6148
  {
6185
6149
  value,
@@ -6198,7 +6162,7 @@ function createShadowField(label) {
6198
6162
  value,
6199
6163
  onChange,
6200
6164
  readOnly
6201
- }) => /* @__PURE__ */ jsx28(
6165
+ }) => /* @__PURE__ */ jsx27(
6202
6166
  ShadowField,
6203
6167
  {
6204
6168
  value,
@@ -6217,7 +6181,7 @@ function createBorderRadiusField(label) {
6217
6181
  value,
6218
6182
  onChange,
6219
6183
  readOnly
6220
- }) => /* @__PURE__ */ jsx28(
6184
+ }) => /* @__PURE__ */ jsx27(
6221
6185
  BorderRadiusField,
6222
6186
  {
6223
6187
  value,
@@ -6236,7 +6200,7 @@ function createTypographyField(label) {
6236
6200
  value,
6237
6201
  onChange,
6238
6202
  readOnly
6239
- }) => /* @__PURE__ */ jsx28(
6203
+ }) => /* @__PURE__ */ jsx27(
6240
6204
  TypographyField,
6241
6205
  {
6242
6206
  value,
@@ -6255,7 +6219,7 @@ function createResponsiveField(label) {
6255
6219
  value,
6256
6220
  onChange,
6257
6221
  readOnly
6258
- }) => /* @__PURE__ */ jsx28(
6222
+ }) => /* @__PURE__ */ jsx27(
6259
6223
  ResponsiveToggleField,
6260
6224
  {
6261
6225
  value,