@timeax/form-palette 0.1.28 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule, P as PhoneCountry, k as PasswordDefinitionMap, l as CustomFileLoader, m as FileItem } from './core-BS2fNt2O.mjs';
2
- export { B as BaseProps, s as ButtonRef, z as EffectiveFieldLayout, y as FieldLayoutConfig, x as FieldOrdering, w as FieldRootId, u as FieldRoots, v as FieldSlotId, t as FieldSlots, p as FormProps, n as InferFromSchema, I as InputNumber, r as InputStore, A as LayoutResolveContext, G as LayoutResolver, R as RelativeRootsMap, o as SubmitEvent, T as Textarea, q as ValuesResult, J as VariantEntry, N as VariantLayoutDefaults, O as VariantModuleFor, M as VariantValidateFn, K as Variants } from './core-BS2fNt2O.mjs';
1
+ import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule, P as PhoneCountry, k as PasswordDefinitionMap, l as CustomFileLoader, m as FileItem } from './core-74nd0n1e.mjs';
2
+ export { B as BaseProps, s as ButtonRef, z as EffectiveFieldLayout, y as FieldLayoutConfig, x as FieldOrdering, w as FieldRootId, u as FieldRoots, v as FieldSlotId, t as FieldSlots, p as FormProps, n as InferFromSchema, I as InputNumber, r as InputStore, A as LayoutResolveContext, G as LayoutResolver, R as RelativeRootsMap, o as SubmitEvent, T as Textarea, q as ValuesResult, J as VariantEntry, N as VariantLayoutDefaults, O as VariantModuleFor, M as VariantValidateFn, K as Variants } from './core-74nd0n1e.mjs';
3
3
  import { A as AdapterKey } from './adapter-CvjXO9Gi.mjs';
4
4
  export { a as AdapterCallbacks, c as AdapterConfig, h as AdapterError, d as AdapterFactory, g as AdapterOk, f as AdapterProps, b as AdapterResult, i as AdapterSubmit, e as Adapters, M as Method, N as NamedAdapterConfig, j as NamedAdapterFactory } from './adapter-CvjXO9Gi.mjs';
5
5
  export { createAxiosAdapter, createInertiaAdapter, getAdapter, hasAdapter, localAdapter, registerAdapter, registerAllAdapters, registerAxiosAdapter, registerInertiaAdapter, registerKnownAdapter } from './adapters.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule, P as PhoneCountry, k as PasswordDefinitionMap, l as CustomFileLoader, m as FileItem } from './core-CtnF6uJt.js';
2
- export { B as BaseProps, s as ButtonRef, z as EffectiveFieldLayout, y as FieldLayoutConfig, x as FieldOrdering, w as FieldRootId, u as FieldRoots, v as FieldSlotId, t as FieldSlots, p as FormProps, n as InferFromSchema, I as InputNumber, r as InputStore, A as LayoutResolveContext, G as LayoutResolver, R as RelativeRootsMap, o as SubmitEvent, T as Textarea, q as ValuesResult, J as VariantEntry, N as VariantLayoutDefaults, O as VariantModuleFor, M as VariantValidateFn, K as Variants } from './core-CtnF6uJt.js';
1
+ import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule, P as PhoneCountry, k as PasswordDefinitionMap, l as CustomFileLoader, m as FileItem } from './core-B8Htm7S-.js';
2
+ export { B as BaseProps, s as ButtonRef, z as EffectiveFieldLayout, y as FieldLayoutConfig, x as FieldOrdering, w as FieldRootId, u as FieldRoots, v as FieldSlotId, t as FieldSlots, p as FormProps, n as InferFromSchema, I as InputNumber, r as InputStore, A as LayoutResolveContext, G as LayoutResolver, R as RelativeRootsMap, o as SubmitEvent, T as Textarea, q as ValuesResult, J as VariantEntry, N as VariantLayoutDefaults, O as VariantModuleFor, M as VariantValidateFn, K as Variants } from './core-B8Htm7S-.js';
3
3
  import { A as AdapterKey } from './adapter-CvjXO9Gi.js';
4
4
  export { a as AdapterCallbacks, c as AdapterConfig, h as AdapterError, d as AdapterFactory, g as AdapterOk, f as AdapterProps, b as AdapterResult, i as AdapterSubmit, e as Adapters, M as Method, N as NamedAdapterConfig, j as NamedAdapterFactory } from './adapter-CvjXO9Gi.js';
5
5
  export { createAxiosAdapter, createInertiaAdapter, getAdapter, hasAdapter, localAdapter, registerAdapter, registerAllAdapters, registerAxiosAdapter, registerInertiaAdapter, registerKnownAdapter } from './adapters.js';
package/dist/index.js CHANGED
@@ -9297,7 +9297,9 @@ function CoreProvider(props) {
9297
9297
  return anyField.onSubmit(value);
9298
9298
  }
9299
9299
  if (formatFileValue && item.variant == "file") {
9300
- return toArray(value).map(formatFileValue);
9300
+ return toArray(value).map(
9301
+ formatFileValue
9302
+ );
9301
9303
  }
9302
9304
  return value;
9303
9305
  };
@@ -9385,8 +9387,7 @@ function CoreProvider(props) {
9385
9387
  const finish = () => {
9386
9388
  if (finished) return;
9387
9389
  finished = true;
9388
- if (uncaughtRef.current.length)
9389
- setHasUncaughtErrors(hasUncaughtErrors + 1);
9390
+ if (uncaughtRef.current.length) setHasUncaughtErrors((e4) => e4 + 1);
9390
9391
  setButtonLoading(false);
9391
9392
  };
9392
9393
  if (!ignoreForm) {
@@ -20662,17 +20663,21 @@ function normalizeItems(items, mappers, optionValueKey, optionLabelKey) {
20662
20663
  label: mappers.getLabel(item, index),
20663
20664
  description: mappers.getDescription ? mappers.getDescription(item, index) : void 0,
20664
20665
  disabled: mappers.isDisabled ? mappers.isDisabled(item, index) : false,
20665
- key: mappers.getKey ? mappers.getKey(item, index) : index
20666
+ key: mappers.getKey ? mappers.getKey(item, index) : index,
20667
+ raw: item
20666
20668
  }));
20667
20669
  }
20668
20670
  if (optionValueKey || optionLabelKey) {
20669
20671
  return items.map((item, index) => {
20670
- return globalNormalizeCheckBasedOptions(
20671
- item,
20672
- index,
20673
- optionLabelKey,
20674
- optionValueKey
20675
- );
20672
+ return {
20673
+ ...globalNormalizeCheckBasedOptions(
20674
+ item,
20675
+ index,
20676
+ optionLabelKey,
20677
+ optionValueKey
20678
+ ),
20679
+ raw: item
20680
+ };
20676
20681
  });
20677
20682
  }
20678
20683
  return items.map((item, index) => {
@@ -20683,7 +20688,8 @@ function normalizeItems(items, mappers, optionValueKey, optionLabelKey) {
20683
20688
  label: String(item),
20684
20689
  description: void 0,
20685
20690
  disabled: false,
20686
- key: index
20691
+ key: index,
20692
+ raw: item
20687
20693
  };
20688
20694
  }
20689
20695
  return item;
@@ -20746,11 +20752,12 @@ var InnerShadcnRadioVariant = (props, ref) => {
20746
20752
  return found ? String(found.value) : void 0;
20747
20753
  }, [normalized, value]);
20748
20754
  const handleSelect = React66__namespace.useCallback(
20749
- (next) => {
20755
+ (next, selectedRaw) => {
20750
20756
  if (!onValue || disabled) return;
20751
20757
  const detail = {
20752
20758
  source: "variant",
20753
- raw: next,
20759
+ raw: selectedRaw != null ? selectedRaw : next,
20760
+ selectedOptions: [selectedRaw != null ? selectedRaw : next],
20754
20761
  nativeEvent: void 0,
20755
20762
  meta: void 0
20756
20763
  };
@@ -20760,9 +20767,10 @@ var InnerShadcnRadioVariant = (props, ref) => {
20760
20767
  );
20761
20768
  const handleRadioChange = React66__namespace.useCallback(
20762
20769
  (raw) => {
20770
+ var _a;
20763
20771
  const found = normalized.find((item) => String(item.value) === raw);
20764
20772
  if (!found) return;
20765
- handleSelect(found.value);
20773
+ handleSelect(found.value, (_a = found.raw) != null ? _a : found.value);
20766
20774
  },
20767
20775
  [normalized, handleSelect]
20768
20776
  );
@@ -21008,7 +21016,8 @@ function normalizeItems2(items, mappers, optionValueKey, optionLabelKey) {
21008
21016
  description: mappers.getDescription ? mappers.getDescription(item, index) : void 0,
21009
21017
  disabled: mappers.isDisabled ? mappers.isDisabled(item, index) : false,
21010
21018
  key: mappers.getKey ? mappers.getKey(item, index) : index,
21011
- tristate: mappers.getTristate ? mappers.getTristate(item, index) : void 0
21019
+ tristate: mappers.getTristate ? mappers.getTristate(item, index) : void 0,
21020
+ raw: item
21012
21021
  }));
21013
21022
  }
21014
21023
  if (optionValueKey || optionLabelKey) {
@@ -21023,7 +21032,8 @@ function normalizeItems2(items, mappers, optionValueKey, optionLabelKey) {
21023
21032
  const tristate = anyItem.tristate;
21024
21033
  return {
21025
21034
  ...normalised,
21026
- tristate
21035
+ tristate,
21036
+ raw: item
21027
21037
  };
21028
21038
  });
21029
21039
  }
@@ -21036,7 +21046,8 @@ function normalizeItems2(items, mappers, optionValueKey, optionLabelKey) {
21036
21046
  description: void 0,
21037
21047
  disabled: false,
21038
21048
  key: index,
21039
- tristate: void 0
21049
+ tristate: void 0,
21050
+ raw: item
21040
21051
  };
21041
21052
  }
21042
21053
  return item;
@@ -21047,7 +21058,17 @@ function isEqualValue2(a3, b2) {
21047
21058
  }
21048
21059
  function asGroupValue(value) {
21049
21060
  if (!value) return void 0;
21050
- if (Array.isArray(value)) return value;
21061
+ if (Array.isArray(value)) {
21062
+ if (value.length === 0) return void 0;
21063
+ const first = value[0];
21064
+ if (first && typeof first === "object" && "value" in first && "state" in first) {
21065
+ return value;
21066
+ }
21067
+ return value.map((item) => ({
21068
+ value: item,
21069
+ state: true
21070
+ }));
21071
+ }
21051
21072
  if (typeof value == "object")
21052
21073
  return Object.keys(value).map(
21053
21074
  (key) => ({
@@ -21103,11 +21124,21 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
21103
21124
  } = props;
21104
21125
  const hasError = !!error;
21105
21126
  const isSingle = !!single;
21127
+ const normalized = React66__namespace.useMemo(
21128
+ () => normalizeItems2(
21129
+ items != null ? items : options,
21130
+ mappers,
21131
+ optionValue,
21132
+ optionLabel
21133
+ ),
21134
+ [items, options, mappers, optionValue, optionLabel]
21135
+ );
21106
21136
  if (isSingle) {
21107
21137
  const singleVal = asSingleValue(value);
21108
21138
  const effectiveTristate = !!tristateDefault;
21109
21139
  const internalState = effectiveTristate ? singleVal != null ? singleVal : "none" : !!singleVal;
21110
21140
  const handleSingleChange = (next) => {
21141
+ var _a;
21111
21142
  if (!onValue || disabled) return;
21112
21143
  let nextPublic;
21113
21144
  if (effectiveTristate) {
@@ -21118,6 +21149,7 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
21118
21149
  const detail = {
21119
21150
  source: "variant",
21120
21151
  raw: nextPublic,
21152
+ selectedOptions: nextPublic === true ? normalized[0] ? [(_a = normalized[0].raw) != null ? _a : normalized[0].value] : [] : [],
21121
21153
  nativeEvent: void 0,
21122
21154
  meta: void 0
21123
21155
  };
@@ -21176,15 +21208,6 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
21176
21208
  );
21177
21209
  }
21178
21210
  const groupValue = asGroupValue(value);
21179
- const normalized = React66__namespace.useMemo(
21180
- () => normalizeItems2(
21181
- items != null ? items : options,
21182
- mappers,
21183
- optionValue,
21184
- optionLabel
21185
- ),
21186
- [items, options, mappers, optionValue, optionLabel]
21187
- );
21188
21211
  const {
21189
21212
  groupStyle,
21190
21213
  groupClasses,
@@ -21204,6 +21227,13 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
21204
21227
  labelTextSizeClass: labelTextSize2(size),
21205
21228
  descriptionTextSizeClass: descriptionTextSize2(size)
21206
21229
  });
21230
+ const hasAnyTristate = React66__namespace.useMemo(
21231
+ () => normalized.some((item) => {
21232
+ var _a, _b;
21233
+ return (_b = (_a = item.tristate) != null ? _a : tristateDefault) != null ? _b : false;
21234
+ }),
21235
+ [normalized, tristateDefault]
21236
+ );
21207
21237
  const findEntryIndex = React66__namespace.useCallback(
21208
21238
  (val) => {
21209
21239
  if (!groupValue) return -1;
@@ -21276,14 +21306,28 @@ var InnerShadcnCheckboxVariant = (props, ref) => {
21276
21306
  const detail = {
21277
21307
  source: "variant",
21278
21308
  raw: nextList,
21309
+ selectedOptions: nextList.map(
21310
+ (entry) => {
21311
+ var _a, _b;
21312
+ return (_b = (_a = normalized.find(
21313
+ (item) => isEqualValue2(item.value, entry.value)
21314
+ )) == null ? void 0 : _a.raw) != null ? _b : entry.value;
21315
+ }
21316
+ ),
21279
21317
  nativeEvent: void 0,
21280
21318
  meta: void 0
21281
21319
  };
21282
- const value2 = {};
21283
- nextList.forEach((item) => value2[item.value] = item.state);
21284
- onValue(value2, detail);
21320
+ if (hasAnyTristate) {
21321
+ const value2 = {};
21322
+ nextList.forEach(
21323
+ (item) => value2[item.value] = item.state
21324
+ );
21325
+ onValue(value2, detail);
21326
+ return;
21327
+ }
21328
+ onValue(nextList.map((item) => item.value), detail);
21285
21329
  },
21286
- [onValue, disabled, groupValue]
21330
+ [onValue, disabled, groupValue, normalized, hasAnyTristate]
21287
21331
  );
21288
21332
  return /* @__PURE__ */ jsxRuntime.jsx(
21289
21333
  "div",
@@ -21559,13 +21603,14 @@ var ShadcnSelectVariant = React66__namespace.forwardRef(function ShadcnSelectVar
21559
21603
  );
21560
21604
  const handleChange = React66__namespace.useCallback(
21561
21605
  (rawKey) => {
21562
- var _a2, _b2, _c;
21606
+ var _a2, _b2, _c, _d;
21563
21607
  if (!onValue || rawKey === "") return;
21564
21608
  const primitive = (_a2 = valueMap.get(rawKey)) != null ? _a2 : rawKey;
21565
21609
  const item = (_b2 = items.find((it) => String(it.value) === String(primitive))) != null ? _b2 : null;
21566
21610
  const detail = {
21567
21611
  source: "variant",
21568
21612
  raw: (_c = item == null ? void 0 : item.raw) != null ? _c : primitive,
21613
+ selectedOptions: [(_d = item == null ? void 0 : item.raw) != null ? _d : primitive],
21569
21614
  nativeEvent: void 0,
21570
21615
  meta: void 0
21571
21616
  };
@@ -21667,6 +21712,7 @@ var ShadcnSelectVariant = React66__namespace.forwardRef(function ShadcnSelectVar
21667
21712
  const detail = {
21668
21713
  source: "variant",
21669
21714
  raw: void 0,
21715
+ selectedOptions: [],
21670
21716
  nativeEvent: void 0,
21671
21717
  meta: { action: "clear" }
21672
21718
  };
@@ -22301,7 +22347,12 @@ var ShadcnMultiSelectVariant = React66__namespace.forwardRef(function ShadcnMult
22301
22347
  next = [...current, primitive];
22302
22348
  }
22303
22349
  const final = next.length ? next : void 0;
22304
- const values = next == null ? void 0 : next.map((item) => keyedItems[item].raw);
22350
+ const values = next == null ? void 0 : next.map(
22351
+ (item) => {
22352
+ var _a2, _b;
22353
+ return (_b = (_a2 = keyedItems[item]) == null ? void 0 : _a2.raw) != null ? _b : item;
22354
+ }
22355
+ );
22305
22356
  const detail = {
22306
22357
  source: "variant",
22307
22358
  raw: {
@@ -22310,12 +22361,13 @@ var ShadcnMultiSelectVariant = React66__namespace.forwardRef(function ShadcnMult
22310
22361
  next: final,
22311
22362
  values
22312
22363
  },
22364
+ selectedOptions: values != null ? values : [],
22313
22365
  nativeEvent: void 0,
22314
22366
  meta: void 0
22315
22367
  };
22316
22368
  onValue(final, detail);
22317
22369
  },
22318
- [onValue, value, disabled, readOnly]
22370
+ [onValue, value, disabled, readOnly, keyedItems]
22319
22371
  );
22320
22372
  const handleSelectAll = React66__namespace.useCallback(() => {
22321
22373
  if (!onValue || disabled || readOnly) return;
@@ -22331,7 +22383,10 @@ var ShadcnMultiSelectVariant = React66__namespace.forwardRef(function ShadcnMult
22331
22383
  next = Array.from(merged);
22332
22384
  }
22333
22385
  const final = next.length ? next : void 0;
22334
- const values = next.map((item) => keyedItems[item].raw);
22386
+ const values = next.map((item) => {
22387
+ var _a2, _b;
22388
+ return (_b = (_a2 = keyedItems[item]) == null ? void 0 : _a2.raw) != null ? _b : item;
22389
+ });
22335
22390
  const detail = {
22336
22391
  source: "variant",
22337
22392
  raw: {
@@ -22339,6 +22394,7 @@ var ShadcnMultiSelectVariant = React66__namespace.forwardRef(function ShadcnMult
22339
22394
  next: final,
22340
22395
  values
22341
22396
  },
22397
+ selectedOptions: values,
22342
22398
  nativeEvent: void 0,
22343
22399
  meta: {
22344
22400
  allSelected: !currentlyAllSelected
@@ -22351,7 +22407,8 @@ var ShadcnMultiSelectVariant = React66__namespace.forwardRef(function ShadcnMult
22351
22407
  disabled,
22352
22408
  readOnly,
22353
22409
  allSelectableValues,
22354
- selectedValues
22410
+ selectedValues,
22411
+ keyedItems
22355
22412
  ]);
22356
22413
  const handleClearAll = React66__namespace.useCallback(() => {
22357
22414
  if (!onValue || disabled || readOnly) return;
@@ -22360,6 +22417,7 @@ var ShadcnMultiSelectVariant = React66__namespace.forwardRef(function ShadcnMult
22360
22417
  raw: {
22361
22418
  type: "clear"
22362
22419
  },
22420
+ selectedOptions: [],
22363
22421
  nativeEvent: void 0,
22364
22422
  meta: void 0
22365
22423
  };
@@ -22375,9 +22433,14 @@ var ShadcnMultiSelectVariant = React66__namespace.forwardRef(function ShadcnMult
22375
22433
  selectedValues,
22376
22434
  item.value
22377
22435
  );
22436
+ const selectedOptions = (updated != null ? updated : []).map((value2) => {
22437
+ var _a2, _b;
22438
+ return (_b = (_a2 = keyedItems[value2]) == null ? void 0 : _a2.raw) != null ? _b : value2;
22439
+ });
22378
22440
  const detail = {
22379
22441
  source: "variant",
22380
22442
  raw: item,
22443
+ selectedOptions,
22381
22444
  nativeEvent: void 0,
22382
22445
  meta: { action: "remove", removed: value }
22383
22446
  };
@@ -24302,9 +24365,16 @@ var ShadcnTreeSelectVariant = React66__namespace.forwardRef(function ShadcnTreeS
24302
24365
  setOpen(false);
24303
24366
  }
24304
24367
  const nextSelectedValues = Array.isArray(nextValue) ? nextValue : nextValue !== void 0 && nextValue !== null ? [nextValue] : [];
24368
+ const nextSelectedOptions = nextSelectedValues.map(
24369
+ (val) => {
24370
+ var _a, _b;
24371
+ return (_b = (_a = allNodesFlat.find((node) => node.value === val)) == null ? void 0 : _a.raw) != null ? _b : val;
24372
+ }
24373
+ );
24305
24374
  const detail = {
24306
24375
  source: "variant",
24307
24376
  raw: item.raw,
24377
+ selectedOptions: nextSelectedOptions,
24308
24378
  nativeEvent: void 0,
24309
24379
  meta: {
24310
24380
  toggled: item.value,
@@ -24319,7 +24389,8 @@ var ShadcnTreeSelectVariant = React66__namespace.forwardRef(function ShadcnTreeS
24319
24389
  multiple,
24320
24390
  selectedValues,
24321
24391
  onValue,
24322
- toggleExpanded
24392
+ toggleExpanded,
24393
+ allNodesFlat
24323
24394
  ]
24324
24395
  );
24325
24396
  const handleClear = React66__namespace.useCallback(() => {
@@ -24327,6 +24398,7 @@ var ShadcnTreeSelectVariant = React66__namespace.forwardRef(function ShadcnTreeS
24327
24398
  const detail = {
24328
24399
  source: "variant",
24329
24400
  raw: void 0,
24401
+ selectedOptions: [],
24330
24402
  nativeEvent: void 0,
24331
24403
  meta: { action: "clear" }
24332
24404
  };
@@ -26100,6 +26172,7 @@ var ShadcnToggleVariant3 = React66__namespace.forwardRef(function ShadcnToggleVa
26100
26172
  source: "variant",
26101
26173
  raw: rawSelection,
26102
26174
  // original item(s)
26175
+ selectedOptions: Array.isArray(rawSelection) ? rawSelection : rawSelection === void 0 ? [] : [rawSelection],
26103
26176
  nativeEvent: void 0,
26104
26177
  meta: { action: "toggle" }
26105
26178
  };
@@ -32510,7 +32583,7 @@ var ShadcnIconVariant = React66__namespace.forwardRef(function ShadcnIconVariant
32510
32583
  PopoverContent,
32511
32584
  {
32512
32585
  className: cn(
32513
- "w-(--radix-popover-trigger-width) p-0",
32586
+ "w-(--radix-popover-trigger-width) p-0 max-h-(--radix-popper-available-height)",
32514
32587
  popoverClassName
32515
32588
  ),
32516
32589
  align: "start",
@@ -33360,7 +33433,7 @@ var ShadcnImageIconVariant = React66__namespace.forwardRef(function ShadcnImageI
33360
33433
  PopoverContent,
33361
33434
  {
33362
33435
  className: cn(
33363
- "w-(--radix-popover-trigger-width) p-0",
33436
+ "w-(--radix-popover-trigger-width) p-0 max-h-(--radix-popper-available-height)",
33364
33437
  popoverClassName
33365
33438
  ),
33366
33439
  align: "start",