sccoreui 4.8.0 → 4.8.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/dist/assets/sccoreui.css
CHANGED
|
@@ -2341,7 +2341,7 @@ a {
|
|
|
2341
2341
|
/* ##################################### Basic Button CSS changes Start #################################################### */
|
|
2342
2342
|
|
|
2343
2343
|
/* Default Button Classes */
|
|
2344
|
-
.p-button {
|
|
2344
|
+
.p-button, .p-button-sm {
|
|
2345
2345
|
color: #ffffff;
|
|
2346
2346
|
background: var(--primary-500);
|
|
2347
2347
|
line-height: 20px;
|
|
@@ -5,7 +5,7 @@ const listbox_1 = require("primereact/listbox");
|
|
|
5
5
|
const menu_1 = require("primereact/menu");
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const sccoreui_1 = require("sccoreui");
|
|
8
|
-
const ListBoxDropdown = ({ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link }) => {
|
|
8
|
+
const ListBoxDropdown = ({ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className }) => {
|
|
9
9
|
const [selectedCities, setSelectedCities] = (0, react_1.useState)();
|
|
10
10
|
const optionsMenuRef = (0, react_1.useRef)();
|
|
11
11
|
const onSelectOption = (e) => {
|
|
@@ -15,13 +15,13 @@ const ListBoxDropdown = ({ onChange, footeTemplate, headerTemplate, labelIcon, l
|
|
|
15
15
|
(0, react_1.useEffect)(() => {
|
|
16
16
|
setSelectedCities(values);
|
|
17
17
|
}, [values]);
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu, { popup: true, className: menuClassName ? menuClassName : '', ref: optionsMenuRef, model: [{
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: className }, { children: [(0, jsx_runtime_1.jsx)(menu_1.Menu, { popup: true, className: menuClassName ? menuClassName : '', ref: optionsMenuRef, model: [{
|
|
19
19
|
template: () => (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: listBoxParentClassName ? listBoxParentClassName + ' list_box_dropdown' : 'list_box_dropdown' }, { children: [headerTemplate &&
|
|
20
20
|
(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: headerTemplate() }), (0, jsx_runtime_1.jsx)(listbox_1.ListBox, { itemTemplate: (option) => (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: optionTemplate ?
|
|
21
21
|
optionTemplate(option)
|
|
22
22
|
:
|
|
23
23
|
(0, jsx_runtime_1.jsx)("span", { children: option.name }) }), listClassName: listClassName ? listClassName : '', filter: filter ? true : false, multiple: multiple ? true : false, value: selectedCities, onChange: (e) => onSelectOption(e), options: listItems, optionLabel: optionLabel, className: listBoxclassName ? listBoxclassName : '', filterPlaceholder: filterPlaceholder ? filterPlaceholder : '' }), footeTemplate &&
|
|
24
24
|
(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: footeTemplate() })] }))
|
|
25
|
-
}] }), (0, jsx_runtime_1.jsx)(sccoreui_1.Button, { type: "button", className: "focus:shadow-none", link: link ? true : false, icon: labelIcon ? labelIcon : '', size: labelIconSize ? labelIconSize : '', iconPos: labelIconPos ? labelIconPos : '', label: label, onClick: (event) => optionsMenuRef.current.toggle(event) })] }) }));
|
|
25
|
+
}] }), (0, jsx_runtime_1.jsx)(sccoreui_1.Button, { type: "button", className: "focus:shadow-none", link: link ? true : false, icon: labelIcon ? labelIcon : '', size: labelIconSize ? labelIconSize : '', iconPos: labelIconPos ? labelIconPos : '', label: label, onClick: (event) => optionsMenuRef.current.toggle(event) })] })) }));
|
|
26
26
|
};
|
|
27
27
|
exports.default = ListBoxDropdown;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ListBoxDropdownTypes } from "../types/type";
|
|
2
|
-
declare const ListBoxDropdown: ({ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link }: ListBoxDropdownTypes) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const ListBoxDropdown: ({ onChange, footeTemplate, headerTemplate, labelIcon, labelIconPos, label, labelIconSize, listItems, filter, multiple, filterPlaceholder, optionLabel, listClassName, menuClassName, listBoxParentClassName, listBoxclassName, optionTemplate, values, link, className }: ListBoxDropdownTypes) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ListBoxDropdown;
|