widenarrow-ui 1.0.19 → 1.0.21
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/components/Image/Image.types.d.ts +2 -1
- package/lib/components/ListItem/ListItem.types.d.ts +1 -0
- package/lib/components/SelectInput/SelectInput.d.ts +4 -0
- package/lib/components/SelectInput/SelectInput.stories.d.ts +6 -0
- package/lib/components/SelectInput/SelectInput.types.d.ts +24 -0
- package/lib/components/SelectInput/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +29 -1
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +176 -137
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +176 -136
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Image/Image.module.scss +22 -0
- package/src/components/Image/Image.tsx +17 -1
- package/src/components/Image/Image.types.ts +2 -1
- package/src/components/ListItem/ListItem.module.scss +10 -1
- package/src/components/ListItem/ListItem.stories.tsx +11 -3
- package/src/components/ListItem/ListItem.tsx +6 -3
- package/src/components/ListItem/ListItem.types.ts +1 -0
- package/src/components/SelectInput/SelectInput.module.scss +74 -0
- package/src/components/SelectInput/SelectInput.stories.tsx +22 -0
- package/src/components/SelectInput/SelectInput.tsx +119 -0
- package/src/components/SelectInput/SelectInput.types.ts +26 -0
- package/src/components/SelectInput/index.ts +1 -0
- package/src/components/index.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { AspectRatioTypes } from '../../constants';
|
|
2
|
+
import { AspectRatioTypes, ColorTypes } from '../../constants';
|
|
3
3
|
export interface ImageProps {
|
|
4
4
|
src: string;
|
|
5
5
|
alt?: string;
|
|
@@ -7,6 +7,7 @@ export interface ImageProps {
|
|
|
7
7
|
imageClassName?: string;
|
|
8
8
|
customCellComponent?: ReactNode;
|
|
9
9
|
aspectRatio?: Partial<AspectRatioTypes>;
|
|
10
|
+
hoverOverlayColor?: Partial<ColorTypes>;
|
|
10
11
|
bgImage?: boolean;
|
|
11
12
|
bgImageProps?: {
|
|
12
13
|
size: 'cover' | 'contain';
|
|
@@ -8,6 +8,7 @@ export interface ListItemProps extends MarginInterface, PaddingInterface {
|
|
|
8
8
|
imageSrc?: string;
|
|
9
9
|
withBorderRadius?: boolean;
|
|
10
10
|
withHoverEffect?: boolean;
|
|
11
|
+
withEllipsis?: boolean;
|
|
11
12
|
imageIcon?: Partial<IconTypes>;
|
|
12
13
|
size: Partial<SizeTypes>;
|
|
13
14
|
imageAspectRatio?: Partial<AspectRatioTypes>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SelectInput } from 'src/components/SelectInput';
|
|
3
|
+
declare const meta: Meta<typeof SelectInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof SelectInput>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SizeTypes } from '../../constants';
|
|
2
|
+
export interface OptionItem {
|
|
3
|
+
text: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface SelectInputProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
inputClassName?: string;
|
|
10
|
+
defaultOption?: string;
|
|
11
|
+
size: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
error?: string;
|
|
14
|
+
helperText?: string;
|
|
15
|
+
text?: string;
|
|
16
|
+
marginBottom?: boolean;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
name: string;
|
|
20
|
+
onChange: (value: string | number) => void;
|
|
21
|
+
options: Array<OptionItem>;
|
|
22
|
+
value: string | number;
|
|
23
|
+
nativeHtmlComponent?: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SelectInput';
|