@pelcro/react-pelcro-js 4.0.0-alpha.94 → 4.0.0-alpha.95

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/index.cjs.js CHANGED
@@ -21729,6 +21729,8 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
21729
21729
  });
21730
21730
  var StateManagedSelect$1 = StateManagedSelect;
21731
21731
 
21732
+ // Custom option component to show images and labels
21733
+
21732
21734
  const customSingleValue = ({
21733
21735
  data
21734
21736
  }) => /*#__PURE__*/React__default['default'].createElement("div", {
@@ -21752,11 +21754,7 @@ const customOption = props => {
21752
21754
  return /*#__PURE__*/React__default['default'].createElement("div", Object.assign({
21753
21755
  ref: innerRef
21754
21756
  }, innerProps, {
21755
- className: "custom-option",
21756
- style: {
21757
- display: "flex",
21758
- alignItems: "center"
21759
- }
21757
+ className: "custom-option"
21760
21758
  }), /*#__PURE__*/React__default['default'].createElement("img", {
21761
21759
  src: data.image,
21762
21760
  alt: data.label,
package/dist/index.esm.js CHANGED
@@ -21699,6 +21699,8 @@ var StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {
21699
21699
  });
21700
21700
  var StateManagedSelect$1 = StateManagedSelect;
21701
21701
 
21702
+ // Custom option component to show images and labels
21703
+
21702
21704
  const customSingleValue = ({
21703
21705
  data
21704
21706
  }) => /*#__PURE__*/React__default.createElement("div", {
@@ -21722,11 +21724,7 @@ const customOption = props => {
21722
21724
  return /*#__PURE__*/React__default.createElement("div", Object.assign({
21723
21725
  ref: innerRef
21724
21726
  }, innerProps, {
21725
- className: "custom-option",
21726
- style: {
21727
- display: "flex",
21728
- alignItems: "center"
21729
- }
21727
+ className: "custom-option"
21730
21728
  }), /*#__PURE__*/React__default.createElement("img", {
21731
21729
  src: data.image,
21732
21730
  alt: data.label,
package/dist/pelcro.css CHANGED
@@ -1943,6 +1943,22 @@ Add the correct display in Chrome and Safari.
1943
1943
  display: flex !important;
1944
1944
  }
1945
1945
 
1946
+ .custom-option {
1947
+ display: flex;
1948
+ align-items: center;
1949
+ cursor: pointer; /* Show pointer cursor on hover */
1950
+ padding: 10px; /* Add padding for better hover area */
1951
+ }
1952
+
1953
+ .custom-option:hover {
1954
+ background-color: #f0f0f0; /* Highlight background on hover */
1955
+ }
1956
+
1957
+ .custom-single-value {
1958
+ display: flex;
1959
+ align-items: center;
1960
+ }
1961
+
1946
1962
  /*
1947
1963
  styling is copied from react-easy-crop/react-easy-crop.css
1948
1964
  in order to scope selectors under pelcro-root
@@ -4087,6 +4103,45 @@ apple-pay-button {
4087
4103
 
4088
4104
  /* purgecss start ignore */
4089
4105
 
4106
+ .custom-single-value {
4107
+ display: flex;
4108
+ align-items: center;
4109
+ }
4110
+
4111
+ .custom-option {
4112
+ display: flex;
4113
+ align-items: center;
4114
+ padding: 5px;
4115
+ }
4116
+
4117
+ .custom-option img {
4118
+ margin-right: 10px;
4119
+ }
4120
+
4121
+ .css-hlgwow {
4122
+ display: flex !important;
4123
+ }
4124
+
4125
+ .custom-option {
4126
+ display: flex;
4127
+ align-items: center;
4128
+ cursor: pointer; /* Show pointer cursor on hover */
4129
+ padding: 10px; /* Add padding for better hover area */
4130
+ }
4131
+
4132
+ .custom-option:hover {
4133
+ background-color: #f0f0f0; /* Highlight background on hover */
4134
+ }
4135
+
4136
+ .custom-single-value {
4137
+ display: flex;
4138
+ align-items: center;
4139
+ }
4140
+
4141
+ /* purgecss end ignore */
4142
+
4143
+ /* purgecss start ignore */
4144
+
4090
4145
  .toggle-switch {
4091
4146
  position: relative;
4092
4147
  display: inline-block;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "4.0.0-alpha.94",
4
+ "version": "4.0.0-alpha.95",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",