@nulogy/components 14.1.3 → 14.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 +7604 -2954
- package/dist/main.module.js +7612 -2964
- package/dist/src/AppTag/AppTag.d.ts +10 -0
- package/dist/src/AppTag/components/LogoWrapper.d.ts +5 -0
- package/dist/src/AppTag/components/NulogyLogo.d.ts +2 -0
- package/dist/src/AppTag/components/Tooltip.d.ts +8 -0
- package/dist/src/AppTag/constants.d.ts +8 -0
- package/dist/src/AppTag/index.d.ts +1 -0
- package/dist/src/AppTag/stories/AppTag.story.d.ts +12 -0
- package/dist/src/AppTag/stories/AppTag.usecases.story.d.ts +23 -0
- package/dist/src/AppTag/types.d.ts +3 -0
- package/dist/src/Flex/Flex.d.ts +2 -0
- package/dist/src/Flex/index.d.ts +1 -0
- package/dist/src/Link/Link.d.ts +6 -4
- package/dist/src/Link/Link.story.d.ts +13 -0
- package/dist/src/index.d.ts +2 -1
- package/package.json +4 -4
- package/dist/src/scripts/generateTheme.d.ts +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AppName } from "./constants";
|
|
3
|
+
import { AppTagType } from "./types";
|
|
4
|
+
type AppTagProps = {
|
|
5
|
+
app: AppName;
|
|
6
|
+
type?: AppTagType;
|
|
7
|
+
hideTooltip?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export default function AppTag({ app, type, hideTooltip }: AppTagProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AppTagType } from "../types";
|
|
3
|
+
export declare const LogoWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
4
|
+
$type?: AppTagType;
|
|
5
|
+
}>> & string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AppTagType, ColorName } from "./types";
|
|
2
|
+
export type AppName = "production-scheduling" | "supplier-collaboration" | "digital-quality-inspection" | "shop-floor" | "smart-factory";
|
|
3
|
+
export declare const APP_ABBREVIATIONS: Record<AppName, string>;
|
|
4
|
+
export declare const APP_DISPLAY_NAMES: Record<AppName, string>;
|
|
5
|
+
export declare const appTagColors: Record<AppTagType, {
|
|
6
|
+
primary: ColorName;
|
|
7
|
+
secondary: ColorName;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AppTag } from "./AppTag";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AppTag } from "..";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AppTag;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Default: () => React.JSX.Element;
|
|
9
|
+
export declare const WithoutATooltip: {
|
|
10
|
+
(): React.JSX.Element;
|
|
11
|
+
storyName: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AppTag } from "..";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof AppTag;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const WithALink: {
|
|
9
|
+
(): React.JSX.Element;
|
|
10
|
+
storyName: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const WithText: {
|
|
13
|
+
(): React.JSX.Element;
|
|
14
|
+
storyName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const WithMessages: {
|
|
17
|
+
(): React.JSX.Element;
|
|
18
|
+
storyName: string;
|
|
19
|
+
};
|
|
20
|
+
export declare const WithTooltip: {
|
|
21
|
+
(): React.JSX.Element;
|
|
22
|
+
storyName: string;
|
|
23
|
+
};
|
package/dist/src/Flex/Flex.d.ts
CHANGED
|
@@ -6,4 +6,6 @@ export type FlexProps = BoxProps & {
|
|
|
6
6
|
columnGap?: CSSProperties["columnGap"];
|
|
7
7
|
};
|
|
8
8
|
declare const Flex: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof BoxProps> & BoxProps, FlexProps>> & string;
|
|
9
|
+
declare const InlineFlex: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof BoxProps> & BoxProps, FlexProps>> & string;
|
|
9
10
|
export default Flex;
|
|
11
|
+
export { InlineFlex };
|
package/dist/src/Flex/index.d.ts
CHANGED
package/dist/src/Link/Link.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { StyledProps } from "../StyledProps";
|
|
3
3
|
import { ComponentVariant } from "../NDSProvider/ComponentVariantContext";
|
|
4
|
-
|
|
4
|
+
import { AppName } from "../AppTag/constants";
|
|
5
|
+
export interface LinkProps extends React.ComponentPropsWithRef<"a">, Partial<StyledProps> {
|
|
5
6
|
underline?: boolean;
|
|
6
7
|
hover?: string;
|
|
7
8
|
variant?: ComponentVariant;
|
|
8
9
|
to?: string;
|
|
9
10
|
as?: React.ElementType | string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
forApp?: AppName;
|
|
12
|
+
openInNewTab?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export default function Link({ children, forApp, openInNewTab, ...props }: LinkProps): React.JSX.Element;
|
|
@@ -40,3 +40,16 @@ export declare const _ReactRouterLink: {
|
|
|
40
40
|
name: string;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
+
export declare const WithAppTag: {
|
|
44
|
+
(): React.JSX.Element;
|
|
45
|
+
story: {
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const OpenInNewTab: () => React.JSX.Element;
|
|
50
|
+
export declare const OpenInNewTabWithAppTag: {
|
|
51
|
+
(): React.JSX.Element;
|
|
52
|
+
story: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export type { DescriptionListProps } from "./DescriptionList";
|
|
|
20
20
|
export { Divider } from "./Divider";
|
|
21
21
|
export { DropdownButton, DropdownItem, DropdownLink, DropdownMenu, DropdownText } from "./DropdownMenu";
|
|
22
22
|
export { FieldLabel, HelpText, RequirementText } from "./FieldLabel";
|
|
23
|
-
export { Flex } from "./Flex";
|
|
23
|
+
export { Flex, InlineFlex } from "./Flex";
|
|
24
24
|
export { Field, Fieldset, Form, FormSection } from "./Form";
|
|
25
25
|
export { default as useMediaQuery } from "./hooks/useMediaQuery";
|
|
26
26
|
export { Icon, InlineIcon } from "./Icon";
|
|
@@ -64,3 +64,4 @@ export type { TextProps } from "./Type";
|
|
|
64
64
|
export { useWindowDimensions } from "./utils";
|
|
65
65
|
export { InlineValidation } from "./Validation";
|
|
66
66
|
export { VerticalDivider } from "./VerticalDivider";
|
|
67
|
+
export { AppTag } from "./AppTag";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nulogy/components",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.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,6 @@
|
|
|
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/theme.ts",
|
|
13
12
|
"start": "concurrently \"yarn build:watch\" \"yarn start:storybook\"",
|
|
14
13
|
"start:cypress": "yarn concurrently --kill-others \"yarn start --ci\" \"yarn wait-on http://localhost:9999 && cypress open\"",
|
|
15
14
|
"start:storybook": "start-storybook -p 9999",
|
|
@@ -80,7 +79,6 @@
|
|
|
80
79
|
"@semantic-release/github": "^8.0.7",
|
|
81
80
|
"@semantic-release/npm": "^9.0.0",
|
|
82
81
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
83
|
-
"@storybook/react": "6.3.12",
|
|
84
82
|
"@storybook/addon-a11y": "^6.1.9",
|
|
85
83
|
"@storybook/addon-actions": "^6.1.9",
|
|
86
84
|
"@storybook/addon-docs": "6.1.9",
|
|
@@ -89,6 +87,7 @@
|
|
|
89
87
|
"@storybook/addon-toolbars": "^6.1.9",
|
|
90
88
|
"@storybook/addon-viewport": "^6.1.9",
|
|
91
89
|
"@storybook/codemod": "^6.1.9",
|
|
90
|
+
"@storybook/react": "6.3.12",
|
|
92
91
|
"@storybook/theming": "^6.1.9",
|
|
93
92
|
"@testing-library/jest-dom": "5.11.5",
|
|
94
93
|
"@testing-library/react": "^12.1.5",
|
|
@@ -153,7 +152,8 @@
|
|
|
153
152
|
"dependencies": {
|
|
154
153
|
"@babel/runtime": "^7.9.6",
|
|
155
154
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
156
|
-
"@nulogy/tokens": "^
|
|
155
|
+
"@nulogy/tokens": "^6.1.1",
|
|
156
|
+
"@radix-ui/react-tooltip": "1.0.7",
|
|
157
157
|
"@reach/dialog": "0.17.0",
|
|
158
158
|
"@styled-system/prop-types": "^5.1.4",
|
|
159
159
|
"@styled-system/theme-get": "^5.1.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|