@gravitee/graphene-core 3.34.0 → 3.35.0-feat-found-396-composed-simple-test-ids.7beaf82

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.
@@ -185,53 +185,58 @@ function g() {
185
185
  }), () => e.disconnect();
186
186
  }, []), e;
187
187
  }
188
- function _({ value: o, defaultValue: s, onChange: c, language: f = "plaintext", readOnly: p = !1, disabled: _ = !1, height: v, className: y, options: b, onMount: x }) {
189
- let [S, C] = r.useState(() => u() ? { status: "ready" } : { status: "loading" });
188
+ function _({ value: o, defaultValue: s, onChange: c, language: f = "plaintext", readOnly: p = !1, disabled: _ = !1, height: v, className: y, options: b, onMount: x, "data-testid": S }) {
189
+ let [C, w] = r.useState(() => u() ? { status: "ready" } : { status: "loading" });
190
190
  r.useEffect(() => {
191
- if (S.status !== "loading") return;
191
+ if (C.status !== "loading") return;
192
192
  let e = !1;
193
193
  return l().then(() => {
194
- e || C({ status: "ready" });
194
+ e || w({ status: "ready" });
195
195
  }, (t) => {
196
196
  if (e) return;
197
197
  let n = t instanceof Error ? t.message : "Unknown error";
198
- console.error("[CodeEditor] Failed to configure Monaco loader:", t), C({
198
+ console.error("[CodeEditor] Failed to configure Monaco loader:", t), w({
199
199
  status: "error",
200
200
  message: n
201
201
  });
202
202
  }), () => {
203
203
  e = !0;
204
204
  };
205
- }, [S.status]);
206
- let w = g(), T = r.useRef(null), E = r.useRef(null);
205
+ }, [C.status]);
206
+ let T = g(), E = r.useRef(null), D = r.useRef(null);
207
207
  r.useEffect(() => {
208
- T.current && m(T.current);
209
- }, [w]);
210
- let D = r.useCallback((e, t) => {
211
- T.current = t, E.current = e, x?.(e, t);
212
- }, [x]), O = typeof v == "number" ? `${v}px` : v ?? "300px", k = /* @__PURE__ */ i(n, { className: "size-full" });
208
+ E.current && m(E.current);
209
+ }, [T]);
210
+ let O = r.useCallback((e, t) => {
211
+ E.current = t, D.current = e, x?.(e, t);
212
+ }, [x]), k = typeof v == "number" ? `${v}px` : v ?? "300px", A = /* @__PURE__ */ i(n, {
213
+ className: "size-full",
214
+ "data-testid": S ? `${S}-loading` : void 0
215
+ });
213
216
  return /* @__PURE__ */ i("div", {
214
217
  "data-slot": "code-editor",
218
+ "data-testid": S,
215
219
  "data-disabled": _ ? "" : void 0,
216
220
  "data-readonly": p && !_ ? "" : void 0,
217
221
  className: t("overflow-hidden rounded-lg border border-input bg-background", "data-disabled:pointer-events-none data-disabled:opacity-50", "data-readonly:bg-muted/30", y),
218
- style: { height: O },
219
- children: S.status === "error" ? /* @__PURE__ */ i(e, {
222
+ style: { height: k },
223
+ children: C.status === "error" ? /* @__PURE__ */ i(e, {
220
224
  value: o ?? "",
221
225
  onChange: (e) => c?.(e.target.value),
222
226
  readOnly: p || _,
223
227
  spellCheck: !1,
228
+ "data-testid": S ? `${S}-fallback` : void 0,
224
229
  className: "size-full resize-none rounded-none border-0 p-3 font-mono text-xs focus-visible:ring-0"
225
- }) : S.status === "ready" ? /* @__PURE__ */ i(a, {
230
+ }) : C.status === "ready" ? /* @__PURE__ */ i(a, {
226
231
  height: "100%",
227
232
  language: f,
228
233
  value: o,
229
234
  defaultValue: s,
230
235
  theme: d,
231
236
  onChange: c,
232
- onMount: D,
237
+ onMount: O,
233
238
  beforeMount: h,
234
- loading: k,
239
+ loading: A,
235
240
  options: {
236
241
  readOnly: p || _,
237
242
  minimap: { enabled: !1 },
@@ -254,7 +259,7 @@ function _({ value: o, defaultValue: s, onChange: c, language: f = "plaintext",
254
259
  fixedOverflowWidgets: !0,
255
260
  ...b
256
261
  }
257
- }) : k
262
+ }) : A
258
263
  });
259
264
  }
260
265
  //#endregion
@@ -1,5 +1,5 @@
1
1
  import { a as e, g as t, h as n, l as r, p as i, r as a, s as o, t as s, v as c } from "./SchemaBanner-B0ZEWe3Y.js";
2
- import { t as l } from "./CodeEditor-W9JPCQhc.js";
2
+ import { t as l } from "./CodeEditor-C44Pe2i6.js";
3
3
  import { useEffect as u, useRef as d, useState as f } from "react";
4
4
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
5
5
  //#region src/composed/JsonSchemaForm/fields/code-editor/CodeEditorField.tsx
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../CodeEditor-W9JPCQhc.js";
1
+ import { n as e, t } from "../CodeEditor-C44Pe2i6.js";
2
2
  export { t as CodeEditor, e as setupCodeEditor };
@@ -21,9 +21,14 @@ export interface CodeEditorProps {
21
21
  className?: string;
22
22
  /** Advanced escape hatch — passes through to Monaco's construction options. */
23
23
  options?: EditorProps['options'];
24
+ /**
25
+ * Test id of the container. `${id}-loading` is on the skeleton while Monaco loads and
26
+ * `${id}-fallback` on the plain textarea shown when it fails. Monaco's own textarea is not tagged.
27
+ */
28
+ 'data-testid'?: string;
24
29
  /** Advanced escape hatch — Monaco editor + namespace once mounted. */
25
30
  onMount?: EditorProps['onMount'];
26
31
  }
27
- declare function CodeEditor({ value, defaultValue, onChange, language, readOnly, disabled, height, className, options, onMount, }: CodeEditorProps): React.JSX.Element;
32
+ declare function CodeEditor({ value, defaultValue, onChange, language, readOnly, disabled, height, className, options, onMount, 'data-testid': testId, }: CodeEditorProps): React.JSX.Element;
28
33
  export { CodeEditor };
29
34
  //# sourceMappingURL=CodeEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../src/composed/CodeEditor/CodeEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAe,WAAW,EAAU,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,kBAAkB,EAAoB,MAAM,UAAU,CAAC;AAIrE,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/C,Q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IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC;AA6BD,iBAAS,UAAU,CAAC,EAClB,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,QAAsB,EACtB,QAAgB,EAChB,QAAgB,EAChB,MAAM,EACN,SAAS,EACT,OAAO,EACP,OAAO,EACP,aAAa,EAAE,MAAM,GACtB,EAAE,eAAe,qBA8GjB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -12,8 +12,10 @@ interface CopyableTextProps {
12
12
  * Clipboard API is unavailable. Without it, failures are silent.
13
13
  */
14
14
  readonly onCopyError?: (error: unknown) => void;
15
+ /** Test id of the copy button; `${id}-value` and `${id}-tooltip` derive from it. */
16
+ readonly 'data-testid'?: string;
15
17
  }
16
- declare function CopyableText({ value, className, copyLabel, copiedLabel, resetDelayMs, onCopyError, }: CopyableTextProps): import("react").JSX.Element;
18
+ declare function CopyableText({ value, className, copyLabel, copiedLabel, resetDelayMs, onCopyError, 'data-testid': testId, }: CopyableTextProps): import("react").JSX.Element;
17
19
  declare namespace CopyableText {
18
20
  var displayName: string;
19
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CopyableText.d.ts","sourceRoot":"","sources":["../../../src/composed/CopyableText/CopyableText.tsx"],"names":[],"mappings":"AAMA,UAAU,iBAAiB;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACjD;AAED,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,SAAS,EACT,SAA2B,EAC3B,WAAuB,EACvB,YAAmB,EACnB,WAAW,GACZ,EAAE,iBAAiB,+BAkDnB;kBAzDQ,YAAY;;;AA6DrB,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"CopyableText.d.ts","sourceRoot":"","sources":["../../../src/composed/CopyableText/CopyableText.tsx"],"names":[],"mappings":"AAMA,UAAU,iBAAiB;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,mEAAmE;IACnE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,oFAAoF;IACpF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,iBAAS,YAAY,CAAC,EACpB,KAAK,EACL,SAAS,EACT,SAA2B,EAC3B,WAAuB,EACvB,YAAmB,EACnB,WAAW,EACX,aAAa,EAAE,MAAM,GACtB,EAAE,iBAAiB,+BAuDnB;kBA/DQ,YAAY;;;AAmErB,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
@@ -5,6 +5,8 @@ interface DataTableEmptyStateBaseProps {
5
5
  readonly title: string;
6
6
  readonly description: string;
7
7
  readonly className?: string;
8
+ /** Test id of the root; the parts it renders derive from it (`${id}-<part>`). */
9
+ readonly 'data-testid'?: string;
8
10
  }
9
11
  interface DataTableEmptyStateFirstUseProps extends DataTableEmptyStateBaseProps {
10
12
  readonly variant: 'first-use';
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableEmptyState.d.ts","sourceRoot":"","sources":["../../../src/composed/DataTableEmptyState/DataTableEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,UAAU,4BAA4B;IACpC,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,UAAU,gCAAiC,SAAQ,4BAA4B;IAC7E,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,8CAA8C;IAC9C,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IACnC,2DAA2D;IAC3D,QAAQ,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC;IACrC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC;CAC/B;AAED,UAAU,iCAAkC,SAAQ,4BAA4B;IAC9E,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAC;IAC/B,qDAAqD;IACrD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;IAC1B,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC;IAC/B,QAAQ,CAAC,eAAe,CAAC,EAAE,KAAK,CAAC;CAClC;AAED,KAAK,wBAAwB,GAAG,gCAAgC,GAAG,iCAAiC,CAAC;A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G,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,+BA0D3D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1,3 +1,8 @@
1
- declare function ElCheatSheetTrigger(): import("react").JSX.Element;
1
+ interface ElCheatSheetTriggerProps {
2
+ /** Test id of the trigger button; `${id}-content` and `${id}-copy-<key>` derive from it. */
3
+ readonly 'data-testid'?: string;
4
+ }
5
+ declare function ElCheatSheetTrigger({ 'data-testid': testId }?: ElCheatSheetTriggerProps): import("react").JSX.Element;
2
6
  export { ElCheatSheetTrigger };
7
+ export type { ElCheatSheetTriggerProps };
3
8
  //# sourceMappingURL=ElCheatSheetTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ElCheatSheetTrigger.d.ts","sourceRoot":"","sources":["../../../src/composed/ElCheatSheetTrigger/ElCheatSheetTrigger.tsx"],"names":[],"mappings":"AAsBA,iBAAS,mBAAmB,gCAmD3B;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"ElCheatSheetTrigger.d.ts","sourceRoot":"","sources":["../../../src/composed/ElCheatSheetTrigger/ElCheatSheetTrigger.tsx"],"names":[],"mappings":"AAwBA,UAAU,wBAAwB;IAChC,4FAA4F;IAC5F,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,iBAAS,mBAAmB,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,GAAE,wBAA6B,+BAoDpF;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export { ElCheatSheetTrigger } from './ElCheatSheetTrigger';
2
+ export type { ElCheatSheetTriggerProps } from './ElCheatSheetTrigger';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composed/ElCheatSheetTrigger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/composed/ElCheatSheetTrigger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -3,6 +3,7 @@ interface PageFocusedProps {
3
3
  /** Focused content (stepper, creation wizard, onboarding flow). */
4
4
  readonly children: ReactNode;
5
5
  readonly className?: string;
6
+ readonly 'data-testid'?: string;
6
7
  }
7
8
  /**
8
9
  * Constrains and centers page content for focused flows.
@@ -11,6 +12,8 @@ interface PageFocusedProps {
11
12
  * any task where the user is working through a focused linear flow.
12
13
  * The centering signals "you are in a sub-task" and draws the eye inward.
13
14
  *
15
+ * Test id lands on the `<div>`.
16
+ *
14
17
  * @example
15
18
  * ```tsx
16
19
  * export function CreateApiWizardPage() {
@@ -23,7 +26,7 @@ interface PageFocusedProps {
23
26
  * }
24
27
  * ```
25
28
  */
26
- declare function PageFocused({ children, className }: PageFocusedProps): import("react").JSX.Element;
29
+ declare function PageFocused({ children, className, 'data-testid': testId }: PageFocusedProps): import("react").JSX.Element;
27
30
  declare namespace PageFocused {
28
31
  var displayName: string;
29
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PageFocused.d.ts","sourceRoot":"","sources":["../../../src/composed/PageFocused/PageFocused.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,UAAU,gBAAgB;IACxB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,gBAAgB,+BAE7D;kBAFQ,WAAW;;;AAMpB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"PageFocused.d.ts","sourceRoot":"","sources":["../../../src/composed/PageFocused/PageFocused.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,UAAU,gBAAgB;IACxB,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BAMpF;kBANQ,WAAW;;;AAUpB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
@@ -13,6 +13,8 @@ interface PageHeaderProps {
13
13
  /** Full-width row under the title and description, for badges, metadata or tabs. */
14
14
  readonly children?: ReactNode;
15
15
  readonly className?: string;
16
+ /** Test id of the root; the parts it renders derive from it (`${id}-<part>`). */
17
+ readonly 'data-testid'?: string;
16
18
  }
17
19
  /**
18
20
  * The header of a routed page: its title, an optional description, the page's actions and an
@@ -49,7 +51,7 @@ interface PageHeaderProps {
49
51
  * }
50
52
  * ```
51
53
  */
52
- declare function PageHeader({ title, description, actions, children, className }: PageHeaderProps): import("react").JSX.Element;
54
+ declare function PageHeader({ title, description, actions, children, className, 'data-testid': testId }: PageHeaderProps): import("react").JSX.Element;
53
55
  declare namespace PageHeader {
54
56
  var displayName: string;
55
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/composed/P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;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,iBAAS,UAAU,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,eAAe,+BAmC/G;kBAnCQ,UAAU;;;AAuCnB,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,YAAY,EAAE,eAAe,EAAE,CAAC"}
@@ -8,8 +8,10 @@ interface PasswordInputProps extends Omit<React.ComponentProps<'input'>, 'type'>
8
8
  readonly hideLabel?: string;
9
9
  /** Renders a plain password field without the reveal toggle. */
10
10
  readonly hideToggle?: boolean;
11
+ /** Test id of the `<input>`; the visibility toggle gets `${id}-toggle`. */
12
+ readonly 'data-testid'?: string;
11
13
  }
12
- declare function PasswordInput({ groupClassName, showLabel, hideLabel, hideToggle, className, disabled, ...props }: PasswordInputProps): React.JSX.Element;
14
+ declare function PasswordInput({ groupClassName, showLabel, hideLabel, hideToggle, className, disabled, 'data-testid': testId, ...props }: PasswordInputProps): React.JSX.Element;
13
15
  declare namespace PasswordInput {
14
16
  var displayName: string;
15
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/composed/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC9E,sFAAsF;IACtF,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,iGAAiG;IACjG,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,kGAAkG;IAClG,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,iBAAS,aAAa,CAAC,EACrB,cAAc,EACd,SAA2B,EAC3B,SAA2B,EAC3B,UAAkB,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,qBA+BpB;kBAvCQ,aAAa;;;AA2CtB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"PasswordInput.d.ts","sourceRoot":"","sources":["../../../src/composed/PasswordInput/PasswordInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,kBAAmB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC9E,sFAAsF;IACtF,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,iGAAiG;IACjG,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,kGAAkG;IAClG,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,2EAA2E;IAC3E,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,iBAAS,aAAa,CAAC,EACrB,cAAc,EACd,SAA2B,EAC3B,SAA2B,EAC3B,UAAkB,EAClB,SAAS,EACT,QAAQ,EACR,aAAa,EAAE,MAAM,EACrB,GAAG,KAAK,EACT,EAAE,kBAAkB,qBAiCpB;kBA1CQ,aAAa;;;AA8CtB,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -21,6 +21,8 @@ interface SearchFieldProps extends Omit<React.ComponentProps<'input'>, 'value' |
21
21
  readonly debounceMs?: number;
22
22
  /** Merged on the root `InputGroup`. The field fills its container: set the width here (`w-64` in a table toolbar). */
23
23
  readonly className?: string;
24
+ /** Test id of the `<input>`; the clear button gets `${id}-clear`. */
25
+ readonly 'data-testid'?: string;
24
26
  }
25
27
  /**
26
28
  * The search field of a list: a 32px input with a leading search icon, a clear button while it has
@@ -46,7 +48,7 @@ interface SearchFieldProps extends Omit<React.ComponentProps<'input'>, 'value' |
46
48
  * />
47
49
  * ```
48
50
  */
49
- declare function SearchField({ ref, value, onValueChange, debounceMs, className, disabled, onKeyDown, ...props }: SearchFieldProps): React.JSX.Element;
51
+ declare function SearchField({ ref, value, onValueChange, debounceMs, className, disabled, onKeyDown, 'data-testid': testId, ...props }: SearchFieldProps): React.JSX.Element;
50
52
  declare namespace SearchField {
51
53
  var displayName: string;
52
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../src/composed/SearchField/SearchField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,CAAC;IACpH;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,gHAAgH;IAChH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,sHAAsH;IACtH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,WAAW,CAAC,EACnB,GAAG,EACH,KAAU,EACV,aAAa,EACb,UAAgB,EAChB,SAAS,EACT,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,qBAiGlB;kBA1GQ,WAAW;;;AA8GpB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"SearchField.d.ts","sourceRoot":"","sources":["../../../src/composed/SearchField/SearchField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,gBAAiB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,cAAc,CAAC;IACpH;;;OAGG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,gHAAgH;IAChH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,sHAAsH;IACtH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,iBAAS,WAAW,CAAC,EACnB,GAAG,EACH,KAAU,EACV,aAAa,EACb,UAAgB,EAChB,SAAS,EACT,QAAQ,EACR,SAAS,EACT,aAAa,EAAE,MAAM,EACrB,GAAG,KAAK,EACT,EAAE,gBAAgB,qBAmGlB;kBA7GQ,WAAW;;;AAiHpB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -25368,18 +25368,18 @@ function WW({ className: e, breadcrumbs: n = [], leading: r, appContext: i, trai
25368
25368
  WW.displayName = "ContentHeader";
25369
25369
  //#endregion
25370
25370
  //#region src/composed/CopyableText/CopyableText.tsx
25371
- function GW({ value: e, className: n, copyLabel: r = "Click to copy", copiedLabel: i = "Copied!", resetDelayMs: a = 1500, onCopyError: o }) {
25372
- let [s, c] = Je(!1), l = qe(null);
25371
+ function GW({ value: e, className: n, copyLabel: r = "Click to copy", copiedLabel: i = "Copied!", resetDelayMs: a = 1500, onCopyError: o, "data-testid": s }) {
25372
+ let [c, l] = Je(!1), u = qe(null);
25373
25373
  Ve(() => () => {
25374
- l.current !== null && clearTimeout(l.current);
25374
+ u.current !== null && clearTimeout(u.current);
25375
25375
  }, []);
25376
- let u = Re(() => {
25376
+ let d = Re(() => {
25377
25377
  if (typeof navigator > "u" || !navigator.clipboard?.writeText) {
25378
25378
  o?.(/* @__PURE__ */ Error("Clipboard API is not available in this context"));
25379
25379
  return;
25380
25380
  }
25381
25381
  navigator.clipboard.writeText(e).then(() => {
25382
- c(!0), l.current !== null && clearTimeout(l.current), l.current = setTimeout(() => c(!1), a);
25382
+ l(!0), u.current !== null && clearTimeout(u.current), u.current = setTimeout(() => l(!1), a);
25383
25383
  }).catch((e) => {
25384
25384
  o?.(e);
25385
25385
  });
@@ -25392,15 +25392,17 @@ function GW({ value: e, className: n, copyLabel: r = "Click to copy", copiedLabe
25392
25392
  asChild: !0,
25393
25393
  children: /* @__PURE__ */ G(ry, {
25394
25394
  "data-slot": "copyable-text",
25395
+ "data-testid": s,
25395
25396
  variant: "ghost",
25396
25397
  size: "sm",
25397
25398
  className: t("inline-flex h-auto items-center gap-1 px-1 text-muted-foreground", n),
25398
- "aria-label": s ? i : `Copy ${e}`,
25399
- onClick: u,
25399
+ "aria-label": c ? i : `Copy ${e}`,
25400
+ onClick: d,
25400
25401
  children: [/* @__PURE__ */ W("span", {
25401
25402
  className: "min-w-0 truncate font-mono text-xs",
25403
+ "data-testid": s ? `${s}-value` : void 0,
25402
25404
  children: e
25403
- }), s ? /* @__PURE__ */ W(B, {
25405
+ }), c ? /* @__PURE__ */ W(B, {
25404
25406
  className: "size-3.5 text-primary",
25405
25407
  "aria-hidden": "true"
25406
25408
  }) : /* @__PURE__ */ W(V, {
@@ -25408,7 +25410,10 @@ function GW({ value: e, className: n, copyLabel: r = "Click to copy", copiedLabe
25408
25410
  "aria-hidden": "true"
25409
25411
  })]
25410
25412
  })
25411
- }), /* @__PURE__ */ W(PH, { children: s ? i : r })] });
25413
+ }), /* @__PURE__ */ W(PH, {
25414
+ "data-testid": s ? `${s}-tooltip` : void 0,
25415
+ children: c ? i : r
25416
+ })] });
25412
25417
  }
25413
25418
  GW.displayName = "CopyableText";
25414
25419
  //#endregion
@@ -27536,10 +27541,11 @@ function KK({ value: e, className: n }) {
27536
27541
  //#endregion
27537
27542
  //#region src/composed/DataTableEmptyState/DataTableEmptyState.tsx
27538
27543
  function qK(e) {
27539
- let { variant: n, icon: r, title: i, description: a, className: o } = e, s = i.trim().length > 0, c = a.trim().length > 0;
27544
+ let { variant: n, icon: r, title: i, description: a, className: o, "data-testid": s } = e, c = s ? `${s}-title` : void 0, l = s ? `${s}-description` : void 0, u = i.trim().length > 0, d = a.trim().length > 0;
27540
27545
  return n === "no-results" ? /* @__PURE__ */ G(wL, {
27541
27546
  className: t("py-12 text-foreground", o),
27542
27547
  role: "status",
27548
+ "data-testid": s,
27543
27549
  children: [/* @__PURE__ */ G(TL, {
27544
27550
  className: "max-w-md",
27545
27551
  children: [
@@ -27547,12 +27553,14 @@ function qK(e) {
27547
27553
  variant: "icon",
27548
27554
  children: r
27549
27555
  }),
27550
- s && /* @__PURE__ */ W(OL, {
27556
+ u && /* @__PURE__ */ W(OL, {
27551
27557
  className: "[overflow-wrap:anywhere] text-foreground",
27558
+ "data-testid": c,
27552
27559
  children: i
27553
27560
  }),
27554
- c && /* @__PURE__ */ W(kL, {
27561
+ d && /* @__PURE__ */ W(kL, {
27555
27562
  className: "[overflow-wrap:anywhere]",
27563
+ "data-testid": l,
27556
27564
  children: a
27557
27565
  })
27558
27566
  ]
@@ -27560,6 +27568,7 @@ function qK(e) {
27560
27568
  }) : /* @__PURE__ */ G(wL, {
27561
27569
  className: t("py-16 text-foreground", o),
27562
27570
  role: "status",
27571
+ "data-testid": s,
27563
27572
  children: [
27564
27573
  /* @__PURE__ */ G(TL, {
27565
27574
  className: "max-w-md",
@@ -27568,12 +27577,14 @@ function qK(e) {
27568
27577
  variant: "icon",
27569
27578
  children: r
27570
27579
  }),
27571
- s && /* @__PURE__ */ W(OL, {
27580
+ u && /* @__PURE__ */ W(OL, {
27572
27581
  className: "text-base font-semibold [overflow-wrap:anywhere] text-foreground",
27582
+ "data-testid": c,
27573
27583
  children: i
27574
27584
  }),
27575
- c && /* @__PURE__ */ W(kL, {
27585
+ d && /* @__PURE__ */ W(kL, {
27576
27586
  className: "[overflow-wrap:anywhere]",
27587
+ "data-testid": l,
27577
27588
  children: a
27578
27589
  })
27579
27590
  ]
@@ -28991,22 +29002,25 @@ function lJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
28991
29002
  //#region src/composed/ElCheatSheetTrigger/ElCheatSheetTrigger.tsx
28992
29003
  var uJ = [
28993
29004
  {
29005
+ key: "plan-level",
28994
29006
  label: "Check Plan Level",
28995
29007
  expression: "{#request.headers['x-plan-level'] == 'gold'}"
28996
29008
  },
28997
29009
  {
29010
+ key: "path-prefix",
28998
29011
  label: "Match Path Prefix",
28999
29012
  expression: "{#request.pathInfo.startsWith('/admin')}"
29000
29013
  },
29001
29014
  {
29015
+ key: "attribute-lookup",
29002
29016
  label: "Attribute Lookup",
29003
29017
  expression: "{#context.attributes['user-role'] == 'owner'}"
29004
29018
  }
29005
29019
  ];
29006
- function dJ() {
29007
- let [e, t] = Je(null), n = qe(void 0), r = Re((e, r) => {
29008
- navigator.clipboard && navigator.clipboard.writeText(r).then(() => {
29009
- clearTimeout(n.current), t(e), n.current = setTimeout(() => t(null), 1500);
29020
+ function dJ({ "data-testid": e } = {}) {
29021
+ let [t, n] = Je(null), r = qe(void 0), i = Re((e, t) => {
29022
+ navigator.clipboard && navigator.clipboard.writeText(t).then(() => {
29023
+ clearTimeout(r.current), n(e), r.current = setTimeout(() => n(null), 1500);
29010
29024
  }, () => {});
29011
29025
  }, []);
29012
29026
  return /* @__PURE__ */ G(tB, { children: [/* @__PURE__ */ W(nB, {
@@ -29015,33 +29029,36 @@ function dJ() {
29015
29029
  variant: "ghost",
29016
29030
  size: "icon-sm",
29017
29031
  "aria-label": "Expression language help",
29032
+ "data-testid": e,
29018
29033
  children: /* @__PURE__ */ W(ae, { className: "size-3.5" })
29019
29034
  })
29020
29035
  }), /* @__PURE__ */ G(rB, {
29021
29036
  className: "w-96",
29022
29037
  align: "start",
29038
+ "data-testid": e ? `${e}-content` : void 0,
29023
29039
  children: [/* @__PURE__ */ W(aB, { children: /* @__PURE__ */ W(oB, { children: "Expression Language Quick Reference" }) }), /* @__PURE__ */ W("div", {
29024
29040
  className: "space-y-2",
29025
- children: uJ.map((t) => /* @__PURE__ */ G("div", {
29041
+ children: uJ.map((n) => /* @__PURE__ */ G("div", {
29026
29042
  className: "flex items-start gap-2 rounded-md bg-muted/60 p-2",
29027
29043
  children: [/* @__PURE__ */ G("div", {
29028
29044
  className: "min-w-0 flex-1",
29029
29045
  children: [/* @__PURE__ */ W("p", {
29030
29046
  className: "text-xs font-medium",
29031
- children: t.label
29047
+ children: n.label
29032
29048
  }), /* @__PURE__ */ W("code", {
29033
29049
  className: "mt-0.5 block font-mono text-xs break-all text-muted-foreground",
29034
- children: t.expression
29050
+ children: n.expression
29035
29051
  })]
29036
29052
  }), /* @__PURE__ */ W(ry, {
29037
29053
  variant: "ghost",
29038
29054
  size: "icon-sm",
29039
29055
  className: "shrink-0",
29040
- "aria-label": `Copy ${t.label} expression`,
29041
- onClick: () => r(t.label, t.expression),
29042
- children: e === t.label ? /* @__PURE__ */ W(B, { className: "size-3" }) : /* @__PURE__ */ W(V, { className: "size-3" })
29056
+ "aria-label": `Copy ${n.label} expression`,
29057
+ "data-testid": e ? `${e}-copy-${n.key}` : void 0,
29058
+ onClick: () => i(n.label, n.expression),
29059
+ children: t === n.label ? /* @__PURE__ */ W(B, { className: "size-3" }) : /* @__PURE__ */ W(V, { className: "size-3" })
29043
29060
  })]
29044
- }, t.label))
29061
+ }, n.label))
29045
29062
  })]
29046
29063
  })] });
29047
29064
  }
@@ -30251,25 +30268,27 @@ function MY({ node: e, name: n, depth: r, hiddenTitle: i }) {
30251
30268
  }
30252
30269
  //#endregion
30253
30270
  //#region src/composed/PasswordInput/PasswordInput.tsx
30254
- function NY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
30255
- let [s, c] = Je(!1);
30271
+ function NY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, "data-testid": o, ...s }) {
30272
+ let [c, l] = Je(!1);
30256
30273
  return /* @__PURE__ */ G(HA, {
30257
30274
  className: e,
30258
30275
  children: [/* @__PURE__ */ W(JA, {
30259
- type: !r && s ? "text" : "password",
30276
+ type: !r && c ? "text" : "password",
30260
30277
  className: i,
30261
30278
  disabled: a,
30262
- ...o
30279
+ "data-testid": o,
30280
+ ...s
30263
30281
  }), !r && /* @__PURE__ */ W(WA, {
30264
30282
  align: "inline-end",
30265
30283
  children: /* @__PURE__ */ W(KA, {
30266
30284
  "data-slot": "password-toggle",
30285
+ "data-testid": o ? `${o}-toggle` : void 0,
30267
30286
  size: "icon-xs",
30268
- "aria-label": s ? n : t,
30269
- "aria-pressed": s,
30287
+ "aria-label": c ? n : t,
30288
+ "aria-pressed": c,
30270
30289
  disabled: a,
30271
- onClick: () => c((e) => !e),
30272
- children: W(s ? ge : te, {
30290
+ onClick: () => l((e) => !e),
30291
+ children: W(c ? ge : te, {
30273
30292
  className: "size-3.5",
30274
30293
  "aria-hidden": "true"
30275
30294
  })
@@ -30387,7 +30406,7 @@ function zY(e) {
30387
30406
  }
30388
30407
  //#endregion
30389
30408
  //#region src/composed/JsonSchemaForm/SchemaField.tsx
30390
- var BY = Le(() => import("./CodeEditorField-Cp5OWo1-.js").then((e) => ({ default: e.CodeEditorField })));
30409
+ var BY = Le(() => import("./CodeEditorField-qHUBN590.js").then((e) => ({ default: e.CodeEditorField })));
30391
30410
  function VY({ node: e, name: t, depth: n = 0, hiddenTitle: r }) {
30392
30411
  let { basePath: i } = N(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = Ge(() => [s], [s]), l = Ge(() => e.displayIf ? wJ(e.displayIf, i) : void 0, [e.displayIf, i]), u = Ge(() => e.disableIf ? wJ(e.disableIf, i) : void 0, [e.disableIf, i]);
30393
30412
  if (a.deprecated === !0) return null;
@@ -35737,8 +35756,10 @@ function hQ(e, t = []) {
35737
35756
  }
35738
35757
  //#endregion
35739
35758
  //#region src/composed/PageFocused/PageFocused.tsx
35740
- function gQ({ children: e, className: n }) {
35759
+ function gQ({ children: e, className: n, "data-testid": r }) {
35741
35760
  return /* @__PURE__ */ W("div", {
35761
+ "data-slot": "page-focused",
35762
+ "data-testid": r,
35742
35763
  className: t("mx-auto w-full max-w-focused", n),
35743
35764
  children: e
35744
35765
  });
@@ -35746,9 +35767,10 @@ function gQ({ children: e, className: n }) {
35746
35767
  gQ.displayName = "PageFocused";
35747
35768
  //#endregion
35748
35769
  //#region src/composed/PageHeader/PageHeader.tsx
35749
- function _Q({ title: e, description: n, actions: r, children: i, className: a }) {
35770
+ function _Q({ title: e, description: n, actions: r, children: i, className: a, "data-testid": o }) {
35750
35771
  return /* @__PURE__ */ G("header", {
35751
35772
  "data-slot": "page-header",
35773
+ "data-testid": o,
35752
35774
  className: t("flex flex-col gap-3", a),
35753
35775
  children: [/* @__PURE__ */ G("div", {
35754
35776
  className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
@@ -35756,10 +35778,12 @@ function _Q({ title: e, description: n, actions: r, children: i, className: a })
35756
35778
  className: "min-w-0 space-y-1 wrap-anywhere",
35757
35779
  children: [/* @__PURE__ */ W("h1", {
35758
35780
  "data-slot": "page-header-title",
35781
+ "data-testid": o ? `${o}-title` : void 0,
35759
35782
  className: "text-balance",
35760
35783
  children: e
35761
35784
  }), n ? /* @__PURE__ */ W("p", {
35762
35785
  "data-slot": "page-header-description",
35786
+ "data-testid": o ? `${o}-description` : void 0,
35763
35787
  className: "max-w-prose text-sm text-muted-foreground",
35764
35788
  children: n
35765
35789
  }) : null]
@@ -35778,17 +35802,17 @@ function _Q({ title: e, description: n, actions: r, children: i, className: a })
35778
35802
  _Q.displayName = "PageHeader";
35779
35803
  //#endregion
35780
35804
  //#region src/composed/SearchField/SearchField.tsx
35781
- function vQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, className: i, disabled: a, onKeyDown: o, ...s }) {
35782
- let [c, l] = Je(t), u = qe(null), d = qe(t), f = qe(void 0), p = qe(n);
35783
- Ue(e, () => u.current, []), Ve(() => {
35784
- p.current = n;
35805
+ function vQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, className: i, disabled: a, onKeyDown: o, "data-testid": s, ...c }) {
35806
+ let [l, u] = Je(t), d = qe(null), f = qe(t), p = qe(void 0), m = qe(n);
35807
+ Ue(e, () => d.current, []), Ve(() => {
35808
+ m.current = n;
35785
35809
  }), Ve(() => {
35786
- t !== d.current && (clearTimeout(f.current), l(t), d.current = t);
35787
- }, [t]), Ve(() => () => clearTimeout(f.current), []);
35788
- let m = (e) => {
35789
- clearTimeout(f.current), e !== d.current && (d.current = e, p.current(e));
35790
- }, h = () => {
35791
- l(""), m("");
35810
+ t !== f.current && (clearTimeout(p.current), u(t), f.current = t);
35811
+ }, [t]), Ve(() => () => clearTimeout(p.current), []);
35812
+ let h = (e) => {
35813
+ clearTimeout(p.current), e !== f.current && (f.current = e, m.current(e));
35814
+ }, g = () => {
35815
+ u(""), h("");
35792
35816
  };
35793
35817
  return /* @__PURE__ */ G(HA, {
35794
35818
  "data-search-field": "",
@@ -35799,33 +35823,35 @@ function vQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, clas
35799
35823
  children: /* @__PURE__ */ W(he, { "aria-hidden": "true" })
35800
35824
  }),
35801
35825
  /* @__PURE__ */ W(JA, {
35802
- ref: u,
35826
+ ref: d,
35803
35827
  type: "search",
35804
- value: c,
35828
+ value: l,
35805
35829
  disabled: a,
35806
35830
  onChange: (e) => {
35807
35831
  let t = e.target.value;
35808
- l(t), t === "" || r <= 0 ? m(t) : (clearTimeout(f.current), f.current = setTimeout(() => m(t), r));
35832
+ u(t), t === "" || r <= 0 ? h(t) : (clearTimeout(p.current), p.current = setTimeout(() => h(t), r));
35809
35833
  },
35810
35834
  onKeyDown: (e) => {
35811
- o?.(e), !(e.defaultPrevented || e.nativeEvent.isComposing) && (e.key === "Enter" ? m(c) : e.key === "Escape" && c !== "" && h());
35835
+ o?.(e), !(e.defaultPrevented || e.nativeEvent.isComposing) && (e.key === "Enter" ? h(l) : e.key === "Escape" && l !== "" && g());
35812
35836
  },
35813
35837
  spellCheck: !1,
35814
35838
  autoCorrect: "off",
35815
35839
  autoCapitalize: "none",
35816
35840
  enterKeyHint: "search",
35841
+ "data-testid": s,
35817
35842
  className: "[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none",
35818
- ...s
35843
+ ...c
35819
35844
  }),
35820
- c !== "" && /* @__PURE__ */ W(WA, {
35845
+ l !== "" && /* @__PURE__ */ W(WA, {
35821
35846
  align: "inline-end",
35822
35847
  children: /* @__PURE__ */ W(KA, {
35823
35848
  "data-slot": "search-field-clear",
35849
+ "data-testid": s ? `${s}-clear` : void 0,
35824
35850
  size: "icon-xs",
35825
35851
  "aria-label": "Clear search",
35826
35852
  disabled: a,
35827
35853
  onClick: () => {
35828
- h(), u.current?.focus();
35854
+ g(), d.current?.focus();
35829
35855
  },
35830
35856
  children: /* @__PURE__ */ W(ne, {
35831
35857
  className: "size-3.5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravitee/graphene-core",
3
- "version": "3.34.0",
3
+ "version": "3.35.0-feat-found-396-composed-simple-test-ids.7beaf82",
4
4
  "type": "module",
5
5
  "description": "Gravitee's Graphene design system: accessible React components, design tokens, icons, and shared ESLint/TypeScript configs. Built on shadcn/ui and Tailwind.",
6
6
  "keywords": [
@@ -103,6 +103,7 @@
103
103
  },
104
104
  "peerDependencies": {
105
105
  "@fontsource/dm-sans": ">=5.0.0",
106
+ "@gravitee/graphene-core": "3.35.0-feat-found-396-composed-simple-test-ids.7beaf82",
106
107
  "@monaco-editor/react": "^4.7.0",
107
108
  "@tanstack/react-table": "^8.0.0",
108
109
  "@testing-library/dom": ">=10.0.0",