@gravitee/graphene-core 3.40.0 → 3.41.0-feat-found-392-pickers-test-ids.07fbe42
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/USAGE_GUIDE.md
CHANGED
|
@@ -1083,6 +1083,10 @@ The components that derive ids from yours. A part exists only when you pass an i
|
|
|
1083
1083
|
| `DialogContent` | `${id}-close` | Built-in close button, with `showCloseButton` (the default) |
|
|
1084
1084
|
| `DialogFooter` | `${id}-close` | Built-in close button, with `showCloseButton` |
|
|
1085
1085
|
| `SheetContent` | `${id}-close` | Built-in close button, with `showCloseButton` (the default) |
|
|
1086
|
+
| `ComboboxInput` | `${id}-trigger` | Trigger button, with `showTrigger` (the default); hidden while the clear button shows |
|
|
1087
|
+
| `ComboboxInput` | `${id}-clear` | Clear button, with `showClear`, while a value is selected |
|
|
1088
|
+
| `ComboboxChip` | `${id}-remove` | Remove button, with `showRemove` (the default) |
|
|
1089
|
+
| `CommandDialog` | `${id}-close` | Built-in close button, with `showCloseButton` |
|
|
1086
1090
|
| `PageHeader` | `${id}-title` | Title |
|
|
1087
1091
|
| `PageHeader` | `${id}-description` | Description, with `description` |
|
|
1088
1092
|
| `DataTableEmptyState` | `${id}-title` | Title, when `title` is not blank |
|
|
@@ -6,6 +6,8 @@ declare function ComboboxTrigger({ className, children, 'aria-label': ariaLabel,
|
|
|
6
6
|
declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxPrimitive.Input.Props & {
|
|
7
7
|
showTrigger?: boolean;
|
|
8
8
|
showClear?: boolean;
|
|
9
|
+
/** Lands on the `<input>`; the built-in trigger gets `${id}-trigger`, the clear button `${id}-clear`. */
|
|
10
|
+
'data-testid'?: string;
|
|
9
11
|
}): React.JSX.Element;
|
|
10
12
|
declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, 'side' | 'align' | 'sideOffset' | 'alignOffset' | 'anchor'>): React.JSX.Element;
|
|
11
13
|
declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): React.JSX.Element;
|
|
@@ -16,9 +18,10 @@ declare function ComboboxCollection(props: ComboboxPrimitive.Collection.Props):
|
|
|
16
18
|
declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): React.JSX.Element;
|
|
17
19
|
declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): React.JSX.Element;
|
|
18
20
|
declare function ComboboxChips({ className, ...props }: ComboboxPrimitive.Chips.Props): React.JSX.Element;
|
|
19
|
-
declare function ComboboxChip({ className, children, showRemove, removeAriaLabel,
|
|
21
|
+
declare function ComboboxChip({ className, children, showRemove, removeAriaLabel, ...props }: ComboboxPrimitive.Chip.Props & {
|
|
20
22
|
showRemove?: boolean;
|
|
21
23
|
removeAriaLabel?: string;
|
|
24
|
+
/** Lands on the chip; its remove button gets `${id}-remove`. */
|
|
22
25
|
'data-testid'?: string;
|
|
23
26
|
}): React.JSX.Element;
|
|
24
27
|
declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/base/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/base/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,QAAA,MAAM,QAAQ,+BAAyB,CAAC;AAExC,iBAAS,aAAa,CAAC,EAAE,WAAW,E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AAE,iBAAiB,CAAC,UAAU,CAAC,KAAK,qBAEpE;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,qBAW5E;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,SAAS,CAAC,KAAK,qBAQpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,qBAW5E;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,UAAiB,EACjB,eAA0B,EAC1B,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,IAAI,CAAC,KAAK,GAAG;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,qBA2BA;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,KAAK,qBAQjF;AAED;;;GAGG;AACH,iBAAS,iBAAiB,2CAEzB;AAED,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,iBAAiB,GAClB,CAAC"}
|
|
@@ -2,11 +2,13 @@ import { Command as CommandPrimitive } from 'cmdk';
|
|
|
2
2
|
import { Dialog } from '../Dialog';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
|
|
5
|
-
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
5
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, 'data-testid': testId, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
6
|
title?: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
|
+
/** Lands on the dialog content; the built-in close button, with `showCloseButton`, gets `${id}-close`. */
|
|
11
|
+
'data-testid'?: string;
|
|
10
12
|
}): React.JSX.Element;
|
|
11
13
|
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
|
|
12
14
|
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../src/base/Command/Command.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,MAAM,EAKP,MAAM,qCAAqC,CAAC;AAK7C,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,qBAWtF;AAED,iBAAS,aAAa,CAAC,EACrB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAuB,EACvB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Command.d.ts","sourceRoot":"","sources":["../../../src/base/Command/Command.tsx"],"names":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,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAE7E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,qBAiBzG;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,qBAW7E;AAED,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,GAChB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -15598,6 +15598,7 @@ function lj({ "aria-label": e = "Clear", ...t }) {
|
|
|
15598
15598
|
});
|
|
15599
15599
|
}
|
|
15600
15600
|
function uj({ className: e, children: n, disabled: r = !1, showTrigger: i = !0, showClear: a = !1, ...o }) {
|
|
15601
|
+
let s = o["data-testid"];
|
|
15601
15602
|
return /* @__PURE__ */ G(QA, {
|
|
15602
15603
|
className: t("w-auto", e),
|
|
15603
15604
|
children: [
|
|
@@ -15621,8 +15622,11 @@ function uj({ className: e, children: n, disabled: r = !1, showTrigger: i = !0,
|
|
|
15621
15622
|
"data-slot": "input-group-button",
|
|
15622
15623
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
15623
15624
|
disabled: r,
|
|
15624
|
-
children: /* @__PURE__ */ W(cj, {})
|
|
15625
|
-
}), a && /* @__PURE__ */ W(lj, {
|
|
15625
|
+
children: /* @__PURE__ */ W(cj, { "data-testid": bC(s, "trigger") })
|
|
15626
|
+
}), a && /* @__PURE__ */ W(lj, {
|
|
15627
|
+
disabled: r,
|
|
15628
|
+
"data-testid": bC(s, "clear")
|
|
15629
|
+
})]
|
|
15626
15630
|
}),
|
|
15627
15631
|
n
|
|
15628
15632
|
]
|
|
@@ -15709,12 +15713,12 @@ function yj({ className: e, ...n }) {
|
|
|
15709
15713
|
...n
|
|
15710
15714
|
});
|
|
15711
15715
|
}
|
|
15712
|
-
function bj({ className: e, children: n, showRemove: r = !0, removeAriaLabel: i = "Remove",
|
|
15716
|
+
function bj({ className: e, children: n, showRemove: r = !0, removeAriaLabel: i = "Remove", ...a }) {
|
|
15717
|
+
let o = a["data-testid"];
|
|
15713
15718
|
return /* @__PURE__ */ G(YA, {
|
|
15714
15719
|
"data-slot": "combobox-chip",
|
|
15715
15720
|
className: t("flex h-[1.3125rem] w-fit items-center justify-center gap-1 rounded-sm bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0", e),
|
|
15716
|
-
|
|
15717
|
-
...o,
|
|
15721
|
+
...a,
|
|
15718
15722
|
children: [n, r && /* @__PURE__ */ W(XA, {
|
|
15719
15723
|
render: /* @__PURE__ */ W(ry, {
|
|
15720
15724
|
variant: "ghost",
|
|
@@ -15722,8 +15726,8 @@ function bj({ className: e, children: n, showRemove: r = !0, removeAriaLabel: i
|
|
|
15722
15726
|
}),
|
|
15723
15727
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
15724
15728
|
"data-slot": "combobox-chip-remove",
|
|
15725
|
-
"data-testid": a ? `${a}-remove` : void 0,
|
|
15726
15729
|
"aria-label": i,
|
|
15730
|
+
"data-testid": bC(o, "remove"),
|
|
15727
15731
|
children: /* @__PURE__ */ W(Se, {
|
|
15728
15732
|
"aria-hidden": "true",
|
|
15729
15733
|
className: "pointer-events-none"
|
|
@@ -17469,15 +17473,16 @@ function PF({ className: e, ...n }) {
|
|
|
17469
17473
|
...n
|
|
17470
17474
|
});
|
|
17471
17475
|
}
|
|
17472
|
-
function FF({ title: e = "Command Palette", description: n = "Search for a command to run...", children: r, className: i, showCloseButton: a = !1,
|
|
17476
|
+
function FF({ title: e = "Command Palette", description: n = "Search for a command to run...", children: r, className: i, showCloseButton: a = !1, "data-testid": o, ...s }) {
|
|
17473
17477
|
return /* @__PURE__ */ G(wF, {
|
|
17474
|
-
...
|
|
17478
|
+
...s,
|
|
17475
17479
|
children: [/* @__PURE__ */ G(AF, {
|
|
17476
17480
|
className: "sr-only",
|
|
17477
17481
|
children: [/* @__PURE__ */ W(MF, { children: e }), /* @__PURE__ */ W(NF, { children: n })]
|
|
17478
17482
|
}), /* @__PURE__ */ W(kF, {
|
|
17479
17483
|
className: t("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0", i),
|
|
17480
17484
|
showCloseButton: a,
|
|
17485
|
+
"data-testid": o,
|
|
17481
17486
|
children: r
|
|
17482
17487
|
})]
|
|
17483
17488
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/graphene-core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.41.0-feat-found-392-pickers-test-ids.07fbe42",
|
|
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.41.0-feat-found-392-pickers-test-ids.07fbe42",
|
|
106
107
|
"@monaco-editor/react": "^4.7.0",
|
|
107
108
|
"@tanstack/react-table": "^8.0.0",
|
|
108
109
|
"@testing-library/dom": ">=10.0.0",
|