sccoreui 5.2.0 → 5.2.1

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.scss CHANGED
@@ -632,7 +632,7 @@ button#formatOLOptions-1.fr-active::before {
632
632
  }
633
633
 
634
634
 
635
- .fr-buttons.fr-tabs{
635
+ .fr-buttons.fr-tabs {
636
636
  display: none;
637
637
  }
638
638
 
@@ -641,17 +641,19 @@ button#formatOLOptions-1.fr-active::before {
641
641
  }
642
642
 
643
643
  .fr-command.fr-btn+.fr-dropdown-menu .fr-dropdown-wrapper .fr-dropdown-content ul.fr-dropdown-list li a.fr-active {
644
- background: #f9fafb !important;
644
+ background: #f9fafb !important;
645
645
  }
646
646
 
647
- button[data-cmd="fontFamily"]:focus{
647
+ button[data-cmd="fontFamily"]:focus {
648
648
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 2px var(--primary-100);
649
649
  border: 1px solid var(--primary-300) !important;
650
650
  background: none !important;
651
651
  }
652
+
652
653
  .text-editor {
653
654
  border: 1px solid #d0d5dd;
654
- border-radius: 10px;
655
+ border-radius: 10px;
656
+
655
657
  * {
656
658
  border: none !important;
657
659
  }
@@ -668,8 +670,9 @@ button[data-cmd="fontFamily"]:focus{
668
670
  }
669
671
 
670
672
 
671
- button[data-cmd='fontFamily']{
673
+ button[data-cmd='fontFamily'] {
672
674
  border: 1px solid var(--gray-300) !important;
675
+
673
676
  &::before {
674
677
  content: '';
675
678
  border: 1.8px solid #0b0c12;
@@ -709,6 +712,7 @@ button[aria-expanded="true"] {
709
712
  padding-left: 0 !important;
710
713
  padding-right: 0 !important;
711
714
  }
715
+
712
716
  .p-tree-toggler {
713
717
  display: none;
714
718
  }
@@ -717,7 +721,7 @@ button[aria-expanded="true"] {
717
721
  background: var(--Gray-100, #F2F4F7) !important;
718
722
  }
719
723
 
720
- .p-treenode-content:hover{
724
+ .p-treenode-content:hover {
721
725
  background: var(--Primary-25, #F5F6FD) !important;
722
726
  }
723
727
 
@@ -747,6 +751,7 @@ button[aria-expanded="true"] {
747
751
  }
748
752
  }
749
753
  }
754
+
750
755
  /// Custon treeDropdownSelect style end /////////////////
751
756
 
752
757
  /////// Custom list_box_dropdown ///////////
@@ -795,6 +800,7 @@ button[aria-expanded="true"] {
795
800
  display: inline-block;
796
801
  align-items: center;
797
802
  list-style: none;
803
+
798
804
  li {
799
805
  float: left;
800
806
  height: 24px;
@@ -804,15 +810,41 @@ button[aria-expanded="true"] {
804
810
  /////// Custom list_box_dropdown ///////////
805
811
 
806
812
  //ScMulti Select//
807
- .sc_multiSelect .p-multiselect-clear-icon {
808
- right: 42px !important;
813
+ .sc_multiSelect {
814
+ height: 40px !important;
815
+
816
+ .p-multiselect-clear-icon {
817
+ right: 42px !important;
818
+ }
819
+
820
+ .p-multiselect-label {
821
+ line-height: 38px !important;
822
+ }
809
823
  }
810
824
 
811
- .sc_multiSelect.hideChipremoveIcon {
825
+ .sc_multiSelect.hideChipremoveIcon {
812
826
  .p-multiselect-token {
813
827
  svg {
814
828
  display: none;
815
829
  }
816
830
  }
817
831
  }
832
+
833
+ .sc_multiSelect_panel {
834
+ .p-multiselect-items {
835
+ padding: 4px !important;
836
+
837
+ .p-highlight::after {
838
+ content: '';
839
+ width: 12px;
840
+ height: 6px;
841
+ border: solid #162578;
842
+ border-width: 1.9px;
843
+ border-top: 0;
844
+ border-right: 0;
845
+ transform: rotate(-45deg);
846
+ }
847
+ }
848
+ }
849
+
818
850
  //////////////////////////////////////////////
@@ -4,7 +4,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
4
4
  const sccoreui_1 = require("sccoreui");
5
5
  const ScMultiSelect = (props) => {
6
6
  var _a, _b;
7
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "w-full relative" }, { children: [(0, jsx_runtime_1.jsx)(sccoreui_1.MultiSelect, { onShow: () => props === null || props === void 0 ? void 0 : props.onShow, onHide: () => props === null || props === void 0 ? void 0 : props.onHide, dropdownIcon: props === null || props === void 0 ? void 0 : props.dropdownIcon, showClear: props === null || props === void 0 ? void 0 : props.showClear, display: props === null || props === void 0 ? void 0 : props.display, value: props === null || props === void 0 ? void 0 : props.value, onChange: (e) => props === null || props === void 0 ? void 0 : props.onChange(e), options: props === null || props === void 0 ? void 0 : props.options, optionLabel: props === null || props === void 0 ? void 0 : props.optionLabel, placeholder: props === null || props === void 0 ? void 0 : props.placeholder, className: (props === null || props === void 0 ? void 0 : props.className) + ` ${(props === null || props === void 0 ? void 0 : props.removeChipIcon) ? 'hideChipremoveIcon' : ''} sc_multiSelect`, id: props === null || props === void 0 ? void 0 : props.id }), (props === null || props === void 0 ? void 0 : props.showSelectedCount) &&
7
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "w-full relative" }, { children: [(0, jsx_runtime_1.jsx)(sccoreui_1.MultiSelect, { panelClassName: "sc_multiSelect_panel", onShow: () => props === null || props === void 0 ? void 0 : props.onShow, onHide: () => props === null || props === void 0 ? void 0 : props.onHide, dropdownIcon: props === null || props === void 0 ? void 0 : props.dropdownIcon, showClear: props === null || props === void 0 ? void 0 : props.showClear, display: props === null || props === void 0 ? void 0 : props.display, value: props === null || props === void 0 ? void 0 : props.value, onChange: (e) => props === null || props === void 0 ? void 0 : props.onChange(e), options: props === null || props === void 0 ? void 0 : props.options, optionLabel: props === null || props === void 0 ? void 0 : props.optionLabel, placeholder: props === null || props === void 0 ? void 0 : props.placeholder, className: (props === null || props === void 0 ? void 0 : props.className) + ` ${(props === null || props === void 0 ? void 0 : props.removeChipIcon) ? 'hideChipremoveIcon' : ''} sc_multiSelect`, id: props === null || props === void 0 ? void 0 : props.id }), (props === null || props === void 0 ? void 0 : props.showSelectedCount) &&
8
8
  (0, jsx_runtime_1.jsx)("div", Object.assign({ className: "absolute top-0 h-full text-center flex align-items-center w-2rem justify-content-center", style: { right: `${(props === null || props === void 0 ? void 0 : props.showClear) ? '68px' : '40px'}` } }, { children: (0, jsx_runtime_1.jsx)("span", Object.assign({ className: "px-2 bg-primary-50 border-round-sm text-base" }, { children: (((_a = props === null || props === void 0 ? void 0 : props.value) === null || _a === void 0 ? void 0 : _a.length) > 0) && `+${(_b = props === null || props === void 0 ? void 0 : props.value) === null || _b === void 0 ? void 0 : _b.length}` })) }))] })) }));
9
9
  };
10
10
  exports.default = ScMultiSelect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",