@nulogy/components 8.2.2 → 8.4.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.
@@ -1,3 +1,8 @@
1
- /// <reference types="react" />
2
- declare const StatusIndicator: React.FC<any>;
1
+ import React from "react";
2
+ import { SpaceProps, TypographyProps, FlexboxProps } from "styled-system";
3
+ declare type StatusIndicatorType = "neutral" | "dark" | "danger" | "informative" | "success" | "warning" | "quiet";
4
+ declare type StatusIndicatorProps = SpaceProps & TypographyProps & FlexboxProps & {
5
+ type?: StatusIndicatorType;
6
+ };
7
+ declare const StatusIndicator: React.FC<StatusIndicatorProps>;
3
8
  export default StatusIndicator;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare type SummaryProps = {
3
+ breakpoint?: number | string;
4
+ };
5
+ declare const Summary: React.FC<SummaryProps>;
6
+ export default Summary;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ export declare function Default(): JSX.Element;
3
+ export declare function WithMainInfoOnly(): JSX.Element;
4
+ declare const _default: {
5
+ title: string;
6
+ parameters: {
7
+ backgrounds: {
8
+ default: string;
9
+ values: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ };
14
+ };
15
+ };
16
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ declare type SummaryContextValue = {
3
+ breakpoint: number;
4
+ };
5
+ export declare function useSummaryContext(): SummaryContextValue;
6
+ export declare const SummaryContextProvider: React.FC<SummaryContextValue>;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SummaryDivider: (props: any) => JSX.Element;
3
+ export default SummaryDivider;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ declare type SummaryItemProps = {
3
+ value: number | string;
4
+ status: React.ReactNode;
5
+ };
6
+ declare const SummaryItem: React.FC<SummaryItemProps>;
7
+ export default SummaryItem;
@@ -0,0 +1 @@
1
+ export { default as Summary } from "./Summary";
@@ -0,0 +1,2 @@
1
+ declare const useMediaQuery: (query: string) => boolean;
2
+ export default useMediaQuery;
@@ -46,7 +46,7 @@ export { Toast } from "./Toast";
46
46
  export { BrandedNavBar, MenuTrigger, EnvironmentBanner, NavBarBackground, BrandLogoContainer, DesktopMenu, SmallNavBar, } from "./BrandedNavBar";
47
47
  export type { MenuTriggerProps, EnvironmentBannerProps, NavBarBackgroundProps, BrandLogoContainerProps, DesktopMenuProps, SmallNavBarProps, RenderMenuButtonProps, } from "./BrandedNavBar";
48
48
  export { AsyncSelect } from "./AsyncSelect";
49
- export { ApplicationFrame, Page, Sidebar } from "./Layout";
49
+ export { ApplicationFrame, Page, Sidebar, Header } from "./Layout";
50
50
  export { useWindowDimensions } from "./utils";
51
51
  export { Divider } from "./Divider";
52
52
  export { SortingTable } from "./SortingTable";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nulogy/components",
3
- "version": "8.2.2",
3
+ "version": "8.4.0",
4
4
  "description": "Component library for the Nulogy Design System - http://nulogy.design",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -138,7 +138,7 @@
138
138
  },
139
139
  "dependencies": {
140
140
  "@babel/runtime": "^7.9.6",
141
- "@nulogy/tokens": "^5.3.0",
141
+ "@nulogy/tokens": "^5.4.0",
142
142
  "@styled-system/prop-types": "^5.1.4",
143
143
  "@styled-system/theme-get": "^5.1.2",
144
144
  "body-scroll-lock": "^3.1.5",
@@ -179,6 +179,7 @@
179
179
  ],
180
180
  "testMatch": [
181
181
  "**/src/**/*.spec.tsx",
182
+ "**/src/**/*.spec.ts",
182
183
  "**/spec/**/*.spec.tsx"
183
184
  ],
184
185
  "setupFiles": [