sccoreui 4.1.7 → 4.1.9
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/dist/App.js +2 -1
- package/dist/App.scss +20 -38
- package/dist/assets/flex.css +35 -1
- package/dist/assets/sccoreui.css +28 -2
- package/dist/components/form/form-fields/form-fields.js +1 -1
- package/dist/components/multi-select-dropdown/multi-select-dropdown.js +5 -5
- package/dist/directives/svg-icons.js +832 -648
- package/dist/types/App.d.ts +1 -1
- package/package.json +2 -1
package/dist/App.js
CHANGED
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
4
|
// import Home from './pages/home';
|
|
5
5
|
require("./App.scss");
|
|
6
|
+
// import Home from "./pages/home";
|
|
6
7
|
const App = () => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("div", {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", {}));
|
|
8
9
|
};
|
|
9
10
|
exports.default = App;
|
package/dist/App.scss
CHANGED
|
@@ -26,38 +26,35 @@
|
|
|
26
26
|
// src: url("./assets/fonts/Lato-Regular.ttf") format("truetype");
|
|
27
27
|
// }
|
|
28
28
|
|
|
29
|
-
// * {
|
|
30
|
-
// padding: 0;
|
|
31
|
-
// margin: 0;
|
|
32
|
-
// }
|
|
33
29
|
|
|
34
30
|
body {
|
|
35
31
|
font-family: 'Lato', sans-serif;
|
|
36
32
|
-webkit-font-smoothing: antialiased;
|
|
37
33
|
-moz-osx-font-smoothing: grayscale;
|
|
38
|
-
line-height:
|
|
34
|
+
line-height: 20px;
|
|
39
35
|
padding: 0;
|
|
40
36
|
margin: 0;
|
|
37
|
+
color: var(--gray-700);
|
|
41
38
|
}
|
|
42
39
|
|
|
43
40
|
code {
|
|
44
41
|
font-family: 'Lato', sans-serif;
|
|
45
42
|
}
|
|
46
43
|
|
|
47
|
-
h1 {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
44
|
+
// h1 {
|
|
45
|
+
// font-size: var(--fs-24);
|
|
46
|
+
// font-weight: var(--fw-600);
|
|
47
|
+
// }
|
|
51
48
|
|
|
52
|
-
h2 {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
49
|
+
// h2 {
|
|
50
|
+
// font-size: var(--fs-18);
|
|
51
|
+
// font-weight: var(--fw-600);
|
|
52
|
+
// }
|
|
56
53
|
|
|
57
|
-
h3 {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
54
|
+
// h3 {
|
|
55
|
+
// font-size: var(--fs-16);
|
|
56
|
+
// font-weight: var(--fw-400);
|
|
57
|
+
// }
|
|
61
58
|
|
|
62
59
|
// ============= custom progress steps =============== //
|
|
63
60
|
|
|
@@ -104,7 +101,7 @@ h3 {
|
|
|
104
101
|
|
|
105
102
|
.progress-step-item {
|
|
106
103
|
&.horizontal {
|
|
107
|
-
|
|
104
|
+
|
|
108
105
|
|
|
109
106
|
&:nth-of-type(1) {
|
|
110
107
|
transform: translateX(-50%);
|
|
@@ -168,7 +165,7 @@ h3 {
|
|
|
168
165
|
}
|
|
169
166
|
|
|
170
167
|
.sc_custom_multiselect {
|
|
171
|
-
|
|
168
|
+
|
|
172
169
|
width: max-content;
|
|
173
170
|
|
|
174
171
|
* {
|
|
@@ -306,16 +303,6 @@ h3 {
|
|
|
306
303
|
}
|
|
307
304
|
}
|
|
308
305
|
|
|
309
|
-
// .status_dropdown_item:before {
|
|
310
|
-
// content: '';
|
|
311
|
-
// width: 10px;
|
|
312
|
-
// height: 10px;
|
|
313
|
-
// position: absolute;
|
|
314
|
-
// transform: translateY(-50%);
|
|
315
|
-
// top: 50%;
|
|
316
|
-
// left: 10px;
|
|
317
|
-
// border-radius: 50px;
|
|
318
|
-
// }
|
|
319
306
|
|
|
320
307
|
.status_dropdown_item.Active::before {
|
|
321
308
|
background: #12B76A;
|
|
@@ -345,11 +332,10 @@ h3 {
|
|
|
345
332
|
.custom_date_picker_sec {
|
|
346
333
|
.custom_date_picker {
|
|
347
334
|
|
|
348
|
-
|
|
335
|
+
|
|
349
336
|
.p-inputtext {
|
|
350
337
|
padding-right: 16px;
|
|
351
338
|
width: 130px;
|
|
352
|
-
// max-width: max-content;
|
|
353
339
|
}
|
|
354
340
|
|
|
355
341
|
.p-inputtext {
|
|
@@ -372,7 +358,7 @@ h3 {
|
|
|
372
358
|
.custom_date_picker.multiple {
|
|
373
359
|
.p-inputtext {
|
|
374
360
|
width: 236px;
|
|
375
|
-
|
|
361
|
+
|
|
376
362
|
}
|
|
377
363
|
}
|
|
378
364
|
|
|
@@ -420,9 +406,7 @@ div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker table td>spa
|
|
|
420
406
|
height: 40px;
|
|
421
407
|
}
|
|
422
408
|
|
|
423
|
-
|
|
424
|
-
// height: 40px;
|
|
425
|
-
// }
|
|
409
|
+
|
|
426
410
|
|
|
427
411
|
div:has(ul.date_filter) .p-datepicker-group-container .p-datepicker-group {
|
|
428
412
|
width: 328px;
|
|
@@ -472,9 +456,7 @@ div:has(ul.date_filter) .p-datepicker-footer {
|
|
|
472
456
|
}
|
|
473
457
|
}
|
|
474
458
|
|
|
475
|
-
|
|
476
|
-
// padding: 0;
|
|
477
|
-
// }
|
|
459
|
+
|
|
478
460
|
|
|
479
461
|
.Multi_select_dropdown_panel.hidePanelHeader {
|
|
480
462
|
.p-multiselect-header {
|
package/dist/assets/flex.css
CHANGED
|
@@ -8533,18 +8533,22 @@
|
|
|
8533
8533
|
|
|
8534
8534
|
.text-sm {
|
|
8535
8535
|
font-size: 12px !important;
|
|
8536
|
+
line-height: 20px;
|
|
8536
8537
|
}
|
|
8537
8538
|
|
|
8538
8539
|
.text-base {
|
|
8539
8540
|
font-size: 14px !important;
|
|
8541
|
+
line-height: 20px;
|
|
8540
8542
|
}
|
|
8541
8543
|
|
|
8542
8544
|
.text-lg {
|
|
8543
8545
|
font-size: 16px !important;
|
|
8546
|
+
line-height: 24px;
|
|
8544
8547
|
}
|
|
8545
8548
|
|
|
8546
8549
|
.text-xl {
|
|
8547
|
-
font-size:
|
|
8550
|
+
font-size: 18px !important;
|
|
8551
|
+
line-height: 28px;
|
|
8548
8552
|
}
|
|
8549
8553
|
|
|
8550
8554
|
.text-2xl {
|
|
@@ -8575,6 +8579,36 @@
|
|
|
8575
8579
|
font-size: 48px !important;
|
|
8576
8580
|
}
|
|
8577
8581
|
|
|
8582
|
+
.display-xs {
|
|
8583
|
+
font-size: 20px;
|
|
8584
|
+
line-height: 30px;
|
|
8585
|
+
}
|
|
8586
|
+
|
|
8587
|
+
.display-sm {
|
|
8588
|
+
font-size: 24px;
|
|
8589
|
+
line-height: 32px;
|
|
8590
|
+
}
|
|
8591
|
+
|
|
8592
|
+
.display-md {
|
|
8593
|
+
font-size: 30px;
|
|
8594
|
+
line-height: 38px;
|
|
8595
|
+
}
|
|
8596
|
+
|
|
8597
|
+
.display-lg {
|
|
8598
|
+
font-size: 36px;
|
|
8599
|
+
line-height: 44px;
|
|
8600
|
+
}
|
|
8601
|
+
|
|
8602
|
+
.display-xl {
|
|
8603
|
+
font-size: 48px;
|
|
8604
|
+
line-height: 60px;
|
|
8605
|
+
}
|
|
8606
|
+
|
|
8607
|
+
.display-2xl {
|
|
8608
|
+
font-size: 60px;
|
|
8609
|
+
line-height: 72px;
|
|
8610
|
+
}
|
|
8611
|
+
|
|
8578
8612
|
@media screen and (min-width: 576px) {
|
|
8579
8613
|
.sm\:text-xs {
|
|
8580
8614
|
font-size: 10px !important;
|
package/dist/assets/sccoreui.css
CHANGED
|
@@ -55,8 +55,12 @@
|
|
|
55
55
|
box-sizing: border-box;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
body {
|
|
59
|
+
line-height: 20px;
|
|
60
|
+
}
|
|
61
|
+
|
|
58
62
|
p {
|
|
59
|
-
color: var(--
|
|
63
|
+
color: var(--gray-700);
|
|
60
64
|
}
|
|
61
65
|
h1,
|
|
62
66
|
h2,
|
|
@@ -64,7 +68,25 @@ h3,
|
|
|
64
68
|
h4,
|
|
65
69
|
h5,
|
|
66
70
|
h6 {
|
|
67
|
-
color: var(--
|
|
71
|
+
color: var(--gray-900);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
h1 {
|
|
75
|
+
font-size: 24px;
|
|
76
|
+
line-height: 32px;
|
|
77
|
+
font-weight: var(--fw-600);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
h2 {
|
|
81
|
+
font-size: 18px;
|
|
82
|
+
line-height: 28px;
|
|
83
|
+
font-weight: var(--fw-600);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
h3 {
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
line-height: 24px;
|
|
89
|
+
font-weight: var(--fw-600);
|
|
68
90
|
}
|
|
69
91
|
|
|
70
92
|
label {
|
|
@@ -81,6 +103,10 @@ a {
|
|
|
81
103
|
text-decoration: none;
|
|
82
104
|
}
|
|
83
105
|
|
|
106
|
+
.help-text {
|
|
107
|
+
color: var(--gray-500);
|
|
108
|
+
}
|
|
109
|
+
|
|
84
110
|
.p-component-overlay {
|
|
85
111
|
background-color: rgba(0, 0, 0, 0.4);
|
|
86
112
|
transition-duration: 0.2s;
|
|
@@ -16,7 +16,7 @@ const InputTextField = (props) => {
|
|
|
16
16
|
};
|
|
17
17
|
const InputNumberField = (props) => {
|
|
18
18
|
const { errors, touched, name, length, label, placeholder, optional, setFieldValue, min, max, maxLength, className, validate, disabled } = props;
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column" }, { children: [optional && (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "font-medium text-base mb-1 w-full flex justify-content-between", htmlFor: name }, { children: [label, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base font-medium font-italic text-gray-600" }, { children: "Optional" }))] })), !optional && (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "font-medium text-base mb-1", htmlFor: name }, { children: label })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ min: min, max: max, disabled: disabled, pt: { input: { root: { autoComplete: 'off' } } }, maxLength: maxLength, maxFractionDigits:
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex flex-column" }, { children: [optional && (0, jsx_runtime_1.jsxs)("label", Object.assign({ className: "font-medium text-base mb-1 w-full flex justify-content-between", htmlFor: name }, { children: [label, (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "text-base font-medium font-italic text-gray-600" }, { children: "Optional" }))] })), !optional && (0, jsx_runtime_1.jsx)("label", Object.assign({ className: "font-medium text-base mb-1", htmlFor: name }, { children: label })), (0, jsx_runtime_1.jsx)(formik_1.Field, Object.assign({ name: name, errors: errors, touched: touched, validate: validate }, { children: ({ field }) => ((0, jsx_runtime_1.jsx)(inputnumber_1.InputNumber, Object.assign({ min: min, max: max, disabled: disabled, pt: { input: { root: { autoComplete: 'off' } } }, maxLength: maxLength, maxFractionDigits: 0, placeholder: placeholder }, field, { onChange: (e) => setFieldValue(name, e.value !== null ? e.value : min), className: `full_form_field ${className} ${errors[name] && touched[name] ? 'p-invalid' : ''} ${length === 'full' ? '' : 'form_field'}`, id: name }))) })), errors[name] && touched[name] ? ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm', style: { height: '16px' } }, { children: (0, jsx_runtime_1.jsx)("span", { children: errors[name] }) }))) : (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'errorField flex align-items-center text-sm', style: { height: '16px' } }, { children: (0, jsx_runtime_1.jsx)("span", { children: "\u00A0" }) }))] })));
|
|
20
20
|
};
|
|
21
21
|
const InputCurrencyField = (props) => {
|
|
22
22
|
const { errors, touched, name, length, label, placeholder, optional, setFieldValue, min, max, maxLength, className, validate, disabled } = props;
|
|
@@ -46,17 +46,17 @@ const MultiSelectDropDown = (props) => {
|
|
|
46
46
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `status_dropdown_item pl-6 ${option.name.replaceAll(' ', '').toLowerCase()}` }, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'status_dot', style: { background: option.color } }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'otption_name mr-8' }, { children: option.name }))] })) }));
|
|
47
47
|
};
|
|
48
48
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [props.dropdownType === 'withIcon' &&
|
|
49
|
-
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
|
|
49
|
+
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${props.className} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
|
|
50
50
|
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [isMoreThanOne && (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "selected_moreThan_one absolute z-5" }, { children: [" +", items.length - props.maxSelectedLabels] })), (props.clear && items.length > 1) &&
|
|
51
51
|
clearIcon()] }))] })), props.dropdownType === 'default' &&
|
|
52
|
-
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${props.icon !== undefined ? 'left_icon' : 'no_icon'} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [props.icon !== undefined &&
|
|
53
|
-
(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
|
|
52
|
+
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${props.className} ${props.icon !== undefined ? 'left_icon' : 'no_icon'} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [props.icon !== undefined &&
|
|
53
|
+
(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
|
|
54
54
|
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [isMoreThanOne && (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "selected_moreThan_one absolute z-5" }, { children: [" +", items.length - props.maxSelectedLabels] })), props.clear &&
|
|
55
55
|
clearIcon()] }))] })), props.dropdownType === 'status' &&
|
|
56
|
-
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative status_dropdown ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''} ${items.length > 3 ? 'moreThanThreeItems' : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", itemTemplate: (option) => itemTemplate(option), filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
|
|
56
|
+
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative status_dropdown ${props.className} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''} ${items.length > 3 ? 'moreThanThreeItems' : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", itemTemplate: (option) => itemTemplate(option), filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
|
|
57
57
|
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [isMoreThanOne && (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "selected_moreThan_one absolute z-5" }, { children: [" +", items.length - props.maxSelectedLabels] })), props.clear &&
|
|
58
58
|
clearIcon()] }))] })), props.dropdownType === '' &&
|
|
59
|
-
(0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { value: items, panelClassName: `Multi_select_dropdown_panel ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` })] }));
|
|
59
|
+
(0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { value: items, panelClassName: `Multi_select_dropdown_panel ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` })] }));
|
|
60
60
|
};
|
|
61
61
|
exports.MultiSelectDropDown = MultiSelectDropDown;
|
|
62
62
|
exports.default = exports.MultiSelectDropDown;
|