@skedulo/sked-ui 19.21.1 → 19.23.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/README.md +31 -11
- package/dist/components/avatar/AvatarDetail.d.ts +1 -0
- package/dist/components/badge/Badge.d.ts +4 -4
- package/dist/components/badge/Badge.stories.d.ts +17 -1
- package/dist/components/calendar-controls/elements/NavigationButtons.d.ts +1 -0
- package/dist/components/datepicker/DateTime.d.ts +1 -0
- package/dist/components/datepicker/Datepicker.d.ts +1 -0
- package/dist/components/datepicker/Time.d.ts +1 -0
- package/dist/components/filter-bar/filter-list/FilterList.d.ts +1 -0
- package/dist/components/forms/elements/AsyncMultiSearchSelect.d.ts +1 -0
- package/dist/components/forms/elements/AsyncSearchSelect.d.ts +1 -0
- package/dist/components/forms/elements/MultiSearchSelect.d.ts +1 -0
- package/dist/components/forms/elements/SearchSelect.d.ts +1 -0
- package/dist/components/icon/iconPaths.d.ts +2 -0
- package/dist/components/link/Link.d.ts +3 -2
- package/dist/components/link/Link.stories.d.ts +17 -1
- package/dist/components/popout/PopOutBase.d.ts +1 -0
- package/dist/components/popups/info-window/InfoWindow.d.ts +1 -0
- package/dist/components/popups/info-window/info-window-utils.d.ts +5 -2
- package/dist/components/portal/Portal.d.ts +1 -0
- package/dist/index.js +9942 -8942
- package/package.json +38 -30
- package/yarn.lock +9884 -8185
- package/dist/components/test/TestComponent.d.ts +0 -1
- package/dist/components/test/TestComponent.stories.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
# Skedulo UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Demo https://ui.skedulo.com
|
|
4
|
+
|
|
5
|
+
## Demo (Local)
|
|
4
6
|
|
|
5
7
|
Run:
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
```bash
|
|
10
|
+
yarn storybook
|
|
11
|
+
```
|
|
8
12
|
|
|
9
13
|
## Development
|
|
10
14
|
|
|
15
|
+
Use NodeJS 16 for development
|
|
16
|
+
|
|
11
17
|
### Installation
|
|
12
18
|
|
|
13
19
|
Run:
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
```bash
|
|
22
|
+
yarn bootstrap
|
|
23
|
+
```
|
|
16
24
|
|
|
17
25
|
### Testing
|
|
18
26
|
|
|
19
27
|
Run:
|
|
20
28
|
|
|
21
|
-
|
|
29
|
+
```bash
|
|
30
|
+
yarn test
|
|
31
|
+
```
|
|
22
32
|
|
|
23
33
|
Run with the watch command:
|
|
24
34
|
|
|
@@ -28,31 +38,41 @@ Run with the watch command:
|
|
|
28
38
|
|
|
29
39
|
Run:
|
|
30
40
|
|
|
31
|
-
|
|
41
|
+
```bash
|
|
42
|
+
yarn build
|
|
43
|
+
```
|
|
32
44
|
|
|
33
45
|
### Linking between projects
|
|
34
46
|
|
|
35
47
|
If you need to test your changes to the package in another project, you can do so by first building the package:
|
|
36
48
|
|
|
37
|
-
|
|
49
|
+
```bash
|
|
50
|
+
yarn build:package
|
|
51
|
+
```
|
|
38
52
|
|
|
39
53
|
then allow a link to sked-ui by running:
|
|
40
54
|
|
|
41
|
-
|
|
55
|
+
```bash
|
|
56
|
+
yarn link
|
|
57
|
+
```
|
|
42
58
|
|
|
43
59
|
within this projects directory.
|
|
44
60
|
|
|
45
61
|
To use it within another project, navigate to the root folder of that project and run:
|
|
46
62
|
|
|
47
|
-
|
|
63
|
+
```bash
|
|
64
|
+
yarn link @skedulo/sked-ui
|
|
65
|
+
```
|
|
48
66
|
|
|
49
67
|
Some potentially helpful commands to run if you are making changes to sked are:
|
|
50
68
|
|
|
51
|
-
|
|
69
|
+
```bash
|
|
70
|
+
yarn package:watch
|
|
52
71
|
|
|
53
|
-
and
|
|
72
|
+
# and
|
|
54
73
|
|
|
55
|
-
|
|
74
|
+
yarn build:declarations:watch
|
|
75
|
+
```
|
|
56
76
|
|
|
57
77
|
### Merging to master & semantic-release
|
|
58
78
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export declare type BadgeTypes = 'default' | 'primary' | 'important';
|
|
3
|
-
|
|
3
|
+
export declare const DEFAULT_BADGE_CLASSES = "sked-badge-min-w sk-text-xxs sk-font-medium sk-tracking-wide sk-h-5 sk-pb-px sk-rounded-full sk-inline-flex sk-items-center sk-justify-center";
|
|
4
|
+
export interface IBadgeProps {
|
|
4
5
|
/**
|
|
5
6
|
* Value to be displayed in badge
|
|
6
7
|
*/
|
|
@@ -14,5 +15,4 @@ interface IProps {
|
|
|
14
15
|
*/
|
|
15
16
|
badgeType?: BadgeTypes;
|
|
16
17
|
}
|
|
17
|
-
export declare const Badge:
|
|
18
|
-
export {};
|
|
18
|
+
export declare const Badge: ({ count, countLimiter, badgeType }: IBadgeProps) => JSX.Element;
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentStory } from '@storybook/react';
|
|
3
|
+
import { IBadgeProps } from './Badge';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: (props: IBadgeProps) => JSX.Element;
|
|
7
|
+
argTypes: {
|
|
8
|
+
badgeType: {
|
|
9
|
+
options: string[];
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const Basic: ComponentStory<({ count, countLimiter, badgeType }: IBadgeProps) => JSX.Element>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ISelectItem, AsyncMultiSearchSelectBox } from './interfaces';
|
|
2
3
|
export declare const AsyncMultiSearchSelect: <T extends ISelectItem<any>>({ fetchItems, debounceTime, fetchStrategy, useCache, minChars, onSelectedItemsChange, disabled, ...rest }: AsyncMultiSearchSelectBox<T>) => JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ISelectItem, MultiSearchSelectBox } from './interfaces';
|
|
2
3
|
export declare const MultiSearchSelect: <T extends ISelectItem<any>>({ initialSelectedItems, items, id, name, placeholder, autoFocus, className, onSelectedItemsChange, disabled, loading, itemToString, ItemRenderer, MenuItemsRenderer, selectAll, onInputValueChange, onMenuToggle, ...rest }: MultiSearchSelectBox<T>) => JSX.Element;
|
|
@@ -40,6 +40,7 @@ declare const _default: {
|
|
|
40
40
|
ellipsisVertical: any;
|
|
41
41
|
emoji: any;
|
|
42
42
|
exclamation: any;
|
|
43
|
+
exclamationFill: any;
|
|
43
44
|
filter: any;
|
|
44
45
|
filterFunnel: any;
|
|
45
46
|
filterNew: any;
|
|
@@ -49,6 +50,7 @@ declare const _default: {
|
|
|
49
50
|
grip: any;
|
|
50
51
|
hash: any;
|
|
51
52
|
help: any;
|
|
53
|
+
helpFilled: any;
|
|
52
54
|
hide: any;
|
|
53
55
|
info: any;
|
|
54
56
|
infoFill: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export interface ILinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
3
|
type?: 'primary' | 'secondary';
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
export declare const Link: ({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element;
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ComponentStory } from '@storybook/react';
|
|
3
|
+
import { ILinkProps } from './Link';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: ({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element;
|
|
7
|
+
argTypes: {
|
|
8
|
+
type: {
|
|
9
|
+
options: string[];
|
|
10
|
+
control: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const Basic: ComponentStory<({ type, className, children, ...otherProps }: ILinkProps) => JSX.Element>;
|
|
@@ -9,6 +9,7 @@ export interface IPopOutBase {
|
|
|
9
9
|
placement?: PopperJS.Options['placement'];
|
|
10
10
|
modifiers?: PopperJS.Options['modifiers'];
|
|
11
11
|
popOutContainer?: (PopperWrappedContent: JSX.Element) => JSX.Element;
|
|
12
|
+
children?: React.ReactNode;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* PopOutBase uses react-popper/popperjs under the hood and is a wrapper that sets up the Popperjs Manager, Reference and Popper.
|
|
@@ -25,10 +25,13 @@ export declare const adjustContentDisplayCoordinates: (anchor: IAnchorScores, wi
|
|
|
25
25
|
display: {
|
|
26
26
|
left: number;
|
|
27
27
|
right: number;
|
|
28
|
-
bottom: number;
|
|
29
28
|
height: number;
|
|
30
|
-
top: number;
|
|
31
29
|
width: number;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
bottom: number;
|
|
33
|
+
top: number;
|
|
34
|
+
toJSON(): any;
|
|
32
35
|
};
|
|
33
36
|
displayScore: number;
|
|
34
37
|
distanceScore: number;
|