@codarmais/ui 0.1.18 → 0.1.20

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 (34) hide show
  1. package/dist/components/Button/Button.d.ts +8 -0
  2. package/dist/components/Button/Button.stories.d.ts +10 -0
  3. package/dist/components/Button/Button.styles.d.ts +7 -0
  4. package/dist/components/Button/index.d.ts +3 -0
  5. package/dist/components/Layout/Column/Column.d.ts +5 -0
  6. package/dist/components/Layout/Column/Column.stories.d.ts +7 -0
  7. package/dist/components/Layout/Column/index.d.ts +2 -0
  8. package/dist/components/Layout/Container/Container.d.ts +10 -0
  9. package/dist/components/Layout/Container/Container.stories.d.ts +7 -0
  10. package/dist/components/Layout/Container/index.d.ts +2 -0
  11. package/dist/components/Layout/Row/Row.d.ts +2 -0
  12. package/dist/components/Layout/Row/Row.stories.d.ts +7 -0
  13. package/dist/components/Layout/Row/index.d.ts +1 -0
  14. package/dist/components/Layout/index.d.ts +6 -0
  15. package/dist/components/Layout/types/Layout.types.d.ts +10 -0
  16. package/dist/components/Modal/Modal.d.ts +11 -0
  17. package/dist/components/Modal/Modal.stories.d.ts +8 -0
  18. package/dist/components/Modal/Modal.styles.d.ts +4 -0
  19. package/dist/components/Modal/index.d.ts +2 -0
  20. package/dist/components/Typography/Heading.d.ts +8 -0
  21. package/dist/components/Typography/Heading.stories.d.ts +11 -0
  22. package/dist/components/Typography/Text.d.ts +8 -0
  23. package/dist/components/Typography/Text.stories.d.ts +13 -0
  24. package/dist/components/Typography/index.d.ts +4 -0
  25. package/dist/components/index.d.ts +8 -0
  26. package/dist/index.cjs.js +212 -27
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.esm.js +619 -341
  29. package/dist/theme/Gradients.stories.d.ts +5 -0
  30. package/dist/theme/Icons.stories.d.ts +5 -0
  31. package/dist/theme/colors.d.ts +9 -3
  32. package/dist/theme/colors.stories.d.ts +5 -0
  33. package/dist/theme/theme.d.ts +9 -3
  34. package/package.json +2 -2
@@ -0,0 +1,8 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from "react";
2
+ import { type ButtonVariant } from "./Button.styles";
3
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
4
+ variant?: ButtonVariant;
5
+ fullWidth?: boolean;
6
+ iconLeft?: ReactNode;
7
+ }
8
+ export declare const Button: ({ variant, children, fullWidth, iconLeft, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Button } from "./Button";
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Button>;
6
+ export declare const Primary: Story;
7
+ export declare const Outlined: Story;
8
+ export declare const WithIcon: Story;
9
+ export declare const FullWidth: Story;
10
+ export declare const Disabled: Story;
@@ -0,0 +1,7 @@
1
+ export type ButtonVariant = "primary" | "outlined" | "secondary" | "danger" | "alert" | "text";
2
+ export interface ButtonStyleProps {
3
+ $variant: ButtonVariant;
4
+ $fullWidth?: boolean;
5
+ }
6
+ export declare const StyledButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonStyleProps>> & string;
7
+ export declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,3 @@
1
+ export { Button } from "./Button";
2
+ export type { ButtonProps } from "./Button";
3
+ export type { ButtonVariant } from "./Button.styles";
@@ -0,0 +1,5 @@
1
+ import type { LayoutProps } from "../types/Layout.types";
2
+ export interface ColumnProps extends LayoutProps {
3
+ size?: number;
4
+ }
5
+ export declare const Column: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ColumnProps>> & string;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Column } from "./Column";
3
+ declare const meta: Meta<typeof Column>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Column>;
6
+ export declare const Default: Story;
7
+ export declare const WithBackgroundImage: Story;
@@ -0,0 +1,2 @@
1
+ export { Column } from "./Column";
2
+ export type { ColumnProps } from "./Column";
@@ -0,0 +1,10 @@
1
+ import type { LayoutProps } from "../types/Layout.types";
2
+ export interface ContainerProps extends LayoutProps {
3
+ /** Transient: use $flexColumn to avoid forwarding to DOM */
4
+ $flexColumn?: boolean;
5
+ /** Transient: use $flexWrapper to avoid forwarding to DOM */
6
+ $flexWrapper?: boolean;
7
+ /** Transient: use $flexGrow to avoid forwarding to DOM */
8
+ $flexGrow?: boolean;
9
+ }
10
+ export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ContainerProps>> & string;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Container } from "./Container";
3
+ declare const meta: Meta<typeof Container>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Container>;
6
+ export declare const Default: Story;
7
+ export declare const WithBackgroundImage: Story;
@@ -0,0 +1,2 @@
1
+ export { Container } from "./Container";
2
+ export type { ContainerProps } from "./Container";
@@ -0,0 +1,2 @@
1
+ import type { LayoutProps } from "../types/Layout.types";
2
+ export declare const Row: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, LayoutProps>> & string;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Row } from "./Row";
3
+ declare const meta: Meta<typeof Row>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Row>;
6
+ export declare const Default: Story;
7
+ export declare const ThreeColumns: Story;
@@ -0,0 +1 @@
1
+ export { Row } from "./Row";
@@ -0,0 +1,6 @@
1
+ export { Column } from "./Column";
2
+ export { Row } from "./Row";
3
+ export { Container } from "./Container";
4
+ export type { LayoutProps } from "./types/Layout.types";
5
+ export type { ContainerProps } from "./Container";
6
+ export type { ColumnProps } from "./Column";
@@ -0,0 +1,10 @@
1
+ export interface LayoutProps {
2
+ backgroundColor?: string;
3
+ backgroundImage?: string;
4
+ fixedBackground?: boolean;
5
+ padding?: string;
6
+ pt?: string;
7
+ pb?: string;
8
+ px?: string;
9
+ py?: string;
10
+ }
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ export interface ModalProps {
3
+ icon: ReactNode;
4
+ title: string;
5
+ message: string;
6
+ onConfirm: () => void;
7
+ onCancel: () => void;
8
+ confirmText?: string;
9
+ cancelText?: string;
10
+ }
11
+ export declare const Modal: ({ icon, title, message, onConfirm, onCancel, confirmText, cancelText, }: ModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Modal } from "./Modal";
3
+ declare const meta: Meta<typeof Modal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Modal>;
6
+ export declare const Default: Story;
7
+ export declare const Danger: Story;
8
+ export declare const Success: Story;
@@ -0,0 +1,4 @@
1
+ export declare const Overlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const ModalWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ export declare const IconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ export declare const ButtonsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -0,0 +1,2 @@
1
+ export { Modal } from "./Modal";
2
+ export type { ModalProps } from "./Modal";
@@ -0,0 +1,8 @@
1
+ export type HeadingLevel = 1 | 2 | 3 | 4;
2
+ export interface HeadingProps {
3
+ $level?: HeadingLevel;
4
+ color?: string;
5
+ $weight?: "normal" | "medium" | "bold";
6
+ $align?: "left" | "center" | "right";
7
+ }
8
+ export declare const Heading: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, HeadingProps>> & string;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Heading } from "./Heading";
3
+ declare const meta: Meta<typeof Heading>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Heading>;
6
+ export declare const Level1: Story;
7
+ export declare const Level2: Story;
8
+ export declare const Level3: Story;
9
+ export declare const Level4: Story;
10
+ export declare const Center: Story;
11
+ export declare const CustomColor: Story;
@@ -0,0 +1,8 @@
1
+ export interface TextProps {
2
+ size?: "sm" | "md" | "lg" | "xlg";
3
+ weight?: "light" | "normal" | "bold";
4
+ color?: string;
5
+ $align?: "left" | "center" | "right";
6
+ muted?: boolean;
7
+ }
8
+ export declare const Text: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, TextProps>> & string;
@@ -0,0 +1,13 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Text } from "./Text";
3
+ declare const meta: Meta<typeof Text>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Text>;
6
+ export declare const Small: Story;
7
+ export declare const Medium: Story;
8
+ export declare const Large: Story;
9
+ export declare const ExtraLarge: Story;
10
+ export declare const Muted: Story;
11
+ export declare const Bold: Story;
12
+ export declare const Center: Story;
13
+ export declare const Paragraph: Story;
@@ -0,0 +1,4 @@
1
+ export { Heading } from "./Heading";
2
+ export { Text } from "./Text";
3
+ export type { HeadingProps, HeadingLevel } from "./Heading";
4
+ export type { TextProps } from "./Text";
@@ -4,9 +4,17 @@ export { ToggleButton } from "./ToggleButton";
4
4
  export { Logo } from "./Logo";
5
5
  export { Navbar } from "./Navbar";
6
6
  export { BackBtn } from "./BackBtn";
7
+ export { Container, Row, Column } from "./Layout";
8
+ export { Heading, Text } from "./Typography";
9
+ export { Button } from "./Button";
10
+ export { Modal } from "./Modal";
7
11
  export type { NavBarProps } from "./Navbar";
8
12
  export type { MenuItemData, MenuProps } from "./Menu";
9
13
  export type { MenuItemProps } from "./MenuItem";
10
14
  export type { ToggleButtonProps } from "./ToggleButton";
11
15
  export type { LogoProps, Variant } from "./Logo";
12
16
  export type { BackBtnProps } from "./BackBtn";
17
+ export type { ContainerProps, ColumnProps, LayoutProps } from "./Layout";
18
+ export type { HeadingProps, HeadingLevel, TextProps } from "./Typography";
19
+ export type { ButtonProps, ButtonVariant } from "./Button";
20
+ export type { ModalProps } from "./Modal";