naive-ui 2.25.1 → 2.25.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.
Files changed (228) hide show
  1. package/es/_internal/select-menu/src/SelectMenu.d.ts +6 -1
  2. package/es/_internal/select-menu/src/SelectMenu.js +17 -8
  3. package/es/_internal/selection/src/Selection.d.ts +31 -26
  4. package/es/_internal/selection/src/Selection.js +78 -80
  5. package/es/_internal/selection/styles/dark.js +3 -3
  6. package/es/_internal/selection/styles/light.d.ts +6 -6
  7. package/es/_internal/selection/styles/light.js +3 -3
  8. package/es/_mixins/index.d.ts +1 -1
  9. package/es/_mixins/index.js +1 -1
  10. package/es/_mixins/use-css-vars-class.d.ts +9 -2
  11. package/es/_mixins/use-css-vars-class.js +29 -13
  12. package/es/_mixins/use-form-item.d.ts +1 -1
  13. package/es/_utils/css/color-to-class.d.ts +1 -0
  14. package/es/_utils/css/color-to-class.js +3 -0
  15. package/es/_utils/css/format-length.d.ts +2 -2
  16. package/es/_utils/css/format-length.js +1 -2
  17. package/es/_utils/css/index.d.ts +2 -1
  18. package/es/_utils/css/index.js +2 -1
  19. package/es/_utils/index.d.ts +1 -1
  20. package/es/_utils/index.js +1 -1
  21. package/es/_utils/vue/resolve-slot.js +0 -1
  22. package/es/alert/src/Alert.d.ts +4 -4
  23. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  24. package/es/badge/src/Badge.d.ts +4 -4
  25. package/es/button/src/Button.d.ts +3 -2
  26. package/es/button/src/Button.js +13 -24
  27. package/es/button/styles/index.d.ts +1 -1
  28. package/es/button/styles/index.js +1 -1
  29. package/es/button/styles/rtl.d.ts +2 -5
  30. package/es/button/styles/rtl.js +1 -1
  31. package/es/card/src/Card.d.ts +3 -1
  32. package/es/card/src/Card.js +41 -38
  33. package/es/card/styles/index.d.ts +1 -1
  34. package/es/card/styles/index.js +1 -1
  35. package/es/card/styles/rtl.d.ts +2 -5
  36. package/es/card/styles/rtl.js +1 -1
  37. package/es/cascader/src/Cascader.d.ts +30 -30
  38. package/es/cascader/src/CascaderMenu.d.ts +3 -3
  39. package/es/cascader/src/CascaderOption.d.ts +3 -3
  40. package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
  41. package/es/cascader/src/CascaderSubmenu.d.ts +3 -3
  42. package/es/cascader/styles/light.d.ts +3 -3
  43. package/es/checkbox/src/styles/index.cssr.js +12 -12
  44. package/es/data-table/src/DataTable.d.ts +34 -34
  45. package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
  46. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
  47. package/es/data-table/src/TableParts/Body.d.ts +6 -6
  48. package/es/data-table/src/TableParts/Cell.d.ts +12 -12
  49. package/es/data-table/src/TableParts/Header.d.ts +6 -6
  50. package/es/data-table/styles/light.d.ts +3 -3
  51. package/es/descriptions/src/Descriptions.d.ts +1 -1
  52. package/es/dialog/src/Dialog.d.ts +4 -4
  53. package/es/dialog/src/DialogEnvironment.d.ts +5 -5
  54. package/es/dialog/src/DialogProvider.d.ts +2 -2
  55. package/es/dialog/src/dialogProps.d.ts +2 -2
  56. package/es/dynamic-tags/src/DynamicTags.d.ts +4 -4
  57. package/es/form/src/FormItem.d.ts +4 -4
  58. package/es/form/src/FormItemCol.d.ts +3 -3
  59. package/es/form/src/FormItemGridItem.d.ts +5 -5
  60. package/es/form/src/FormItemRow.d.ts +3 -3
  61. package/es/form/src/utils.d.ts +1 -1
  62. package/es/gradient-text/src/GradientText.d.ts +5 -5
  63. package/es/icon-wrapper/src/IconWrapper.js +7 -5
  64. package/es/image/src/Image.d.ts +1 -1
  65. package/es/input/src/Input.d.ts +1 -1
  66. package/es/input-number/src/InputNumber.d.ts +1 -1
  67. package/es/locales/common/eo.d.ts +109 -0
  68. package/es/locales/common/eo.js +109 -0
  69. package/es/locales/common/plPL.d.ts +3 -0
  70. package/es/locales/common/plPL.js +109 -0
  71. package/es/locales/date/eo.d.ts +3 -0
  72. package/es/locales/date/eo.js +6 -0
  73. package/es/locales/date/plPL.d.ts +3 -0
  74. package/es/locales/date/plPL.js +6 -0
  75. package/es/locales/index.d.ts +4 -0
  76. package/es/locales/index.js +4 -0
  77. package/es/mention/src/Mention.d.ts +1 -1
  78. package/es/menu/src/Menu.d.ts +1 -1
  79. package/es/modal/src/BodyWrapper.d.ts +6 -6
  80. package/es/modal/src/Modal.d.ts +8 -8
  81. package/es/modal/src/presetProps.d.ts +2 -2
  82. package/es/notification/src/Notification.d.ts +4 -4
  83. package/es/notification/src/NotificationEnvironment.d.ts +4 -4
  84. package/es/notification/src/NotificationProvider.d.ts +1 -1
  85. package/es/pagination/src/Pagination.d.ts +33 -33
  86. package/es/pagination/styles/light.d.ts +3 -3
  87. package/es/progress/src/Circle.d.ts +19 -3
  88. package/es/progress/src/Circle.js +41 -22
  89. package/es/progress/src/Progress.d.ts +14 -5
  90. package/es/progress/src/Progress.js +43 -29
  91. package/es/progress/src/styles/index.cssr.js +1 -1
  92. package/es/result/src/Result.d.ts +4 -4
  93. package/es/select/src/Select.d.ts +45 -31
  94. package/es/select/src/Select.js +13 -8
  95. package/es/select/styles/light.d.ts +3 -3
  96. package/es/tag/src/Tag.d.ts +7 -5
  97. package/es/tag/src/Tag.js +60 -40
  98. package/es/tag/src/common-props.d.ts +1 -1
  99. package/es/tag/src/styles/index.cssr.js +1 -1
  100. package/es/tag/styles/index.d.ts +1 -1
  101. package/es/tag/styles/index.js +1 -1
  102. package/es/tag/styles/rtl.d.ts +2 -5
  103. package/es/tag/styles/rtl.js +1 -1
  104. package/es/timeline/src/TimelineItem.d.ts +4 -4
  105. package/es/tree/src/utils.js +1 -1
  106. package/es/tree-select/src/TreeSelect.d.ts +30 -30
  107. package/es/tree-select/styles/light.d.ts +3 -3
  108. package/es/typography/src/create-header.d.ts +4 -4
  109. package/es/typography/src/headers.d.ts +18 -18
  110. package/es/upload/src/UploadFile.d.ts +1 -1
  111. package/es/upload/src/UploadProgress.d.ts +2 -2
  112. package/es/version.d.ts +1 -1
  113. package/es/version.js +1 -1
  114. package/lib/_internal/select-menu/src/SelectMenu.d.ts +6 -1
  115. package/lib/_internal/select-menu/src/SelectMenu.js +16 -7
  116. package/lib/_internal/selection/src/Selection.d.ts +31 -26
  117. package/lib/_internal/selection/src/Selection.js +77 -79
  118. package/lib/_internal/selection/styles/dark.js +3 -3
  119. package/lib/_internal/selection/styles/light.d.ts +6 -6
  120. package/lib/_internal/selection/styles/light.js +3 -3
  121. package/lib/_mixins/index.d.ts +1 -1
  122. package/lib/_mixins/index.js +3 -2
  123. package/lib/_mixins/use-css-vars-class.d.ts +9 -2
  124. package/lib/_mixins/use-css-vars-class.js +31 -15
  125. package/lib/_mixins/use-form-item.d.ts +1 -1
  126. package/lib/_utils/css/color-to-class.d.ts +1 -0
  127. package/lib/_utils/css/color-to-class.js +7 -0
  128. package/lib/_utils/css/format-length.d.ts +2 -2
  129. package/lib/_utils/css/format-length.js +2 -1
  130. package/lib/_utils/css/index.d.ts +2 -1
  131. package/lib/_utils/css/index.js +4 -5
  132. package/lib/_utils/index.d.ts +1 -1
  133. package/lib/_utils/index.js +2 -1
  134. package/lib/_utils/vue/resolve-slot.js +0 -1
  135. package/lib/alert/src/Alert.d.ts +4 -4
  136. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  137. package/lib/badge/src/Badge.d.ts +4 -4
  138. package/lib/button/src/Button.d.ts +3 -2
  139. package/lib/button/src/Button.js +11 -22
  140. package/lib/button/styles/index.d.ts +1 -1
  141. package/lib/button/styles/index.js +1 -1
  142. package/lib/button/styles/rtl.d.ts +2 -5
  143. package/lib/button/styles/rtl.js +2 -1
  144. package/lib/card/src/Card.d.ts +3 -1
  145. package/lib/card/src/Card.js +40 -37
  146. package/lib/card/styles/index.d.ts +1 -1
  147. package/lib/card/styles/index.js +1 -1
  148. package/lib/card/styles/rtl.d.ts +2 -5
  149. package/lib/card/styles/rtl.js +2 -1
  150. package/lib/cascader/src/Cascader.d.ts +30 -30
  151. package/lib/cascader/src/CascaderMenu.d.ts +3 -3
  152. package/lib/cascader/src/CascaderOption.d.ts +3 -3
  153. package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
  154. package/lib/cascader/src/CascaderSubmenu.d.ts +3 -3
  155. package/lib/cascader/styles/light.d.ts +3 -3
  156. package/lib/checkbox/src/styles/index.cssr.js +12 -12
  157. package/lib/data-table/src/DataTable.d.ts +34 -34
  158. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
  159. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
  160. package/lib/data-table/src/TableParts/Body.d.ts +6 -6
  161. package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
  162. package/lib/data-table/src/TableParts/Header.d.ts +6 -6
  163. package/lib/data-table/styles/light.d.ts +3 -3
  164. package/lib/descriptions/src/Descriptions.d.ts +1 -1
  165. package/lib/dialog/src/Dialog.d.ts +4 -4
  166. package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
  167. package/lib/dialog/src/DialogProvider.d.ts +2 -2
  168. package/lib/dialog/src/dialogProps.d.ts +2 -2
  169. package/lib/dynamic-tags/src/DynamicTags.d.ts +4 -4
  170. package/lib/form/src/FormItem.d.ts +4 -4
  171. package/lib/form/src/FormItemCol.d.ts +3 -3
  172. package/lib/form/src/FormItemGridItem.d.ts +5 -5
  173. package/lib/form/src/FormItemRow.d.ts +3 -3
  174. package/lib/form/src/utils.d.ts +1 -1
  175. package/lib/gradient-text/src/GradientText.d.ts +5 -5
  176. package/lib/icon-wrapper/src/IconWrapper.js +6 -4
  177. package/lib/image/src/Image.d.ts +1 -1
  178. package/lib/input/src/Input.d.ts +1 -1
  179. package/lib/input-number/src/InputNumber.d.ts +1 -1
  180. package/lib/locales/common/eo.d.ts +109 -0
  181. package/lib/locales/common/eo.js +111 -0
  182. package/lib/locales/common/plPL.d.ts +3 -0
  183. package/lib/locales/common/plPL.js +111 -0
  184. package/lib/locales/date/eo.d.ts +3 -0
  185. package/lib/locales/date/eo.js +11 -0
  186. package/lib/locales/date/plPL.d.ts +3 -0
  187. package/lib/locales/date/plPL.js +11 -0
  188. package/lib/locales/index.d.ts +4 -0
  189. package/lib/locales/index.js +9 -1
  190. package/lib/mention/src/Mention.d.ts +1 -1
  191. package/lib/menu/src/Menu.d.ts +1 -1
  192. package/lib/modal/src/BodyWrapper.d.ts +6 -6
  193. package/lib/modal/src/Modal.d.ts +8 -8
  194. package/lib/modal/src/presetProps.d.ts +2 -2
  195. package/lib/notification/src/Notification.d.ts +4 -4
  196. package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
  197. package/lib/notification/src/NotificationProvider.d.ts +1 -1
  198. package/lib/pagination/src/Pagination.d.ts +33 -33
  199. package/lib/pagination/styles/light.d.ts +3 -3
  200. package/lib/progress/src/Circle.d.ts +19 -3
  201. package/lib/progress/src/Circle.js +40 -21
  202. package/lib/progress/src/Progress.d.ts +14 -5
  203. package/lib/progress/src/Progress.js +42 -28
  204. package/lib/progress/src/styles/index.cssr.js +1 -1
  205. package/lib/result/src/Result.d.ts +4 -4
  206. package/lib/select/src/Select.d.ts +45 -31
  207. package/lib/select/src/Select.js +13 -8
  208. package/lib/select/styles/light.d.ts +3 -3
  209. package/lib/tag/src/Tag.d.ts +7 -5
  210. package/lib/tag/src/Tag.js +58 -38
  211. package/lib/tag/src/common-props.d.ts +1 -1
  212. package/lib/tag/src/styles/index.cssr.js +1 -1
  213. package/lib/tag/styles/index.d.ts +1 -1
  214. package/lib/tag/styles/index.js +1 -1
  215. package/lib/tag/styles/rtl.d.ts +2 -5
  216. package/lib/tag/styles/rtl.js +2 -1
  217. package/lib/timeline/src/TimelineItem.d.ts +4 -4
  218. package/lib/tree/src/utils.js +1 -1
  219. package/lib/tree-select/src/TreeSelect.d.ts +30 -30
  220. package/lib/tree-select/styles/light.d.ts +3 -3
  221. package/lib/typography/src/create-header.d.ts +4 -4
  222. package/lib/typography/src/headers.d.ts +18 -18
  223. package/lib/upload/src/UploadFile.d.ts +1 -1
  224. package/lib/upload/src/UploadProgress.d.ts +2 -2
  225. package/lib/version.d.ts +1 -1
  226. package/lib/version.js +1 -1
  227. package/package.json +4 -4
  228. package/web-types.json +28 -1
@@ -47,7 +47,7 @@ exports.default = (0, vue_1.defineComponent)({
47
47
  }, loading: Boolean, focusable: Boolean, renderLabel: Function, renderOption: Function, onMousedown: Function, onScroll: Function, onFocus: Function, onBlur: Function, onKeyup: Function, onKeydown: Function, onTabOut: Function, onMouseenter: Function, onMouseleave: Function, resetMenuOnOptionsChange: {
48
48
  type: Boolean,
49
49
  default: true
50
- },
50
+ }, disableInlineTheme: Boolean,
51
51
  // deprecated
52
52
  onToggle: Function }),
53
53
  setup(props) {
@@ -116,9 +116,6 @@ exports.default = (0, vue_1.defineComponent)({
116
116
  const tmNodes = flattenedNodesRef.value;
117
117
  return tmNodes && tmNodes.length === 0;
118
118
  });
119
- const styleRef = (0, vue_1.computed)(() => {
120
- return [{ width: (0, _utils_1.formatLength)(props.width) }, cssVarsRef.value];
121
- });
122
119
  function doToggle(tmNode) {
123
120
  const { onToggle } = props;
124
121
  if (onToggle)
@@ -265,13 +262,23 @@ exports.default = (0, vue_1.defineComponent)({
265
262
  '--n-loading-size': loadingSize
266
263
  };
267
264
  });
265
+ const { disableInlineTheme } = props;
266
+ const themeClassHandle = disableInlineTheme
267
+ ? (0, _mixins_1.useThemeClass)('internal-select-menu', (0, vue_1.computed)(() => props.size[0]), cssVarsRef, props)
268
+ : _mixins_1.emptyThemeClassHandle;
269
+ const styleRef = (0, vue_1.computed)(() => {
270
+ return [
271
+ { width: (0, _utils_1.formatLength)(props.width) },
272
+ disableInlineTheme ? undefined : cssVarsRef.value
273
+ ];
274
+ });
268
275
  const exposedProps = {
269
276
  selfRef,
270
277
  next,
271
278
  prev,
272
279
  getPendingTmNode
273
280
  };
274
- return Object.assign({ mergedTheme: themeRef, virtualListRef,
281
+ return Object.assign(Object.assign({ mergedTheme: themeRef, virtualListRef,
275
282
  scrollbarRef, style: styleRef, itemSize: itemSizeRef, padding: paddingRef, flattenedNodes: flattenedNodesRef, empty: emptyRef, virtualListContainer() {
276
283
  const { value } = virtualListRef;
277
284
  return value === null || value === void 0 ? void 0 : value.listElRef;
@@ -287,12 +294,14 @@ exports.default = (0, vue_1.defineComponent)({
287
294
  handleKeyDown,
288
295
  handleMouseDown,
289
296
  handleVirtualListResize,
290
- handleVirtualListScroll }, exposedProps);
297
+ handleVirtualListScroll }, exposedProps), themeClassHandle);
291
298
  },
292
299
  render() {
293
- const { $slots, virtualScroll, clsPrefix, mergedTheme } = this;
300
+ const { $slots, virtualScroll, clsPrefix, mergedTheme, themeClass, onRender } = this;
301
+ onRender === null || onRender === void 0 ? void 0 : onRender();
294
302
  return ((0, vue_1.h)("div", { ref: "selfRef", tabindex: this.focusable ? 0 : -1, class: [
295
303
  `${clsPrefix}-base-select-menu`,
304
+ themeClass,
296
305
  this.multiple && `${clsPrefix}-base-select-menu--multiple`
297
306
  ], style: this.style, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout, onKeyup: this.handleKeyUp, onKeydown: this.handleKeyDown, onMousedown: this.handleMouseDown, onMouseenter: this.onMouseenter, onMouseleave: this.onMouseleave },
298
307
  this.loading ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-select-menu__loading` },
@@ -63,6 +63,7 @@ declare const _default: import("vue").DefineComponent<{
63
63
  onPatternBlur: PropType<(e: FocusEvent) => void>;
64
64
  renderLabel: PropType<RenderLabel>;
65
65
  status: PropType<FormValidationStatus>;
66
+ disableInlineTheme: BooleanConstructor;
66
67
  theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
67
68
  fontSizeTiny: string;
68
69
  fontSizeSmall: string;
@@ -84,7 +85,7 @@ declare const _default: import("vue").DefineComponent<{
84
85
  borderHover: string;
85
86
  borderActive: string;
86
87
  borderFocus: string;
87
- boxShadowHover: null;
88
+ boxShadowHover: string;
88
89
  boxShadowActive: string;
89
90
  boxShadowFocus: string;
90
91
  caretColor: string;
@@ -95,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
95
96
  borderHoverWarning: string;
96
97
  borderActiveWarning: string;
97
98
  borderFocusWarning: string;
98
- boxShadowHoverWarning: null;
99
+ boxShadowHoverWarning: string;
99
100
  boxShadowActiveWarning: string;
100
101
  boxShadowFocusWarning: string;
101
102
  colorActiveWarning: string;
@@ -104,7 +105,7 @@ declare const _default: import("vue").DefineComponent<{
104
105
  borderHoverError: string;
105
106
  borderActiveError: string;
106
107
  borderFocusError: string;
107
- boxShadowHoverError: null;
108
+ boxShadowHoverError: string;
108
109
  boxShadowActiveError: string;
109
110
  boxShadowFocusError: string;
110
111
  colorActiveError: string;
@@ -153,7 +154,7 @@ declare const _default: import("vue").DefineComponent<{
153
154
  borderHover: string;
154
155
  borderActive: string;
155
156
  borderFocus: string;
156
- boxShadowHover: null;
157
+ boxShadowHover: string;
157
158
  boxShadowActive: string;
158
159
  boxShadowFocus: string;
159
160
  caretColor: string;
@@ -164,7 +165,7 @@ declare const _default: import("vue").DefineComponent<{
164
165
  borderHoverWarning: string;
165
166
  borderActiveWarning: string;
166
167
  borderFocusWarning: string;
167
- boxShadowHoverWarning: null;
168
+ boxShadowHoverWarning: string;
168
169
  boxShadowActiveWarning: string;
169
170
  boxShadowFocusWarning: string;
170
171
  colorActiveWarning: string;
@@ -173,7 +174,7 @@ declare const _default: import("vue").DefineComponent<{
173
174
  borderHoverError: string;
174
175
  borderActiveError: string;
175
176
  borderFocusError: string;
176
- boxShadowHoverError: null;
177
+ boxShadowHoverError: string;
177
178
  boxShadowActiveError: string;
178
179
  boxShadowFocusError: string;
179
180
  colorActiveError: string;
@@ -222,7 +223,7 @@ declare const _default: import("vue").DefineComponent<{
222
223
  borderHover: string;
223
224
  borderActive: string;
224
225
  borderFocus: string;
225
- boxShadowHover: null;
226
+ boxShadowHover: string;
226
227
  boxShadowActive: string;
227
228
  boxShadowFocus: string;
228
229
  caretColor: string;
@@ -233,7 +234,7 @@ declare const _default: import("vue").DefineComponent<{
233
234
  borderHoverWarning: string;
234
235
  borderActiveWarning: string;
235
236
  borderFocusWarning: string;
236
- boxShadowHoverWarning: null;
237
+ boxShadowHoverWarning: string;
237
238
  boxShadowActiveWarning: string;
238
239
  boxShadowFocusWarning: string;
239
240
  colorActiveWarning: string;
@@ -242,7 +243,7 @@ declare const _default: import("vue").DefineComponent<{
242
243
  borderHoverError: string;
243
244
  borderActiveError: string;
244
245
  borderFocusError: string;
245
- boxShadowHoverError: null;
246
+ boxShadowHoverError: string;
246
247
  boxShadowActiveError: string;
247
248
  boxShadowFocusError: string;
248
249
  colorActiveError: string;
@@ -271,6 +272,8 @@ declare const _default: import("vue").DefineComponent<{
271
272
  }, any>;
272
273
  }>>>;
273
274
  }, {
275
+ themeClass?: import("vue").Ref<string> | undefined;
276
+ onRender?: (() => void) | undefined;
274
277
  mergedTheme: import("vue").ComputedRef<{
275
278
  common: {
276
279
  baseColor: string;
@@ -396,7 +399,7 @@ declare const _default: import("vue").DefineComponent<{
396
399
  borderHover: string;
397
400
  borderActive: string;
398
401
  borderFocus: string;
399
- boxShadowHover: null;
402
+ boxShadowHover: string;
400
403
  boxShadowActive: string;
401
404
  boxShadowFocus: string;
402
405
  caretColor: string;
@@ -407,7 +410,7 @@ declare const _default: import("vue").DefineComponent<{
407
410
  borderHoverWarning: string;
408
411
  borderActiveWarning: string;
409
412
  borderFocusWarning: string;
410
- boxShadowHoverWarning: null;
413
+ boxShadowHoverWarning: string;
411
414
  boxShadowActiveWarning: string;
412
415
  boxShadowFocusWarning: string;
413
416
  colorActiveWarning: string;
@@ -416,7 +419,7 @@ declare const _default: import("vue").DefineComponent<{
416
419
  borderHoverError: string;
417
420
  borderActiveError: string;
418
421
  borderFocusError: string;
419
- boxShadowHoverError: null;
422
+ boxShadowHoverError: string;
420
423
  boxShadowActiveError: string;
421
424
  boxShadowFocusError: string;
422
425
  colorActiveError: string;
@@ -508,7 +511,7 @@ declare const _default: import("vue").DefineComponent<{
508
511
  '--n-border-radius': string;
509
512
  '--n-box-shadow-active': string;
510
513
  '--n-box-shadow-focus': string;
511
- '--n-box-shadow-hover': null;
514
+ '--n-box-shadow-hover': string;
512
515
  '--n-caret-color': string;
513
516
  '--n-color': string;
514
517
  '--n-color-active': string;
@@ -527,7 +530,7 @@ declare const _default: import("vue").DefineComponent<{
527
530
  '--n-color-active-warning': string;
528
531
  '--n-box-shadow-focus-warning': string;
529
532
  '--n-box-shadow-active-warning': string;
530
- '--n-box-shadow-hover-warning': null;
533
+ '--n-box-shadow-hover-warning': string;
531
534
  '--n-border-warning': string;
532
535
  '--n-border-focus-warning': string;
533
536
  '--n-border-hover-warning': string;
@@ -535,7 +538,7 @@ declare const _default: import("vue").DefineComponent<{
535
538
  '--n-color-active-error': string;
536
539
  '--n-box-shadow-focus-error': string;
537
540
  '--n-box-shadow-active-error': string;
538
- '--n-box-shadow-hover-error': null;
541
+ '--n-box-shadow-hover-error': string;
539
542
  '--n-border-error': string;
540
543
  '--n-border-focus-error': string;
541
544
  '--n-border-hover-error': string;
@@ -545,7 +548,7 @@ declare const _default: import("vue").DefineComponent<{
545
548
  '--n-clear-color-hover': string;
546
549
  '--n-clear-color-pressed': string;
547
550
  '--n-arrow-size': string;
548
- }>;
551
+ }> | undefined;
549
552
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
550
553
  clsPrefix: {
551
554
  type: StringConstructor;
@@ -599,6 +602,7 @@ declare const _default: import("vue").DefineComponent<{
599
602
  onPatternBlur: PropType<(e: FocusEvent) => void>;
600
603
  renderLabel: PropType<RenderLabel>;
601
604
  status: PropType<FormValidationStatus>;
605
+ disableInlineTheme: BooleanConstructor;
602
606
  theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
603
607
  fontSizeTiny: string;
604
608
  fontSizeSmall: string;
@@ -620,7 +624,7 @@ declare const _default: import("vue").DefineComponent<{
620
624
  borderHover: string;
621
625
  borderActive: string;
622
626
  borderFocus: string;
623
- boxShadowHover: null;
627
+ boxShadowHover: string;
624
628
  boxShadowActive: string;
625
629
  boxShadowFocus: string;
626
630
  caretColor: string;
@@ -631,7 +635,7 @@ declare const _default: import("vue").DefineComponent<{
631
635
  borderHoverWarning: string;
632
636
  borderActiveWarning: string;
633
637
  borderFocusWarning: string;
634
- boxShadowHoverWarning: null;
638
+ boxShadowHoverWarning: string;
635
639
  boxShadowActiveWarning: string;
636
640
  boxShadowFocusWarning: string;
637
641
  colorActiveWarning: string;
@@ -640,7 +644,7 @@ declare const _default: import("vue").DefineComponent<{
640
644
  borderHoverError: string;
641
645
  borderActiveError: string;
642
646
  borderFocusError: string;
643
- boxShadowHoverError: null;
647
+ boxShadowHoverError: string;
644
648
  boxShadowActiveError: string;
645
649
  boxShadowFocusError: string;
646
650
  colorActiveError: string;
@@ -689,7 +693,7 @@ declare const _default: import("vue").DefineComponent<{
689
693
  borderHover: string;
690
694
  borderActive: string;
691
695
  borderFocus: string;
692
- boxShadowHover: null;
696
+ boxShadowHover: string;
693
697
  boxShadowActive: string;
694
698
  boxShadowFocus: string;
695
699
  caretColor: string;
@@ -700,7 +704,7 @@ declare const _default: import("vue").DefineComponent<{
700
704
  borderHoverWarning: string;
701
705
  borderActiveWarning: string;
702
706
  borderFocusWarning: string;
703
- boxShadowHoverWarning: null;
707
+ boxShadowHoverWarning: string;
704
708
  boxShadowActiveWarning: string;
705
709
  boxShadowFocusWarning: string;
706
710
  colorActiveWarning: string;
@@ -709,7 +713,7 @@ declare const _default: import("vue").DefineComponent<{
709
713
  borderHoverError: string;
710
714
  borderActiveError: string;
711
715
  borderFocusError: string;
712
- boxShadowHoverError: null;
716
+ boxShadowHoverError: string;
713
717
  boxShadowActiveError: string;
714
718
  boxShadowFocusError: string;
715
719
  colorActiveError: string;
@@ -758,7 +762,7 @@ declare const _default: import("vue").DefineComponent<{
758
762
  borderHover: string;
759
763
  borderActive: string;
760
764
  borderFocus: string;
761
- boxShadowHover: null;
765
+ boxShadowHover: string;
762
766
  boxShadowActive: string;
763
767
  boxShadowFocus: string;
764
768
  caretColor: string;
@@ -769,7 +773,7 @@ declare const _default: import("vue").DefineComponent<{
769
773
  borderHoverWarning: string;
770
774
  borderActiveWarning: string;
771
775
  borderFocusWarning: string;
772
- boxShadowHoverWarning: null;
776
+ boxShadowHoverWarning: string;
773
777
  boxShadowActiveWarning: string;
774
778
  boxShadowFocusWarning: string;
775
779
  colorActiveWarning: string;
@@ -778,7 +782,7 @@ declare const _default: import("vue").DefineComponent<{
778
782
  borderHoverError: string;
779
783
  borderActiveError: string;
780
784
  borderFocusError: string;
781
- boxShadowHoverError: null;
785
+ boxShadowHoverError: string;
782
786
  boxShadowActiveError: string;
783
787
  boxShadowFocusError: string;
784
788
  colorActiveError: string;
@@ -813,8 +817,9 @@ declare const _default: import("vue").DefineComponent<{
813
817
  active: boolean;
814
818
  disabled: boolean;
815
819
  autofocus: boolean;
816
- bordered: boolean | undefined;
817
820
  loading: boolean;
821
+ bordered: boolean | undefined;
822
+ disableInlineTheme: boolean;
818
823
  showArrow: boolean;
819
824
  selectedOption: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)> | null;
820
825
  selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>[] | null;
@@ -36,7 +36,7 @@ exports.default = (0, vue_1.defineComponent)({
36
36
  }, loading: Boolean, autofocus: Boolean, showArrow: {
37
37
  type: Boolean,
38
38
  default: true
39
- }, inputProps: Object, focused: Boolean, renderTag: Function, onKeyup: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], onClear: Function, onPatternInput: Function, onPatternFocus: Function, onPatternBlur: Function, renderLabel: Function, status: String }),
39
+ }, inputProps: Object, focused: Boolean, renderTag: Function, onKeyup: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], onClear: Function, onPatternInput: Function, onPatternFocus: Function, onPatternBlur: Function, renderLabel: Function, status: String, disableInlineTheme: Boolean }),
40
40
  setup(props) {
41
41
  const patternInputMirrorRef = (0, vue_1.ref)(null);
42
42
  const patternInputRef = (0, vue_1.ref)(null);
@@ -303,15 +303,76 @@ exports.default = (0, vue_1.defineComponent)({
303
303
  props.disabled || patternInputFocusedRef.value ? -1 : 0;
304
304
  });
305
305
  });
306
- return {
307
- mergedTheme: themeRef,
308
- mergedClearable: mergedClearableRef,
309
- patternInputFocused: patternInputFocusedRef,
310
- filterablePlaceholder: filterablePlaceholderRef,
311
- label: labelRef,
312
- selected: selectedRef,
313
- showTagsPanel: showTagsPopoverRef,
314
- isCompositing: isCompositingRef,
306
+ const { disableInlineTheme } = props;
307
+ const cssVarsRef = (0, vue_1.computed)(() => {
308
+ const { size } = props;
309
+ const { common: { cubicBezierEaseInOut }, self: { borderRadius, color, placeholderColor, textColor, paddingSingle, paddingMultiple, caretColor, colorDisabled, textColorDisabled, placeholderColorDisabled, colorActive, boxShadowFocus, boxShadowActive, boxShadowHover, border, borderFocus, borderHover, borderActive, arrowColor, arrowColorDisabled, loadingColor,
310
+ // form warning
311
+ colorActiveWarning, boxShadowFocusWarning, boxShadowActiveWarning, boxShadowHoverWarning, borderWarning, borderFocusWarning, borderHoverWarning, borderActiveWarning,
312
+ // form error
313
+ colorActiveError, boxShadowFocusError, boxShadowActiveError, boxShadowHoverError, borderError, borderFocusError, borderHoverError, borderActiveError,
314
+ // clear
315
+ clearColor, clearColorHover, clearColorPressed, clearSize,
316
+ // arrow
317
+ arrowSize, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('fontSize', size)]: fontSize } } = themeRef.value;
318
+ return {
319
+ '--n-bezier': cubicBezierEaseInOut,
320
+ '--n-border': border,
321
+ '--n-border-active': borderActive,
322
+ '--n-border-focus': borderFocus,
323
+ '--n-border-hover': borderHover,
324
+ '--n-border-radius': borderRadius,
325
+ '--n-box-shadow-active': boxShadowActive,
326
+ '--n-box-shadow-focus': boxShadowFocus,
327
+ '--n-box-shadow-hover': boxShadowHover,
328
+ '--n-caret-color': caretColor,
329
+ '--n-color': color,
330
+ '--n-color-active': colorActive,
331
+ '--n-color-disabled': colorDisabled,
332
+ '--n-font-size': fontSize,
333
+ '--n-height': height,
334
+ '--n-padding-single': paddingSingle,
335
+ '--n-padding-multiple': paddingMultiple,
336
+ '--n-placeholder-color': placeholderColor,
337
+ '--n-placeholder-color-disabled': placeholderColorDisabled,
338
+ '--n-text-color': textColor,
339
+ '--n-text-color-disabled': textColorDisabled,
340
+ '--n-arrow-color': arrowColor,
341
+ '--n-arrow-color-disabled': arrowColorDisabled,
342
+ '--n-loading-color': loadingColor,
343
+ // form warning
344
+ '--n-color-active-warning': colorActiveWarning,
345
+ '--n-box-shadow-focus-warning': boxShadowFocusWarning,
346
+ '--n-box-shadow-active-warning': boxShadowActiveWarning,
347
+ '--n-box-shadow-hover-warning': boxShadowHoverWarning,
348
+ '--n-border-warning': borderWarning,
349
+ '--n-border-focus-warning': borderFocusWarning,
350
+ '--n-border-hover-warning': borderHoverWarning,
351
+ '--n-border-active-warning': borderActiveWarning,
352
+ // form error
353
+ '--n-color-active-error': colorActiveError,
354
+ '--n-box-shadow-focus-error': boxShadowFocusError,
355
+ '--n-box-shadow-active-error': boxShadowActiveError,
356
+ '--n-box-shadow-hover-error': boxShadowHoverError,
357
+ '--n-border-error': borderError,
358
+ '--n-border-focus-error': borderFocusError,
359
+ '--n-border-hover-error': borderHoverError,
360
+ '--n-border-active-error': borderActiveError,
361
+ // clear
362
+ '--n-clear-size': clearSize,
363
+ '--n-clear-color': clearColor,
364
+ '--n-clear-color-hover': clearColorHover,
365
+ '--n-clear-color-pressed': clearColorPressed,
366
+ // arrow-size
367
+ '--n-arrow-size': arrowSize
368
+ };
369
+ });
370
+ const themeClassHandle = disableInlineTheme
371
+ ? (0, _mixins_1.useThemeClass)('internal-selection', (0, vue_1.computed)(() => {
372
+ return props.size[0];
373
+ }), cssVarsRef, props)
374
+ : _mixins_1.emptyThemeClassHandle;
375
+ return Object.assign({ mergedTheme: themeRef, mergedClearable: mergedClearableRef, patternInputFocused: patternInputFocusedRef, filterablePlaceholder: filterablePlaceholderRef, label: labelRef, selected: selectedRef, showTagsPanel: showTagsPopoverRef, isCompositing: isCompositingRef,
315
376
  // dom ref
316
377
  counterRef,
317
378
  counterWrapperRef,
@@ -345,75 +406,11 @@ exports.default = (0, vue_1.defineComponent)({
345
406
  blurInput,
346
407
  updateCounter,
347
408
  getCounter,
348
- getTail,
349
- renderLabel: props.renderLabel,
350
- cssVars: (0, vue_1.computed)(() => {
351
- const { size } = props;
352
- const { common: { cubicBezierEaseInOut }, self: { borderRadius, color, placeholderColor, textColor, paddingSingle, paddingMultiple, caretColor, colorDisabled, textColorDisabled, placeholderColorDisabled, colorActive, boxShadowFocus, boxShadowActive, boxShadowHover, border, borderFocus, borderHover, borderActive, arrowColor, arrowColorDisabled, loadingColor,
353
- // form warning
354
- colorActiveWarning, boxShadowFocusWarning, boxShadowActiveWarning, boxShadowHoverWarning, borderWarning, borderFocusWarning, borderHoverWarning, borderActiveWarning,
355
- // form error
356
- colorActiveError, boxShadowFocusError, boxShadowActiveError, boxShadowHoverError, borderError, borderFocusError, borderHoverError, borderActiveError,
357
- // clear
358
- clearColor, clearColorHover, clearColorPressed, clearSize,
359
- // arrow
360
- arrowSize, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('fontSize', size)]: fontSize } } = themeRef.value;
361
- return {
362
- '--n-bezier': cubicBezierEaseInOut,
363
- '--n-border': border,
364
- '--n-border-active': borderActive,
365
- '--n-border-focus': borderFocus,
366
- '--n-border-hover': borderHover,
367
- '--n-border-radius': borderRadius,
368
- '--n-box-shadow-active': boxShadowActive,
369
- '--n-box-shadow-focus': boxShadowFocus,
370
- '--n-box-shadow-hover': boxShadowHover,
371
- '--n-caret-color': caretColor,
372
- '--n-color': color,
373
- '--n-color-active': colorActive,
374
- '--n-color-disabled': colorDisabled,
375
- '--n-font-size': fontSize,
376
- '--n-height': height,
377
- '--n-padding-single': paddingSingle,
378
- '--n-padding-multiple': paddingMultiple,
379
- '--n-placeholder-color': placeholderColor,
380
- '--n-placeholder-color-disabled': placeholderColorDisabled,
381
- '--n-text-color': textColor,
382
- '--n-text-color-disabled': textColorDisabled,
383
- '--n-arrow-color': arrowColor,
384
- '--n-arrow-color-disabled': arrowColorDisabled,
385
- '--n-loading-color': loadingColor,
386
- // form warning
387
- '--n-color-active-warning': colorActiveWarning,
388
- '--n-box-shadow-focus-warning': boxShadowFocusWarning,
389
- '--n-box-shadow-active-warning': boxShadowActiveWarning,
390
- '--n-box-shadow-hover-warning': boxShadowHoverWarning,
391
- '--n-border-warning': borderWarning,
392
- '--n-border-focus-warning': borderFocusWarning,
393
- '--n-border-hover-warning': borderHoverWarning,
394
- '--n-border-active-warning': borderActiveWarning,
395
- // form error
396
- '--n-color-active-error': colorActiveError,
397
- '--n-box-shadow-focus-error': boxShadowFocusError,
398
- '--n-box-shadow-active-error': boxShadowActiveError,
399
- '--n-box-shadow-hover-error': boxShadowHoverError,
400
- '--n-border-error': borderError,
401
- '--n-border-focus-error': borderFocusError,
402
- '--n-border-hover-error': borderHoverError,
403
- '--n-border-active-error': borderActiveError,
404
- // clear
405
- '--n-clear-size': clearSize,
406
- '--n-clear-color': clearColor,
407
- '--n-clear-color-hover': clearColorHover,
408
- '--n-clear-color-pressed': clearColorPressed,
409
- // arrow-size
410
- '--n-arrow-size': arrowSize
411
- };
412
- })
413
- };
409
+ getTail, renderLabel: props.renderLabel, cssVars: disableInlineTheme ? undefined : cssVarsRef }, themeClassHandle);
414
410
  },
415
411
  render() {
416
- const { status, multiple, size, disabled, filterable, maxTagCount, bordered, clsPrefix, renderTag, renderLabel } = this;
412
+ const { status, multiple, size, disabled, filterable, maxTagCount, bordered, clsPrefix, onRender, renderTag, renderLabel } = this;
413
+ onRender === null || onRender === void 0 ? void 0 : onRender();
417
414
  const maxTagCountResponsive = maxTagCount === 'responsive';
418
415
  const maxTagCountNumeric = typeof maxTagCount === 'number';
419
416
  const useMaxTagCount = maxTagCountResponsive || maxTagCountNumeric;
@@ -439,14 +436,14 @@ exports.default = (0, vue_1.defineComponent)({
439
436
  // May Overflow
440
437
  const renderCounter = maxTagCountResponsive
441
438
  ? () => ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, ref: "counterWrapperRef" },
442
- (0, vue_1.h)(tag_1.NTag, { ref: "counterRef", onMouseenter: this.handleMouseEnterCounter, onMouseleave: this.handleMouseLeaveCounter, disabled: disabled })))
439
+ (0, vue_1.h)(tag_1.NTag, { size: size, ref: "counterRef", onMouseenter: this.handleMouseEnterCounter, onMouseleave: this.handleMouseLeaveCounter, disabled: disabled })))
443
440
  : undefined;
444
441
  let counter;
445
442
  if (maxTagCountNumeric) {
446
443
  const rest = this.selectedOptions.length - maxTagCount;
447
444
  if (rest > 0) {
448
445
  counter = ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, key: "__counter__" },
449
- (0, vue_1.h)(tag_1.NTag, { ref: "counterRef", onMouseenter: this.handleMouseEnterCounter, disabled: disabled }, {
446
+ (0, vue_1.h)(tag_1.NTag, { size: size, ref: "counterRef", onMouseenter: this.handleMouseEnterCounter, disabled: disabled }, {
450
447
  default: () => `+${rest}`
451
448
  })));
452
449
  }
@@ -550,6 +547,7 @@ exports.default = (0, vue_1.defineComponent)({
550
547
  }
551
548
  return ((0, vue_1.h)("div", { ref: "selfRef", class: [
552
549
  `${clsPrefix}-base-selection`,
550
+ this.themeClass,
553
551
  status && `${clsPrefix}-base-selection--${status}-status`,
554
552
  {
555
553
  [`${clsPrefix}-base-selection--active`]: this.active,
@@ -27,19 +27,19 @@ const internalSelectionDark = {
27
27
  // default
28
28
  textColor: textColor2, textColorDisabled,
29
29
  placeholderColor,
30
- placeholderColorDisabled, color: inputColor, colorDisabled: inputColorDisabled, colorActive: (0, seemly_1.changeColor)(primaryColor, { alpha: 0.1 }), border: '1px solid #0000', borderHover: `1px solid ${primaryColorHover}`, borderActive: `1px solid ${primaryColor}`, borderFocus: `1px solid ${primaryColorHover}`, boxShadowHover: null, boxShadowActive: `0 0 8px 0 ${(0, seemly_1.changeColor)(primaryColor, {
30
+ placeholderColorDisabled, color: inputColor, colorDisabled: inputColorDisabled, colorActive: (0, seemly_1.changeColor)(primaryColor, { alpha: 0.1 }), border: '1px solid #0000', borderHover: `1px solid ${primaryColorHover}`, borderActive: `1px solid ${primaryColor}`, borderFocus: `1px solid ${primaryColorHover}`, boxShadowHover: 'none', boxShadowActive: `0 0 8px 0 ${(0, seemly_1.changeColor)(primaryColor, {
31
31
  alpha: 0.4
32
32
  })}`, boxShadowFocus: `0 0 8px 0 ${(0, seemly_1.changeColor)(primaryColor, {
33
33
  alpha: 0.4
34
34
  })}`, caretColor: primaryColor, arrowColor: iconColor, arrowColorDisabled: iconColorDisabled, loadingColor: primaryColor,
35
35
  // warning
36
- borderWarning: `1px solid ${warningColor}`, borderHoverWarning: `1px solid ${warningColorHover}`, borderActiveWarning: `1px solid ${warningColor}`, borderFocusWarning: `1px solid ${warningColorHover}`, boxShadowHoverWarning: null, boxShadowActiveWarning: `0 0 8px 0 ${(0, seemly_1.changeColor)(warningColor, {
36
+ borderWarning: `1px solid ${warningColor}`, borderHoverWarning: `1px solid ${warningColorHover}`, borderActiveWarning: `1px solid ${warningColor}`, borderFocusWarning: `1px solid ${warningColorHover}`, boxShadowHoverWarning: 'none', boxShadowActiveWarning: `0 0 8px 0 ${(0, seemly_1.changeColor)(warningColor, {
37
37
  alpha: 0.4
38
38
  })}`, boxShadowFocusWarning: `0 0 8px 0 ${(0, seemly_1.changeColor)(warningColor, {
39
39
  alpha: 0.4
40
40
  })}`, colorActiveWarning: (0, seemly_1.changeColor)(warningColor, { alpha: 0.1 }), caretColorWarning: warningColor,
41
41
  // error
42
- borderError: `1px solid ${errorColor}`, borderHoverError: `1px solid ${errorColorHover}`, borderActiveError: `1px solid ${errorColor}`, borderFocusError: `1px solid ${errorColorHover}`, boxShadowHoverError: null, boxShadowActiveError: `0 0 8px 0 ${(0, seemly_1.changeColor)(errorColor, {
42
+ borderError: `1px solid ${errorColor}`, borderHoverError: `1px solid ${errorColorHover}`, borderActiveError: `1px solid ${errorColor}`, borderFocusError: `1px solid ${errorColorHover}`, boxShadowHoverError: 'none', boxShadowActiveError: `0 0 8px 0 ${(0, seemly_1.changeColor)(errorColor, {
43
43
  alpha: 0.4
44
44
  })}`, boxShadowFocusError: `0 0 8px 0 ${(0, seemly_1.changeColor)(errorColor, {
45
45
  alpha: 0.4
@@ -20,7 +20,7 @@ declare const self: (vars: ThemeCommonVars) => {
20
20
  borderHover: string;
21
21
  borderActive: string;
22
22
  borderFocus: string;
23
- boxShadowHover: null;
23
+ boxShadowHover: string;
24
24
  boxShadowActive: string;
25
25
  boxShadowFocus: string;
26
26
  caretColor: string;
@@ -31,7 +31,7 @@ declare const self: (vars: ThemeCommonVars) => {
31
31
  borderHoverWarning: string;
32
32
  borderActiveWarning: string;
33
33
  borderFocusWarning: string;
34
- boxShadowHoverWarning: null;
34
+ boxShadowHoverWarning: string;
35
35
  boxShadowActiveWarning: string;
36
36
  boxShadowFocusWarning: string;
37
37
  colorActiveWarning: string;
@@ -40,7 +40,7 @@ declare const self: (vars: ThemeCommonVars) => {
40
40
  borderHoverError: string;
41
41
  borderActiveError: string;
42
42
  borderFocusError: string;
43
- boxShadowHoverError: null;
43
+ boxShadowHoverError: string;
44
44
  boxShadowActiveError: string;
45
45
  boxShadowFocusError: string;
46
46
  colorActiveError: string;
@@ -75,7 +75,7 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
75
75
  borderHover: string;
76
76
  borderActive: string;
77
77
  borderFocus: string;
78
- boxShadowHover: null;
78
+ boxShadowHover: string;
79
79
  boxShadowActive: string;
80
80
  boxShadowFocus: string;
81
81
  caretColor: string;
@@ -86,7 +86,7 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
86
86
  borderHoverWarning: string;
87
87
  borderActiveWarning: string;
88
88
  borderFocusWarning: string;
89
- boxShadowHoverWarning: null;
89
+ boxShadowHoverWarning: string;
90
90
  boxShadowActiveWarning: string;
91
91
  boxShadowFocusWarning: string;
92
92
  colorActiveWarning: string;
@@ -95,7 +95,7 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
95
95
  borderHoverError: string;
96
96
  borderActiveError: string;
97
97
  borderFocusError: string;
98
- boxShadowHoverError: null;
98
+ boxShadowHoverError: string;
99
99
  boxShadowActiveError: string;
100
100
  boxShadowFocusError: string;
101
101
  colorActiveError: string;
@@ -22,19 +22,19 @@ const self = (vars) => {
22
22
  // default
23
23
  textColor: textColor2, textColorDisabled,
24
24
  placeholderColor,
25
- placeholderColorDisabled, color: inputColor, colorDisabled: inputColorDisabled, colorActive: inputColor, border: `1px solid ${borderColor}`, borderHover: `1px solid ${primaryColorHover}`, borderActive: `1px solid ${primaryColor}`, borderFocus: `1px solid ${primaryColorHover}`, boxShadowHover: null, boxShadowActive: `0 0 0 2px ${(0, seemly_1.changeColor)(primaryColor, {
25
+ placeholderColorDisabled, color: inputColor, colorDisabled: inputColorDisabled, colorActive: inputColor, border: `1px solid ${borderColor}`, borderHover: `1px solid ${primaryColorHover}`, borderActive: `1px solid ${primaryColor}`, borderFocus: `1px solid ${primaryColorHover}`, boxShadowHover: 'none', boxShadowActive: `0 0 0 2px ${(0, seemly_1.changeColor)(primaryColor, {
26
26
  alpha: 0.2
27
27
  })}`, boxShadowFocus: `0 0 0 2px ${(0, seemly_1.changeColor)(primaryColor, {
28
28
  alpha: 0.2
29
29
  })}`, caretColor: primaryColor, arrowColor: iconColor, arrowColorDisabled: iconColorDisabled, loadingColor: primaryColor,
30
30
  // warning
31
- borderWarning: `1px solid ${warningColor}`, borderHoverWarning: `1px solid ${warningColorHover}`, borderActiveWarning: `1px solid ${warningColor}`, borderFocusWarning: `1px solid ${warningColorHover}`, boxShadowHoverWarning: null, boxShadowActiveWarning: `0 0 0 2px ${(0, seemly_1.changeColor)(warningColor, {
31
+ borderWarning: `1px solid ${warningColor}`, borderHoverWarning: `1px solid ${warningColorHover}`, borderActiveWarning: `1px solid ${warningColor}`, borderFocusWarning: `1px solid ${warningColorHover}`, boxShadowHoverWarning: 'none', boxShadowActiveWarning: `0 0 0 2px ${(0, seemly_1.changeColor)(warningColor, {
32
32
  alpha: 0.2
33
33
  })}`, boxShadowFocusWarning: `0 0 0 2px ${(0, seemly_1.changeColor)(warningColor, {
34
34
  alpha: 0.2
35
35
  })}`, colorActiveWarning: inputColor, caretColorWarning: warningColor,
36
36
  // error
37
- borderError: `1px solid ${errorColor}`, borderHoverError: `1px solid ${errorColorHover}`, borderActiveError: `1px solid ${errorColor}`, borderFocusError: `1px solid ${errorColorHover}`, boxShadowHoverError: null, boxShadowActiveError: `0 0 0 2px ${(0, seemly_1.changeColor)(errorColor, {
37
+ borderError: `1px solid ${errorColor}`, borderHoverError: `1px solid ${errorColorHover}`, borderActiveError: `1px solid ${errorColor}`, borderFocusError: `1px solid ${errorColorHover}`, boxShadowHoverError: 'none', boxShadowActiveError: `0 0 0 2px ${(0, seemly_1.changeColor)(errorColor, {
38
38
  alpha: 0.2
39
39
  })}`, boxShadowFocusError: `0 0 0 2px ${(0, seemly_1.changeColor)(errorColor, {
40
40
  alpha: 0.2
@@ -6,4 +6,4 @@ export { default as useLocale } from './use-locale';
6
6
  export { default as useStyle } from './use-style';
7
7
  export { default as useHljs } from './use-hljs';
8
8
  export type { Hljs } from './use-hljs';
9
- export { useCssVarsClass } from './use-css-vars-class';
9
+ export { useThemeClass, emptyThemeClassHandle } from './use-css-vars-class';
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.useCssVarsClass = exports.useHljs = exports.useStyle = exports.useLocale = exports.defaultClsPrefix = exports.useConfig = exports.createTheme = exports.useTheme = exports.useFormItem = void 0;
6
+ exports.emptyThemeClassHandle = exports.useThemeClass = exports.useHljs = exports.useStyle = exports.useLocale = exports.defaultClsPrefix = exports.useConfig = exports.createTheme = exports.useTheme = exports.useFormItem = void 0;
7
7
  var use_form_item_1 = require("./use-form-item");
8
8
  Object.defineProperty(exports, "useFormItem", { enumerable: true, get: function () { return __importDefault(use_form_item_1).default; } });
9
9
  var use_theme_1 = require("./use-theme");
@@ -19,4 +19,5 @@ Object.defineProperty(exports, "useStyle", { enumerable: true, get: function ()
19
19
  var use_hljs_1 = require("./use-hljs");
20
20
  Object.defineProperty(exports, "useHljs", { enumerable: true, get: function () { return __importDefault(use_hljs_1).default; } });
21
21
  var use_css_vars_class_1 = require("./use-css-vars-class");
22
- Object.defineProperty(exports, "useCssVarsClass", { enumerable: true, get: function () { return use_css_vars_class_1.useCssVarsClass; } });
22
+ Object.defineProperty(exports, "useThemeClass", { enumerable: true, get: function () { return use_css_vars_class_1.useThemeClass; } });
23
+ Object.defineProperty(exports, "emptyThemeClassHandle", { enumerable: true, get: function () { return use_css_vars_class_1.emptyThemeClassHandle; } });
@@ -1,4 +1,11 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
- export declare function useCssVarsClass(componentName: string, hashRef: Ref<string> | undefined, cssVarsRef: ComputedRef<Record<string, string>> | undefined, props: {
2
+ export declare function useThemeClass(componentName: string, hashRef: Ref<string> | undefined, cssVarsRef: ComputedRef<Record<string, string>> | undefined, props: {
3
3
  themeOverrides?: unknown;
4
- }): Ref<string>;
4
+ }): {
5
+ themeClass: Ref<string>;
6
+ onRender: () => void;
7
+ };
8
+ export declare const emptyThemeClassHandle: {
9
+ themeClass?: Ref<string>;
10
+ onRender?: () => void;
11
+ };