@egen-civitas/esm-styleguide 5.1.0 → 5.2.1
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 +12 -0
- package/dist/ui/badge.d.ts +4 -2
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +3 -2
- package/dist/ui/button.d.ts +9 -3
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +5 -2
- package/dist/ui/icon-button.d.ts +13 -3
- package/dist/ui/icon-button.d.ts.map +1 -1
- package/dist/ui/icon-button.js +3 -2
- package/dist/ui/index.d.ts +3 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -0
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +3 -2
- package/dist/ui/link.d.ts +7 -2
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +3 -2
- package/dist/ui/radio-group.d.ts +6 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.js +29 -0
- package/dist/ui/search-input.d.ts +16 -0
- package/dist/ui/search-input.d.ts.map +1 -0
- package/dist/ui/search-input.js +51 -0
- package/dist/ui/text-input.d.ts +14 -2
- package/dist/ui/text-input.d.ts.map +1 -1
- package/dist/ui/text-input.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @egen-civitas/esm-styleguide
|
|
2
2
|
|
|
3
|
+
## 5.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fe80ed2: `Button`, `IconButton`, `Link`, `Input`, `TextInput` et `Badge` transmettent maintenant leur `ref` (`forwardRef`). Sous React 18, les composants fonction ignorent `ref` : sans cela, les composants Radix en `asChild` (infobulle de `IconButton`, déclencheurs de menu ou de dialogue) ne pouvaient pas s'ancrer sur le bouton, et les `ref` posées sur ces composants étaient perdues.
|
|
8
|
+
|
|
9
|
+
## 5.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- c995661: Nouveaux composants de base 100 % Tailwind : `RadioGroup` / `RadioGroupItem` (copiés de shadcn/ui, MIT ; accessibilité via Radix) et `SearchInput` (champ de recherche avec loupe, bouton « effacer » et `Échap` pour vider).
|
|
14
|
+
|
|
3
15
|
## 5.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/ui/badge.d.ts
CHANGED
|
@@ -3,8 +3,10 @@ import { type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
declare
|
|
6
|
+
declare const Badge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & VariantProps<(props?: ({
|
|
7
|
+
variant?: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
7
9
|
asChild?: boolean;
|
|
8
|
-
}
|
|
10
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
9
11
|
export { Badge, badgeVariants };
|
|
10
12
|
//# sourceMappingURL=badge.d.ts.map
|
package/dist/ui/badge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/ui/badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;8EAoBlB,CAAA;AAED,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/ui/badge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,aAAa;;8EAoBlB,CAAA;AAED,QAAA,MAAM,KAAK;;;cAEoF,OAAO;yCAapG,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA"}
|
package/dist/ui/badge.js
CHANGED
|
@@ -20,9 +20,10 @@ const badgeVariants = cva("inline-flex w-fit shrink-0 items-center justify-cente
|
|
|
20
20
|
variant: "default"
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
function Badge({ className, variant = "default", asChild = false, ...props }) {
|
|
23
|
+
const Badge = /*#__PURE__*/ React.forwardRef(function Badge({ className, variant = "default", asChild = false, ...props }, ref) {
|
|
24
24
|
const Comp = asChild ? Slot.Root : "span";
|
|
25
25
|
return /*#__PURE__*/ _jsx(Comp, {
|
|
26
|
+
ref: ref,
|
|
26
27
|
"data-slot": "badge",
|
|
27
28
|
"data-variant": variant,
|
|
28
29
|
className: cn(badgeVariants({
|
|
@@ -30,5 +31,5 @@ function Badge({ className, variant = "default", asChild = false, ...props }) {
|
|
|
30
31
|
}), className),
|
|
31
32
|
...props
|
|
32
33
|
});
|
|
33
|
-
}
|
|
34
|
+
});
|
|
34
35
|
export { Badge, badgeVariants };
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -4,8 +4,14 @@ declare const buttonVariants: (props?: ({
|
|
|
4
4
|
variant?: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
size?: "icon" | "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
|
|
7
|
+
type ButtonProps = Omit<React.ComponentProps<"button">, "ref"> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}
|
|
10
|
-
|
|
9
|
+
};
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
11
|
+
variant?: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
12
|
+
size?: "icon" | "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
14
|
+
asChild?: boolean;
|
|
15
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export { Button, buttonVariants, type ButtonProps };
|
|
11
17
|
//# sourceMappingURL=button.d.ts.map
|
package/dist/ui/button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,cAAc;;;8EAgCnB,CAAA;AAED,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/ui/button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,QAAA,MAAM,cAAc;;;8EAgCnB,CAAA;AAED,KAAK,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,GAC5D,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAIH,QAAA,MAAM,MAAM;;;;cALE,OAAO;2CAqBnB,CAAA;AAEF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,CAAA"}
|
package/dist/ui/button.js
CHANGED
|
@@ -31,9 +31,12 @@ const buttonVariants = cva("inline-flex shrink-0 items-center justify-center gap
|
|
|
31
31
|
size: "default"
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
|
|
34
|
+
// `forwardRef` : React 18 ne transmet pas `ref` aux composants fonction ; Radix (`asChild` des Tooltip, Dropdown, Dialog…)
|
|
35
|
+
// en a besoin pour ancrer les fenêtres flottantes sur le bouton.
|
|
36
|
+
const Button = /*#__PURE__*/ React.forwardRef(function Button({ className, variant = "default", size = "default", asChild = false, ...props }, ref) {
|
|
35
37
|
const Comp = asChild ? Slot.Root : "button";
|
|
36
38
|
return /*#__PURE__*/ _jsx(Comp, {
|
|
39
|
+
ref: ref,
|
|
37
40
|
"data-slot": "button",
|
|
38
41
|
"data-variant": variant,
|
|
39
42
|
"data-size": size,
|
|
@@ -44,5 +47,5 @@ function Button({ className, variant = "default", size = "default", asChild = fa
|
|
|
44
47
|
})),
|
|
45
48
|
...props
|
|
46
49
|
});
|
|
47
|
-
}
|
|
50
|
+
});
|
|
48
51
|
export { Button, buttonVariants };
|
package/dist/ui/icon-button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
type IconButtonProps = Omit<
|
|
2
|
+
import { type ButtonProps } from './button.js';
|
|
3
|
+
type IconButtonProps = Omit<ButtonProps, 'size' | 'children'> & {
|
|
4
4
|
/** Icône (ex. un composant `lucide-react`). */
|
|
5
5
|
icon: React.ReactNode;
|
|
6
6
|
/** Libellé accessible ET infobulle : obligatoire, un bouton sans texte doit toujours être nommé (`aria-label` peut le surcharger côté lecteur d'écran). */
|
|
@@ -12,6 +12,16 @@ type IconButtonProps = Omit<React.ComponentProps<typeof Button>, 'size' | 'child
|
|
|
12
12
|
noTooltip?: boolean;
|
|
13
13
|
};
|
|
14
14
|
/** Bouton qui ne montre qu'une icône : variantes de `Button`, `aria-label` obligatoire, infobulle au survol/focus. */
|
|
15
|
-
declare
|
|
15
|
+
declare const IconButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "size" | "children"> & {
|
|
16
|
+
/** Icône (ex. un composant `lucide-react`). */
|
|
17
|
+
icon: React.ReactNode;
|
|
18
|
+
/** Libellé accessible ET infobulle : obligatoire, un bouton sans texte doit toujours être nommé (`aria-label` peut le surcharger côté lecteur d'écran). */
|
|
19
|
+
label: string;
|
|
20
|
+
size?: "icon" | "icon-xs" | "icon-sm" | "icon-lg";
|
|
21
|
+
/** Place de l'infobulle (par défaut : au-dessus). */
|
|
22
|
+
tooltipSide?: "top" | "right" | "bottom" | "left";
|
|
23
|
+
/** Désactive l'infobulle (le libellé reste lu par les lecteurs d'écran). */
|
|
24
|
+
noTooltip?: boolean;
|
|
25
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
16
26
|
export { IconButton, type IconButtonProps };
|
|
17
27
|
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/ui/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/ui/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAGvD,KAAK,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IAC9D,+CAA+C;IAC/C,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,2JAA2J;IAC3J,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAClD,qDAAqD;IACrD,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClD,4EAA4E;IAC5E,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,sHAAsH;AACtH,QAAA,MAAM,UAAU;IAZd,+CAA+C;UACzC,KAAK,CAAC,SAAS;IACrB,2JAA2J;WACpJ,MAAM;WACN,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS;IACjD,qDAAqD;kBACvC,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;IACjD,4EAA4E;gBAChE,OAAO;2CAsBnB,CAAC;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,CAAC"}
|
package/dist/ui/icon-button.js
CHANGED
|
@@ -2,8 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Button } from "./button.js";
|
|
4
4
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
|
|
5
|
-
/** Bouton qui ne montre qu'une icône : variantes de `Button`, `aria-label` obligatoire, infobulle au survol/focus. */ function IconButton({ icon, label, size = 'icon', variant = 'ghost', tooltipSide = 'top', noTooltip = false, ...props }) {
|
|
5
|
+
/** Bouton qui ne montre qu'une icône : variantes de `Button`, `aria-label` obligatoire, infobulle au survol/focus. */ const IconButton = /*#__PURE__*/ React.forwardRef(function IconButton({ icon, label, size = 'icon', variant = 'ghost', tooltipSide = 'top', noTooltip = false, ...props }, ref) {
|
|
6
6
|
const button = /*#__PURE__*/ _jsx(Button, {
|
|
7
|
+
ref: ref,
|
|
7
8
|
type: "button",
|
|
8
9
|
variant: variant,
|
|
9
10
|
size: size,
|
|
@@ -26,5 +27,5 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tool
|
|
|
26
27
|
]
|
|
27
28
|
})
|
|
28
29
|
});
|
|
29
|
-
}
|
|
30
|
+
});
|
|
30
31
|
export { IconButton };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Button, buttonVariants } from './button.js';
|
|
1
|
+
export { Button, buttonVariants, type ButtonProps } from './button.js';
|
|
2
2
|
export { IconButton, type IconButtonProps } from './icon-button.js';
|
|
3
3
|
export { Link, type LinkProps } from './link.js';
|
|
4
4
|
export { Badge, badgeVariants } from './badge.js';
|
|
@@ -26,4 +26,6 @@ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from './
|
|
|
26
26
|
export { PasswordInput, type PasswordInputProps } from './password-input.js';
|
|
27
27
|
export { MenuList, MenuItem, MenuDivider, type MenuItemProps } from './menu-list.js';
|
|
28
28
|
export { StructuredList, StructuredListHead, StructuredListBody, StructuredListRow, StructuredListCell, } from './structured-list.js';
|
|
29
|
+
export { RadioGroup, RadioGroupItem } from './radio-group.js';
|
|
30
|
+
export { SearchInput, type SearchInputProps } from './search-input.js';
|
|
29
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"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"}
|
package/dist/ui/index.js
CHANGED
|
@@ -29,3 +29,5 @@ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from "./
|
|
|
29
29
|
export { PasswordInput } from "./password-input.js";
|
|
30
30
|
export { MenuList, MenuItem, MenuDivider } from "./menu-list.js";
|
|
31
31
|
export { StructuredList, StructuredListHead, StructuredListBody, StructuredListRow, StructuredListCell } from "./structured-list.js";
|
|
32
|
+
export { RadioGroup, RadioGroupItem } from "./radio-group.js";
|
|
33
|
+
export { SearchInput } from "./search-input.js";
|
package/dist/ui/input.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare
|
|
2
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3
3
|
export { Input };
|
|
4
4
|
//# sourceMappingURL=input.d.ts.map
|
package/dist/ui/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,QAAA,MAAM,KAAK,8KAkBT,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
package/dist/ui/input.js
CHANGED
|
@@ -3,12 +3,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
3
3
|
// Ce fichier appartient désormais à EGEN : le modifier librement. Avis de licence : THIRD_PARTY_NOTICES.md à la racine du dépôt.
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { cn } from "./cn.js";
|
|
6
|
-
function Input({ className, type, ...props }) {
|
|
6
|
+
const Input = /*#__PURE__*/ React.forwardRef(function Input({ className, type, ...props }, ref) {
|
|
7
7
|
return /*#__PURE__*/ _jsx("input", {
|
|
8
|
+
ref: ref,
|
|
8
9
|
type: type,
|
|
9
10
|
"data-slot": "input",
|
|
10
11
|
className: cn("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30", "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50", "aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40", className),
|
|
11
12
|
...props
|
|
12
13
|
});
|
|
13
|
-
}
|
|
14
|
+
});
|
|
14
15
|
export { Input };
|
package/dist/ui/link.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
type LinkProps = React.ComponentProps<'a'> & {
|
|
2
|
+
type LinkProps = Omit<React.ComponentProps<'a'>, 'ref'> & {
|
|
3
3
|
/** Rend l'enfant à la place de `<a>` (ex. le `<Link>` de react-router) en lui passant les classes. */
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
/** Souligné en permanence (sinon : au survol). */
|
|
6
6
|
underline?: boolean;
|
|
7
7
|
};
|
|
8
8
|
/** Lien de texte : couleur `primary`, focus visible. Les liens externes (`target="_blank"`) reçoivent `rel="noopener noreferrer"`. */
|
|
9
|
-
declare
|
|
9
|
+
declare const Link: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
10
|
+
/** Rend l'enfant à la place de `<a>` (ex. le `<Link>` de react-router) en lui passant les classes. */
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
/** Souligné en permanence (sinon : au survol). */
|
|
13
|
+
underline?: boolean;
|
|
14
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
10
15
|
export { Link, type LinkProps };
|
|
11
16
|
//# sourceMappingURL=link.d.ts.map
|
package/dist/ui/link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/ui/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/ui/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG;IACxD,sGAAsG;IACtG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,sIAAsI;AACtI,QAAA,MAAM,IAAI;IAPR,sGAAsG;cAC5F,OAAO;IACjB,kDAAkD;gBACtC,OAAO;2CAuBnB,CAAC;AAEH,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,CAAC"}
|
package/dist/ui/link.js
CHANGED
|
@@ -2,14 +2,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Slot } from "radix-ui";
|
|
4
4
|
import { cn } from "./cn.js";
|
|
5
|
-
/** Lien de texte : couleur `primary`, focus visible. Les liens externes (`target="_blank"`) reçoivent `rel="noopener noreferrer"`. */ function Link({ className, asChild = false, underline = false, target, rel, ...props }) {
|
|
5
|
+
/** Lien de texte : couleur `primary`, focus visible. Les liens externes (`target="_blank"`) reçoivent `rel="noopener noreferrer"`. */ const Link = /*#__PURE__*/ React.forwardRef(function Link({ className, asChild = false, underline = false, target, rel, ...props }, ref) {
|
|
6
6
|
const Comp = asChild ? Slot.Root : 'a';
|
|
7
7
|
return /*#__PURE__*/ _jsx(Comp, {
|
|
8
|
+
ref: ref,
|
|
8
9
|
"data-slot": "link",
|
|
9
10
|
target: target,
|
|
10
11
|
rel: rel ?? (target === '_blank' ? 'noopener noreferrer' : undefined),
|
|
11
12
|
className: cn('rounded-sm text-primary underline-offset-4 outline-none hover:underline focus-visible:ring-[3px] focus-visible:ring-ring/50', underline && 'underline', className),
|
|
12
13
|
...props
|
|
13
14
|
});
|
|
14
|
-
}
|
|
15
|
+
});
|
|
15
16
|
export { Link };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
3
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): React.JSX.Element;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
6
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/ui/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAE,UAAU,IAAI,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAE5D,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAQvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,qBAkBvD;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copié puis adapté de shadcn/ui (MIT, © 2023 shadcn) — https://github.com/shadcn-ui/ui (radio-group.tsx, registre new-york-v4).
|
|
3
|
+
// Ce fichier appartient désormais à EGEN : le modifier librement. Avis de licence : THIRD_PARTY_NOTICES.md à la racine du dépôt.
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { cn } from "./cn.js";
|
|
6
|
+
import { CircleIcon } from "lucide-react";
|
|
7
|
+
import { RadioGroup as RadioGroupPrimitive } from "radix-ui";
|
|
8
|
+
function RadioGroup({ className, ...props }) {
|
|
9
|
+
return /*#__PURE__*/ _jsx(RadioGroupPrimitive.Root, {
|
|
10
|
+
"data-slot": "radio-group",
|
|
11
|
+
className: cn("grid gap-3", className),
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function RadioGroupItem({ className, ...props }) {
|
|
16
|
+
return /*#__PURE__*/ _jsx(RadioGroupPrimitive.Item, {
|
|
17
|
+
"data-slot": "radio-group-item",
|
|
18
|
+
className: cn("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40", className),
|
|
19
|
+
...props,
|
|
20
|
+
children: /*#__PURE__*/ _jsx(RadioGroupPrimitive.Indicator, {
|
|
21
|
+
"data-slot": "radio-group-indicator",
|
|
22
|
+
className: "relative flex items-center justify-center",
|
|
23
|
+
children: /*#__PURE__*/ _jsx(CircleIcon, {
|
|
24
|
+
className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary"
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type SearchInputProps = Omit<React.ComponentProps<'input'>, 'type' | 'value' | 'defaultValue' | 'onChange'> & {
|
|
3
|
+
/** Libellé accessible du champ (obligatoire : pas de libellé visible). */
|
|
4
|
+
label: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
/** Reçoit la valeur saisie (pas l'événement). */
|
|
8
|
+
onValueChange?: (value: string) => void;
|
|
9
|
+
/** Libellé du bouton qui vide le champ. */
|
|
10
|
+
clearLabel?: string;
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
};
|
|
13
|
+
/** Champ de recherche : icône loupe, bouton « effacer » dès qu'il y a une saisie, `Échap` vide le champ. */
|
|
14
|
+
declare function SearchInput({ label, value, defaultValue, onValueChange, clearLabel, className, containerClassName, onKeyDown, ...props }: SearchInputProps): React.JSX.Element;
|
|
15
|
+
export { SearchInput, type SearchInputProps };
|
|
16
|
+
//# sourceMappingURL=search-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-input.d.ts","sourceRoot":"","sources":["../../src/ui/search-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,KAAK,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,CAAC,GAAG;IAC5G,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,4GAA4G;AAC5G,iBAAS,WAAW,CAAC,EACnB,KAAK,EACL,KAAK,EACL,YAAiB,EACjB,aAAa,EACb,UAA2B,EAC3B,SAAS,EACT,kBAAkB,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,qBA2ClB;AAED,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { SearchIcon, XIcon } from "lucide-react";
|
|
4
|
+
import { cn } from "./cn.js";
|
|
5
|
+
/** Champ de recherche : icône loupe, bouton « effacer » dès qu'il y a une saisie, `Échap` vide le champ. */ function SearchInput({ label, value, defaultValue = '', onValueChange, clearLabel = 'Clear search', className, containerClassName, onKeyDown, ...props }) {
|
|
6
|
+
const [inner, setInner] = React.useState(defaultValue);
|
|
7
|
+
const controlled = value !== undefined;
|
|
8
|
+
const current = controlled ? value : inner;
|
|
9
|
+
const update = (next)=>{
|
|
10
|
+
if (!controlled) setInner(next);
|
|
11
|
+
onValueChange?.(next);
|
|
12
|
+
};
|
|
13
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
14
|
+
"data-slot": "search-input",
|
|
15
|
+
className: cn('relative flex items-center', containerClassName),
|
|
16
|
+
children: [
|
|
17
|
+
/*#__PURE__*/ _jsx(SearchIcon, {
|
|
18
|
+
className: "pointer-events-none absolute left-3 size-4 text-muted-foreground",
|
|
19
|
+
"aria-hidden": "true"
|
|
20
|
+
}),
|
|
21
|
+
/*#__PURE__*/ _jsx("input", {
|
|
22
|
+
type: "search",
|
|
23
|
+
role: "searchbox",
|
|
24
|
+
"aria-label": label,
|
|
25
|
+
value: current,
|
|
26
|
+
onChange: (event)=>update(event.target.value),
|
|
27
|
+
onKeyDown: (event)=>{
|
|
28
|
+
onKeyDown?.(event);
|
|
29
|
+
if (event.key === 'Escape' && current) {
|
|
30
|
+
event.stopPropagation();
|
|
31
|
+
update('');
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
className: cn('h-9 w-full min-w-0 rounded-md border border-input bg-transparent pr-9 pl-9 text-sm shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 [&::-webkit-search-cancel-button]:hidden', className),
|
|
35
|
+
...props
|
|
36
|
+
}),
|
|
37
|
+
current ? /*#__PURE__*/ _jsx("button", {
|
|
38
|
+
type: "button",
|
|
39
|
+
"aria-label": clearLabel,
|
|
40
|
+
title: clearLabel,
|
|
41
|
+
onClick: ()=>update(''),
|
|
42
|
+
className: "absolute right-1 inline-flex size-7 items-center justify-center rounded-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
43
|
+
children: /*#__PURE__*/ _jsx(XIcon, {
|
|
44
|
+
className: "size-4",
|
|
45
|
+
"aria-hidden": "true"
|
|
46
|
+
})
|
|
47
|
+
}) : null
|
|
48
|
+
]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
export { SearchInput };
|
package/dist/ui/text-input.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Input } from './input.js';
|
|
3
|
-
type TextInputProps = Omit<React.ComponentProps<typeof Input>, 'id'> & {
|
|
3
|
+
type TextInputProps = Omit<React.ComponentProps<typeof Input>, 'id' | 'ref'> & {
|
|
4
4
|
/** Obligatoire : un champ sans libellé n'est pas accessible. */
|
|
5
5
|
label: React.ReactNode;
|
|
6
6
|
id?: string;
|
|
@@ -14,6 +14,18 @@ type TextInputProps = Omit<React.ComponentProps<typeof Input>, 'id'> & {
|
|
|
14
14
|
containerClassName?: string;
|
|
15
15
|
};
|
|
16
16
|
/** Champ texte complet : libellé relié, aide/erreur annoncées (`aria-describedby`), états `invalid` et `disabled`. */
|
|
17
|
-
declare
|
|
17
|
+
declare const TextInput: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>, "ref" | "id"> & {
|
|
18
|
+
/** Obligatoire : un champ sans libellé n'est pas accessible. */
|
|
19
|
+
label: React.ReactNode;
|
|
20
|
+
id?: string;
|
|
21
|
+
/** Texte d'aide sous le champ. */
|
|
22
|
+
helperText?: React.ReactNode;
|
|
23
|
+
/** Message d'erreur : met le champ en `aria-invalid` et remplace le texte d'aide. */
|
|
24
|
+
errorText?: React.ReactNode;
|
|
25
|
+
/** Masque le libellé visuellement (il reste lu par les lecteurs d'écran). */
|
|
26
|
+
hideLabel?: boolean;
|
|
27
|
+
/** Classes du conteneur (le champ lui-même reçoit `className`). */
|
|
28
|
+
containerClassName?: string;
|
|
29
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
18
30
|
export { TextInput, type TextInputProps };
|
|
19
31
|
//# sourceMappingURL=text-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input.d.ts","sourceRoot":"","sources":["../../src/ui/text-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGnC,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,IAAI,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"text-input.d.ts","sourceRoot":"","sources":["../../src/ui/text-input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAGnC,KAAK,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,GAAG;IAC7E,gEAAgE;IAChE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,qFAAqF;IACrF,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,6EAA6E;IAC7E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,sHAAsH;AACtH,QAAA,MAAM,SAAS;IAdb,gEAAgE;WACzD,KAAK,CAAC,SAAS;SACjB,MAAM;IACX,kCAAkC;iBACrB,KAAK,CAAC,SAAS;IAC5B,qFAAqF;gBACzE,KAAK,CAAC,SAAS;IAC3B,6EAA6E;gBACjE,OAAO;IACnB,mEAAmE;yBAC9C,MAAM;0CAgC3B,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
|
package/dist/ui/text-input.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { cn } from "./cn.js";
|
|
4
4
|
import { Input } from "./input.js";
|
|
5
5
|
import { Label } from "./label.js";
|
|
6
|
-
/** Champ texte complet : libellé relié, aide/erreur annoncées (`aria-describedby`), états `invalid` et `disabled`. */ function TextInput({ label, id, helperText, errorText, hideLabel = false, containerClassName, className, ...props }) {
|
|
6
|
+
/** Champ texte complet : libellé relié, aide/erreur annoncées (`aria-describedby`), états `invalid` et `disabled`. */ const TextInput = /*#__PURE__*/ React.forwardRef(function TextInput({ label, id, helperText, errorText, hideLabel = false, containerClassName, className, ...props }, ref) {
|
|
7
7
|
const generatedId = React.useId();
|
|
8
8
|
const inputId = id ?? generatedId;
|
|
9
9
|
const messageId = `${inputId}-message`;
|
|
@@ -18,6 +18,7 @@ import { Label } from "./label.js";
|
|
|
18
18
|
children: label
|
|
19
19
|
}),
|
|
20
20
|
/*#__PURE__*/ _jsx(Input, {
|
|
21
|
+
ref: ref,
|
|
21
22
|
id: inputId,
|
|
22
23
|
"aria-invalid": errorText ? true : undefined,
|
|
23
24
|
"aria-describedby": message ? messageId : undefined,
|
|
@@ -31,5 +32,5 @@ import { Label } from "./label.js";
|
|
|
31
32
|
}) : null
|
|
32
33
|
]
|
|
33
34
|
});
|
|
34
|
-
}
|
|
35
|
+
});
|
|
35
36
|
export { TextInput };
|