onekijs-ui 0.20.4 → 0.20.6

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.
@@ -80,11 +80,11 @@ export declare const getIconDivProps: (props: IconProps) => {
80
80
  results?: number | undefined;
81
81
  security?: string | undefined;
82
82
  unselectable?: "on" | "off" | undefined;
83
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
83
+ inputMode?: "search" | "text" | "none" | "email" | "tel" | "url" | "numeric" | "decimal" | undefined;
84
84
  is?: string | undefined;
85
85
  'aria-activedescendant'?: string | undefined;
86
86
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
87
- 'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
87
+ 'aria-autocomplete'?: "none" | "inline" | "both" | "list" | undefined;
88
88
  'aria-braillelabel'?: string | undefined;
89
89
  'aria-brailleroledescription'?: string | undefined;
90
90
  'aria-busy'?: (boolean | "true" | "false") | undefined;
@@ -94,7 +94,7 @@ export declare const getIconDivProps: (props: IconProps) => {
94
94
  'aria-colindextext'?: string | undefined;
95
95
  'aria-colspan'?: number | undefined;
96
96
  'aria-controls'?: string | undefined;
97
- 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "date" | "page" | "location" | undefined;
97
+ 'aria-current'?: boolean | "time" | "step" | "date" | "true" | "false" | "page" | "location" | undefined;
98
98
  'aria-describedby'?: string | undefined;
99
99
  'aria-description'?: string | undefined;
100
100
  'aria-details'?: string | undefined;
@@ -104,7 +104,7 @@ export declare const getIconDivProps: (props: IconProps) => {
104
104
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
105
105
  'aria-flowto'?: string | undefined;
106
106
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
107
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "true" | "false" | "listbox" | "tree" | undefined;
107
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "true" | "false" | "tree" | undefined;
108
108
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
109
109
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
110
110
  'aria-keyshortcuts'?: string | undefined;
package/dist/index.js CHANGED
@@ -6641,9 +6641,9 @@ const SelectIconComponent = ({ onClick, open, loading }) => {
6641
6641
  };
6642
6642
 
6643
6643
  const SelectTokenComponent = ({ token, onRemove, index, }) => {
6644
- return (React.createElement("div", { className: "o-select-token" },
6644
+ return (React.createElement("div", { className: `o-select-token${token.disabled ? ' o-select-token-disabled' : ''}` },
6645
6645
  React.createElement("div", { className: "o-select-token-text", key: "o-select-token-text" }, token.text),
6646
- React.createElement("div", { className: "o-select-token-remove", key: "o-select-token-remove", onClick: (e) => {
6646
+ !token.disabled && React.createElement("div", { className: "o-select-token-remove", key: "o-select-token-remove", onClick: (e) => {
6647
6647
  onRemove(token, index);
6648
6648
  e.stopPropagation();
6649
6649
  } }, "\u2716")));