@openfin/ui-library 0.15.6 → 0.16.0-alpha.1683726601

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/README.md CHANGED
@@ -2,10 +2,9 @@
2
2
 
3
3
  > React component library for OpenFin Workspace products – Informed by [Spatial](https://www.figma.com/file/0Y3pKZj0tJWuleF12h5Sua/Spatial---Components).
4
4
 
5
- **Storybook:** [openfin-ui.netlify.com](https://openfin-ui.netlify.com) (pw: pizza)
5
+ **Storybook:** [cdn.openfin.co/workspace/storybook](https://cdn.openfin.co/workspace/storybook)
6
6
  **NPM Package:** [@openfin/ui-library](https://www.npmjs.com/package/@openfin/ui-library)
7
7
 
8
- [![Netlify Status](https://api.netlify.com/api/v1/badges/8fc15443-c69c-473b-b5cf-c5dbc516b0bf/deploy-status)](https://app.netlify.com/sites/openfin-ui/deploys)
9
8
  ![Release Package](https://github.com/openfin/ui-library/actions/workflows/release-package.yml/badge.svg)
10
9
 
11
10
  ## What is this for?
@@ -30,12 +30,12 @@ export declare const Box: import("styled-components").StyledComponent<"div", imp
30
30
  flexDirection?: BoxTypes.FlexDirection | undefined;
31
31
  flexWrap?: BoxTypes.FlexWrap | undefined;
32
32
  justifyContent?: BoxTypes.JustifyContent | undefined;
33
- gap?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
33
+ gap?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
34
34
  alignSelf?: BoxTypes.AlignSelf | undefined;
35
35
  flexBasis?: string | undefined;
36
36
  flexGrow?: 0 | 1 | undefined;
37
37
  flexShrink?: 0 | 1 | undefined;
38
38
  order?: number | undefined;
39
39
  background?: BoxTypes.BackgroundLevel | undefined;
40
- padding?: "base" | "small" | "xsmall" | "large" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
40
+ padding?: "small" | "base" | "large" | "xsmall" | "xlarge" | "xxlarge" | "xxxlarge" | "xxxxlarge" | undefined;
41
41
  }, never>;
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
2
  export interface DefinitionListProps extends React.HTMLAttributes<HTMLDListElement> {
3
- definitions: Map<string, string>;
3
+ /**
4
+ * A map of key-value pairs to be displayed in the list.
5
+ *
6
+ * Using a `Map` is deprecated and will be removed in a future release.
7
+ */
8
+ definitions: Map<string, string> | [string, string][];
4
9
  }
5
10
  export declare const DefinitionList: React.FC<DefinitionListProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { ContactCardProps } from './contactCard';
3
+ interface ContactStatusIconProps {
4
+ onlineStatus?: ContactCardProps['onlineStatus'];
5
+ }
6
+ export declare const ContactStatusIcon: React.FC<ContactStatusIconProps>;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const CheckSVG: () => JSX.Element;
2
+ export declare const BusySVG: () => JSX.Element;
3
+ export declare const DoNotDisturbSVG: () => JSX.Element;
4
+ export declare const OfflineSVG: () => JSX.Element;
@@ -18,7 +18,13 @@ export interface ContactCardProps extends React.HTMLAttributes<HTMLDivElement> {
18
18
  useInitials?: boolean;
19
19
  /**
20
20
  * An array of detail list objects that can be used for logical grouping of contact details.
21
+ *
22
+ * Passing a Map is deprecated and will be removed in a future release.
21
23
  */
22
- details: Map<string, string>[];
24
+ details: Map<string, string>[] | [string, string][][];
25
+ /**
26
+ * The contact's online status.
27
+ */
28
+ onlineStatus?: 'offline' | 'do-not-disturb' | 'busy' | 'away' | 'available';
23
29
  }
24
30
  export declare const ContactCard: React.FC<ContactCardProps>;
@@ -1,2 +1 @@
1
1
  export declare const getInitials: (name: string) => string;
2
- export declare const getColorForName: (name?: string) => string;