@altimateai/ui-components 0.0.5 → 0.0.6-beta.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/dist/CoachForm.js +1 -1
- package/dist/NativeSelect.js +33 -3
- package/dist/shadcn/index.d.ts +10 -1
- package/package.json +1 -1
package/dist/CoachForm.js
CHANGED
package/dist/NativeSelect.js
CHANGED
|
@@ -2210,15 +2210,45 @@ const Li = {
|
|
|
2210
2210
|
secondary: "al-border-transparent al-bg-secondary al-text-secondary-foreground hover:al-bg-secondary/80",
|
|
2211
2211
|
destructive: "al-border-transparent al-bg-destructive al-text-destructive-foreground hover:al-bg-destructive/80",
|
|
2212
2212
|
outline: "al-text-foreground"
|
|
2213
|
+
},
|
|
2214
|
+
interactive: {
|
|
2215
|
+
true: "al-cursor-pointer focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2",
|
|
2216
|
+
false: "al-cursor-default"
|
|
2213
2217
|
}
|
|
2214
2218
|
},
|
|
2215
2219
|
defaultVariants: {
|
|
2216
|
-
variant: "default"
|
|
2220
|
+
variant: "default",
|
|
2221
|
+
interactive: !1
|
|
2217
2222
|
}
|
|
2218
2223
|
}
|
|
2219
2224
|
);
|
|
2220
|
-
function Dd({
|
|
2221
|
-
|
|
2225
|
+
function Dd({
|
|
2226
|
+
className: e,
|
|
2227
|
+
variant: o,
|
|
2228
|
+
interactive: t = !0,
|
|
2229
|
+
onAction: n,
|
|
2230
|
+
children: a,
|
|
2231
|
+
role: l = "status",
|
|
2232
|
+
tabIndex: i,
|
|
2233
|
+
onKeyDown: c,
|
|
2234
|
+
...d
|
|
2235
|
+
}) {
|
|
2236
|
+
const u = (f) => {
|
|
2237
|
+
t && n && (f.key === "Enter" || f.key === " ") && (f.preventDefault(), n()), c == null || c(f);
|
|
2238
|
+
};
|
|
2239
|
+
return /* @__PURE__ */ r.jsx(
|
|
2240
|
+
"div",
|
|
2241
|
+
{
|
|
2242
|
+
className: E(Vi({ variant: o, interactive: t }), e),
|
|
2243
|
+
role: t ? "button" : l,
|
|
2244
|
+
tabIndex: t ? 0 : i,
|
|
2245
|
+
onKeyDown: u,
|
|
2246
|
+
onClick: t ? n : void 0,
|
|
2247
|
+
"aria-disabled": t && !n,
|
|
2248
|
+
...d,
|
|
2249
|
+
children: a
|
|
2250
|
+
}
|
|
2251
|
+
);
|
|
2222
2252
|
}
|
|
2223
2253
|
var co = "Collapsible", [Gi, ba] = de(co), [Ki, uo] = Gi(co), ya = s.forwardRef(
|
|
2224
2254
|
(e, o) => {
|
package/dist/shadcn/index.d.ts
CHANGED
|
@@ -224,10 +224,19 @@ declare const Tooltip: ({ children, title, ...props }: TooltipPrimitive.TooltipP
|
|
|
224
224
|
|
|
225
225
|
declare const badgeVariants: (props?: ({
|
|
226
226
|
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
227
|
+
interactive?: boolean | null | undefined;
|
|
227
228
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
228
229
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
230
|
+
/**
|
|
231
|
+
* If true, the badge will be focusable and handle keyboard events
|
|
232
|
+
*/
|
|
233
|
+
interactive?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Optional click handler for interactive badges
|
|
236
|
+
*/
|
|
237
|
+
onAction?: () => void;
|
|
229
238
|
}
|
|
230
|
-
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
239
|
+
declare function Badge({ className, variant, interactive, onAction, children, role, tabIndex, onKeyDown, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
231
240
|
|
|
232
241
|
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
233
242
|
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|