@youngonesworks/ui 0.1.1
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/README.md +83 -0
- package/dist/components/ActionIcon/ActionIcon.stories.d.ts +9 -0
- package/dist/components/ActionIcon/index.d.ts +25 -0
- package/dist/components/Alert/Alert.stories.d.ts +6 -0
- package/dist/components/Alert/Alert.test.d.ts +1 -0
- package/dist/components/Alert/index.d.ts +18 -0
- package/dist/components/AppleAppButtonIcon/AppleAppButtonIcon.stories.d.ts +6 -0
- package/dist/components/AppleAppButtonIcon/index.d.ts +2 -0
- package/dist/components/AutoCompleteInput/AutoCompleteInput.stories.d.ts +6 -0
- package/dist/components/AutoCompleteInput/index.d.ts +16 -0
- package/dist/components/Avatar/Avatar.stories.d.ts +6 -0
- package/dist/components/Avatar/index.d.ts +22 -0
- package/dist/components/AvatarIndicator/AvatarIndicator.stories.d.ts +6 -0
- package/dist/components/AvatarIndicator/index.d.ts +6 -0
- package/dist/components/Badge/Badge.stories.d.ts +6 -0
- package/dist/components/Badge/index.d.ts +27 -0
- package/dist/components/BigBadge/BigBadge.stories.d.ts +6 -0
- package/dist/components/BigBadge/index.d.ts +9 -0
- package/dist/components/BreadCrumb/BreadCrumb.stories.d.ts +6 -0
- package/dist/components/BreadCrumb/index.d.ts +8 -0
- package/dist/components/Button/Button.d.ts +13 -0
- package/dist/components/Button/Button.stories.d.ts +9 -0
- package/dist/components/Button/buttonVariants.d.ts +10 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Calendar/Calendar.stories.d.ts +0 -0
- package/dist/components/Calendar/index.d.ts +0 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +9 -0
- package/dist/components/Checkbox/index.d.ts +11 -0
- package/dist/components/Divider/Divider.stories.d.ts +6 -0
- package/dist/components/Divider/index.d.ts +6 -0
- package/dist/components/GoogleAppButtonIcon/GoogleAppButtonIcon.stories.d.ts +6 -0
- package/dist/components/GoogleAppButtonIcon/index.d.ts +2 -0
- package/dist/components/HR/HR.stories.d.ts +6 -0
- package/dist/components/HR/index.d.ts +8 -0
- package/dist/components/HamburgerMenuButton/HamburgerMenuButton.stories.d.ts +6 -0
- package/dist/components/HamburgerMenuButton/index.d.ts +6 -0
- package/dist/components/Island/Island.stories.d.ts +6 -0
- package/dist/components/Island/index.d.ts +11 -0
- package/dist/components/Label/Label.stories.d.ts +6 -0
- package/dist/components/Label/index.d.ts +7 -0
- package/dist/components/LinkText/LinkText.stories.d.ts +6 -0
- package/dist/components/LinkText/index.d.ts +11 -0
- package/dist/components/Loader/Loader.stories.d.ts +6 -0
- package/dist/components/Loader/index.d.ts +4 -0
- package/dist/components/Logo/Logo.stories.d.ts +6 -0
- package/dist/components/Logo/index.d.ts +2 -0
- package/dist/components/Modal/Modal.stories.d.ts +6 -0
- package/dist/components/Modal/index.d.ts +19 -0
- package/dist/components/NumberField/NumberField.stories.d.ts +6 -0
- package/dist/components/NumberField/index.d.ts +14 -0
- package/dist/components/PageUnavailable/PageUnavailable.stories.d.ts +6 -0
- package/dist/components/PageUnavailable/index.d.ts +7 -0
- package/dist/components/PasswordInput/PasswordInput.stories.d.ts +6 -0
- package/dist/components/PasswordInput/index.d.ts +3 -0
- package/dist/components/PhoneInput/index.d.ts +0 -0
- package/dist/components/Popover/Popover.stories.d.ts +6 -0
- package/dist/components/Popover/index.d.ts +14 -0
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +6 -0
- package/dist/components/ProgressBar/index.d.ts +7 -0
- package/dist/components/RadioButton/RadioButton.stories.d.ts +6 -0
- package/dist/components/RadioButton/index.d.ts +17 -0
- package/dist/components/Rating/Rating.stories.d.ts +7 -0
- package/dist/components/Rating/index.d.ts +10 -0
- package/dist/components/RegionSelector/RegionSelector.stories.d.ts +6 -0
- package/dist/components/RegionSelector/index.d.ts +11 -0
- package/dist/components/Reviews/Reviews.stories.d.ts +6 -0
- package/dist/components/Reviews/index.d.ts +13 -0
- package/dist/components/ScrollToTop/ScrollToTop.stories.d.ts +6 -0
- package/dist/components/ScrollToTop/index.d.ts +3 -0
- package/dist/components/SearchInput/SearchInput.stories.d.ts +6 -0
- package/dist/components/SearchInput/index.d.ts +1 -0
- package/dist/components/Select/Select.stories.d.ts +6 -0
- package/dist/components/Select/index.d.ts +26 -0
- package/dist/components/SettingsCard/SettingsCard.stories.d.ts +6 -0
- package/dist/components/SettingsCard/index.d.ts +14 -0
- package/dist/components/Skeleton/Skeleton.stories.d.ts +6 -0
- package/dist/components/Skeleton/index.d.ts +5 -0
- package/dist/components/SkillPill/SkillPill.stories.d.ts +6 -0
- package/dist/components/SkillPill/index.d.ts +6 -0
- package/dist/components/StickyMobileButton/StickyMobileButtonWrapper.stories.d.ts +6 -0
- package/dist/components/StickyMobileButton/index.d.ts +6 -0
- package/dist/components/Table/Table.stories.d.ts +6 -0
- package/dist/components/Table/index.d.ts +6 -0
- package/dist/components/TableCell/TableCell.stories.d.ts +6 -0
- package/dist/components/TableCell/index.d.ts +7 -0
- package/dist/components/TableHeader/TableHeader.stories.d.ts +6 -0
- package/dist/components/TableHeader/index.d.ts +5 -0
- package/dist/components/TableHeaderItem/TableHeaderItem.stories.d.ts +6 -0
- package/dist/components/TableHeaderItem/index.d.ts +7 -0
- package/dist/components/TableHeaderRow/TableHeaderRow.stories.d.ts +6 -0
- package/dist/components/TableHeaderRow/index.d.ts +6 -0
- package/dist/components/TableRow/TableRow.stories.d.ts +6 -0
- package/dist/components/TableRow/index.d.ts +8 -0
- package/dist/components/TextArea/Textarea.stories.d.ts +6 -0
- package/dist/components/TextArea/index.d.ts +8 -0
- package/dist/components/TextInput/TextInput.stories.d.ts +8 -0
- package/dist/components/TextInput/index.d.ts +22 -0
- package/dist/components/ThemeIcon/ThemeIcon.stories.d.ts +8 -0
- package/dist/components/ThemeIcon/index.d.ts +9 -0
- package/dist/components/Toggle/Toggle.stories.d.ts +7 -0
- package/dist/components/Toggle/index.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +8 -0
- package/dist/components/Tooltip/index.d.ts +13 -0
- package/dist/components/TruncatedText/TruncatedText.stories.d.ts +7 -0
- package/dist/components/TruncatedText/index.d.ts +6 -0
- package/dist/components/UnorderedList/UnorderedList.stories.d.ts +7 -0
- package/dist/components/UnorderedList/index.d.ts +7 -0
- package/dist/components/UnorderedListItem/UnorderedListItem.stories.d.ts +7 -0
- package/dist/components/UnorderedListItem/index.d.ts +9 -0
- package/dist/components/UnstyledButton/UnstyledButton.stories.d.ts +6 -0
- package/dist/components/UnstyledButton/index.d.ts +6 -0
- package/dist/components/WysiwygEditor/WysiwygEditor.stories.d.ts +7 -0
- package/dist/components/WysiwygEditor/index.d.ts +16 -0
- package/dist/icons/IconLoading.d.ts +2 -0
- package/dist/icons/IconStarEmpty.d.ts +2 -0
- package/dist/icons/IconStarFilled.d.ts +2 -0
- package/dist/icons/IconStarHalfFilled.d.ts +2 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/index.cjs +140061 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +140012 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx-runtime-shim.d.ts +4 -0
- package/dist/react-entry.d.ts +3 -0
- package/dist/react-wrapper.d.ts +2 -0
- package/dist/test.d.ts +2 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/enums.d.ts +48 -0
- package/dist/utils/formatIcon.d.ts +8 -0
- package/package.json +117 -0
package/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# YoungonesUI
|
|
2
|
+
|
|
3
|
+
A React component library built with Tailwind CSS v4.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- React components built with TypeScript
|
|
8
|
+
- Styled with Tailwind CSS v4
|
|
9
|
+
- Fully customizable components
|
|
10
|
+
- Tree-shakeable (only import what you need)
|
|
11
|
+
- TypeScript support
|
|
12
|
+
- Modern build with Rolldown (Rust-based bundler)
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# yarn
|
|
18
|
+
yarn add youngonesui
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Peer Dependencies
|
|
22
|
+
|
|
23
|
+
- react: ^18 || ^19
|
|
24
|
+
- react-dom: ^18 || ^19
|
|
25
|
+
|
|
26
|
+
### Tailwind CSS v4 setup
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install tailwindcss@4 postcss autoprefixer
|
|
30
|
+
npx tailwindcss init -p
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Update `tailwind.config.js`:
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
/** @type {import('tailwindcss').Config} */
|
|
37
|
+
module.exports = {
|
|
38
|
+
content: [
|
|
39
|
+
'./src/**/*.{js,jsx,ts,tsx}',
|
|
40
|
+
'./node_modules/youngonesui/**/*.{js,jsx,ts,tsx}',
|
|
41
|
+
],
|
|
42
|
+
theme: { extend: {} },
|
|
43
|
+
plugins: [],
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Usage
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
import { Button } from 'youngonesui';
|
|
51
|
+
|
|
52
|
+
function App() {
|
|
53
|
+
return (
|
|
54
|
+
<>
|
|
55
|
+
<Button>Default</Button>
|
|
56
|
+
<Button variant="secondary" size="sm">Small Secondary</Button>
|
|
57
|
+
<Button variant="outline" size="lg">Large Outline</Button>
|
|
58
|
+
</>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Components
|
|
64
|
+
|
|
65
|
+
#### Button
|
|
66
|
+
|
|
67
|
+
```tsx
|
|
68
|
+
<Button
|
|
69
|
+
variant="primary" // 'primary' | 'secondary' | 'outline'
|
|
70
|
+
size="md" // 'sm' | 'md' | 'lg'
|
|
71
|
+
onClick={() => console.log('clicked')}
|
|
72
|
+
>
|
|
73
|
+
Click me
|
|
74
|
+
</Button>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Contributing
|
|
78
|
+
|
|
79
|
+
Contributions are welcome! Please follow the conventional commits spec and ensure all tests pass before opening a PR.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
MIT
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { ActionIcon } from './index';
|
|
3
|
+
declare const meta: Meta<typeof ActionIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ActionIcon>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Transparent: Story;
|
|
8
|
+
export declare const Small: Story;
|
|
9
|
+
export declare const Round: Story;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface ActionIconProps {
|
|
2
|
+
children?: React.ReactNode;
|
|
3
|
+
}
|
|
4
|
+
export interface IActionIcon extends Omit<ActionIconProps, 'classNames'> {
|
|
5
|
+
'data-testid'?: string;
|
|
6
|
+
title: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
type?: 'button' | 'submit' | 'reset' | undefined;
|
|
9
|
+
styleVariant?: 'default' | 'transparent' | 'small' | 'round';
|
|
10
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
11
|
+
icon: React.ReactNode;
|
|
12
|
+
iconSize?: number;
|
|
13
|
+
strokeWidth?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Can be removed and replaced by iconSize
|
|
17
|
+
*/
|
|
18
|
+
width?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Can be removed and replaced by iconSize
|
|
21
|
+
*/
|
|
22
|
+
height?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const ActionIcon: import("react").ForwardRefExoticComponent<IActionIcon & import("react").RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
interface IAlert {
|
|
3
|
+
show: boolean;
|
|
4
|
+
message: ReactNode;
|
|
5
|
+
type: 'warning' | 'error' | 'success';
|
|
6
|
+
'data-testid'?: string;
|
|
7
|
+
plain?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Can be removed entirely.
|
|
10
|
+
*/
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Alert: {
|
|
15
|
+
({ show, message, type, plain, className }: IAlert): import("react/jsx-runtime").JSX.Element | null;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { AppleAppButtonIcon } from './index';
|
|
3
|
+
declare const meta: Meta<typeof AppleAppButtonIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AppleAppButtonIcon>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { AutoCompleteInput } from './index';
|
|
3
|
+
declare const meta: Meta<typeof AutoCompleteInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof AutoCompleteInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ChangeEvent, type KeyboardEvent, type ReactNode, type Ref } from 'react';
|
|
2
|
+
import { type TextInputProps } from '../TextInput';
|
|
3
|
+
interface ISearchLocationFormProps extends TextInputProps {
|
|
4
|
+
label: string;
|
|
5
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
onFocus?: () => void;
|
|
7
|
+
inputValue?: string;
|
|
8
|
+
showSuggestions: boolean;
|
|
9
|
+
handleOnKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
rightSection?: ReactNode;
|
|
13
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
14
|
+
}
|
|
15
|
+
export declare const AutoCompleteInput: ({ label, onChange, onFocus, inputValue, showSuggestions, handleOnKeyDown, children, error, rightSection, inputRef, }: ISearchLocationFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
interface IAvatarProps {
|
|
2
|
+
'data-testid'?: string;
|
|
3
|
+
src: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
radius?: keyof typeof radiusFormatter;
|
|
7
|
+
}
|
|
8
|
+
declare const radiusFormatter: {
|
|
9
|
+
0: string;
|
|
10
|
+
2: string;
|
|
11
|
+
4: string;
|
|
12
|
+
6: string;
|
|
13
|
+
8: string;
|
|
14
|
+
10: string;
|
|
15
|
+
12: string;
|
|
16
|
+
100: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const Avatar: {
|
|
19
|
+
({ src, alt, size, radius }: IAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
interface IBadgeProps {
|
|
2
|
+
styleVariant?: 'green-light' | 'red' | 'accent-blue' | 'warning' | 'gray' | 'black' | 'purple' | 'pink' | 'pink-light' | 'gray' | 'white';
|
|
3
|
+
color?: 'dark' | 'gray' | 'red' | 'pink' | 'grape' | 'violet' | 'indigo' | 'blue' | 'cyan' | 'green' | 'lime' | 'yellow' | 'orange' | 'teal';
|
|
4
|
+
/** Controls appearance */
|
|
5
|
+
variant?: 'light' | 'filled' | 'outline' | 'dot' | 'gradient';
|
|
6
|
+
/** Badge height and font size */
|
|
7
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
+
/** Key of theme.radius or any valid CSS value to set border-radius, "xl" by default */
|
|
9
|
+
radius?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
/** Sets badge width to 100% of parent element, hides overflow text with text-overflow: ellipsis */
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
/** Section rendered on the left side of label */
|
|
13
|
+
leftSection?: React.ReactNode;
|
|
14
|
+
/** Section rendered on the right side of label */
|
|
15
|
+
rightSection?: React.ReactNode;
|
|
16
|
+
favorite?: boolean;
|
|
17
|
+
/** Badge label */
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
mobile?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
badgeBorder?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const Badge: {
|
|
24
|
+
({ styleVariant, className, favorite, mobile, badgeBorder, ...props }: IBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
interface IBigBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
className?: string;
|
|
4
|
+
styleVariant?: 'green' | 'red' | 'white' | 'accent-blue' | 'orange';
|
|
5
|
+
'data-testid'?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const BigBadge: ({ styleVariant, className, children, ...props }: IBigBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
import { buttonVariants } from './buttonVariants';
|
|
3
|
+
interface IButton extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
variant?: keyof typeof buttonVariants;
|
|
5
|
+
ariaLabel?: string;
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
block?: boolean;
|
|
8
|
+
dataTestId?: string;
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
iconRight?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Button: import("react").ForwardRefExoticComponent<IButton & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Button } from './Button';
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Button>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Secondary: Story;
|
|
8
|
+
export declare const Outline: Story;
|
|
9
|
+
export declare const Loading: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const buttonVariants: {
|
|
2
|
+
readonly primary: string;
|
|
3
|
+
readonly secondary: string;
|
|
4
|
+
readonly danger: string;
|
|
5
|
+
readonly link: string;
|
|
6
|
+
readonly outline: string;
|
|
7
|
+
readonly search: string;
|
|
8
|
+
readonly icon__primary: string;
|
|
9
|
+
readonly icon__danger: string;
|
|
10
|
+
};
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Checkbox } from './index';
|
|
3
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Checkbox>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Small: Story;
|
|
8
|
+
export declare const Indeterminate: Story;
|
|
9
|
+
export declare const ErrorState: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type InputHTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export interface ICheckbox extends Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'size' | 'disabled'> {
|
|
3
|
+
size?: 'sm' | 'md';
|
|
4
|
+
mediumBoldText?: boolean;
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
indeterminate?: boolean;
|
|
9
|
+
error?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<ICheckbox & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { GoogleAppButtonIcon } from './index';
|
|
3
|
+
declare const meta: Meta<typeof GoogleAppButtonIcon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GoogleAppButtonIcon>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { HamburgerMenuButton } from './index';
|
|
3
|
+
declare const meta: Meta<typeof HamburgerMenuButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof HamburgerMenuButton>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IIsland extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
noShadow?: boolean;
|
|
5
|
+
noPadding?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Island: {
|
|
8
|
+
({ children, className, noShadow, noPadding, ...props }: IIsland): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
interface ILinkText {
|
|
3
|
+
children: ReactElement | string | ReactElement[];
|
|
4
|
+
classNames?: string;
|
|
5
|
+
}
|
|
6
|
+
/** @deprecated dont use this anymore, instead use the next link */
|
|
7
|
+
export declare const LinkText: {
|
|
8
|
+
({ children, classNames }: ILinkText): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type JSX, type ReactNode } from 'react';
|
|
2
|
+
interface IModal {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
title?: string;
|
|
5
|
+
withCloseButton?: boolean;
|
|
6
|
+
opened: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
additionalClassNames?: string;
|
|
9
|
+
gradient?: boolean;
|
|
10
|
+
dataTestId?: string;
|
|
11
|
+
size?: string | number;
|
|
12
|
+
uncloseAble?: boolean;
|
|
13
|
+
closeModalWithConfirmation?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const Modal: {
|
|
16
|
+
({ title, children, withCloseButton, opened, additionalClassNames, closeModalWithConfirmation, gradient, uncloseAble, dataTestId, onClose, size, }: IModal): JSX.Element | null;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface NumberFieldProps {
|
|
2
|
+
name: string;
|
|
3
|
+
value: number | undefined;
|
|
4
|
+
id: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
max?: number;
|
|
9
|
+
min?: number;
|
|
10
|
+
isDisabled?: boolean;
|
|
11
|
+
onChange?: (value: number) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const NumberField: ({ name, value, max, min, isDisabled, id, className, label, error, onChange, }: NumberFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface PageUnavailableProps {
|
|
2
|
+
notAvailableButton: React.ReactNode;
|
|
3
|
+
notAvailableDescription: string;
|
|
4
|
+
notAvailableHeaderText: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const PageUnavailable: ({ notAvailableButton, notAvailableDescription, notAvailableHeaderText }: PageUnavailableProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type AlignedPlacement, type Side } from '@floating-ui/react';
|
|
3
|
+
interface ITooltipProps {
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
hoverEnabled?: boolean;
|
|
7
|
+
passedOpen?: boolean;
|
|
8
|
+
placement?: AlignedPlacement | Side;
|
|
9
|
+
amountOfOffset?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: 'minimal' | 'card';
|
|
12
|
+
}
|
|
13
|
+
export declare const Popover: import("react").ForwardRefExoticComponent<ITooltipProps & import("react").RefAttributes<unknown>>;
|
|
14
|
+
export {};
|