@eloisallena/web_components 1.0.0

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 (58) hide show
  1. package/README.md +36 -0
  2. package/dist/.next/dev/types/validator.d.ts +1 -0
  3. package/dist/.next/types/validator.d.ts +1 -0
  4. package/dist/.storybook/main.d.ts +3 -0
  5. package/dist/.storybook/preview.d.ts +4 -0
  6. package/dist/index.d.ts +2 -0
  7. package/dist/next.config.d.ts +3 -0
  8. package/dist/src/app/layout.d.ts +5 -0
  9. package/dist/src/app/page.d.ts +1 -0
  10. package/dist/src/component/breadcrumbs/Breadcrumbs.d.ts +9 -0
  11. package/dist/src/component/breadcrumbs/index.d.ts +1 -0
  12. package/dist/src/component/button/Button.d.ts +8 -0
  13. package/dist/src/component/button/index.d.ts +1 -0
  14. package/dist/src/component/card/Card.d.ts +6 -0
  15. package/dist/src/component/card/CardContent.d.ts +6 -0
  16. package/dist/src/component/card/CardFooter.d.ts +5 -0
  17. package/dist/src/component/card/CardImage.d.ts +7 -0
  18. package/dist/src/component/card/index.d.ts +4 -0
  19. package/dist/src/component/footer/Cfooter.d.ts +6 -0
  20. package/dist/src/component/footer/FooterBottom.d.ts +5 -0
  21. package/dist/src/component/footer/FooterContact.d.ts +11 -0
  22. package/dist/src/component/footer/FooterIcon.d.ts +7 -0
  23. package/dist/src/component/footer/QuickLink.d.ts +11 -0
  24. package/dist/src/component/footer/index.d.ts +5 -0
  25. package/dist/src/component/form/Cform.d.ts +6 -0
  26. package/dist/src/component/form/index.d.ts +1 -0
  27. package/dist/src/component/header/Cheader.d.ts +7 -0
  28. package/dist/src/component/header/Drawer.d.ts +12 -0
  29. package/dist/src/component/header/Icon.d.ts +9 -0
  30. package/dist/src/component/header/NavBar.d.ts +12 -0
  31. package/dist/src/component/header/SearchBar.d.ts +8 -0
  32. package/dist/src/component/header/index.d.ts +5 -0
  33. package/dist/src/component/input/CheckBox.d.ts +12 -0
  34. package/dist/src/component/input/Select.d.ts +17 -0
  35. package/dist/src/component/input/TextField.d.ts +11 -0
  36. package/dist/src/component/input/index.d.ts +3 -0
  37. package/dist/src/component/modal/Modal.d.ts +8 -0
  38. package/dist/src/component/modal/index.d.ts +1 -0
  39. package/dist/src/component/section/Section.d.ts +9 -0
  40. package/dist/src/component/section/index.d.ts +1 -0
  41. package/dist/src/component/spinner/Loader.d.ts +1 -0
  42. package/dist/src/component/spinner/index.d.ts +1 -0
  43. package/dist/src/component/stories/LandingLayout.d.ts +6 -0
  44. package/dist/src/component/stories/index.d.ts +1 -0
  45. package/dist/src/component/table/Ctable.d.ts +8 -0
  46. package/dist/src/component/table/TableBody.d.ts +7 -0
  47. package/dist/src/component/table/TableCell.d.ts +8 -0
  48. package/dist/src/component/table/TableHead.d.ts +7 -0
  49. package/dist/src/component/table/TableRow.d.ts +8 -0
  50. package/dist/src/component/table/alignment.d.ts +5 -0
  51. package/dist/src/component/table/index.d.ts +5 -0
  52. package/dist/src/component/table/types.d.ts +13 -0
  53. package/dist/src/index.d.ts +26 -0
  54. package/dist/vite.config.d.ts +2 -0
  55. package/dist/vitest.config.d.ts +2 -0
  56. package/dist/web-components.cjs.ts +304 -0
  57. package/dist/web-components.es.ts +2757 -0
  58. package/package.json +56 -0
package/README.md ADDED
@@ -0,0 +1,36 @@
1
+ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
2
+
3
+ ## Getting Started
4
+
5
+ First, run the development server:
6
+
7
+ ```bash
8
+ npm run dev
9
+ # or
10
+ yarn dev
11
+ # or
12
+ pnpm dev
13
+ # or
14
+ bun dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20
+
21
+ This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
+
23
+ ## Learn More
24
+
25
+ To learn more about Next.js, take a look at the following resources:
26
+
27
+ - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
+ - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29
+
30
+ You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
31
+
32
+ ## Deploy on Vercel
33
+
34
+ The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
+
36
+ Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { StorybookConfig } from '@storybook/nextjs-vite';
2
+ declare const config: StorybookConfig;
3
+ export default config;
@@ -0,0 +1,4 @@
1
+ import { Preview } from '@storybook/nextjs-vite';
2
+ export declare const decorators: import('storybook/internal/csf').DecoratorFunction<any>[];
3
+ declare const preview: Preview;
4
+ export default preview;
@@ -0,0 +1,2 @@
1
+ export * from './src/index.js'
2
+ export {}
@@ -0,0 +1,3 @@
1
+ import { NextConfig } from 'next';
2
+ declare const nextConfig: NextConfig;
3
+ export default nextConfig;
@@ -0,0 +1,5 @@
1
+ import { Metadata } from 'next';
2
+ export declare const metadata: Metadata;
3
+ export default function RootLayout({ children, }: Readonly<{
4
+ children: React.ReactNode;
5
+ }>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Home(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ interface BreadcrumbsProps {
2
+ items: {
3
+ id: number;
4
+ label: string;
5
+ href: string;
6
+ }[];
7
+ }
8
+ export declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { Breadcrumbs } from './Breadcrumbs';
@@ -0,0 +1,8 @@
1
+ export interface ButtonProps {
2
+ variant?: "primary" | "secondary" | "restore" | "delete" | "disabled";
3
+ label?: string;
4
+ isLoading?: boolean;
5
+ disabled?: boolean;
6
+ onClick?: () => void;
7
+ }
8
+ export declare const Button: React.FC<ButtonProps>;
@@ -0,0 +1 @@
1
+ export { Button } from './Button';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface CardProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ export declare const Card: React.FC<CardProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface CardContentProps {
2
+ title: string;
3
+ description: string;
4
+ }
5
+ export declare const CardContent: React.FC<CardContentProps>;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ interface CardFooterProps {
2
+ children?: React.ReactNode;
3
+ }
4
+ export declare const CardFooter: React.FC<CardFooterProps>;
5
+ export {};
@@ -0,0 +1,7 @@
1
+ interface CardImageProps {
2
+ alt: string;
3
+ image: string;
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare const CardImage: React.FC<CardImageProps>;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ export { Card } from './Card';
2
+ export { CardContent } from './CardContent';
3
+ export { CardImage } from './CardImage';
4
+ export { CardFooter } from './CardFooter';
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ interface CfooterProps {
3
+ children?: ReactNode;
4
+ }
5
+ export declare const Cfooter: ({ children }: CfooterProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,5 @@
1
+ interface FooterBottomProps {
2
+ copyright: string;
3
+ }
4
+ export declare const FooterBottom: React.FC<FooterBottomProps>;
5
+ export {};
@@ -0,0 +1,11 @@
1
+ interface FooterContactProps {
2
+ email: string;
3
+ phone: string;
4
+ socials: {
5
+ id: number;
6
+ label: string;
7
+ href: string;
8
+ }[];
9
+ }
10
+ export declare const FooterContact: ({ email, phone, socials, }: FooterContactProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ interface FooterIconProps {
3
+ children?: ReactNode;
4
+ description: string;
5
+ }
6
+ export declare const FooterIcon: ({ children, description, }: FooterIconProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ interface QuickLinkProps {
2
+ title: string;
3
+ links: {
4
+ id: number;
5
+ label: string;
6
+ href: string;
7
+ }[];
8
+ onItemClick?: (label: string) => void;
9
+ }
10
+ export declare const QuickLink: ({ title, links, onItemClick, }: QuickLinkProps) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,5 @@
1
+ export { Cfooter } from './Cfooter';
2
+ export { FooterIcon } from './FooterIcon';
3
+ export { FooterBottom } from './FooterBottom';
4
+ export { FooterContact } from './FooterContact';
5
+ export { QuickLink } from './QuickLink';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface CformProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ export declare const Cform: React.FC<CformProps>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export { Cform } from './Cform';
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface CheaderProps {
3
+ children?: React.ReactNode;
4
+ style?: string;
5
+ }
6
+ export declare const Cheader: React.FC<CheaderProps>;
7
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface DrawerProps {
3
+ navDrawer: {
4
+ id: number;
5
+ href: string;
6
+ label: string;
7
+ }[];
8
+ style?: string;
9
+ onItemClick?: (label: string) => void;
10
+ }
11
+ export declare const Drawer: React.FC<DrawerProps>;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface IconProps {
3
+ logo?: string;
4
+ title?: string;
5
+ style?: string;
6
+ alt?: string;
7
+ }
8
+ export declare const Icon: React.FC<IconProps>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface NavBarProps {
3
+ navBar: {
4
+ id: number;
5
+ href: string;
6
+ label: string;
7
+ }[];
8
+ style?: string;
9
+ onItemClick?: (label: string) => void;
10
+ }
11
+ export declare const NavBar: React.FC<NavBarProps>;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface SearchBarProps {
3
+ placeholder?: string;
4
+ style?: string;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare const SearchBar: React.FC<SearchBarProps>;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ export { Cheader } from './Cheader';
2
+ export { Icon } from './Icon';
3
+ export { Drawer } from './Drawer';
4
+ export { SearchBar } from './SearchBar';
5
+ export { NavBar } from './NavBar';
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface CheckBoxProps {
3
+ id: string;
4
+ label: string;
5
+ required?: boolean;
6
+ disabled?: boolean;
7
+ defaultChecked?: boolean;
8
+ error?: boolean;
9
+ helperText?: string;
10
+ }
11
+ export declare const CheckBox: React.FC<CheckBoxProps>;
12
+ export {};
@@ -0,0 +1,17 @@
1
+ interface SelectProps {
2
+ label: string;
3
+ options: {
4
+ key: number;
5
+ name: string;
6
+ value: string;
7
+ image?: string;
8
+ }[];
9
+ required?: boolean;
10
+ disabled?: boolean;
11
+ helperText?: string;
12
+ error?: boolean;
13
+ value?: string;
14
+ onChange?: (value: string) => void;
15
+ }
16
+ export declare const Select: React.FC<SelectProps>;
17
+ export {};
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface TextFieldProps {
3
+ id: string;
4
+ labelText: string;
5
+ placeholder: string;
6
+ error?: boolean;
7
+ helperText?: string;
8
+ type: "text" | "email" | "password" | "number";
9
+ }
10
+ export declare const TextField: React.FC<TextFieldProps>;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ export { TextField } from './TextField';
2
+ export { CheckBox } from './CheckBox';
3
+ export { Select } from './Select';
@@ -0,0 +1,8 @@
1
+ interface ModalProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ title: string;
5
+ children: React.ReactNode;
6
+ }
7
+ export declare const Modal: React.FC<ModalProps>;
8
+ export {};
@@ -0,0 +1 @@
1
+ export { Modal } from './Modal';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface SectionProps {
3
+ id?: string;
4
+ title?: string;
5
+ children?: React.ReactNode;
6
+ style?: string;
7
+ }
8
+ export declare const Section: React.FC<SectionProps>;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { Section } from './Section';
@@ -0,0 +1 @@
1
+ export declare const Loader: React.FC;
@@ -0,0 +1 @@
1
+ export { Loader } from './Loader';
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface LayoutProps {
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const LandingLayout: React.FC<LayoutProps>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export { LandingLayout } from './LandingLayout';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface CtableProps {
3
+ children?: React.ReactNode;
4
+ style?: string;
5
+ maxRows?: number;
6
+ }
7
+ export declare const Ctable: React.FC<CtableProps>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ interface TableBodyProps {
3
+ children?: React.ReactNode;
4
+ style?: string;
5
+ }
6
+ export declare const TableBody: React.FC<TableBodyProps>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface TableCellProps {
3
+ children: React.ReactNode;
4
+ align?: string;
5
+ style?: string;
6
+ }
7
+ export declare const TableCell: React.FC<TableCellProps>;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { default as React } from 'react';
2
+ import { TableHeadCell } from './types';
3
+ interface TableHeadProps {
4
+ rowData: TableHeadCell[];
5
+ }
6
+ export declare const TableHead: React.FC<TableHeadProps>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ import { TableRowCell } from './types';
3
+ interface TableRowProps {
4
+ rowData: TableRowCell[];
5
+ style?: string;
6
+ }
7
+ export declare const TableRow: React.FC<TableRowProps>;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const alignment: {
2
+ readonly left: "text-left";
3
+ readonly center: "text-center";
4
+ readonly right: "text-right";
5
+ };
@@ -0,0 +1,5 @@
1
+ export { Ctable } from './Ctable';
2
+ export { TableHead } from './TableHead';
3
+ export { TableBody } from './TableBody';
4
+ export { TableRow } from './TableRow';
5
+ export { TableCell } from './TableCell';
@@ -0,0 +1,13 @@
1
+ export interface TableHeadCell {
2
+ key: number;
3
+ name: string;
4
+ value: string;
5
+ align?: "left" | "center" | "right";
6
+ style?: string;
7
+ }
8
+ export interface TableRowCell {
9
+ key: number;
10
+ value: string;
11
+ align?: "left" | "center" | "right";
12
+ style?: string;
13
+ }
@@ -0,0 +1,26 @@
1
+ export { Button } from './component/button';
2
+ export { Card } from './component/card';
3
+ export { Cfooter } from './component/footer';
4
+ export { FooterIcon } from './component/footer';
5
+ export { FooterBottom } from './component/footer';
6
+ export { FooterContact } from './component/footer';
7
+ export { QuickLink } from './component/footer';
8
+ export { Cform } from './component/form';
9
+ export { Cheader } from './component/header';
10
+ export { Icon } from './component/header';
11
+ export { Drawer } from './component/header';
12
+ export { SearchBar } from './component/header';
13
+ export { NavBar } from './component/header';
14
+ export { Modal } from './component/modal';
15
+ export { TextField } from './component/input';
16
+ export { CheckBox } from './component/input';
17
+ export { Select } from './component/input';
18
+ export { Section } from './component/section';
19
+ export { Loader } from './component/spinner';
20
+ export { LandingLayout } from './component/stories';
21
+ export { Ctable } from './component/table';
22
+ export { TableBody } from './component/table';
23
+ export { TableCell } from './component/table';
24
+ export { TableHead } from './component/table';
25
+ export { TableRow } from './component/table';
26
+ export { Breadcrumbs } from './component/breadcrumbs';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vite').UserConfig;
2
+ export default _default;