@eloisallena/web_components 1.0.6 → 1.0.8

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 (132) hide show
  1. package/dist/index.d.ts +2 -26
  2. package/dist/src/component/breadcrumbs/Breadcrumbs.d.ts +1 -2
  3. package/dist/src/component/breadcrumbs/index.d.ts +1 -0
  4. package/dist/src/component/button/index.d.ts +1 -0
  5. package/dist/src/component/card/Card.d.ts +1 -2
  6. package/dist/src/component/card/CardContent.d.ts +1 -2
  7. package/dist/src/component/card/CardFooter.d.ts +1 -2
  8. package/dist/src/component/card/CardImage.d.ts +2 -2
  9. package/dist/src/component/card/index.d.ts +5 -1
  10. package/dist/src/component/footer/Cfooter.d.ts +1 -2
  11. package/dist/src/component/footer/FooterBottom.d.ts +1 -2
  12. package/dist/src/component/footer/FooterContact.d.ts +1 -2
  13. package/dist/src/component/footer/FooterIcon.d.ts +1 -2
  14. package/dist/src/component/footer/QuickLink.d.ts +1 -2
  15. package/dist/src/component/footer/index.d.ts +6 -1
  16. package/dist/src/component/form/Cform.d.ts +1 -2
  17. package/dist/src/component/form/index.d.ts +1 -0
  18. package/dist/src/component/header/Cheader.d.ts +1 -2
  19. package/dist/src/component/header/Drawer.d.ts +1 -2
  20. package/dist/src/component/header/Icon.d.ts +1 -2
  21. package/dist/src/component/header/NavBar.d.ts +1 -2
  22. package/dist/src/component/header/SearchBar.d.ts +1 -2
  23. package/dist/src/component/header/index.d.ts +7 -2
  24. package/dist/src/component/input/CheckBox.d.ts +2 -2
  25. package/dist/src/component/input/Select.d.ts +2 -2
  26. package/dist/src/component/input/TextField.d.ts +1 -2
  27. package/dist/src/component/input/index.d.ts +4 -1
  28. package/dist/src/component/modal/Modal.d.ts +2 -2
  29. package/dist/src/component/modal/index.d.ts +1 -0
  30. package/dist/src/component/section/Section.d.ts +1 -2
  31. package/dist/src/component/section/index.d.ts +1 -0
  32. package/dist/src/component/stories/LandingLayout.d.ts +2 -3
  33. package/dist/src/component/stories/index.d.ts +1 -0
  34. package/dist/src/component/table/Ctable.d.ts +1 -2
  35. package/dist/src/component/table/TableBody.d.ts +1 -2
  36. package/dist/src/component/table/TableCell.d.ts +1 -2
  37. package/dist/src/component/table/TableHead.d.ts +1 -2
  38. package/dist/src/component/table/TableRow.d.ts +1 -2
  39. package/dist/src/component/table/index.d.ts +9 -2
  40. package/dist/src/component/table/types.d.ts +3 -2
  41. package/dist/web-components.cjs.ts +275 -0
  42. package/dist/{web-components.es.js → web-components.es.ts} +109 -120
  43. package/dist/web_components.css +3 -0
  44. package/package.json +8 -11
  45. package/dist/component/breadcrumbs/Breadcrumbs.d.ts +0 -9
  46. package/dist/component/breadcrumbs/Breadcrumbs.js +0 -7
  47. package/dist/component/breadcrumbs/index.d.ts +0 -1
  48. package/dist/component/breadcrumbs/index.js +0 -1
  49. package/dist/component/button/Button.d.ts +0 -8
  50. package/dist/component/button/Button.js +0 -15
  51. package/dist/component/button/index.d.ts +0 -1
  52. package/dist/component/button/index.js +0 -2
  53. package/dist/component/card/Card.d.ts +0 -6
  54. package/dist/component/card/Card.js +0 -4
  55. package/dist/component/card/CardContent.d.ts +0 -6
  56. package/dist/component/card/CardContent.js +0 -4
  57. package/dist/component/card/CardFooter.d.ts +0 -5
  58. package/dist/component/card/CardFooter.js +0 -4
  59. package/dist/component/card/CardImage.d.ts +0 -7
  60. package/dist/component/card/CardImage.js +0 -4
  61. package/dist/component/card/index.d.ts +0 -4
  62. package/dist/component/card/index.js +0 -4
  63. package/dist/component/footer/Cfooter.d.ts +0 -6
  64. package/dist/component/footer/Cfooter.js +0 -4
  65. package/dist/component/footer/FooterBottom.d.ts +0 -5
  66. package/dist/component/footer/FooterBottom.js +0 -4
  67. package/dist/component/footer/FooterContact.d.ts +0 -11
  68. package/dist/component/footer/FooterContact.js +0 -4
  69. package/dist/component/footer/FooterIcon.d.ts +0 -7
  70. package/dist/component/footer/FooterIcon.js +0 -4
  71. package/dist/component/footer/QuickLink.d.ts +0 -11
  72. package/dist/component/footer/QuickLink.js +0 -4
  73. package/dist/component/footer/index.d.ts +0 -5
  74. package/dist/component/footer/index.js +0 -5
  75. package/dist/component/form/Cform.d.ts +0 -6
  76. package/dist/component/form/Cform.js +0 -4
  77. package/dist/component/form/index.d.ts +0 -1
  78. package/dist/component/form/index.js +0 -1
  79. package/dist/component/header/Cheader.d.ts +0 -7
  80. package/dist/component/header/Cheader.js +0 -4
  81. package/dist/component/header/Drawer.d.ts +0 -12
  82. package/dist/component/header/Drawer.js +0 -22
  83. package/dist/component/header/Icon.d.ts +0 -9
  84. package/dist/component/header/Icon.js +0 -11
  85. package/dist/component/header/NavBar.d.ts +0 -12
  86. package/dist/component/header/NavBar.js +0 -14
  87. package/dist/component/header/SearchBar.d.ts +0 -8
  88. package/dist/component/header/SearchBar.js +0 -7
  89. package/dist/component/header/index.d.ts +0 -5
  90. package/dist/component/header/index.js +0 -5
  91. package/dist/component/input/CheckBox.d.ts +0 -12
  92. package/dist/component/input/CheckBox.js +0 -18
  93. package/dist/component/input/Select.d.ts +0 -17
  94. package/dist/component/input/Select.js +0 -12
  95. package/dist/component/input/TextField.d.ts +0 -11
  96. package/dist/component/input/TextField.js +0 -7
  97. package/dist/component/input/index.d.ts +0 -3
  98. package/dist/component/input/index.js +0 -3
  99. package/dist/component/modal/Modal.d.ts +0 -8
  100. package/dist/component/modal/Modal.js +0 -6
  101. package/dist/component/modal/index.d.ts +0 -1
  102. package/dist/component/modal/index.js +0 -1
  103. package/dist/component/section/Section.d.ts +0 -9
  104. package/dist/component/section/Section.js +0 -14
  105. package/dist/component/section/index.d.ts +0 -1
  106. package/dist/component/section/index.js +0 -1
  107. package/dist/component/spinner/Loader.d.ts +0 -1
  108. package/dist/component/spinner/Loader.js +0 -4
  109. package/dist/component/spinner/index.d.ts +0 -1
  110. package/dist/component/spinner/index.js +0 -1
  111. package/dist/component/stories/LandingLayout.d.ts +0 -6
  112. package/dist/component/stories/LandingLayout.js +0 -33
  113. package/dist/component/stories/index.d.ts +0 -1
  114. package/dist/component/stories/index.js +0 -1
  115. package/dist/component/table/Ctable.d.ts +0 -8
  116. package/dist/component/table/Ctable.js +0 -13
  117. package/dist/component/table/TableBody.d.ts +0 -7
  118. package/dist/component/table/TableBody.js +0 -4
  119. package/dist/component/table/TableCell.d.ts +0 -8
  120. package/dist/component/table/TableCell.js +0 -12
  121. package/dist/component/table/TableHead.d.ts +0 -7
  122. package/dist/component/table/TableHead.js +0 -16
  123. package/dist/component/table/TableRow.d.ts +0 -8
  124. package/dist/component/table/TableRow.js +0 -27
  125. package/dist/component/table/alignment.d.ts +0 -5
  126. package/dist/component/table/alignment.js +0 -5
  127. package/dist/component/table/index.d.ts +0 -5
  128. package/dist/component/table/index.js +0 -5
  129. package/dist/component/table/types.d.ts +0 -13
  130. package/dist/component/table/types.js +0 -1
  131. package/dist/index.js +0 -26
  132. package/dist/themes/tailwind.css +0 -47
package/dist/index.d.ts CHANGED
@@ -1,26 +1,2 @@
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';
1
+ export * from './src/index.js'
2
+ export {}
@@ -1,4 +1,4 @@
1
- interface BreadcrumbsProps {
1
+ export interface BreadcrumbsProps {
2
2
  items: {
3
3
  id: number;
4
4
  label: string;
@@ -6,4 +6,3 @@ interface BreadcrumbsProps {
6
6
  }[];
7
7
  }
8
8
  export declare const Breadcrumbs: React.FC<BreadcrumbsProps>;
9
- export {};
@@ -1 +1,2 @@
1
1
  export { Breadcrumbs } from './Breadcrumbs';
2
+ export type { BreadcrumbsProps } from './Breadcrumbs';
@@ -1 +1,2 @@
1
1
  export { Button } from './Button';
2
+ export type { ButtonProps } from './Button';
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface CardProps {
2
+ export interface CardProps {
3
3
  children?: React.ReactNode;
4
4
  }
5
5
  export declare const Card: React.FC<CardProps>;
6
- export {};
@@ -1,6 +1,5 @@
1
- interface CardContentProps {
1
+ export interface CardContentProps {
2
2
  title: string;
3
3
  description: string;
4
4
  }
5
5
  export declare const CardContent: React.FC<CardContentProps>;
6
- export {};
@@ -1,5 +1,4 @@
1
- interface CardFooterProps {
1
+ export interface CardFooterProps {
2
2
  children?: React.ReactNode;
3
3
  }
4
4
  export declare const CardFooter: React.FC<CardFooterProps>;
5
- export {};
@@ -1,7 +1,7 @@
1
- interface CardImageProps {
1
+ import { default as React } from 'react';
2
+ export interface CardImageProps {
2
3
  alt: string;
3
4
  image: string;
4
5
  children?: React.ReactNode;
5
6
  }
6
7
  export declare const CardImage: React.FC<CardImageProps>;
7
- export {};
@@ -1,4 +1,8 @@
1
1
  export { Card } from './Card';
2
+ export type { CardProps } from './Card';
2
3
  export { CardContent } from './CardContent';
3
- export { CardImage } from './CardImage';
4
+ export type { CardContentProps } from './CardContent';
4
5
  export { CardFooter } from './CardFooter';
6
+ export type { CardFooterProps } from './CardFooter';
7
+ export { CardImage } from './CardImage';
8
+ export type { CardImageProps } from './CardImage';
@@ -1,6 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- interface CfooterProps {
2
+ export interface CfooterProps {
3
3
  children?: ReactNode;
4
4
  }
5
5
  export declare const Cfooter: ({ children }: CfooterProps) => import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,5 +1,4 @@
1
- interface FooterBottomProps {
1
+ export interface FooterBottomProps {
2
2
  copyright: string;
3
3
  }
4
4
  export declare const FooterBottom: React.FC<FooterBottomProps>;
5
- export {};
@@ -1,4 +1,4 @@
1
- interface FooterContactProps {
1
+ export interface FooterContactProps {
2
2
  email: string;
3
3
  phone: string;
4
4
  socials: {
@@ -8,4 +8,3 @@ interface FooterContactProps {
8
8
  }[];
9
9
  }
10
10
  export declare const FooterContact: ({ email, phone, socials, }: FooterContactProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,7 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- interface FooterIconProps {
2
+ export interface FooterIconProps {
3
3
  children?: ReactNode;
4
4
  description: string;
5
5
  }
6
6
  export declare const FooterIcon: ({ children, description, }: FooterIconProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,4 +1,4 @@
1
- interface QuickLinkProps {
1
+ export interface QuickLinkProps {
2
2
  title: string;
3
3
  links: {
4
4
  id: number;
@@ -8,4 +8,3 @@ interface QuickLinkProps {
8
8
  onItemClick?: (label: string) => void;
9
9
  }
10
10
  export declare const QuickLink: ({ title, links, onItemClick, }: QuickLinkProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,5 +1,10 @@
1
1
  export { Cfooter } from './Cfooter';
2
- export { FooterIcon } from './FooterIcon';
2
+ export type { CfooterProps } from './Cfooter';
3
3
  export { FooterBottom } from './FooterBottom';
4
+ export type { FooterBottomProps } from './FooterBottom';
4
5
  export { FooterContact } from './FooterContact';
6
+ export type { FooterContactProps } from './FooterContact';
7
+ export { FooterIcon } from './FooterIcon';
8
+ export type { FooterIconProps } from './FooterIcon';
5
9
  export { QuickLink } from './QuickLink';
10
+ export type { QuickLinkProps } from './QuickLink';
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface CformProps {
2
+ export interface CformProps extends React.FormHTMLAttributes<HTMLFormElement> {
3
3
  children?: React.ReactNode;
4
4
  }
5
5
  export declare const Cform: React.FC<CformProps>;
6
- export {};
@@ -1 +1,2 @@
1
1
  export { Cform } from './Cform';
2
+ export type { CformProps } from './Cform';
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
- interface CheaderProps {
2
+ export interface CheaderProps {
3
3
  children?: React.ReactNode;
4
4
  style?: string;
5
5
  }
6
6
  export declare const Cheader: React.FC<CheaderProps>;
7
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface DrawerProps {
2
+ export interface DrawerProps {
3
3
  navDrawer: {
4
4
  id: number;
5
5
  href: string;
@@ -9,4 +9,3 @@ interface DrawerProps {
9
9
  onItemClick?: (label: string) => void;
10
10
  }
11
11
  export declare const Drawer: React.FC<DrawerProps>;
12
- export {};
@@ -1,9 +1,8 @@
1
1
  import { default as React } from 'react';
2
- interface IconProps {
2
+ export interface IconProps {
3
3
  logo?: string;
4
4
  title?: string;
5
5
  style?: string;
6
6
  alt?: string;
7
7
  }
8
8
  export declare const Icon: React.FC<IconProps>;
9
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface NavBarProps {
2
+ export interface NavBarProps {
3
3
  navBar: {
4
4
  id: number;
5
5
  href: string;
@@ -9,4 +9,3 @@ interface NavBarProps {
9
9
  onItemClick?: (label: string) => void;
10
10
  }
11
11
  export declare const NavBar: React.FC<NavBarProps>;
12
- export {};
@@ -1,8 +1,7 @@
1
1
  import { default as React } from 'react';
2
- interface SearchBarProps {
2
+ export interface SearchBarProps {
3
3
  placeholder?: string;
4
4
  style?: string;
5
5
  children?: React.ReactNode;
6
6
  }
7
7
  export declare const SearchBar: React.FC<SearchBarProps>;
8
- export {};
@@ -1,5 +1,10 @@
1
1
  export { Cheader } from './Cheader';
2
- export { Icon } from './Icon';
2
+ export type { CheaderProps } from './Cheader';
3
3
  export { Drawer } from './Drawer';
4
- export { SearchBar } from './SearchBar';
4
+ export type { DrawerProps } from './Drawer';
5
+ export { Icon } from './Icon';
6
+ export type { IconProps } from './Icon';
5
7
  export { NavBar } from './NavBar';
8
+ export type { NavBarProps } from './NavBar';
9
+ export { SearchBar } from './SearchBar';
10
+ export type { SearchBarProps } from './SearchBar';
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface CheckBoxProps {
2
+ export interface CheckBoxProps {
3
3
  id: string;
4
4
  label: string;
5
5
  required?: boolean;
@@ -7,6 +7,6 @@ interface CheckBoxProps {
7
7
  defaultChecked?: boolean;
8
8
  error?: boolean;
9
9
  helperText?: string;
10
+ onChange?: (checked: boolean) => void;
10
11
  }
11
12
  export declare const CheckBox: React.FC<CheckBoxProps>;
12
- export {};
@@ -1,4 +1,5 @@
1
- interface SelectProps {
1
+ import { default as React } from 'react';
2
+ export interface SelectProps {
2
3
  label: string;
3
4
  options: {
4
5
  key: number;
@@ -14,4 +15,3 @@ interface SelectProps {
14
15
  onChange?: (value: string) => void;
15
16
  }
16
17
  export declare const Select: React.FC<SelectProps>;
17
- export {};
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface TextFieldProps {
2
+ export interface TextFieldProps {
3
3
  id: string;
4
4
  labelText: string;
5
5
  placeholder: string;
@@ -8,4 +8,3 @@ interface TextFieldProps {
8
8
  type: "text" | "email" | "password" | "number";
9
9
  }
10
10
  export declare const TextField: React.FC<TextFieldProps>;
11
- export {};
@@ -1,3 +1,6 @@
1
- export { TextField } from './TextField';
2
1
  export { CheckBox } from './CheckBox';
2
+ export type { CheckBoxProps } from './CheckBox';
3
3
  export { Select } from './Select';
4
+ export type { SelectProps } from './Select';
5
+ export { TextField } from './TextField';
6
+ export type { TextFieldProps } from './TextField';
@@ -1,8 +1,8 @@
1
- interface ModalProps {
1
+ import { default as React } from 'react';
2
+ export interface ModalProps {
2
3
  isOpen: boolean;
3
4
  onClose: () => void;
4
5
  title: string;
5
6
  children: React.ReactNode;
6
7
  }
7
8
  export declare const Modal: React.FC<ModalProps>;
8
- export {};
@@ -1 +1,2 @@
1
1
  export { Modal } from './Modal';
2
+ export type { ModalProps } from './Modal';
@@ -1,9 +1,8 @@
1
1
  import { default as React } from 'react';
2
- interface SectionProps {
2
+ export interface SectionProps {
3
3
  id?: string;
4
4
  title?: string;
5
5
  children?: React.ReactNode;
6
6
  style?: string;
7
7
  }
8
8
  export declare const Section: React.FC<SectionProps>;
9
- export {};
@@ -1 +1,2 @@
1
1
  export { Section } from './Section';
2
+ export type { SectionProps } from './Section';
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface LayoutProps {
2
+ export interface LandingLayoutProps {
3
3
  children: React.ReactNode;
4
4
  }
5
- export declare const LandingLayout: React.FC<LayoutProps>;
6
- export {};
5
+ export declare const LandingLayout: React.FC<LandingLayoutProps>;
@@ -1 +1,2 @@
1
1
  export { LandingLayout } from './LandingLayout';
2
+ export type { LandingLayoutProps } from './LandingLayout';
@@ -1,8 +1,7 @@
1
1
  import { default as React } from 'react';
2
- interface CtableProps {
2
+ export interface CtableProps {
3
3
  children?: React.ReactNode;
4
4
  style?: string;
5
5
  maxRows?: number;
6
6
  }
7
7
  export declare const Ctable: React.FC<CtableProps>;
8
- export {};
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
- interface TableBodyProps {
2
+ export interface TableBodyProps {
3
3
  children?: React.ReactNode;
4
4
  style?: string;
5
5
  }
6
6
  export declare const TableBody: React.FC<TableBodyProps>;
7
- export {};
@@ -1,8 +1,7 @@
1
1
  import { default as React } from 'react';
2
- interface TableCellProps {
2
+ export interface TableCellProps {
3
3
  children: React.ReactNode;
4
4
  align?: string;
5
5
  style?: string;
6
6
  }
7
7
  export declare const TableCell: React.FC<TableCellProps>;
8
- export {};
@@ -1,7 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TableHeadCell } from './types';
3
- interface TableHeadProps {
3
+ export interface TableHeadProps {
4
4
  rowData: TableHeadCell[];
5
5
  }
6
6
  export declare const TableHead: React.FC<TableHeadProps>;
7
- export {};
@@ -1,8 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { TableRowCell } from './types';
3
- interface TableRowProps {
3
+ export interface TableRowProps {
4
4
  rowData: TableRowCell[];
5
5
  style?: string;
6
6
  }
7
7
  export declare const TableRow: React.FC<TableRowProps>;
8
- export {};
@@ -1,5 +1,12 @@
1
1
  export { Ctable } from './Ctable';
2
- export { TableHead } from './TableHead';
2
+ export type { CtableProps } from './Ctable';
3
3
  export { TableBody } from './TableBody';
4
- export { TableRow } from './TableRow';
4
+ export type { TableBodyProps } from './TableBody';
5
5
  export { TableCell } from './TableCell';
6
+ export type { TableCellProps } from './TableCell';
7
+ export { TableHead } from './TableHead';
8
+ export type { TableHeadProps } from './TableHead';
9
+ export { TableRow } from './TableRow';
10
+ export type { TableRowProps } from './TableRow';
11
+ export { alignment } from './alignment';
12
+ export type { TableAlignment, TableHeadCell, TableRowCell, } from './types';
@@ -1,13 +1,14 @@
1
+ export type TableAlignment = "left" | "center" | "right";
1
2
  export interface TableHeadCell {
2
3
  key: number;
3
4
  name: string;
4
5
  value: string;
5
- align?: "left" | "center" | "right";
6
+ align?: TableAlignment;
6
7
  style?: string;
7
8
  }
8
9
  export interface TableRowCell {
9
10
  key: number;
10
11
  value: string;
11
- align?: "left" | "center" | "right";
12
+ align?: TableAlignment;
12
13
  style?: string;
13
14
  }