@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.
- package/dist/index.d.ts +2 -26
- package/dist/src/component/breadcrumbs/Breadcrumbs.d.ts +1 -2
- package/dist/src/component/breadcrumbs/index.d.ts +1 -0
- package/dist/src/component/button/index.d.ts +1 -0
- package/dist/src/component/card/Card.d.ts +1 -2
- package/dist/src/component/card/CardContent.d.ts +1 -2
- package/dist/src/component/card/CardFooter.d.ts +1 -2
- package/dist/src/component/card/CardImage.d.ts +2 -2
- package/dist/src/component/card/index.d.ts +5 -1
- package/dist/src/component/footer/Cfooter.d.ts +1 -2
- package/dist/src/component/footer/FooterBottom.d.ts +1 -2
- package/dist/src/component/footer/FooterContact.d.ts +1 -2
- package/dist/src/component/footer/FooterIcon.d.ts +1 -2
- package/dist/src/component/footer/QuickLink.d.ts +1 -2
- package/dist/src/component/footer/index.d.ts +6 -1
- package/dist/src/component/form/Cform.d.ts +1 -2
- package/dist/src/component/form/index.d.ts +1 -0
- package/dist/src/component/header/Cheader.d.ts +1 -2
- package/dist/src/component/header/Drawer.d.ts +1 -2
- package/dist/src/component/header/Icon.d.ts +1 -2
- package/dist/src/component/header/NavBar.d.ts +1 -2
- package/dist/src/component/header/SearchBar.d.ts +1 -2
- package/dist/src/component/header/index.d.ts +7 -2
- package/dist/src/component/input/CheckBox.d.ts +2 -2
- package/dist/src/component/input/Select.d.ts +2 -2
- package/dist/src/component/input/TextField.d.ts +1 -2
- package/dist/src/component/input/index.d.ts +4 -1
- package/dist/src/component/modal/Modal.d.ts +2 -2
- package/dist/src/component/modal/index.d.ts +1 -0
- package/dist/src/component/section/Section.d.ts +1 -2
- package/dist/src/component/section/index.d.ts +1 -0
- package/dist/src/component/stories/LandingLayout.d.ts +2 -3
- package/dist/src/component/stories/index.d.ts +1 -0
- package/dist/src/component/table/Ctable.d.ts +1 -2
- package/dist/src/component/table/TableBody.d.ts +1 -2
- package/dist/src/component/table/TableCell.d.ts +1 -2
- package/dist/src/component/table/TableHead.d.ts +1 -2
- package/dist/src/component/table/TableRow.d.ts +1 -2
- package/dist/src/component/table/index.d.ts +9 -2
- package/dist/src/component/table/types.d.ts +3 -2
- package/dist/web-components.cjs.ts +275 -0
- package/dist/{web-components.es.js → web-components.es.ts} +109 -120
- package/dist/web_components.css +3 -0
- package/package.json +8 -11
- package/dist/component/breadcrumbs/Breadcrumbs.d.ts +0 -9
- package/dist/component/breadcrumbs/Breadcrumbs.js +0 -7
- package/dist/component/breadcrumbs/index.d.ts +0 -1
- package/dist/component/breadcrumbs/index.js +0 -1
- package/dist/component/button/Button.d.ts +0 -8
- package/dist/component/button/Button.js +0 -15
- package/dist/component/button/index.d.ts +0 -1
- package/dist/component/button/index.js +0 -2
- package/dist/component/card/Card.d.ts +0 -6
- package/dist/component/card/Card.js +0 -4
- package/dist/component/card/CardContent.d.ts +0 -6
- package/dist/component/card/CardContent.js +0 -4
- package/dist/component/card/CardFooter.d.ts +0 -5
- package/dist/component/card/CardFooter.js +0 -4
- package/dist/component/card/CardImage.d.ts +0 -7
- package/dist/component/card/CardImage.js +0 -4
- package/dist/component/card/index.d.ts +0 -4
- package/dist/component/card/index.js +0 -4
- package/dist/component/footer/Cfooter.d.ts +0 -6
- package/dist/component/footer/Cfooter.js +0 -4
- package/dist/component/footer/FooterBottom.d.ts +0 -5
- package/dist/component/footer/FooterBottom.js +0 -4
- package/dist/component/footer/FooterContact.d.ts +0 -11
- package/dist/component/footer/FooterContact.js +0 -4
- package/dist/component/footer/FooterIcon.d.ts +0 -7
- package/dist/component/footer/FooterIcon.js +0 -4
- package/dist/component/footer/QuickLink.d.ts +0 -11
- package/dist/component/footer/QuickLink.js +0 -4
- package/dist/component/footer/index.d.ts +0 -5
- package/dist/component/footer/index.js +0 -5
- package/dist/component/form/Cform.d.ts +0 -6
- package/dist/component/form/Cform.js +0 -4
- package/dist/component/form/index.d.ts +0 -1
- package/dist/component/form/index.js +0 -1
- package/dist/component/header/Cheader.d.ts +0 -7
- package/dist/component/header/Cheader.js +0 -4
- package/dist/component/header/Drawer.d.ts +0 -12
- package/dist/component/header/Drawer.js +0 -22
- package/dist/component/header/Icon.d.ts +0 -9
- package/dist/component/header/Icon.js +0 -11
- package/dist/component/header/NavBar.d.ts +0 -12
- package/dist/component/header/NavBar.js +0 -14
- package/dist/component/header/SearchBar.d.ts +0 -8
- package/dist/component/header/SearchBar.js +0 -7
- package/dist/component/header/index.d.ts +0 -5
- package/dist/component/header/index.js +0 -5
- package/dist/component/input/CheckBox.d.ts +0 -12
- package/dist/component/input/CheckBox.js +0 -18
- package/dist/component/input/Select.d.ts +0 -17
- package/dist/component/input/Select.js +0 -12
- package/dist/component/input/TextField.d.ts +0 -11
- package/dist/component/input/TextField.js +0 -7
- package/dist/component/input/index.d.ts +0 -3
- package/dist/component/input/index.js +0 -3
- package/dist/component/modal/Modal.d.ts +0 -8
- package/dist/component/modal/Modal.js +0 -6
- package/dist/component/modal/index.d.ts +0 -1
- package/dist/component/modal/index.js +0 -1
- package/dist/component/section/Section.d.ts +0 -9
- package/dist/component/section/Section.js +0 -14
- package/dist/component/section/index.d.ts +0 -1
- package/dist/component/section/index.js +0 -1
- package/dist/component/spinner/Loader.d.ts +0 -1
- package/dist/component/spinner/Loader.js +0 -4
- package/dist/component/spinner/index.d.ts +0 -1
- package/dist/component/spinner/index.js +0 -1
- package/dist/component/stories/LandingLayout.d.ts +0 -6
- package/dist/component/stories/LandingLayout.js +0 -33
- package/dist/component/stories/index.d.ts +0 -1
- package/dist/component/stories/index.js +0 -1
- package/dist/component/table/Ctable.d.ts +0 -8
- package/dist/component/table/Ctable.js +0 -13
- package/dist/component/table/TableBody.d.ts +0 -7
- package/dist/component/table/TableBody.js +0 -4
- package/dist/component/table/TableCell.d.ts +0 -8
- package/dist/component/table/TableCell.js +0 -12
- package/dist/component/table/TableHead.d.ts +0 -7
- package/dist/component/table/TableHead.js +0 -16
- package/dist/component/table/TableRow.d.ts +0 -8
- package/dist/component/table/TableRow.js +0 -27
- package/dist/component/table/alignment.d.ts +0 -5
- package/dist/component/table/alignment.js +0 -5
- package/dist/component/table/index.d.ts +0 -5
- package/dist/component/table/index.js +0 -5
- package/dist/component/table/types.d.ts +0 -13
- package/dist/component/table/types.js +0 -1
- package/dist/index.js +0 -26
- package/dist/themes/tailwind.css +0 -47
package/dist/index.d.ts
CHANGED
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
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,8 @@
|
|
|
1
1
|
export { Card } from './Card';
|
|
2
|
+
export type { CardProps } from './Card';
|
|
2
3
|
export { CardContent } from './CardContent';
|
|
3
|
-
export {
|
|
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,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 {
|
|
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,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,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,5 +1,10 @@
|
|
|
1
1
|
export { Cheader } from './Cheader';
|
|
2
|
-
export {
|
|
2
|
+
export type { CheaderProps } from './Cheader';
|
|
3
3
|
export { Drawer } from './Drawer';
|
|
4
|
-
export {
|
|
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
|
-
|
|
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,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
export interface LandingLayoutProps {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
export declare const LandingLayout: React.FC<
|
|
6
|
-
export {};
|
|
5
|
+
export declare const LandingLayout: React.FC<LandingLayoutProps>;
|
|
@@ -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 {
|
|
2
|
+
export type { CtableProps } from './Ctable';
|
|
3
3
|
export { TableBody } from './TableBody';
|
|
4
|
-
export {
|
|
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?:
|
|
6
|
+
align?: TableAlignment;
|
|
6
7
|
style?: string;
|
|
7
8
|
}
|
|
8
9
|
export interface TableRowCell {
|
|
9
10
|
key: number;
|
|
10
11
|
value: string;
|
|
11
|
-
align?:
|
|
12
|
+
align?: TableAlignment;
|
|
12
13
|
style?: string;
|
|
13
14
|
}
|