@baseplate-dev/plugin-auth 0.6.7 → 0.6.8
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/CHANGELOG.md +16 -0
- package/dist/web/assets/{__federation_expose_authCoreCommon-CP84XoaZ.js → __federation_expose_authCoreCommon-Chd1hkDj.js} +3 -3
- package/dist/web/assets/{__federation_expose_authCoreCommon-CP84XoaZ.js.map → __federation_expose_authCoreCommon-Chd1hkDj.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreWeb-DI2UmqKo.js → __federation_expose_authCoreWeb-B6MMIRwe.js} +6 -6
- package/dist/web/assets/{__federation_expose_authCoreWeb-DI2UmqKo.js.map → __federation_expose_authCoreWeb-B6MMIRwe.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_better-authAdminCommon-D0_9WcWn.js → __federation_expose_better-authAdminCommon-BTbhl15Q.js} +2 -2
- package/dist/web/assets/{__federation_expose_better-authAdminCommon-D0_9WcWn.js.map → __federation_expose_better-authAdminCommon-BTbhl15Q.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_better-authAdminWeb-D_dXlhKK.js → __federation_expose_better-authAdminWeb-CwKP2Fwx.js} +2 -2
- package/dist/web/assets/{__federation_expose_better-authAdminWeb-D_dXlhKK.js.map → __federation_expose_better-authAdminWeb-CwKP2Fwx.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_better-authCoreCommon-48JK7oT2.js → __federation_expose_better-authCoreCommon-DHvNg16x.js} +4 -4
- package/dist/web/assets/{__federation_expose_better-authCoreCommon-48JK7oT2.js.map → __federation_expose_better-authCoreCommon-DHvNg16x.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_better-authCoreWeb-BxmF6zJd.js → __federation_expose_better-authCoreWeb-DcL0DNwe.js} +5 -5
- package/dist/web/assets/{__federation_expose_better-authCoreWeb-BxmF6zJd.js.map → __federation_expose_better-authCoreWeb-DcL0DNwe.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-D0_9WcWn.js → __federation_expose_local-authAdminCommon-BTbhl15Q.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-D0_9WcWn.js.map → __federation_expose_local-authAdminCommon-BTbhl15Q.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-BTSMv1QG.js → __federation_expose_local-authAdminWeb-DeDTjgfy.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-BTSMv1QG.js.map → __federation_expose_local-authAdminWeb-DeDTjgfy.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-CHvPbnK-.js → __federation_expose_local-authCoreCommon-CaB76kZh.js} +4 -4
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-CHvPbnK-.js.map → __federation_expose_local-authCoreCommon-CaB76kZh.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-ZGfSzqOX.js → __federation_expose_local-authCoreWeb-J0GrCM1P.js} +5 -5
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-ZGfSzqOX.js.map → __federation_expose_local-authCoreWeb-J0GrCM1P.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-Cdpmumwc.js → __federation_expose_placeholder-authCoreCommon-DEOS_PRC.js} +3 -3
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-Cdpmumwc.js.map → __federation_expose_placeholder-authCoreCommon-DEOS_PRC.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-D44O5ZAh.js → __federation_expose_placeholder-authCoreWeb-xpLN9suD.js} +5 -5
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-D44O5ZAh.js.map → __federation_expose_placeholder-authCoreWeb-xpLN9suD.js.map} +1 -1
- package/dist/web/assets/{__federation_fn_import-_bDjmFT3.js → __federation_fn_import-DboThXN4.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-_bDjmFT3.js.map → __federation_fn_import-DboThXN4.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-CtILEBu2.js → web-wm-FNH7x.js} +5 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-CtILEBu2.js.map → web-wm-FNH7x.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CSgNGpA4.js → project-builder-lib-CDRCjvEd.js} +7 -7
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CSgNGpA4.js.map → project-builder-lib-CDRCjvEd.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-w6NlcuHV.js → ui-components-Bwy1GWne.js} +74 -39
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-w6NlcuHV.js.map → ui-components-Bwy1GWne.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-DIoUxQTf.js → utils-Cs-QtWzA.js} +2 -2
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-DIoUxQTf.js.map → utils-Cs-QtWzA.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-1SsG_axk.js → react-router-_N2czGX0.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-1SsG_axk.js.map → react-router-_N2czGX0.js.map} +1 -1
- package/dist/web/assets/{get-auth-plugin-definition-Cmw1uujk.js → get-auth-plugin-definition-Dy9T0JTI.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-Cmw1uujk.js.map → get-auth-plugin-definition-Dy9T0JTI.js.map} +1 -1
- package/dist/web/assets/{index-DtgwNsxm.js → index-DN2TTEo8.js} +2 -2
- package/dist/web/assets/{index-DtgwNsxm.js.map → index-DN2TTEo8.js.map} +1 -1
- package/dist/web/assets/{index.esm-DEvG0Fdh.js → index.esm-BMmVLbge.js} +2 -2
- package/dist/web/assets/{index.esm-DEvG0Fdh.js.map → index.esm-BMmVLbge.js.map} +1 -1
- package/dist/web/assets/{model-utils-CEcdbDEB.js → model-utils-DVlh_mZg.js} +2 -2
- package/dist/web/assets/{model-utils-CEcdbDEB.js.map → model-utils-DVlh_mZg.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-DbLssGrM.js → plugin-definition-BA3dR1I6.js} +2 -2
- package/dist/web/assets/{plugin-definition-DbLssGrM.js.map → plugin-definition-BA3dR1I6.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-D4cbPQK9.js → plugin-definition-DqIciiTP.js} +2 -2
- package/dist/web/assets/{plugin-definition-D4cbPQK9.js.map → plugin-definition-DqIciiTP.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-CesRcgD_.js → plugin-definition-TuWj1Cbs.js} +2 -2
- package/dist/web/assets/{plugin-definition-CesRcgD_.js.map → plugin-definition-TuWj1Cbs.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-B4WkBbF0.js → plugin-definition-YXnH0eeN.js} +2 -2
- package/dist/web/assets/{plugin-definition-B4WkBbF0.js.map → plugin-definition-YXnH0eeN.js.map} +1 -1
- package/dist/web/assets/{react-cA_AFJxD.js → react-BFk_Rnee.js} +2 -2
- package/dist/web/assets/{react-cA_AFJxD.js.map → react-BFk_Rnee.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +12 -12
- package/dist/web/assets/{styles-tNSeSNta.js → styles-CdKqeRZD.js} +3 -3
- package/dist/web/assets/{styles-tNSeSNta.js.map → styles-CdKqeRZD.js.map} +1 -1
- package/package.json +13 -13
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { importShared } from '../__federation_fn_import-
|
|
1
|
+
import { importShared } from '../__federation_fn_import-DboThXN4.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-
|
|
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-
|
|
3
|
+
import { b as useController, u as useFormState, g as get } from '../index.esm-BMmVLbge.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-DN2TTEo8.js';
|
|
5
5
|
import { r as requireShim, w as withSelectorExports } from '../with-selector-DTXBONcE.js';
|
|
6
|
-
import { c as create } from '../react-
|
|
6
|
+
import { c as create } from '../react-BFk_Rnee.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
|
|
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,18 @@ 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
|
+
if (above && above.bottom > closestRect.top) {
|
|
39431
|
+
this.y = above.bottom - 1;
|
|
39432
|
+
return this.scan(positions, getRects);
|
|
39433
|
+
}
|
|
39434
|
+
if (below && below.top < closestRect.bottom) {
|
|
39435
|
+
this.y = below.top + 1;
|
|
39436
|
+
return this.scan(positions, getRects);
|
|
39437
|
+
}
|
|
39438
|
+
}
|
|
39426
39439
|
let ltr = (bidi ? this.dirAt(positions[closestI], 1) : this.baseDir) == Direction.LTR;
|
|
39427
39440
|
return {
|
|
39428
39441
|
i: closestI,
|
|
@@ -43439,7 +43452,8 @@ class EditorView {
|
|
|
43439
43452
|
scrollTarget = scrollTarget.map(tr.changes);
|
|
43440
43453
|
if (tr.scrollIntoView) {
|
|
43441
43454
|
let { main } = tr.state.selection;
|
|
43442
|
-
|
|
43455
|
+
let { x, y } = this.state.facet(EditorView.cursorScrollMargin);
|
|
43456
|
+
scrollTarget = new ScrollTarget(main.empty ? main : EditorSelection.cursor(main.head, main.head > main.anchor ? -1 : 1), "nearest", "nearest", y, x);
|
|
43443
43457
|
}
|
|
43444
43458
|
for (let e of tr.effects)
|
|
43445
43459
|
if (e.is(scrollIntoView$1))
|
|
@@ -44096,7 +44110,8 @@ class EditorView {
|
|
|
44096
44110
|
cause it to scroll the given position or range into view.
|
|
44097
44111
|
*/
|
|
44098
44112
|
static scrollIntoView(pos, options = {}) {
|
|
44099
|
-
|
|
44113
|
+
var _a, _b, _c, _d;
|
|
44114
|
+
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
44115
|
}
|
|
44101
44116
|
/**
|
|
44102
44117
|
Return an effect that resets the editor to its current (at the
|
|
@@ -44355,11 +44370,30 @@ supported.)
|
|
|
44355
44370
|
*/
|
|
44356
44371
|
EditorView.bidiIsolatedRanges = bidiIsolatedRanges;
|
|
44357
44372
|
/**
|
|
44373
|
+
Can be used to specify the distance that scrolling cursor into
|
|
44374
|
+
view keeps it away from the sides of the editor, either as a
|
|
44375
|
+
single pixel number or two different values for the different
|
|
44376
|
+
axes. Defaults to 5 pixels on both axes.
|
|
44377
|
+
*/
|
|
44378
|
+
EditorView.cursorScrollMargin = /*@__PURE__*/Facet.define({
|
|
44379
|
+
combine: inputs => {
|
|
44380
|
+
let x = 5, y = 5;
|
|
44381
|
+
for (let i of inputs) {
|
|
44382
|
+
if (typeof i == "number")
|
|
44383
|
+
x = y = i;
|
|
44384
|
+
else
|
|
44385
|
+
({ x, y } = i);
|
|
44386
|
+
}
|
|
44387
|
+
return { x, y };
|
|
44388
|
+
}
|
|
44389
|
+
});
|
|
44390
|
+
/**
|
|
44358
44391
|
Facet that allows extensions to provide additional scroll
|
|
44359
44392
|
margins (space around the sides of the scrolling element that
|
|
44360
44393
|
should be considered invisible). This can be useful when the
|
|
44361
44394
|
plugin introduces elements that cover part of that element (for
|
|
44362
|
-
example a horizontally fixed gutter).
|
|
44395
|
+
example a horizontally fixed gutter). Not to be confused with
|
|
44396
|
+
[`cursorScrollMargin`](https://codemirror.net/6/docs/ref/#view.EditorView^cursorScrollMargin).
|
|
44363
44397
|
*/
|
|
44364
44398
|
EditorView.scrollMargins = scrollMargins;
|
|
44365
44399
|
/**
|
|
@@ -44895,7 +44929,7 @@ class LayerView {
|
|
|
44895
44929
|
old = next;
|
|
44896
44930
|
}
|
|
44897
44931
|
this.drawn = markers;
|
|
44898
|
-
if (browser.
|
|
44932
|
+
if (browser.webkit) // Issue #1600, 1627, 1686
|
|
44899
44933
|
this.dom.style.display = this.dom.firstChild ? "" : "none";
|
|
44900
44934
|
}
|
|
44901
44935
|
}
|
|
@@ -55137,7 +55171,7 @@ var ReactCodeMirror = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
55137
55171
|
ReactCodeMirror.displayName = 'CodeMirror';
|
|
55138
55172
|
|
|
55139
55173
|
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 }) {
|
|
55174
|
+
function CodeEditorField({ label, description, error, disabled, onChange, value = '', language = 'javascript', extensions = [], height = '120px', placeholder, readOnly = false, className, ...props }) {
|
|
55141
55175
|
// Get the language extension
|
|
55142
55176
|
const languageExtension = useMemo$1(() => {
|
|
55143
55177
|
if (language === 'javascript' || language === 'typescript') {
|
|
@@ -55152,7 +55186,7 @@ function CodeEditorField({ label, description, error, onChange, value = '', lang
|
|
|
55152
55186
|
tooltips({ parent: document.body }),
|
|
55153
55187
|
...extensions,
|
|
55154
55188
|
], [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: {
|
|
55189
|
+
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
55190
|
fontSize: '14px',
|
|
55157
55191
|
fontFamily: 'var(--font-mono)',
|
|
55158
55192
|
border: '1px solid var(--border)',
|
|
@@ -56914,7 +56948,7 @@ function ColorPickerField({ className, wrapperClassName, disabled, placeholder,
|
|
|
56914
56948
|
backgroundColor: hexValue,
|
|
56915
56949
|
} })), 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
56950
|
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 })] }));
|
|
56951
|
+
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
56952
|
}
|
|
56919
56953
|
return inputComponent;
|
|
56920
56954
|
}
|
|
@@ -56934,7 +56968,7 @@ function ComboboxField({ label, description, error, value, placeholder, options,
|
|
|
56934
56968
|
const { comboboxNoResults } = useComponentStrings();
|
|
56935
56969
|
const id = useId$6();
|
|
56936
56970
|
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) => {
|
|
56971
|
+
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
56972
|
onChange?.(option ? getOptionValue(option) : null);
|
|
56939
56973
|
}, 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
56974
|
const val = getOptionValue(option);
|
|
@@ -57698,7 +57732,7 @@ function DatePickerField({ className, wrapperClassName, disabled, placeholder =
|
|
|
57698
57732
|
};
|
|
57699
57733
|
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
57734
|
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 })] }));
|
|
57735
|
+
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
57736
|
}
|
|
57703
57737
|
return inputComponent;
|
|
57704
57738
|
}
|
|
@@ -57786,7 +57820,7 @@ function DateTimePickerField({ className, wrapperClassName, disabled, placeholde
|
|
|
57786
57820
|
handleTimeChange(e.target.value);
|
|
57787
57821
|
}, className: "w-full" })] })] }) })] }));
|
|
57788
57822
|
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 })] }));
|
|
57823
|
+
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
57824
|
}
|
|
57791
57825
|
return inputComponent;
|
|
57792
57826
|
}
|
|
@@ -59968,9 +60002,9 @@ function FormMessage({ className, ...props }) {
|
|
|
59968
60002
|
}
|
|
59969
60003
|
|
|
59970
60004
|
const {useId: useId$3} = await importShared('react');
|
|
59971
|
-
function InputField({ label, description, error, onChange, register, className, ref, ...props }) {
|
|
60005
|
+
function InputField({ label, description, error, disabled, onChange, register, className, ref, ...props }) {
|
|
59972
60006
|
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 &&
|
|
60007
|
+
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
60008
|
((e) => {
|
|
59975
60009
|
onChange(e.target.value);
|
|
59976
60010
|
}), "aria-invalid": !!error, ref: mergeRefs(ref, register?.ref), ...props, ...register }), jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
|
|
@@ -69417,7 +69451,7 @@ function MultiComboboxField({ label, description, error, value, placeholder, opt
|
|
|
69417
69451
|
const id = useId$2();
|
|
69418
69452
|
const chipsRef = useComboboxAnchor();
|
|
69419
69453
|
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) => {
|
|
69454
|
+
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
69455
|
onChange?.(selectedOpts.map((o) => getOptionValue(o)));
|
|
69422
69456
|
}, 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
69457
|
const val = getOptionValue(option);
|
|
@@ -69731,9 +69765,9 @@ function Switch({ className, size = 'default', ...props }) {
|
|
|
69731
69765
|
}
|
|
69732
69766
|
|
|
69733
69767
|
const React$1c = await importShared('react');
|
|
69734
|
-
function SwitchField({ label, description, error, onChange, value, className, id, ...props }) {
|
|
69768
|
+
function SwitchField({ label, description, error, disabled, onChange, value, className, id, ...props }) {
|
|
69735
69769
|
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,
|
|
69770
|
+
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
69771
|
// Support accessible button for screen readers - https://github.com/shadcn-ui/ui/issues/9249
|
|
69738
69772
|
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
69773
|
}
|
|
@@ -69754,7 +69788,7 @@ const MultiSwitchFieldRoot = genericForwardRef(function MultiSwitchField({ label
|
|
|
69754
69788
|
label: getOptionLabel(option),
|
|
69755
69789
|
value: getOptionValue(option),
|
|
69756
69790
|
}));
|
|
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) => {
|
|
69791
|
+
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
69792
|
const optionValue = getOptionValue(option);
|
|
69759
69793
|
const optionLabel = getOptionLabel(option);
|
|
69760
69794
|
const checked = selectedValues?.some((selectedValue) => selectedValue.value === optionValue);
|
|
@@ -74417,10 +74451,10 @@ function SelectScrollDownButton({ className, ...props }) {
|
|
|
74417
74451
|
}
|
|
74418
74452
|
|
|
74419
74453
|
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 }) {
|
|
74454
|
+
function SelectField({ label, description, error, disabled, value, placeholder, options, renderItemLabel, getOptionLabel = (val) => val.label, getOptionValue = (val) => val.value, className, onChange, ...props }) {
|
|
74421
74455
|
const triggerId = useId$1();
|
|
74422
74456
|
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) => {
|
|
74457
|
+
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
74458
|
const val = getOptionValue(option);
|
|
74425
74459
|
const label = getOptionLabel(option);
|
|
74426
74460
|
return (jsxRuntimeExports.jsx(SelectItem, { value: val, children: renderItemLabel
|
|
@@ -75147,6 +75181,7 @@ const React$d = await importShared('react');
|
|
|
75147
75181
|
* https://ui.shadcn.com/docs/components/sidebar
|
|
75148
75182
|
*
|
|
75149
75183
|
* - Added functionality to dismiss when button is clicked (https://github.com/shadcn-ui/ui/issues/5561)
|
|
75184
|
+
* - Added aria-[current=page] support alongside data-[active=true] for active state styling
|
|
75150
75185
|
*/
|
|
75151
75186
|
const SIDEBAR_COOKIE_NAME = 'sidebar_state';
|
|
75152
75187
|
const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -75311,7 +75346,7 @@ function SidebarMenu({ className, ...props }) {
|
|
|
75311
75346
|
function SidebarMenuItem({ className, ...props }) {
|
|
75312
75347
|
return (jsxRuntimeExports.jsx("li", { "data-slot": "sidebar-menu-item", "data-sidebar": "menu-item", className: cn$2('group/menu-item relative', className), ...props }));
|
|
75313
75348
|
}
|
|
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', {
|
|
75349
|
+
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
75350
|
variants: {
|
|
75316
75351
|
variant: {
|
|
75317
75352
|
default: 'hover:bg-accent hover:text-accent-foreground',
|
|
@@ -75366,7 +75401,7 @@ function SidebarMenuAction({ className, render, showOnHover = false, ...props })
|
|
|
75366
75401
|
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
75402
|
// Increases the hit area of the button on mobile.
|
|
75368
75403
|
'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),
|
|
75404
|
+
'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
75405
|
}, props),
|
|
75371
75406
|
render,
|
|
75372
75407
|
state: {
|
|
@@ -75376,7 +75411,7 @@ function SidebarMenuAction({ className, render, showOnHover = false, ...props })
|
|
|
75376
75411
|
});
|
|
75377
75412
|
}
|
|
75378
75413
|
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 }));
|
|
75414
|
+
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
75415
|
}
|
|
75381
75416
|
function SidebarMenuSkeleton({ className, showIcon = false, ...props }) {
|
|
75382
75417
|
// Random width between 50 to 90%.
|
|
@@ -75395,7 +75430,7 @@ function SidebarMenuSubButton({ render, size = 'md', isActive = false, className
|
|
|
75395
75430
|
return useRender({
|
|
75396
75431
|
defaultTagName: 'a',
|
|
75397
75432
|
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),
|
|
75433
|
+
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
75434
|
}, props),
|
|
75400
75435
|
render,
|
|
75401
75436
|
state: {
|
|
@@ -77397,9 +77432,9 @@ function TabsContent({ className, ...props }) {
|
|
|
77397
77432
|
}
|
|
77398
77433
|
|
|
77399
77434
|
const {useId} = await importShared('react');
|
|
77400
|
-
function TextareaField({ label, description, error, onChange, register, ...props }) {
|
|
77435
|
+
function TextareaField({ label, description, error, disabled, onChange, register, ...props }) {
|
|
77401
77436
|
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 &&
|
|
77437
|
+
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
77438
|
((e) => {
|
|
77404
77439
|
onChange(e.target.value);
|
|
77405
77440
|
}), "aria-invalid": !!error, ...props, ...register }), jsxRuntimeExports.jsx(FieldDescription, { children: description }), jsxRuntimeExports.jsx(FieldError, { children: error })] }));
|
|
@@ -78599,4 +78634,4 @@ function useDebounce(value, delay) {
|
|
|
78599
78634
|
}
|
|
78600
78635
|
|
|
78601
78636
|
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-
|
|
78637
|
+
//# sourceMappingURL=ui-components-Bwy1GWne.js.map
|