@altimateai/ui-components 0.0.69-beta.1 → 0.0.69-beta.3

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(
@@ -1729,7 +1729,7 @@ jr.displayName = ke.displayName;
1729
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
1730
  // eslint-disable-next-line react/no-unknown-property
1731
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(da, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
1732
+ /* @__PURE__ */ u.jsx(ua, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
1733
1733
  /* @__PURE__ */ u.jsx(
1734
1734
  ke.Input,
1735
1735
  {
@@ -3784,9 +3784,9 @@ const kp = ({
3784
3784
  if (_ && !d) {
3785
3785
  const O = S(n || "");
3786
3786
  return /* @__PURE__ */ u.jsx("div", { className: "al-w-56", children: /* @__PURE__ */ u.jsxs(Nc, { children: [
3787
- /* @__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" }) }),
3788
3788
  /* @__PURE__ */ u.jsx(
3789
- ua,
3789
+ da,
3790
3790
  {
3791
3791
  value: O,
3792
3792
  placeholder: a || "Search...",
@@ -8427,12 +8427,12 @@ export {
8427
8427
  Af as A,
8428
8428
  Lh as B,
8429
8429
  Du as C,
8430
- ua as D,
8430
+ da as D,
8431
8431
  Yc as E,
8432
8432
  om as F,
8433
8433
  Pu as G,
8434
8434
  Xc as H,
8435
- ku as I,
8435
+ Nc as I,
8436
8436
  Zc as J,
8437
8437
  Jc as K,
8438
8438
  ju as L,
@@ -8516,7 +8516,7 @@ export {
8516
8516
  Qf as ax,
8517
8517
  Rp as ay,
8518
8518
  Wh as az,
8519
- Bh as b,
8519
+ Rc as b,
8520
8520
  Gi as b0,
8521
8521
  av as b1,
8522
8522
  sv as b2,
@@ -8526,24 +8526,24 @@ export {
8526
8526
  Sr as b6,
8527
8527
  Kc as b7,
8528
8528
  Bc as b8,
8529
- qc as c,
8530
- No as d,
8531
- ga as e,
8532
- Ru as f,
8533
- Ou as g,
8534
- Vu as h,
8535
- Lu as i,
8536
- $u as j,
8537
- Gu as k,
8538
- Uu as l,
8539
- zu as m,
8540
- Tu as n,
8541
- Bu as o,
8542
- Nc as p,
8543
- vo as q,
8544
- Tc as r,
8545
- Nh as s,
8546
- 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,
8547
8547
  Yh as u,
8548
8548
  _h as v,
8549
8549
  Hc as w,
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,6 +1,6 @@
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';
@@ -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 {