aravint-sms-form-controls 1.0.18 → 1.0.19

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.
@@ -11532,9 +11532,6 @@ const td = Xu, rd = Ju, nd = ed, ad = Zu, vd = ({
11532
11532
  backgroundColor: "#003B710D",
11533
11533
  color: "#003B71",
11534
11534
  fontWeight: 500
11535
- // borderLeftWidth: 5,
11536
- // borderLeftColor: "#10B981",
11537
- // borderLeftStyle: "solid",
11538
11535
  },
11539
11536
  searchPlaceholder: u = "Search...",
11540
11537
  showSearch: d = !0,
@@ -1,27 +1,4 @@
1
1
  import React from "react";
2
- export interface Option {
3
- label: string;
4
- value: string;
5
- }
6
- type IconComponentProps = {
7
- className?: string;
8
- style?: React.CSSProperties;
9
- };
10
- interface SingleSelectProps {
11
- label?: string;
12
- options: Option[];
13
- value?: string;
14
- placeholder?: string;
15
- searchPlaceholder?: string;
16
- onChange: (value: string) => void;
17
- disabled?: boolean;
18
- selectedOptionStyle?: React.CSSProperties;
19
- hoverOptionStyle?: React.CSSProperties;
20
- error?: boolean;
21
- errorMessage?: string;
22
- showSearch?: boolean;
23
- ArrowDownIcon?: React.ComponentType<IconComponentProps>;
24
- ArrowUpIcon?: React.ComponentType<IconComponentProps>;
25
- }
2
+ import { SingleSelectProps } from "../../types/SingleSelectTypes";
26
3
  declare const SingleSelect: ({ label, options, value, placeholder, onChange, disabled, error, errorMessage, hoverOptionStyle, selectedOptionStyle, searchPlaceholder, showSearch, ArrowDownIcon, ArrowUpIcon, }: SingleSelectProps) => React.JSX.Element;
27
4
  export default SingleSelect;
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ export interface Option {
3
+ label: string;
4
+ value: string;
5
+ }
6
+ export type IconComponentProps = {
7
+ className?: string;
8
+ style?: React.CSSProperties;
9
+ };
10
+ export interface SingleSelectProps {
11
+ label?: string;
12
+ options: Option[];
13
+ value?: string;
14
+ placeholder?: string;
15
+ searchPlaceholder?: string;
16
+ onChange: (value: string) => void;
17
+ disabled?: boolean;
18
+ selectedOptionStyle?: React.CSSProperties;
19
+ hoverOptionStyle?: React.CSSProperties;
20
+ error?: boolean;
21
+ errorMessage?: string;
22
+ showSearch?: boolean;
23
+ ArrowDownIcon?: React.ComponentType<IconComponentProps>;
24
+ ArrowUpIcon?: React.ComponentType<IconComponentProps>;
25
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aravint-sms-form-controls",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "main": "dist/form-controls.cjs.js",
5
5
  "module": "dist/form-controls.es.js",
6
6
  "types": "dist/types/index.d.ts",