@modoock/components 1.1.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/accordion.d.ts +24 -0
  2. package/dist/accordion.d.ts.map +1 -0
  3. package/dist/accordion.js +30 -0
  4. package/dist/agenda.d.ts +93 -0
  5. package/dist/agenda.d.ts.map +1 -0
  6. package/dist/agenda.js +581 -0
  7. package/dist/badge.d.ts +10 -0
  8. package/dist/badge.d.ts.map +1 -0
  9. package/dist/badge.js +14 -0
  10. package/dist/button.d.ts +21 -0
  11. package/dist/button.d.ts.map +1 -0
  12. package/dist/button.js +27 -0
  13. package/dist/date-picker.d.ts +47 -0
  14. package/dist/date-picker.d.ts.map +1 -0
  15. package/dist/date-picker.js +327 -0
  16. package/dist/icon.d.ts +21 -0
  17. package/dist/icon.d.ts.map +1 -0
  18. package/dist/icon.js +24 -0
  19. package/{components/ui/index.ts → dist/index.d.ts} +28 -28
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +14 -0
  22. package/dist/input.d.ts +41 -0
  23. package/dist/input.d.ts.map +1 -0
  24. package/dist/input.js +105 -0
  25. package/dist/loader.d.ts +26 -0
  26. package/dist/loader.d.ts.map +1 -0
  27. package/dist/loader.js +20 -0
  28. package/dist/metric-bar.d.ts +11 -0
  29. package/dist/metric-bar.d.ts.map +1 -0
  30. package/dist/metric-bar.js +19 -0
  31. package/dist/modal.d.ts +19 -0
  32. package/dist/modal.d.ts.map +1 -0
  33. package/dist/modal.js +88 -0
  34. package/dist/select.d.ts +59 -0
  35. package/dist/select.d.ts.map +1 -0
  36. package/dist/select.js +153 -0
  37. package/dist/stepper.d.ts +13 -0
  38. package/dist/stepper.d.ts.map +1 -0
  39. package/dist/stepper.js +38 -0
  40. package/dist/tab.d.ts +34 -0
  41. package/dist/tab.d.ts.map +1 -0
  42. package/dist/tab.js +25 -0
  43. package/dist/table.d.ts +57 -0
  44. package/dist/table.d.ts.map +1 -0
  45. package/dist/table.js +180 -0
  46. package/package.json +26 -2
  47. package/components/ui/accordion.tsx +0 -97
  48. package/components/ui/badge.tsx +0 -43
  49. package/components/ui/button.tsx +0 -104
  50. package/components/ui/icon.tsx +0 -78
  51. package/components/ui/input.tsx +0 -376
  52. package/components/ui/loader.tsx +0 -78
  53. package/components/ui/metric-bar.tsx +0 -49
  54. package/components/ui/modal.tsx +0 -177
  55. package/components/ui/select.tsx +0 -458
  56. package/components/ui/stepper.tsx +0 -96
  57. package/components/ui/tab.tsx +0 -85
  58. package/components/ui/table.tsx +0 -806
package/dist/input.js ADDED
@@ -0,0 +1,105 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useId, useRef, useState, } from "react";
4
+ import Icon from "./icon";
5
+ const LABEL_CLASS = "mb-inline flex items-center gap-micro text-label text-muted-foreground";
6
+ function RequiredMark() {
7
+ return (_jsx("span", { "aria-hidden": "true", className: "text-danger", children: "*" }));
8
+ }
9
+ function FieldFeedback({ id, error }) {
10
+ if (!error)
11
+ return null;
12
+ return (_jsxs("p", { id: id, className: "flex items-start gap-micro text-small text-danger-foreground [&_svg]:size-[var(--icon-small)] [&_svg]:shrink-0", children: [_jsx(Icon, { name: "CircleAlert", variant: "danger", "aria-hidden": "true" }), _jsx("span", { children: error })] }));
13
+ }
14
+ export default function Input({ label, icon, trailingIcon, state, error, helper, required = false, clearable = false, password = false, counter = false, onClear, id, type, disabled, maxLength, value, defaultValue, onChange, className = "", ref, ...props }) {
15
+ const generatedId = useId();
16
+ const helperId = useId();
17
+ const errorId = useId();
18
+ const inputId = id ?? generatedId;
19
+ const inputRef = useRef(null);
20
+ const [currentValue, setCurrentValue] = useState(() => {
21
+ if (typeof value === "string")
22
+ return value;
23
+ if (defaultValue != null)
24
+ return String(defaultValue);
25
+ return "";
26
+ });
27
+ const [showPassword, setShowPassword] = useState(false);
28
+ const effectiveValue = typeof value === "string" ? value : currentValue;
29
+ const isPassword = password || type === "password";
30
+ const resolvedType = isPassword ? (showPassword ? "text" : "password") : type;
31
+ const hasClear = clearable && effectiveValue.length > 0 && !disabled;
32
+ /** A semantic feedback icon is shown unless a `trailingIcon` occupies the slot. */
33
+ const feedbackShown = (state !== undefined || Boolean(error)) && !trailingIcon;
34
+ const rightCount = (feedbackShown ? 1 : 0) +
35
+ (trailingIcon ? 1 : 0) +
36
+ (hasClear ? 1 : 0) +
37
+ (isPassword ? 1 : 0);
38
+ const rightPad = rightCount === 0
39
+ ? ""
40
+ : rightCount === 1
41
+ ? "pr-9"
42
+ : rightCount === 2
43
+ ? "pr-[3.75rem]"
44
+ : "pr-[5.25rem]";
45
+ const describedBy = [error ? errorId : helper ? helperId : undefined]
46
+ .filter(Boolean)
47
+ .join(" ") || undefined;
48
+ const handleChange = (event) => {
49
+ setCurrentValue(event.target.value);
50
+ onChange?.(event);
51
+ };
52
+ const handleClear = () => {
53
+ setCurrentValue("");
54
+ if (inputRef.current) {
55
+ const inputEl = inputRef.current;
56
+ const setter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set;
57
+ setter?.call(inputEl, "");
58
+ inputEl.dispatchEvent(new Event("input", { bubbles: true }));
59
+ inputEl.focus();
60
+ }
61
+ onClear?.();
62
+ };
63
+ const setRefs = (el) => {
64
+ inputRef.current = el;
65
+ if (typeof ref === "function")
66
+ ref(el);
67
+ else if (ref)
68
+ ref.current = el;
69
+ };
70
+ const toneClass = state === "valid"
71
+ ? "border-success hover:border-success focus:border-success"
72
+ : state === "invalid" || error
73
+ ? "border-danger hover:border-danger focus:border-danger"
74
+ : "";
75
+ return (_jsxs("div", { className: "w-full", children: [label && (_jsxs("label", { htmlFor: inputId, className: LABEL_CLASS, children: [_jsx("span", { className: "truncate", children: label }), required && _jsx(RequiredMark, {})] })), _jsxs("div", { className: "relative w-full", children: [icon && (_jsx("span", { className: "pointer-events-none absolute left-3 top-1/2 flex -translate-y-1/2 items-center text-muted-foreground [&_svg]:size-[var(--icon-small)] [&_svg]:shrink-0 [&_svg]:text-current", children: icon })), _jsx("input", { ref: setRefs, id: inputId, type: resolvedType, disabled: disabled, required: required, "aria-invalid": state === "invalid" || Boolean(error) || undefined, "aria-required": required || undefined, "aria-describedby": describedBy, maxLength: maxLength, value: value, defaultValue: defaultValue, onChange: handleChange, className: `ds-input ${icon ? "pl-9" : ""} ${rightPad} ${toneClass} ${className}`, ...props }), rightCount > 0 && (_jsxs("span", { className: "absolute right-3 top-1/2 flex -translate-y-1/2 items-center gap-inline", children: [state === "valid" && !trailingIcon && (_jsx(Icon, { name: "Check", variant: "success", "aria-hidden": "true" })), !trailingIcon && (state === "invalid" || error) && (_jsx(Icon, { name: "CircleAlert", variant: "danger", "aria-hidden": "true" })), trailingIcon && (_jsx("span", { className: "pointer-events-none text-muted-foreground [&_svg]:size-[var(--icon-small)] [&_svg]:shrink-0 [&_svg]:text-current", children: trailingIcon })), hasClear && (_jsx("button", { type: "button", onClick: handleClear, "aria-label": "Effacer la valeur", className: "flex items-center rounded-small text-muted-foreground transition-colors hover:text-foreground [&_svg]:size-[var(--icon-small)] [&_svg]:shrink-0 [&_svg]:text-current", children: _jsx(Icon, { name: "X", "aria-hidden": "true" }) })), isPassword && (_jsx("button", { type: "button", onClick: () => setShowPassword((prev) => !prev), "aria-label": showPassword
76
+ ? "Masquer le mot de passe"
77
+ : "Afficher le mot de passe", className: "flex items-center rounded-small text-muted-foreground transition-colors hover:text-foreground [&_svg]:size-[var(--icon-small)] [&_svg]:shrink-0 [&_svg]:text-current", children: showPassword ? (_jsx(Icon, { name: "EyeOff", "aria-hidden": "true" })) : (_jsx(Icon, { name: "Eye", "aria-hidden": "true" })) }))] }))] }), (error || helper || counter) && (_jsxs("div", { className: "mt-inline flex items-start justify-between gap-inline", children: [_jsx("div", { className: "min-w-0", children: error ? (_jsx(FieldFeedback, { id: errorId, error: error })) : helper ? (_jsx("p", { id: helperId, className: "text-small text-muted-foreground", children: helper })) : null }), counter && (_jsxs("span", { className: "shrink-0 text-small text-muted-foreground", children: [effectiveValue.length, typeof maxLength === "number" ? ` / ${maxLength}` : ""] }))] }))] }));
78
+ }
79
+ export function Textarea({ label, state, error, helper, required = false, counter = false, id, disabled, maxLength, value, defaultValue, onChange, className = "", ref, ...props }) {
80
+ const generatedId = useId();
81
+ const helperId = useId();
82
+ const errorId = useId();
83
+ const textareaId = id ?? generatedId;
84
+ const [currentValue, setCurrentValue] = useState(() => {
85
+ if (typeof value === "string")
86
+ return value;
87
+ if (defaultValue != null)
88
+ return String(defaultValue);
89
+ return "";
90
+ });
91
+ const effectiveValue = typeof value === "string" ? value : currentValue;
92
+ const describedBy = [error ? errorId : helper ? helperId : undefined]
93
+ .filter(Boolean)
94
+ .join(" ") || undefined;
95
+ const handleChange = (event) => {
96
+ setCurrentValue(event.target.value);
97
+ onChange?.(event);
98
+ };
99
+ const toneClass = state === "valid"
100
+ ? "border-success hover:border-success focus:border-success"
101
+ : state === "invalid" || error
102
+ ? "border-danger hover:border-danger focus:border-danger"
103
+ : "";
104
+ return (_jsxs("div", { className: "w-full", children: [label && (_jsxs("label", { htmlFor: textareaId, className: LABEL_CLASS, children: [_jsx("span", { className: "truncate", children: label }), required && _jsx(RequiredMark, {})] })), _jsx("textarea", { ref: ref, id: textareaId, rows: 4, disabled: disabled, required: required, "aria-invalid": state === "invalid" || Boolean(error) || undefined, "aria-required": required || undefined, "aria-describedby": describedBy, maxLength: maxLength, value: value, defaultValue: defaultValue, onChange: handleChange, className: `ds-input resize-y ${toneClass} ${className}`, ...props }), (error || helper || counter) && (_jsxs("div", { className: "mt-inline flex items-start justify-between gap-inline", children: [_jsx("div", { className: "min-w-0", children: error ? (_jsx(FieldFeedback, { id: errorId, error: error })) : helper ? (_jsx("p", { id: helperId, className: "text-small text-muted-foreground", children: helper })) : null }), counter && (_jsxs("span", { className: "shrink-0 text-small text-muted-foreground", children: [effectiveValue.length, typeof maxLength === "number" ? ` / ${maxLength}` : ""] }))] }))] }));
105
+ }
@@ -0,0 +1,26 @@
1
+ import type { IconSize } from "./icon";
2
+ export interface LoaderProps {
3
+ /** Message displayed under the spinner (also announced to screen readers). */
4
+ message?: string;
5
+ /** Spinner size token (see Iconography). */
6
+ size?: IconSize;
7
+ /**
8
+ * - "overlay" (default): absolute overlay over the nearest positioned
9
+ * (relative) parent — modal body, card, section…
10
+ * - "inline": centered block in the normal flow — no positioning required.
11
+ */
12
+ variant?: "overlay" | "inline";
13
+ /** Covers the whole viewport (fixed) — use for full-page data loading. */
14
+ fullScreen?: boolean;
15
+ className?: string;
16
+ }
17
+ /**
18
+ * Chargement réutilisable — même visuel partout (page, modale, section…).
19
+ * - `<Loader fullScreen message="…" />` : couvre tout l'écran (page dont les
20
+ * données sont en cours de chargement) ;
21
+ * - `<Loader message="…" />` : superposition dans le parent positionné
22
+ * (`relative`) — corps de modale, carte, section ;
23
+ * - `<Loader variant="inline" message="…" />` : bloc centré dans le flux.
24
+ */
25
+ export default function Loader({ message, size, variant, fullScreen, className, }: LoaderProps): import("react").JSX.Element;
26
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../components/ui/loader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,WAAW,WAAW;IAC1B,8EAA8E;IAC9E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC/B,0EAA0E;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC7B,OAAO,EACP,IAAc,EACd,OAAmB,EACnB,UAAkB,EAClB,SAAc,GACf,EAAE,WAAW,+BA4Cb"}
package/dist/loader.js ADDED
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Icon from "./icon";
3
+ /**
4
+ * Chargement réutilisable — même visuel partout (page, modale, section…).
5
+ * - `<Loader fullScreen message="…" />` : couvre tout l'écran (page dont les
6
+ * données sont en cours de chargement) ;
7
+ * - `<Loader message="…" />` : superposition dans le parent positionné
8
+ * (`relative`) — corps de modale, carte, section ;
9
+ * - `<Loader variant="inline" message="…" />` : bloc centré dans le flux.
10
+ */
11
+ export default function Loader({ message, size = "large", variant = "overlay", fullScreen = false, className = "", }) {
12
+ const content = (_jsxs("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center gap-inline", children: [_jsx(Icon, { name: "LoaderCircle", size: size, variant: "primary", className: "animate-spin", "aria-hidden": "true" }), message && _jsx("p", { className: "text-small text-muted-foreground", children: message }), _jsx("span", { className: "sr-only", children: message ?? "Chargement en cours" })] }));
13
+ if (fullScreen) {
14
+ return (_jsx("div", { className: `fixed inset-0 z-50 flex items-center justify-center bg-background/80 backdrop-blur-sm ${className}`, children: content }));
15
+ }
16
+ if (variant === "inline") {
17
+ return (_jsx("div", { className: `flex justify-center py-component ${className}`, children: content }));
18
+ }
19
+ return (_jsx("div", { className: `absolute inset-0 z-30 flex items-center justify-center bg-background/80 backdrop-blur-sm ${className}`, children: content }));
20
+ }
@@ -0,0 +1,11 @@
1
+ type MetricTone = "default" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "accent";
2
+ /**
3
+ * Barre de métrique compacte avec pourcentage.
4
+ * Réutilisée par les tableaux de métriques et fiches détail.
5
+ */
6
+ export default function MetricBar({ value, tone, }: {
7
+ value: number;
8
+ tone: MetricTone;
9
+ }): import("react").JSX.Element;
10
+ export { type MetricTone };
11
+ //# sourceMappingURL=metric-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metric-bar.d.ts","sourceRoot":"","sources":["../components/ui/metric-bar.tsx"],"names":[],"mappings":"AAAA,KAAK,UAAU,GACX,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,GACR,MAAM,GACN,QAAQ,CAAC;AAab;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAChC,KAAK,EACL,IAAI,GACL,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;CAClB,+BAeA;AAED,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const TONE_BG = {
3
+ default: "bg-muted",
4
+ primary: "bg-primary",
5
+ secondary: "bg-border-strong",
6
+ success: "bg-success",
7
+ warning: "bg-warning",
8
+ danger: "bg-danger",
9
+ info: "bg-info",
10
+ accent: "bg-accent",
11
+ };
12
+ /**
13
+ * Barre de métrique compacte avec pourcentage.
14
+ * Réutilisée par les tableaux de métriques et fiches détail.
15
+ */
16
+ export default function MetricBar({ value, tone, }) {
17
+ const width = Math.min(100, Math.max(2, value));
18
+ return (_jsxs("div", { className: "flex items-center gap-inline", children: [_jsx("div", { className: "h-1.5 w-24 overflow-hidden rounded-full bg-surface-muted", children: _jsx("div", { className: `h-full rounded-full ${TONE_BG[tone]}`, style: { width: `${width}%` } }) }), _jsxs("span", { className: "text-small text-muted-foreground", children: [value.toFixed(0), " %"] })] }));
19
+ }
@@ -0,0 +1,19 @@
1
+ import { type ReactNode } from "react";
2
+ interface ModalProps {
3
+ open: boolean;
4
+ title: string;
5
+ children: ReactNode;
6
+ onClose: () => void;
7
+ footer?: ReactNode;
8
+ primaryAction?: {
9
+ label: string;
10
+ onClick: () => void;
11
+ };
12
+ secondaryAction?: {
13
+ label: string;
14
+ onClick: () => void;
15
+ };
16
+ }
17
+ export default function Modal({ open, title, children, onClose, footer, primaryAction, secondaryAction, }: ModalProps): import("react").ReactPortal | null;
18
+ export {};
19
+ //# sourceMappingURL=modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../components/ui/modal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,UAAU,UAAU;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;IACF,eAAe,CAAC,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH;AAmBD,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,aAAa,EACb,eAAe,GAChB,EAAE,UAAU,sCA0HZ"}
package/dist/modal.js ADDED
@@ -0,0 +1,88 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useId, useRef, } from "react";
4
+ import { createPortal } from "react-dom";
5
+ import Icon from "./icon";
6
+ import ClickableButton from "./button";
7
+ /** Selector matching every focusable element the dialog can own. */
8
+ const FOCUSABLE_SELECTOR = [
9
+ "a[href]",
10
+ "button:not([disabled])",
11
+ "textarea:not([disabled])",
12
+ "input:not([disabled])",
13
+ "select:not([disabled])",
14
+ '[tabindex]:not([tabindex="-1"])',
15
+ ].join(", ");
16
+ /** Returns the focusable elements owned by a given dialog panel. */
17
+ function getFocusables(panel) {
18
+ return panel
19
+ ? Array.from(panel.querySelectorAll(FOCUSABLE_SELECTOR))
20
+ : [];
21
+ }
22
+ export default function Modal({ open, title, children, onClose, footer, primaryAction, secondaryAction, }) {
23
+ // Unique, stable id used to bind the dialog label to its title.
24
+ const titleId = useId();
25
+ const panelRef = useRef(null);
26
+ // Element that had focus before the modal opened, restored on close.
27
+ const previouslyFocusedRef = useRef(null);
28
+ // Lock body scroll while open.
29
+ useEffect(() => {
30
+ if (!open)
31
+ return;
32
+ const previousOverflow = document.body.style.overflow;
33
+ document.body.style.overflow = "hidden";
34
+ return () => {
35
+ document.body.style.overflow = previousOverflow;
36
+ };
37
+ }, [open]);
38
+ // Close on Escape.
39
+ useEffect(() => {
40
+ if (!open)
41
+ return;
42
+ const handleKeyDown = (event) => {
43
+ if (event.key === "Escape")
44
+ onClose();
45
+ };
46
+ document.addEventListener("keydown", handleKeyDown);
47
+ return () => document.removeEventListener("keydown", handleKeyDown);
48
+ }, [open, onClose]);
49
+ // Move focus into the dialog on open and restore it on close.
50
+ useEffect(() => {
51
+ if (!open)
52
+ return;
53
+ previouslyFocusedRef.current =
54
+ document.activeElement instanceof HTMLElement
55
+ ? document.activeElement
56
+ : null;
57
+ const focusables = getFocusables(panelRef.current);
58
+ (focusables[0] ?? panelRef.current)?.focus();
59
+ return () => {
60
+ previouslyFocusedRef.current?.focus?.();
61
+ previouslyFocusedRef.current = null;
62
+ };
63
+ }, [open]);
64
+ if (!open)
65
+ return null;
66
+ // Keep Tab / Shift+Tab cycling within the dialog panel.
67
+ const handlePanelKeyDown = (event) => {
68
+ if (event.key !== "Tab")
69
+ return;
70
+ const focusables = getFocusables(panelRef.current);
71
+ if (focusables.length === 0)
72
+ return;
73
+ const first = focusables[0];
74
+ const last = focusables[focusables.length - 1];
75
+ const active = document.activeElement;
76
+ if (!(event.shiftKey) &&
77
+ (!panelRef.current?.contains(active) || active === last)) {
78
+ event.preventDefault();
79
+ first.focus();
80
+ }
81
+ else if (event.shiftKey &&
82
+ (!panelRef.current?.contains(active) || active === first)) {
83
+ event.preventDefault();
84
+ last.focus();
85
+ }
86
+ };
87
+ return createPortal(_jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4", role: "dialog", "aria-modal": "true", "aria-labelledby": titleId, onClick: onClose, children: _jsxs("div", { ref: panelRef, className: "flex max-h-[90vh] w-full max-w-[560px] flex-col overflow-hidden rounded-large border border-border bg-surface shadow-lg", onClick: (event) => event.stopPropagation(), onKeyDown: handlePanelKeyDown, children: [_jsxs("div", { className: "flex shrink-0 items-center justify-between border-b border-border px-component py-control", children: [_jsx("h2", { id: titleId, className: "text-component-title text-foreground", children: title }), _jsx("button", { type: "button", onClick: onClose, className: "grid size-8 place-items-center rounded-small text-muted-foreground outline-none hover:bg-surface-muted hover:text-foreground focus-visible:ring-2 focus-visible:ring-primary [&_svg]:size-[var(--icon-small)] [&_svg]:shrink-0 [&_svg]:text-current", "aria-label": "Fermer", children: _jsx(Icon, { name: "X", "aria-hidden": "true" }) })] }), _jsx("div", { className: "min-h-0 flex-1 overflow-y-auto overscroll-contain px-component py-control", children: children }), (footer || primaryAction || secondaryAction) && (_jsxs("div", { className: "flex shrink-0 items-center justify-end gap-inline border-t border-border px-component py-control", children: [secondaryAction && (_jsx(ClickableButton, { type: "button", onClick: secondaryAction.onClick, variant: "ghost", children: secondaryAction.label })), footer && footer, primaryAction && (_jsx(ClickableButton, { onClick: primaryAction.onClick, children: primaryAction.label }))] }))] }) }), document.body);
88
+ }
@@ -0,0 +1,59 @@
1
+ /** Public option shape shared by every selection variant. */
2
+ export interface SelectOption {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ interface BaseSelectProps {
7
+ label?: string;
8
+ options: SelectOption[];
9
+ placeholder?: string;
10
+ emptyMessage?: string;
11
+ }
12
+ interface SelectProps extends BaseSelectProps {
13
+ value: string;
14
+ onChange: (value: string) => void;
15
+ }
16
+ interface MultiSelectProps extends BaseSelectProps {
17
+ values: string[];
18
+ onChange: (values: string[]) => void;
19
+ /**
20
+ * Nombre maximal de chips d'options sélectionnées affichées dans le champ ;
21
+ * au-delà, un indicateur « +N » signale les autres (info-bulle = liste).
22
+ */
23
+ maxVisibleChips?: number;
24
+ }
25
+ /**
26
+ * Single-select dropdown component.
27
+ * Follows Design System rules:
28
+ * - Displays selected value with a chevron indicator.
29
+ * - Opens a dropdown directly below the field on click.
30
+ * - Each option is on its own row with consistent alignment.
31
+ * - Selected option is marked with a check icon.
32
+ */
33
+ export declare function Select({ label, options, value, onChange, placeholder, emptyMessage, }: SelectProps): import("react").JSX.Element;
34
+ /**
35
+ * Multi-select dropdown component.
36
+ * Follows Design System rules:
37
+ * - Same visual language as single select.
38
+ * - Each option has a checkbox-style selector on the left.
39
+ * - Empty when unselected, checked when selected.
40
+ * - Multiple options can be selected simultaneously.
41
+ */
42
+ export declare function MultiSelect({ label, options, values, onChange, placeholder, emptyMessage, maxVisibleChips, }: MultiSelectProps): import("react").JSX.Element;
43
+ /**
44
+ * Single-select dropdown with search.
45
+ * For long lists where searching is helpful.
46
+ */
47
+ export declare function SelectWithSearch({ label, options, value, onChange, placeholder, emptyMessage, }: SelectProps): import("react").JSX.Element;
48
+ /**
49
+ * Multi-select dropdown with search.
50
+ * For long lists where searching and multiple selection is needed.
51
+ */
52
+ export declare function MultiSelectWithSearch({ label, options, values, onChange, placeholder, emptyMessage, maxVisibleChips, }: MultiSelectProps): import("react").JSX.Element;
53
+ /**
54
+ * Filter-style multi-select dropdown.
55
+ * Alias for MultiSelectWithSearch optimized for table column filtering.
56
+ */
57
+ export declare function SelectFilter({ label, options, values, onChange, placeholder, emptyMessage, maxVisibleChips, }: MultiSelectProps): import("react").JSX.Element;
58
+ export {};
59
+ //# sourceMappingURL=select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../components/ui/select.tsx"],"names":[],"mappings":"AAOA,6DAA6D;AAC7D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,WAAY,SAAQ,eAAe;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,UAAU,gBAAiB,SAAQ,eAAe;IAChD,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAiKD;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAA+B,EAC/B,YAAY,GACb,EAAE,WAAW,+BAgCb;AAmDD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAA+B,EAC/B,YAAY,EACZ,eAAmB,GACpB,EAAE,gBAAgB,+BAgClB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,WAA+B,EAC/B,YAAY,GACb,EAAE,WAAW,+BAgCb;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAA+B,EAC/B,YAAY,EACZ,eAAmB,GACpB,EAAE,gBAAgB,+BAgClB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,OAAO,EACP,MAAM,EACN,QAAQ,EACR,WAA0B,EAC1B,YAAY,EACZ,eAAe,GAChB,EAAE,gBAAgB,+BAYlB"}
package/dist/select.js ADDED
@@ -0,0 +1,153 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useEffect, useMemo, useRef, useState } from "react";
4
+ import Badge from "./badge";
5
+ import Icon from "./icon";
6
+ import Input from "./input";
7
+ const LABEL_CLASS = "mb-inline block text-label text-muted-foreground";
8
+ function useDismissibleOpen() {
9
+ const [open, setOpen] = useState(false);
10
+ const rootRef = useRef(null);
11
+ useEffect(() => {
12
+ if (!open)
13
+ return;
14
+ const close = () => setOpen(false);
15
+ const focusTrigger = () => {
16
+ rootRef.current
17
+ ?.querySelector("button[aria-haspopup]")
18
+ ?.focus();
19
+ };
20
+ const isOutside = (target) => target instanceof Node && !rootRef.current?.contains(target);
21
+ const onPointerDown = (event) => {
22
+ if (isOutside(event.target))
23
+ close();
24
+ };
25
+ const onKeyDown = (event) => {
26
+ if (event.key !== "Escape")
27
+ return;
28
+ event.preventDefault();
29
+ event.stopPropagation();
30
+ focusTrigger();
31
+ close();
32
+ };
33
+ const onFocusIn = (event) => {
34
+ if (isOutside(event.target))
35
+ close();
36
+ };
37
+ document.addEventListener("pointerdown", onPointerDown, true);
38
+ document.addEventListener("keydown", onKeyDown, true);
39
+ document.addEventListener("focusin", onFocusIn);
40
+ return () => {
41
+ document.removeEventListener("pointerdown", onPointerDown, true);
42
+ document.removeEventListener("keydown", onKeyDown, true);
43
+ document.removeEventListener("focusin", onFocusIn);
44
+ };
45
+ }, [open]);
46
+ return { open, setOpen, rootRef };
47
+ }
48
+ function SelectTrigger({ open, onOpenChange, children, }) {
49
+ return (_jsxs("button", { type: "button", "aria-haspopup": "true", "aria-expanded": open, onClick: () => onOpenChange(!open), className: "ds-input flex cursor-pointer items-center justify-between gap-2 text-left [&_svg]:size-[var(--icon-small)] [&_svg]:shrink-0", children: [children, _jsx(Icon, { name: "ChevronDown", variant: "muted", "aria-hidden": "true", className: `transition-transform duration-150 ${open ? "rotate-180" : ""}` })] }));
50
+ }
51
+ function SelectDropdown({ open, options, selected, multiple, searchable, searchablePlaceholder = "Rechercher...", onToggle, emptyMessage = "Aucun résultat trouvé.", }) {
52
+ const [searchQuery, setSearchQuery] = useState("");
53
+ const filteredOptions = useMemo(() => {
54
+ if (!searchQuery.trim())
55
+ return options;
56
+ const query = searchQuery.toLowerCase();
57
+ return options.filter((option) => option.label.toLowerCase().includes(query) ||
58
+ option.value.toLowerCase().includes(query));
59
+ }, [options, searchQuery]);
60
+ if (!open)
61
+ return null;
62
+ return (_jsxs("div", { className: "absolute top-full z-50 mt-1 max-h-64 w-full min-w-[10rem] overflow-hidden rounded-medium border border-border bg-surface shadow-lg", children: [searchable && (_jsx("div", { className: "border-b border-border p-2", children: _jsx(Input, { type: "text", placeholder: searchablePlaceholder, value: searchQuery, onChange: (e) => setSearchQuery(e.target.value), icon: _jsx(Icon, { name: "Search" }), "aria-label": searchablePlaceholder }) })), _jsx("div", { className: "overflow-y-auto", children: filteredOptions.length === 0 ? (_jsx("div", { className: "px-3 py-2 text-sm text-muted-foreground", children: emptyMessage })) : (filteredOptions.map((option) => {
63
+ const isSelected = selected.has(option.value);
64
+ return (_jsxs("div", { className: "flex items-center justify-between px-3 py-2 text-sm text-foreground hover:bg-surface-muted cursor-pointer [&_svg]:size-[var(--icon-small)] [&_svg]:shrink-0", onClick: () => onToggle(option.value), children: [_jsx("span", { children: option.label }), multiple ? (_jsx("div", { className: `flex h-4 w-4 items-center justify-center rounded-sm border [&_svg]:size-3 [&_svg]:text-current ${isSelected ? "border-primary bg-primary text-primary-foreground" : "border-muted-foreground"}`, children: isSelected && _jsx(Icon, { name: "Check" }) })) : isSelected ? (_jsx(Icon, { name: "Check", variant: "primary" })) : null] }, option.value));
65
+ })) })] }));
66
+ }
67
+ /**
68
+ * Single-select dropdown component.
69
+ * Follows Design System rules:
70
+ * - Displays selected value with a chevron indicator.
71
+ * - Opens a dropdown directly below the field on click.
72
+ * - Each option is on its own row with consistent alignment.
73
+ * - Selected option is marked with a check icon.
74
+ */
75
+ export function Select({ label, options, value, onChange, placeholder = "Sélectionner...", emptyMessage, }) {
76
+ const { open, setOpen, rootRef } = useDismissibleOpen();
77
+ const selectedOption = useMemo(() => options.find((opt) => opt.value === value), [options, value]);
78
+ const handleSelect = (optionValue) => {
79
+ onChange(optionValue);
80
+ setOpen(false);
81
+ };
82
+ return (_jsxs("div", { ref: rootRef, className: "relative w-full", children: [label ? _jsx("label", { className: LABEL_CLASS, children: label }) : null, _jsx(SelectTrigger, { open: open, onOpenChange: setOpen, children: _jsx("span", { className: selectedOption ? "text-foreground" : "text-muted-foreground", children: selectedOption ? selectedOption.label : placeholder }) }), _jsx(SelectDropdown, { open: open, options: options, selected: new Set(value ? [value] : []), multiple: false, searchable: false, onToggle: handleSelect, emptyMessage: emptyMessage })] }));
83
+ }
84
+ /**
85
+ * Contenu du champ multi-sélection : chips des options choisies jusqu'à
86
+ * `maxVisibleChips`, puis un indicateur « +N » (info-bulle = liste des
87
+ * autres sélectionnées) lorsqu'il y en a davantage.
88
+ */
89
+ function MultiSelectValue({ options, values, placeholder, maxVisibleChips, }) {
90
+ if (values.length === 0) {
91
+ return _jsx("span", { className: "text-muted-foreground", children: placeholder });
92
+ }
93
+ const selectedOptions = values
94
+ .map((value) => options.find((option) => option.value === value))
95
+ .filter((option) => Boolean(option));
96
+ const visibleOptions = selectedOptions.slice(0, Math.max(1, maxVisibleChips));
97
+ const hiddenOptions = selectedOptions.slice(visibleOptions.length);
98
+ return (_jsxs("span", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1", children: [visibleOptions.map((option) => (_jsx(Badge, { variant: "primary", children: option.label }, option.value))), hiddenOptions.length > 0 && (_jsx("span", { title: `Aussi sélectionné : ${hiddenOptions
99
+ .map((option) => option.label)
100
+ .join(", ")}`, className: "inline-flex", children: _jsxs(Badge, { variant: "default", children: ["+", hiddenOptions.length] }) }))] }));
101
+ }
102
+ /**
103
+ * Multi-select dropdown component.
104
+ * Follows Design System rules:
105
+ * - Same visual language as single select.
106
+ * - Each option has a checkbox-style selector on the left.
107
+ * - Empty when unselected, checked when selected.
108
+ * - Multiple options can be selected simultaneously.
109
+ */
110
+ export function MultiSelect({ label, options, values, onChange, placeholder = "Sélectionner...", emptyMessage, maxVisibleChips = 2, }) {
111
+ const { open, setOpen, rootRef } = useDismissibleOpen();
112
+ const handleToggle = (optionValue) => {
113
+ const newValues = values.includes(optionValue)
114
+ ? values.filter((v) => v !== optionValue)
115
+ : [...values, optionValue];
116
+ onChange(newValues);
117
+ };
118
+ return (_jsxs("div", { ref: rootRef, className: "relative w-full", children: [label ? _jsx("label", { className: LABEL_CLASS, children: label }) : null, _jsx(SelectTrigger, { open: open, onOpenChange: setOpen, children: _jsx(MultiSelectValue, { options: options, values: values, placeholder: placeholder, maxVisibleChips: maxVisibleChips }) }), _jsx(SelectDropdown, { open: open, options: options, selected: new Set(values), multiple: true, searchable: false, onToggle: handleToggle, emptyMessage: emptyMessage })] }));
119
+ }
120
+ /**
121
+ * Single-select dropdown with search.
122
+ * For long lists where searching is helpful.
123
+ */
124
+ export function SelectWithSearch({ label, options, value, onChange, placeholder = "Sélectionner...", emptyMessage, }) {
125
+ const { open, setOpen, rootRef } = useDismissibleOpen();
126
+ const selectedOption = useMemo(() => options.find((opt) => opt.value === value), [options, value]);
127
+ const handleSelect = (optionValue) => {
128
+ onChange(optionValue);
129
+ setOpen(false);
130
+ };
131
+ return (_jsxs("div", { ref: rootRef, className: "relative w-full", children: [label ? _jsx("label", { className: LABEL_CLASS, children: label }) : null, _jsx(SelectTrigger, { open: open, onOpenChange: setOpen, children: _jsx("span", { className: selectedOption ? "text-foreground" : "text-muted-foreground", children: selectedOption ? selectedOption.label : placeholder }) }), _jsx(SelectDropdown, { open: open, options: options, selected: new Set(value ? [value] : []), multiple: false, searchable: true, onToggle: handleSelect, emptyMessage: emptyMessage })] }));
132
+ }
133
+ /**
134
+ * Multi-select dropdown with search.
135
+ * For long lists where searching and multiple selection is needed.
136
+ */
137
+ export function MultiSelectWithSearch({ label, options, values, onChange, placeholder = "Sélectionner...", emptyMessage, maxVisibleChips = 2, }) {
138
+ const { open, setOpen, rootRef } = useDismissibleOpen();
139
+ const handleToggle = (optionValue) => {
140
+ const newValues = values.includes(optionValue)
141
+ ? values.filter((v) => v !== optionValue)
142
+ : [...values, optionValue];
143
+ onChange(newValues);
144
+ };
145
+ return (_jsxs("div", { ref: rootRef, className: "relative w-full", children: [label ? _jsx("label", { className: LABEL_CLASS, children: label }) : null, _jsx(SelectTrigger, { open: open, onOpenChange: setOpen, children: _jsx(MultiSelectValue, { options: options, values: values, placeholder: placeholder, maxVisibleChips: maxVisibleChips }) }), _jsx(SelectDropdown, { open: open, options: options, selected: new Set(values), multiple: true, searchable: true, onToggle: handleToggle, emptyMessage: emptyMessage })] }));
146
+ }
147
+ /**
148
+ * Filter-style multi-select dropdown.
149
+ * Alias for MultiSelectWithSearch optimized for table column filtering.
150
+ */
151
+ export function SelectFilter({ label, options, values, onChange, placeholder = "Filtrer...", emptyMessage, maxVisibleChips, }) {
152
+ return (_jsx(MultiSelectWithSearch, { label: label, options: options, values: values, onChange: onChange, placeholder: placeholder, emptyMessage: emptyMessage, maxVisibleChips: maxVisibleChips }));
153
+ }
@@ -0,0 +1,13 @@
1
+ export type StepperStepState = "done" | "current" | "upcoming" | "rejected";
2
+ /**
3
+ * Progression visuelle d'un cycle (brouillon → … → terminé).
4
+ * Réutilisée par les dossiers à traiter étape par étape.
5
+ */
6
+ export default function Stepper({ steps, currentIndex, complete, rejected, label, }: {
7
+ steps: readonly string[];
8
+ currentIndex: number;
9
+ complete?: boolean;
10
+ rejected?: boolean;
11
+ label: string;
12
+ }): import("react").JSX.Element;
13
+ //# sourceMappingURL=stepper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stepper.d.ts","sourceRoot":"","sources":["../components/ui/stepper.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAkC5E;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,KAAK,EACL,YAAY,EACZ,QAAgB,EAChB,QAAgB,EAChB,KAAK,GACN,EAAE;IACD,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,+BA2CA"}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Icon from "./icon";
3
+ const CIRCLE_CLASS = {
4
+ done: "bg-success text-white",
5
+ current: "bg-primary text-white ring-2 ring-primary ring-offset-2",
6
+ upcoming: "bg-surface-muted text-muted-foreground",
7
+ rejected: "bg-danger text-white ring-2 ring-danger ring-offset-2",
8
+ };
9
+ const LABEL_CLASS = {
10
+ done: "text-success-foreground",
11
+ current: "text-foreground",
12
+ upcoming: "text-muted-foreground",
13
+ rejected: "text-danger-foreground",
14
+ };
15
+ const STATE_NAME = {
16
+ done: "terminée",
17
+ current: "étape actuelle",
18
+ upcoming: "à venir",
19
+ rejected: "rejetée",
20
+ };
21
+ function stepState(index, currentIndex, complete, rejected) {
22
+ if (complete || index < currentIndex)
23
+ return "done";
24
+ if (index !== currentIndex)
25
+ return "upcoming";
26
+ return rejected ? "rejected" : "current";
27
+ }
28
+ /**
29
+ * Progression visuelle d'un cycle (brouillon → … → terminé).
30
+ * Réutilisée par les dossiers à traiter étape par étape.
31
+ */
32
+ export default function Stepper({ steps, currentIndex, complete = false, rejected = false, label, }) {
33
+ return (_jsx("ol", { "aria-label": label, className: "flex flex-col gap-control md:flex-row md:items-center", children: steps.map((step, index) => {
34
+ const visual = stepState(index, currentIndex, complete, rejected);
35
+ const last = index === steps.length - 1;
36
+ return (_jsxs("li", { className: "flex min-w-0 items-center gap-inline md:flex-1", "aria-label": `${step}, ${STATE_NAME[visual]}`, "aria-current": visual === "current" || visual === "rejected" ? "step" : undefined, children: [_jsx("span", { className: `grid size-8 shrink-0 place-items-center rounded-full text-label ${CIRCLE_CLASS[visual]}`, children: visual === "done" ? (_jsx(Icon, { name: "Check", variant: "white", size: "small", "aria-hidden": "true" })) : (index + 1) }), _jsx("span", { className: `min-w-0 text-label ${LABEL_CLASS[visual]}`, children: step }), last ? null : (_jsx("span", { className: `hidden h-px flex-1 md:block ${visual === "done" ? "bg-success" : "bg-border"}`, "aria-hidden": "true" }))] }, step));
37
+ }) }));
38
+ }
package/dist/tab.d.ts ADDED
@@ -0,0 +1,34 @@
1
+ import { type ReactNode } from "react";
2
+ export interface Tab {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ interface TabsProps {
7
+ tabs: Tab[];
8
+ defaultValue?: string;
9
+ onChange?: (value: string) => void;
10
+ children?: (activeTab: string) => ReactNode;
11
+ /**
12
+ * Classes for the panel wrapper.
13
+ * For Dashboard & Detail pages (see `knowledge-base/rules/architecture/layout.mdc`),
14
+ * the panel should fill the main scroll container without creating its own
15
+ * page-level scroll. At `md+`, internal component scrolling is allowed
16
+ * when content requires it — rely on component-internal `overflow-auto`
17
+ * (e.g. InfoCard `scrollable`, Table) rather than on the panel wrapper.
18
+ * Below `md`, page-level vertical scrolling is allowed and internal component
19
+ * scrolling MUST NOT be used — so do NOT put `overflow-y-auto` here; let the
20
+ * page scroll keep reflowed content reachable.
21
+ */
22
+ panelClassName?: string;
23
+ }
24
+ /**
25
+ * Tabbed pages navigation component.
26
+ * Follows Design System rules:
27
+ * - Tabs are presented on a single row.
28
+ * - Only one tab can be active at a time.
29
+ * - The active tab is clearly distinguished from inactive ones.
30
+ * - Clicking a tab activates it immediately and shows its associated content.
31
+ */
32
+ export default function Tabs({ tabs, defaultValue, onChange, children, panelClassName, }: TabsProps): import("react").JSX.Element;
33
+ export {};
34
+ //# sourceMappingURL=tab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../components/ui/tab.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjD,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,SAAS,CAAC;IAC5C;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,cAA+B,GAChC,EAAE,SAAS,+BAyCX"}