@altimateai/ui-components 0.0.68-beta.1 → 0.0.68-beta.2

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.
@@ -1,5 +1,5 @@
1
- import { a as Button, B as ButtonProps } from '../Button-CVsSwe4f.js';
2
- export { b as buttonVariants } from '../Button-CVsSwe4f.js';
1
+ import { a as Button, B as ButtonProps } from '../Button-Bsgqi8kG.js';
2
+ export { b as buttonVariants } from '../Button-Bsgqi8kG.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { DayPicker, DayButton, DateRange } from 'react-day-picker';
5
5
  import * as React$1 from 'react';
@@ -97,7 +97,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<SheetPrimitive.Dialo
97
97
  declare const SheetPortal: React$1.FC<SheetPrimitive.DialogPortalProps>;
98
98
  declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
99
99
  declare const sheetVariants: (props?: ({
100
- side?: "left" | "right" | "top" | "bottom" | null | undefined;
100
+ side?: "top" | "right" | "bottom" | "left" | null | undefined;
101
101
  } & class_variance_authority_types.ClassProp) | undefined) => string;
102
102
  interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
103
103
  children: React$1.ReactNode;
@@ -181,7 +181,7 @@ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
181
181
  ref?: React.Ref<HTMLDivElement>;
182
182
  } & {
183
183
  asChild?: boolean;
184
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
184
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild"> & {
185
185
  label?: string;
186
186
  shouldFilter?: boolean;
187
187
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -197,7 +197,7 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
197
197
  ref?: React.Ref<HTMLInputElement>;
198
198
  } & {
199
199
  asChild?: boolean;
200
- }, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
200
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
201
201
  value?: string;
202
202
  onValueChange?: (search: string) => void;
203
203
  } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -207,7 +207,7 @@ declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
207
207
  ref?: React.Ref<HTMLDivElement>;
208
208
  } & {
209
209
  asChild?: boolean;
210
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
210
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild"> & {
211
211
  label?: string;
212
212
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
213
213
  declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
@@ -216,14 +216,14 @@ declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
216
216
  ref?: React.Ref<HTMLDivElement>;
217
217
  } & {
218
218
  asChild?: boolean;
219
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
219
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
220
220
  declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
221
221
  children?: React.ReactNode;
222
222
  } & Omit<Pick<Pick<React$1.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
223
223
  ref?: React.Ref<HTMLDivElement>;
224
224
  } & {
225
225
  asChild?: boolean;
226
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
226
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
227
227
  heading?: React.ReactNode;
228
228
  value?: string;
229
229
  forceMount?: boolean;
@@ -232,7 +232,7 @@ declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick
232
232
  ref?: React.Ref<HTMLDivElement>;
233
233
  } & {
234
234
  asChild?: boolean;
235
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
235
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild"> & {
236
236
  alwaysRender?: boolean;
237
237
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
238
238
  declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
@@ -241,7 +241,7 @@ declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
241
241
  ref?: React.Ref<HTMLDivElement>;
242
242
  } & {
243
243
  asChild?: boolean;
244
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
244
+ }, "key" | keyof HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
245
245
  disabled?: boolean;
246
246
  onSelect?: (value: string) => void;
247
247
  value?: string;
@@ -503,7 +503,23 @@ declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttri
503
503
  variant?: "sidebar" | "floating" | "inset";
504
504
  collapsible?: "offcanvas" | "icon" | "none";
505
505
  }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
506
- declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
506
+ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<(Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
507
+ variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
508
+ size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
509
+ } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
510
+ asChild?: boolean;
511
+ } & {
512
+ size: "icon";
513
+ title: string;
514
+ } & React$1.RefAttributes<HTMLButtonElement>, "ref"> | Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
515
+ variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
516
+ size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
517
+ } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
518
+ asChild?: boolean;
519
+ } & {
520
+ size?: "default" | "sm" | "xs" | "lg";
521
+ title?: string;
522
+ } & React$1.RefAttributes<HTMLButtonElement>, "ref">) & React$1.RefAttributes<HTMLButtonElement>>;
507
523
  declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
508
524
  declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
509
525
  declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -709,8 +725,8 @@ type CarouselProps = {
709
725
  declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React$1.ComponentProps<"div"> & CarouselProps): react_jsx_runtime.JSX.Element;
710
726
  declare function CarouselContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
711
727
  declare function CarouselItem({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
712
- declare function CarouselPrevious({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
713
- declare function CarouselNext({ className, variant, size, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
728
+ declare function CarouselPrevious({ className, variant, size, title, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
729
+ declare function CarouselNext({ className, variant, size, title, ...props }: React$1.ComponentProps<typeof Button>): react_jsx_runtime.JSX.Element;
714
730
 
715
731
  declare const toggleVariants: (props?: ({
716
732
  variant?: "default" | "outline" | null | undefined;
@@ -2762,6 +2762,7 @@ function Yd({
2762
2762
  ref: o,
2763
2763
  variant: "ghost",
2764
2764
  size: "icon",
2765
+ title: t.date.toLocaleDateString(),
2765
2766
  "data-day": t.date.toLocaleDateString(),
2766
2767
  "data-selected-single": n.selected && !n.range_start && !n.range_end && !n.range_middle,
2767
2768
  "data-range-start": n.range_start,
@@ -3909,20 +3910,21 @@ const zf = d.forwardRef(
3909
3910
  }
3910
3911
  );
3911
3912
  zf.displayName = "Sidebar";
3912
- const Ff = d.forwardRef(({ className: e, onClick: t, ...n }, a) => {
3913
- const { toggleSidebar: r } = ln();
3913
+ const Ff = d.forwardRef(({ className: e, onClick: t, title: n = "Toggle Sidebar", ...a }, r) => {
3914
+ const { toggleSidebar: o } = ln();
3914
3915
  return /* @__PURE__ */ u.jsxs(
3915
3916
  Ue,
3916
3917
  {
3917
- ref: a,
3918
+ ref: r,
3918
3919
  "data-sidebar": "trigger",
3919
3920
  variant: "ghost",
3920
3921
  size: "icon",
3922
+ title: n,
3921
3923
  className: P("al-h-7 al-w-7", e),
3922
- onClick: (o) => {
3923
- t == null || t(o), r();
3924
+ onClick: (i) => {
3925
+ t == null || t(i), o();
3924
3926
  },
3925
- ...n,
3927
+ ...a,
3926
3928
  children: [
3927
3929
  /* @__PURE__ */ u.jsx(Il, {}),
3928
3930
  /* @__PURE__ */ u.jsx("span", { className: "al-sr-only", children: "Toggle Sidebar" })
@@ -8408,6 +8410,7 @@ function Tg({
8408
8410
  variant: "ghost",
8409
8411
  size: "icon",
8410
8412
  className: "al-h-6 al-w-6",
8413
+ title: "Remove file",
8411
8414
  onClick: (S) => {
8412
8415
  S.stopPropagation(), w(v);
8413
8416
  },
@@ -48,6 +48,7 @@ export const Buttons = {
48
48
  <Button
49
49
  variant={v.toLowerCase() as ButtonProps["variant"]}
50
50
  size="icon"
51
+ title={`${v} icon button`}
51
52
  className="al-align-bottom"
52
53
  >
53
54
  <CloseIcon />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.68-beta.1",
3
+ "version": "0.0.68-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"
@@ -335,12 +335,12 @@ declare const agentStreamResponseSchema: z.ZodObject<{
335
335
  value: z.ZodString;
336
336
  }, "strip", z.ZodTypeAny, {
337
337
  id: string;
338
- value: string;
339
338
  label: string;
339
+ value: string;
340
340
  }, {
341
341
  id: string;
342
- value: string;
343
342
  label: string;
343
+ value: string;
344
344
  }>, "many">>;
345
345
  }, "strip", z.ZodTypeAny, {
346
346
  id: string;
@@ -349,8 +349,8 @@ declare const agentStreamResponseSchema: z.ZodObject<{
349
349
  required?: boolean | undefined;
350
350
  choices?: {
351
351
  id: string;
352
- value: string;
353
352
  label: string;
353
+ value: string;
354
354
  }[] | undefined;
355
355
  }, {
356
356
  id: string;
@@ -359,8 +359,8 @@ declare const agentStreamResponseSchema: z.ZodObject<{
359
359
  required?: boolean | undefined;
360
360
  choices?: {
361
361
  id: string;
362
- value: string;
363
362
  label: string;
363
+ value: string;
364
364
  }[] | undefined;
365
365
  }>>;
366
366
  artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -428,8 +428,8 @@ declare const agentStreamResponseSchema: z.ZodObject<{
428
428
  required?: boolean | undefined;
429
429
  choices?: {
430
430
  id: string;
431
- value: string;
432
431
  label: string;
432
+ value: string;
433
433
  }[] | undefined;
434
434
  } | undefined;
435
435
  artifacts?: {
@@ -471,8 +471,8 @@ declare const agentStreamResponseSchema: z.ZodObject<{
471
471
  required?: boolean | undefined;
472
472
  choices?: {
473
473
  id: string;
474
- value: string;
475
474
  label: string;
475
+ value: string;
476
476
  }[] | undefined;
477
477
  } | undefined;
478
478
  artifacts?: {