@nulogy/components 8.7.3 → 8.8.1
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/dist/main.js +491 -299
- package/dist/main.module.js +491 -299
- package/dist/src/Select/Select.d.ts +2 -0
- package/dist/src/Select/Select.story.d.ts +1 -0
- package/dist/src/Select/customReactSelectStyles.d.ts +25 -17
- package/package.json +3 -3
|
@@ -15,6 +15,7 @@ export declare type SelectProps = {
|
|
|
15
15
|
id?: string;
|
|
16
16
|
initialIsOpen?: boolean;
|
|
17
17
|
menuPosition?: string;
|
|
18
|
+
menuPlacement?: string;
|
|
18
19
|
maxHeight?: string;
|
|
19
20
|
multiselect?: boolean;
|
|
20
21
|
name?: string;
|
|
@@ -50,6 +51,7 @@ export declare const SelectDefaultProps: {
|
|
|
50
51
|
initialIsOpen: any;
|
|
51
52
|
maxHeight: string;
|
|
52
53
|
menuPosition: string;
|
|
54
|
+
menuPlacement: string;
|
|
53
55
|
multiselect: boolean;
|
|
54
56
|
name: any;
|
|
55
57
|
onBlur: any;
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
import { DefaultNDSThemeType } from "../theme.type";
|
|
2
|
+
declare type Placement = "top" | "bottom";
|
|
3
|
+
export declare function getControlBorderRadius({ border, isMenuOpen, menuLength, menuPlacement, theme, }: {
|
|
4
|
+
border: Placement;
|
|
5
|
+
isMenuOpen: boolean;
|
|
6
|
+
menuLength: number;
|
|
7
|
+
menuPlacement: Placement;
|
|
8
|
+
theme: DefaultNDSThemeType;
|
|
9
|
+
}): string | 0;
|
|
10
|
+
export declare function getMenuBorderRadius({ border, menuPlacement, theme, }: {
|
|
11
|
+
border: Placement;
|
|
12
|
+
menuPlacement: Placement;
|
|
13
|
+
theme: DefaultNDSThemeType;
|
|
14
|
+
}): {
|
|
15
|
+
radius: string;
|
|
16
|
+
style: string;
|
|
17
|
+
} | {
|
|
18
|
+
radius: number;
|
|
19
|
+
style: string;
|
|
20
|
+
};
|
|
1
21
|
export declare const showIndicatorSeparator: ({ isMulti, hasValue, hasDefaultOptions }: {
|
|
2
22
|
isMulti: any;
|
|
3
23
|
hasValue: any;
|
|
@@ -28,8 +48,10 @@ declare const customStyles: ({ theme, error, maxHeight, windowed, hasDefaultOpti
|
|
|
28
48
|
boxSizing: string;
|
|
29
49
|
boxShadow: any;
|
|
30
50
|
borderRadius: any;
|
|
31
|
-
borderBottomLeftRadius:
|
|
32
|
-
borderBottomRightRadius:
|
|
51
|
+
borderBottomLeftRadius: string | number;
|
|
52
|
+
borderBottomRightRadius: string | number;
|
|
53
|
+
borderTopRightRadius: string | number;
|
|
54
|
+
borderTopLeftRadius: string | number;
|
|
33
55
|
"&:hover, &:focus": {
|
|
34
56
|
borderColor: any;
|
|
35
57
|
};
|
|
@@ -38,21 +60,7 @@ declare const customStyles: ({ theme, error, maxHeight, windowed, hasDefaultOpti
|
|
|
38
60
|
indicatorsContainer: (provided: any) => any;
|
|
39
61
|
input: () => {};
|
|
40
62
|
valueContainer: (provided: any) => any;
|
|
41
|
-
menu: (provided: any, state: any) =>
|
|
42
|
-
marginTop: number;
|
|
43
|
-
position: string;
|
|
44
|
-
overflowX: string;
|
|
45
|
-
zIndex: string;
|
|
46
|
-
width: string;
|
|
47
|
-
background: any;
|
|
48
|
-
borderWidth: string;
|
|
49
|
-
borderColor: any;
|
|
50
|
-
borderBottomStyle: string;
|
|
51
|
-
borderLeftStyle: string;
|
|
52
|
-
borderRightStyle: string;
|
|
53
|
-
borderRadius: string;
|
|
54
|
-
boxShadow: any;
|
|
55
|
-
};
|
|
63
|
+
menu: (provided: any, state: any) => any;
|
|
56
64
|
menuList: (provided: any) => any;
|
|
57
65
|
multiValue: (provided: any) => any;
|
|
58
66
|
multiValueLabel: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.8.1",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"body-scroll-lock": "^3.1.5",
|
|
145
145
|
"core-js": "3",
|
|
146
146
|
"create-react-context": "^0.3.0",
|
|
147
|
-
"date-fns": "2.
|
|
147
|
+
"date-fns": "2.23.0",
|
|
148
148
|
"debounce": "^1.2.0",
|
|
149
149
|
"deep-equal": "^1.1.1",
|
|
150
150
|
"framer-motion": "^3.1.3",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"react-popper": "1.3.7",
|
|
159
159
|
"react-popper-2": "npm:react-popper@2.2.4",
|
|
160
160
|
"react-resize-detector": "^7.1.2",
|
|
161
|
-
"react-windowed-select": "2.0.
|
|
161
|
+
"react-windowed-select": "2.0.5",
|
|
162
162
|
"smoothscroll-polyfill": "^0.4.4",
|
|
163
163
|
"styled-system": "^5.1.4"
|
|
164
164
|
},
|