@invoicebox/ui 0.1.0-alpha.264 → 0.1.0-alpha.265

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.
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
2
2
  type TOption<TEntity> = {
3
3
  value: string;
4
4
  entity: TEntity;
5
+ isDisabled?: boolean;
5
6
  };
6
7
  export type TProps<TEntity> = {
7
8
  isOpen: boolean;
@@ -55,6 +55,7 @@ var EntityAutocompleteOptionsDrawer = exports.EntityAutocompleteOptionsDrawer =
55
55
  key: "".concat(option.value).concat(index),
56
56
  tabIndex: -1,
57
57
  type: "button",
58
+ disabled: option.isDisabled,
58
59
  onClick: handleSelect,
59
60
  "data-index": JSON.stringify(index)
60
61
  }, renderOption(option));
@@ -72,7 +72,8 @@ var commonArgs = {
72
72
  entity: {
73
73
  id: '2',
74
74
  name: 'Name two'
75
- }
75
+ },
76
+ isDisabled: true
76
77
  }, {
77
78
  value: '3',
78
79
  entity: {
@@ -18,7 +18,7 @@ var InputWrapper = exports.InputWrapper = _styledComponents["default"].div.withC
18
18
  var OptionWrapper = exports.OptionWrapper = _styledComponents["default"].button.withConfig({
19
19
  displayName: "styles__OptionWrapper",
20
20
  componentId: "sc-r0dl76-2"
21
- })(["width:100%;background:transparent;border:none;cursor:pointer;outline:none;color:inherit;"]);
21
+ })(["width:100%;background:transparent;border:none;cursor:pointer;outline:none;color:inherit;&:disabled{opacity:0.7;cursor:not-allowed;}"]);
22
22
  var ContentWrapper = exports.ContentWrapper = _styledComponents["default"].div.withConfig({
23
23
  displayName: "styles__ContentWrapper",
24
24
  componentId: "sc-r0dl76-3"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.264",
3
+ "version": "0.1.0-alpha.265",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {