trepur_components 2.3.9 → 2.3.10
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/lib/_virtual/react.js +4 -0
- package/lib/components/Accordion/Accordion.stories.d.ts +47 -0
- package/lib/components/Accordion/const.d.ts +31 -0
- package/lib/components/Accordion/index.d.ts +5 -0
- package/lib/components/Accordion/index.js +9 -0
- package/lib/components/AlertBar/AlertBar.stories.d.ts +24 -0
- package/lib/components/AlertBar/index.d.ts +16 -0
- package/lib/components/AlertBar/index.js +36 -0
- package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
- package/lib/components/Avatar/index.d.ts +3 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +18 -0
- package/lib/components/Breadcrumbs/index.d.ts +17 -0
- package/lib/components/Breadcrumbs/index.js +16 -0
- package/lib/components/Button/Button.stories.d.ts +20 -0
- package/lib/components/Button/index.d.ts +13 -0
- package/lib/components/Button/index.js +30 -0
- package/lib/components/Calendar/Calendar.stories.d.ts +11 -0
- package/lib/components/Calendar/index.d.ts +14 -0
- package/lib/components/Calendar/index.js +49 -0
- package/lib/components/Calendar/style.css.js +1 -0
- package/lib/components/Card/Card.stories.d.ts +11 -0
- package/lib/components/Card/index.d.ts +2 -0
- package/lib/components/Card/index.js +25 -0
- package/lib/components/Carousel/Carousel.stories.d.ts +23 -0
- package/lib/components/Carousel/index.d.ts +70 -0
- package/lib/components/Carousel/index.js +159 -0
- package/lib/components/Carousel/utils.d.ts +1 -0
- package/lib/components/Carousel/utils.js +38 -0
- package/lib/components/CarouselThumbnail/CarouselThumbnail.stories.d.ts +22 -0
- package/lib/components/CarouselThumbnail/const.d.ts +1 -0
- package/lib/components/CarouselThumbnail/const.js +20 -0
- package/lib/components/CarouselThumbnail/index.d.ts +51 -0
- package/lib/components/CarouselThumbnail/index.js +74 -0
- package/lib/components/CarouselThumbnail/utils.d.ts +2 -0
- package/lib/components/CarouselThumbnail/utils.js +65 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +17 -0
- package/lib/components/Checkbox/index.d.ts +11 -0
- package/lib/components/Checkbox/index.js +28 -0
- package/lib/components/Collapsible/Collapsible.stories.d.ts +57 -0
- package/lib/components/Collapsible/index.d.ts +19 -0
- package/lib/components/Collapsible/index.js +87 -0
- package/lib/components/Counter/Counter.stories.d.ts +17 -0
- package/lib/components/Counter/index.d.ts +14 -0
- package/lib/components/Counter/index.js +49 -0
- package/lib/components/DetailUpdater/DetailUpdater.stories.d.ts +20 -0
- package/lib/components/DetailUpdater/index.d.ts +18 -0
- package/lib/components/DetailUpdater/index.js +63 -0
- package/lib/components/Dialog/Dialog.stories.d.ts +15 -0
- package/lib/components/Dialog/index.d.ts +12 -0
- package/lib/components/Dialog/index.js +16 -0
- package/lib/components/Dropdown/Dropdown.stories.d.ts +17 -0
- package/lib/components/Dropdown/index.d.ts +13 -0
- package/lib/components/Dropdown/index.js +66 -0
- package/lib/components/Dropdown/utils.d.ts +1 -0
- package/lib/components/Dropdown/utils.js +14 -0
- package/lib/components/FileUploader/FilePreview.d.ts +8 -0
- package/lib/components/FileUploader/FileUploader.stories.d.ts +52 -0
- package/lib/components/FileUploader/index.d.ts +15 -0
- package/lib/components/Footer/Footer.stories.d.ts +19 -0
- package/lib/components/Footer/index.d.ts +16 -0
- package/lib/components/Footer/index.js +36 -0
- package/lib/components/FooterNav/FooterNav.stories.d.ts +22 -0
- package/lib/components/FooterNav/index.d.ts +15 -0
- package/lib/components/FooterNav/index.js +38 -0
- package/lib/components/Form/Form.stories.d.ts +117 -0
- package/lib/components/Form/index.d.ts +13 -0
- package/lib/components/Form/index.js +17 -0
- package/lib/components/Gallery/Gallery.stories.d.ts +16 -0
- package/lib/components/Gallery/index.d.ts +7 -0
- package/lib/components/Greeting/Greeting.stories.d.ts +13 -0
- package/lib/components/Greeting/index.d.ts +7 -0
- package/lib/components/Greeting/index.js +20 -0
- package/lib/components/HamburgerIcon/HamburgerIcon.stories.d.ts +10 -0
- package/lib/components/HamburgerIcon/index.d.ts +2 -0
- package/lib/components/HamburgerIcon/index.js +78 -0
- package/lib/components/Icon/Icon.stories.d.ts +16 -0
- package/lib/components/Icon/index.d.ts +10 -0
- package/lib/components/Icon/index.js +23 -0
- package/lib/components/Image/Image.stories.d.ts +13 -0
- package/lib/components/Image/index.d.ts +5 -0
- package/lib/components/Image/index.js +17 -0
- package/lib/components/ImageCard/ImageCard.stories.d.ts +19 -0
- package/lib/components/ImageCard/index.d.ts +11 -0
- package/lib/components/ImageCard/index.js +32 -0
- package/lib/components/Input/Input.stories.d.ts +22 -0
- package/lib/components/Input/index.d.ts +33 -0
- package/lib/components/Input/index.js +83 -0
- package/lib/components/MenuButton/MenuButton.stories.d.ts +76 -0
- package/lib/components/MenuButton/index.d.ts +14 -0
- package/lib/components/MenuButton/index.js +56 -0
- package/lib/components/Modal/Modal.stories.d.ts +67 -0
- package/lib/components/Modal/index.d.ts +10 -0
- package/lib/components/Modal/index.js +45 -0
- package/lib/components/Nav/Nav.stories.d.ts +32 -0
- package/lib/components/Nav/index.d.ts +21 -0
- package/lib/components/Nav/index.js +82 -0
- package/lib/components/NavItem/NavItem.stories.d.ts +18 -0
- package/lib/components/NavItem/index.d.ts +8 -0
- package/lib/components/NavItem/index.js +24 -0
- package/lib/components/Pill/Pill.stories.d.ts +22 -0
- package/lib/components/Pill/index.d.ts +17 -0
- package/lib/components/Pill/index.js +31 -0
- package/lib/components/Search/Search.stories.d.ts +86 -0
- package/lib/components/Search/index.d.ts +12 -0
- package/lib/components/Search/index.js +42 -0
- package/lib/components/Select/Select.stories.d.ts +56 -0
- package/lib/components/Select/index.d.ts +11 -0
- package/lib/components/Select/index.js +68 -0
- package/lib/components/Showcase/Showcase.stories.d.ts +55 -0
- package/lib/components/Showcase/index.d.ts +15 -0
- package/lib/components/SideNav/SideNav.stories.d.ts +80 -0
- package/lib/components/SideNav/index.d.ts +12 -0
- package/lib/components/SocialButton/SocialButton.stories.d.ts +130 -0
- package/lib/components/SocialButton/index.d.ts +12 -0
- package/lib/components/SplitCard/SplitCard.stories.d.ts +21 -0
- package/lib/components/SplitCard/index.d.ts +14 -0
- package/lib/components/Stars/Star.stories.d.ts +14 -0
- package/lib/components/Stars/index.d.ts +8 -0
- package/lib/components/Stars/index.js +22 -0
- package/lib/components/Testimonial/Testimonial.stories.d.ts +21 -0
- package/lib/components/Testimonial/index.d.ts +13 -0
- package/lib/components/Testimonial/index.js +42 -0
- package/lib/components/TextArea/TextArea.stories.d.ts +21 -0
- package/lib/components/TextArea/index.d.ts +33 -0
- package/lib/components/TextArea/index.js +76 -0
- package/lib/components/Timeline/Timeline.stories.d.ts +21 -0
- package/lib/components/Timeline/index.d.ts +11 -0
- package/lib/components/Timeline/index.js +31 -0
- package/lib/components/Tubestops/Tubestops.stories.d.ts +19 -0
- package/lib/components/Tubestops/index.d.ts +15 -0
- package/lib/components/Tubestops/index.js +77 -0
- package/lib/components/Video/Video.stories.d.ts +23 -0
- package/lib/components/Video/index.d.ts +18 -0
- package/lib/components/Video/index.js +32 -0
- package/{src/components/index.ts → lib/components/index.d.ts} +35 -71
- package/lib/documentation/assets/index.d.ts +3 -0
- package/lib/documentation/typography/Fonts/Fonts.d.ts +2 -0
- package/lib/documentation/typography/Fonts/Fonts.stories.d.ts +10 -0
- package/lib/index.js +72 -0
- package/lib/node_modules/keen-slider/keen-slider.min.css.js +1 -0
- package/lib/node_modules/keen-slider/react.js +591 -0
- package/lib/style.css +1 -0
- package/lib/utils/controls.d.ts +36 -0
- package/lib/utils/matchMedia.d.ts +2 -0
- package/lib/utils/screens.d.ts +7 -0
- package/package.json +4 -1
- package/.eslintrc.cjs +0 -72
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -10
- package/.prettierrc.json +0 -22
- package/postcss.config.js +0 -8
- package/src/components/Accordion/Accordion.stories.tsx +0 -39
- package/src/components/Accordion/const.tsx +0 -34
- package/src/components/Accordion/index.tsx +0 -22
- package/src/components/AlertBar/AlertBar.stories.tsx +0 -89
- package/src/components/AlertBar/index.tsx +0 -82
- package/src/components/Avatar/Avatar.stories.tsx +0 -14
- package/src/components/Avatar/index.tsx +0 -492
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -29
- package/src/components/Breadcrumbs/index.tsx +0 -89
- package/src/components/Button/Button.stories.tsx +0 -24
- package/src/components/Button/index.tsx +0 -59
- package/src/components/Calendar/Calendar.stories.tsx +0 -21
- package/src/components/Calendar/index.tsx +0 -92
- package/src/components/Calendar/style.css +0 -233
- package/src/components/Card/Card.stories.tsx +0 -14
- package/src/components/Card/index.tsx +0 -39
- package/src/components/Carousel/Carousel.stories.tsx +0 -44
- package/src/components/Carousel/index.tsx +0 -301
- package/src/components/Carousel/utils.ts +0 -53
- package/src/components/CarouselThumbnail/CarouselThumbnail.stories.tsx +0 -29
- package/src/components/CarouselThumbnail/const.ts +0 -17
- package/src/components/CarouselThumbnail/index.tsx +0 -169
- package/src/components/CarouselThumbnail/utils.ts +0 -87
- package/src/components/Checkbox/Checkbox.mdx +0 -33
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -27
- package/src/components/Checkbox/index.tsx +0 -44
- package/src/components/Collapsible/Collapsible.stories.tsx +0 -67
- package/src/components/Collapsible/index.tsx +0 -169
- package/src/components/Counter/Counter.stories.tsx +0 -20
- package/src/components/Counter/index.tsx +0 -98
- package/src/components/DetailUpdater/DetailUpdater.stories.tsx +0 -37
- package/src/components/DetailUpdater/index.tsx +0 -107
- package/src/components/Dialog/Dialog.stories.tsx +0 -65
- package/src/components/Dialog/index.tsx +0 -29
- package/src/components/Dropdown/Dropdown.stories.tsx +0 -22
- package/src/components/Dropdown/index.tsx +0 -117
- package/src/components/Dropdown/utils.ts +0 -15
- package/src/components/FileUploader/FilePreview.tsx +0 -45
- package/src/components/FileUploader/FileUploader.stories.tsx +0 -28
- package/src/components/FileUploader/index.tsx +0 -177
- package/src/components/Footer/Footer.stories.tsx +0 -47
- package/src/components/Footer/index.tsx +0 -96
- package/src/components/FooterNav/FooterNav.stories.tsx +0 -32
- package/src/components/FooterNav/index.tsx +0 -75
- package/src/components/Form/Form.stories.tsx +0 -86
- package/src/components/Form/index.tsx +0 -41
- package/src/components/Gallery/Gallery.stories.tsx +0 -39
- package/src/components/Gallery/index.tsx +0 -31
- package/src/components/Greeting/Greeting.stories.tsx +0 -16
- package/src/components/Greeting/index.tsx +0 -49
- package/src/components/HamburgerIcon/HamburgerIcon.stories.tsx +0 -14
- package/src/components/HamburgerIcon/index.tsx +0 -75
- package/src/components/Icon/Icon.stories.tsx +0 -41
- package/src/components/Icon/index.tsx +0 -33
- package/src/components/Image/Image.stories.tsx +0 -17
- package/src/components/Image/index.tsx +0 -25
- package/src/components/ImageCard/ImageCard.stories.tsx +0 -29
- package/src/components/ImageCard/index.tsx +0 -75
- package/src/components/Input/Input.stories.tsx +0 -25
- package/src/components/Input/index.tsx +0 -139
- package/src/components/MenuButton/MenuButton.stories.tsx +0 -46
- package/src/components/MenuButton/index.tsx +0 -66
- package/src/components/Modal/Modal.stories.tsx +0 -82
- package/src/components/Modal/index.tsx +0 -71
- package/src/components/Nav/Nav.stories.tsx +0 -80
- package/src/components/Nav/index.tsx +0 -171
- package/src/components/NavItem/NavItem.stories.tsx +0 -17
- package/src/components/NavItem/index.tsx +0 -39
- package/src/components/Pill/Pill.stories.tsx +0 -51
- package/src/components/Pill/index.tsx +0 -69
- package/src/components/Search/Search.stories.tsx +0 -63
- package/src/components/Search/index.tsx +0 -64
- package/src/components/Select/Select.stories.tsx +0 -55
- package/src/components/Select/index.tsx +0 -97
- package/src/components/Showcase/Showcase.stories.tsx +0 -31
- package/src/components/Showcase/index.tsx +0 -62
- package/src/components/SideNav/SideNav.stories.tsx +0 -50
- package/src/components/SideNav/index.tsx +0 -39
- package/src/components/SocialButton/SocialButton.stories.tsx +0 -88
- package/src/components/SocialButton/index.tsx +0 -63
- package/src/components/SplitCard/SplitCard.stories.tsx +0 -34
- package/src/components/SplitCard/index.tsx +0 -132
- package/src/components/Stars/Star.stories.tsx +0 -18
- package/src/components/Stars/index.tsx +0 -38
- package/src/components/Testimonial/Testimonial.stories.tsx +0 -37
- package/src/components/Testimonial/index.tsx +0 -123
- package/src/components/TextArea/TextArea.stories.tsx +0 -24
- package/src/components/TextArea/index.tsx +0 -133
- package/src/components/Timeline/Timeline.stories.tsx +0 -45
- package/src/components/Timeline/index.tsx +0 -65
- package/src/components/Tubestops/Tubestops.stories.tsx +0 -22
- package/src/components/Tubestops/index.tsx +0 -132
- package/src/components/Video/Video.stories.tsx +0 -58
- package/src/components/Video/assets/example.mp4 +0 -0
- package/src/components/Video/assets/example.ogv +0 -0
- package/src/components/Video/assets/example.webm +0 -0
- package/src/components/Video/index.tsx +0 -92
- package/src/custom.d.ts +0 -14
- package/src/documentation/Colours.mdx +0 -192
- package/src/documentation/Introduction.mdx +0 -13
- package/src/documentation/assets/index.ts +0 -3
- package/src/documentation/assets/trepurComponentsLogo.svg +0 -32
- package/src/documentation/typography/Fonts/Fonts.stories.tsx +0 -14
- package/src/documentation/typography/Fonts/Fonts.tsx +0 -73
- package/src/fonts/Sora/OFL.txt +0 -93
- package/src/fonts/Sora/README.txt +0 -70
- package/src/fonts/Sora/Sora-VariableFont_wght.ttf +0 -0
- package/src/fonts/Sora/static/Sora-Bold.ttf +0 -0
- package/src/fonts/Sora/static/Sora-ExtraBold.ttf +0 -0
- package/src/fonts/Sora/static/Sora-ExtraLight.ttf +0 -0
- package/src/fonts/Sora/static/Sora-Light.ttf +0 -0
- package/src/fonts/Sora/static/Sora-Medium.ttf +0 -0
- package/src/fonts/Sora/static/Sora-Regular.ttf +0 -0
- package/src/fonts/Sora/static/Sora-SemiBold.ttf +0 -0
- package/src/fonts/Sora/static/Sora-Thin.ttf +0 -0
- package/src/utils/controls.ts +0 -44
- package/src/utils/matchMedia.ts +0 -9
- package/src/utils/screens.ts +0 -7
- package/tailwind.config.ts +0 -13
- package/tsconfig.json +0 -49
- package/tsconfig.node.json +0 -12
- package/vite.config.mjs +0 -64
- /package/{src/index.ts → lib/index.d.ts} +0 -0
- /package/{src → lib}/styles/global.css +0 -0
- /package/{src → lib}/styles/themes/local.css +0 -0
- /package/{src → lib}/styles/themes/test.css +0 -0
- /package/{tailwind → lib/tailwind}/boxShadow.ts +0 -0
- /package/{tailwind → lib/tailwind}/colors.ts +0 -0
- /package/{tailwind → lib/tailwind}/container.ts +0 -0
- /package/{tailwind → lib/tailwind}/preset.ts +0 -0
- /package/{tailwind → lib/tailwind}/spacing.ts +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Accordion } from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: any;
|
|
7
|
+
argTypes: {
|
|
8
|
+
id: {
|
|
9
|
+
description: string;
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
table: {
|
|
15
|
+
category: string;
|
|
16
|
+
type: {
|
|
17
|
+
summary: string;
|
|
18
|
+
};
|
|
19
|
+
defaultValue: {
|
|
20
|
+
summary: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
className: {
|
|
25
|
+
description: string;
|
|
26
|
+
control: {
|
|
27
|
+
type: string;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
table: {
|
|
31
|
+
category: string;
|
|
32
|
+
type: {
|
|
33
|
+
summary: string;
|
|
34
|
+
};
|
|
35
|
+
defaultValue: {
|
|
36
|
+
summary: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
args: {
|
|
42
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default meta;
|
|
46
|
+
type Story = StoryObj<typeof Accordion>;
|
|
47
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const items: ({
|
|
2
|
+
label: string;
|
|
3
|
+
title: string;
|
|
4
|
+
subtitle: string;
|
|
5
|
+
image: string;
|
|
6
|
+
content: string;
|
|
7
|
+
} | {
|
|
8
|
+
title: string;
|
|
9
|
+
content: string;
|
|
10
|
+
label?: undefined;
|
|
11
|
+
subtitle?: undefined;
|
|
12
|
+
image?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
label: string;
|
|
15
|
+
title: string;
|
|
16
|
+
image: string;
|
|
17
|
+
content: string;
|
|
18
|
+
subtitle?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
subtitle: string;
|
|
21
|
+
image: string;
|
|
22
|
+
content: string;
|
|
23
|
+
label?: undefined;
|
|
24
|
+
title?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
image: string;
|
|
27
|
+
content: string;
|
|
28
|
+
label?: undefined;
|
|
29
|
+
title?: undefined;
|
|
30
|
+
subtitle?: undefined;
|
|
31
|
+
})[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as a } from "react";
|
|
3
|
+
import t from "clsx";
|
|
4
|
+
const o = a(({ id: r, className: c, children: i, loading: d = !1, ...s }, m) => /* @__PURE__ */ n("div", { id: r, className: t("", c), ref: m, ...s, children: i }));
|
|
5
|
+
o.displayName = "Accordion";
|
|
6
|
+
const l = Object.assign(o);
|
|
7
|
+
export {
|
|
8
|
+
l as Accordion
|
|
9
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { AlertBar } from './';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('./').AlertBarProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
Icon: import('react').ForwardRefExoticComponent<{
|
|
9
|
+
icon: any;
|
|
10
|
+
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
11
|
+
Dismiss: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLButtonElement>, "icon"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof AlertBar>;
|
|
19
|
+
export declare const Default: Story;
|
|
20
|
+
export declare const Error: Story;
|
|
21
|
+
export declare const Success: Story;
|
|
22
|
+
export declare const Warning: Story;
|
|
23
|
+
export declare const Info: Story;
|
|
24
|
+
export declare const Dismiss: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface AlertBarProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const AlertBar: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AlertBarProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
10
|
+
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
Icon: import('react').ForwardRefExoticComponent<{
|
|
12
|
+
icon: any;
|
|
13
|
+
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
14
|
+
Dismiss: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLButtonElement>, "icon"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
};
|
|
16
|
+
export { AlertBar };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { faExclamation as g } from "@fortawesome/fontawesome-free-solid";
|
|
4
|
+
import u from "clsx";
|
|
5
|
+
import { Button as p } from "../Button/index.js";
|
|
6
|
+
import { Icon as o } from "../Icon/index.js";
|
|
7
|
+
const s = l(
|
|
8
|
+
({ id: e, className: a, children: f, variant: r = "default", loading: x, ...m }, d) => /* @__PURE__ */ t(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
id: e,
|
|
12
|
+
className: u("flex w-full items-center gap-x-4 px-8 py-2", {
|
|
13
|
+
"": r === "default",
|
|
14
|
+
"border-error-default bg-error-light text-error-default": r === "error",
|
|
15
|
+
"border-info-default bg-info-light text-info-default": r === "info",
|
|
16
|
+
"border-success-default bg-success-light text-success-default": r === "success",
|
|
17
|
+
"border-warning-default bg-warning-light text-warning-default": r === "warning"
|
|
18
|
+
}),
|
|
19
|
+
ref: d,
|
|
20
|
+
...m,
|
|
21
|
+
children: f
|
|
22
|
+
}
|
|
23
|
+
)
|
|
24
|
+
), i = l(({ ...e }, a) => /* @__PURE__ */ t("p", { className: "text-md text-light-grey flex-1 truncate", ref: a, ...e })), n = l(({ icon: e }, a) => /* @__PURE__ */ t(o, { ref: a, icon: e })), c = l(({ ...e }) => /* @__PURE__ */ t(p, { variant: "ghost", ...e, children: /* @__PURE__ */ t(o, { icon: g }) }));
|
|
25
|
+
s.displayName = "AlertBar";
|
|
26
|
+
i.displayName = "AlertBar.Label";
|
|
27
|
+
n.displayName = "AlertBar.Icon";
|
|
28
|
+
c.displayName = "AlertBar.Dismiss";
|
|
29
|
+
const y = Object.assign(s, {
|
|
30
|
+
Label: i,
|
|
31
|
+
Icon: n,
|
|
32
|
+
Dismiss: c
|
|
33
|
+
});
|
|
34
|
+
export {
|
|
35
|
+
y as AlertBar
|
|
36
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Breadcrumbs } from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLUListElement> & import('.').BreadcrumbsProps & import('react').RefAttributes<HTMLUListElement>> & {
|
|
7
|
+
Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
|
|
8
|
+
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
9
|
+
href: string;
|
|
10
|
+
} & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
};
|
|
12
|
+
args: {
|
|
13
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof Breadcrumbs>;
|
|
18
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface BreadcrumbsProps {
|
|
4
|
+
id?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
links?: Array<{
|
|
7
|
+
name: string;
|
|
8
|
+
href: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
declare const Breadcrumbs: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & BreadcrumbsProps & import('react').RefAttributes<HTMLUListElement>> & {
|
|
12
|
+
Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
|
|
13
|
+
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & {
|
|
14
|
+
href: string;
|
|
15
|
+
} & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
16
|
+
};
|
|
17
|
+
export { Breadcrumbs };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
const c = s(({ children: e, ...r }, m) => /* @__PURE__ */ a("ul", { className: "flex gap-2", ...r, children: e })), t = s(({ children: e, ...r }, m) => /* @__PURE__ */ n("li", { className: "flex items-center gap-2", ...r, children: [
|
|
4
|
+
e,
|
|
5
|
+
/* @__PURE__ */ a("p", { children: "/" })
|
|
6
|
+
] })), l = s(({ children: e, href: r, ...m }, o) => /* @__PURE__ */ a("p", { className: "px-1 py-1", children: /* @__PURE__ */ a("a", { className: "text-facebook hover:underline", href: r, children: e }) }));
|
|
7
|
+
c.displayName = "Breadcrumbs";
|
|
8
|
+
t.displayName = "Breadcrumbs.Item";
|
|
9
|
+
l.displayName = "Breadcrumbs.Label";
|
|
10
|
+
const b = Object.assign(c, {
|
|
11
|
+
Item: t,
|
|
12
|
+
Label: l
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
b as Breadcrumbs
|
|
16
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Button } from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('.').ButtonProps & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
7
|
+
Icon: import('react').ForwardRefExoticComponent<{
|
|
8
|
+
icon: any;
|
|
9
|
+
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
10
|
+
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
};
|
|
12
|
+
args: {
|
|
13
|
+
variant: "primary";
|
|
14
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
15
|
+
onClick: import('@storybook/addon-actions').HandlerFunction;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof Button>;
|
|
20
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface ButtonProps {
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'ghost';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Button: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & ButtonProps & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
8
|
+
Icon: import('react').ForwardRefExoticComponent<{
|
|
9
|
+
icon: any;
|
|
10
|
+
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
11
|
+
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
12
|
+
};
|
|
13
|
+
export { Button };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { Icon as m } from "../Icon/index.js";
|
|
4
|
+
import b from "clsx";
|
|
5
|
+
const a = n(({ className: t, children: o, variant: e = "primary", disabled: d, ...u }) => /* @__PURE__ */ r(
|
|
6
|
+
"button",
|
|
7
|
+
{
|
|
8
|
+
className: b(
|
|
9
|
+
"flex items-center gap-2 rounded-lg border px-4 py-2 text-center text-sm duration-200",
|
|
10
|
+
{
|
|
11
|
+
"border-button-primary-border bg-button-primary-bg text-button-primary-text hover:bg-button-primary-hover active:bg-button-primary-active": e === "primary",
|
|
12
|
+
"border-button-secondary-border bg-button-secondary-bg text-button-secondary-text hover:bg-button-secondary-hover active:bg-button-secondary-active": e === "secondary",
|
|
13
|
+
"border-button-ghost-border bg-button-ghost-bg text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": e === "ghost"
|
|
14
|
+
},
|
|
15
|
+
t
|
|
16
|
+
),
|
|
17
|
+
...u,
|
|
18
|
+
children: o
|
|
19
|
+
}
|
|
20
|
+
)), s = n(({ className: t, ...o }, e) => /* @__PURE__ */ r("p", { className: b("text-md", t), ref: e, ...o })), c = n(({ icon: t }, o) => /* @__PURE__ */ r(m, { size: "md", ref: o, icon: t }));
|
|
21
|
+
a.displayName = "Button";
|
|
22
|
+
c.displayName = "Button.Icon";
|
|
23
|
+
s.displayName = "Button.Label";
|
|
24
|
+
const x = Object.assign(a, {
|
|
25
|
+
Icon: c,
|
|
26
|
+
Label: s
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
x as Button
|
|
30
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { CalendarComponent } from './';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: any;
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof CalendarComponent>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const ShowDoubleView: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
export type Detail = 'month' | 'year' | 'decade' | 'century';
|
|
3
|
+
export interface CalendarProps {
|
|
4
|
+
onChange?: () => void;
|
|
5
|
+
useRange?: boolean;
|
|
6
|
+
minDetail?: Detail;
|
|
7
|
+
minDate?: Date;
|
|
8
|
+
maxDate?: Date;
|
|
9
|
+
showNavigation?: true;
|
|
10
|
+
disabledDates?: string[];
|
|
11
|
+
showDoubleView?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const CalendarComponent: any;
|
|
14
|
+
export { CalendarComponent };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as w, useState as y } from "react";
|
|
3
|
+
import b from "react-calendar";
|
|
4
|
+
import "./style.css.js";
|
|
5
|
+
const i = w(
|
|
6
|
+
({
|
|
7
|
+
onChange: m,
|
|
8
|
+
useRange: l,
|
|
9
|
+
minDetail: s,
|
|
10
|
+
minDate: c,
|
|
11
|
+
maxDate: f,
|
|
12
|
+
showNavigation: d,
|
|
13
|
+
disabledDates: u,
|
|
14
|
+
showDoubleView: p
|
|
15
|
+
}, D) => {
|
|
16
|
+
const [n, r] = y(/* @__PURE__ */ new Date()), C = (e, t) => {
|
|
17
|
+
const a = new Intl.DateTimeFormat("en-gb", {
|
|
18
|
+
year: "numeric",
|
|
19
|
+
month: "2-digit",
|
|
20
|
+
day: "2-digit"
|
|
21
|
+
}).format(e == null ? void 0 : e.date);
|
|
22
|
+
return t ? t.includes(a) : !1;
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ g(
|
|
25
|
+
b,
|
|
26
|
+
{
|
|
27
|
+
ref: D,
|
|
28
|
+
onActiveStartDateChange: ({ value: e, activeStartDate: t, action: a }) => {
|
|
29
|
+
const o = t !== null ? t : n;
|
|
30
|
+
a === "next" && r(new Date(o)), a === "prev" && r(new Date(o));
|
|
31
|
+
},
|
|
32
|
+
activeStartDate: n,
|
|
33
|
+
onChange: m,
|
|
34
|
+
selectRange: l,
|
|
35
|
+
minDetail: s,
|
|
36
|
+
minDate: c,
|
|
37
|
+
maxDate: f,
|
|
38
|
+
showNavigation: d,
|
|
39
|
+
showDoubleView: p,
|
|
40
|
+
tileDisabled: (e) => C(e, u)
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
i.displayName = "Calendar";
|
|
46
|
+
const F = Object.assign(i);
|
|
47
|
+
export {
|
|
48
|
+
F as CalendarComponent
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import m from "clsx";
|
|
4
|
+
const t = l(({ className: s, href: o, target: r, children: d, ...i }, p) => {
|
|
5
|
+
let a = "div", e = {};
|
|
6
|
+
return (o || r) && (a = "a", e = { href: o, target: r, ...i }), /* @__PURE__ */ n(
|
|
7
|
+
a,
|
|
8
|
+
{
|
|
9
|
+
className: m(
|
|
10
|
+
"grid grid-cols-1 rounded-xl bg-white p-4 drop-shadow",
|
|
11
|
+
{
|
|
12
|
+
"hover:cursor-pointer": o
|
|
13
|
+
},
|
|
14
|
+
s
|
|
15
|
+
),
|
|
16
|
+
...e,
|
|
17
|
+
children: d
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
});
|
|
21
|
+
t.displayName = "Card";
|
|
22
|
+
const u = Object.assign(t);
|
|
23
|
+
export {
|
|
24
|
+
u as Card
|
|
25
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Carousel } from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').CarouselContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Arrow: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').ArrowProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Dots: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('.').DotProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
Slides: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
11
|
+
rightArrow?: boolean | undefined;
|
|
12
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
14
|
+
args: {
|
|
15
|
+
perView: number;
|
|
16
|
+
spacing: number;
|
|
17
|
+
loop: true;
|
|
18
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof Carousel>;
|
|
23
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { KeenSliderInstance, KeenSliderHooks, KeenSliderOptions } from 'keen-slider/react';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface ArrowProps {
|
|
5
|
+
rightArrow?: boolean;
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onClick?: any;
|
|
9
|
+
}
|
|
10
|
+
export interface DotProps {
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
onClick?: any;
|
|
14
|
+
}
|
|
15
|
+
export interface CarouselContextProps {
|
|
16
|
+
sliderRef?: any;
|
|
17
|
+
instanceRef?: any;
|
|
18
|
+
currentSlide?: number;
|
|
19
|
+
slideWrapperClassName?: string;
|
|
20
|
+
breakpoints?: Record<string, Omit<KeenSliderOptions<{}, {}, KeenSliderHooks>, 'breakpoints'>>;
|
|
21
|
+
defaultAnimation?: {
|
|
22
|
+
duration?: number;
|
|
23
|
+
easing?: (t: number) => number;
|
|
24
|
+
};
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
drag?: boolean;
|
|
27
|
+
dragSpeed?: number;
|
|
28
|
+
initial?: number;
|
|
29
|
+
loop?: boolean;
|
|
30
|
+
mode?: 'snap' | 'free' | 'free-snap';
|
|
31
|
+
range?: {
|
|
32
|
+
align?: boolean;
|
|
33
|
+
min?: number;
|
|
34
|
+
max?: number;
|
|
35
|
+
};
|
|
36
|
+
renderMode?: 'precision' | 'performance' | 'custom';
|
|
37
|
+
rtl?: boolean;
|
|
38
|
+
rubberband?: boolean;
|
|
39
|
+
slides?: any[];
|
|
40
|
+
vertical?: boolean;
|
|
41
|
+
animationStarted?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
42
|
+
animationStopped?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
43
|
+
animationEnded?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
44
|
+
created?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
45
|
+
destroyed?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
46
|
+
detailsChanged?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
47
|
+
dragged?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
48
|
+
dragStarted?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
49
|
+
dragChecked?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
50
|
+
dragEnded?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
51
|
+
beforeOptionsChanged?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
52
|
+
optionsChanged?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
53
|
+
slideChanged?: boolean;
|
|
54
|
+
updated?: (slider: KeenSliderInstance<{}, {}, KeenSliderHooks>) => void;
|
|
55
|
+
perView?: number;
|
|
56
|
+
spacing?: number;
|
|
57
|
+
number?: number;
|
|
58
|
+
origin?: number | 'auto' | 'center';
|
|
59
|
+
arrows?: ArrowProps;
|
|
60
|
+
dots?: DotProps;
|
|
61
|
+
}
|
|
62
|
+
declare const Carousel: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & CarouselContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
63
|
+
Content: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
64
|
+
Arrow: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & ArrowProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
65
|
+
Dots: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & DotProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
66
|
+
Slides: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
67
|
+
rightArrow?: boolean | undefined;
|
|
68
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
69
|
+
};
|
|
70
|
+
export { Carousel };
|