@altimateai/ui-components 0.0.23-beta.5 → 0.0.23
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/{Button-C4jhPGlR.d.ts → Button-Cj79i7Go.d.ts} +2 -2
- package/dist/CoachForm.js +7654 -7674
- package/dist/Label.js +48 -0
- package/dist/NativeSelect.js +3918 -0
- package/dist/Stack.js +2013 -2926
- package/dist/index.d.ts +23 -20
- package/dist/index.js +64 -32
- package/dist/lineage/index.js +2354 -2335
- package/dist/main.css +1 -1
- package/dist/main.js +842 -840
- package/dist/redux-toolkit.modern.js +1014 -910
- package/dist/shadcn/index.d.ts +14 -18
- package/dist/shadcn/index.js +3420 -2724
- package/dist/storybook/Badge.stories.tsx +0 -7
- package/dist/storybook/Card.stories.tsx +2 -2
- package/dist/storybook/Label.stories.tsx +2 -2
- package/dist/storybook/Typography.stories.tsx +14 -14
- package/package.json +1 -1
- package/dist/Form.js +0 -3658
- package/dist/Switch.js +0 -128
- package/dist/Table.js +0 -22
package/dist/Switch.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { j as o } from "./index2.js";
|
|
2
|
-
import * as s from "react";
|
|
3
|
-
import { a as _, u as H, b as I, P as g, d as M, e as B, f as q, c as S } from "./Stack.js";
|
|
4
|
-
var v = "Switch", [z, X] = _(v), [A, O] = z(v), x = s.forwardRef(
|
|
5
|
-
(e, a) => {
|
|
6
|
-
const {
|
|
7
|
-
__scopeSwitch: t,
|
|
8
|
-
name: r,
|
|
9
|
-
checked: n,
|
|
10
|
-
defaultChecked: u,
|
|
11
|
-
required: i,
|
|
12
|
-
disabled: c,
|
|
13
|
-
value: l = "on",
|
|
14
|
-
onCheckedChange: b,
|
|
15
|
-
form: m,
|
|
16
|
-
...p
|
|
17
|
-
} = e, [d, j] = s.useState(null), E = H(a, (f) => j(f)), k = s.useRef(!1), w = d ? m || !!d.closest("form") : !0, [h = !1, N] = I({
|
|
18
|
-
prop: n,
|
|
19
|
-
defaultProp: u,
|
|
20
|
-
onChange: b
|
|
21
|
-
});
|
|
22
|
-
return /* @__PURE__ */ o.jsxs(A, { scope: t, checked: h, disabled: c, children: [
|
|
23
|
-
/* @__PURE__ */ o.jsx(
|
|
24
|
-
g.button,
|
|
25
|
-
{
|
|
26
|
-
type: "button",
|
|
27
|
-
role: "switch",
|
|
28
|
-
"aria-checked": h,
|
|
29
|
-
"aria-required": i,
|
|
30
|
-
"data-state": P(h),
|
|
31
|
-
"data-disabled": c ? "" : void 0,
|
|
32
|
-
disabled: c,
|
|
33
|
-
value: l,
|
|
34
|
-
...p,
|
|
35
|
-
ref: E,
|
|
36
|
-
onClick: M(e.onClick, (f) => {
|
|
37
|
-
N((T) => !T), w && (k.current = f.isPropagationStopped(), k.current || f.stopPropagation());
|
|
38
|
-
})
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
w && /* @__PURE__ */ o.jsx(
|
|
42
|
-
D,
|
|
43
|
-
{
|
|
44
|
-
control: d,
|
|
45
|
-
bubbles: !k.current,
|
|
46
|
-
name: r,
|
|
47
|
-
value: l,
|
|
48
|
-
checked: h,
|
|
49
|
-
required: i,
|
|
50
|
-
disabled: c,
|
|
51
|
-
form: m,
|
|
52
|
-
style: { transform: "translateX(-100%)" }
|
|
53
|
-
}
|
|
54
|
-
)
|
|
55
|
-
] });
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
x.displayName = v;
|
|
59
|
-
var C = "SwitchThumb", y = s.forwardRef(
|
|
60
|
-
(e, a) => {
|
|
61
|
-
const { __scopeSwitch: t, ...r } = e, n = O(C, t);
|
|
62
|
-
return /* @__PURE__ */ o.jsx(
|
|
63
|
-
g.span,
|
|
64
|
-
{
|
|
65
|
-
"data-state": P(n.checked),
|
|
66
|
-
"data-disabled": n.disabled ? "" : void 0,
|
|
67
|
-
...r,
|
|
68
|
-
ref: a
|
|
69
|
-
}
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
);
|
|
73
|
-
y.displayName = C;
|
|
74
|
-
var D = (e) => {
|
|
75
|
-
const { control: a, checked: t, bubbles: r = !0, ...n } = e, u = s.useRef(null), i = B(t), c = q(a);
|
|
76
|
-
return s.useEffect(() => {
|
|
77
|
-
const l = u.current, b = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(b, "checked").set;
|
|
78
|
-
if (i !== t && p) {
|
|
79
|
-
const d = new Event("click", { bubbles: r });
|
|
80
|
-
p.call(l, t), l.dispatchEvent(d);
|
|
81
|
-
}
|
|
82
|
-
}, [i, t, r]), /* @__PURE__ */ o.jsx(
|
|
83
|
-
"input",
|
|
84
|
-
{
|
|
85
|
-
type: "checkbox",
|
|
86
|
-
"aria-hidden": !0,
|
|
87
|
-
defaultChecked: t,
|
|
88
|
-
...n,
|
|
89
|
-
tabIndex: -1,
|
|
90
|
-
ref: u,
|
|
91
|
-
style: {
|
|
92
|
-
...e.style,
|
|
93
|
-
...c,
|
|
94
|
-
position: "absolute",
|
|
95
|
-
pointerEvents: "none",
|
|
96
|
-
opacity: 0,
|
|
97
|
-
margin: 0
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
};
|
|
102
|
-
function P(e) {
|
|
103
|
-
return e ? "checked" : "unchecked";
|
|
104
|
-
}
|
|
105
|
-
var R = x, F = y;
|
|
106
|
-
const L = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
|
|
107
|
-
R,
|
|
108
|
-
{
|
|
109
|
-
className: S(
|
|
110
|
-
"al-peer al-inline-flex al-h-6 al-w-11 al-shrink-0 al-cursor-pointer al-items-center al-rounded-full al-border-2 al-border-transparent al-transition-colors focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 focus-visible:al-ring-offset-background disabled:al-cursor-not-allowed disabled:al-opacity-50 data-[state=checked]:al-bg-primary data-[state=unchecked]:al-bg-input",
|
|
111
|
-
e
|
|
112
|
-
),
|
|
113
|
-
...a,
|
|
114
|
-
ref: t,
|
|
115
|
-
children: /* @__PURE__ */ o.jsx(
|
|
116
|
-
F,
|
|
117
|
-
{
|
|
118
|
-
className: S(
|
|
119
|
-
"al-pointer-events-none al-block al-h-5 al-w-5 al-rounded-full al-bg-background al-shadow-lg al-ring-0 al-transition-transform data-[state=checked]:al-translate-x-5 data-[state=unchecked]:al-translate-x-0"
|
|
120
|
-
)
|
|
121
|
-
}
|
|
122
|
-
)
|
|
123
|
-
}
|
|
124
|
-
));
|
|
125
|
-
L.displayName = R.displayName;
|
|
126
|
-
export {
|
|
127
|
-
L as S
|
|
128
|
-
};
|
package/dist/Table.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { j as t } from "./index2.js";
|
|
2
|
-
import { forwardRef as o } from "react";
|
|
3
|
-
import { c as e } from "./Stack.js";
|
|
4
|
-
const i = o(
|
|
5
|
-
({ className: a, isOpen: l = !1, children: s, ...r }, m) => l ? /* @__PURE__ */ t.jsx("div", { ref: m, className: e("al-transition-all", a), ...r, children: s }) : null
|
|
6
|
-
);
|
|
7
|
-
i.displayName = "Collapse";
|
|
8
|
-
const n = o(
|
|
9
|
-
({ className: a, ...l }, s) => /* @__PURE__ */ t.jsx(
|
|
10
|
-
"table",
|
|
11
|
-
{
|
|
12
|
-
ref: s,
|
|
13
|
-
className: e("al-w-full al-caption-bottom al-text-sm", a),
|
|
14
|
-
...l
|
|
15
|
-
}
|
|
16
|
-
)
|
|
17
|
-
);
|
|
18
|
-
n.displayName = "Table";
|
|
19
|
-
export {
|
|
20
|
-
i as C,
|
|
21
|
-
n as T
|
|
22
|
-
};
|