@akinon/ui-select 1.4.14 → 1.4.15-260825-0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,GAAI,wBAAwB,WAAW,sBAkHzD,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,GAAI,wBAAwB,WAAW,sBAsHzD,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -101,6 +101,9 @@ const Select = (_a) => {
101
101
  }
102
102
  },
103
103
  [`${dropdownPrefixClsWithHash}`]: {
104
+ [`.${selectPrefixCls}-empty, .${getPrefixCls()}-empty-description`]: {
105
+ color: selectToken.selectItemColor
106
+ },
104
107
  [`.${selectPrefixCls}-item`]: {
105
108
  color: selectToken.selectItemColor,
106
109
  '&-option:nth-child(odd):not(:hover):not(&-option-selected)': {
@@ -111,6 +111,17 @@ export interface SelectProps<
111
111
  */
112
112
  popupMatchSelectWidth?: boolean | number;
113
113
 
114
+ /**
115
+ * Controls the popup open state. Left uncontrolled the popup opens on focus,
116
+ * which is the default behaviour.
117
+ *
118
+ * Note for `mode: 'tags'`: pinning this to `false` also disables tag entry,
119
+ * because rc-select commits the Enter through the open list. Deriving it from
120
+ * the search value (`open={searchValue.length > 0}`) keeps entry working
121
+ * while hiding the panel that has nothing to list.
122
+ */
123
+ open?: boolean;
124
+
114
125
  /**
115
126
  * Callback triggered when an option is selected.
116
127
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,GAAI,wBAAwB,WAAW,sBAkHzD,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,MAAM,GAAI,wBAAwB,WAAW,sBAsHzD,CAAC;AAEF,mBAAmB,SAAS,CAAC"}
package/dist/esm/index.js CHANGED
@@ -98,6 +98,9 @@ export const Select = (_a) => {
98
98
  }
99
99
  },
100
100
  [`${dropdownPrefixClsWithHash}`]: {
101
+ [`.${selectPrefixCls}-empty, .${getPrefixCls()}-empty-description`]: {
102
+ color: selectToken.selectItemColor
103
+ },
101
104
  [`.${selectPrefixCls}-item`]: {
102
105
  color: selectToken.selectItemColor,
103
106
  '&-option:nth-child(odd):not(:hover):not(&-option-selected)': {
@@ -111,6 +111,17 @@ export interface SelectProps<
111
111
  */
112
112
  popupMatchSelectWidth?: boolean | number;
113
113
 
114
+ /**
115
+ * Controls the popup open state. Left uncontrolled the popup opens on focus,
116
+ * which is the default behaviour.
117
+ *
118
+ * Note for `mode: 'tags'`: pinning this to `false` also disables tag entry,
119
+ * because rc-select commits the Enter through the open list. Deriving it from
120
+ * the search value (`open={searchValue.length > 0}`) keeps entry working
121
+ * while hiding the panel that has nothing to list.
122
+ */
123
+ open?: boolean;
124
+
114
125
  /**
115
126
  * Callback triggered when an option is selected.
116
127
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/ui-select",
3
- "version": "1.4.14",
3
+ "version": "1.4.15-260825-0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",
@@ -11,8 +11,8 @@
11
11
  "dependencies": {
12
12
  "@ant-design/cssinjs": "^1.24.0",
13
13
  "antd": "^5.27.0",
14
- "@akinon/ui-theme": "1.3.1",
15
- "@akinon/icons": "1.4.0"
14
+ "@akinon/icons": "1.4.0",
15
+ "@akinon/ui-theme": "1.3.1"
16
16
  },
17
17
  "devDependencies": {
18
18
  "clean-package": "2.2.0",