@baseplate-dev/plugin-auth 0.6.7 → 0.6.9

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/web/assets/{__federation_expose_authCoreCommon-CP84XoaZ.js → __federation_expose_authCoreCommon-B9LFt4zi.js} +3 -3
  3. package/dist/web/assets/{__federation_expose_authCoreCommon-CP84XoaZ.js.map → __federation_expose_authCoreCommon-B9LFt4zi.js.map} +1 -1
  4. package/dist/web/assets/{__federation_expose_authCoreWeb-DI2UmqKo.js → __federation_expose_authCoreWeb-CRo6bfSQ.js} +6 -6
  5. package/dist/web/assets/{__federation_expose_authCoreWeb-DI2UmqKo.js.map → __federation_expose_authCoreWeb-CRo6bfSQ.js.map} +1 -1
  6. package/dist/web/assets/{__federation_expose_better-authAdminCommon-D0_9WcWn.js → __federation_expose_better-authAdminCommon-Drx1dj0K.js} +2 -2
  7. package/dist/web/assets/{__federation_expose_better-authAdminCommon-D0_9WcWn.js.map → __federation_expose_better-authAdminCommon-Drx1dj0K.js.map} +1 -1
  8. package/dist/web/assets/{__federation_expose_better-authAdminWeb-D_dXlhKK.js → __federation_expose_better-authAdminWeb-Zsc9mjjD.js} +2 -2
  9. package/dist/web/assets/{__federation_expose_better-authAdminWeb-D_dXlhKK.js.map → __federation_expose_better-authAdminWeb-Zsc9mjjD.js.map} +1 -1
  10. package/dist/web/assets/{__federation_expose_better-authCoreCommon-48JK7oT2.js → __federation_expose_better-authCoreCommon-BTstKS5D.js} +4 -4
  11. package/dist/web/assets/{__federation_expose_better-authCoreCommon-48JK7oT2.js.map → __federation_expose_better-authCoreCommon-BTstKS5D.js.map} +1 -1
  12. package/dist/web/assets/{__federation_expose_better-authCoreWeb-BxmF6zJd.js → __federation_expose_better-authCoreWeb-ClXucVm1.js} +5 -5
  13. package/dist/web/assets/{__federation_expose_better-authCoreWeb-BxmF6zJd.js.map → __federation_expose_better-authCoreWeb-ClXucVm1.js.map} +1 -1
  14. package/dist/web/assets/{__federation_expose_local-authAdminCommon-D0_9WcWn.js → __federation_expose_local-authAdminCommon-Drx1dj0K.js} +2 -2
  15. package/dist/web/assets/{__federation_expose_local-authAdminCommon-D0_9WcWn.js.map → __federation_expose_local-authAdminCommon-Drx1dj0K.js.map} +1 -1
  16. package/dist/web/assets/{__federation_expose_local-authAdminWeb-BTSMv1QG.js → __federation_expose_local-authAdminWeb-Ci30yAgH.js} +2 -2
  17. package/dist/web/assets/{__federation_expose_local-authAdminWeb-BTSMv1QG.js.map → __federation_expose_local-authAdminWeb-Ci30yAgH.js.map} +1 -1
  18. package/dist/web/assets/{__federation_expose_local-authCoreCommon-CHvPbnK-.js → __federation_expose_local-authCoreCommon-C13Qctt3.js} +4 -4
  19. package/dist/web/assets/{__federation_expose_local-authCoreCommon-CHvPbnK-.js.map → __federation_expose_local-authCoreCommon-C13Qctt3.js.map} +1 -1
  20. package/dist/web/assets/{__federation_expose_local-authCoreWeb-ZGfSzqOX.js → __federation_expose_local-authCoreWeb-CLMjEvfQ.js} +5 -5
  21. package/dist/web/assets/{__federation_expose_local-authCoreWeb-ZGfSzqOX.js.map → __federation_expose_local-authCoreWeb-CLMjEvfQ.js.map} +1 -1
  22. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-Cdpmumwc.js → __federation_expose_placeholder-authCoreCommon-CtZPLUXY.js} +3 -3
  23. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-Cdpmumwc.js.map → __federation_expose_placeholder-authCoreCommon-CtZPLUXY.js.map} +1 -1
  24. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-D44O5ZAh.js → __federation_expose_placeholder-authCoreWeb-DNuOQDyt.js} +5 -5
  25. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-D44O5ZAh.js.map → __federation_expose_placeholder-authCoreWeb-DNuOQDyt.js.map} +1 -1
  26. package/dist/web/assets/{__federation_fn_import-_bDjmFT3.js → __federation_fn_import-DvwH-J9J.js} +2 -2
  27. package/dist/web/assets/{__federation_fn_import-_bDjmFT3.js.map → __federation_fn_import-DvwH-J9J.js.map} +1 -1
  28. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-CtILEBu2.js → web-B2EK5IrR.js} +5 -5
  29. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-CtILEBu2.js.map → web-B2EK5IrR.js.map} +1 -1
  30. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CSgNGpA4.js → project-builder-lib-CueLW7vJ.js} +7 -7
  31. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CSgNGpA4.js.map → project-builder-lib-CueLW7vJ.js.map} +1 -1
  32. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-w6NlcuHV.js → ui-components-Cs5voPoC.js} +81 -45
  33. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-w6NlcuHV.js.map → ui-components-Cs5voPoC.js.map} +1 -1
  34. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-DIoUxQTf.js → utils-DH2Y7csi.js} +2 -2
  35. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-DIoUxQTf.js.map → utils-DH2Y7csi.js.map} +1 -1
  36. package/dist/web/assets/__federation_shared_@tanstack/{react-router-1SsG_axk.js → react-router-CDlgRD7c.js} +2 -2
  37. package/dist/web/assets/__federation_shared_@tanstack/{react-router-1SsG_axk.js.map → react-router-CDlgRD7c.js.map} +1 -1
  38. package/dist/web/assets/{get-auth-plugin-definition-Cmw1uujk.js → get-auth-plugin-definition-B2xRtRBt.js} +2 -2
  39. package/dist/web/assets/{get-auth-plugin-definition-Cmw1uujk.js.map → get-auth-plugin-definition-B2xRtRBt.js.map} +1 -1
  40. package/dist/web/assets/{index-DtgwNsxm.js → index-D2s6d88Y.js} +2 -2
  41. package/dist/web/assets/{index-DtgwNsxm.js.map → index-D2s6d88Y.js.map} +1 -1
  42. package/dist/web/assets/{index.esm-DEvG0Fdh.js → index.esm-CUhaqfEI.js} +2 -2
  43. package/dist/web/assets/{index.esm-DEvG0Fdh.js.map → index.esm-CUhaqfEI.js.map} +1 -1
  44. package/dist/web/assets/{model-utils-CEcdbDEB.js → model-utils-Ccvph4Ii.js} +2 -2
  45. package/dist/web/assets/{model-utils-CEcdbDEB.js.map → model-utils-Ccvph4Ii.js.map} +1 -1
  46. package/dist/web/assets/{plugin-definition-DbLssGrM.js → plugin-definition-B6PqjUHm.js} +2 -2
  47. package/dist/web/assets/{plugin-definition-DbLssGrM.js.map → plugin-definition-B6PqjUHm.js.map} +1 -1
  48. package/dist/web/assets/{plugin-definition-CesRcgD_.js → plugin-definition-B6kOvigE.js} +2 -2
  49. package/dist/web/assets/{plugin-definition-CesRcgD_.js.map → plugin-definition-B6kOvigE.js.map} +1 -1
  50. package/dist/web/assets/{plugin-definition-D4cbPQK9.js → plugin-definition-DDe2WhbZ.js} +2 -2
  51. package/dist/web/assets/{plugin-definition-D4cbPQK9.js.map → plugin-definition-DDe2WhbZ.js.map} +1 -1
  52. package/dist/web/assets/{plugin-definition-B4WkBbF0.js → plugin-definition-QKz1ZAYK.js} +2 -2
  53. package/dist/web/assets/{plugin-definition-B4WkBbF0.js.map → plugin-definition-QKz1ZAYK.js.map} +1 -1
  54. package/dist/web/assets/{react-cA_AFJxD.js → react-D62wAwO5.js} +2 -2
  55. package/dist/web/assets/{react-cA_AFJxD.js.map → react-D62wAwO5.js.map} +1 -1
  56. package/dist/web/assets/remoteEntry.js +12 -12
  57. package/dist/web/assets/{styles-tNSeSNta.js → styles-BEU-uMT0.js} +3 -3
  58. package/dist/web/assets/{styles-tNSeSNta.js.map → styles-BEU-uMT0.js.map} +1 -1
  59. package/package.json +13 -13
@@ -1,9 +1,9 @@
1
- import { importShared } from '../__federation_fn_import-_bDjmFT3.js';
1
+ import { importShared } from '../__federation_fn_import-DvwH-J9J.js';
2
2
  import { j as jsxRuntimeExports } from '../jsx-runtime-XI9uIe3W.js';
3
- import { b as useController, u as useFormState, g as get } from '../index.esm-DEvG0Fdh.js';
4
- import { M as MdClose, a as MdCheck, b as MdUnfoldMore, c as MdMoreHoriz, d as MdChevronRight, e as MdChevronLeft, f as MdExpandMore, g as MdCalendarMonth, h as MdSchedule, i as MdCircle, j as MdOutlineErrorOutline, k as MdOutlineSave, l as MdExpandLess, m as MdMenu } from '../index-DtgwNsxm.js';
3
+ import { b as useController, u as useFormState, g as get } from '../index.esm-CUhaqfEI.js';
4
+ import { M as MdClose, a as MdCheck, b as MdUnfoldMore, c as MdMoreHoriz, d as MdChevronRight, e as MdChevronLeft, f as MdExpandMore, g as MdCalendarMonth, h as MdSchedule, i as MdCircle, j as MdOutlineErrorOutline, k as MdOutlineSave, l as MdExpandLess, m as MdMenu } from '../index-D2s6d88Y.js';
5
5
  import { r as requireShim, w as withSelectorExports } from '../with-selector-DTXBONcE.js';
6
- import { c as create } from '../react-cA_AFJxD.js';
6
+ import { c as create } from '../react-D62wAwO5.js';
7
7
  import { g as getDefaultExportFromCjs } from '../_commonjsHelpers-B85MJLTf.js';
8
8
 
9
9
  function r$1(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r$1(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r$1(e))&&(n&&(n+=" "),n+=t);return n}
@@ -7045,7 +7045,7 @@ function useRenderElementProps(componentProps, params = {}) {
7045
7045
  }
7046
7046
  return outProps;
7047
7047
  }
7048
- const REACT_LAZY_TYPE = Symbol.for("react.lazy");
7048
+ const REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
7049
7049
  function evaluateRenderProp(element, render, props, state) {
7050
7050
  if (render) {
7051
7051
  if (typeof render === "function") {
@@ -18031,7 +18031,7 @@ function AsyncComboboxField({ label, description, error, value, placeholder, ren
18031
18031
  });
18032
18032
  }, debounceMs);
18033
18033
  });
18034
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: className, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsxs(Combobox, { value: selectedOption, onValueChange: (option) => {
18034
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: className, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsxs(Combobox, { value: selectedOption, onValueChange: (option) => {
18035
18035
  if (option) {
18036
18036
  setSelectedOptionCache(option);
18037
18037
  }
@@ -26304,7 +26304,7 @@ const CheckboxRoot = /* @__PURE__ */ React$2j.forwardRef(function CheckboxRoot2(
26304
26304
  const setGroupValue = groupContext?.setValue;
26305
26305
  const defaultGroupValue = groupContext?.defaultValue;
26306
26306
  const controlRef = React$2j.useRef(null);
26307
- const controlSourceRef = useRefWithInit(() => Symbol("checkbox-control"));
26307
+ const controlSourceRef = useRefWithInit(() => /* @__PURE__ */ Symbol("checkbox-control"));
26308
26308
  const hasRegisteredRef = React$2j.useRef(false);
26309
26309
  const {
26310
26310
  getButtonProps,
@@ -26549,9 +26549,9 @@ const React$2h = await importShared('react');
26549
26549
  /**
26550
26550
  * Field with label and error states that wraps a Checkbox component.
26551
26551
  */
26552
- function CheckboxField({ label, description, error, onChange, value, className, ...props }) {
26552
+ function CheckboxField({ label, description, error, disabled, onChange, value, className, ...props }) {
26553
26553
  const id = React$2h.useId();
26554
- return (jsxRuntimeExports.jsxs(Field, { orientation: "horizontal", "data-invalid": !!error || undefined, className: className, children: [jsxRuntimeExports.jsx(Checkbox, { ...props, id: id, "aria-invalid": !!error, onCheckedChange: (checked) => {
26554
+ return (jsxRuntimeExports.jsxs(Field, { orientation: "horizontal", "data-invalid": !!error || undefined, "data-disabled": disabled ?? undefined, className: className, children: [jsxRuntimeExports.jsx(Checkbox, { ...props, id: id, disabled: disabled, "aria-invalid": !!error, onCheckedChange: (checked) => {
26555
26555
  onChange?.(checked);
26556
26556
  }, checked: value,
26557
26557
  // Support accessible button for screen readers - https://github.com/shadcn-ui/ui/issues/9249
@@ -35544,6 +35544,7 @@ var browser = {
35544
35544
  chrome_version: chrome ? +chrome[1] : 0,
35545
35545
  ios,
35546
35546
  android: /*@__PURE__*//Android\b/.test(nav.userAgent),
35547
+ webkit,
35547
35548
  webkit_version: webkit ? +(/*@__PURE__*//\bAppleWebKit\/(\d+)/.exec(nav.userAgent) || [0, 0])[1] : 0,
35548
35549
  safari,
35549
35550
  safari_version: safari ? +(/*@__PURE__*//\bVersion\/(\d+(\.\d+)?)/.exec(nav.userAgent) || [0, 0])[1] : 0,
@@ -36062,12 +36063,12 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
36062
36063
  }
36063
36064
  let moveX = 0, moveY = 0;
36064
36065
  if (y == "nearest") {
36065
- if (rect.top < bounding.top) {
36066
+ if (rect.top < bounding.top + yMargin) {
36066
36067
  moveY = rect.top - (bounding.top + yMargin);
36067
36068
  if (side > 0 && rect.bottom > bounding.bottom + moveY)
36068
36069
  moveY = rect.bottom - bounding.bottom + yMargin;
36069
36070
  }
36070
- else if (rect.bottom > bounding.bottom) {
36071
+ else if (rect.bottom > bounding.bottom - yMargin) {
36071
36072
  moveY = rect.bottom - bounding.bottom + yMargin;
36072
36073
  if (side < 0 && (rect.top - moveY) < bounding.top)
36073
36074
  moveY = rect.top - (bounding.top + yMargin);
@@ -36081,12 +36082,12 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
36081
36082
  moveY = targetTop - bounding.top;
36082
36083
  }
36083
36084
  if (x == "nearest") {
36084
- if (rect.left < bounding.left) {
36085
+ if (rect.left < bounding.left + xMargin) {
36085
36086
  moveX = rect.left - (bounding.left + xMargin);
36086
36087
  if (side > 0 && rect.right > bounding.right + moveX)
36087
36088
  moveX = rect.right - bounding.right + xMargin;
36088
36089
  }
36089
- else if (rect.right > bounding.right) {
36090
+ else if (rect.right > bounding.right - xMargin) {
36090
36091
  moveX = rect.right - bounding.right + xMargin;
36091
36092
  if (side < 0 && rect.left < bounding.left + moveX)
36092
36093
  moveX = rect.left - (bounding.left + xMargin);
@@ -36826,7 +36827,7 @@ const nativeSelectionHidden = /*@__PURE__*/Facet.define({
36826
36827
  });
36827
36828
  const scrollHandler = /*@__PURE__*/Facet.define();
36828
36829
  class ScrollTarget {
36829
- constructor(range, y = "nearest", x = "nearest", yMargin = 5, xMargin = 5,
36830
+ constructor(range, y, x, yMargin, xMargin,
36830
36831
  // This data structure is abused to also store precise scroll
36831
36832
  // snapshots, instead of a `scrollIntoView` request. When this
36832
36833
  // flag is `true`, `range` points at a position in the reference
@@ -39423,6 +39424,19 @@ class InlineCoordsScan {
39423
39424
  this.y = (side.top + side.bottom) / 2;
39424
39425
  return this.scan(positions, getRects);
39425
39426
  }
39427
+ // Handle the case where closest matched a higher element on the
39428
+ // same line as an element below/above the coords
39429
+ if (closestDx) {
39430
+ let { top, bottom } = closestRect;
39431
+ if (above && above.bottom > (top + top + bottom) / 3) {
39432
+ this.y = above.bottom - 1;
39433
+ return this.scan(positions, getRects);
39434
+ }
39435
+ if (below && below.top < (top + bottom + bottom) / 3) {
39436
+ this.y = below.top + 1;
39437
+ return this.scan(positions, getRects);
39438
+ }
39439
+ }
39426
39440
  let ltr = (bidi ? this.dirAt(positions[closestI], 1) : this.baseDir) == Direction.LTR;
39427
39441
  return {
39428
39442
  i: closestI,
@@ -40789,8 +40803,8 @@ handlers.beforeinput = (view, event) => {
40789
40803
  const appliedFirefoxHack = /*@__PURE__*/new Set;
40790
40804
  // In Firefox, when cut/copy handlers are added to the document, that
40791
40805
  // somehow avoids a bug where those events aren't fired when the
40792
- // selection is empty. See https://github.com/codemirror/dev/issues/1082
40793
- // and https://bugzilla.mozilla.org/show_bug.cgi?id=995961
40806
+ // selection is empty. See issue #1082 and
40807
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=995961
40794
40808
  function firefoxCopyCutHack(doc) {
40795
40809
  if (!appliedFirefoxHack.has(doc)) {
40796
40810
  appliedFirefoxHack.add(doc);
@@ -42276,7 +42290,7 @@ const baseTheme$1$2 = /*@__PURE__*/buildTheme("." + baseThemeID, {
42276
42290
  flexShrink: 0,
42277
42291
  display: "block",
42278
42292
  whiteSpace: "pre",
42279
- wordWrap: "normal", // https://github.com/codemirror/dev/issues/456
42293
+ wordWrap: "normal", // Issue #456
42280
42294
  boxSizing: "border-box",
42281
42295
  minHeight: "100%",
42282
42296
  padding: "4px 0",
@@ -42695,7 +42709,7 @@ class DOMObserver {
42695
42709
  readSelectionRange() {
42696
42710
  let { view } = this;
42697
42711
  // The Selection object is broken in shadow roots in Safari. See
42698
- // https://github.com/codemirror/dev/issues/414
42712
+ // issue #414
42699
42713
  let selection = getSelection(view.root);
42700
42714
  if (!selection)
42701
42715
  return false;
@@ -43439,7 +43453,8 @@ class EditorView {
43439
43453
  scrollTarget = scrollTarget.map(tr.changes);
43440
43454
  if (tr.scrollIntoView) {
43441
43455
  let { main } = tr.state.selection;
43442
- scrollTarget = new ScrollTarget(main.empty ? main : EditorSelection.cursor(main.head, main.head > main.anchor ? -1 : 1));
43456
+ let { x, y } = this.state.facet(EditorView.cursorScrollMargin);
43457
+ scrollTarget = new ScrollTarget(main.empty ? main : EditorSelection.cursor(main.head, main.head > main.anchor ? -1 : 1), "nearest", "nearest", y, x);
43443
43458
  }
43444
43459
  for (let e of tr.effects)
43445
43460
  if (e.is(scrollIntoView$1))
@@ -44096,7 +44111,8 @@ class EditorView {
44096
44111
  cause it to scroll the given position or range into view.
44097
44112
  */
44098
44113
  static scrollIntoView(pos, options = {}) {
44099
- return scrollIntoView$1.of(new ScrollTarget(typeof pos == "number" ? EditorSelection.cursor(pos) : pos, options.y, options.x, options.yMargin, options.xMargin));
44114
+ var _a, _b, _c, _d;
44115
+ return scrollIntoView$1.of(new ScrollTarget(typeof pos == "number" ? EditorSelection.cursor(pos) : pos, (_a = options.y) !== null && _a !== void 0 ? _a : "nearest", (_b = options.x) !== null && _b !== void 0 ? _b : "nearest", (_c = options.yMargin) !== null && _c !== void 0 ? _c : 5, (_d = options.xMargin) !== null && _d !== void 0 ? _d : 5));
44100
44116
  }
44101
44117
  /**
44102
44118
  Return an effect that resets the editor to its current (at the
@@ -44162,7 +44178,7 @@ class EditorView {
44162
44178
  }
44163
44179
  /**
44164
44180
  Create a theme extension. The first argument can be a
44165
- [`style-mod`](https://github.com/marijnh/style-mod#documentation)
44181
+ [`style-mod`](https://code.haverbeke.berlin/marijn/style-mod#documentation)
44166
44182
  style spec providing the styles for the theme. These will be
44167
44183
  prefixed with a generated class for the style.
44168
44184
 
@@ -44208,7 +44224,7 @@ class EditorView {
44208
44224
  }
44209
44225
  /**
44210
44226
  Facet to add a [style
44211
- module](https://github.com/marijnh/style-mod#documentation) to
44227
+ module](https://code.haverbeke.berlin/marijn/style-mod#documentation) to
44212
44228
  an editor view. The view will ensure that the module is
44213
44229
  mounted in its [document
44214
44230
  root](https://codemirror.net/6/docs/ref/#view.EditorView.constructor^config.root).
@@ -44355,11 +44371,30 @@ supported.)
44355
44371
  */
44356
44372
  EditorView.bidiIsolatedRanges = bidiIsolatedRanges;
44357
44373
  /**
44374
+ Can be used to specify the distance that scrolling cursor into
44375
+ view keeps it away from the sides of the editor, either as a
44376
+ single pixel number or two different values for the different
44377
+ axes. Defaults to 5 pixels on both axes.
44378
+ */
44379
+ EditorView.cursorScrollMargin = /*@__PURE__*/Facet.define({
44380
+ combine: inputs => {
44381
+ let x = 5, y = 5;
44382
+ for (let i of inputs) {
44383
+ if (typeof i == "number")
44384
+ x = y = i;
44385
+ else
44386
+ ({ x, y } = i);
44387
+ }
44388
+ return { x, y };
44389
+ }
44390
+ });
44391
+ /**
44358
44392
  Facet that allows extensions to provide additional scroll
44359
44393
  margins (space around the sides of the scrolling element that
44360
44394
  should be considered invisible). This can be useful when the
44361
44395
  plugin introduces elements that cover part of that element (for
44362
- example a horizontally fixed gutter).
44396
+ example a horizontally fixed gutter). Not to be confused with
44397
+ [`cursorScrollMargin`](https://codemirror.net/6/docs/ref/#view.EditorView^cursorScrollMargin).
44363
44398
  */
44364
44399
  EditorView.scrollMargins = scrollMargins;
44365
44400
  /**
@@ -44895,7 +44930,7 @@ class LayerView {
44895
44930
  old = next;
44896
44931
  }
44897
44932
  this.drawn = markers;
44898
- if (browser.safari && browser.safari_version >= 26) // Issue #1600, 1627
44933
+ if (browser.webkit) // Issue #1600, 1627, 1686
44899
44934
  this.dom.style.display = this.dom.firstChild ? "" : "none";
44900
44935
  }
44901
44936
  }
@@ -55137,7 +55172,7 @@ var ReactCodeMirror = /*#__PURE__*/forwardRef((props, ref) => {
55137
55172
  ReactCodeMirror.displayName = 'CodeMirror';
55138
55173
 
55139
55174
  const {useMemo: useMemo$1} = await importShared('react');
55140
- function CodeEditorField({ label, description, error, onChange, value = '', language = 'javascript', extensions = [], height = '120px', placeholder, readOnly = false, className, ...props }) {
55175
+ function CodeEditorField({ label, description, error, disabled, onChange, value = '', language = 'javascript', extensions = [], height = '120px', placeholder, readOnly = false, className, ...props }) {
55141
55176
  // Get the language extension
55142
55177
  const languageExtension = useMemo$1(() => {
55143
55178
  if (language === 'javascript' || language === 'typescript') {
@@ -55152,7 +55187,7 @@ function CodeEditorField({ label, description, error, onChange, value = '', lang
55152
55187
  tooltips({ parent: document.body }),
55153
55188
  ...extensions,
55154
55189
  ], [languageExtension, extensions]);
55155
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, children: [label && jsxRuntimeExports.jsx(FieldLabel, { children: label }), jsxRuntimeExports.jsx("div", { className: className, ...props, children: jsxRuntimeExports.jsx(ReactCodeMirror, { value: value, onChange: onChange, extensions: allExtensions, height: height, placeholder: placeholder, readOnly: readOnly, basicSetup: true, indentWithTab: false, style: {
55190
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, children: [label && jsxRuntimeExports.jsx(FieldLabel, { children: label }), jsxRuntimeExports.jsx("div", { className: className, ...props, children: jsxRuntimeExports.jsx(ReactCodeMirror, { value: value, onChange: onChange, extensions: allExtensions, height: height, placeholder: placeholder, readOnly: readOnly || disabled, editable: !disabled, basicSetup: true, indentWithTab: false, style: {
55156
55191
  fontSize: '14px',
55157
55192
  fontFamily: 'var(--font-mono)',
55158
55193
  border: '1px solid var(--border)',
@@ -56914,7 +56949,7 @@ function ColorPickerField({ className, wrapperClassName, disabled, placeholder,
56914
56949
  backgroundColor: hexValue,
56915
56950
  } })), hideText ? null : hexValue ? (jsxRuntimeExports.jsx("div", { children: formatColorName && value ? formatColorName(value) : hexValue })) : (jsxRuntimeExports.jsx("div", { className: "opacity-75", children: placeholder }))] }), jsxRuntimeExports.jsxs(PopoverContent, { sideOffset: 5, align: "start", className: "w-auto space-y-2 rounded-md border border-border bg-white p-4", children: [jsxRuntimeExports.jsx(Oe, { className: cn$2(inputVariants(), 'p-2'), prefixed: true, color: hexValue ?? '', onChange: handleChange }), jsxRuntimeExports.jsx(Z, { color: hexValue ?? '', onChange: handleChange })] })] }));
56916
56951
  if (addWrapper) {
56917
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: cn$2('gap-2', wrapperClassName), children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), inputComponent, jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
56952
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: cn$2('gap-2', wrapperClassName), children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), inputComponent, jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
56918
56953
  }
56919
56954
  return inputComponent;
56920
56955
  }
@@ -56934,7 +56969,7 @@ function ComboboxField({ label, description, error, value, placeholder, options,
56934
56969
  const { comboboxNoResults } = useComponentStrings();
56935
56970
  const id = useId$6();
56936
56971
  const selectedOption = options.find((o) => getOptionValue(o) === value) ?? null;
56937
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: className, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsxs(Combobox, { value: selectedOption, onValueChange: (option) => {
56972
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: className, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsxs(Combobox, { value: selectedOption, onValueChange: (option) => {
56938
56973
  onChange?.(option ? getOptionValue(option) : null);
56939
56974
  }, inputValue: inputValue, onInputValueChange: onInputValueChange, disabled: disabled, items: options, itemToStringLabel: getOptionLabel, itemToStringValue: (option) => getOptionValue(option) ?? '', autoHighlight: true, children: [jsxRuntimeExports.jsx(ComboboxInput, { id: id, placeholder: placeholder }), jsxRuntimeExports.jsxs(ComboboxContent, { children: [jsxRuntimeExports.jsx(ComboboxEmpty, { children: noResultsText ?? comboboxNoResults }), jsxRuntimeExports.jsx(ComboboxList, { children: (option) => {
56940
56975
  const val = getOptionValue(option);
@@ -57698,7 +57733,7 @@ function DatePickerField({ className, wrapperClassName, disabled, placeholder =
57698
57733
  };
57699
57734
  const inputComponent = (jsxRuntimeExports.jsxs(Popover, { open: open, onOpenChange: setOpen, children: [jsxRuntimeExports.jsxs(PopoverTrigger, { render: jsxRuntimeExports.jsx(Button$1, { variant: "outline", "data-empty": !dateValue, disabled: disabled, id: id, ref: ref, className: cn$2('w-[280px] justify-start text-left font-normal data-[empty=true]:text-muted-foreground', className) }), children: [jsxRuntimeExports.jsx(MdCalendarMonth, {}), dateValue ? format(dateValue, dateFormat) : jsxRuntimeExports.jsx("span", { children: placeholder })] }), jsxRuntimeExports.jsx(PopoverContent, { className: "w-auto p-0", children: jsxRuntimeExports.jsx(Calendar, { mode: "single", selected: dateValue, onSelect: handleSelect, captionLayout: "dropdown", ...calendarProps }) })] }));
57700
57735
  if (addWrapper) {
57701
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: cn$2('gap-2', wrapperClassName), children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), inputComponent, jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
57736
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: cn$2('gap-2', wrapperClassName), children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), inputComponent, jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
57702
57737
  }
57703
57738
  return inputComponent;
57704
57739
  }
@@ -57786,7 +57821,7 @@ function DateTimePickerField({ className, wrapperClassName, disabled, placeholde
57786
57821
  handleTimeChange(e.target.value);
57787
57822
  }, className: "w-full" })] })] }) })] }));
57788
57823
  if (addWrapper) {
57789
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: cn$2('gap-2', wrapperClassName), children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), inputComponent, jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
57824
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: cn$2('gap-2', wrapperClassName), children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), inputComponent, jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
57790
57825
  }
57791
57826
  return inputComponent;
57792
57827
  }
@@ -59968,9 +60003,9 @@ function FormMessage({ className, ...props }) {
59968
60003
  }
59969
60004
 
59970
60005
  const {useId: useId$3} = await importShared('react');
59971
- function InputField({ label, description, error, onChange, register, className, ref, ...props }) {
60006
+ function InputField({ label, description, error, disabled, onChange, register, className, ref, ...props }) {
59972
60007
  const id = useId$3();
59973
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: cn$2('gap-1.5', className), children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsx(Input, { id: id, onChange: onChange &&
60008
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: cn$2('gap-1.5', className), children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsx(Input, { id: id, disabled: disabled, onChange: onChange &&
59974
60009
  ((e) => {
59975
60010
  onChange(e.target.value);
59976
60011
  }), "aria-invalid": !!error, ref: mergeRefs(ref, register?.ref), ...props, ...register }), jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
@@ -69417,7 +69452,7 @@ function MultiComboboxField({ label, description, error, value, placeholder, opt
69417
69452
  const id = useId$2();
69418
69453
  const chipsRef = useComboboxAnchor();
69419
69454
  const selectedOptions = useMemo(() => options.filter((o) => value?.includes(getOptionValue(o))), [value, options, getOptionValue]);
69420
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: className, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsxs(Combobox, { multiple: true, autoHighlight: true, value: selectedOptions, onValueChange: (selectedOpts) => {
69455
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: className, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsxs(Combobox, { multiple: true, autoHighlight: true, value: selectedOptions, onValueChange: (selectedOpts) => {
69421
69456
  onChange?.(selectedOpts.map((o) => getOptionValue(o)));
69422
69457
  }, disabled: disabled, items: options, itemToStringLabel: getOptionLabel, itemToStringValue: getOptionValue, children: [jsxRuntimeExports.jsx(ComboboxChips, { ref: chipsRef, children: jsxRuntimeExports.jsx(ComboboxValue, { children: (values) => (jsxRuntimeExports.jsxs(Fragment, { children: [values.map((option) => {
69423
69458
  const val = getOptionValue(option);
@@ -69731,9 +69766,9 @@ function Switch({ className, size = 'default', ...props }) {
69731
69766
  }
69732
69767
 
69733
69768
  const React$1c = await importShared('react');
69734
- function SwitchField({ label, description, error, onChange, value, className, id, ...props }) {
69769
+ function SwitchField({ label, description, error, disabled, onChange, value, className, id, ...props }) {
69735
69770
  const switchId = React$1c.useId();
69736
- return (jsxRuntimeExports.jsxs(Field, { orientation: "horizontal", "data-invalid": !!error, className: className, id: id, children: [jsxRuntimeExports.jsx(Switch, { ...props, id: switchId, onCheckedChange: (checked) => onChange?.(checked), checked: value, "aria-invalid": !!error,
69771
+ return (jsxRuntimeExports.jsxs(Field, { orientation: "horizontal", "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: className, id: id, children: [jsxRuntimeExports.jsx(Switch, { ...props, id: switchId, disabled: disabled, onCheckedChange: (checked) => onChange?.(checked), checked: value, "aria-invalid": !!error,
69737
69772
  // Support accessible button for screen readers - https://github.com/shadcn-ui/ui/issues/9249
69738
69773
  nativeButton: true, render: jsxRuntimeExports.jsx("button", {}) }), jsxRuntimeExports.jsxs(FieldContent, { children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: switchId, children: label }), jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] })] }));
69739
69774
  }
@@ -69754,7 +69789,7 @@ const MultiSwitchFieldRoot = genericForwardRef(function MultiSwitchField({ label
69754
69789
  label: getOptionLabel(option),
69755
69790
  value: getOptionValue(option),
69756
69791
  }));
69757
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: cn$2('gap-3', className), children: [jsxRuntimeExports.jsx(FieldLabel, { children: label }), jsxRuntimeExports.jsx("div", { className: "flex flex-wrap gap-4", ref: ref, children: options.map((option) => {
69792
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: cn$2('gap-3', className), children: [jsxRuntimeExports.jsx(FieldLabel, { children: label }), jsxRuntimeExports.jsx("div", { className: "flex flex-wrap gap-4", ref: ref, children: options.map((option) => {
69758
69793
  const optionValue = getOptionValue(option);
69759
69794
  const optionLabel = getOptionLabel(option);
69760
69795
  const checked = selectedValues?.some((selectedValue) => selectedValue.value === optionValue);
@@ -74417,10 +74452,10 @@ function SelectScrollDownButton({ className, ...props }) {
74417
74452
  }
74418
74453
 
74419
74454
  const {useId: useId$1} = await importShared('react');
74420
- function SelectField({ label, description, error, value, placeholder, options, renderItemLabel, getOptionLabel = (val) => val.label, getOptionValue = (val) => val.value, className, onChange, ...props }) {
74455
+ function SelectField({ label, description, error, disabled, value, placeholder, options, renderItemLabel, getOptionLabel = (val) => val.label, getOptionValue = (val) => val.value, className, onChange, ...props }) {
74421
74456
  const triggerId = useId$1();
74422
74457
  const selectedOption = options.find((o) => getOptionValue(o) === value);
74423
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, className: className, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: triggerId, children: label }), jsxRuntimeExports.jsxs(Select, { value: value, onValueChange: (val) => onChange?.(val), ...props, children: [jsxRuntimeExports.jsx(SelectTrigger, { id: triggerId, "aria-invalid": !!error, children: jsxRuntimeExports.jsx(SelectValue, { placeholder: placeholder, children: selectedOption ? getOptionLabel(selectedOption) : null }) }), jsxRuntimeExports.jsx(SelectContent, { children: jsxRuntimeExports.jsx(SelectGroup, { children: options.map((option) => {
74458
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error, "data-disabled": disabled ?? undefined, className: className, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: triggerId, children: label }), jsxRuntimeExports.jsxs(Select, { value: value, onValueChange: (val) => onChange?.(val), disabled: disabled, ...props, children: [jsxRuntimeExports.jsx(SelectTrigger, { id: triggerId, "aria-invalid": !!error, children: jsxRuntimeExports.jsx(SelectValue, { placeholder: placeholder, children: selectedOption ? getOptionLabel(selectedOption) : null }) }), jsxRuntimeExports.jsx(SelectContent, { children: jsxRuntimeExports.jsx(SelectGroup, { children: options.map((option) => {
74424
74459
  const val = getOptionValue(option);
74425
74460
  const label = getOptionLabel(option);
74426
74461
  return (jsxRuntimeExports.jsx(SelectItem, { value: val, children: renderItemLabel
@@ -75147,6 +75182,7 @@ const React$d = await importShared('react');
75147
75182
  * https://ui.shadcn.com/docs/components/sidebar
75148
75183
  *
75149
75184
  * - Added functionality to dismiss when button is clicked (https://github.com/shadcn-ui/ui/issues/5561)
75185
+ * - Added aria-[current=page] support alongside data-[active=true] for active state styling
75150
75186
  */
75151
75187
  const SIDEBAR_COOKIE_NAME = 'sidebar_state';
75152
75188
  const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
@@ -75311,7 +75347,7 @@ function SidebarMenu({ className, ...props }) {
75311
75347
  function SidebarMenuItem({ className, ...props }) {
75312
75348
  return (jsxRuntimeExports.jsx("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: cn$2('group/menu-item relative', className), ...props }));
75313
75349
  }
75314
- const sidebarMenuButtonVariants = cva('peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:hover:text-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', {
75350
+ const sidebarMenuButtonVariants = cva('peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-[current=page]:bg-accent aria-[current=page]:font-medium aria-[current=page]:text-accent-foreground data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:hover:text-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', {
75315
75351
  variants: {
75316
75352
  variant: {
75317
75353
  default: 'hover:bg-accent hover:text-accent-foreground',
@@ -75366,7 +75402,7 @@ function SidebarMenuAction({ className, render, showOnHover = false, ...props })
75366
75402
  className: cn$2('absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-card-foreground ring-ring outline-hidden transition-transform peer-hover/menu-button:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
75367
75403
  // Increases the hit area of the button on mobile.
75368
75404
  'after:absolute after:-inset-2 md:after:hidden', 'peer-data-[size=sm]/menu-button:top-1', 'peer-data-[size=default]/menu-button:top-1.5', 'peer-data-[size=lg]/menu-button:top-2.5', 'group-data-[collapsible=icon]:hidden', showOnHover &&
75369
- 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-[active=true]/menu-button:text-accent-foreground data-[state=open]:opacity-100 md:opacity-0', className),
75405
+ 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-aria-[current=page]/menu-button:text-accent-foreground peer-data-[active=true]/menu-button:text-accent-foreground data-[state=open]:opacity-100 md:opacity-0', className),
75370
75406
  }, props),
75371
75407
  render,
75372
75408
  state: {
@@ -75376,7 +75412,7 @@ function SidebarMenuAction({ className, render, showOnHover = false, ...props })
75376
75412
  });
75377
75413
  }
75378
75414
  function SidebarMenuBadge({ className, ...props }) {
75379
- return (jsxRuntimeExports.jsx("div", { "data-slot": "sidebar-menu-badge", "data-sidebar": "menu-badge", className: cn$2('pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-card-foreground tabular-nums select-none', 'peer-hover/menu-button:text-accent-foreground peer-data-[active=true]/menu-button:text-accent-foreground', 'peer-data-[size=sm]/menu-button:top-1', 'peer-data-[size=default]/menu-button:top-1.5', 'peer-data-[size=lg]/menu-button:top-2.5', 'group-data-[collapsible=icon]:hidden', className), ...props }));
75415
+ return (jsxRuntimeExports.jsx("div", { "data-slot": "sidebar-menu-badge", "data-sidebar": "menu-badge", className: cn$2('pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-card-foreground tabular-nums select-none', 'peer-hover/menu-button:text-accent-foreground peer-aria-[current=page]/menu-button:text-accent-foreground peer-data-[active=true]/menu-button:text-accent-foreground', 'peer-data-[size=sm]/menu-button:top-1', 'peer-data-[size=default]/menu-button:top-1.5', 'peer-data-[size=lg]/menu-button:top-2.5', 'group-data-[collapsible=icon]:hidden', className), ...props }));
75380
75416
  }
75381
75417
  function SidebarMenuSkeleton({ className, showIcon = false, ...props }) {
75382
75418
  // Random width between 50 to 90%.
@@ -75395,7 +75431,7 @@ function SidebarMenuSubButton({ render, size = 'md', isActive = false, className
75395
75431
  return useRender({
75396
75432
  defaultTagName: 'a',
75397
75433
  props: mergeProps$1({
75398
- className: cn$2('flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-card-foreground ring-ring outline-hidden hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-accent-foreground', 'data-[active=true]:bg-accent data-[active=true]:text-accent-foreground', size === 'sm' && 'text-xs', size === 'md' && 'text-sm', 'group-data-[collapsible=icon]:hidden', className),
75434
+ className: cn$2('flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-card-foreground ring-ring outline-hidden hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-accent-foreground', 'data-[active=true]:bg-accent data-[active=true]:text-accent-foreground', 'aria-[current=page]:bg-accent aria-[current=page]:text-accent-foreground', size === 'sm' && 'text-xs', size === 'md' && 'text-sm', 'group-data-[collapsible=icon]:hidden', className),
75399
75435
  }, props),
75400
75436
  render,
75401
75437
  state: {
@@ -77397,9 +77433,9 @@ function TabsContent({ className, ...props }) {
77397
77433
  }
77398
77434
 
77399
77435
  const {useId} = await importShared('react');
77400
- function TextareaField({ label, description, error, onChange, register, ...props }) {
77436
+ function TextareaField({ label, description, error, disabled, onChange, register, ...props }) {
77401
77437
  const id = useId();
77402
- return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error || undefined, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsx(Textarea, { id: id, onChange: onChange &&
77438
+ return (jsxRuntimeExports.jsxs(Field, { "data-invalid": !!error || undefined, "data-disabled": disabled ?? undefined, children: [jsxRuntimeExports.jsx(FieldLabel, { htmlFor: id, children: label }), jsxRuntimeExports.jsx(Textarea, { id: id, disabled: disabled, onChange: onChange &&
77403
77439
  ((e) => {
77404
77440
  onChange(e.target.value);
77405
77441
  }), "aria-invalid": !!error, ...props, ...register }), jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
@@ -78599,4 +78635,4 @@ function useDebounce(value, delay) {
78599
78635
  }
78600
78636
 
78601
78637
  export { Alert, AlertDescription, AlertTitle, AsyncComboboxField, AsyncComboboxFieldController, Autocomplete, AutocompleteClear, AutocompleteCollection, AutocompleteContent, AutocompleteEmpty, AutocompleteGroup, AutocompleteInput, AutocompleteItem, AutocompleteLabel, AutocompleteList, AutocompleteSeparator, AutocompleteStatus, AutocompleteTrigger, AutocompleteValue, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button$1 as Button, ButtonGroup, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxField, CheckboxFieldController, CircularProgress, CodeEditorField, CodeEditorFieldController, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPickerField, ColorPickerFieldController, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxField, ComboboxFieldController, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue, ConfirmDialog, DatePickerField, DatePickerFieldController, DateTimePickerField, DateTimePickerFieldController, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, ErrorDisplay, ErrorableLoader, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FormActionBar, FormControl, FormDescription, FormItem, FormLabel, FormMessage, Input, InputField, InputFieldController, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, JsonDiffViewer, Label, Loader$1 as Loader, MultiComboboxField, MultiComboboxFieldController, MultiSwitchField, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuItemWithLink, NavigationMenuLink, NavigationMenuList, NavigationMenuPositioner, NavigationMenuTrigger, NavigationTabs, NavigationTabsItem, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, RecordView, RecordViewActions, RecordViewItem, RecordViewItemList, ScrollArea, ScrollBar, SectionList, SectionListSection, SectionListSectionContent, SectionListSectionDescription, SectionListSectionHeader, SectionListSectionTitle, Select, SelectContent, SelectField, SelectFieldController, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarLayout, SidebarLayoutContent, SidebarLayoutSidebar, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Switch, SwitchField, SwitchFieldController, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaField, TextareaFieldController, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, cn$2 as cn, emptyMediaVariants, fieldVariants, genericForwardRef, inputVariants, itemMediaVariants, itemVariants, mergeRefs, navigationMenuTriggerStyle, tabsListVariants, toast, useAutocompleteFilter, useComboboxAnchor, useConfirmDialog, useControlledState, useControllerMerged, useDebounce, useEventCallback, useFormField, useSidebar };
78602
- //# sourceMappingURL=ui-components-w6NlcuHV.js.map
78638
+ //# sourceMappingURL=ui-components-Cs5voPoC.js.map