@unbxd-ui/unbxd-react-components 0.3.2-beta.1 → 0.3.2-beta.2
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/components/Accordian/accordianCore.scss +8 -0
- package/components/Accordian/accordianTheme.scss +6 -0
- package/components/Button/button.css +1 -0
- package/components/Button/buttonTheme.scss +94 -0
- package/components/Form/SearchableDropdown.js +2 -2
- package/components/Form/SelectedPills.js +13 -11
- package/components/Form/form.css +1 -0
- package/components/Form/formCore.scss +706 -0
- package/components/Form/formTheme.scss +33 -0
- package/components/Form/stories/Dropdown.stories.js +83 -1
- package/components/Form/summarySelection.scss +106 -0
- package/components/Form/variables.scss +116 -0
- package/components/InlineModal/inlineModal.css +1 -0
- package/components/InlineModal/inlineModalCore.scss +40 -0
- package/components/InlineModal/inlineModalTheme.scss +16 -0
- package/components/Link/linkCore.scss +66 -0
- package/components/Link/linkTheme.scss +79 -0
- package/components/List/list.css +1 -0
- package/components/List/listCore.scss +6 -0
- package/components/List/listTheme.scss +0 -0
- package/components/Modal/modal.css +1 -0
- package/components/Modal/modalCore.scss +58 -0
- package/components/Modal/modalTheme.scss +0 -0
- package/components/NoDataPlaceholder/noDataPlaceholderCore.scss +33 -0
- package/components/NotificationComponent/notificationComponent.css +1 -0
- package/components/NotificationComponent/notificationTheme.scss +38 -0
- package/components/PIDItemComponent/PIDItemComponent.js +12 -2
- package/components/PIDItemComponent/PIDItemComponentCore.scss +36 -0
- package/components/PageLoader/pageLoaderCore.scss +34 -0
- package/components/ProgressBar/ProgressBar.scss +0 -0
- package/components/ProgressBar/progressBar.css +0 -0
- package/components/ProgressBar/progressBarCore.scss +22 -0
- package/components/ProgressBar/progressBarTheme.scss +0 -0
- package/components/Table/tableCore.scss +547 -0
- package/components/Table/tableTheme.scss +34 -0
- package/components/TabsComponent/tabs.css +1 -0
- package/components/TabsComponent/tabsCore.scss +59 -0
- package/components/TabsComponent/tabsTheme.scss +0 -0
- package/components/ToastNotification/toastNotificationCore.scss +273 -0
- package/components/Tooltip/tooltipCore.scss +207 -0
- package/components/Tooltip/tooltipTheme.scss +20 -0
- package/components/UIDItemComponent/UIDItemComponent.js +24 -14
- package/components/UIDItemComponent/UIDItemComponentCore.scss +57 -0
- package/components/common/common.scss +14 -0
- package/components/core.css +2 -1
- package/components/theme.css +2 -1
- package/package.json +5 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.RCB-btn{border-radius:3px;cursor:pointer}.RCB-btn-default:hover{background:#f3f3f3}.RCB-btn-primary{background:#1fa7fd;color:#FFF;border:0}.RCB-btn-primary:hover{background:#208dd2}.RCB-btn-secondary{background:#FFF;border:1px solid #95c7e7}.RCB-btn-secondary:hover{background:#eef8ff}.RCB-btn-small{padding:6px 8px}.RCB-btn-medium{padding:10px 15px}.RCB-btn-large{padding:15px 22px}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
.RCB {
|
|
2
|
+
&-btn {
|
|
3
|
+
border-radius: 3px;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&-btn {
|
|
8
|
+
padding: 8px 12px;
|
|
9
|
+
|
|
10
|
+
&-default {
|
|
11
|
+
&:hover {
|
|
12
|
+
background: #f3f3f3;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-primary {
|
|
17
|
+
background: #3E71F2;
|
|
18
|
+
color: #FFF;
|
|
19
|
+
border: 0;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background: #3865D9;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-secondary {
|
|
27
|
+
background: #FFF;
|
|
28
|
+
border: 1px solid #95c7e7;
|
|
29
|
+
|
|
30
|
+
&:hover {
|
|
31
|
+
background: #eef8ff;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-link {
|
|
36
|
+
all: unset !important;
|
|
37
|
+
background: transparent !important;
|
|
38
|
+
border: none !important;
|
|
39
|
+
color: #3E71F2 !important;
|
|
40
|
+
padding: 0 !important;
|
|
41
|
+
font-size: inherit !important;
|
|
42
|
+
height: auto !important;
|
|
43
|
+
font-weight: normal !important;
|
|
44
|
+
border-radius: 0 !important;
|
|
45
|
+
cursor: pointer !important;
|
|
46
|
+
display: inline !important;
|
|
47
|
+
font-weight: 500 !important;
|
|
48
|
+
|
|
49
|
+
&:hover:not(:disabled) {
|
|
50
|
+
color: #3865D9 !important;
|
|
51
|
+
background: transparent !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:disabled,
|
|
55
|
+
&[disabled] {
|
|
56
|
+
all: unset !important;
|
|
57
|
+
opacity: 0.5 !important;
|
|
58
|
+
cursor: not-allowed !important;
|
|
59
|
+
color: #3E71F2 !important;
|
|
60
|
+
background: transparent !important;
|
|
61
|
+
border: none !important;
|
|
62
|
+
font-weight: normal !important;
|
|
63
|
+
box-shadow: none !important;
|
|
64
|
+
outline: none !important;
|
|
65
|
+
display: inline !important;
|
|
66
|
+
padding: 0 !important;
|
|
67
|
+
margin: 0 !important;
|
|
68
|
+
height: auto !important;
|
|
69
|
+
width: auto !important;
|
|
70
|
+
vertical-align: baseline !important;
|
|
71
|
+
font-size: inherit !important;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Override size padding for link buttons
|
|
75
|
+
&.RCB-btn-small,
|
|
76
|
+
&.RCB-btn-medium,
|
|
77
|
+
&.RCB-btn-large {
|
|
78
|
+
padding: 0 !important;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-small {
|
|
83
|
+
padding: 8px 12px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-medium {
|
|
87
|
+
padding: 10px 15px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-large {
|
|
91
|
+
padding: 15px 22px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -337,8 +337,8 @@ var SearchableDropdown = function SearchableDropdown(props, ref) {
|
|
|
337
337
|
// }
|
|
338
338
|
// };
|
|
339
339
|
|
|
340
|
-
var clearSelectedItems = function clearSelectedItems(
|
|
341
|
-
|
|
340
|
+
var clearSelectedItems = function clearSelectedItems(e) {
|
|
341
|
+
e.stopPropagation();
|
|
342
342
|
setSelectedItems([]);
|
|
343
343
|
setSearchQuery("");
|
|
344
344
|
typeof onClear === "function" && onClear();
|
|
@@ -36,17 +36,19 @@ var SelectedPills = function SelectedPills(_ref) {
|
|
|
36
36
|
var wrapperRef = (0, _react.useRef)(null);
|
|
37
37
|
(0, _react.useEffect)(function () {
|
|
38
38
|
if (!showAllTags) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
// const handleClickOutside = (event) => {
|
|
40
|
+
// // if (wrapperRef.current && !wrapperRef.current.contains(event.target) && showAll) {
|
|
41
|
+
// // setShowAll(false);
|
|
42
|
+
// // }
|
|
43
|
+
// };
|
|
44
|
+
|
|
45
|
+
// if (showAll) {
|
|
46
|
+
// document.addEventListener("mousedown", handleClickOutside);
|
|
47
|
+
// }
|
|
48
|
+
|
|
49
|
+
// return () => {
|
|
50
|
+
// document.removeEventListener("mousedown", handleClickOutside);
|
|
51
|
+
// };
|
|
50
52
|
}
|
|
51
53
|
}, [showAll, showAllTags]);
|
|
52
54
|
var shouldShowMore = !showAllTags && tagsData.length > count;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.RCB-form-el-inline{margin:20px 0;display:inline-block}.RCB-form-el-inline .RCB-form-el-label{margin-right:15px}.RCB-form-el-block{margin:20px 0}.RCB-form-el-block .RCB-form-el-label{display:block}.RCB-dropdown .RCB-list-item{list-style-type:none;padding:10px;cursor:pointer}.RCB-dropdown .RCB-list-item:hover{background-color:#eee}.RCB-dropdown .RCB-list-item.selected{background-color:#eee}.RCB-select-arrow{float:right;font-size:12px;color:#96a9bc;margin-right:12px;margin-left:8px}.RCB-select-arrow:after{content:"\25BC";vertical-align:middle}.RCB-file-input{cursor:pointer}.RCB-drag-drop-uploader{border:2px dashed rgba(104,128,145,0.42);padding:20px;text-align:center}.RCB-drag-over{background:#f3f3f3}.RCB-toggle{padding:2px 3px;background-color:#FFF;border:1px solid #CCC;border-radius:20px;cursor:pointer}.RCB-toggle.active{background-color:#2cb191}.RCB-toggle.active .RCB-toggle-knob{background-color:#FFF}.RCB-toggle-knob{background-color:#8399ae;border-radius:50%;-webkit-transition:transform .3s ease;-moz-transition:transform .3s ease;-ms-transition:transform .3s ease;transition:transform .3s ease}
|