@nulogy/components 10.2.0 → 10.2.2
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 +307 -244
- package/dist/main.module.js +303 -240
- package/dist/src/AsyncSelect/AsyncSelectComponents.d.ts +5 -0
- package/dist/src/FieldLabel/HelpText.d.ts +0 -1
- package/dist/src/Select/SelectOption.d.ts +10 -3
- package/dist/src/StatusIndicator/StatusIndicator.d.ts +3 -4
- package/dist/src/Type/Headings.d.ts +0 -1
- package/dist/src/Type/Text.d.ts +0 -1
- package/package.json +2 -2
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ClearIndicatorProps, ContainerProps, ControlProps, DropdownIndicatorProps, InputProps, MenuProps, MultiValueProps } from "react-select";
|
|
3
3
|
import { GroupBase } from "react-select";
|
|
4
|
+
import { OptionProps } from "react-windowed-select";
|
|
5
|
+
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
4
6
|
export declare const SelectControl: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ControlProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
5
7
|
export declare const SelectMultiValue: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MultiValueProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
6
8
|
export declare const SelectClearIndicator: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ClearIndicatorProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
@@ -8,3 +10,6 @@ export declare const SelectDropdownIndicator: <Option, IsMulti extends boolean,
|
|
|
8
10
|
export declare const SelectContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ContainerProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
9
11
|
export declare const SelectInput: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: InputProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
10
12
|
export declare const SelectMenu: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: MenuProps<Option, IsMulti, Group>) => React.JSX.Element;
|
|
13
|
+
export declare function SelectOption<Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: OptionProps<Option, IsMulti, Group> & {
|
|
14
|
+
size?: ComponentSize;
|
|
15
|
+
}): React.JSX.Element;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { OptionProps } from "react-windowed-select";
|
|
3
|
-
import { GroupBase } from "react-select";
|
|
4
3
|
import { ComponentSize } from "../NDSProvider/ComponentSizeContext";
|
|
5
|
-
|
|
4
|
+
type SelectOptionProps = {
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
isFocused: boolean;
|
|
6
7
|
size: ComponentSize;
|
|
7
|
-
}
|
|
8
|
+
};
|
|
9
|
+
export declare const StyledOption: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, SelectOptionProps, never>;
|
|
10
|
+
interface CustomOptionProps extends OptionProps {
|
|
11
|
+
size?: ComponentSize;
|
|
12
|
+
}
|
|
13
|
+
export declare function SelectOption(props: CustomOptionProps): React.JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { SpaceProps, TypographyProps, FlexboxProps } from "styled-system";
|
|
3
2
|
export declare const StatusIndicatorValues: {
|
|
4
3
|
readonly neutral: "neutral";
|
|
@@ -10,8 +9,8 @@ export declare const StatusIndicatorValues: {
|
|
|
10
9
|
readonly quiet: "quiet";
|
|
11
10
|
};
|
|
12
11
|
export type StatusIndicatorType = typeof StatusIndicatorValues[keyof typeof StatusIndicatorValues];
|
|
13
|
-
|
|
12
|
+
interface Props extends SpaceProps, TypographyProps, FlexboxProps {
|
|
14
13
|
type?: StatusIndicatorType;
|
|
15
|
-
}
|
|
16
|
-
declare const StatusIndicator:
|
|
14
|
+
}
|
|
15
|
+
declare const StatusIndicator: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, Props, never>;
|
|
17
16
|
export default StatusIndicator;
|
package/dist/src/Type/Text.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.2",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"react-datepicker": "^4.1.0",
|
|
155
155
|
"react-fast-compare": "^3.2.0",
|
|
156
156
|
"react-hot-toast": "^2.4.1",
|
|
157
|
-
"react-i18next": "^
|
|
157
|
+
"react-i18next": "^12.3.1",
|
|
158
158
|
"react-input-autosize": "^2.2.2",
|
|
159
159
|
"react-modal": "^3.14.4",
|
|
160
160
|
"react-popper": "1.3.11",
|