@altimateai/ui-components 0.0.69-beta1 → 0.0.70-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/Switch.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as o } from "./index2.js";
2
2
  import * as s from "react";
3
- import { c as _, u as H, a as I, P as g, b as M, d as B, e as q, f as S } from "./Stack.js";
3
+ import { a as _, u as H, b as I, P as g, d as M, e as B, f as q, g as S } from "./Stack.js";
4
4
  var v = "Switch", [z, X] = _(v), [A, O] = z(v), x = s.forwardRef(
5
5
  (e, a) => {
6
6
  const {
@@ -1,7 +1,7 @@
1
1
  import { j as u, C as sc, a as Wo, S as lc, b as mr, c as ic } from "./index2.js";
2
2
  import * as i from "react";
3
3
  import J, { useImperativeHandle as qo, forwardRef as Ae, Fragment as cc, useState as Fe, useRef as Je, useCallback as Ke, useEffect as Qe } from "react";
4
- import { f as G, B as xt, I as Yo, T as uc, g as pt, h as We, R as gr, i as Xo, C as yn, j as hr, O as bn, k as wn, l as vr, D as xr, m as Gt, n as yr, c as wt, o as Sn, p as Zo, A as Jo, q as Bt, u as Ie, r as Qo, b as se, s as ea, F as ta, t as na, v as dc, w as ra, P as ve, x as fc, y as Cn, z as oa, E as aa, G as pc, H as br, J as wr, K as sa, L as je, a as it, M as mc, N as gc, Q as He, S as la, W as hc, U as ia, d as vc, V as xc, X as yc, Y as bc, Z as po, _ as mo, $ as go, a0 as ho, a1 as wc, a2 as Sc, a3 as on } from "./Stack.js";
4
+ import { g as G, B as xt, I as Yo, T as uc, h as pt, c as We, R as gr, i as Xo, C as yn, j as hr, O as bn, k as wn, l as vr, D as xr, m as Gt, n as yr, a as wt, o as Sn, p as Zo, A as Jo, q as Bt, u as Ie, r as Qo, d as se, s as ea, F as ta, t as na, v as dc, w as ra, P as ve, x as fc, y as Cn, z as oa, E as aa, G as pc, H as br, J as wr, K as sa, L as je, b as it, M as mc, N as gc, Q as He, S as la, W as hc, U as ia, e as vc, V as xc, X as yc, Y as bc, Z as po, _ as mo, $ as go, a0 as ho, a1 as wc, a2 as Sc, a3 as on } from "./Stack.js";
5
5
  import * as ca from "react-dom";
6
6
  import Cc from "react-dom";
7
7
  const Ic = ({
@@ -190,29 +190,6 @@ function _h({ className: e, ...n }) {
190
190
  }
191
191
  );
192
192
  }
193
- const ua = i.forwardRef(
194
- ({ useInputGroup: e, onChange: n, debounceMs: t = 0, ...r }, o) => {
195
- const [a, s] = i.useState(
196
- r.value || r.defaultValue || ""
197
- ), l = i.useRef(null);
198
- i.useEffect(() => {
199
- r.value !== void 0 && s(r.value);
200
- }, [r.value]);
201
- const c = i.useCallback(
202
- (d) => {
203
- const f = d.target.value;
204
- s(f), l.current && clearTimeout(l.current), n && (t === 0 ? n(f) : l.current = setTimeout(() => {
205
- n(f);
206
- }, t));
207
- },
208
- [n, t]
209
- );
210
- return i.useEffect(() => () => {
211
- l.current && clearTimeout(l.current);
212
- }, []), e ? /* @__PURE__ */ u.jsx(Rc, { ...r, value: a, onChange: c, ref: o }) : /* @__PURE__ */ u.jsx(Yo, { ...r, value: a, onChange: c, ref: o });
213
- }
214
- );
215
- ua.displayName = "DebouncedInput";
216
193
  /**
217
194
  * @license @tabler/icons-react v3.34.1 - MIT
218
195
  *
@@ -254,7 +231,7 @@ const Lc = [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]], xo = We("outline",
254
231
  * This source code is licensed under the MIT license.
255
232
  * See the LICENSE file in the root directory of this source tree.
256
233
  */
257
- const $c = [["path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", key: "svg-0" }], ["path", { d: "M21 21l-6 -6", key: "svg-1" }]], da = We("outline", "search", "Search", $c);
234
+ const $c = [["path", { d: "M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0", key: "svg-0" }], ["path", { d: "M21 21l-6 -6", key: "svg-1" }]], ua = We("outline", "search", "Search", $c);
258
235
  /**
259
236
  * @license @tabler/icons-react v3.34.1 - MIT
260
237
  *
@@ -275,7 +252,30 @@ const Uc = [["path", { d: "M18 6l-12 12", key: "svg-0" }], ["path", { d: "M6 6l1
275
252
  * This source code is licensed under the MIT license.
276
253
  * See the LICENSE file in the root directory of this source tree.
277
254
  */
278
- const zc = [["path", { d: "M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005 .195v12.666c0 1.96 -1.537 3.56 -3.472 3.662l-.195 .005h-12.666a3.667 3.667 0 0 1 -3.662 -3.472l-.005 -.195v-12.666c0 -1.96 1.537 -3.56 3.472 -3.662l.195 -.005h12.666zm-2.626 7.293a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z", key: "svg-0" }]], Kc = We("filled", "square-check-filled", "SquareCheckFilled", zc), Ah = gr, Th = Xo, Rh = yn, Hc = hr, fa = i.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ u.jsx(
255
+ const zc = [["path", { d: "M18.333 2c1.96 0 3.56 1.537 3.662 3.472l.005 .195v12.666c0 1.96 -1.537 3.56 -3.472 3.662l-.195 .005h-12.666a3.667 3.667 0 0 1 -3.662 -3.472l-.005 -.195v-12.666c0 -1.96 1.537 -3.56 3.472 -3.662l.195 -.005h12.666zm-2.626 7.293a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z", key: "svg-0" }]], Kc = We("filled", "square-check-filled", "SquareCheckFilled", zc), da = i.forwardRef(
256
+ ({ useInputGroup: e, onChange: n, debounceMs: t = 0, ...r }, o) => {
257
+ const [a, s] = i.useState(
258
+ r.value || r.defaultValue || ""
259
+ ), l = i.useRef(null);
260
+ i.useEffect(() => {
261
+ r.value !== void 0 && s(r.value);
262
+ }, [r.value]);
263
+ const c = i.useCallback(
264
+ (d) => {
265
+ const f = d.target.value;
266
+ s(f), l.current && clearTimeout(l.current), n && (t === 0 ? n(f) : l.current = setTimeout(() => {
267
+ n(f);
268
+ }, t));
269
+ },
270
+ [n, t]
271
+ );
272
+ return i.useEffect(() => () => {
273
+ l.current && clearTimeout(l.current);
274
+ }, []), e ? /* @__PURE__ */ u.jsx(Rc, { ...r, value: a, onChange: c, ref: o }) : /* @__PURE__ */ u.jsx(Yo, { ...r, value: a, onChange: c, ref: o });
275
+ }
276
+ );
277
+ da.displayName = "DebouncedInput";
278
+ const Ah = gr, Th = Xo, Rh = yn, Hc = hr, fa = i.forwardRef(({ className: e, ...n }, t) => /* @__PURE__ */ u.jsx(
279
279
  bn,
280
280
  {
281
281
  className: G(
@@ -1719,46 +1719,36 @@ const jr = Ae(({ className: e, ...n }, t) => /* @__PURE__ */ u.jsx(
1719
1719
  {
1720
1720
  ref: t,
1721
1721
  className: G(
1722
- "al-flex al-h-full al-w-full al-flex-col al-overflow-hidden al-rounded-md !al-bg-popover al-text-popover-foreground",
1722
+ "al-flex al-h-full al-w-full al-flex-col al-overflow-hidden al-rounded-md al-bg-popover al-text-popover-foreground",
1723
1723
  e
1724
1724
  ),
1725
1725
  ...n
1726
1726
  }
1727
1727
  ));
1728
1728
  jr.displayName = ke.displayName;
1729
- const Vh = ({ children: e, commandProps: n, ...t }) => /* @__PURE__ */ u.jsx(mc, { ...t, children: /* @__PURE__ */ u.jsx(gc, { className: "al-overflow-hidden !al-p-0 al-shadow-lg !al-max-w-[50vw]", children: /* @__PURE__ */ u.jsx(
1730
- jr,
1731
- {
1732
- className: "[&_[cmdk-group-heading]]:al-px-2 [&_[cmdk-group-heading]]:al-font-medium [&_[cmdk-group-heading]]:al-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:al-pt-0 [&_[cmdk-group]]:al-px-2 [&_[cmdk-input-wrapper]_svg]:al-h-5 [&_[cmdk-input-wrapper]_svg]:al-w-5 [&_[cmdk-input]]:al-h-12 [&_[cmdk-item]]:al-px-2 [&_[cmdk-item]]:al-py-3 [&_[cmdk-item]_svg]:al-h-5 [&_[cmdk-item]_svg]:al-w-5",
1733
- ...n,
1734
- children: e
1735
- }
1736
- ) }) }), ys = Ae(
1737
- ({ className: e, tag: n, ...t }, r) => (
1738
- // eslint-disable-next-line react/no-unknown-property
1739
- /* @__PURE__ */ u.jsxs("div", { className: "al-flex al-items-center al-border-b al-px-3", "cmdk-input-wrapper": "", children: [
1740
- /* @__PURE__ */ u.jsx(da, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
1741
- n && /* @__PURE__ */ u.jsx("span", { className: "al-mr-2 al-px-2 al-py-1 al-rounded !al-bg-green-100 al-text-green-600 al-text-xs al-font-medium al-whitespace-nowrap", children: n }),
1742
- /* @__PURE__ */ u.jsx(
1743
- ke.Input,
1744
- {
1745
- ref: r,
1746
- className: G(
1747
- "al-flex al-h-11 al-w-full al-rounded-md !al-bg-transparent al-py-3 al-text-sm al-outline-none placeholder:al-text-muted-foreground disabled:al-cursor-not-allowed disabled:al-opacity-50",
1748
- e
1749
- ),
1750
- ...t
1751
- }
1752
- )
1753
- ] })
1754
- )
1755
- );
1729
+ const Vh = ({ children: e, ...n }) => /* @__PURE__ */ u.jsx(mc, { ...n, children: /* @__PURE__ */ u.jsx(gc, { className: "al-overflow-hidden al-p-0 al-shadow-lg", children: /* @__PURE__ */ u.jsx(jr, { className: "[&_[cmdk-group-heading]]:al-px-2 [&_[cmdk-group-heading]]:al-font-medium [&_[cmdk-group-heading]]:al-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:al-pt-0 [&_[cmdk-group]]:al-px-2 [&_[cmdk-input-wrapper]_svg]:al-h-5 [&_[cmdk-input-wrapper]_svg]:al-w-5 [&_[cmdk-input]]:al-h-12 [&_[cmdk-item]]:al-px-2 [&_[cmdk-item]]:al-py-3 [&_[cmdk-item]_svg]:al-h-5 [&_[cmdk-item]_svg]:al-w-5", children: e }) }) }), ys = Ae(({ className: e, ...n }, t) => (
1730
+ // eslint-disable-next-line react/no-unknown-property
1731
+ /* @__PURE__ */ u.jsxs("div", { className: "al-flex al-items-center al-border-b al-px-3", "cmdk-input-wrapper": "", children: [
1732
+ /* @__PURE__ */ u.jsx(ua, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
1733
+ /* @__PURE__ */ u.jsx(
1734
+ ke.Input,
1735
+ {
1736
+ ref: t,
1737
+ className: G(
1738
+ "al-flex al-h-11 al-w-full al-rounded-md al-bg-transparent al-py-3 al-text-sm al-outline-none placeholder:al-text-muted-foreground disabled:al-cursor-not-allowed disabled:al-opacity-50",
1739
+ e
1740
+ ),
1741
+ ...n
1742
+ }
1743
+ )
1744
+ ] })
1745
+ ));
1756
1746
  ys.displayName = ke.Input.displayName;
1757
1747
  const bs = Ae(({ className: e, ...n }, t) => /* @__PURE__ */ u.jsx(
1758
1748
  ke.List,
1759
1749
  {
1760
1750
  ref: t,
1761
- className: G("al-max-h-96 al-overflow-y-auto al-overflow-x-hidden", e),
1751
+ className: G("al-max-h-[300px] al-overflow-y-auto al-overflow-x-hidden", e),
1762
1752
  ...n
1763
1753
  }
1764
1754
  ));
@@ -1781,7 +1771,7 @@ const qd = Ae(({ className: e, ...n }, t) => /* @__PURE__ */ u.jsx(
1781
1771
  ke.Separator,
1782
1772
  {
1783
1773
  ref: t,
1784
- className: G("al--mx-1 al-h-px !al-bg-border", e),
1774
+ className: G("al--mx-1 al-h-px al-bg-border", e),
1785
1775
  ...n
1786
1776
  }
1787
1777
  ));
@@ -1792,7 +1782,7 @@ const Cs = Ae(({ className: e, ...n }, t) => /* @__PURE__ */ u.jsx(
1792
1782
  ref: t,
1793
1783
  role: "option",
1794
1784
  className: G(
1795
- "al-relative al-flex al-cursor-default al-gap-2 al-select-none al-items-center al-rounded-sm al-px-2 al-py-1.5 al-text-sm al-outline-none data-[disabled=true]:al-pointer-events-none data-[selected=true]:!al-bg-accent data-[selected=true]:al-text-accent-foreground data-[disabled=true]:al-opacity-50 [&_svg]:al-pointer-events-none [&_svg]:al-size-4 [&_svg]:al-shrink-0",
1785
+ "al-relative al-flex al-cursor-default al-gap-2 al-select-none al-items-center al-rounded-sm al-px-2 al-py-1.5 al-text-sm al-outline-none data-[disabled=true]:al-pointer-events-none data-[selected=true]:al-bg-accent data-[selected=true]:al-text-accent-foreground data-[disabled=true]:al-opacity-50 [&_svg]:al-pointer-events-none [&_svg]:al-size-4 [&_svg]:al-shrink-0",
1796
1786
  e
1797
1787
  ),
1798
1788
  ...n
@@ -3794,9 +3784,9 @@ const kp = ({
3794
3784
  if (_ && !d) {
3795
3785
  const O = S(n || "");
3796
3786
  return /* @__PURE__ */ u.jsx("div", { className: "al-w-56", children: /* @__PURE__ */ u.jsxs(Nc, { children: [
3797
- /* @__PURE__ */ u.jsx(vo, { children: /* @__PURE__ */ u.jsx(da, { className: "al-size-4" }) }),
3787
+ /* @__PURE__ */ u.jsx(vo, { children: /* @__PURE__ */ u.jsx(ua, { className: "al-size-4" }) }),
3798
3788
  /* @__PURE__ */ u.jsx(
3799
- ua,
3789
+ da,
3800
3790
  {
3801
3791
  value: O,
3802
3792
  placeholder: a || "Search...",
@@ -8437,12 +8427,12 @@ export {
8437
8427
  Af as A,
8438
8428
  Lh as B,
8439
8429
  Du as C,
8440
- ua as D,
8430
+ da as D,
8441
8431
  Yc as E,
8442
8432
  om as F,
8443
8433
  Pu as G,
8444
8434
  Xc as H,
8445
- ku as I,
8435
+ Nc as I,
8446
8436
  Zc as J,
8447
8437
  Jc as K,
8448
8438
  ju as L,
@@ -8526,7 +8516,7 @@ export {
8526
8516
  Qf as ax,
8527
8517
  Rp as ay,
8528
8518
  Wh as az,
8529
- Bh as b,
8519
+ Rc as b,
8530
8520
  Gi as b0,
8531
8521
  av as b1,
8532
8522
  sv as b2,
@@ -8536,24 +8526,24 @@ export {
8536
8526
  Sr as b6,
8537
8527
  Kc as b7,
8538
8528
  Bc as b8,
8539
- qc as c,
8540
- No as d,
8541
- ga as e,
8542
- Ru as f,
8543
- Ou as g,
8544
- Vu as h,
8545
- Lu as i,
8546
- $u as j,
8547
- Gu as k,
8548
- Uu as l,
8549
- zu as m,
8550
- Tu as n,
8551
- Bu as o,
8552
- Nc as p,
8553
- vo as q,
8554
- Tc as r,
8555
- Nh as s,
8556
- Rc as t,
8529
+ vo as c,
8530
+ Tc as d,
8531
+ Bh as e,
8532
+ qc as f,
8533
+ No as g,
8534
+ ga as h,
8535
+ Ru as i,
8536
+ ku as j,
8537
+ Ou as k,
8538
+ Vu as l,
8539
+ Lu as m,
8540
+ $u as n,
8541
+ Gu as o,
8542
+ Uu as p,
8543
+ zu as q,
8544
+ Tu as r,
8545
+ Bu as s,
8546
+ Nh as t,
8557
8547
  Yh as u,
8558
8548
  _h as v,
8559
8549
  Hc as w,
@@ -1,6 +1,6 @@
1
1
  import React__default, { FC, ReactNode } from 'react';
2
- import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse, S as SessionStatusEnum } from '../types-CPALoG7v.js';
3
- export { x as AssistantMeta, w as ChatEvent, v as ChatEventStatus, z as ChatbotUrls, B as Datamate, G as EntityDetectionRequest, H as EntityDetectionResponse, y as FileUploadProps, W as FinalResponseData, N as InteractionChoice, K as InteractionType, J as Mode, V as ProgressUpdate, R as ToolUsageData, U as UploadedFile, X as agentStreamResponseSchema, O as sessionStatusSchema, Q as todoItemSchema } from '../types-CPALoG7v.js';
2
+ import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse, S as SessionStatusEnum } from '../types-C2UJ4TLI.js';
3
+ export { x as AssistantMeta, w as ChatEvent, v as ChatEventStatus, z as ChatbotUrls, B as Datamate, G as EntityDetectionRequest, H as EntityDetectionResponse, y as FileUploadProps, W as FinalResponseData, N as InteractionChoice, K as InteractionType, J as Mode, V as ProgressUpdate, R as ToolUsageData, U as UploadedFile, X as agentStreamResponseSchema, O as sessionStatusSchema, Q as todoItemSchema } from '../types-C2UJ4TLI.js';
4
4
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
5
5
  import { UnknownAction } from '@reduxjs/toolkit';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
package/dist/dayjs.min.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as R } from "./index2.js";
2
2
  import { forwardRef as q } from "react";
3
- import { f as B } from "./Stack.js";
3
+ import { g as B } from "./Stack.js";
4
4
  import { c as tt, g as et } from "./redux-toolkit.modern.js";
5
5
  const nt = q(
6
6
  ({ className: T, isOpen: H = !1, children: v, ...g }, L) => H ? /* @__PURE__ */ R.jsx("div", { ref: L, className: B("al-transition-all", T), ...g, children: v }) : null
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as React$1 from 'react';
2
- import { HTMLAttributes, ButtonHTMLAttributes, ReactNode, FC, MouseEvent } from 'react';
3
- import { B as ButtonProps } from './Button-Bsgqi8kG.js';
2
+ import React__default, { HTMLAttributes, ButtonHTMLAttributes, ReactNode, FC, MouseEvent } from 'react';
3
+ import { B as ButtonProps, a as Button } from './Button-42Dj_nRE.js';
4
4
  import { Components } from 'react-markdown';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { PlotParams } from 'react-plotly.js';
7
- import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-CPALoG7v.js';
8
- export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-CPALoG7v.js';
7
+ import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-C2UJ4TLI.js';
8
+ export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-C2UJ4TLI.js';
9
9
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
10
10
  import { PayloadAction } from '@reduxjs/toolkit';
11
11
  import * as immer from 'immer';
@@ -25,16 +25,16 @@ interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
25
25
  }
26
26
  declare const Spinner: React$1.ForwardRefExoticComponent<SpinnerProps & React$1.RefAttributes<HTMLDivElement>>;
27
27
 
28
- interface Props$7 extends ButtonHTMLAttributes<HTMLButtonElement> {
29
- variant?: ButtonProps["variant"];
28
+ interface Props$7 extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title"> {
29
+ variant?: ButtonProps<"icon">["variant"];
30
30
  title: string;
31
31
  }
32
- declare const IconButton: (props: Props$7) => JSX.Element;
32
+ declare const IconButton: ({ title, variant, type, ...props }: Props$7) => JSX.Element;
33
33
 
34
- type Props$6 = ButtonProps & {
34
+ type Props$6 = {
35
35
  loading: boolean;
36
36
  loadingText?: string | null;
37
- };
37
+ } & React__default.ComponentProps<typeof Button>;
38
38
  declare const LoadingButton: ({ loading, loadingText, ...rest }: Props$6) => JSX.Element;
39
39
 
40
40
  interface Props$5 {