cortex-react-ui 0.1.174 → 0.1.176
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/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +25 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/types/BarLoader/BarLoader.d.ts +10 -0
- package/lib/esm/types/BarLoader/index.d.ts +1 -0
- package/lib/esm/types/Button/Button.d.ts +11 -0
- package/lib/esm/types/Button/index.d.ts +1 -0
- package/lib/esm/types/DatePicker/DatePicker.d.ts +7 -0
- package/lib/esm/types/DatePicker/index.d.ts +1 -0
- package/lib/esm/types/Dialog/ConfirmDialog.d.ts +11 -0
- package/lib/esm/types/Dialog/Dialog.d.ts +12 -0
- package/lib/esm/types/Dialog/DialogActions.d.ts +7 -0
- package/lib/esm/types/Dialog/DialogContent.d.ts +7 -0
- package/lib/esm/types/Dialog/DialogFooter.d.ts +7 -0
- package/lib/esm/types/Dialog/DialogHeader.d.ts +7 -0
- package/lib/esm/types/Dialog/DialogTitle.d.ts +9 -0
- package/lib/esm/types/Dialog/ErrorDialog.d.ts +10 -0
- package/lib/esm/types/Dialog/WarningDialog.d.ts +10 -0
- package/lib/esm/types/Dialog/index.d.ts +9 -0
- package/lib/esm/types/DomContainer/DomContainer.d.ts +7 -0
- package/lib/esm/types/DomContainer/index.d.ts +1 -0
- package/lib/esm/types/Icons/ChevronDownIcon.d.ts +6 -0
- package/lib/esm/types/Icons/ChevronLeftIcon.d.ts +6 -0
- package/lib/esm/types/Icons/ChevronRightIcon.d.ts +6 -0
- package/lib/esm/types/Icons/CrossIcon.d.ts +6 -0
- package/lib/esm/types/Icons/index.d.ts +4 -0
- package/lib/esm/types/Input/Input.d.ts +7 -0
- package/lib/esm/types/Input/index.d.ts +1 -0
- package/lib/esm/types/Menu/AuthDownloadLink.d.ts +14 -0
- package/lib/esm/types/Menu/ContextMenu.d.ts +13 -0
- package/lib/esm/types/Menu/Divider.d.ts +6 -0
- package/lib/esm/types/Menu/Menu.d.ts +10 -0
- package/lib/esm/types/Menu/MenuGroup.d.ts +8 -0
- package/lib/esm/types/Menu/MenuItem.d.ts +14 -0
- package/lib/esm/types/Menu/PopupMenu.d.ts +16 -0
- package/lib/esm/types/Menu/index.d.ts +7 -0
- package/lib/esm/types/Popper/Popper.d.ts +38 -0
- package/lib/esm/types/Popper/index.d.ts +1 -0
- package/lib/esm/types/Scanner/Dialog.d.ts +13 -0
- package/lib/esm/types/Scanner/DialogBody.d.ts +3 -0
- package/lib/esm/types/Scanner/DialogMask.d.ts +3 -0
- package/lib/esm/types/Scanner/ScanConfirmationDialog.d.ts +18 -0
- package/lib/esm/types/Scanner/Scanner.d.ts +11 -0
- package/lib/esm/types/Scanner/index.d.ts +1 -0
- package/lib/esm/types/Select/Select.d.ts +6 -0
- package/lib/esm/types/Select/index.d.ts +1 -0
- package/lib/esm/types/Selected/Selected.d.ts +8 -0
- package/lib/esm/types/Selected/index.d.ts +1 -0
- package/lib/esm/types/Spinner/Spinner.d.ts +7 -0
- package/lib/esm/types/Spinner/index.d.ts +1 -0
- package/lib/esm/types/TagInput/TagInput.d.ts +12 -0
- package/lib/esm/types/TagInput/TagItem.d.ts +9 -0
- package/lib/esm/types/TagInput/TagSearchInput.d.ts +9 -0
- package/lib/esm/types/TagInput/TagSuggestion.d.ts +13 -0
- package/lib/esm/types/TagInput/TagSuggestionGroup.d.ts +8 -0
- package/lib/esm/types/TagInput/TagSuggestionItem.d.ts +8 -0
- package/lib/esm/types/TagInput/index.d.ts +1 -0
- package/lib/esm/types/TagInput/types.d.ts +14 -0
- package/lib/esm/types/TextField/TextField.d.ts +6 -0
- package/lib/esm/types/TextField/TextFieldInput.d.ts +10 -0
- package/lib/esm/types/TextField/index.d.ts +1 -0
- package/lib/esm/types/ToggleButton/ToggleButton.d.ts +11 -0
- package/lib/esm/types/ToggleButton/index.d.ts +1 -0
- package/lib/esm/types/Tooltip/Tooltip.d.ts +12 -0
- package/lib/esm/types/Tooltip/index.d.ts +1 -0
- package/lib/esm/types/Transition/CSSTransition.d.ts +17 -0
- package/lib/esm/types/Transition/Fade.d.ts +13 -0
- package/lib/esm/types/index.d.ts +13 -0
- package/lib/esm/types/utils/classNames.d.ts +1 -0
- package/lib/esm/types/utils/setRef.d.ts +1 -0
- package/lib/esm/types/utils/useClickOutside.d.ts +2 -0
- package/lib/esm/types/utils/useElement.d.ts +2 -0
- package/lib/esm/types/utils/useForkRef.d.ts +2 -0
- package/lib/styles/Scanner/index.scss +110 -0
- package/package.json +7 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as Popper } from './Popper';
|
|
2
|
+
export { default as DomContainer } from './DomContainer';
|
|
3
|
+
export { default as Spinner } from './Spinner';
|
|
4
|
+
export { default as BarLoader } from './BarLoader';
|
|
5
|
+
export { default as Selected } from './Selected';
|
|
6
|
+
export { default as Button } from './Button';
|
|
7
|
+
export { default as Scanner } from './Scanner';
|
|
8
|
+
export { default as ToggleButton } from './ToggleButton';
|
|
9
|
+
export { default as Tooltip } from './Tooltip';
|
|
10
|
+
export { default as TagInput } from './TagInput';
|
|
11
|
+
export { default as Menu, ContextMenu, Divider, MenuItem, PopupMenu, MenuGroup, AuthDownloadLink } from './Menu';
|
|
12
|
+
export { default as Dialog, DialogContent, DialogHeader, DialogFooter, ConfirmDialog, ErrorDialog, WarningDialog, DialogActions, DialogTitle } from './Dialog';
|
|
13
|
+
export { ChevronDownIcon, ChevronRightIcon, ChevronLeftIcon, CrossIcon } from './Icons';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function classNames(...values: any[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function setRef<T>(ref: React.MutableRefObject<T | null> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@import "../global.scss";
|
|
2
|
+
|
|
3
|
+
@mixin scanner($props: null, $options: null) {
|
|
4
|
+
$internal-options: $default-options;
|
|
5
|
+
|
|
6
|
+
$internal-props: (
|
|
7
|
+
bgColor: #ffffff,
|
|
8
|
+
fgColor: $color-grey-darker,
|
|
9
|
+
closeBtnColor: $color-grey,
|
|
10
|
+
closeBtnHoverColor: $color-blue,
|
|
11
|
+
closeBtnDisableColor: $color-blue-grey-lighter,
|
|
12
|
+
confirm: (
|
|
13
|
+
headerBgColor: $color-orange-dark,
|
|
14
|
+
headerFgColor: #ffffff,
|
|
15
|
+
bgColor: #ffffff,
|
|
16
|
+
fgColor: $color-grey-darker,
|
|
17
|
+
),
|
|
18
|
+
error: (
|
|
19
|
+
headerBgColor: $color-red,
|
|
20
|
+
headerFgColor: #ffffff,
|
|
21
|
+
bgColor: #ffffff,
|
|
22
|
+
fgColor: $color-grey-darker,
|
|
23
|
+
),
|
|
24
|
+
warning: (
|
|
25
|
+
headerBgColor: $color-grey,
|
|
26
|
+
headerFgColor: #ffffff,
|
|
27
|
+
bgColor: #ffffff,
|
|
28
|
+
fgColor: $color-grey-darker,
|
|
29
|
+
),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
$internal-props: safe-map-merge($internal-props, $props);
|
|
33
|
+
$internal-options: safe-map-merge($internal-options, $options);
|
|
34
|
+
|
|
35
|
+
.btn {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
padding: 0.5rem 1rem;
|
|
40
|
+
border: 1px solid transparent;
|
|
41
|
+
border-radius: 0.375rem;
|
|
42
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
43
|
+
font-size: 0.875rem;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
line-height: 1.25rem;
|
|
46
|
+
text-align: center;
|
|
47
|
+
text-transform: none;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
vertical-align: middle;
|
|
50
|
+
user-select: none;
|
|
51
|
+
background-color: #4F46E5;
|
|
52
|
+
color: #fff;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
outline: none;
|
|
55
|
+
transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.btn-default {
|
|
59
|
+
background-color: #4F46E5;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.btn-default:hover {
|
|
63
|
+
opacity: 0.8;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.select {
|
|
67
|
+
display: block;
|
|
68
|
+
width: 100%;
|
|
69
|
+
padding-left: 0.75rem;
|
|
70
|
+
color: #000;
|
|
71
|
+
padding-right: 2.5rem;
|
|
72
|
+
padding-top: 0.5rem;
|
|
73
|
+
padding-bottom: 0.5rem;
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
border-radius: 0.375rem;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* DIALOG */
|
|
79
|
+
.dialog-header {
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: space-between;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.dialog-header h4 {
|
|
85
|
+
margin: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dialog-mask {
|
|
89
|
+
overflow-x: hidden;
|
|
90
|
+
overflow-y: auto;
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
padding-top: 2.5rem;
|
|
94
|
+
padding-bottom: 5rem;
|
|
95
|
+
background-color: #0005;
|
|
96
|
+
position: fixed;
|
|
97
|
+
inset: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dialog-body {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
gap: 1.25rem;
|
|
104
|
+
padding: 1.25rem;
|
|
105
|
+
height: max-content;
|
|
106
|
+
background-color: white;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* DIALOG */
|
|
110
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortex-react-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.176",
|
|
4
4
|
"description": "React UI",
|
|
5
5
|
"author": "Anthony",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "lib/cjs/index.js",
|
|
8
8
|
"module": "lib/esm/index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./lib/esm/index.js",
|
|
12
|
+
"require": "./lib/cjs/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
9
15
|
"publishConfig": {
|
|
10
16
|
"access": "public"
|
|
11
17
|
},
|