@koi-design/uxd-ui 14.0.2 → 14.0.3

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 (200) hide show
  1. package/es/components/Alert/Alert.mjs +10 -24
  2. package/es/components/Alert/Alert.mjs.map +1 -1
  3. package/es/components/Alert/Alert.type.d.ts +5 -7
  4. package/es/components/Alert/Alert.type.mjs +4 -7
  5. package/es/components/Alert/Alert.type.mjs.map +1 -1
  6. package/es/components/Alert/Alert.vue.d.ts +5 -15
  7. package/es/components/Alert/index.d.ts +9 -27
  8. package/es/components/Alert/index.mjs +1 -1
  9. package/es/components/Calendar/Calendar.vue.d.ts +2 -2
  10. package/es/components/Calendar/index.d.ts +6 -6
  11. package/es/components/DatePicker/DatePicker.vue.d.ts +14 -14
  12. package/es/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
  13. package/es/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
  14. package/es/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
  15. package/es/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
  16. package/es/components/DatePicker/index.d.ts +28 -28
  17. package/es/components/Menu/MenuItem.vue.d.ts +33 -33
  18. package/es/components/Menu/index.d.ts +33 -33
  19. package/es/components/Message/Message.mjs +4 -3
  20. package/es/components/Message/Message.mjs.map +1 -1
  21. package/es/components/Notice/Notice.mjs +15 -13
  22. package/es/components/Notice/Notice.mjs.map +1 -1
  23. package/es/components/Notice/Notice.type.d.ts +3 -2
  24. package/es/components/Notification/Notice.mjs +1 -5
  25. package/es/components/Notification/Notice.mjs.map +1 -1
  26. package/es/components/Notification/Notification.mjs.map +1 -1
  27. package/es/components/Rate/Rate.vue.d.ts +33 -33
  28. package/es/components/Rate/index.d.ts +66 -66
  29. package/es/components/Statistic/Statistic.vue.d.ts +33 -33
  30. package/es/components/Statistic/index.d.ts +66 -66
  31. package/es/components/Table/BaseTable.vue.d.ts +132 -132
  32. package/es/components/Table/BodyTable.vue.d.ts +132 -132
  33. package/es/components/Table/HeadTable.vue.d.ts +132 -132
  34. package/es/components/Table/Table.vue.d.ts +264 -264
  35. package/es/components/Table/TableBox.vue.d.ts +264 -264
  36. package/es/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
  37. package/es/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
  38. package/es/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
  39. package/es/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
  40. package/es/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
  41. package/es/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
  42. package/es/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
  43. package/es/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
  44. package/es/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
  45. package/es/components/ThemePanel/index.d.ts +66 -66
  46. package/es/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
  47. package/es/components/TimePicker/TimePicker.vue.d.ts +12 -12
  48. package/es/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
  49. package/es/components/TimePicker/index.d.ts +28 -28
  50. package/es/components/Tooltip/Tooltip.mjs +84 -8
  51. package/es/components/Tooltip/Tooltip.mjs.map +1 -1
  52. package/es/components/Tooltip/Tooltip.type.d.ts +2 -2
  53. package/es/components/Tooltip/Tooltip.type.mjs +1 -3
  54. package/es/components/Tooltip/Tooltip.type.mjs.map +1 -1
  55. package/es/components/Tooltip/Tooltip.vue.d.ts +13 -13
  56. package/es/components/Tooltip/index.d.ts +33 -33
  57. package/es/components/index.mjs +1 -1
  58. package/es/index.mjs +1 -1
  59. package/lib/components/Alert/Alert.js +9 -23
  60. package/lib/components/Alert/Alert.js.map +1 -1
  61. package/lib/components/Alert/Alert.type.d.ts +5 -7
  62. package/lib/components/Alert/Alert.type.js +4 -6
  63. package/lib/components/Alert/Alert.type.js.map +1 -1
  64. package/lib/components/Alert/Alert.vue.d.ts +5 -15
  65. package/lib/components/Alert/index.d.ts +9 -27
  66. package/lib/components/Alert/index.js +1 -0
  67. package/lib/components/Alert/index.js.map +1 -1
  68. package/lib/components/Calendar/Calendar.vue.d.ts +2 -2
  69. package/lib/components/Calendar/index.d.ts +6 -6
  70. package/lib/components/DatePicker/DatePicker.vue.d.ts +14 -14
  71. package/lib/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
  72. package/lib/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
  73. package/lib/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
  74. package/lib/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
  75. package/lib/components/DatePicker/index.d.ts +28 -28
  76. package/lib/components/Menu/MenuItem.vue.d.ts +33 -33
  77. package/lib/components/Menu/index.d.ts +33 -33
  78. package/lib/components/Message/Message.js +4 -3
  79. package/lib/components/Message/Message.js.map +1 -1
  80. package/lib/components/Notice/Notice.js +15 -13
  81. package/lib/components/Notice/Notice.js.map +1 -1
  82. package/lib/components/Notice/Notice.type.d.ts +3 -2
  83. package/lib/components/Notification/Notice.js +1 -5
  84. package/lib/components/Notification/Notice.js.map +1 -1
  85. package/lib/components/Notification/Notification.js.map +1 -1
  86. package/lib/components/Rate/Rate.vue.d.ts +33 -33
  87. package/lib/components/Rate/index.d.ts +66 -66
  88. package/lib/components/Statistic/Statistic.vue.d.ts +33 -33
  89. package/lib/components/Statistic/index.d.ts +66 -66
  90. package/lib/components/Table/BaseTable.vue.d.ts +132 -132
  91. package/lib/components/Table/BodyTable.vue.d.ts +132 -132
  92. package/lib/components/Table/HeadTable.vue.d.ts +132 -132
  93. package/lib/components/Table/Table.vue.d.ts +264 -264
  94. package/lib/components/Table/TableBox.vue.d.ts +264 -264
  95. package/lib/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
  96. package/lib/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
  97. package/lib/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
  98. package/lib/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
  99. package/lib/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
  100. package/lib/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
  101. package/lib/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
  102. package/lib/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
  103. package/lib/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
  104. package/lib/components/ThemePanel/index.d.ts +66 -66
  105. package/lib/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
  106. package/lib/components/TimePicker/TimePicker.vue.d.ts +12 -12
  107. package/lib/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
  108. package/lib/components/TimePicker/index.d.ts +28 -28
  109. package/lib/components/Tooltip/Tooltip.js +84 -8
  110. package/lib/components/Tooltip/Tooltip.js.map +1 -1
  111. package/lib/components/Tooltip/Tooltip.type.d.ts +2 -2
  112. package/lib/components/Tooltip/Tooltip.type.js +1 -3
  113. package/lib/components/Tooltip/Tooltip.type.js.map +1 -1
  114. package/lib/components/Tooltip/Tooltip.vue.d.ts +13 -13
  115. package/lib/components/Tooltip/index.d.ts +33 -33
  116. package/lib/components/index.js +1 -0
  117. package/lib/components/index.js.map +1 -1
  118. package/lib/index.js +1 -0
  119. package/lib/index.js.map +1 -1
  120. package/package.json +1 -1
  121. package/styles/components/alert/index.css +1 -1
  122. package/styles/components/alert/index.less +51 -48
  123. package/styles/components/alert/var.less +8 -42
  124. package/styles/components/autoComplete/index.css +1 -1
  125. package/styles/components/avatar/index.css +1 -1
  126. package/styles/components/badge/index.css +1 -1
  127. package/styles/components/badge/var.less +2 -2
  128. package/styles/components/button/index.css +1 -1
  129. package/styles/components/carousel/index.css +1 -1
  130. package/styles/components/cascader/index.css +1 -1
  131. package/styles/components/datePicker/index.css +1 -1
  132. package/styles/components/form/index.css +1 -1
  133. package/styles/components/icon/index.css +1 -1
  134. package/styles/components/input/index.css +1 -1
  135. package/styles/components/inputNumber/index.css +1 -1
  136. package/styles/components/link/index.css +1 -1
  137. package/styles/components/mentions/index.css +1 -1
  138. package/styles/components/message/index.css +1 -1
  139. package/styles/components/message/index.less +63 -30
  140. package/styles/components/message/var.less +6 -27
  141. package/styles/components/modal/index.css +1 -1
  142. package/styles/components/notice/index.css +1 -1
  143. package/styles/components/notice/index.less +93 -49
  144. package/styles/components/notice/var.less +10 -33
  145. package/styles/components/select/index.css +1 -1
  146. package/styles/components/spin/index.css +1 -1
  147. package/styles/components/tag/index.css +1 -1
  148. package/styles/components/tag/var.less +17 -17
  149. package/styles/components/timePicker/index.css +1 -1
  150. package/styles/components/tooltip/index.css +1 -1
  151. package/styles/components/tooltip/index.less +3 -55
  152. package/styles/components/tooltip/var.less +15 -14
  153. package/styles/cssVariable.css +1 -1
  154. package/styles/cssVariable.less +8 -9
  155. package/styles/index.css +1 -1
  156. package/types/components/Alert/Alert.type.d.ts +5 -7
  157. package/types/components/Alert/Alert.vue.d.ts +5 -15
  158. package/types/components/Alert/index.d.ts +9 -27
  159. package/types/components/Calendar/Calendar.vue.d.ts +2 -2
  160. package/types/components/Calendar/index.d.ts +6 -6
  161. package/types/components/DatePicker/DatePicker.vue.d.ts +14 -14
  162. package/types/components/DatePicker/Panel/DatePickerPanel.vue.d.ts +4 -4
  163. package/types/components/DatePicker/Panel/DateRangePanel.vue.d.ts +6 -6
  164. package/types/components/DatePicker/Panel/RangePart.vue.d.ts +2 -2
  165. package/types/components/DatePicker/Trigger/DateRangeInput.vue.d.ts +4 -4
  166. package/types/components/DatePicker/index.d.ts +28 -28
  167. package/types/components/Menu/MenuItem.vue.d.ts +33 -33
  168. package/types/components/Menu/index.d.ts +33 -33
  169. package/types/components/Notice/Notice.type.d.ts +3 -2
  170. package/types/components/Rate/Rate.vue.d.ts +33 -33
  171. package/types/components/Rate/index.d.ts +66 -66
  172. package/types/components/Statistic/Statistic.vue.d.ts +33 -33
  173. package/types/components/Statistic/index.d.ts +66 -66
  174. package/types/components/Table/BaseTable.vue.d.ts +132 -132
  175. package/types/components/Table/BodyTable.vue.d.ts +132 -132
  176. package/types/components/Table/HeadTable.vue.d.ts +132 -132
  177. package/types/components/Table/Table.vue.d.ts +264 -264
  178. package/types/components/Table/TableBox.vue.d.ts +264 -264
  179. package/types/components/Table/tableUnits/ExpandRows.vue.d.ts +33 -33
  180. package/types/components/Table/tableUnits/FilterDropdown.vue.d.ts +66 -66
  181. package/types/components/Table/tableUnits/SelectionCheckAll.vue.d.ts +66 -66
  182. package/types/components/Table/tableUnits/TableBody.vue.d.ts +66 -66
  183. package/types/components/Table/tableUnits/TableCell.vue.d.ts +33 -33
  184. package/types/components/Table/tableUnits/TableHeader.vue.d.ts +66 -66
  185. package/types/components/Table/tableUnits/TableHeaderRow.vue.d.ts +66 -66
  186. package/types/components/Table/tableUnits/TableRow.vue.d.ts +33 -33
  187. package/types/components/ThemePanel/ThemePanel.vue.d.ts +33 -33
  188. package/types/components/ThemePanel/index.d.ts +66 -66
  189. package/types/components/TimePicker/Panel/TimeRangePane.vue.d.ts +4 -4
  190. package/types/components/TimePicker/TimePicker.vue.d.ts +12 -12
  191. package/types/components/TimePicker/Trigger/TimeRangeInput.vue.d.ts +4 -4
  192. package/types/components/TimePicker/index.d.ts +28 -28
  193. package/types/components/Tooltip/Tooltip.type.d.ts +2 -2
  194. package/types/components/Tooltip/Tooltip.vue.d.ts +13 -13
  195. package/types/components/Tooltip/index.d.ts +33 -33
  196. package/uxd-ui.css +1 -1
  197. package/uxd-ui.esm.min.mjs +6 -6
  198. package/uxd-ui.esm.mjs +122 -64
  199. package/uxd-ui.umd.js +121 -62
  200. package/uxd-ui.umd.min.js +6 -6
package/uxd-ui.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @koi-design/uxd-ui@4.0.2 */
1
+ /*! @koi-design/uxd-ui@4.0.3 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('lucide-vue-next')) :
@@ -690,9 +690,9 @@
690
690
  };
691
691
  }
692
692
  });
693
- const _hoisted_1$_ = { ref: "containerRef" };
693
+ const _hoisted_1$Z = { ref: "containerRef" };
694
694
  function _sfc_render$2f(_ctx, _cache, $props, $setup, $data, $options) {
695
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_, [
695
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Z, [
696
696
  vue.createElementVNode("div", {
697
697
  ref: "pointRef",
698
698
  class: vue.normalizeClass(_ctx.classes),
@@ -1068,12 +1068,13 @@
1068
1068
  };
1069
1069
  };
1070
1070
 
1071
- const alertType = ["success", "info", "warning", "error"];
1071
+ const alertType = ["default", "success", "info", "warning", "error", "error-outline"];
1072
+ const alertVariant = ["surface", "outline"];
1072
1073
  const alertProps = {
1073
1074
  type: {
1074
1075
  type: String,
1075
1076
  validator: oneOf(alertType),
1076
- default: "warning"
1077
+ default: "default"
1077
1078
  },
1078
1079
  closable: {
1079
1080
  type: Boolean,
@@ -1093,10 +1094,6 @@
1093
1094
  type: String,
1094
1095
  default: ""
1095
1096
  },
1096
- banner: {
1097
- type: Boolean,
1098
- default: false
1099
- },
1100
1097
  visible: {
1101
1098
  type: Boolean,
1102
1099
  default: true
@@ -1127,9 +1124,10 @@
1127
1124
  case "warning":
1128
1125
  return lucideVueNext.CircleAlert;
1129
1126
  case "error":
1130
- return lucideVueNext.CircleX;
1127
+ case "error-outline":
1128
+ return lucideVueNext.CircleAlert;
1131
1129
  default:
1132
- return lucideVueNext.CircleCheck;
1130
+ return lucideVueNext.Terminal;
1133
1131
  }
1134
1132
  });
1135
1133
  const handleClose = (e) => {
@@ -1149,28 +1147,15 @@
1149
1147
  props.afterClose();
1150
1148
  }
1151
1149
  };
1152
- const computedColor = vue.computed(() => {
1153
- switch (props.type) {
1154
- case "info":
1155
- case "error":
1156
- case "warning":
1157
- case "success":
1158
- return props.type;
1159
- default:
1160
- return void 0;
1161
- }
1162
- });
1163
1150
  return {
1164
1151
  prefixCls,
1165
1152
  iconType,
1166
1153
  stateVisible,
1167
1154
  handleClose,
1168
- onTransitionOver,
1169
- computedColor
1155
+ onTransitionOver
1170
1156
  };
1171
1157
  }
1172
1158
  });
1173
- const _hoisted_1$Z = ["data-color"];
1174
1159
  function _sfc_render$2d(_ctx, _cache, $props, $setup, $data, $options) {
1175
1160
  const _component_UIcon = vue.resolveComponent("UIcon");
1176
1161
  const _component_X = vue.resolveComponent("X");
@@ -1186,11 +1171,9 @@
1186
1171
  `${_ctx.prefixCls}-${_ctx.type}`,
1187
1172
  {
1188
1173
  [`${_ctx.prefixCls}-with-icon`]: _ctx.showIcon,
1189
- [`${_ctx.prefixCls}-with-desc`]: _ctx.description,
1190
- [`${_ctx.prefixCls}-with-banner`]: _ctx.banner
1174
+ [`${_ctx.prefixCls}-with-desc`]: _ctx.description
1191
1175
  }
1192
- ]),
1193
- "data-color": _ctx.computedColor
1176
+ ])
1194
1177
  }, [
1195
1178
  _ctx.showIcon ? (vue.openBlock(), vue.createElementBlock("span", {
1196
1179
  key: 0,
@@ -1203,12 +1186,12 @@
1203
1186
  _: 1
1204
1187
  })
1205
1188
  ], 2)) : vue.createCommentVNode("v-if", true),
1206
- vue.createElementVNode("span", {
1189
+ vue.createElementVNode("div", {
1207
1190
  class: vue.normalizeClass(`${_ctx.prefixCls}-message`)
1208
1191
  }, [
1209
1192
  vue.renderSlot(_ctx.$slots, "default")
1210
1193
  ], 2),
1211
- vue.createElementVNode("span", {
1194
+ vue.createElementVNode("div", {
1212
1195
  class: vue.normalizeClass(`${_ctx.prefixCls}-desc`)
1213
1196
  }, vue.toDisplayString(_ctx.description), 3),
1214
1197
  _ctx.closable ? (vue.openBlock(), vue.createElementBlock("a", {
@@ -1225,7 +1208,7 @@
1225
1208
  })
1226
1209
  ])
1227
1210
  ], 2)) : vue.createCommentVNode("v-if", true)
1228
- ], 10, _hoisted_1$Z)) : vue.createCommentVNode("v-if", true)
1211
+ ], 2)) : vue.createCommentVNode("v-if", true)
1229
1212
  ]),
1230
1213
  _: 3
1231
1214
  }, 8, ["onAfterLeave"]);
@@ -11948,7 +11931,7 @@
11948
11931
  color: {
11949
11932
  type: String,
11950
11933
  default: void 0,
11951
- validator: oneOf([...colorType, "light"])
11934
+ validator: oneOf(["red", "light"])
11952
11935
  }
11953
11936
  };
11954
11937
  const tooltipEmits = {
@@ -11973,44 +11956,120 @@
11973
11956
  if (((_a = popupRef.value) == null ? void 0 : _a.reference) && innerRef.value) {
11974
11957
  const { width, height } = findDOMNode(popupRef.value.reference).getBoundingClientRect();
11975
11958
  const { width: contentWidth, height: contentHeight } = innerRef.value.getBoundingClientRect();
11976
- if (props.placement === "left-start" || props.placement === "right-start") {
11959
+ if (props.placement === "left") {
11960
+ return {
11961
+ top: "50%",
11962
+ right: "0",
11963
+ transform: "translateY(-50%) translateX(-50%)"
11964
+ };
11965
+ }
11966
+ if (props.placement === "left-start") {
11977
11967
  let top = height / 2;
11978
11968
  if (top > contentHeight) {
11979
11969
  top = 8;
11980
11970
  }
11981
11971
  return {
11982
11972
  top: `${top}px`,
11983
- transform: "translateY(-50%)"
11973
+ right: "0",
11974
+ transform: "translateY(-50%) translateX(-50%)"
11984
11975
  };
11985
11976
  }
11986
- if (props.placement === "left-end" || props.placement === "right-end") {
11977
+ if (props.placement === "left-end") {
11987
11978
  let bottom = height / 2;
11988
11979
  if (bottom > contentHeight) {
11989
11980
  bottom = 8;
11990
11981
  }
11991
11982
  return {
11992
11983
  bottom: `${bottom}px`,
11993
- transform: "translateY(50%)"
11984
+ right: "0",
11985
+ transform: "translateY(50%) translateX(-50%)"
11994
11986
  };
11995
11987
  }
11996
- if (props.placement === "top-start" || props.placement === "bottom-start") {
11988
+ if (props.placement === "right") {
11989
+ return {
11990
+ top: "50%",
11991
+ left: "0",
11992
+ transform: "translateY(-50%) translateX(50%)"
11993
+ };
11994
+ }
11995
+ if (props.placement === "right-start") {
11996
+ let top = height / 2;
11997
+ if (top > contentHeight) {
11998
+ top = 8;
11999
+ }
12000
+ return {
12001
+ top: `${top}px`,
12002
+ left: "0",
12003
+ transform: "translateY(-50%) translateX(50%)"
12004
+ };
12005
+ }
12006
+ if (props.placement === "right-end") {
12007
+ let bottom = height / 2;
12008
+ if (bottom > contentHeight) {
12009
+ bottom = 8;
12010
+ }
12011
+ return {
12012
+ bottom: `${bottom}px`,
12013
+ left: "0",
12014
+ transform: "translateY(50%) translateX(50%)"
12015
+ };
12016
+ }
12017
+ if (props.placement === "top") {
12018
+ return {
12019
+ left: "50%",
12020
+ bottom: "0",
12021
+ transform: "translateX(-50%) translateY(-50%)"
12022
+ };
12023
+ }
12024
+ if (props.placement === "top-start") {
11997
12025
  let left = width / 2;
11998
12026
  if (left > contentWidth) {
11999
12027
  left = 16;
12000
12028
  }
12001
12029
  return {
12002
12030
  left: `${left}px`,
12003
- transform: "translateX(-50%)"
12031
+ bottom: "0",
12032
+ transform: "translateX(-50%) translateY(-50%)"
12004
12033
  };
12005
12034
  }
12006
- if (props.placement === "top-end" || props.placement === "bottom-end") {
12035
+ if (props.placement === "top-end") {
12007
12036
  let right = width / 2;
12008
12037
  if (right > contentWidth) {
12009
12038
  right = 16;
12010
12039
  }
12011
12040
  return {
12012
12041
  right: `${right}px`,
12013
- transform: "translateX(50%)"
12042
+ bottom: "0",
12043
+ transform: "translateX(50%) translateY(-50%)"
12044
+ };
12045
+ }
12046
+ if (props.placement === "bottom") {
12047
+ return {
12048
+ left: "50%",
12049
+ top: "0",
12050
+ transform: "translateX(-50%) translateY(50%)"
12051
+ };
12052
+ }
12053
+ if (props.placement === "bottom-start") {
12054
+ let left = width / 2;
12055
+ if (left > contentWidth) {
12056
+ left = 16;
12057
+ }
12058
+ return {
12059
+ left: `${left}px`,
12060
+ top: "0",
12061
+ transform: "translateX(-50%) translateY(50%)"
12062
+ };
12063
+ }
12064
+ if (props.placement === "bottom-end") {
12065
+ let right = width / 2;
12066
+ if (right > contentWidth) {
12067
+ right = 16;
12068
+ }
12069
+ return {
12070
+ right: `${right}px`,
12071
+ top: "0",
12072
+ transform: "translateX(50%) translateY(50%)"
12014
12073
  };
12015
12074
  }
12016
12075
  }
@@ -42397,11 +42456,7 @@
42397
42456
  }
42398
42457
  ])
42399
42458
  }, [
42400
- vue.createElementVNode("div", {
42401
- class: vue.normalizeClass(`${_ctx.prefixCls}-content-text`)
42402
- }, [
42403
- vue.createVNode(_component_Render, { render: _ctx.content }, null, 8, ["render"])
42404
- ], 2),
42459
+ vue.createVNode(_component_Render, { render: _ctx.content }, null, 8, ["render"]),
42405
42460
  _ctx.closable ? (vue.openBlock(), vue.createElementBlock("a", {
42406
42461
  key: 0,
42407
42462
  tabindex: "0",
@@ -42551,9 +42606,9 @@
42551
42606
  let prefixCls$1 = "uui-notice";
42552
42607
  const prefixKey$1 = "uui_notice_key_";
42553
42608
  let defaultDuration$1 = 4.5;
42554
- let defaultPlacement = "top-right";
42555
- let defaultBottom = "24px";
42556
- let defaultTop$1 = "24px";
42609
+ let defaultPlacement = "bottom-right";
42610
+ let defaultBottom = "0px";
42611
+ let defaultTop$1 = "0px";
42557
42612
  let key$1 = 0;
42558
42613
  const noticeInstance = {};
42559
42614
  const transitionName$1 = "move-notice";
@@ -42628,7 +42683,8 @@
42628
42683
  placement,
42629
42684
  top,
42630
42685
  bottom,
42631
- btn
42686
+ action,
42687
+ showIcon = true
42632
42688
  } = args;
42633
42689
  const duration = args.duration !== void 0 ? args.duration : defaultDuration$1;
42634
42690
  let iconType = propIconType || void 0;
@@ -42642,15 +42698,14 @@
42642
42698
  top,
42643
42699
  bottom
42644
42700
  });
42645
- const IconNode = iconType ? vue.createVNode("span", {
42646
- "class": `${prefixCls$1}-icon ${prefixCls$1}-icon-${type}`,
42647
- "data-color": type || void 0
42701
+ const IconNode = showIcon && iconType ? vue.createVNode("span", {
42702
+ "class": `${prefixCls$1}-icon ${prefixCls$1}-icon-${type}`
42648
42703
  }, [vue.createVNode(UIcon, {
42649
42704
  "class": `${iconClass || ""}`
42650
42705
  }, {
42651
42706
  default: () => [vue.createVNode(iconType, null, null)]
42652
42707
  })]) : null;
42653
- const withIconCls = iconType ? `${prefixCls$1}-with-icon ${prefixCls$1}-with-${type} ` : "";
42708
+ const withIconCls = showIcon && iconType ? `${prefixCls$1}-with-icon ${prefixCls$1}-with-${type} ` : "";
42654
42709
  const withDescCls = desc ? `${prefixCls$1}-with-desc` : "";
42655
42710
  instance.notice({
42656
42711
  key: target,
@@ -42660,14 +42715,16 @@
42660
42715
  style: args.style || {},
42661
42716
  class: args.class,
42662
42717
  content: () => vue.createVNode("div", {
42663
- "class": `${withIconCls} ${withDescCls}`
42664
- }, [IconNode, vue.createVNode("div", {
42718
+ "class": `${prefixCls$1}-wrapper ${withIconCls} ${withDescCls}`,
42719
+ "data-type": type || void 0
42720
+ }, [IconNode, vue.createVNode("div", null, [vue.createVNode("div", {
42665
42721
  "class": `${prefixCls$1}-title`
42666
42722
  }, [typeof title === "function" ? title() : title]), vue.createVNode("div", {
42667
42723
  "class": `${prefixCls$1}-desc`
42668
- }, [typeof desc === "function" ? desc() : desc]), btn ? vue.createVNode("span", {
42669
- "class": `${prefixCls$1}-btn`
42670
- }, [typeof btn === "function" ? btn() : btn]) : null])
42724
+ }, [typeof desc === "function" ? desc() : desc])]), action ? vue.createVNode("button", {
42725
+ "class": `${prefixCls$1}-btn`,
42726
+ "onClick": args.onAction
42727
+ }, [action]) : null])
42671
42728
  });
42672
42729
  const result = () => {
42673
42730
  const cls = `${prefixCls$1}-${placement}`;
@@ -42992,7 +43049,8 @@
42992
43049
  const notice = (args) => {
42993
43050
  const {
42994
43051
  type,
42995
- content
43052
+ content,
43053
+ showIcon = true
42996
43054
  } = args;
42997
43055
  const duration = args.duration !== void 0 ? args.duration : defaultDuration;
42998
43056
  const iconType = iconTypes[type];
@@ -43009,8 +43067,8 @@
43009
43067
  background: args.background,
43010
43068
  content: () => vue.createVNode("div", {
43011
43069
  "class": `${prefixCls}-custom-content ${prefixCls}-${type}`,
43012
- "data-color": type
43013
- }, [vue.createVNode(UIcon, {
43070
+ "data-type": type
43071
+ }, [showIcon && vue.createVNode(UIcon, {
43014
43072
  "spin": type === "loading"
43015
43073
  }, {
43016
43074
  default: () => [vue.createVNode(iconType, null, null)]
@@ -44648,6 +44706,7 @@
44648
44706
  exports.alertEmits = alertEmits;
44649
44707
  exports.alertProps = alertProps;
44650
44708
  exports.alertType = alertType;
44709
+ exports.alertVariant = alertVariant;
44651
44710
  exports.anchorEmits = anchorEmits;
44652
44711
  exports.anchorLinkEmits = anchorLinkEmits;
44653
44712
  exports.anchorLinkProps = anchorLinkProps;