trepur_components 2.3.9 → 2.3.11
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 +25 -0
- package/lib/components/AlertBar/index.d.ts +15 -0
- package/lib/components/AlertBar/index.js +66 -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 +15 -0
- package/lib/components/Breadcrumbs/index.js +49 -0
- package/lib/components/Button/Button.stories.d.ts +24 -0
- package/lib/components/Button/index.d.ts +14 -0
- package/lib/components/Button/index.js +43 -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 +31 -0
- package/lib/components/Nav/index.d.ts +20 -0
- package/lib/components/Nav/index.js +81 -0
- package/lib/components/NavItem/NavItem.stories.d.ts +17 -0
- package/lib/components/NavItem/index.d.ts +8 -0
- package/lib/components/NavItem/index.js +31 -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 +30 -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/styles/global.css +19 -0
- package/{src → lib}/styles/themes/local.css +9 -1
- package/lib/styles/themes/penrithmrt.css +101 -0
- package/{tailwind → lib/tailwind}/colors.ts +12 -1
- 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/styles/global.css +0 -75
- package/src/styles/themes/test.css +0 -28
- 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/{tailwind → lib/tailwind}/boxShadow.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,117 @@
|
|
|
1
|
+
import { Form } from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: ({ id, className, onSubmit, ref, components }: import('.').Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
argTypes: {
|
|
8
|
+
title: {
|
|
9
|
+
type: {
|
|
10
|
+
name: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
};
|
|
13
|
+
description: string;
|
|
14
|
+
table: {
|
|
15
|
+
type: {
|
|
16
|
+
summary: string;
|
|
17
|
+
};
|
|
18
|
+
defaultValue: {
|
|
19
|
+
summary: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
onSubmit: {
|
|
24
|
+
type: {
|
|
25
|
+
name: string;
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
description: string;
|
|
29
|
+
action: string;
|
|
30
|
+
table: {
|
|
31
|
+
type: {
|
|
32
|
+
summary: string;
|
|
33
|
+
};
|
|
34
|
+
defaultValue: {
|
|
35
|
+
summary: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
ref: {
|
|
40
|
+
type: {
|
|
41
|
+
name: string;
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
description: string;
|
|
45
|
+
table: {
|
|
46
|
+
type: {
|
|
47
|
+
summary: string;
|
|
48
|
+
};
|
|
49
|
+
defaultValue: {
|
|
50
|
+
summary: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
components: {
|
|
55
|
+
description: string;
|
|
56
|
+
control: string;
|
|
57
|
+
table: {
|
|
58
|
+
type: {
|
|
59
|
+
summary: string;
|
|
60
|
+
};
|
|
61
|
+
defaultValue: {
|
|
62
|
+
summary: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
id: {
|
|
67
|
+
description: string;
|
|
68
|
+
control: {
|
|
69
|
+
type: string;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
table: {
|
|
73
|
+
category: string;
|
|
74
|
+
type: {
|
|
75
|
+
summary: string;
|
|
76
|
+
};
|
|
77
|
+
defaultValue: {
|
|
78
|
+
summary: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
className: {
|
|
83
|
+
description: string;
|
|
84
|
+
control: {
|
|
85
|
+
type: string;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
table: {
|
|
89
|
+
category: string;
|
|
90
|
+
type: {
|
|
91
|
+
summary: string;
|
|
92
|
+
};
|
|
93
|
+
defaultValue: {
|
|
94
|
+
summary: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
args: {
|
|
100
|
+
components: ({
|
|
101
|
+
htmlType: string;
|
|
102
|
+
label: string;
|
|
103
|
+
placeholder: string;
|
|
104
|
+
children: string;
|
|
105
|
+
className: string;
|
|
106
|
+
} | {
|
|
107
|
+
htmlType: string;
|
|
108
|
+
children: string;
|
|
109
|
+
label?: undefined;
|
|
110
|
+
placeholder?: undefined;
|
|
111
|
+
className?: undefined;
|
|
112
|
+
})[];
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export default meta;
|
|
116
|
+
type Story = StoryObj<typeof Form>;
|
|
117
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InputContextProps } from '../Input';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
|
|
4
|
+
export interface Props {
|
|
5
|
+
id?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
onSubmit?: () => void;
|
|
8
|
+
ref?: string;
|
|
9
|
+
components?: Array<InputContextProps & ButtonProps & {
|
|
10
|
+
htmlType: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export declare const Form: ({ id, className, onSubmit, ref, components }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as l, Fragment as y } from "react/jsx-runtime";
|
|
2
|
+
import { Button as u } from "../Button/index.js";
|
|
3
|
+
import { Input as C } from "../Input/index.js";
|
|
4
|
+
import { Card as k } from "../Card/index.js";
|
|
5
|
+
const T = ({ id: f, className: h, onSubmit: d, ref: b, components: i }) => /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l("form", { id: f, ref: b, className: h, onSubmit: d, children: i == null ? void 0 : i.map((r, a) => (r == null ? void 0 : r.htmlType) === "Input" ? /* @__PURE__ */ l(
|
|
6
|
+
C,
|
|
7
|
+
{
|
|
8
|
+
label: r == null ? void 0 : r.label,
|
|
9
|
+
placeholder: r == null ? void 0 : r.placeholder,
|
|
10
|
+
type: r == null ? void 0 : r.type,
|
|
11
|
+
name: r == null ? void 0 : r.name
|
|
12
|
+
},
|
|
13
|
+
`input_${a + 0}`
|
|
14
|
+
) : r.htmlType === "Button" ? /* @__PURE__ */ l(u, { onClick: r == null ? void 0 : r.onClick, children: /* @__PURE__ */ l(u.Label, {}) }, `button_${a + 0}`) : /* @__PURE__ */ l(y, {})) }) });
|
|
15
|
+
export {
|
|
16
|
+
T as Form
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Gallery } from './';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('../Image').ImageProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
|
+
};
|
|
9
|
+
args: {
|
|
10
|
+
className: string;
|
|
11
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof Gallery>;
|
|
16
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImageProps } from '../Image';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const Gallery: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & ImageProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
+
};
|
|
7
|
+
export { Gallery };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Greeting } from './';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: any;
|
|
7
|
+
args: {
|
|
8
|
+
morningMessage: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof Greeting>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { DateTime as n } from "luxon";
|
|
4
|
+
const r = g(
|
|
5
|
+
({
|
|
6
|
+
morningMessage: s = "Good morning",
|
|
7
|
+
afternoonMessage: m = "Good afternoon",
|
|
8
|
+
eveningMessage: d = "Good evening",
|
|
9
|
+
...c
|
|
10
|
+
}, f) => {
|
|
11
|
+
const e = n.now(), t = n.now().set({ hour: 12, minute: 0, second: 0 }), i = n.now().set({ hour: 17, minute: 0, second: 0 });
|
|
12
|
+
let o = "";
|
|
13
|
+
return e < t ? o = s : e >= t && e < i ? o = m : e >= i && (o = d), /* @__PURE__ */ a("p", { ...c, ref: f, children: o });
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
r.displayName = "Greeting";
|
|
17
|
+
const u = Object.assign(r);
|
|
18
|
+
export {
|
|
19
|
+
u as Greeting
|
|
20
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g, useState as d } from "react";
|
|
3
|
+
import { Button as f } from "../Button/index.js";
|
|
4
|
+
import o from "clsx";
|
|
5
|
+
const n = g(({ className: i, onClick: a, variant: e = "ghost" }, l) => {
|
|
6
|
+
const [t, m] = d(!1), p = (s) => {
|
|
7
|
+
m(!t), a == null || a(s);
|
|
8
|
+
};
|
|
9
|
+
return /* @__PURE__ */ r(
|
|
10
|
+
f,
|
|
11
|
+
{
|
|
12
|
+
className: o("stroke-white", i),
|
|
13
|
+
ref: l,
|
|
14
|
+
onClick: (s) => {
|
|
15
|
+
p(s);
|
|
16
|
+
},
|
|
17
|
+
variant: e,
|
|
18
|
+
children: /* @__PURE__ */ c(
|
|
19
|
+
"svg",
|
|
20
|
+
{
|
|
21
|
+
className: o(
|
|
22
|
+
"transition-backgroundColor mx-auto transform overflow-visible duration-500",
|
|
23
|
+
{
|
|
24
|
+
"fill-button-primary-text": e === "primary",
|
|
25
|
+
"fill-button-secondary-text": e === "secondary",
|
|
26
|
+
"fill-button-ghost-text stroke-button-ghost-text": e === "ghost"
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
width: "24",
|
|
30
|
+
height: "24",
|
|
31
|
+
viewBox: "0 0 24 15",
|
|
32
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ r(
|
|
35
|
+
"path",
|
|
36
|
+
{
|
|
37
|
+
className: o(
|
|
38
|
+
"origin-top-left transition-transform duration-200 ease-linear",
|
|
39
|
+
{
|
|
40
|
+
"origin-top-left -translate-y-0.5 translate-x-1 rotate-45": t
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
d: "M0 1.5C0 0.947715 0.447715 0.5 1 0.5H21C21.5523 0.5 22 0.947715 22 1.5C22 2.05228 21.5523 2.5 21 2.5H1C0.447716 2.5 0 2.05228 0 1.5Z"
|
|
44
|
+
}
|
|
45
|
+
),
|
|
46
|
+
/* @__PURE__ */ r(
|
|
47
|
+
"path",
|
|
48
|
+
{
|
|
49
|
+
className: o("transition-opacity duration-200 ease-linear", {
|
|
50
|
+
"opacity-0": t,
|
|
51
|
+
"opacity-100": !t
|
|
52
|
+
}),
|
|
53
|
+
d: "M0 7.5C0 6.94772 0.447715 6.5 1 6.5H21C21.5523 6.5 22 6.94772 22 7.5C22 8.05228 21.5523 8.5 21 8.5H1C0.447716 8.5 0 8.05228 0 7.5Z"
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ r(
|
|
57
|
+
"path",
|
|
58
|
+
{
|
|
59
|
+
className: o(
|
|
60
|
+
"origin-bottom-left transition-transform duration-200 ease-linear",
|
|
61
|
+
{
|
|
62
|
+
"origin-bottom-left translate-x-1 translate-y-px -rotate-45": t
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
d: "M0 13.5C0 12.9477 0.447715 12.5 1 12.5H21C21.5523 12.5 22 12.9477 22 13.5C22 14.0523 21.5523 14.5 21 14.5H1C0.447716 14.5 0 14.0523 0 13.5Z"
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
});
|
|
74
|
+
n.displayName = "HamburgerIcon";
|
|
75
|
+
const C = Object.assign(n);
|
|
76
|
+
export {
|
|
77
|
+
C as HamburgerIcon
|
|
78
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Icon } from './';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: any;
|
|
7
|
+
args: {
|
|
8
|
+
icon: import('@fortawesome/fontawesome-free-solid').IconDefinition;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof Icon>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const Colour: Story;
|
|
15
|
+
export declare const Size: Story;
|
|
16
|
+
export declare const Annimation: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconProp, SizeProp } from '@fortawesome/fontawesome-svg-core';
|
|
2
|
+
import { IconDefinition } from '@fortawesome/fontawesome-free-solid';
|
|
3
|
+
|
|
4
|
+
export interface IconProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
icon: IconProp | IconDefinition;
|
|
7
|
+
size: SizeProp;
|
|
8
|
+
}
|
|
9
|
+
declare const Icon: any;
|
|
10
|
+
export { Icon };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { FontAwesomeIcon as a } from "@fortawesome/react-fontawesome";
|
|
4
|
+
const o = i(
|
|
5
|
+
(n, r) => {
|
|
6
|
+
const { className: s, size: t, icon: e, ...c } = n;
|
|
7
|
+
return /* @__PURE__ */ m(
|
|
8
|
+
a,
|
|
9
|
+
{
|
|
10
|
+
className: s,
|
|
11
|
+
ref: r,
|
|
12
|
+
icon: e,
|
|
13
|
+
size: t,
|
|
14
|
+
...c
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
o.displayName = "Icon";
|
|
20
|
+
const d = Object.assign(o);
|
|
21
|
+
export {
|
|
22
|
+
d as Icon
|
|
23
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Image } from '.';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: any;
|
|
7
|
+
args: {
|
|
8
|
+
src: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof Image>;
|
|
13
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import f from "clsx";
|
|
4
|
+
const m = t(({ className: o, src: a, ...e }, r) => /* @__PURE__ */ s(
|
|
5
|
+
"img",
|
|
6
|
+
{
|
|
7
|
+
className: f("h-full w-full", o),
|
|
8
|
+
ref: r,
|
|
9
|
+
src: a,
|
|
10
|
+
...e
|
|
11
|
+
}
|
|
12
|
+
));
|
|
13
|
+
m.displayName = "Image";
|
|
14
|
+
const c = Object.assign(m);
|
|
15
|
+
export {
|
|
16
|
+
c as Image
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ImageCard } 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('react').RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Image: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<import('../Image').ImageProps> & import('../Image').ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
8
|
+
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Title: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
10
|
+
Subtitle: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
Text: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
12
|
+
};
|
|
13
|
+
args: {
|
|
14
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof ImageCard>;
|
|
19
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ImageProps } from '../Image';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const ImageCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Image: import('react').ForwardRefExoticComponent<HTMLAttributes<ImageProps> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
6
|
+
Content: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Title: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
Subtitle: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
9
|
+
Text: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
10
|
+
};
|
|
11
|
+
export { ImageCard };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { Image as p } from "../Image/index.js";
|
|
4
|
+
import C from "clsx";
|
|
5
|
+
const d = m(({ className: a, children: e, ...r }, n) => /* @__PURE__ */ t(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
className: C(
|
|
9
|
+
"grid max-w-96 overflow-hidden rounded-xl bg-white drop-shadow",
|
|
10
|
+
a
|
|
11
|
+
),
|
|
12
|
+
ref: n,
|
|
13
|
+
...r,
|
|
14
|
+
children: e
|
|
15
|
+
}
|
|
16
|
+
)), s = m(({ src: a, ...e }) => /* @__PURE__ */ t("div", { className: "h-64", children: /* @__PURE__ */ t(p, { src: a, ...e }) })), o = m(({ children: a, ...e }, r) => /* @__PURE__ */ t("div", { className: "px-2 pb-4 pt-2", ref: r, ...e, children: a })), i = m(({ ...a }, e) => /* @__PURE__ */ t("p", { className: "text-lg", ref: e, ...a })), l = m(({ ...a }, e) => /* @__PURE__ */ t("p", { className: "text-sm", ref: e, ...a })), g = m(({ ...a }, e) => /* @__PURE__ */ t("p", { className: "text-md pt-2", ref: e, ...a }));
|
|
17
|
+
d.displayName = "ImageCard";
|
|
18
|
+
s.displayName = "ImageCard.Image";
|
|
19
|
+
i.displayName = "ImageCard.Title";
|
|
20
|
+
l.displayName = "ImageCard.Subtitle";
|
|
21
|
+
o.displayName = "ImageCard.Content";
|
|
22
|
+
g.displayName = "ImageCard.Text";
|
|
23
|
+
const f = Object.assign(d, {
|
|
24
|
+
Image: s,
|
|
25
|
+
Content: o,
|
|
26
|
+
Title: i,
|
|
27
|
+
Subtitle: l,
|
|
28
|
+
Text: g
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
f as ImageCard
|
|
32
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Input } 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('.').InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
|
+
Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
required?: boolean | undefined;
|
|
10
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Box: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Validation: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
14
|
+
args: {
|
|
15
|
+
placeholder: string;
|
|
16
|
+
errors: string[];
|
|
17
|
+
children: import("react/jsx-runtime").JSX.Element[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof Input>;
|
|
22
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface InputContextProps {
|
|
4
|
+
autoComplete?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
formId?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
maxLength?: number;
|
|
9
|
+
minLength?: number;
|
|
10
|
+
pattern?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
label?: string;
|
|
14
|
+
type?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
withValidation?: boolean;
|
|
18
|
+
onChange?: (e: any) => void;
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
onFocus?: () => void;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
errors?: string[];
|
|
23
|
+
value?: string;
|
|
24
|
+
}
|
|
25
|
+
declare const Input: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
26
|
+
Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
27
|
+
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
28
|
+
required?: boolean | undefined;
|
|
29
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
30
|
+
Box: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
31
|
+
Validation: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
|
+
};
|
|
33
|
+
export { Input };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { jsx as o, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as I, forwardRef as a, useMemo as b, useRef as h, useContext as i } from "react";
|
|
3
|
+
import N from "clsx";
|
|
4
|
+
const u = I(null), d = a(({ children: r, errors: t, placeholder: e, ...n }, l) => {
|
|
5
|
+
const s = b(
|
|
6
|
+
() => ({
|
|
7
|
+
errors: t,
|
|
8
|
+
placeholder: e,
|
|
9
|
+
...n
|
|
10
|
+
}),
|
|
11
|
+
[t, n]
|
|
12
|
+
);
|
|
13
|
+
return /* @__PURE__ */ o(u.Provider, { value: s, children: /* @__PURE__ */ o("div", { ref: l, children: r }) });
|
|
14
|
+
}), c = a(
|
|
15
|
+
({ children: r, ...t }, e) => {
|
|
16
|
+
const n = h(null);
|
|
17
|
+
return /* @__PURE__ */ o(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: "mt-4 w-full cursor-pointer bg-white",
|
|
21
|
+
onClick: () => {
|
|
22
|
+
var l;
|
|
23
|
+
return (l = n.current) == null ? void 0 : l.focus();
|
|
24
|
+
},
|
|
25
|
+
ref: e,
|
|
26
|
+
...t,
|
|
27
|
+
children: r
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
), m = a(({ children: r, required: t = !1 }, e) => /* @__PURE__ */ f(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
ref: e,
|
|
35
|
+
className: "font-regular absolute -mt-3 ml-3 flex items-center rounded-2xl bg-white px-1 text-sm",
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ o("p", { children: r }),
|
|
38
|
+
t && /* @__PURE__ */ o("p", { className: "font-semiBold text-lg text-error-default", children: " *" })
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
)), p = a(
|
|
42
|
+
({ ...r }) => {
|
|
43
|
+
const { errors: t, placeholder: e } = i(u) || {};
|
|
44
|
+
return /* @__PURE__ */ o(
|
|
45
|
+
"input",
|
|
46
|
+
{
|
|
47
|
+
placeholder: e,
|
|
48
|
+
className: N(
|
|
49
|
+
"text-ink text-md w-full cursor-pointer rounded-md border border-black bg-white py-2 pl-4",
|
|
50
|
+
{
|
|
51
|
+
"border-error border-2": t != null
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
...r
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
), x = a(({ children: r, ...t }, e) => {
|
|
59
|
+
const { errors: n } = i(u) || {};
|
|
60
|
+
return /* @__PURE__ */ o(
|
|
61
|
+
"div",
|
|
62
|
+
{
|
|
63
|
+
ref: e,
|
|
64
|
+
className: "font-regular gap-y-2 text-sm text-error-default",
|
|
65
|
+
...t,
|
|
66
|
+
children: n == null ? void 0 : n.map((l, s) => /* @__PURE__ */ o("p", { children: l }, `error-msg-${s + 1}`))
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
});
|
|
70
|
+
d.displayName = "Input";
|
|
71
|
+
c.displayName = "Input.Item";
|
|
72
|
+
m.displayName = "Input.Label";
|
|
73
|
+
p.displayName = "Input.Box";
|
|
74
|
+
x.displayName = "Input.Validation";
|
|
75
|
+
const w = Object.assign(d, {
|
|
76
|
+
Item: c,
|
|
77
|
+
Label: m,
|
|
78
|
+
Box: p,
|
|
79
|
+
Validation: x
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
w as Input
|
|
83
|
+
};
|