@hexure/ui 1.14.5 → 1.14.7

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.
@@ -0,0 +1,39 @@
1
+ import { FC } from 'react';
2
+ import { AccessibleProps } from '../../utils/Accessibility';
3
+ import { CSSProperties } from 'styled-components';
4
+ export interface OptionProps {
5
+ label?: string;
6
+ value: string | number;
7
+ color?: string;
8
+ disabled?: boolean;
9
+ }
10
+ export interface OptionGroupProps {
11
+ options: OptionProps[];
12
+ label: string;
13
+ }
14
+ export interface styleProps {
15
+ borderRadius?: string;
16
+ flexGrow?: number;
17
+ width?: number | string;
18
+ }
19
+ export interface CustomSelectProps extends AccessibleProps {
20
+ options?: OptionProps[];
21
+ optionGroups?: OptionGroupProps[];
22
+ placeholder?: string;
23
+ searchable?: boolean;
24
+ readOnly?: boolean;
25
+ invalid?: boolean;
26
+ value?: string;
27
+ style?: CSSProperties;
28
+ onChange?: (value: string | number) => void;
29
+ onFocus?: (e: any) => void;
30
+ onBlur?: (e: any) => void;
31
+ onSearch?: (searchTerm: string) => void;
32
+ /** Optional ID for automation purposes */
33
+ dataItemid?: string;
34
+ isInvalidRedBackground?: boolean;
35
+ isWarningError?: boolean;
36
+ innerRef?: any;
37
+ }
38
+ declare const CustomSelect: FC<CustomSelectProps>;
39
+ export default CustomSelect;
@@ -0,0 +1,2 @@
1
+ export { default } from './CustomSelect';
2
+ export type { CustomSelectProps, OptionProps, OptionGroupProps } from './CustomSelect';
@@ -34,6 +34,7 @@ export interface SelectProps extends AccessibleProps {
34
34
  isInvalidRedBackground?: boolean;
35
35
  isWarningError?: boolean;
36
36
  innerRef?: any;
37
+ isCustomSelect?: boolean;
37
38
  }
38
39
  declare const Select: FC<SelectProps>;
39
40
  export default Select;
package/dist/index.d.ts CHANGED
@@ -683,6 +683,7 @@ interface SelectProps extends AccessibleProps {
683
683
  isInvalidRedBackground?: boolean;
684
684
  isWarningError?: boolean;
685
685
  innerRef?: any;
686
+ isCustomSelect?: boolean;
686
687
  }
687
688
  declare const Select: FC<SelectProps>;
688
689
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexure/ui",
3
- "version": "1.14.5",
3
+ "version": "1.14.7",
4
4
  "description": "A library of shared UI components used within Hexure products.",
5
5
  "scripts": {
6
6
  "rollup": "rollup -c rollup.config.mjs",