@openfin/ui-library 0.7.3 → 0.8.0-alpha.1669678489

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/LICENSE.md ADDED
@@ -0,0 +1,5 @@
1
+ Learn more about OpenFin licensing at the links listed below or email us at support@openfin.co with questions.
2
+ 2
3
+ 3- [Licensing](https://www.openfin.co/licensing/)
4
+ 4- [Developer agreement](https://openfin.co/developer-agreement/)
5
+ 5
@@ -0,0 +1,4 @@
1
+ export declare enum ExpandDirection {
2
+ Up = 0,
3
+ Down = 1
4
+ }
@@ -0,0 +1,13 @@
1
+ import { ButtonProps } from '../Button';
2
+ import { ExpandDirection } from './expandDirection';
3
+ export declare type SecondaryButtonProps = {
4
+ title: string;
5
+ disabled?: boolean;
6
+ onClick: (closeSecondaryButtonsPanel?: () => void) => void;
7
+ };
8
+ export declare type ExpandableButtonProps = Omit<ButtonProps, "shape"> & {
9
+ secondaryButtons?: SecondaryButtonProps[];
10
+ closePanelOnSecondaryButtonClick?: boolean;
11
+ expandDirection?: ExpandDirection;
12
+ };
13
+ export declare const ExpandableButton: (props: ExpandableButtonProps) => JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { SecondaryButtonProps } from './expandableButton';
2
+ import { ButtonSizeType } from '../Button';
3
+ import { ExpandDirection } from './expandDirection';
4
+ export declare type ExpandablePanelProps = {
5
+ secondaryButtons: SecondaryButtonProps[];
6
+ onCollapseRequest: () => void;
7
+ closePanelOnSecondaryButtonClick?: boolean;
8
+ buttonSize?: ButtonSizeType;
9
+ expandDirection: ExpandDirection;
10
+ panelId?: string;
11
+ };
12
+ export declare const ExpandablePanel: (props: ExpandablePanelProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { ExpandDirection } from './expandDirection';
2
+ export declare const setupExpandablePanel: (node: HTMLDivElement, expandDirection: ExpandDirection) => void;
@@ -0,0 +1,2 @@
1
+ export * from './expandableButton';
2
+ export * from './expandDirection';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfin/ui-library",
3
3
  "description": "OpenFin UI Component Library",
4
- "version": "0.7.3",
4
+ "version": "0.8.0-alpha.1669678489",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "repository": "github:openfin/ui-library",
@@ -9,7 +9,7 @@
9
9
  "files": [
10
10
  "dist/**/*"
11
11
  ],
12
- "license": "UNLICENSED",
12
+ "license": "SEE LICENSE IN LICENSE.MD",
13
13
  "scripts": {
14
14
  "start": "yarn storybook",
15
15
  "build": "yarn build:clean && yarn build:src",
@@ -37,6 +37,8 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@modulz/radix-icons": "^4.0.0",
40
+ "focus-trap-react": "^10.0.1",
41
+ "framer-motion": "4.1.5",
40
42
  "tinycolor2": "^1.4.2"
41
43
  },
42
44
  "devDependencies": {