@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.
@@ -1,6 +1,6 @@
1
1
  import { Meta, StoryObj } from "@storybook/react";
2
2
  import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from "../shadcn";
3
- import { Card, CardContent } from "../card/Card";
3
+ import { Card, CardContent } from "../shadcn";
4
4
 
5
5
  const meta: Meta<typeof Carousel> = {
6
6
  title: "Shadcn/Components/Carousel",
@@ -1,11 +1,10 @@
1
1
  import { Meta, StoryFn } from "@storybook/react";
2
- import { Input } from "../shadcn";
3
- import { InputHTMLAttributes } from "react";
2
+ import { Input, InputPassword } from "../shadcn";
3
+ import { InputHTMLAttributes, ComponentProps } from "react";
4
4
  import {
5
5
  IconUser,
6
6
  IconMail,
7
7
  IconSearch,
8
- IconLock,
9
8
  IconPhone,
10
9
  IconMapPin,
11
10
  IconCreditCard,
@@ -14,6 +13,7 @@ import {
14
13
  type InputProps = InputHTMLAttributes<HTMLInputElement> & {
15
14
  icon?: React.ComponentType<{ size?: string | number; className?: string }>;
16
15
  iconPosition?: "left" | "right";
16
+ insetRing?: boolean;
17
17
  };
18
18
 
19
19
  export default {
@@ -31,6 +31,10 @@ export default {
31
31
  control: "select",
32
32
  options: ["left", "right"],
33
33
  },
34
+ insetRing: {
35
+ control: "boolean",
36
+ description: "When true, the focus ring appears inside the input border instead of outside",
37
+ },
34
38
  },
35
39
  } as Meta<typeof Input>;
36
40
 
@@ -59,12 +63,6 @@ WithLabel.args = {
59
63
  "aria-label": "Email",
60
64
  };
61
65
 
62
- export const Password = Template.bind({});
63
- Password.args = {
64
- type: "password",
65
- placeholder: "Enter password",
66
- };
67
-
68
66
  export const WithError = Template.bind({});
69
67
  WithError.args = {
70
68
  placeholder: "Error state",
@@ -94,14 +92,6 @@ EmailWithIcon.args = {
94
92
  iconPosition: "left",
95
93
  };
96
94
 
97
- export const PasswordWithIcon = Template.bind({});
98
- PasswordWithIcon.args = {
99
- type: "password",
100
- placeholder: "Enter password",
101
- icon: IconLock,
102
- iconPosition: "left",
103
- };
104
-
105
95
  export const UserInput = Template.bind({});
106
96
  UserInput.args = {
107
97
  placeholder: "Enter username",
@@ -138,3 +128,29 @@ DisabledWithIcon.args = {
138
128
  iconPosition: "left",
139
129
  disabled: true,
140
130
  };
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
+
146
+ // InputPassword Stories
147
+ const PasswordTemplate: StoryFn<ComponentProps<typeof InputPassword>> = args => (
148
+ <div className="al-p-4 al-max-w-md">
149
+ <InputPassword {...args} />
150
+ </div>
151
+ );
152
+
153
+ export const Password = PasswordTemplate.bind({});
154
+ Password.args = {
155
+ placeholder: "Enter password",
156
+ };
@@ -117,6 +117,7 @@ interface ChatbotProps {
117
117
  classNames?: {
118
118
  chatbot?: string;
119
119
  chatMessages?: string;
120
+ messageItem?: string;
120
121
  };
121
122
  initialMessage?: string;
122
123
  submitInitialMessageOnMount?: boolean;
@@ -246,6 +247,7 @@ interface ChatState {
246
247
  classNames?: {
247
248
  chatbot?: string;
248
249
  chatMessages?: string;
250
+ messageItem?: string;
249
251
  };
250
252
  }
251
253
  declare const todoItemSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.69-beta1",
3
+ "version": "0.0.70-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"