@nulogy/components 9.0.3 → 10.0.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 +119 -117
- package/dist/main.module.js +119 -118
- package/dist/src/Alert/Alert.d.ts +7 -1
- package/dist/src/Alert/index.d.ts +2 -1
- package/dist/src/AsyncSelect/AsyncSelect.d.ts +3 -0
- package/dist/src/Box/Box.d.ts +9 -28
- package/dist/src/BrandedNavBar/NavBarBackground.d.ts +5 -2
- package/dist/src/Breadcrumbs/Breadcrumbs.d.ts +6 -1
- package/dist/src/Card/CardSet.d.ts +1 -1
- package/dist/src/Divider/Divider.d.ts +1 -2
- package/dist/src/DropdownMenu/DropdownButton.d.ts +2 -1
- package/dist/src/FieldLabel/HelpText.d.ts +2 -2
- package/dist/src/Flex/Flex.d.ts +6 -2
- package/dist/src/Flex/Flex.story.d.ts +0 -12
- package/dist/src/Form/Field.d.ts +1 -2
- package/dist/src/NavBar/NavBar.d.ts +5 -1
- package/dist/src/Select/Select.d.ts +26 -38
- package/dist/src/Select/Select.spec-utils.d.ts +5 -2
- package/dist/src/Select/Select.story.d.ts +1 -1
- package/dist/src/Select/SelectOption.d.ts +6 -1
- package/dist/src/Select/customReactSelectStyles.d.ts +12 -949
- package/dist/src/StyledProps/index.d.ts +28 -7
- package/dist/src/Tabs/TabContainer.d.ts +1 -2
- package/dist/src/Tooltip/TooltipContainer.d.ts +2 -2
- package/dist/src/Type/Headings.d.ts +8 -8
- package/dist/src/Type/Text.d.ts +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/theme.d.ts +1 -1
- package/dist/src/theme.type.d.ts +22 -22
- package/package.json +3 -3
- package/dist/src/StyledProps/cursor.d.ts +0 -4
- package/dist/src/StyledProps/textOverflow.d.ts +0 -5
- package/dist/src/StyledProps/transform.d.ts +0 -4
- package/dist/src/StyledProps/transition.d.ts +0 -8
- package/dist/src/StyledProps/visibility.d.ts +0 -4
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
import { SpaceProps,
|
|
2
|
-
import {
|
|
3
|
-
import { CursorProps } from "./cursor";
|
|
4
|
-
import { TransformProps } from "./transform";
|
|
5
|
-
import { TransitionProps } from "./transition";
|
|
6
|
-
import { VisibilityProps } from "./visibility";
|
|
1
|
+
import type { SpaceProps, PaddingProps, MarginProps, WidthProps, FontSizeProps, FontFamilyProps, TextAlignProps, LineHeightProps, FontWeightProps, FontStyleProps, LetterSpacingProps, DisplayProps, MaxWidthProps, MinWidthProps, HeightProps, MaxHeightProps, MinHeightProps, SizeProps, VerticalAlignProps, AlignItemsProps, AlignContentProps, JustifyItemsProps, JustifyContentProps, FlexWrapProps, FlexBasisProps, FlexDirectionProps, FlexProps, JustifySelfProps, AlignSelfProps, OrderProps, GridGapProps, GridColumnGapProps, GridRowGapProps, GridColumnProps, GridRowProps, GridAutoFlowProps, GridAutoColumnsProps, GridAutoRowsProps, GridTemplateColumnsProps, GridTemplateRowsProps, GridTemplateAreasProps, GridAreaProps, BorderProps, BorderTopProps, BorderRightProps, BorderBottomProps, BorderLeftProps, BordersProps, BorderColorProps, BorderRadiusProps, BoxShadowProps, OpacityProps, OverflowProps, BackgroundProps, BackgroundImageProps, BackgroundPositionProps, BackgroundRepeatProps, BackgroundSizeProps, PositionProps, ZIndexProps, TopProps, RightProps, BottomProps, LeftProps, TextStyleProps, ColorStyleProps, ButtonStyleProps, FlexboxProps, GridProps, BackgroundColorProps, FlexGrowProps, TypographyProps, LayoutProps } from "styled-system";
|
|
2
|
+
import { CSSProperties } from "react";
|
|
7
3
|
export declare const addStyledProps: import("styled-system").styleFn;
|
|
8
|
-
|
|
4
|
+
interface TransitionProps {
|
|
5
|
+
transition?: CSSProperties["transition"];
|
|
6
|
+
transitionDelay?: CSSProperties["transitionDelay"];
|
|
7
|
+
transitionProperty?: CSSProperties["transition"];
|
|
8
|
+
transitionDuration?: CSSProperties["transitionDuration"];
|
|
9
|
+
transitionTimingFunction?: CSSProperties["transitionTimingFunction"];
|
|
10
|
+
}
|
|
11
|
+
interface TransformProps {
|
|
12
|
+
transform?: CSSProperties["transform"];
|
|
13
|
+
transformOrigin?: CSSProperties["transformOrigin"];
|
|
14
|
+
transformStyle?: CSSProperties["transformStyle"];
|
|
15
|
+
transformBox?: CSSProperties["transformBox"];
|
|
16
|
+
}
|
|
17
|
+
export type TextOverflowProps = {
|
|
18
|
+
whiteSpace?: CSSProperties["whiteSpace"];
|
|
19
|
+
textOverflow?: CSSProperties["textOverflow"];
|
|
20
|
+
};
|
|
21
|
+
export type VisibilityProps = {
|
|
22
|
+
visibility?: CSSProperties["visibility"];
|
|
23
|
+
};
|
|
24
|
+
export type CursorProps = {
|
|
25
|
+
cursor?: CSSProperties["cursor"];
|
|
26
|
+
};
|
|
27
|
+
export interface StyledProps extends SpaceProps, BackgroundColorProps, LayoutProps, FlexGrowProps, TypographyProps, MarginProps, PaddingProps, WidthProps, FontSizeProps, FontFamilyProps, TextAlignProps, LineHeightProps, FontWeightProps, FontStyleProps, LetterSpacingProps, DisplayProps, MaxWidthProps, MinWidthProps, HeightProps, MaxHeightProps, MinHeightProps, SizeProps, VerticalAlignProps, AlignItemsProps, AlignContentProps, JustifyItemsProps, JustifyContentProps, FlexWrapProps, FlexBasisProps, FlexDirectionProps, FlexProps, FlexboxProps, JustifySelfProps, AlignSelfProps, OrderProps, GridProps, GridGapProps, GridColumnGapProps, GridRowGapProps, GridColumnProps, GridRowProps, GridAutoFlowProps, GridAutoColumnsProps, GridAutoRowsProps, GridTemplateColumnsProps, GridTemplateRowsProps, GridTemplateAreasProps, GridAreaProps, BorderProps, BorderTopProps, BorderRightProps, BorderBottomProps, BorderLeftProps, BordersProps, BorderRadiusProps, BoxShadowProps, OpacityProps, OverflowProps, BorderColorProps, BackgroundProps, PositionProps, ZIndexProps, TopProps, RightProps, BottomProps, LeftProps, TextStyleProps, ColorStyleProps, ButtonStyleProps, TransitionProps, TransformProps, BackgroundImageProps, BackgroundPositionProps, BackgroundRepeatProps, BackgroundSizeProps, TextOverflowProps, VisibilityProps, CursorProps {
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare const TabContainer: import("styled-components").StyledComponent<import("react").FC<import("../Box/Box").BoxProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
1
|
+
declare const TabContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box/Box").BoxProps, never>;
|
|
3
2
|
export default TabContainer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { PositionProps } from "styled-system";
|
|
2
2
|
import { DefaultNDSThemeType } from "../theme.type";
|
|
3
|
-
declare const TooltipContainer: import("styled-components").StyledComponent<import("
|
|
3
|
+
declare const TooltipContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../Box/Box").BoxProps & PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> & {
|
|
4
4
|
theme?: DefaultNDSThemeType;
|
|
5
5
|
dataPlacement?: "top" | "bottom" | "left" | "right";
|
|
6
6
|
open?: boolean;
|
|
@@ -4,8 +4,8 @@ export declare const Heading1: import("styled-components").StyledComponent<"p",
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
6
6
|
fontSize?: string;
|
|
7
|
-
} & import("
|
|
8
|
-
theme?: import("
|
|
7
|
+
} & import("../StyledProps").StyledProps & {
|
|
8
|
+
theme?: import("..").DefaultNDSThemeType;
|
|
9
9
|
} & {
|
|
10
10
|
slot?: string;
|
|
11
11
|
style?: import("react").CSSProperties;
|
|
@@ -278,8 +278,8 @@ export declare const Heading2: import("styled-components").StyledComponent<"p",
|
|
|
278
278
|
disabled?: boolean;
|
|
279
279
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
280
280
|
fontSize?: string;
|
|
281
|
-
} & import("
|
|
282
|
-
theme?: import("
|
|
281
|
+
} & import("../StyledProps").StyledProps & {
|
|
282
|
+
theme?: import("..").DefaultNDSThemeType;
|
|
283
283
|
} & {
|
|
284
284
|
slot?: string;
|
|
285
285
|
style?: import("react").CSSProperties;
|
|
@@ -552,8 +552,8 @@ export declare const Heading3: import("styled-components").StyledComponent<"p",
|
|
|
552
552
|
disabled?: boolean;
|
|
553
553
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
554
554
|
fontSize?: string;
|
|
555
|
-
} & import("
|
|
556
|
-
theme?: import("
|
|
555
|
+
} & import("../StyledProps").StyledProps & {
|
|
556
|
+
theme?: import("..").DefaultNDSThemeType;
|
|
557
557
|
} & {
|
|
558
558
|
slot?: string;
|
|
559
559
|
style?: import("react").CSSProperties;
|
|
@@ -826,8 +826,8 @@ export declare const Heading4: import("styled-components").StyledComponent<"p",
|
|
|
826
826
|
disabled?: boolean;
|
|
827
827
|
textTransform?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "none" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase";
|
|
828
828
|
fontSize?: string;
|
|
829
|
-
} & import("
|
|
830
|
-
theme?: import("
|
|
829
|
+
} & import("../StyledProps").StyledProps & {
|
|
830
|
+
theme?: import("..").DefaultNDSThemeType;
|
|
831
831
|
} & {
|
|
832
832
|
slot?: string;
|
|
833
833
|
style?: import("react").CSSProperties;
|
package/dist/src/Type/Text.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare const Text: import("styled-components").StyledComponent<"p", import("sty
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
textTransform?: "none" | "inherit" | "initial" | "-moz-initial" | "revert" | "unset" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "uppercase" | undefined;
|
|
16
16
|
fontSize?: string;
|
|
17
|
-
} &
|
|
17
|
+
} & StyledProps & {
|
|
18
18
|
theme?: DefaultNDSThemeType;
|
|
19
19
|
}, never>;
|
|
20
20
|
export default Text;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { Alert } from "./Alert";
|
|
1
|
+
export { Alert, NotificationTypes } from "./Alert";
|
|
2
|
+
export type { NotificationType } from "./Alert";
|
|
2
3
|
export { AsyncSelect } from "./AsyncSelect";
|
|
3
4
|
export { Banner } from "./Banner";
|
|
4
5
|
export { AnimatedBox, Box } from "./Box";
|
|
@@ -44,7 +45,7 @@ export type { TableCellInfoType, TableColumnType, TableProps, TableRowType } fro
|
|
|
44
45
|
export { Tab, Tabs } from "./Tabs";
|
|
45
46
|
export { Textarea } from "./Textarea";
|
|
46
47
|
export { default as theme } from "./theme";
|
|
47
|
-
export type { ThemeType } from "./theme.type";
|
|
48
|
+
export type { ThemeType, DefaultNDSThemeType } from "./theme.type";
|
|
48
49
|
export { TimePicker } from "./TimePicker";
|
|
49
50
|
export { TimeRange } from "./TimeRange";
|
|
50
51
|
export { Toast } from "./Toast";
|
package/dist/src/theme.d.ts
CHANGED
package/dist/src/theme.type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface Colors {
|
|
2
2
|
black: string;
|
|
3
3
|
blackBlue: string;
|
|
4
4
|
darkBlue: string;
|
|
@@ -22,8 +22,8 @@ type Colors = {
|
|
|
22
22
|
categorical4: string;
|
|
23
23
|
categorical5: string;
|
|
24
24
|
categorical6: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
25
|
+
}
|
|
26
|
+
interface FontSizes {
|
|
27
27
|
smaller: string;
|
|
28
28
|
small: string;
|
|
29
29
|
medium: string;
|
|
@@ -34,8 +34,8 @@ type FontSizes = {
|
|
|
34
34
|
heading2: string;
|
|
35
35
|
heading3: string;
|
|
36
36
|
heading4: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
37
|
+
}
|
|
38
|
+
interface LineHeights {
|
|
39
39
|
base: string;
|
|
40
40
|
smallTextBase: string;
|
|
41
41
|
smallTextCompressed: string;
|
|
@@ -47,14 +47,14 @@ type LineHeights = {
|
|
|
47
47
|
title: string;
|
|
48
48
|
sectionTitle: string;
|
|
49
49
|
subsectionTitle: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
50
|
+
}
|
|
51
|
+
interface FontWeights {
|
|
52
52
|
light: number;
|
|
53
53
|
normal: number;
|
|
54
54
|
medium: number;
|
|
55
55
|
bold: number;
|
|
56
|
-
}
|
|
57
|
-
|
|
56
|
+
}
|
|
57
|
+
interface Space {
|
|
58
58
|
none: string;
|
|
59
59
|
half: string;
|
|
60
60
|
x1: string;
|
|
@@ -64,33 +64,33 @@ type Space = {
|
|
|
64
64
|
x5: string;
|
|
65
65
|
x6: string;
|
|
66
66
|
x8: string;
|
|
67
|
-
}
|
|
68
|
-
|
|
67
|
+
}
|
|
68
|
+
interface Fonts {
|
|
69
69
|
base: string;
|
|
70
70
|
mono: string;
|
|
71
71
|
sc: string;
|
|
72
|
-
}
|
|
72
|
+
}
|
|
73
73
|
type Borders = Array<any>;
|
|
74
|
-
|
|
74
|
+
interface Shadows {
|
|
75
75
|
small: string;
|
|
76
76
|
medium: string;
|
|
77
77
|
large: string;
|
|
78
78
|
focus: string;
|
|
79
79
|
error: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
80
|
+
}
|
|
81
|
+
interface Radii {
|
|
82
82
|
small: string;
|
|
83
83
|
medium: string;
|
|
84
84
|
circle: string;
|
|
85
|
-
}
|
|
86
|
-
export
|
|
85
|
+
}
|
|
86
|
+
export interface Breakpoints {
|
|
87
87
|
extraSmall: string;
|
|
88
88
|
small: string;
|
|
89
89
|
medium: string;
|
|
90
90
|
large: string;
|
|
91
91
|
extraLarge: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
92
|
+
}
|
|
93
|
+
interface ZIndices {
|
|
94
94
|
content: number;
|
|
95
95
|
tabsScollIndicator: number;
|
|
96
96
|
tabsBar: number;
|
|
@@ -101,8 +101,8 @@ type ZIndices = {
|
|
|
101
101
|
openControl: number;
|
|
102
102
|
sidebar: number;
|
|
103
103
|
navBar: number;
|
|
104
|
-
}
|
|
105
|
-
export
|
|
104
|
+
}
|
|
105
|
+
export interface DefaultNDSThemeType {
|
|
106
106
|
colors: Colors;
|
|
107
107
|
fontSizes: FontSizes;
|
|
108
108
|
lineHeights: LineHeights;
|
|
@@ -115,7 +115,7 @@ export type DefaultNDSThemeType = {
|
|
|
115
115
|
radii: Radii;
|
|
116
116
|
breakpoints: Breakpoints;
|
|
117
117
|
zIndices: ZIndices;
|
|
118
|
-
}
|
|
118
|
+
}
|
|
119
119
|
type RecursivePartial<T> = {
|
|
120
120
|
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
121
121
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -121,7 +121,6 @@
|
|
|
121
121
|
"react-color": "^2.18.1",
|
|
122
122
|
"react-dom": "17.0.2",
|
|
123
123
|
"react-router-dom": "^5.2.0",
|
|
124
|
-
"react-select": "^5.8.0",
|
|
125
124
|
"react-test-renderer": "^16.10",
|
|
126
125
|
"rollup": "^2.7.3",
|
|
127
126
|
"rollup-plugin-babel": "^4.4.0",
|
|
@@ -161,8 +160,9 @@
|
|
|
161
160
|
"react-popper": "1.3.11",
|
|
162
161
|
"react-popper-2": "npm:react-popper@2.2.4",
|
|
163
162
|
"react-resize-detector": "^9.1.0",
|
|
164
|
-
"react-windowed-select": "2.0
|
|
163
|
+
"react-windowed-select": "^5.2.0",
|
|
165
164
|
"smoothscroll-polyfill": "^0.4.4",
|
|
165
|
+
"react-select": "^5.8.0",
|
|
166
166
|
"styled-system": "^5.1.4",
|
|
167
167
|
"@types/styled-system": "5.1.22"
|
|
168
168
|
},
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type TextOverflowProps = {
|
|
2
|
-
whiteSpace?: "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap" | "initial" | "inherit";
|
|
3
|
-
textOverflow?: "clip" | "ellipsis" | "string" | "initial" | "inherit";
|
|
4
|
-
};
|
|
5
|
-
export declare const textOverflow: import("styled-system").styleFn;
|