@mission-studio/puck 1.0.3 → 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.
package/dist/editor.js CHANGED
@@ -1113,8 +1113,8 @@ function ColorPickerField({
1113
1113
  }
1114
1114
 
1115
1115
  // node_modules/@radix-ui/react-select/dist/index.mjs
1116
- var React32 = __toESM(require("react"), 1);
1117
- var ReactDOM5 = __toESM(require("react-dom"), 1);
1116
+ var React31 = __toESM(require("react"), 1);
1117
+ var ReactDOM4 = __toESM(require("react-dom"), 1);
1118
1118
 
1119
1119
  // node_modules/@radix-ui/number/dist/index.mjs
1120
1120
  function clamp(value, [min2, max2]) {
@@ -4080,51 +4080,13 @@ var Portal = React18.forwardRef((props, forwardedRef) => {
4080
4080
  });
4081
4081
  Portal.displayName = PORTAL_NAME;
4082
4082
 
4083
- // node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-primitive/dist/index.mjs
4084
- var React19 = __toESM(require("react"), 1);
4085
- var ReactDOM4 = __toESM(require("react-dom"), 1);
4086
- var import_react_slot5 = require("@radix-ui/react-slot");
4087
- var import_jsx_runtime20 = require("react/jsx-runtime");
4088
- var NODES2 = [
4089
- "a",
4090
- "button",
4091
- "div",
4092
- "form",
4093
- "h2",
4094
- "h3",
4095
- "img",
4096
- "input",
4097
- "label",
4098
- "li",
4099
- "nav",
4100
- "ol",
4101
- "p",
4102
- "select",
4103
- "span",
4104
- "svg",
4105
- "ul"
4106
- ];
4107
- var Primitive2 = NODES2.reduce((primitive, node) => {
4108
- const Slot3 = (0, import_react_slot5.createSlot)(`Primitive.${node}`);
4109
- const Node2 = React19.forwardRef((props, forwardedRef) => {
4110
- const { asChild, ...primitiveProps } = props;
4111
- const Comp = asChild ? Slot3 : node;
4112
- if (typeof window !== "undefined") {
4113
- window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
4114
- }
4115
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
4116
- });
4117
- Node2.displayName = `Primitive.${node}`;
4118
- return { ...primitive, [node]: Node2 };
4119
- }, {});
4120
-
4121
4083
  // node_modules/@radix-ui/react-select/dist/index.mjs
4122
- var import_react_slot6 = require("@radix-ui/react-slot");
4084
+ var import_react_slot5 = require("@radix-ui/react-slot");
4123
4085
 
4124
4086
  // node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs
4125
- var React20 = __toESM(require("react"), 1);
4087
+ var React19 = __toESM(require("react"), 1);
4126
4088
  var React23 = __toESM(require("react"), 1);
4127
- var useInsertionEffect = React20[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
4089
+ var useInsertionEffect = React19[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
4128
4090
  function useControllableState({
4129
4091
  prop,
4130
4092
  defaultProp,
@@ -4139,8 +4101,8 @@ function useControllableState({
4139
4101
  const isControlled = prop !== void 0;
4140
4102
  const value = isControlled ? prop : uncontrolledProp;
4141
4103
  if (true) {
4142
- const isControlledRef = React20.useRef(prop !== void 0);
4143
- React20.useEffect(() => {
4104
+ const isControlledRef = React19.useRef(prop !== void 0);
4105
+ React19.useEffect(() => {
4144
4106
  const wasControlled = isControlledRef.current;
4145
4107
  if (wasControlled !== isControlled) {
4146
4108
  const from = wasControlled ? "controlled" : "uncontrolled";
@@ -4152,7 +4114,7 @@ function useControllableState({
4152
4114
  isControlledRef.current = isControlled;
4153
4115
  }, [isControlled, caller]);
4154
4116
  }
4155
- const setValue = React20.useCallback(
4117
+ const setValue = React19.useCallback(
4156
4118
  (nextValue) => {
4157
4119
  if (isControlled) {
4158
4120
  const value2 = isFunction(nextValue) ? nextValue(prop) : nextValue;
@@ -4171,13 +4133,13 @@ function useUncontrolledState({
4171
4133
  defaultProp,
4172
4134
  onChange
4173
4135
  }) {
4174
- const [value, setValue] = React20.useState(defaultProp);
4175
- const prevValueRef = React20.useRef(value);
4176
- const onChangeRef = React20.useRef(onChange);
4136
+ const [value, setValue] = React19.useState(defaultProp);
4137
+ const prevValueRef = React19.useRef(value);
4138
+ const onChangeRef = React19.useRef(onChange);
4177
4139
  useInsertionEffect(() => {
4178
4140
  onChangeRef.current = onChange;
4179
4141
  }, [onChange]);
4180
- React20.useEffect(() => {
4142
+ React19.useEffect(() => {
4181
4143
  if (prevValueRef.current !== value) {
4182
4144
  onChangeRef.current?.(value);
4183
4145
  prevValueRef.current = value;
@@ -4190,10 +4152,10 @@ function isFunction(value) {
4190
4152
  }
4191
4153
 
4192
4154
  // node_modules/@radix-ui/react-use-previous/dist/index.mjs
4193
- var React21 = __toESM(require("react"), 1);
4155
+ var React20 = __toESM(require("react"), 1);
4194
4156
  function usePrevious(value) {
4195
- const ref = React21.useRef({ value, previous: value });
4196
- return React21.useMemo(() => {
4157
+ const ref = React20.useRef({ value, previous: value });
4158
+ return React20.useMemo(() => {
4197
4159
  if (ref.current.value !== value) {
4198
4160
  ref.current.previous = ref.current.value;
4199
4161
  ref.current.value = value;
@@ -4203,8 +4165,8 @@ function usePrevious(value) {
4203
4165
  }
4204
4166
 
4205
4167
  // node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
4206
- var React24 = __toESM(require("react"), 1);
4207
- var import_jsx_runtime21 = require("react/jsx-runtime");
4168
+ var React21 = __toESM(require("react"), 1);
4169
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4208
4170
  var VISUALLY_HIDDEN_STYLES = Object.freeze({
4209
4171
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
4210
4172
  position: "absolute",
@@ -4219,9 +4181,9 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
4219
4181
  wordWrap: "normal"
4220
4182
  });
4221
4183
  var NAME2 = "VisuallyHidden";
4222
- var VisuallyHidden = React24.forwardRef(
4184
+ var VisuallyHidden = React21.forwardRef(
4223
4185
  (props, forwardedRef) => {
4224
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4186
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4225
4187
  Primitive.span,
4226
4188
  {
4227
4189
  ...props,
@@ -4387,10 +4349,10 @@ function __spreadArray(to, from, pack) {
4387
4349
  }
4388
4350
 
4389
4351
  // node_modules/react-remove-scroll/dist/es2015/Combination.js
4390
- var React31 = __toESM(require("react"));
4352
+ var React30 = __toESM(require("react"));
4391
4353
 
4392
4354
  // node_modules/react-remove-scroll/dist/es2015/UI.js
4393
- var React27 = __toESM(require("react"));
4355
+ var React26 = __toESM(require("react"));
4394
4356
 
4395
4357
  // node_modules/react-remove-scroll-bar/dist/es2015/constants.js
4396
4358
  var zeroRightClassName = "right-scroll-bar-position";
@@ -4437,8 +4399,8 @@ function useCallbackRef2(initialValue, callback) {
4437
4399
  }
4438
4400
 
4439
4401
  // node_modules/use-callback-ref/dist/es2015/useMergeRef.js
4440
- var React25 = __toESM(require("react"));
4441
- var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React25.useLayoutEffect : React25.useEffect;
4402
+ var React24 = __toESM(require("react"));
4403
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React24.useLayoutEffect : React24.useEffect;
4442
4404
  var currentValues = /* @__PURE__ */ new WeakMap();
4443
4405
  function useMergeRefs(refs, defaultValue) {
4444
4406
  var callbackRef = useCallbackRef2(defaultValue || null, function(newValue) {
@@ -4555,7 +4517,7 @@ function createSidecarMedium(options) {
4555
4517
  }
4556
4518
 
4557
4519
  // node_modules/use-sidecar/dist/es2015/exports.js
4558
- var React26 = __toESM(require("react"));
4520
+ var React25 = __toESM(require("react"));
4559
4521
  var SideCar = function(_a) {
4560
4522
  var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
4561
4523
  if (!sideCar) {
@@ -4565,7 +4527,7 @@ var SideCar = function(_a) {
4565
4527
  if (!Target) {
4566
4528
  throw new Error("Sidecar medium not found");
4567
4529
  }
4568
- return React26.createElement(Target, __assign({}, rest));
4530
+ return React25.createElement(Target, __assign({}, rest));
4569
4531
  };
4570
4532
  SideCar.isSideCarExport = true;
4571
4533
  function exportSidecar(medium, exported) {
@@ -4580,9 +4542,9 @@ var effectCar = createSidecarMedium();
4580
4542
  var nothing = function() {
4581
4543
  return;
4582
4544
  };
4583
- var RemoveScroll = React27.forwardRef(function(props, parentRef) {
4584
- var ref = React27.useRef(null);
4585
- var _a = React27.useState({
4545
+ var RemoveScroll = React26.forwardRef(function(props, parentRef) {
4546
+ var ref = React26.useRef(null);
4547
+ var _a = React26.useState({
4586
4548
  onScrollCapture: nothing,
4587
4549
  onWheelCapture: nothing,
4588
4550
  onTouchMoveCapture: nothing
@@ -4591,11 +4553,11 @@ var RemoveScroll = React27.forwardRef(function(props, parentRef) {
4591
4553
  var SideCar2 = sideCar;
4592
4554
  var containerRef = useMergeRefs([ref, parentRef]);
4593
4555
  var containerProps = __assign(__assign({}, rest), callbacks);
4594
- return React27.createElement(
4595
- React27.Fragment,
4556
+ return React26.createElement(
4557
+ React26.Fragment,
4596
4558
  null,
4597
- enabled && React27.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
4598
- forwardProps ? React27.cloneElement(React27.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React27.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
4559
+ enabled && React26.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
4560
+ forwardProps ? React26.cloneElement(React26.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React26.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
4599
4561
  );
4600
4562
  });
4601
4563
  RemoveScroll.defaultProps = {
@@ -4609,13 +4571,13 @@ RemoveScroll.classNames = {
4609
4571
  };
4610
4572
 
4611
4573
  // node_modules/react-remove-scroll/dist/es2015/SideEffect.js
4612
- var React30 = __toESM(require("react"));
4574
+ var React29 = __toESM(require("react"));
4613
4575
 
4614
4576
  // node_modules/react-remove-scroll-bar/dist/es2015/component.js
4615
- var React29 = __toESM(require("react"));
4577
+ var React28 = __toESM(require("react"));
4616
4578
 
4617
4579
  // node_modules/react-style-singleton/dist/es2015/hook.js
4618
- var React28 = __toESM(require("react"));
4580
+ var React27 = __toESM(require("react"));
4619
4581
 
4620
4582
  // node_modules/get-nonce/dist/es2015/index.js
4621
4583
  var currentNonce;
@@ -4679,7 +4641,7 @@ var stylesheetSingleton = function() {
4679
4641
  var styleHookSingleton = function() {
4680
4642
  var sheet = stylesheetSingleton();
4681
4643
  return function(styles, isDynamic) {
4682
- React28.useEffect(function() {
4644
+ React27.useEffect(function() {
4683
4645
  sheet.add(styles);
4684
4646
  return function() {
4685
4647
  sheet.remove();
@@ -4753,7 +4715,7 @@ var getCurrentUseCounter = function() {
4753
4715
  return isFinite(counter) ? counter : 0;
4754
4716
  };
4755
4717
  var useLockAttribute = function() {
4756
- React29.useEffect(function() {
4718
+ React28.useEffect(function() {
4757
4719
  document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
4758
4720
  return function() {
4759
4721
  var newCounter = getCurrentUseCounter() - 1;
@@ -4768,10 +4730,10 @@ var useLockAttribute = function() {
4768
4730
  var RemoveScrollBar = function(_a) {
4769
4731
  var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? "margin" : _b;
4770
4732
  useLockAttribute();
4771
- var gap = React29.useMemo(function() {
4733
+ var gap = React28.useMemo(function() {
4772
4734
  return getGapWidth(gapMode);
4773
4735
  }, [gapMode]);
4774
- return React29.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
4736
+ return React28.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
4775
4737
  };
4776
4738
 
4777
4739
  // node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
@@ -4912,16 +4874,16 @@ var generateStyle = function(id) {
4912
4874
  var idCounter = 0;
4913
4875
  var lockStack = [];
4914
4876
  function RemoveScrollSideCar(props) {
4915
- var shouldPreventQueue = React30.useRef([]);
4916
- var touchStartRef = React30.useRef([0, 0]);
4917
- var activeAxis = React30.useRef();
4918
- var id = React30.useState(idCounter++)[0];
4919
- var Style2 = React30.useState(styleSingleton)[0];
4920
- var lastProps = React30.useRef(props);
4921
- React30.useEffect(function() {
4877
+ var shouldPreventQueue = React29.useRef([]);
4878
+ var touchStartRef = React29.useRef([0, 0]);
4879
+ var activeAxis = React29.useRef();
4880
+ var id = React29.useState(idCounter++)[0];
4881
+ var Style2 = React29.useState(styleSingleton)[0];
4882
+ var lastProps = React29.useRef(props);
4883
+ React29.useEffect(function() {
4922
4884
  lastProps.current = props;
4923
4885
  }, [props]);
4924
- React30.useEffect(function() {
4886
+ React29.useEffect(function() {
4925
4887
  if (props.inert) {
4926
4888
  document.body.classList.add("block-interactivity-".concat(id));
4927
4889
  var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);
@@ -4937,7 +4899,7 @@ function RemoveScrollSideCar(props) {
4937
4899
  }
4938
4900
  return;
4939
4901
  }, [props.inert, props.lockRef.current, props.shards]);
4940
- var shouldCancelEvent = React30.useCallback(function(event, parent) {
4902
+ var shouldCancelEvent = React29.useCallback(function(event, parent) {
4941
4903
  if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
4942
4904
  return !lastProps.current.allowPinchZoom;
4943
4905
  }
@@ -4979,7 +4941,7 @@ function RemoveScrollSideCar(props) {
4979
4941
  var cancelingAxis = activeAxis.current || currentAxis;
4980
4942
  return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY, true);
4981
4943
  }, []);
4982
- var shouldPrevent = React30.useCallback(function(_event) {
4944
+ var shouldPrevent = React29.useCallback(function(_event) {
4983
4945
  var event = _event;
4984
4946
  if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
4985
4947
  return;
@@ -5006,7 +4968,7 @@ function RemoveScrollSideCar(props) {
5006
4968
  }
5007
4969
  }
5008
4970
  }, []);
5009
- var shouldCancel = React30.useCallback(function(name, delta, target, should) {
4971
+ var shouldCancel = React29.useCallback(function(name, delta, target, should) {
5010
4972
  var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
5011
4973
  shouldPreventQueue.current.push(event);
5012
4974
  setTimeout(function() {
@@ -5015,17 +4977,17 @@ function RemoveScrollSideCar(props) {
5015
4977
  });
5016
4978
  }, 1);
5017
4979
  }, []);
5018
- var scrollTouchStart = React30.useCallback(function(event) {
4980
+ var scrollTouchStart = React29.useCallback(function(event) {
5019
4981
  touchStartRef.current = getTouchXY(event);
5020
4982
  activeAxis.current = void 0;
5021
4983
  }, []);
5022
- var scrollWheel = React30.useCallback(function(event) {
4984
+ var scrollWheel = React29.useCallback(function(event) {
5023
4985
  shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
5024
4986
  }, []);
5025
- var scrollTouchMove = React30.useCallback(function(event) {
4987
+ var scrollTouchMove = React29.useCallback(function(event) {
5026
4988
  shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
5027
4989
  }, []);
5028
- React30.useEffect(function() {
4990
+ React29.useEffect(function() {
5029
4991
  lockStack.push(Style2);
5030
4992
  props.setCallbacks({
5031
4993
  onScrollCapture: scrollWheel,
@@ -5045,11 +5007,11 @@ function RemoveScrollSideCar(props) {
5045
5007
  };
5046
5008
  }, []);
5047
5009
  var removeScrollBar = props.removeScrollBar, inert = props.inert;
5048
- return React30.createElement(
5049
- React30.Fragment,
5010
+ return React29.createElement(
5011
+ React29.Fragment,
5050
5012
  null,
5051
- inert ? React30.createElement(Style2, { styles: generateStyle(id) }) : null,
5052
- removeScrollBar ? React30.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
5013
+ inert ? React29.createElement(Style2, { styles: generateStyle(id) }) : null,
5014
+ removeScrollBar ? React29.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
5053
5015
  );
5054
5016
  }
5055
5017
  function getOutermostShadowParent(node) {
@@ -5068,14 +5030,14 @@ function getOutermostShadowParent(node) {
5068
5030
  var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
5069
5031
 
5070
5032
  // node_modules/react-remove-scroll/dist/es2015/Combination.js
5071
- var ReactRemoveScroll = React31.forwardRef(function(props, ref) {
5072
- return React31.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
5033
+ var ReactRemoveScroll = React30.forwardRef(function(props, ref) {
5034
+ return React30.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
5073
5035
  });
5074
5036
  ReactRemoveScroll.classNames = RemoveScroll.classNames;
5075
5037
  var Combination_default = ReactRemoveScroll;
5076
5038
 
5077
5039
  // node_modules/@radix-ui/react-select/dist/index.mjs
5078
- var import_jsx_runtime22 = require("react/jsx-runtime");
5040
+ var import_jsx_runtime21 = require("react/jsx-runtime");
5079
5041
  var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
5080
5042
  var SELECTION_KEYS = [" ", "Enter"];
5081
5043
  var SELECT_NAME = "Select";
@@ -5105,9 +5067,9 @@ var Select = (props) => {
5105
5067
  form
5106
5068
  } = props;
5107
5069
  const popperScope = usePopperScope(__scopeSelect);
5108
- const [trigger, setTrigger] = React32.useState(null);
5109
- const [valueNode, setValueNode] = React32.useState(null);
5110
- const [valueNodeHasChildren, setValueNodeHasChildren] = React32.useState(false);
5070
+ const [trigger, setTrigger] = React31.useState(null);
5071
+ const [valueNode, setValueNode] = React31.useState(null);
5072
+ const [valueNodeHasChildren, setValueNodeHasChildren] = React31.useState(false);
5111
5073
  const direction = useDirection(dir);
5112
5074
  const [open, setOpen] = useControllableState({
5113
5075
  prop: openProp,
@@ -5121,11 +5083,11 @@ var Select = (props) => {
5121
5083
  onChange: onValueChange,
5122
5084
  caller: SELECT_NAME
5123
5085
  });
5124
- const triggerPointerDownPosRef = React32.useRef(null);
5086
+ const triggerPointerDownPosRef = React31.useRef(null);
5125
5087
  const isFormControl = trigger ? form || !!trigger.closest("form") : true;
5126
- const [nativeOptionsSet, setNativeOptionsSet] = React32.useState(/* @__PURE__ */ new Set());
5088
+ const [nativeOptionsSet, setNativeOptionsSet] = React31.useState(/* @__PURE__ */ new Set());
5127
5089
  const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
5128
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Root22, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
5090
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Root22, { ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5129
5091
  SelectProvider,
5130
5092
  {
5131
5093
  required,
@@ -5145,14 +5107,14 @@ var Select = (props) => {
5145
5107
  triggerPointerDownPosRef,
5146
5108
  disabled,
5147
5109
  children: [
5148
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5110
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5149
5111
  SelectNativeOptionsProvider,
5150
5112
  {
5151
5113
  scope: props.__scopeSelect,
5152
- onNativeOptionAdd: React32.useCallback((option) => {
5114
+ onNativeOptionAdd: React31.useCallback((option) => {
5153
5115
  setNativeOptionsSet((prev) => new Set(prev).add(option));
5154
5116
  }, []),
5155
- onNativeOptionRemove: React32.useCallback((option) => {
5117
+ onNativeOptionRemove: React31.useCallback((option) => {
5156
5118
  setNativeOptionsSet((prev) => {
5157
5119
  const optionsSet = new Set(prev);
5158
5120
  optionsSet.delete(option);
@@ -5162,7 +5124,7 @@ var Select = (props) => {
5162
5124
  children
5163
5125
  }
5164
5126
  ) }),
5165
- isFormControl ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
5127
+ isFormControl ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
5166
5128
  SelectBubbleInput,
5167
5129
  {
5168
5130
  "aria-hidden": true,
@@ -5175,7 +5137,7 @@ var Select = (props) => {
5175
5137
  disabled,
5176
5138
  form,
5177
5139
  children: [
5178
- value === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: "" }) : null,
5140
+ value === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: "" }) : null,
5179
5141
  Array.from(nativeOptionsSet)
5180
5142
  ]
5181
5143
  },
@@ -5187,7 +5149,7 @@ var Select = (props) => {
5187
5149
  };
5188
5150
  Select.displayName = SELECT_NAME;
5189
5151
  var TRIGGER_NAME = "SelectTrigger";
5190
- var SelectTrigger = React32.forwardRef(
5152
+ var SelectTrigger = React31.forwardRef(
5191
5153
  (props, forwardedRef) => {
5192
5154
  const { __scopeSelect, disabled = false, ...triggerProps } = props;
5193
5155
  const popperScope = usePopperScope(__scopeSelect);
@@ -5195,7 +5157,7 @@ var SelectTrigger = React32.forwardRef(
5195
5157
  const isDisabled = context.disabled || disabled;
5196
5158
  const composedRefs = useComposedRefs(forwardedRef, context.onTriggerChange);
5197
5159
  const getItems = useCollection(__scopeSelect);
5198
- const pointerTypeRef = React32.useRef("touch");
5160
+ const pointerTypeRef = React31.useRef("touch");
5199
5161
  const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {
5200
5162
  const enabledItems = getItems().filter((item) => !item.disabled);
5201
5163
  const currentItem = enabledItems.find((item) => item.value === context.value);
@@ -5216,8 +5178,8 @@ var SelectTrigger = React32.forwardRef(
5216
5178
  };
5217
5179
  }
5218
5180
  };
5219
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5220
- Primitive2.button,
5181
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5182
+ Primitive.button,
5221
5183
  {
5222
5184
  type: "button",
5223
5185
  role: "combobox",
@@ -5265,7 +5227,7 @@ var SelectTrigger = React32.forwardRef(
5265
5227
  );
5266
5228
  SelectTrigger.displayName = TRIGGER_NAME;
5267
5229
  var VALUE_NAME = "SelectValue";
5268
- var SelectValue = React32.forwardRef(
5230
+ var SelectValue = React31.forwardRef(
5269
5231
  (props, forwardedRef) => {
5270
5232
  const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
5271
5233
  const context = useSelectContext(VALUE_NAME, __scopeSelect);
@@ -5275,55 +5237,55 @@ var SelectValue = React32.forwardRef(
5275
5237
  useLayoutEffect2(() => {
5276
5238
  onValueNodeHasChildrenChange(hasChildren);
5277
5239
  }, [onValueNodeHasChildrenChange, hasChildren]);
5278
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5279
- Primitive2.span,
5240
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5241
+ Primitive.span,
5280
5242
  {
5281
5243
  ...valueProps,
5282
5244
  ref: composedRefs,
5283
5245
  style: { pointerEvents: "none" },
5284
- children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: placeholder }) : children
5246
+ children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: placeholder }) : children
5285
5247
  }
5286
5248
  );
5287
5249
  }
5288
5250
  );
5289
5251
  SelectValue.displayName = VALUE_NAME;
5290
5252
  var ICON_NAME = "SelectIcon";
5291
- var SelectIcon = React32.forwardRef(
5253
+ var SelectIcon = React31.forwardRef(
5292
5254
  (props, forwardedRef) => {
5293
5255
  const { __scopeSelect, children, ...iconProps } = props;
5294
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Primitive2.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "\u25BC" });
5256
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "\u25BC" });
5295
5257
  }
5296
5258
  );
5297
5259
  SelectIcon.displayName = ICON_NAME;
5298
5260
  var PORTAL_NAME2 = "SelectPortal";
5299
5261
  var SelectPortal = (props) => {
5300
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Portal, { asChild: true, ...props });
5262
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Portal, { asChild: true, ...props });
5301
5263
  };
5302
5264
  SelectPortal.displayName = PORTAL_NAME2;
5303
5265
  var CONTENT_NAME2 = "SelectContent";
5304
- var SelectContent = React32.forwardRef(
5266
+ var SelectContent = React31.forwardRef(
5305
5267
  (props, forwardedRef) => {
5306
5268
  const context = useSelectContext(CONTENT_NAME2, props.__scopeSelect);
5307
- const [fragment, setFragment] = React32.useState();
5269
+ const [fragment, setFragment] = React31.useState();
5308
5270
  useLayoutEffect2(() => {
5309
5271
  setFragment(new DocumentFragment());
5310
5272
  }, []);
5311
5273
  if (!context.open) {
5312
5274
  const frag = fragment;
5313
- return frag ? ReactDOM5.createPortal(
5314
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: props.children }) }) }),
5275
+ return frag ? ReactDOM4.createPortal(
5276
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { children: props.children }) }) }),
5315
5277
  frag
5316
5278
  ) : null;
5317
5279
  }
5318
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectContentImpl, { ...props, ref: forwardedRef });
5280
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectContentImpl, { ...props, ref: forwardedRef });
5319
5281
  }
5320
5282
  );
5321
5283
  SelectContent.displayName = CONTENT_NAME2;
5322
5284
  var CONTENT_MARGIN = 10;
5323
5285
  var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME2);
5324
5286
  var CONTENT_IMPL_NAME = "SelectContentImpl";
5325
- var Slot2 = (0, import_react_slot6.createSlot)("SelectContent.RemoveScroll");
5326
- var SelectContentImpl = React32.forwardRef(
5287
+ var Slot2 = (0, import_react_slot5.createSlot)("SelectContent.RemoveScroll");
5288
+ var SelectContentImpl = React31.forwardRef(
5327
5289
  (props, forwardedRef) => {
5328
5290
  const {
5329
5291
  __scopeSelect,
@@ -5347,21 +5309,21 @@ var SelectContentImpl = React32.forwardRef(
5347
5309
  ...contentProps
5348
5310
  } = props;
5349
5311
  const context = useSelectContext(CONTENT_NAME2, __scopeSelect);
5350
- const [content, setContent] = React32.useState(null);
5351
- const [viewport, setViewport] = React32.useState(null);
5312
+ const [content, setContent] = React31.useState(null);
5313
+ const [viewport, setViewport] = React31.useState(null);
5352
5314
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
5353
- const [selectedItem, setSelectedItem] = React32.useState(null);
5354
- const [selectedItemText, setSelectedItemText] = React32.useState(
5315
+ const [selectedItem, setSelectedItem] = React31.useState(null);
5316
+ const [selectedItemText, setSelectedItemText] = React31.useState(
5355
5317
  null
5356
5318
  );
5357
5319
  const getItems = useCollection(__scopeSelect);
5358
- const [isPositioned, setIsPositioned] = React32.useState(false);
5359
- const firstValidItemFoundRef = React32.useRef(false);
5360
- React32.useEffect(() => {
5320
+ const [isPositioned, setIsPositioned] = React31.useState(false);
5321
+ const firstValidItemFoundRef = React31.useRef(false);
5322
+ React31.useEffect(() => {
5361
5323
  if (content) return hideOthers(content);
5362
5324
  }, [content]);
5363
5325
  useFocusGuards();
5364
- const focusFirst2 = React32.useCallback(
5326
+ const focusFirst2 = React31.useCallback(
5365
5327
  (candidates) => {
5366
5328
  const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);
5367
5329
  const [lastItem] = restItems.slice(-1);
@@ -5377,17 +5339,17 @@ var SelectContentImpl = React32.forwardRef(
5377
5339
  },
5378
5340
  [getItems, viewport]
5379
5341
  );
5380
- const focusSelectedItem = React32.useCallback(
5342
+ const focusSelectedItem = React31.useCallback(
5381
5343
  () => focusFirst2([selectedItem, content]),
5382
5344
  [focusFirst2, selectedItem, content]
5383
5345
  );
5384
- React32.useEffect(() => {
5346
+ React31.useEffect(() => {
5385
5347
  if (isPositioned) {
5386
5348
  focusSelectedItem();
5387
5349
  }
5388
5350
  }, [isPositioned, focusSelectedItem]);
5389
5351
  const { onOpenChange, triggerPointerDownPosRef } = context;
5390
- React32.useEffect(() => {
5352
+ React31.useEffect(() => {
5391
5353
  if (content) {
5392
5354
  let pointerMoveDelta = { x: 0, y: 0 };
5393
5355
  const handlePointerMove = (event) => {
@@ -5417,7 +5379,7 @@ var SelectContentImpl = React32.forwardRef(
5417
5379
  };
5418
5380
  }
5419
5381
  }, [content, onOpenChange, triggerPointerDownPosRef]);
5420
- React32.useEffect(() => {
5382
+ React31.useEffect(() => {
5421
5383
  const close = () => onOpenChange(false);
5422
5384
  window.addEventListener("blur", close);
5423
5385
  window.addEventListener("resize", close);
@@ -5434,7 +5396,7 @@ var SelectContentImpl = React32.forwardRef(
5434
5396
  setTimeout(() => nextItem.ref.current.focus());
5435
5397
  }
5436
5398
  });
5437
- const itemRefCallback = React32.useCallback(
5399
+ const itemRefCallback = React31.useCallback(
5438
5400
  (node, value, disabled) => {
5439
5401
  const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
5440
5402
  const isSelectedItem = context.value !== void 0 && context.value === value;
@@ -5445,8 +5407,8 @@ var SelectContentImpl = React32.forwardRef(
5445
5407
  },
5446
5408
  [context.value]
5447
5409
  );
5448
- const handleItemLeave = React32.useCallback(() => content?.focus(), [content]);
5449
- const itemTextRefCallback = React32.useCallback(
5410
+ const handleItemLeave = React31.useCallback(() => content?.focus(), [content]);
5411
+ const itemTextRefCallback = React31.useCallback(
5450
5412
  (node, value, disabled) => {
5451
5413
  const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
5452
5414
  const isSelectedItem = context.value !== void 0 && context.value === value;
@@ -5469,7 +5431,7 @@ var SelectContentImpl = React32.forwardRef(
5469
5431
  hideWhenDetached,
5470
5432
  avoidCollisions
5471
5433
  } : {};
5472
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5434
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5473
5435
  SelectContentProvider,
5474
5436
  {
5475
5437
  scope: __scopeSelect,
@@ -5485,7 +5447,7 @@ var SelectContentImpl = React32.forwardRef(
5485
5447
  position,
5486
5448
  isPositioned,
5487
5449
  searchRef,
5488
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Combination_default, { as: Slot2, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5450
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Combination_default, { as: Slot2, allowPinchZoom: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5489
5451
  FocusScope,
5490
5452
  {
5491
5453
  asChild: true,
@@ -5497,7 +5459,7 @@ var SelectContentImpl = React32.forwardRef(
5497
5459
  context.trigger?.focus({ preventScroll: true });
5498
5460
  event.preventDefault();
5499
5461
  }),
5500
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5462
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5501
5463
  DismissableLayer,
5502
5464
  {
5503
5465
  asChild: true,
@@ -5506,7 +5468,7 @@ var SelectContentImpl = React32.forwardRef(
5506
5468
  onPointerDownOutside,
5507
5469
  onFocusOutside: (event) => event.preventDefault(),
5508
5470
  onDismiss: () => context.onOpenChange(false),
5509
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5471
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5510
5472
  SelectPosition,
5511
5473
  {
5512
5474
  role: "listbox",
@@ -5557,18 +5519,18 @@ var SelectContentImpl = React32.forwardRef(
5557
5519
  );
5558
5520
  SelectContentImpl.displayName = CONTENT_IMPL_NAME;
5559
5521
  var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
5560
- var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
5522
+ var SelectItemAlignedPosition = React31.forwardRef((props, forwardedRef) => {
5561
5523
  const { __scopeSelect, onPlaced, ...popperProps } = props;
5562
5524
  const context = useSelectContext(CONTENT_NAME2, __scopeSelect);
5563
5525
  const contentContext = useSelectContentContext(CONTENT_NAME2, __scopeSelect);
5564
- const [contentWrapper, setContentWrapper] = React32.useState(null);
5565
- const [content, setContent] = React32.useState(null);
5526
+ const [contentWrapper, setContentWrapper] = React31.useState(null);
5527
+ const [content, setContent] = React31.useState(null);
5566
5528
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
5567
5529
  const getItems = useCollection(__scopeSelect);
5568
- const shouldExpandOnScrollRef = React32.useRef(false);
5569
- const shouldRepositionRef = React32.useRef(true);
5530
+ const shouldExpandOnScrollRef = React31.useRef(false);
5531
+ const shouldRepositionRef = React31.useRef(true);
5570
5532
  const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
5571
- const position = React32.useCallback(() => {
5533
+ const position = React31.useCallback(() => {
5572
5534
  if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {
5573
5535
  const triggerRect = context.trigger.getBoundingClientRect();
5574
5536
  const contentRect = content.getBoundingClientRect();
@@ -5668,11 +5630,11 @@ var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
5668
5630
  onPlaced
5669
5631
  ]);
5670
5632
  useLayoutEffect2(() => position(), [position]);
5671
- const [contentZIndex, setContentZIndex] = React32.useState();
5633
+ const [contentZIndex, setContentZIndex] = React31.useState();
5672
5634
  useLayoutEffect2(() => {
5673
5635
  if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
5674
5636
  }, [content]);
5675
- const handleScrollButtonChange = React32.useCallback(
5637
+ const handleScrollButtonChange = React31.useCallback(
5676
5638
  (node) => {
5677
5639
  if (node && shouldRepositionRef.current === true) {
5678
5640
  position();
@@ -5682,14 +5644,14 @@ var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
5682
5644
  },
5683
5645
  [position, focusSelectedItem]
5684
5646
  );
5685
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5647
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5686
5648
  SelectViewportProvider,
5687
5649
  {
5688
5650
  scope: __scopeSelect,
5689
5651
  contentWrapper,
5690
5652
  shouldExpandOnScrollRef,
5691
5653
  onScrollButtonChange: handleScrollButtonChange,
5692
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5654
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5693
5655
  "div",
5694
5656
  {
5695
5657
  ref: setContentWrapper,
@@ -5699,8 +5661,8 @@ var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
5699
5661
  position: "fixed",
5700
5662
  zIndex: contentZIndex
5701
5663
  },
5702
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5703
- Primitive2.div,
5664
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5665
+ Primitive.div,
5704
5666
  {
5705
5667
  ...popperProps,
5706
5668
  ref: composedRefs,
@@ -5721,7 +5683,7 @@ var SelectItemAlignedPosition = React32.forwardRef((props, forwardedRef) => {
5721
5683
  });
5722
5684
  SelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;
5723
5685
  var POPPER_POSITION_NAME = "SelectPopperPosition";
5724
- var SelectPopperPosition = React32.forwardRef((props, forwardedRef) => {
5686
+ var SelectPopperPosition = React31.forwardRef((props, forwardedRef) => {
5725
5687
  const {
5726
5688
  __scopeSelect,
5727
5689
  align = "start",
@@ -5729,7 +5691,7 @@ var SelectPopperPosition = React32.forwardRef((props, forwardedRef) => {
5729
5691
  ...popperProps
5730
5692
  } = props;
5731
5693
  const popperScope = usePopperScope(__scopeSelect);
5732
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5694
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5733
5695
  Content,
5734
5696
  {
5735
5697
  ...popperScope,
@@ -5756,15 +5718,15 @@ var SelectPopperPosition = React32.forwardRef((props, forwardedRef) => {
5756
5718
  SelectPopperPosition.displayName = POPPER_POSITION_NAME;
5757
5719
  var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME2, {});
5758
5720
  var VIEWPORT_NAME = "SelectViewport";
5759
- var SelectViewport = React32.forwardRef(
5721
+ var SelectViewport = React31.forwardRef(
5760
5722
  (props, forwardedRef) => {
5761
5723
  const { __scopeSelect, nonce, ...viewportProps } = props;
5762
5724
  const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);
5763
5725
  const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
5764
5726
  const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);
5765
- const prevScrollTopRef = React32.useRef(0);
5766
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
5767
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5727
+ const prevScrollTopRef = React31.useRef(0);
5728
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
5729
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5768
5730
  "style",
5769
5731
  {
5770
5732
  dangerouslySetInnerHTML: {
@@ -5773,8 +5735,8 @@ var SelectViewport = React32.forwardRef(
5773
5735
  nonce
5774
5736
  }
5775
5737
  ),
5776
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5777
- Primitive2.div,
5738
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5739
+ Primitive.div,
5778
5740
  {
5779
5741
  "data-radix-select-viewport": "",
5780
5742
  role: "presentation",
@@ -5825,26 +5787,26 @@ var SelectViewport = React32.forwardRef(
5825
5787
  SelectViewport.displayName = VIEWPORT_NAME;
5826
5788
  var GROUP_NAME = "SelectGroup";
5827
5789
  var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);
5828
- var SelectGroup = React32.forwardRef(
5790
+ var SelectGroup = React31.forwardRef(
5829
5791
  (props, forwardedRef) => {
5830
5792
  const { __scopeSelect, ...groupProps } = props;
5831
5793
  const groupId = useId();
5832
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Primitive2.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
5794
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
5833
5795
  }
5834
5796
  );
5835
5797
  SelectGroup.displayName = GROUP_NAME;
5836
5798
  var LABEL_NAME = "SelectLabel";
5837
- var SelectLabel = React32.forwardRef(
5799
+ var SelectLabel = React31.forwardRef(
5838
5800
  (props, forwardedRef) => {
5839
5801
  const { __scopeSelect, ...labelProps } = props;
5840
5802
  const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
5841
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Primitive2.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
5803
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
5842
5804
  }
5843
5805
  );
5844
5806
  SelectLabel.displayName = LABEL_NAME;
5845
5807
  var ITEM_NAME = "SelectItem";
5846
5808
  var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);
5847
- var SelectItem = React32.forwardRef(
5809
+ var SelectItem = React31.forwardRef(
5848
5810
  (props, forwardedRef) => {
5849
5811
  const {
5850
5812
  __scopeSelect,
@@ -5856,14 +5818,14 @@ var SelectItem = React32.forwardRef(
5856
5818
  const context = useSelectContext(ITEM_NAME, __scopeSelect);
5857
5819
  const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);
5858
5820
  const isSelected = context.value === value;
5859
- const [textValue, setTextValue] = React32.useState(textValueProp ?? "");
5860
- const [isFocused, setIsFocused] = React32.useState(false);
5821
+ const [textValue, setTextValue] = React31.useState(textValueProp ?? "");
5822
+ const [isFocused, setIsFocused] = React31.useState(false);
5861
5823
  const composedRefs = useComposedRefs(
5862
5824
  forwardedRef,
5863
5825
  (node) => contentContext.itemRefCallback?.(node, value, disabled)
5864
5826
  );
5865
5827
  const textId = useId();
5866
- const pointerTypeRef = React32.useRef("touch");
5828
+ const pointerTypeRef = React31.useRef("touch");
5867
5829
  const handleSelect = () => {
5868
5830
  if (!disabled) {
5869
5831
  context.onValueChange(value);
@@ -5875,7 +5837,7 @@ var SelectItem = React32.forwardRef(
5875
5837
  "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."
5876
5838
  );
5877
5839
  }
5878
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5840
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5879
5841
  SelectItemContextProvider,
5880
5842
  {
5881
5843
  scope: __scopeSelect,
@@ -5883,18 +5845,18 @@ var SelectItem = React32.forwardRef(
5883
5845
  disabled,
5884
5846
  textId,
5885
5847
  isSelected,
5886
- onItemTextChange: React32.useCallback((node) => {
5848
+ onItemTextChange: React31.useCallback((node) => {
5887
5849
  setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
5888
5850
  }, []),
5889
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5851
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5890
5852
  Collection.ItemSlot,
5891
5853
  {
5892
5854
  scope: __scopeSelect,
5893
5855
  value,
5894
5856
  disabled,
5895
5857
  textValue,
5896
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5897
- Primitive2.div,
5858
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5859
+ Primitive.div,
5898
5860
  {
5899
5861
  role: "option",
5900
5862
  "aria-labelledby": textId,
@@ -5946,14 +5908,14 @@ var SelectItem = React32.forwardRef(
5946
5908
  );
5947
5909
  SelectItem.displayName = ITEM_NAME;
5948
5910
  var ITEM_TEXT_NAME = "SelectItemText";
5949
- var SelectItemText = React32.forwardRef(
5911
+ var SelectItemText = React31.forwardRef(
5950
5912
  (props, forwardedRef) => {
5951
5913
  const { __scopeSelect, className, style, ...itemTextProps } = props;
5952
5914
  const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);
5953
5915
  const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);
5954
5916
  const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);
5955
5917
  const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);
5956
- const [itemTextNode, setItemTextNode] = React32.useState(null);
5918
+ const [itemTextNode, setItemTextNode] = React31.useState(null);
5957
5919
  const composedRefs = useComposedRefs(
5958
5920
  forwardedRef,
5959
5921
  (node) => setItemTextNode(node),
@@ -5961,8 +5923,8 @@ var SelectItemText = React32.forwardRef(
5961
5923
  (node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled)
5962
5924
  );
5963
5925
  const textContent = itemTextNode?.textContent;
5964
- const nativeOption = React32.useMemo(
5965
- () => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),
5926
+ const nativeOption = React31.useMemo(
5927
+ () => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),
5966
5928
  [itemContext.disabled, itemContext.value, textContent]
5967
5929
  );
5968
5930
  const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
@@ -5970,27 +5932,27 @@ var SelectItemText = React32.forwardRef(
5970
5932
  onNativeOptionAdd(nativeOption);
5971
5933
  return () => onNativeOptionRemove(nativeOption);
5972
5934
  }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
5973
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
5974
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Primitive2.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
5975
- itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM5.createPortal(itemTextProps.children, context.valueNode) : null
5935
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
5936
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
5937
+ itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM4.createPortal(itemTextProps.children, context.valueNode) : null
5976
5938
  ] });
5977
5939
  }
5978
5940
  );
5979
5941
  SelectItemText.displayName = ITEM_TEXT_NAME;
5980
5942
  var ITEM_INDICATOR_NAME = "SelectItemIndicator";
5981
- var SelectItemIndicator = React32.forwardRef(
5943
+ var SelectItemIndicator = React31.forwardRef(
5982
5944
  (props, forwardedRef) => {
5983
5945
  const { __scopeSelect, ...itemIndicatorProps } = props;
5984
5946
  const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
5985
- return itemContext.isSelected ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Primitive2.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
5947
+ return itemContext.isSelected ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
5986
5948
  }
5987
5949
  );
5988
5950
  SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
5989
5951
  var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton";
5990
- var SelectScrollUpButton = React32.forwardRef((props, forwardedRef) => {
5952
+ var SelectScrollUpButton = React31.forwardRef((props, forwardedRef) => {
5991
5953
  const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
5992
5954
  const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
5993
- const [canScrollUp, setCanScrollUp] = React32.useState(false);
5955
+ const [canScrollUp, setCanScrollUp] = React31.useState(false);
5994
5956
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
5995
5957
  useLayoutEffect2(() => {
5996
5958
  if (contentContext.viewport && contentContext.isPositioned) {
@@ -6005,7 +5967,7 @@ var SelectScrollUpButton = React32.forwardRef((props, forwardedRef) => {
6005
5967
  return () => viewport.removeEventListener("scroll", handleScroll22);
6006
5968
  }
6007
5969
  }, [contentContext.viewport, contentContext.isPositioned]);
6008
- return canScrollUp ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
5970
+ return canScrollUp ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6009
5971
  SelectScrollButtonImpl,
6010
5972
  {
6011
5973
  ...props,
@@ -6021,10 +5983,10 @@ var SelectScrollUpButton = React32.forwardRef((props, forwardedRef) => {
6021
5983
  });
6022
5984
  SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
6023
5985
  var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton";
6024
- var SelectScrollDownButton = React32.forwardRef((props, forwardedRef) => {
5986
+ var SelectScrollDownButton = React31.forwardRef((props, forwardedRef) => {
6025
5987
  const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
6026
5988
  const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
6027
- const [canScrollDown, setCanScrollDown] = React32.useState(false);
5989
+ const [canScrollDown, setCanScrollDown] = React31.useState(false);
6028
5990
  const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
6029
5991
  useLayoutEffect2(() => {
6030
5992
  if (contentContext.viewport && contentContext.isPositioned) {
@@ -6040,7 +6002,7 @@ var SelectScrollDownButton = React32.forwardRef((props, forwardedRef) => {
6040
6002
  return () => viewport.removeEventListener("scroll", handleScroll22);
6041
6003
  }
6042
6004
  }, [contentContext.viewport, contentContext.isPositioned]);
6043
- return canScrollDown ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6005
+ return canScrollDown ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6044
6006
  SelectScrollButtonImpl,
6045
6007
  {
6046
6008
  ...props,
@@ -6055,26 +6017,26 @@ var SelectScrollDownButton = React32.forwardRef((props, forwardedRef) => {
6055
6017
  ) : null;
6056
6018
  });
6057
6019
  SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
6058
- var SelectScrollButtonImpl = React32.forwardRef((props, forwardedRef) => {
6020
+ var SelectScrollButtonImpl = React31.forwardRef((props, forwardedRef) => {
6059
6021
  const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;
6060
6022
  const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
6061
- const autoScrollTimerRef = React32.useRef(null);
6023
+ const autoScrollTimerRef = React31.useRef(null);
6062
6024
  const getItems = useCollection(__scopeSelect);
6063
- const clearAutoScrollTimer = React32.useCallback(() => {
6025
+ const clearAutoScrollTimer = React31.useCallback(() => {
6064
6026
  if (autoScrollTimerRef.current !== null) {
6065
6027
  window.clearInterval(autoScrollTimerRef.current);
6066
6028
  autoScrollTimerRef.current = null;
6067
6029
  }
6068
6030
  }, []);
6069
- React32.useEffect(() => {
6031
+ React31.useEffect(() => {
6070
6032
  return () => clearAutoScrollTimer();
6071
6033
  }, [clearAutoScrollTimer]);
6072
6034
  useLayoutEffect2(() => {
6073
6035
  const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
6074
6036
  activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
6075
6037
  }, [getItems]);
6076
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6077
- Primitive2.div,
6038
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6039
+ Primitive.div,
6078
6040
  {
6079
6041
  "aria-hidden": true,
6080
6042
  ...scrollIndicatorProps,
@@ -6098,31 +6060,31 @@ var SelectScrollButtonImpl = React32.forwardRef((props, forwardedRef) => {
6098
6060
  );
6099
6061
  });
6100
6062
  var SEPARATOR_NAME = "SelectSeparator";
6101
- var SelectSeparator = React32.forwardRef(
6063
+ var SelectSeparator = React31.forwardRef(
6102
6064
  (props, forwardedRef) => {
6103
6065
  const { __scopeSelect, ...separatorProps } = props;
6104
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Primitive2.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
6066
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
6105
6067
  }
6106
6068
  );
6107
6069
  SelectSeparator.displayName = SEPARATOR_NAME;
6108
6070
  var ARROW_NAME2 = "SelectArrow";
6109
- var SelectArrow = React32.forwardRef(
6071
+ var SelectArrow = React31.forwardRef(
6110
6072
  (props, forwardedRef) => {
6111
6073
  const { __scopeSelect, ...arrowProps } = props;
6112
6074
  const popperScope = usePopperScope(__scopeSelect);
6113
6075
  const context = useSelectContext(ARROW_NAME2, __scopeSelect);
6114
6076
  const contentContext = useSelectContentContext(ARROW_NAME2, __scopeSelect);
6115
- return context.open && contentContext.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
6077
+ return context.open && contentContext.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Arrow2, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
6116
6078
  }
6117
6079
  );
6118
6080
  SelectArrow.displayName = ARROW_NAME2;
6119
6081
  var BUBBLE_INPUT_NAME = "SelectBubbleInput";
6120
- var SelectBubbleInput = React32.forwardRef(
6082
+ var SelectBubbleInput = React31.forwardRef(
6121
6083
  ({ __scopeSelect, value, ...props }, forwardedRef) => {
6122
- const ref = React32.useRef(null);
6084
+ const ref = React31.useRef(null);
6123
6085
  const composedRefs = useComposedRefs(forwardedRef, ref);
6124
6086
  const prevValue = usePrevious(value);
6125
- React32.useEffect(() => {
6087
+ React31.useEffect(() => {
6126
6088
  const select = ref.current;
6127
6089
  if (!select) return;
6128
6090
  const selectProto = window.HTMLSelectElement.prototype;
@@ -6137,8 +6099,8 @@ var SelectBubbleInput = React32.forwardRef(
6137
6099
  select.dispatchEvent(event);
6138
6100
  }
6139
6101
  }, [prevValue, value]);
6140
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6141
- Primitive2.select,
6102
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6103
+ Primitive.select,
6142
6104
  {
6143
6105
  ...props,
6144
6106
  style: { ...VISUALLY_HIDDEN_STYLES, ...props.style },
@@ -6154,9 +6116,9 @@ function shouldShowPlaceholder(value) {
6154
6116
  }
6155
6117
  function useTypeaheadSearch(onSearchChange) {
6156
6118
  const handleSearchChange = useCallbackRef(onSearchChange);
6157
- const searchRef = React32.useRef("");
6158
- const timerRef = React32.useRef(0);
6159
- const handleTypeaheadSearch = React32.useCallback(
6119
+ const searchRef = React31.useRef("");
6120
+ const timerRef = React31.useRef(0);
6121
+ const handleTypeaheadSearch = React31.useCallback(
6160
6122
  (key) => {
6161
6123
  const search = searchRef.current + key;
6162
6124
  handleSearchChange(search);
@@ -6168,11 +6130,11 @@ function useTypeaheadSearch(onSearchChange) {
6168
6130
  },
6169
6131
  [handleSearchChange]
6170
6132
  );
6171
- const resetTypeahead = React32.useCallback(() => {
6133
+ const resetTypeahead = React31.useCallback(() => {
6172
6134
  searchRef.current = "";
6173
6135
  window.clearTimeout(timerRef.current);
6174
6136
  }, []);
6175
- React32.useEffect(() => {
6137
+ React31.useEffect(() => {
6176
6138
  return () => window.clearTimeout(timerRef.current);
6177
6139
  }, []);
6178
6140
  return [searchRef, handleTypeaheadSearch, resetTypeahead];
@@ -6207,16 +6169,16 @@ var ScrollDownButton = SelectScrollDownButton;
6207
6169
 
6208
6170
  // shadcn/select.tsx
6209
6171
  var import_lucide_react4 = require("lucide-react");
6210
- var import_jsx_runtime23 = require("react/jsx-runtime");
6172
+ var import_jsx_runtime22 = require("react/jsx-runtime");
6211
6173
  function Select2({
6212
6174
  ...props
6213
6175
  }) {
6214
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Root23, { "data-slot": "select", ...props });
6176
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Root23, { "data-slot": "select", ...props });
6215
6177
  }
6216
6178
  function SelectValue2({
6217
6179
  ...props
6218
6180
  }) {
6219
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Value, { "data-slot": "select-value", ...props });
6181
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Value, { "data-slot": "select-value", ...props });
6220
6182
  }
6221
6183
  function SelectTrigger2({
6222
6184
  className,
@@ -6224,7 +6186,7 @@ function SelectTrigger2({
6224
6186
  children,
6225
6187
  ...props
6226
6188
  }) {
6227
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
6189
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
6228
6190
  Trigger,
6229
6191
  {
6230
6192
  "data-slot": "select-trigger",
@@ -6236,7 +6198,7 @@ function SelectTrigger2({
6236
6198
  ...props,
6237
6199
  children: [
6238
6200
  children,
6239
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4 opacity-50" }) })
6201
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4 opacity-50" }) })
6240
6202
  ]
6241
6203
  }
6242
6204
  );
@@ -6248,7 +6210,7 @@ function SelectContent2({
6248
6210
  align = "center",
6249
6211
  ...props
6250
6212
  }) {
6251
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Portal2, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
6213
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Portal2, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
6252
6214
  Content2,
6253
6215
  {
6254
6216
  "data-slot": "select-content",
@@ -6261,8 +6223,8 @@ function SelectContent2({
6261
6223
  align,
6262
6224
  ...props,
6263
6225
  children: [
6264
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectScrollUpButton2, {}),
6265
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
6226
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectScrollUpButton2, {}),
6227
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6266
6228
  Viewport,
6267
6229
  {
6268
6230
  className: cn(
@@ -6272,7 +6234,7 @@ function SelectContent2({
6272
6234
  children
6273
6235
  }
6274
6236
  ),
6275
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectScrollDownButton2, {})
6237
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectScrollDownButton2, {})
6276
6238
  ]
6277
6239
  }
6278
6240
  ) });
@@ -6282,7 +6244,7 @@ function SelectItem2({
6282
6244
  children,
6283
6245
  ...props
6284
6246
  }) {
6285
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
6247
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
6286
6248
  Item,
6287
6249
  {
6288
6250
  "data-slot": "select-item",
@@ -6292,15 +6254,15 @@ function SelectItem2({
6292
6254
  ),
6293
6255
  ...props,
6294
6256
  children: [
6295
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
6257
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6296
6258
  "span",
6297
6259
  {
6298
6260
  "data-slot": "select-item-indicator",
6299
6261
  className: "absolute right-2 flex size-3.5 items-center justify-center",
6300
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react4.CheckIcon, { className: "size-4" }) })
6262
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.CheckIcon, { className: "size-4" }) })
6301
6263
  }
6302
6264
  ),
6303
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(ItemText, { children })
6265
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ItemText, { children })
6304
6266
  ]
6305
6267
  }
6306
6268
  );
@@ -6309,7 +6271,7 @@ function SelectScrollUpButton2({
6309
6271
  className,
6310
6272
  ...props
6311
6273
  }) {
6312
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
6274
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6313
6275
  ScrollUpButton,
6314
6276
  {
6315
6277
  "data-slot": "select-scroll-up-button",
@@ -6318,7 +6280,7 @@ function SelectScrollUpButton2({
6318
6280
  className
6319
6281
  ),
6320
6282
  ...props,
6321
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react4.ChevronUpIcon, { className: "size-4" })
6283
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.ChevronUpIcon, { className: "size-4" })
6322
6284
  }
6323
6285
  );
6324
6286
  }
@@ -6326,7 +6288,7 @@ function SelectScrollDownButton2({
6326
6288
  className,
6327
6289
  ...props
6328
6290
  }) {
6329
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
6291
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6330
6292
  ScrollDownButton,
6331
6293
  {
6332
6294
  "data-slot": "select-scroll-down-button",
@@ -6335,14 +6297,14 @@ function SelectScrollDownButton2({
6335
6297
  className
6336
6298
  ),
6337
6299
  ...props,
6338
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4" })
6300
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react4.ChevronDownIcon, { className: "size-4" })
6339
6301
  }
6340
6302
  );
6341
6303
  }
6342
6304
 
6343
6305
  // entries/context.tsx
6344
6306
  var import_react8 = require("react");
6345
- var import_jsx_runtime24 = require("react/jsx-runtime");
6307
+ var import_jsx_runtime23 = require("react/jsx-runtime");
6346
6308
  var EntriesContext = (0, import_react8.createContext)(null);
6347
6309
  function EntriesProvider({
6348
6310
  entries,
@@ -6359,7 +6321,7 @@ function EntriesProvider({
6359
6321
  return entry.content[fieldKey];
6360
6322
  }
6361
6323
  };
6362
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(EntriesContext.Provider, { value: contextValue, children });
6324
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(EntriesContext.Provider, { value: contextValue, children });
6363
6325
  }
6364
6326
  function useEntries() {
6365
6327
  const context = (0, import_react8.useContext)(EntriesContext);
@@ -6375,7 +6337,7 @@ function useEntries() {
6375
6337
  }
6376
6338
 
6377
6339
  // fields/EntryBoundTextField.tsx
6378
- var import_jsx_runtime25 = require("react/jsx-runtime");
6340
+ var import_jsx_runtime24 = require("react/jsx-runtime");
6379
6341
  function isEntryBoundValue(value) {
6380
6342
  return typeof value === "object" && value !== null && "useEntry" in value;
6381
6343
  }
@@ -6430,10 +6392,10 @@ function EntryBoundTextField({
6430
6392
  }
6431
6393
  };
6432
6394
  const hasEntries = entryNames.length > 0;
6433
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-2", children: [
6434
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center justify-between", children: [
6435
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-sm font-medium", children: label }),
6436
- hasEntries && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
6395
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-col gap-2", children: [
6396
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex items-center justify-between", children: [
6397
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-sm font-medium", children: label }),
6398
+ hasEntries && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
6437
6399
  Toggle,
6438
6400
  {
6439
6401
  pressed: isUsingEntry,
@@ -6446,38 +6408,38 @@ function EntryBoundTextField({
6446
6408
  }
6447
6409
  )
6448
6410
  ] }),
6449
- isUsingEntry ? /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "space-y-2", children: [
6450
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex gap-2", children: [
6451
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
6411
+ isUsingEntry ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "space-y-2", children: [
6412
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex gap-2", children: [
6413
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
6452
6414
  Select2,
6453
6415
  {
6454
6416
  value: currentEntryName,
6455
6417
  onValueChange: handleEntryChange,
6456
6418
  disabled,
6457
6419
  children: [
6458
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectTrigger2, { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectValue2, { placeholder: "Select entry" }) }),
6459
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectContent2, { children: entryNames.map((name) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectItem2, { value: name, children: name }, name)) })
6420
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectTrigger2, { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectValue2, { placeholder: "Select entry" }) }),
6421
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectContent2, { children: entryNames.map((name) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectItem2, { value: name, children: name }, name)) })
6460
6422
  ]
6461
6423
  }
6462
6424
  ),
6463
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
6425
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
6464
6426
  Select2,
6465
6427
  {
6466
6428
  value: currentFieldKey,
6467
6429
  onValueChange: handleFieldChange,
6468
6430
  disabled: disabled || !currentEntryName,
6469
6431
  children: [
6470
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectTrigger2, { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectValue2, { placeholder: "Select field" }) }),
6471
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectContent2, { children: availableFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(SelectItem2, { value: field, children: field }, field)) })
6432
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectTrigger2, { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectValue2, { placeholder: "Select field" }) }),
6433
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectContent2, { children: availableFields.map((field) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectItem2, { value: field, children: field }, field)) })
6472
6434
  ]
6473
6435
  }
6474
6436
  )
6475
6437
  ] }),
6476
- resolvedValue && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "bg-muted rounded-md p-2", children: [
6477
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Label, { className: "text-muted-foreground text-xs", children: "Preview" }),
6478
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-sm", children: resolvedValue })
6438
+ resolvedValue && /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "bg-muted rounded-md p-2", children: [
6439
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Label, { className: "text-muted-foreground text-xs", children: "Preview" }),
6440
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "text-sm", children: resolvedValue })
6479
6441
  ] })
6480
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
6442
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
6481
6443
  Input,
6482
6444
  {
6483
6445
  value: resolvedValue,
@@ -6496,7 +6458,7 @@ function createEntryBoundTextField(label, placeholder) {
6496
6458
  value,
6497
6459
  onChange,
6498
6460
  readOnly
6499
- }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
6461
+ }) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
6500
6462
  EntryBoundTextField,
6501
6463
  {
6502
6464
  value,
@@ -6511,7 +6473,7 @@ function createEntryBoundTextField(label, placeholder) {
6511
6473
 
6512
6474
  // fields/ResponsiveToggleField.tsx
6513
6475
  var import_lucide_react5 = require("lucide-react");
6514
- var import_jsx_runtime26 = require("react/jsx-runtime");
6476
+ var import_jsx_runtime25 = require("react/jsx-runtime");
6515
6477
  var breakpoints = [
6516
6478
  { key: "mobile", label: "Mobile", icon: import_lucide_react5.Smartphone },
6517
6479
  { key: "desktop", label: "Desktop", icon: import_lucide_react5.Monitor }
@@ -6532,9 +6494,9 @@ function ResponsiveToggleField({
6532
6494
  [key]: !visibility[key]
6533
6495
  });
6534
6496
  };
6535
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-3", children: [
6536
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Label, { className: "text-sm font-medium", children: label }),
6537
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex gap-2", children: breakpoints.map(({ key, label: bpLabel, icon: Icon2 }) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
6497
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-3", children: [
6498
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Label, { className: "text-sm font-medium", children: label }),
6499
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex gap-2", children: breakpoints.map(({ key, label: bpLabel, icon: Icon2 }) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
6538
6500
  "button",
6539
6501
  {
6540
6502
  type: "button",
@@ -6546,13 +6508,13 @@ function ResponsiveToggleField({
6546
6508
  ),
6547
6509
  "aria-label": `${bpLabel} visibility`,
6548
6510
  children: [
6549
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon2, { className: "size-5" }),
6550
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-xs font-medium", children: bpLabel })
6511
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon2, { className: "size-5" }),
6512
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-xs font-medium", children: bpLabel })
6551
6513
  ]
6552
6514
  },
6553
6515
  key
6554
6516
  )) }),
6555
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-muted-foreground text-xs", children: !visibility.mobile && !visibility.desktop ? "Hidden on all devices" : `Visible on ${[
6517
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-muted-foreground text-xs", children: !visibility.mobile && !visibility.desktop ? "Hidden on all devices" : `Visible on ${[
6556
6518
  visibility.mobile && "mobile",
6557
6519
  visibility.desktop && "desktop"
6558
6520
  ].filter(Boolean).join(" & ")}` })
@@ -6560,7 +6522,7 @@ function ResponsiveToggleField({
6560
6522
  }
6561
6523
 
6562
6524
  // fields/ShadowField.tsx
6563
- var import_jsx_runtime27 = require("react/jsx-runtime");
6525
+ var import_jsx_runtime26 = require("react/jsx-runtime");
6564
6526
  function ShadowField({
6565
6527
  value,
6566
6528
  onChangeAction,
@@ -6568,9 +6530,9 @@ function ShadowField({
6568
6530
  label
6569
6531
  }) {
6570
6532
  const currentValue = value ?? "none";
6571
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col gap-3", children: [
6572
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Label, { className: "text-sm font-medium", children: label }),
6573
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "grid grid-cols-4 gap-2", children: shadowPresets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
6533
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-3", children: [
6534
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Label, { className: "text-sm font-medium", children: label }),
6535
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "grid grid-cols-4 gap-2", children: shadowPresets.map((preset) => /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
6574
6536
  Button,
6575
6537
  {
6576
6538
  type: "button",
@@ -6583,14 +6545,14 @@ function ShadowField({
6583
6545
  currentValue === preset.value && "ring-ring ring-2"
6584
6546
  ),
6585
6547
  children: [
6586
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
6548
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
6587
6549
  "div",
6588
6550
  {
6589
6551
  className: "bg-background size-8 rounded",
6590
6552
  style: { boxShadow: preset.css }
6591
6553
  }
6592
6554
  ),
6593
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-xs", children: preset.label })
6555
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-xs", children: preset.label })
6594
6556
  ]
6595
6557
  },
6596
6558
  preset.value
@@ -6601,7 +6563,7 @@ function ShadowField({
6601
6563
  // fields/SpacingSliderField.tsx
6602
6564
  var import_react9 = require("react");
6603
6565
  var import_lucide_react6 = require("lucide-react");
6604
- var import_jsx_runtime28 = require("react/jsx-runtime");
6566
+ var import_jsx_runtime27 = require("react/jsx-runtime");
6605
6567
  var MAX_VALUE2 = spacingScale[spacingScale.length - 1].value;
6606
6568
  function SpacingSliderField({
6607
6569
  value,
@@ -6641,10 +6603,10 @@ function SpacingSliderField({
6641
6603
  };
6642
6604
  const matchingPreset = spacingScale.find((s) => s.value === currentValue);
6643
6605
  const displayLabel = matchingPreset?.label ?? "Custom";
6644
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-3", children: [
6645
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center justify-between", children: [
6646
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Label, { className: "text-sm font-medium", children: label }),
6647
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6606
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col gap-3", children: [
6607
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center justify-between", children: [
6608
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Label, { className: "text-sm font-medium", children: label }),
6609
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
6648
6610
  Toggle,
6649
6611
  {
6650
6612
  pressed: quantized,
@@ -6653,13 +6615,13 @@ function SpacingSliderField({
6653
6615
  variant: "outline",
6654
6616
  "aria-label": "Snap to grid",
6655
6617
  title: quantized ? "Snap to grid (on)" : "Snap to grid (off)",
6656
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react6.Magnet, { className: "size-3.5" })
6618
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react6.Magnet, { className: "size-3.5" })
6657
6619
  }
6658
6620
  )
6659
6621
  ] }),
6660
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center gap-2", children: [
6661
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-muted-foreground flex-1 text-sm", children: displayLabel }),
6662
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6622
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center gap-2", children: [
6623
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-muted-foreground flex-1 text-sm", children: displayLabel }),
6624
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
6663
6625
  Input,
6664
6626
  {
6665
6627
  type: "number",
@@ -6671,9 +6633,9 @@ function SpacingSliderField({
6671
6633
  max: MAX_VALUE2
6672
6634
  }
6673
6635
  ),
6674
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-muted-foreground text-xs", children: "px" })
6636
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-muted-foreground text-xs", children: "px" })
6675
6637
  ] }),
6676
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6638
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
6677
6639
  Slider,
6678
6640
  {
6679
6641
  value: [currentValue],
@@ -6684,7 +6646,7 @@ function SpacingSliderField({
6684
6646
  disabled
6685
6647
  }
6686
6648
  ),
6687
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex flex-wrap gap-1", children: spacingScale.filter((_, i) => i % 2 === 0 || i === spacingScale.length - 1).map((preset) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6649
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex flex-wrap gap-1", children: spacingScale.filter((_, i) => i % 2 === 0 || i === spacingScale.length - 1).map((preset) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
6688
6650
  Button,
6689
6651
  {
6690
6652
  type: "button",
@@ -6700,7 +6662,7 @@ function SpacingSliderField({
6700
6662
  }
6701
6663
 
6702
6664
  // fields/ThemeableColorField.tsx
6703
- var import_jsx_runtime29 = require("react/jsx-runtime");
6665
+ var import_jsx_runtime28 = require("react/jsx-runtime");
6704
6666
  function isThemeableValue(value) {
6705
6667
  return typeof value === "object" && value !== null && "useTheme" in value;
6706
6668
  }
@@ -6725,10 +6687,10 @@ function ThemeableColorField({
6725
6687
  const handleColorChange = (newColor) => {
6726
6688
  onChange({ useTheme: false, value: newColor });
6727
6689
  };
6728
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col gap-2", children: [
6729
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center justify-between", children: [
6730
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-sm font-medium", children: label }),
6731
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6690
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col gap-2", children: [
6691
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center justify-between", children: [
6692
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-sm font-medium", children: label }),
6693
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6732
6694
  Toggle,
6733
6695
  {
6734
6696
  pressed: isUsingTheme,
@@ -6741,8 +6703,8 @@ function ThemeableColorField({
6741
6703
  }
6742
6704
  )
6743
6705
  ] }),
6744
- isUsingTheme ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex items-center gap-2 rounded-md border p-2", children: [
6745
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6706
+ isUsingTheme ? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex items-center gap-2 rounded-md border p-2", children: [
6707
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6746
6708
  "div",
6747
6709
  {
6748
6710
  className: "size-6 shrink-0 rounded border",
@@ -6751,11 +6713,11 @@ function ThemeableColorField({
6751
6713
  }
6752
6714
  }
6753
6715
  ),
6754
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { className: "text-muted-foreground text-sm capitalize", children: [
6716
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { className: "text-muted-foreground text-sm capitalize", children: [
6755
6717
  "Theme: ",
6756
6718
  themeKey
6757
6719
  ] })
6758
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6720
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6759
6721
  ColorPickerField,
6760
6722
  {
6761
6723
  value: customValue,
@@ -6774,7 +6736,7 @@ function createThemeableColorField(label, themeKey) {
6774
6736
  value,
6775
6737
  onChange,
6776
6738
  readOnly
6777
- }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6739
+ }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
6778
6740
  ThemeableColorField,
6779
6741
  {
6780
6742
  value,
@@ -6788,7 +6750,7 @@ function createThemeableColorField(label, themeKey) {
6788
6750
  }
6789
6751
 
6790
6752
  // fields/TypographyField.tsx
6791
- var import_jsx_runtime30 = require("react/jsx-runtime");
6753
+ var import_jsx_runtime29 = require("react/jsx-runtime");
6792
6754
  function TypographyField({
6793
6755
  value,
6794
6756
  onChangeAction,
@@ -6819,9 +6781,9 @@ function TypographyField({
6819
6781
  fontWeight
6820
6782
  });
6821
6783
  };
6822
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-3", children: [
6823
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label, { className: "text-sm font-medium", children: label }),
6824
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6784
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col gap-3", children: [
6785
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Label, { className: "text-sm font-medium", children: label }),
6786
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6825
6787
  "div",
6826
6788
  {
6827
6789
  className: "bg-muted rounded-md p-3 text-center",
@@ -6833,17 +6795,17 @@ function TypographyField({
6833
6795
  children: "The quick brown fox"
6834
6796
  }
6835
6797
  ),
6836
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
6837
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Family" }),
6838
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
6798
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
6799
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Family" }),
6800
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
6839
6801
  Select2,
6840
6802
  {
6841
6803
  value: currentFamily,
6842
6804
  onValueChange: handleFamilyChange,
6843
6805
  disabled,
6844
6806
  children: [
6845
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SelectTrigger2, { className: "h-8", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SelectValue2, {}) }),
6846
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SelectContent2, { children: fontFamilies.map((font) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6807
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectTrigger2, { className: "h-8", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectValue2, {}) }),
6808
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(SelectContent2, { children: fontFamilies.map((font) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6847
6809
  SelectItem2,
6848
6810
  {
6849
6811
  value: font.value,
@@ -6856,9 +6818,9 @@ function TypographyField({
6856
6818
  }
6857
6819
  )
6858
6820
  ] }),
6859
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
6860
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Size" }),
6861
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex flex-wrap gap-1", children: fontSizes.map((size4) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6821
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
6822
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Size" }),
6823
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex flex-wrap gap-1", children: fontSizes.map((size4) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6862
6824
  Button,
6863
6825
  {
6864
6826
  type: "button",
@@ -6871,9 +6833,9 @@ function TypographyField({
6871
6833
  size4.value
6872
6834
  )) })
6873
6835
  ] }),
6874
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
6875
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Weight" }),
6876
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex flex-wrap gap-1", children: fontWeights.map((weight) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6836
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
6837
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Label, { className: "text-muted-foreground mb-1.5 text-xs", children: "Weight" }),
6838
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex flex-wrap gap-1", children: fontWeights.map((weight) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6877
6839
  Button,
6878
6840
  {
6879
6841
  type: "button",
@@ -6890,7 +6852,7 @@ function TypographyField({
6890
6852
  }
6891
6853
 
6892
6854
  // fields/index.tsx
6893
- var import_jsx_runtime31 = require("react/jsx-runtime");
6855
+ var import_jsx_runtime30 = require("react/jsx-runtime");
6894
6856
  function createColorField(label) {
6895
6857
  return {
6896
6858
  type: "custom",
@@ -6899,7 +6861,7 @@ function createColorField(label) {
6899
6861
  value,
6900
6862
  onChange,
6901
6863
  readOnly
6902
- }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6864
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6903
6865
  ColorPickerField,
6904
6866
  {
6905
6867
  value,
@@ -6918,7 +6880,7 @@ function createSpacingField(label) {
6918
6880
  value,
6919
6881
  onChange,
6920
6882
  readOnly
6921
- }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6883
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6922
6884
  SpacingSliderField,
6923
6885
  {
6924
6886
  value,
@@ -6937,7 +6899,7 @@ function createShadowField(label) {
6937
6899
  value,
6938
6900
  onChange,
6939
6901
  readOnly
6940
- }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6902
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6941
6903
  ShadowField,
6942
6904
  {
6943
6905
  value,
@@ -6956,7 +6918,7 @@ function createBorderRadiusField(label) {
6956
6918
  value,
6957
6919
  onChange,
6958
6920
  readOnly
6959
- }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6921
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6960
6922
  BorderRadiusField,
6961
6923
  {
6962
6924
  value,
@@ -6975,7 +6937,7 @@ function createTypographyField(label) {
6975
6937
  value,
6976
6938
  onChange,
6977
6939
  readOnly
6978
- }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6940
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6979
6941
  TypographyField,
6980
6942
  {
6981
6943
  value,
@@ -6994,7 +6956,7 @@ function createResponsiveField(label) {
6994
6956
  value,
6995
6957
  onChange,
6996
6958
  readOnly
6997
- }) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
6959
+ }) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
6998
6960
  ResponsiveToggleField,
6999
6961
  {
7000
6962
  value,