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
package/lib/index.d.ts
CHANGED
|
@@ -559,6 +559,7 @@ interface ImageProps {
|
|
|
559
559
|
imageClassName?: string;
|
|
560
560
|
customCellComponent?: ReactNode;
|
|
561
561
|
aspectRatio?: Partial<AspectRatioTypes>;
|
|
562
|
+
hoverOverlayColor?: Partial<ColorTypes>;
|
|
562
563
|
bgImage?: boolean;
|
|
563
564
|
bgImageProps?: {
|
|
564
565
|
size: 'cover' | 'contain';
|
|
@@ -598,6 +599,7 @@ interface ListItemProps extends MarginInterface, PaddingInterface {
|
|
|
598
599
|
imageSrc?: string;
|
|
599
600
|
withBorderRadius?: boolean;
|
|
600
601
|
withHoverEffect?: boolean;
|
|
602
|
+
withEllipsis?: boolean;
|
|
601
603
|
imageIcon?: Partial<IconTypes>;
|
|
602
604
|
size: Partial<SizeTypes>;
|
|
603
605
|
imageAspectRatio?: Partial<AspectRatioTypes>;
|
|
@@ -735,6 +737,32 @@ interface SwitchButtonProps {
|
|
|
735
737
|
|
|
736
738
|
declare const SwitchButton: FC<SwitchButtonProps>;
|
|
737
739
|
|
|
740
|
+
interface OptionItem {
|
|
741
|
+
text: string;
|
|
742
|
+
value: string | number;
|
|
743
|
+
disabled?: boolean;
|
|
744
|
+
}
|
|
745
|
+
interface SelectInputProps {
|
|
746
|
+
className?: string;
|
|
747
|
+
inputClassName?: string;
|
|
748
|
+
defaultOption?: string;
|
|
749
|
+
size: SizeTypes.SMALL | SizeTypes.MEDIUM | SizeTypes.LARGE;
|
|
750
|
+
disabled?: boolean;
|
|
751
|
+
error?: string;
|
|
752
|
+
helperText?: string;
|
|
753
|
+
text?: string;
|
|
754
|
+
marginBottom?: boolean;
|
|
755
|
+
loading?: boolean;
|
|
756
|
+
label?: string;
|
|
757
|
+
name: string;
|
|
758
|
+
onChange: (value: string | number) => void;
|
|
759
|
+
options: Array<OptionItem>;
|
|
760
|
+
value: string | number;
|
|
761
|
+
nativeHtmlComponent?: boolean;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
declare const SelectInput: FC<SelectInputProps>;
|
|
765
|
+
|
|
738
766
|
interface ToolTipProps {
|
|
739
767
|
text?: string;
|
|
740
768
|
children?: string | number | ReactNode | null;
|
|
@@ -793,4 +821,4 @@ declare const Label: FC<LabelProps>;
|
|
|
793
821
|
declare const Paragraph: FC<ParagraphProps>;
|
|
794
822
|
declare const Span: FC<SpanProps>;
|
|
795
823
|
|
|
796
|
-
export { AppColors, AspectRatioTypes, Box, Button, Checkbox, ColorStyleInterface, ColorTypes, DropDown, DropDownItem, FacetButton, FlexStylingInterface, FontFamilyTypes, FormSkeleton, Grid, Heading, HierarchyInterface, HierarchyTypes, Icon, IconButton, IconStyleInterface, IconTypes, Image, InlineButton, Label, ListItem, ListSkeleton, MarginInterface, MultiActionButton, PaddingInterface, Paragraph, RadioButton, Separator, SizeStyleInterface, SizeTypes, SolidSpinner, SortableTable, Span, SwitchButton, ToolTip };
|
|
824
|
+
export { AppColors, AspectRatioTypes, Box, Button, Checkbox, ColorStyleInterface, ColorTypes, DropDown, DropDownItem, FacetButton, FlexStylingInterface, FontFamilyTypes, FormSkeleton, Grid, Heading, HierarchyInterface, HierarchyTypes, Icon, IconButton, IconStyleInterface, IconTypes, Image, InlineButton, Label, ListItem, ListSkeleton, MarginInterface, MultiActionButton, PaddingInterface, Paragraph, RadioButton, SelectInput, Separator, SizeStyleInterface, SizeTypes, SolidSpinner, SortableTable, Span, SwitchButton, ToolTip };
|