@altimateai/ui-components 0.0.69 → 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/CoachForm.js +1507 -1507
- package/dist/Stack.js +44 -43
- package/dist/shadcn/index.d.ts +2 -0
- package/dist/storybook/Input.stories.tsx +19 -0
- package/package.json +1 -1
package/dist/Stack.js
CHANGED
|
@@ -5353,54 +5353,55 @@ const go = H(({ className: e, ...t }, n) => /* @__PURE__ */ g.jsx(
|
|
|
5353
5353
|
));
|
|
5354
5354
|
go.displayName = mo.displayName;
|
|
5355
5355
|
const ql = l.forwardRef(
|
|
5356
|
-
({ className: e, type: t, icon: n, iconPosition: r = "left",
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
...o
|
|
5361
|
-
}
|
|
5362
|
-
) : t === "radio" ? /* @__PURE__ */ g.jsx(
|
|
5363
|
-
go,
|
|
5364
|
-
{
|
|
5365
|
-
className: e,
|
|
5366
|
-
...o
|
|
5367
|
-
}
|
|
5368
|
-
) : n ? /* @__PURE__ */ g.jsxs("div", { className: "al-relative al-w-full", children: [
|
|
5369
|
-
/* @__PURE__ */ g.jsx(
|
|
5370
|
-
"input",
|
|
5356
|
+
({ className: e, type: t, icon: n, iconPosition: r = "left", insetRing: o = !1, ...s }, a) => {
|
|
5357
|
+
const i = "al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-py-2 al-text-base al-ring-offset-background file:al-border-0 file:al-bg-transparent file:al-text-sm file:al-font-medium file:al-text-foreground placeholder:al-text-muted-foreground focus-visible:al-outline-none disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm", c = o ? "focus-visible:al-ring-1 focus-visible:al-ring-inset focus-visible:al-ring-ring" : "focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2";
|
|
5358
|
+
return t === "checkbox" ? /* @__PURE__ */ g.jsx(
|
|
5359
|
+
Kr,
|
|
5371
5360
|
{
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
"al-flex al-h-10 al-w-full al-rounded-md al-border al-border-input al-bg-background al-py-2 al-text-base al-ring-offset-background file:al-border-0 file:al-bg-transparent file:al-text-sm file:al-font-medium file:al-text-foreground placeholder:al-text-muted-foreground focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm",
|
|
5375
|
-
r === "left" ? "al-pl-10 al-pr-3" : "al-pl-3 al-pr-10",
|
|
5376
|
-
e
|
|
5377
|
-
),
|
|
5378
|
-
ref: s,
|
|
5379
|
-
...o
|
|
5361
|
+
className: e,
|
|
5362
|
+
...s
|
|
5380
5363
|
}
|
|
5381
|
-
)
|
|
5382
|
-
|
|
5383
|
-
"div",
|
|
5364
|
+
) : t === "radio" ? /* @__PURE__ */ g.jsx(
|
|
5365
|
+
go,
|
|
5384
5366
|
{
|
|
5385
|
-
className:
|
|
5386
|
-
|
|
5387
|
-
r === "left" ? "al-left-3" : "al-right-3"
|
|
5388
|
-
),
|
|
5389
|
-
children: /* @__PURE__ */ g.jsx(n, { size: 16, className: "al-text-muted-foreground" })
|
|
5367
|
+
className: e,
|
|
5368
|
+
...s
|
|
5390
5369
|
}
|
|
5391
|
-
)
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5370
|
+
) : n ? /* @__PURE__ */ g.jsxs("div", { className: "al-relative al-w-full", children: [
|
|
5371
|
+
/* @__PURE__ */ g.jsx(
|
|
5372
|
+
"input",
|
|
5373
|
+
{
|
|
5374
|
+
type: t,
|
|
5375
|
+
className: M(
|
|
5376
|
+
i,
|
|
5377
|
+
c,
|
|
5378
|
+
r === "left" ? "al-pl-10 al-pr-3" : "al-pl-3 al-pr-10",
|
|
5379
|
+
e
|
|
5380
|
+
),
|
|
5381
|
+
ref: a,
|
|
5382
|
+
...s
|
|
5383
|
+
}
|
|
5399
5384
|
),
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5385
|
+
/* @__PURE__ */ g.jsx(
|
|
5386
|
+
"div",
|
|
5387
|
+
{
|
|
5388
|
+
className: M(
|
|
5389
|
+
"al-absolute al-top-0 al-flex al-h-10 al-items-center al-pointer-events-none",
|
|
5390
|
+
r === "left" ? "al-left-3" : "al-right-3"
|
|
5391
|
+
),
|
|
5392
|
+
children: /* @__PURE__ */ g.jsx(n, { size: 16, className: "al-text-muted-foreground" })
|
|
5393
|
+
}
|
|
5394
|
+
)
|
|
5395
|
+
] }) : /* @__PURE__ */ g.jsx(
|
|
5396
|
+
"input",
|
|
5397
|
+
{
|
|
5398
|
+
type: t,
|
|
5399
|
+
className: M(i, c, "al-px-3", e),
|
|
5400
|
+
ref: a,
|
|
5401
|
+
...s
|
|
5402
|
+
}
|
|
5403
|
+
);
|
|
5404
|
+
}
|
|
5404
5405
|
);
|
|
5405
5406
|
ql.displayName = "Input";
|
|
5406
5407
|
const Zl = l.forwardRef(
|
package/dist/shadcn/index.d.ts
CHANGED
|
@@ -68,6 +68,8 @@ interface InputProps extends Omit<React$1.ComponentProps<"input">, "ref"> {
|
|
|
68
68
|
className?: string;
|
|
69
69
|
}>;
|
|
70
70
|
iconPosition?: "left" | "right";
|
|
71
|
+
/** When true, the focus ring appears inside the input border instead of outside */
|
|
72
|
+
insetRing?: boolean;
|
|
71
73
|
}
|
|
72
74
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
73
75
|
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
14
14
|
icon?: React.ComponentType<{ size?: string | number; className?: string }>;
|
|
15
15
|
iconPosition?: "left" | "right";
|
|
16
|
+
insetRing?: boolean;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
export default {
|
|
@@ -30,6 +31,10 @@ export default {
|
|
|
30
31
|
control: "select",
|
|
31
32
|
options: ["left", "right"],
|
|
32
33
|
},
|
|
34
|
+
insetRing: {
|
|
35
|
+
control: "boolean",
|
|
36
|
+
description: "When true, the focus ring appears inside the input border instead of outside",
|
|
37
|
+
},
|
|
33
38
|
},
|
|
34
39
|
} as Meta<typeof Input>;
|
|
35
40
|
|
|
@@ -124,6 +129,20 @@ DisabledWithIcon.args = {
|
|
|
124
129
|
disabled: true,
|
|
125
130
|
};
|
|
126
131
|
|
|
132
|
+
export const InsetRing = Template.bind({});
|
|
133
|
+
InsetRing.args = {
|
|
134
|
+
placeholder: "Focus ring appears inside",
|
|
135
|
+
insetRing: true,
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export const InsetRingWithIcon = Template.bind({});
|
|
139
|
+
InsetRingWithIcon.args = {
|
|
140
|
+
placeholder: "Inset ring with icon",
|
|
141
|
+
icon: IconMail,
|
|
142
|
+
iconPosition: "left",
|
|
143
|
+
insetRing: true,
|
|
144
|
+
};
|
|
145
|
+
|
|
127
146
|
// InputPassword Stories
|
|
128
147
|
const PasswordTemplate: StoryFn<ComponentProps<typeof InputPassword>> = args => (
|
|
129
148
|
<div className="al-p-4 al-max-w-md">
|