@altimateai/ui-components 0.0.1-beta.5 → 0.0.1-beta.6

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.
Files changed (33) hide show
  1. package/dist/CoachForm.js +1 -1
  2. package/dist/storybook/Accordion.stories.tsx +52 -52
  3. package/dist/storybook/Alert.stories.tsx +61 -61
  4. package/dist/storybook/AlertDialog.stories.tsx +161 -161
  5. package/dist/storybook/Avatar.stories.tsx +58 -58
  6. package/dist/storybook/Badge.stories.tsx +36 -36
  7. package/dist/storybook/Button.stories.tsx +109 -109
  8. package/dist/storybook/Card.stories.tsx +69 -69
  9. package/dist/storybook/Checkbox.stories.tsx +65 -65
  10. package/dist/storybook/Command.stories.tsx +35 -35
  11. package/dist/storybook/DropdownMenu.stories.tsx +36 -36
  12. package/dist/storybook/Form.stories.tsx +114 -114
  13. package/dist/storybook/HoverCard.stories.tsx +99 -99
  14. package/dist/storybook/Input.stories.tsx +53 -53
  15. package/dist/storybook/Label.stories.tsx +42 -42
  16. package/dist/storybook/Menubar.stories.tsx +159 -159
  17. package/dist/storybook/Pagination.stories.tsx +152 -152
  18. package/dist/storybook/Popover.stories.tsx +23 -23
  19. package/dist/storybook/Progress.stories.tsx +89 -89
  20. package/dist/storybook/RadioGroup.stories.tsx +58 -58
  21. package/dist/storybook/Resizable.stories.tsx +119 -119
  22. package/dist/storybook/ScrollArea.stories.tsx +101 -101
  23. package/dist/storybook/Select.stories.tsx +95 -95
  24. package/dist/storybook/Sheet.stories.tsx +69 -69
  25. package/dist/storybook/Sidebar.stories.tsx +97 -97
  26. package/dist/storybook/Slider.stories.tsx +79 -79
  27. package/dist/storybook/Switch.stories.tsx +90 -90
  28. package/dist/storybook/Textarea.stories.tsx +50 -50
  29. package/dist/storybook/Toast.stories.tsx +107 -107
  30. package/dist/storybook/Tooltip.stories.tsx +28 -28
  31. package/dist/storybook/Typography.stories.tsx +178 -178
  32. package/package.json +2 -2
  33. package/readme.md +11 -11
@@ -1,99 +1,99 @@
1
- import { Meta, StoryFn } from "@storybook/react";
2
- import {
3
- Avatar,
4
- AvatarFallback,
5
- AvatarImage,
6
- Button,
7
- HoverCard,
8
- HoverCardContent,
9
- HoverCardTrigger,
10
- } from "../shadcn";
11
- import { CloseIcon } from "@ac-assets/icons";
12
-
13
- export default {
14
- title: "Shadcn/Components/HoverCard",
15
- component: HoverCard,
16
- parameters: {
17
- layout: "centered",
18
- },
19
- } as Meta;
20
-
21
- const Template: StoryFn = () => (
22
- <HoverCard>
23
- <HoverCardTrigger asChild>
24
- <Button variant="link">@nextjs</Button>
25
- </HoverCardTrigger>
26
- <HoverCardContent className="al-w-80">
27
- <div className="al-flex al-justify-between al-space-x-4">
28
- <Avatar>
29
- <AvatarImage src="https://github.com/vercel.png" />
30
- <AvatarFallback>VC</AvatarFallback>
31
- </Avatar>
32
- <div className="al-space-y-1">
33
- <h4 className="al-text-sm al-font-semibold">@nextjs</h4>
34
- <p className="al-text-sm">The React Framework – created and maintained by @vercel.</p>
35
- <div className="al-flex al-items-center al-pt-2">
36
- <CloseIcon className="al-mr-2 al-h-4 al-w-4 al-opacity-70" />{" "}
37
- <span className="al-text-xs al-text-muted-foreground">Joined December 2021</span>
38
- </div>
39
- </div>
40
- </div>
41
- </HoverCardContent>
42
- </HoverCard>
43
- );
44
-
45
- export const Default = Template.bind({});
46
-
47
- export const WithCustomAlignment: StoryFn = () => (
48
- <HoverCard>
49
- <HoverCardTrigger asChild>
50
- <Button variant="outline">Hover (Right Aligned)</Button>
51
- </HoverCardTrigger>
52
- <HoverCardContent align="end" className="al-w-80">
53
- <div className="al-space-y-2">
54
- <h4 className="al-text-sm al-font-semibold">Right Aligned Content</h4>
55
- <p className="al-text-sm">
56
- This hover card&apos;s content is aligned to the end (right) of the trigger element. It
57
- also has a custom width of 80 units.
58
- </p>
59
- </div>
60
- </HoverCardContent>
61
- </HoverCard>
62
- );
63
-
64
- export const WithCustomOffset: StoryFn = () => (
65
- <HoverCard>
66
- <HoverCardTrigger asChild>
67
- <Button variant="outline">Hover (Custom Offset)</Button>
68
- </HoverCardTrigger>
69
- <HoverCardContent sideOffset={10}>
70
- <div className="al-space-y-2">
71
- <h4 className="al-text-sm al-font-semibold">Custom Offset Content</h4>
72
- <p className="al-text-sm">
73
- This hover card has a larger offset from the trigger element (10 units instead of the
74
- default 4).
75
- </p>
76
- </div>
77
- </HoverCardContent>
78
- </HoverCard>
79
- );
80
-
81
- export const WithRichContent: StoryFn = () => (
82
- <HoverCard>
83
- <HoverCardTrigger asChild>
84
- <Button variant="outline">User Profile</Button>
85
- </HoverCardTrigger>
86
- <HoverCardContent className="al-w-80">
87
- <div className="al-flex al-justify-between al-space-x-4">
88
- <div className="al-space-y-1">
89
- <h4 className="al-text-sm al-font-semibold">@johndoe</h4>
90
- <p className="al-text-sm">Staff Engineer at Acme Corp</p>
91
- <div className="al-flex al-items-center al-pt-2">
92
- <span className="al-text-xs al-text-muted-foreground">Joined December 2021</span>
93
- </div>
94
- </div>
95
- <div className="al-w-12 al-h-12 al-rounded-full al-bg-secondary" />
96
- </div>
97
- </HoverCardContent>
98
- </HoverCard>
99
- );
1
+ import { Meta, StoryFn } from "@storybook/react";
2
+ import {
3
+ Avatar,
4
+ AvatarFallback,
5
+ AvatarImage,
6
+ Button,
7
+ HoverCard,
8
+ HoverCardContent,
9
+ HoverCardTrigger,
10
+ } from "../shadcn";
11
+ import { CloseIcon } from "@ac-assets/icons";
12
+
13
+ export default {
14
+ title: "Shadcn/Components/HoverCard",
15
+ component: HoverCard,
16
+ parameters: {
17
+ layout: "centered",
18
+ },
19
+ } as Meta;
20
+
21
+ const Template: StoryFn = () => (
22
+ <HoverCard>
23
+ <HoverCardTrigger asChild>
24
+ <Button variant="link">@nextjs</Button>
25
+ </HoverCardTrigger>
26
+ <HoverCardContent className="al-w-80">
27
+ <div className="al-flex al-justify-between al-space-x-4">
28
+ <Avatar>
29
+ <AvatarImage src="https://github.com/vercel.png" />
30
+ <AvatarFallback>VC</AvatarFallback>
31
+ </Avatar>
32
+ <div className="al-space-y-1">
33
+ <h4 className="al-text-sm al-font-semibold">@nextjs</h4>
34
+ <p className="al-text-sm">The React Framework – created and maintained by @vercel.</p>
35
+ <div className="al-flex al-items-center al-pt-2">
36
+ <CloseIcon className="al-mr-2 al-h-4 al-w-4 al-opacity-70" />{" "}
37
+ <span className="al-text-xs al-text-muted-foreground">Joined December 2021</span>
38
+ </div>
39
+ </div>
40
+ </div>
41
+ </HoverCardContent>
42
+ </HoverCard>
43
+ );
44
+
45
+ export const Default = Template.bind({});
46
+
47
+ export const WithCustomAlignment: StoryFn = () => (
48
+ <HoverCard>
49
+ <HoverCardTrigger asChild>
50
+ <Button variant="outline">Hover (Right Aligned)</Button>
51
+ </HoverCardTrigger>
52
+ <HoverCardContent align="end" className="al-w-80">
53
+ <div className="al-space-y-2">
54
+ <h4 className="al-text-sm al-font-semibold">Right Aligned Content</h4>
55
+ <p className="al-text-sm">
56
+ This hover card&apos;s content is aligned to the end (right) of the trigger element. It
57
+ also has a custom width of 80 units.
58
+ </p>
59
+ </div>
60
+ </HoverCardContent>
61
+ </HoverCard>
62
+ );
63
+
64
+ export const WithCustomOffset: StoryFn = () => (
65
+ <HoverCard>
66
+ <HoverCardTrigger asChild>
67
+ <Button variant="outline">Hover (Custom Offset)</Button>
68
+ </HoverCardTrigger>
69
+ <HoverCardContent sideOffset={10}>
70
+ <div className="al-space-y-2">
71
+ <h4 className="al-text-sm al-font-semibold">Custom Offset Content</h4>
72
+ <p className="al-text-sm">
73
+ This hover card has a larger offset from the trigger element (10 units instead of the
74
+ default 4).
75
+ </p>
76
+ </div>
77
+ </HoverCardContent>
78
+ </HoverCard>
79
+ );
80
+
81
+ export const WithRichContent: StoryFn = () => (
82
+ <HoverCard>
83
+ <HoverCardTrigger asChild>
84
+ <Button variant="outline">User Profile</Button>
85
+ </HoverCardTrigger>
86
+ <HoverCardContent className="al-w-80">
87
+ <div className="al-flex al-justify-between al-space-x-4">
88
+ <div className="al-space-y-1">
89
+ <h4 className="al-text-sm al-font-semibold">@johndoe</h4>
90
+ <p className="al-text-sm">Staff Engineer at Acme Corp</p>
91
+ <div className="al-flex al-items-center al-pt-2">
92
+ <span className="al-text-xs al-text-muted-foreground">Joined December 2021</span>
93
+ </div>
94
+ </div>
95
+ <div className="al-w-12 al-h-12 al-rounded-full al-bg-secondary" />
96
+ </div>
97
+ </HoverCardContent>
98
+ </HoverCard>
99
+ );
@@ -1,53 +1,53 @@
1
- import { Meta, StoryFn } from "@storybook/react";
2
- import { Input } from "../shadcn";
3
- import { InputHTMLAttributes } from "react";
4
-
5
- type InputProps = InputHTMLAttributes<HTMLInputElement>;
6
-
7
- export default {
8
- title: "Shadcn/Components/Input",
9
- component: Input,
10
- argTypes: {
11
- disabled: {
12
- control: "boolean",
13
- },
14
- type: {
15
- control: "select",
16
- options: ["text", "password", "email", "number"],
17
- },
18
- },
19
- } as Meta<typeof Input>;
20
-
21
- const Template: StoryFn<InputProps> = (args: InputProps) => <Input {...args} />;
22
-
23
- export const Default = Template.bind({});
24
- Default.args = {
25
- placeholder: "Enter text...",
26
- };
27
-
28
- export const Disabled = Template.bind({});
29
- Disabled.args = {
30
- placeholder: "Disabled input",
31
- disabled: true,
32
- };
33
-
34
- export const WithLabel = Template.bind({});
35
- WithLabel.args = {
36
- placeholder: "Enter email",
37
- type: "email",
38
- id: "email",
39
- "aria-label": "Email",
40
- };
41
-
42
- export const Password = Template.bind({});
43
- Password.args = {
44
- type: "password",
45
- placeholder: "Enter password",
46
- };
47
-
48
- export const WithError = Template.bind({});
49
- WithError.args = {
50
- placeholder: "Error state",
51
- className: "border-red-500",
52
- "aria-invalid": true,
53
- };
1
+ import { Meta, StoryFn } from "@storybook/react";
2
+ import { Input } from "../shadcn";
3
+ import { InputHTMLAttributes } from "react";
4
+
5
+ type InputProps = InputHTMLAttributes<HTMLInputElement>;
6
+
7
+ export default {
8
+ title: "Shadcn/Components/Input",
9
+ component: Input,
10
+ argTypes: {
11
+ disabled: {
12
+ control: "boolean",
13
+ },
14
+ type: {
15
+ control: "select",
16
+ options: ["text", "password", "email", "number"],
17
+ },
18
+ },
19
+ } as Meta<typeof Input>;
20
+
21
+ const Template: StoryFn<InputProps> = (args: InputProps) => <Input {...args} />;
22
+
23
+ export const Default = Template.bind({});
24
+ Default.args = {
25
+ placeholder: "Enter text...",
26
+ };
27
+
28
+ export const Disabled = Template.bind({});
29
+ Disabled.args = {
30
+ placeholder: "Disabled input",
31
+ disabled: true,
32
+ };
33
+
34
+ export const WithLabel = Template.bind({});
35
+ WithLabel.args = {
36
+ placeholder: "Enter email",
37
+ type: "email",
38
+ id: "email",
39
+ "aria-label": "Email",
40
+ };
41
+
42
+ export const Password = Template.bind({});
43
+ Password.args = {
44
+ type: "password",
45
+ placeholder: "Enter password",
46
+ };
47
+
48
+ export const WithError = Template.bind({});
49
+ WithError.args = {
50
+ placeholder: "Error state",
51
+ className: "border-red-500",
52
+ "aria-invalid": true,
53
+ };
@@ -1,42 +1,42 @@
1
- import { Meta, StoryFn } from "@storybook/react";
2
- import { Label, Input } from "../shadcn";
3
-
4
- export default {
5
- title: "Shadcn/Components/Label",
6
- component: Label,
7
- argTypes: {
8
- disabled: {
9
- control: "boolean",
10
- },
11
- },
12
- } as Meta;
13
-
14
- const Template: StoryFn = args => <Label {...args} />;
15
-
16
- export const Default = Template.bind({});
17
- Default.args = {
18
- children: "Label Text",
19
- };
20
-
21
- export const WithInput = () => (
22
- <div className="grid w-full max-w-sm items-center gap-1.5">
23
- <Label htmlFor="email">Email</Label>
24
- <Input type="email" id="email" placeholder="Enter your email" />
25
- </div>
26
- );
27
-
28
- export const Required = Template.bind({});
29
- Required.args = {
30
- children: (
31
- <span>
32
- Label Text <span className="text-red-500">*</span>
33
- </span>
34
- ),
35
- };
36
-
37
- export const Disabled = () => (
38
- <div className="grid w-full max-w-sm items-center gap-1.5">
39
- <Label htmlFor="disabled">Disabled Label</Label>
40
- <Input id="disabled" disabled />
41
- </div>
42
- );
1
+ import { Meta, StoryFn } from "@storybook/react";
2
+ import { Label, Input } from "../shadcn";
3
+
4
+ export default {
5
+ title: "Shadcn/Components/Label",
6
+ component: Label,
7
+ argTypes: {
8
+ disabled: {
9
+ control: "boolean",
10
+ },
11
+ },
12
+ } as Meta;
13
+
14
+ const Template: StoryFn = args => <Label {...args} />;
15
+
16
+ export const Default = Template.bind({});
17
+ Default.args = {
18
+ children: "Label Text",
19
+ };
20
+
21
+ export const WithInput = () => (
22
+ <div className="grid w-full max-w-sm items-center gap-1.5">
23
+ <Label htmlFor="email">Email</Label>
24
+ <Input type="email" id="email" placeholder="Enter your email" />
25
+ </div>
26
+ );
27
+
28
+ export const Required = Template.bind({});
29
+ Required.args = {
30
+ children: (
31
+ <span>
32
+ Label Text <span className="text-red-500">*</span>
33
+ </span>
34
+ ),
35
+ };
36
+
37
+ export const Disabled = () => (
38
+ <div className="grid w-full max-w-sm items-center gap-1.5">
39
+ <Label htmlFor="disabled">Disabled Label</Label>
40
+ <Input id="disabled" disabled />
41
+ </div>
42
+ );