@unbxd-ui/unbxd-react-components 0.3.2 → 0.3.3-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/assets/desktop.svg +6 -0
- package/assets/map-pin.svg +6 -0
- package/assets/p1.svg +20 -0
- package/assets/p2.svg +22 -0
- package/assets/p3.svg +19 -0
- package/assets/p4.svg +22 -0
- package/assets/p5.svg +23 -0
- 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/Checkbox.js +4 -3
- package/components/Form/Dropdown.js +82 -10
- package/components/Form/Input.js +11 -3
- package/components/Form/SearchableDropdown.js +22 -15
- package/components/Form/SelectedPills.js +128 -0
- package/components/Form/SummarySelection.js +46 -0
- package/components/Form/Textarea.js +13 -3
- package/components/Form/form.css +1 -0
- package/components/Form/formCore.css +1 -1
- package/components/Form/formCore.scss +713 -0
- package/components/Form/formTheme.scss +33 -0
- package/components/Form/stories/Dropdown.stories.js +249 -2
- package/components/Form/stories/SearchableDropdown.stories.js +173 -3
- package/components/Form/stories/ServerPaginatedDropdown.stories.js +166 -94
- package/components/Form/summarySelection.css +1 -0
- 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/MetricCard/MetricCard.css +1 -0
- package/components/MetricCard/MetricCard.js +77 -0
- package/components/MetricCard/MetricCard.scss +120 -0
- package/components/MetricCard/MetriicCard.stories.js +192 -0
- package/components/MetricCard/index.js +9 -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 +83 -0
- package/components/PIDItemComponent/PIDItemComponent.stories.js +175 -0
- package/components/PIDItemComponent/PIDItemComponentCore.css +1 -0
- package/components/PIDItemComponent/PIDItemComponentCore.scss +37 -0
- package/components/PIDItemComponent/index.js +9 -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 +145 -0
- package/components/UIDItemComponent/UIDItemComponent.stories.js +51 -0
- package/components/UIDItemComponent/UIDItemComponentCore.css +1 -0
- package/components/UIDItemComponent/UIDItemComponentCore.scss +57 -0
- package/components/UIDItemComponent/index.js +9 -0
- package/components/common/common.scss +14 -0
- package/components/core.css +3 -2
- package/components/core.scss +13 -10
- package/components/index.js +32 -11
- package/components/theme.css +3 -2
- package/components/theme.scss +2 -1
- package/core/icon.js +17 -0
- package/core/index.js +14 -0
- package/core/lazyLoadImage.js +56 -0
- package/core/selection.json +1 -0
- package/core/utils.js +6 -1
- package/index.js +30 -0
- package/package.json +10 -5
|
@@ -4,10 +4,12 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports["default"] = exports.MultiSelect = exports.Default = void 0;
|
|
7
|
+
exports["default"] = exports.PIDServerDropdown = exports.MultiSelect = exports.Default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _Dropdown = _interopRequireDefault(require("../Dropdown"));
|
|
10
9
|
var _dataLoader = _interopRequireDefault(require("../../../core/dataLoader"));
|
|
10
|
+
var _PIDItemComponent = _interopRequireDefault(require("../../PIDItemComponent/PIDItemComponent"));
|
|
11
|
+
var _Dropdown = _interopRequireDefault(require("../Dropdown"));
|
|
12
|
+
var _SummarySelection = _interopRequireDefault(require("../SummarySelection"));
|
|
11
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
14
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
13
15
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -182,6 +184,136 @@ var Default = exports.Default = {
|
|
|
182
184
|
})));
|
|
183
185
|
}
|
|
184
186
|
};
|
|
187
|
+
var PIDServerDropdown = exports.PIDServerDropdown = {
|
|
188
|
+
args: {
|
|
189
|
+
showSearch: true,
|
|
190
|
+
searchPlaceholder: 'Search with id only',
|
|
191
|
+
searchAttribute: 'id',
|
|
192
|
+
multiSelect: false,
|
|
193
|
+
idAttribute: 'id',
|
|
194
|
+
nameAttribute: 'name',
|
|
195
|
+
pageSize: 20,
|
|
196
|
+
maxHeight: 180,
|
|
197
|
+
perPageKey: '_limit',
|
|
198
|
+
pageNoKey: '_page',
|
|
199
|
+
ddItemHeight: 60,
|
|
200
|
+
paginationType: 'SERVER'
|
|
201
|
+
},
|
|
202
|
+
argTypes: {
|
|
203
|
+
showSearch: {
|
|
204
|
+
control: 'boolean',
|
|
205
|
+
description: 'Enable search functionality'
|
|
206
|
+
},
|
|
207
|
+
searchPlaceholder: {
|
|
208
|
+
control: 'text',
|
|
209
|
+
description: 'Placeholder text for search input'
|
|
210
|
+
},
|
|
211
|
+
searchAttribute: {
|
|
212
|
+
control: 'text',
|
|
213
|
+
description: 'Field to search against'
|
|
214
|
+
},
|
|
215
|
+
multiSelect: {
|
|
216
|
+
control: 'boolean',
|
|
217
|
+
description: 'Allow multiple selections'
|
|
218
|
+
},
|
|
219
|
+
idAttribute: {
|
|
220
|
+
control: 'text',
|
|
221
|
+
description: 'Field to use as unique identifier'
|
|
222
|
+
},
|
|
223
|
+
nameAttribute: {
|
|
224
|
+
control: 'text',
|
|
225
|
+
description: 'Field to display as item label'
|
|
226
|
+
},
|
|
227
|
+
pageSize: {
|
|
228
|
+
control: 'number',
|
|
229
|
+
description: 'Number of items per page'
|
|
230
|
+
},
|
|
231
|
+
maxHeight: {
|
|
232
|
+
control: 'number',
|
|
233
|
+
description: 'Maximum height of dropdown list'
|
|
234
|
+
},
|
|
235
|
+
perPageKey: {
|
|
236
|
+
control: 'text',
|
|
237
|
+
description: 'Query parameter for items per page'
|
|
238
|
+
},
|
|
239
|
+
pageNoKey: {
|
|
240
|
+
control: 'text',
|
|
241
|
+
description: 'Query parameter for page number'
|
|
242
|
+
},
|
|
243
|
+
ddItemHeight: {
|
|
244
|
+
control: 'number',
|
|
245
|
+
description: 'Height of each dropdown item'
|
|
246
|
+
},
|
|
247
|
+
paginationType: {
|
|
248
|
+
control: 'select',
|
|
249
|
+
options: ['SERVER', 'CLIENT'],
|
|
250
|
+
description: 'Type of pagination'
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
render: function render(args) {
|
|
254
|
+
var _React$useState3 = _react["default"].useState(null),
|
|
255
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
256
|
+
selectedValue = _React$useState4[0],
|
|
257
|
+
setSelectedValue = _React$useState4[1];
|
|
258
|
+
var ddRef = _react["default"].useRef(null);
|
|
259
|
+
var valuesResponseFormatter = function valuesResponseFormatter(response) {
|
|
260
|
+
return {
|
|
261
|
+
entries: response.map(function (user) {
|
|
262
|
+
return {
|
|
263
|
+
name: user.name,
|
|
264
|
+
id: user.id,
|
|
265
|
+
imageUrl: "https://images.unsplash.com/photo-1560343090-f0409e92791a?w=300"
|
|
266
|
+
};
|
|
267
|
+
}),
|
|
268
|
+
total: response.length ? 10 : 0
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
var keysMap = {
|
|
272
|
+
uniqueIdMap: 'id',
|
|
273
|
+
imageUrlMap: 'imageUrl',
|
|
274
|
+
titleMap: 'name'
|
|
275
|
+
};
|
|
276
|
+
var PageLoader = function PageLoader(_ref2) {
|
|
277
|
+
var className = _ref2.className;
|
|
278
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
279
|
+
className: "loading-spinner ".concat(className || '')
|
|
280
|
+
});
|
|
281
|
+
};
|
|
282
|
+
var NoDataComponent = function NoDataComponent() {
|
|
283
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
284
|
+
style: {
|
|
285
|
+
padding: '10px',
|
|
286
|
+
textAlign: 'center',
|
|
287
|
+
color: '#666',
|
|
288
|
+
fontSize: '14px'
|
|
289
|
+
}
|
|
290
|
+
}, "No matching results found");
|
|
291
|
+
};
|
|
292
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
293
|
+
style: {
|
|
294
|
+
width: '300px',
|
|
295
|
+
height: '150px'
|
|
296
|
+
}
|
|
297
|
+
}, /*#__PURE__*/_react["default"].createElement(_Dropdown["default"], _extends({}, args, {
|
|
298
|
+
ref: ddRef,
|
|
299
|
+
className: "users-dd demo-dropdown",
|
|
300
|
+
name: "usersDD",
|
|
301
|
+
requestId: "getUsers",
|
|
302
|
+
DropdownItem: _PIDItemComponent["default"],
|
|
303
|
+
responseFormatter: valuesResponseFormatter,
|
|
304
|
+
value: selectedValue,
|
|
305
|
+
keysMap: keysMap,
|
|
306
|
+
onChange: function onChange(value) {
|
|
307
|
+
return setSelectedValue(value);
|
|
308
|
+
},
|
|
309
|
+
LoaderComponent: /*#__PURE__*/_react["default"].createElement(PageLoader, {
|
|
310
|
+
className: "search-loader"
|
|
311
|
+
}),
|
|
312
|
+
NoDataComponent: NoDataComponent,
|
|
313
|
+
paginationType: "SERVER"
|
|
314
|
+
})));
|
|
315
|
+
}
|
|
316
|
+
};
|
|
185
317
|
var MultiSelect = exports.MultiSelect = {
|
|
186
318
|
args: _objectSpread(_objectSpread({}, Default.args), {}, {
|
|
187
319
|
multiSelect: true,
|
|
@@ -190,10 +322,10 @@ var MultiSelect = exports.MultiSelect = {
|
|
|
190
322
|
}),
|
|
191
323
|
argTypes: Default.argTypes,
|
|
192
324
|
render: function render(args) {
|
|
193
|
-
var _React$
|
|
194
|
-
_React$
|
|
195
|
-
selectedValues = _React$
|
|
196
|
-
setSelectedValues = _React$
|
|
325
|
+
var _React$useState5 = _react["default"].useState([]),
|
|
326
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
327
|
+
selectedValues = _React$useState6[0],
|
|
328
|
+
setSelectedValues = _React$useState6[1];
|
|
197
329
|
var ddRef = _react["default"].useRef(null);
|
|
198
330
|
var valuesResponseFormatter = function valuesResponseFormatter(response) {
|
|
199
331
|
return {
|
|
@@ -206,47 +338,8 @@ var MultiSelect = exports.MultiSelect = {
|
|
|
206
338
|
total: response.length ? 10 : 0
|
|
207
339
|
};
|
|
208
340
|
};
|
|
209
|
-
var
|
|
210
|
-
var
|
|
211
|
-
data = props.data;
|
|
212
|
-
var items = data.items;
|
|
213
|
-
if (items.length === 0) {
|
|
214
|
-
return null;
|
|
215
|
-
}
|
|
216
|
-
var itemData = data.items[index];
|
|
217
|
-
if (!itemData) return null;
|
|
218
|
-
var isSelected = selectedValues.some(function (val) {
|
|
219
|
-
return val.id === itemData.id;
|
|
220
|
-
});
|
|
221
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
222
|
-
style: {
|
|
223
|
-
width: '300px'
|
|
224
|
-
},
|
|
225
|
-
className: "RCB-list-item"
|
|
226
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
227
|
-
onClick: function onClick() {
|
|
228
|
-
if (isSelected) {
|
|
229
|
-
setSelectedValues(selectedValues.filter(function (val) {
|
|
230
|
-
return val.id !== itemData.id;
|
|
231
|
-
}));
|
|
232
|
-
} else {
|
|
233
|
-
setSelectedValues([].concat(_toConsumableArray(selectedValues), [itemData]));
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
237
|
-
style: {
|
|
238
|
-
display: 'flex',
|
|
239
|
-
alignItems: 'center',
|
|
240
|
-
gap: '8px'
|
|
241
|
-
}
|
|
242
|
-
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
243
|
-
type: "checkbox",
|
|
244
|
-
checked: isSelected,
|
|
245
|
-
readOnly: true
|
|
246
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, "Name: ".concat(itemData.name, ", Id: ").concat(itemData.id)))));
|
|
247
|
-
};
|
|
248
|
-
var PageLoader = function PageLoader(_ref2) {
|
|
249
|
-
var className = _ref2.className;
|
|
341
|
+
var PageLoader = function PageLoader(_ref3) {
|
|
342
|
+
var className = _ref3.className;
|
|
250
343
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
251
344
|
className: "loading-spinner ".concat(className || '')
|
|
252
345
|
});
|
|
@@ -261,48 +354,21 @@ var MultiSelect = exports.MultiSelect = {
|
|
|
261
354
|
}
|
|
262
355
|
}, "No matching results found");
|
|
263
356
|
};
|
|
264
|
-
var
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
key: value.id,
|
|
280
|
-
style: {
|
|
281
|
-
background: '#e2e8f0',
|
|
282
|
-
padding: '2px 8px',
|
|
283
|
-
borderRadius: '4px',
|
|
284
|
-
fontSize: '14px',
|
|
285
|
-
display: 'flex',
|
|
286
|
-
alignItems: 'center',
|
|
287
|
-
gap: '4px'
|
|
288
|
-
}
|
|
289
|
-
}, value.name, /*#__PURE__*/_react["default"].createElement("button", {
|
|
290
|
-
onClick: function onClick(e) {
|
|
291
|
-
e.stopPropagation();
|
|
292
|
-
setSelectedValues(selectedValues.filter(function (val) {
|
|
293
|
-
return val.id !== value.id;
|
|
294
|
-
}));
|
|
295
|
-
},
|
|
296
|
-
style: {
|
|
297
|
-
border: 'none',
|
|
298
|
-
background: 'none',
|
|
299
|
-
padding: '0',
|
|
300
|
-
cursor: 'pointer',
|
|
301
|
-
fontSize: '14px',
|
|
302
|
-
color: '#666'
|
|
303
|
-
}
|
|
304
|
-
}, "\xD7"));
|
|
305
|
-
})) : /*#__PURE__*/_react["default"].createElement("span", null, "Select users"));
|
|
357
|
+
var handleDelete = function handleDelete(value) {
|
|
358
|
+
setSelectedValues(selectedValues.filter(function (val) {
|
|
359
|
+
return val.id !== value;
|
|
360
|
+
}));
|
|
361
|
+
};
|
|
362
|
+
var onCheckboxChange = function onCheckboxChange(val) {
|
|
363
|
+
var item = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
364
|
+
var findItemWithId = arguments.length > 2 ? arguments[2] : undefined;
|
|
365
|
+
if (findItemWithId()) {
|
|
366
|
+
setSelectedValues(selectedValues.filter(function (val) {
|
|
367
|
+
return val.id !== item.id;
|
|
368
|
+
}));
|
|
369
|
+
} else {
|
|
370
|
+
setSelectedValues([].concat(_toConsumableArray(selectedValues), [item]));
|
|
371
|
+
}
|
|
306
372
|
};
|
|
307
373
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
308
374
|
style: {
|
|
@@ -314,13 +380,19 @@ var MultiSelect = exports.MultiSelect = {
|
|
|
314
380
|
className: "users-dd demo-dropdown",
|
|
315
381
|
name: "usersDD",
|
|
316
382
|
requestId: "getUsers",
|
|
317
|
-
|
|
318
|
-
|
|
383
|
+
selectedItems: selectedValues,
|
|
384
|
+
onDelete: handleDelete,
|
|
385
|
+
selectionKey: "name",
|
|
386
|
+
deleteKey: "id",
|
|
387
|
+
isDeletable: true,
|
|
388
|
+
showAllTags: false,
|
|
389
|
+
count: 3,
|
|
390
|
+
onChange: onCheckboxChange
|
|
391
|
+
// DropdownItem={ValueDropdownItem}
|
|
392
|
+
,
|
|
393
|
+
SelectionSummary: _SummarySelection["default"],
|
|
319
394
|
responseFormatter: valuesResponseFormatter,
|
|
320
395
|
value: selectedValues,
|
|
321
|
-
onChange: function onChange(value) {
|
|
322
|
-
return setSelectedValues(value);
|
|
323
|
-
},
|
|
324
396
|
LoaderComponent: /*#__PURE__*/_react["default"].createElement(PageLoader, {
|
|
325
397
|
className: "search-loader"
|
|
326
398
|
}),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.summary-tags-wrapper{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:calc(100% - 40px)}.summary-tags-wrapper .RCB-list{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.summary-tags-wrapper .light-close-icon{font-size:12px;color:#6f6f8d;cursor:pointer;margin-left:6px}.merch-dd-icon{position:absolute;right:15px;top:16px}.merch-tag-box{display:flex;align-items:center;justify-content:center;border:1px solid #dae1e9;border-radius:4px;background-color:#ffffff;padding:5px 10px 5px 10px;font-size:12px;text-transform:capitalize}.new-summary-tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}.summary-pill-tag{margin-right:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;border-radius:4px;border:1px solid #dae1e9;background-color:#ffffff;padding:5px 10px 5px 10px;font-size:12px;text-transform:capitalize;display:flex;align-items:center;justify-content:center;max-height:28px;min-width:36px;margin-left:6px}.custom-attribute{position:absolute;top:0;left:0;height:100%;display:flex;align-items:center}.filters-sub-header{color:#616e7a;font-size:14px;font-weight:600;line-height:19.1px;padding-top:20px}.view-more-link{color:#3E71F2;cursor:pointer;font-size:14px;text-decoration:none;padding-left:10px;white-space:nowrap;display:inline-flex;align-items:center;flex-shrink:0}.view-more-link:active{color:#0056b3}.view-more-link .RCB-inline-modal-btn{display:flex;justify-content:space-between}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
.summary-tags-wrapper {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 6px;
|
|
6
|
+
width: calc(100% - 40px);
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
.RCB-list {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
gap: 6px;
|
|
15
|
+
}
|
|
16
|
+
.light-close-icon{
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
color: #6f6f8d;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
margin-left: 6px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.merch-dd-icon {
|
|
25
|
+
position: absolute;
|
|
26
|
+
right: 15px;
|
|
27
|
+
top: 16px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.merch-tag-box{
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
border: 1px solid #dae1e9;
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
background-color: #ffffff;
|
|
37
|
+
padding: 5px 10px 5px 10px;
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
text-transform: capitalize;
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.new-summary-tag {
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
max-width: 120px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.summary-pill-tag {
|
|
51
|
+
margin-right: 6px;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
max-width: 120px;
|
|
56
|
+
border-radius: 4px;
|
|
57
|
+
border: 1px solid #dae1e9;
|
|
58
|
+
background-color: #ffffff;
|
|
59
|
+
padding: 5px 10px 5px 10px;
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
text-transform: capitalize;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
max-height: 28px;
|
|
66
|
+
min-width:36px;
|
|
67
|
+
margin-left: 6px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.custom-attribute {
|
|
71
|
+
position: absolute;
|
|
72
|
+
top: 0;
|
|
73
|
+
left: 0;
|
|
74
|
+
height: 100%;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.filters-sub-header {
|
|
80
|
+
color: #616e7a;
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
font-weight: 600;
|
|
83
|
+
line-height: 19.1px;
|
|
84
|
+
padding-top: 20px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.view-more-link {
|
|
88
|
+
color: #3E71F2;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
text-decoration: none;
|
|
92
|
+
padding-left: 10px;
|
|
93
|
+
white-space: nowrap;
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
|
|
98
|
+
&:active {
|
|
99
|
+
color: #0056b3;
|
|
100
|
+
}
|
|
101
|
+
.RCB-inline-modal-btn {
|
|
102
|
+
display: flex;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@import "../../../node_modules/@unbxd-ui/unbxd-style-dictionary/build/scss/_variables.scss";
|
|
2
|
+
$base-font-color: $color-font-base;
|
|
3
|
+
$pageheader-font-color: $color-font-base;
|
|
4
|
+
$link-font-color: #3E71F2;
|
|
5
|
+
$success-font-color: #2cb291;
|
|
6
|
+
$error-font-color: #C13535;
|
|
7
|
+
$thin-line-color: $color-border-tabs;
|
|
8
|
+
$dashed-line-color: #A9B9C9;
|
|
9
|
+
|
|
10
|
+
/* form styles */
|
|
11
|
+
$form-label-color: #415867;
|
|
12
|
+
$form-placeholder-color: #ACACAC;
|
|
13
|
+
$form-dd-plaholder-color: #7F97A7;
|
|
14
|
+
$color-background-button-primary-active: #3E71F2;
|
|
15
|
+
$color-base-blue-cornflower-dark: #3865D9;
|
|
16
|
+
$color-border-button-primary-hover: #3E71F2;
|
|
17
|
+
$color-font-active: #3E71F2;
|
|
18
|
+
$color-font-link: #3E71F2;
|
|
19
|
+
$color-border-button-danger-hover: #ae3636;
|
|
20
|
+
|
|
21
|
+
/* button styles */
|
|
22
|
+
$primary-btn-bg: #3E71F2;
|
|
23
|
+
$primary-btn-hover-bg: $color-background-button-primary-hover;
|
|
24
|
+
$secondary-btn-bg: $color-background-button-secondary-base;
|
|
25
|
+
$secondary-btn-color: $color-font-secondary;
|
|
26
|
+
$danger-btn-bg: $color-base-red-dark;
|
|
27
|
+
$danger-btn-hover-bg: $color-border-button-danger-hover;
|
|
28
|
+
|
|
29
|
+
/* header styles */
|
|
30
|
+
$site-switcher-bg: #F9FBFF;
|
|
31
|
+
$site-switcher-color: $color-font-button-secondary;
|
|
32
|
+
$header-bg-color: #F7F9FB;
|
|
33
|
+
$header-font-color: #687F8F;
|
|
34
|
+
$header-selected-bg: #FFF;
|
|
35
|
+
$header-selected-color: $color-background-button-primary-active;
|
|
36
|
+
$preview-btn-bg: #FFFFFF;
|
|
37
|
+
$preview-btn-color: $color-font-link;
|
|
38
|
+
$user-logo-bg: #F2F5F8;
|
|
39
|
+
$user-logo-color: #3A4C59;
|
|
40
|
+
$header-dd-color: #5D7483;
|
|
41
|
+
|
|
42
|
+
/* horizontal navbar styles */
|
|
43
|
+
$horiz-nav-color: $color-font-secondary;
|
|
44
|
+
$level1-nav-selected-bg: $color-background-button-primary-base;
|
|
45
|
+
$level1-nav-selected-color: #FFFFFF;
|
|
46
|
+
|
|
47
|
+
/* vertical navbar styles */
|
|
48
|
+
$vertical-nav-body-bg: #FFF;
|
|
49
|
+
$vertical-nav-border: $color-border-tabs ;
|
|
50
|
+
$vertical-nav-selected-bg: #FFF;
|
|
51
|
+
$vertical-nav-color: $color-font-secondary;
|
|
52
|
+
$vertical-nav-selected-color: $color-background-button-primary-base;
|
|
53
|
+
|
|
54
|
+
$vertical-step-line-default : #dadada;
|
|
55
|
+
|
|
56
|
+
/* modal styles */
|
|
57
|
+
$modal-header-bg: #FFF;
|
|
58
|
+
$modal-body-bg: #F7F9FB;
|
|
59
|
+
|
|
60
|
+
/* App z-index levels
|
|
61
|
+
|
|
62
|
+
page level modal : 50
|
|
63
|
+
manage / profile dropdown : 40
|
|
64
|
+
sticky header section : 30
|
|
65
|
+
inline modals in body section : 20
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
$pageModal-zIndex: 50;
|
|
69
|
+
$headerDD-zIndex: 40;
|
|
70
|
+
$stickyHeader-zIndex: 30;
|
|
71
|
+
$bodyInlineModal-zIndex: 20;
|
|
72
|
+
|
|
73
|
+
/* Login styles */
|
|
74
|
+
$login-heading-color: #415867;
|
|
75
|
+
$login-subheading-color: #289EAB;
|
|
76
|
+
$login-message-color: #5D7483;
|
|
77
|
+
$tnc-text-color: #8399AE;
|
|
78
|
+
$unbxd-tnc-color: #289EAB;
|
|
79
|
+
|
|
80
|
+
/* Feature Docs Component */
|
|
81
|
+
$doc-title-color: #314857;
|
|
82
|
+
$doc-subtitle-color: #415867;
|
|
83
|
+
$doc-body-color: #5D7483;
|
|
84
|
+
$doc-footer-bg: #F2F5F8;
|
|
85
|
+
|
|
86
|
+
/* Steps widget styles */
|
|
87
|
+
$step-header-color: #7F97A7;
|
|
88
|
+
$step-selected-color: #314857;
|
|
89
|
+
|
|
90
|
+
/* line icon text component styles */
|
|
91
|
+
$round-color: #7F97A7;
|
|
92
|
+
$line-color: $color-border-tabs;
|
|
93
|
+
$disc-color: #5D7483;
|
|
94
|
+
|
|
95
|
+
/* dataCenter style */
|
|
96
|
+
$light-sky-blue: #67B8DC;
|
|
97
|
+
$light-purpule: #6794DD;
|
|
98
|
+
$dark-purpulr: #6771DC;
|
|
99
|
+
|
|
100
|
+
/* integration landing page styles */
|
|
101
|
+
$integration-page-bg: #F7F9FB;
|
|
102
|
+
$integration-title-color: #314857;
|
|
103
|
+
$integration-card-bg: #FFF;
|
|
104
|
+
$integration-card-title-bg: #F2F5F8;
|
|
105
|
+
$integration-card-title-color: #1D2E44;
|
|
106
|
+
$integration-color: #5D7483;
|
|
107
|
+
$integration-card-link: $color-font-link;
|
|
108
|
+
|
|
109
|
+
/* yellow tag style */
|
|
110
|
+
$color-yellow-border-tag: rgba(220, 137, 0, .16);
|
|
111
|
+
$color-yellow-text-tag: #c58c2d;
|
|
112
|
+
$color-yellow-background-tag: #fffaf2;
|
|
113
|
+
|
|
114
|
+
/*misc colors */
|
|
115
|
+
$color-light-blue: #C1CFF4;
|
|
116
|
+
$color-border-grey: #DDE2EE;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.RCB-inline-modal{position:relative;display:inline-block}.RCB-inline-modal.hover-open .RCB-inline-modal-body{display:none}.RCB-inline-modal.hover-open:hover .RCB-inline-modal-body{display:block}.RCB-inline-modal-btn{display:inline-block;background:#FFF;border:1px solid #eee;padding:10px;border-radius:3px;cursor:pointer}.RCB-inline-modal-body{position:absolute;background:#FFF;border:1px solid #efeeee;box-shadow:0 9px 12px 0 rgba(0,0,0,0.15);z-index:1}.RCB-inline-modal-body.RCB-align-left{left:0}.RCB-inline-modal-body.RCB-align-right{right:0}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.RCB {
|
|
2
|
+
&-inline-modal {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
|
|
6
|
+
&.hover-open {
|
|
7
|
+
.RCB-inline-modal-body {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&:hover {
|
|
12
|
+
.RCB-inline-modal-body {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-inline-modal-body {
|
|
20
|
+
background-color: #fff;
|
|
21
|
+
border: 1px solid #DDE2EE;
|
|
22
|
+
border-bottom-left-radius: 4px;
|
|
23
|
+
border-bottom-right-radius: 4px;
|
|
24
|
+
box-shadow: 0px 5px 15px 0px rgba(23, 23, 58, 0.1490196078);
|
|
25
|
+
max-height: 300px;
|
|
26
|
+
overflow-y: scroll;
|
|
27
|
+
overflow-x: hidden;
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 100%;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
|
|
32
|
+
&.RCB-align-left {
|
|
33
|
+
left: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.RCB-align-right {
|
|
37
|
+
right: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.RCB {
|
|
2
|
+
&-inline-modal-btn {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
background: #FFF;
|
|
5
|
+
border: 1px solid #eee;
|
|
6
|
+
padding: 10px;
|
|
7
|
+
border-radius: 3px;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-inline-modal-body {
|
|
12
|
+
background: #FFF;
|
|
13
|
+
border: 1px solid #efeeee;
|
|
14
|
+
box-shadow: 0 9px 12px 0 rgba(0,0,0,0.15);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Core styles for Link component - essential styles for functionality
|
|
3
|
+
**/
|
|
4
|
+
|
|
5
|
+
.RCB-link {
|
|
6
|
+
display: inline;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
font-family: inherit;
|
|
9
|
+
transition: color 0.2s ease, text-decoration 0.2s ease;
|
|
10
|
+
background: none;
|
|
11
|
+
border: none;
|
|
12
|
+
padding: 0;
|
|
13
|
+
margin: 0;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
|
|
16
|
+
&-disabled {
|
|
17
|
+
cursor: not-allowed;
|
|
18
|
+
opacity: 0.6;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Text decoration variations
|
|
22
|
+
&-underline {
|
|
23
|
+
text-decoration: underline;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-none {
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-overline {
|
|
31
|
+
text-decoration: overline;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-line-through {
|
|
35
|
+
text-decoration: line-through;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&-underline-on-hover {
|
|
39
|
+
&:hover {
|
|
40
|
+
text-decoration: underline;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-external-icon {
|
|
45
|
+
margin-left: 4px;
|
|
46
|
+
font-size: 0.8em;
|
|
47
|
+
line-height: 1;
|
|
48
|
+
display: inline;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Size variations
|
|
52
|
+
&-small {
|
|
53
|
+
font-size: 12px;
|
|
54
|
+
line-height: 1.4;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&-medium {
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
line-height: 1.5;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-large {
|
|
63
|
+
font-size: 16px;
|
|
64
|
+
line-height: 1.6;
|
|
65
|
+
}
|
|
66
|
+
}
|