@hexure/ui 1.14.0 → 1.14.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.
@@ -5,6 +5,7 @@ export interface OptionProps {
5
5
  label?: string;
6
6
  value: string | number;
7
7
  color?: string;
8
+ disabled?: boolean;
8
9
  }
9
10
  export interface OptionGroupProps {
10
11
  options: OptionProps[];
package/dist/esm/index.js CHANGED
@@ -3829,9 +3829,9 @@ const Select = (_a) => {
3829
3829
  React.createElement(Trigger$1, Object.assign({ "data-itemid": `${baseId}-trigger`, disabled: readOnly, id: `${baseId}-trigger`, name: baseId, onChange: handleChange, placeholder: placeholder, ref: innerRef, tabIndex: readOnly ? -1 : tabIndex, value: value }, accessibleProps),
3830
3830
  placeholder && !value && (React.createElement("option", { "data-itemid": `${baseId}-placeholder`, disabled: true, value: '' }, placeholder)),
3831
3831
  filteredOptionGroups &&
3832
- filteredOptionGroups.map((group, i) => (React.createElement("optgroup", { "data-itemid": `${baseId}-optgroup-${i}`, key: i, label: group.label || `Group ${i}` }, group.options.map((option, j) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}-${j}`, key: j, style: { color: option.color }, value: option.value }, option.label || option.value)))))),
3832
+ filteredOptionGroups.map((group, i) => (React.createElement("optgroup", { "data-itemid": `${baseId}-optgroup-${i}`, key: i, label: group.label || `Group ${i}` }, group.options.map((option, j) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}-${j}`, disabled: option.disabled, key: j, style: { color: option.color }, value: option.value }, option.label || option.value)))))),
3833
3833
  filteredOptions &&
3834
- filteredOptions.map((option, i) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}`, key: i, style: { color: option.color }, value: option.value }, option.label || option.value)))),
3834
+ filteredOptions.map((option, i) => (React.createElement("option", { "data-itemid": `${baseId}-option-${i}`, disabled: option.disabled, key: i, style: { color: option.color }, value: option.value }, option.label || option.value)))),
3835
3835
  React.createElement(IconWrapper$2, { color: Colors.BLACK.Hex, "data-itemid": `${baseId}-icon`, path: mdiChevronDown, size: '22px' })));
3836
3836
  };
3837
3837
 
@@ -5153,6 +5153,10 @@ const StyledInput = styled.input `
5153
5153
  box-sizing: border-box;
5154
5154
  display: block;
5155
5155
  width: 100%;
5156
+
5157
+ &::-webkit-search-cancel-button {
5158
+ cursor: pointer;
5159
+ }
5156
5160
  `;
5157
5161
  const StyledTextArea = styled.textarea `
5158
5162
  border: none !important;
@@ -5178,6 +5182,7 @@ const StyledTextArea = styled.textarea `
5178
5182
  box-sizing: border-box;
5179
5183
  display: block;
5180
5184
  width: 100%;
5185
+ resize: none;
5181
5186
  ${({ $readOnly }) => $readOnly &&
5182
5187
  `
5183
5188
  background-color: #f0f0f0;