@nulogy/components 11.0.0 → 11.2.0
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 +6745 -3176
- package/dist/main.module.js +6802 -3235
- package/dist/src/BottomSheet/BottomSheet.d.ts +22 -0
- package/dist/src/BottomSheet/BottomSheet.parts.d.ts +44 -0
- package/dist/src/BottomSheet/BottomSheet.styled.d.ts +38 -0
- package/dist/src/BottomSheet/BottomSheetProvider.d.ts +12 -0
- package/dist/src/BottomSheet/index.d.ts +3 -0
- package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +13 -0
- package/dist/src/BottomSheet/stories/BottomSheet.content.story.d.ts +13 -0
- package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +14 -0
- package/dist/src/BottomSheet/stories/BottomSheet.parts.story.d.ts +12 -0
- package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +12 -0
- package/dist/src/BrandedNavBar/NavBarBackground.d.ts +1 -1
- package/dist/src/Button/Button.d.ts +3 -2
- package/dist/src/Button/ControlIcon.d.ts +2 -1
- package/dist/src/Button/IconicButton.d.ts +2 -1
- package/dist/src/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/DatePicker/DatePickerStyles.d.ts +1 -1
- package/dist/src/Divider/Divider.d.ts +4 -1
- package/dist/src/Divider/Divider.story.d.ts +2 -1
- package/dist/src/DropdownMenu/DropdownButton.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
- package/dist/src/FieldLabel/FramedIcon.d.ts +2 -1
- package/dist/src/Icon/Icon.d.ts +2 -1
- package/dist/src/Input/InputField.d.ts +3 -2
- package/dist/src/Link/Link.d.ts +9 -1
- package/dist/src/Modal/ModalContent.d.ts +1 -1
- package/dist/src/Modal/ModalHeader.d.ts +1 -1
- package/dist/src/NDSProvider/ComponentVariantContext.d.ts +1 -1
- package/dist/src/NDSProvider/FeatureFlagsContext.d.ts +11 -0
- package/dist/src/NDSProvider/GlobalStyles.d.ts +1 -1
- package/dist/src/NDSProvider/GlobalStylesComposer.d.ts +1 -1
- package/dist/src/NDSProvider/NDSProvider.d.ts +4 -2
- package/dist/src/Select/Select.story.d.ts +1 -0
- package/dist/src/Select/customReactSelectStyles.d.ts +2 -2
- package/dist/src/StyledProps/index.d.ts +5 -1
- package/dist/src/Textarea/StyledTextarea.d.ts +1 -1
- package/dist/src/Toggle/Toggle.d.ts +1 -1
- package/dist/src/Toggle/ToggleButton.d.ts +1 -1
- package/dist/src/Tooltip/Tooltip.story.d.ts +1 -0
- package/dist/src/Tooltip/TooltipContainer.d.ts +1 -1
- package/dist/src/index.d.ts +4 -2
- package/dist/src/theme/NDSThemeProvider.d.ts +5 -0
- package/dist/src/theme/index.d.ts +2 -0
- package/dist/src/{NDSProvider → theme}/mergeThemes.util.d.ts +1 -1
- package/dist/src/theme/theme.d.ts +5 -0
- package/dist/src/{theme.type.d.ts → theme/theme.type.d.ts} +10 -2
- package/dist/src/{NDSProvider → theme}/useNDSTheme.d.ts +4 -3
- package/dist/src/utils/noop.d.ts +5 -0
- package/dist/src/utils/story/dashed.d.ts +9 -0
- package/dist/src/utils/story/placeholder.d.ts +7 -0
- package/package.json +6 -4
- package/dist/src/VisualTests/KitchenSink.story.d.ts +0 -6
- package/dist/src/theme.d.ts +0 -5
- package/dist/src/utils/DeprecatedComponent.d.ts +0 -2
- package/dist/src/utils/conditionallyRequiredProp.d.ts +0 -1
- package/dist/src/utils/dashed.d.ts +0 -9
- package/dist/src/utils/deprecatedProp.d.ts +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StyledComponent } from "styled-components";
|
|
2
|
+
import { ComponentType } from "react";
|
|
3
|
+
import { DefaultNDSThemeType } from "../../theme";
|
|
4
|
+
/**
|
|
5
|
+
* A styled utility that adds a dashed border around a component
|
|
6
|
+
* to highlight its boundaries. To be used in Storybook exclusively.
|
|
7
|
+
* Do not export for production.
|
|
8
|
+
*/
|
|
9
|
+
export declare const dashed: <P extends object>(component: ComponentType<P>) => StyledComponent<ComponentType<P>, DefaultNDSThemeType, {}, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BoxProps } from "../../Box";
|
|
3
|
+
/**
|
|
4
|
+
* A dialognaly striped and bordered rectangle that can be used as a placeholder for content.
|
|
5
|
+
* To be used in Storybook exclusively. Do not export for production.
|
|
6
|
+
*/
|
|
7
|
+
export declare function Placeholder(props: BoxProps): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Component library for the Nulogy Design System - http://nulogy.design",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"ci": "yarn && yarn build && yarn test && yarn run check",
|
|
11
11
|
"new": "plop",
|
|
12
|
-
"generate:theme": "npx tsx src/scripts/generateTheme.ts && prettier -w src/theme.ts",
|
|
12
|
+
"generate:theme": "npx tsx src/scripts/generateTheme.ts && prettier -w src/theme/theme.ts",
|
|
13
13
|
"start": "concurrently \"yarn build --watch\" \"yarn start:storybook\"",
|
|
14
14
|
"start:cypress": "yarn concurrently --kill-others \"yarn start --ci\" \"yarn wait-on http://localhost:9999 && cypress open\"",
|
|
15
15
|
"start:storybook": "start-storybook -p 9999",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@babel/preset-env": "7.3.1",
|
|
69
69
|
"@babel/preset-typescript": "^7.10.4",
|
|
70
70
|
"@nulogy/eslint-config-nulogy": "^1.0.0",
|
|
71
|
-
"@nulogy/icons": "4.
|
|
71
|
+
"@nulogy/icons": "^4.36.0",
|
|
72
72
|
"@rollup/plugin-babel": "^5.0.0",
|
|
73
73
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
|
74
74
|
"@semantic-release/changelog": "^6.0.2",
|
|
@@ -82,7 +82,8 @@
|
|
|
82
82
|
"@storybook/addon-docs": "6.1.9",
|
|
83
83
|
"@storybook/addon-knobs": "^6.1.9",
|
|
84
84
|
"@storybook/addon-storysource": "^6.1.9",
|
|
85
|
-
"@storybook/addon-
|
|
85
|
+
"@storybook/addon-toolbars": "^6.1.9",
|
|
86
|
+
"@storybook/addon-viewport": "^6.1.9",
|
|
86
87
|
"@storybook/codemod": "^6.1.9",
|
|
87
88
|
"@storybook/react": "^6.3.12",
|
|
88
89
|
"@storybook/theming": "^6.1.9",
|
|
@@ -145,6 +146,7 @@
|
|
|
145
146
|
"dependencies": {
|
|
146
147
|
"@babel/runtime": "^7.9.6",
|
|
147
148
|
"@nulogy/tokens": "^5.4.0",
|
|
149
|
+
"@reach/dialog": "0.17.0",
|
|
148
150
|
"@styled-system/prop-types": "^5.1.4",
|
|
149
151
|
"@styled-system/theme-get": "^5.1.2",
|
|
150
152
|
"@types/styled-system": "5.1.22",
|
package/dist/src/theme.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DefaultNDSThemeType } from "./theme.type";
|
|
2
|
-
type ThemeKey = "desktop" | "tablet" | "phone";
|
|
3
|
-
export declare const themes: Record<ThemeKey, DefaultNDSThemeType>;
|
|
4
|
-
export declare const desktop: DefaultNDSThemeType, tablet: DefaultNDSThemeType, phone: DefaultNDSThemeType;
|
|
5
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function conditionallyRequiredProp(propType: any, dependsOnPropName: any): (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StyledComponent } from "styled-components";
|
|
2
|
-
import { ComponentType } from "react";
|
|
3
|
-
import { DefaultNDSThemeType } from "../theme.type";
|
|
4
|
-
/**
|
|
5
|
-
* A styled utility that adds a dashed border around a component
|
|
6
|
-
* to highlight its boundaries. To be used in Storybook exclusively.
|
|
7
|
-
*/
|
|
8
|
-
declare const dashed: <P extends object>(component: ComponentType<P>) => StyledComponent<ComponentType<P>, DefaultNDSThemeType, {}, never>;
|
|
9
|
-
export default dashed;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function deprecatedProp(propType: any, newPropName: any): (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|