widenarrow-ui 1.0.20 → 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/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 +27 -1
- package/lib/index.esm.css +1 -1
- package/lib/index.esm.js +160 -128
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +160 -127
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ListItem/ListItem.module.scss +6 -5
- package/src/components/ListItem/ListItem.stories.tsx +10 -2
- package/src/components/ListItem/ListItem.tsx +2 -3
- 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
|
@@ -737,6 +737,32 @@ interface SwitchButtonProps {
|
|
|
737
737
|
|
|
738
738
|
declare const SwitchButton: FC<SwitchButtonProps>;
|
|
739
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
|
+
|
|
740
766
|
interface ToolTipProps {
|
|
741
767
|
text?: string;
|
|
742
768
|
children?: string | number | ReactNode | null;
|
|
@@ -795,4 +821,4 @@ declare const Label: FC<LabelProps>;
|
|
|
795
821
|
declare const Paragraph: FC<ParagraphProps>;
|
|
796
822
|
declare const Span: FC<SpanProps>;
|
|
797
823
|
|
|
798
|
-
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 };
|