@uzum-tech/ui 2.0.0-beta.8 → 2.0.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.
Files changed (204) hide show
  1. package/dist/index.js +485 -373
  2. package/dist/index.mjs +485 -373
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icon/index.d.ts +2 -0
  6. package/es/_internal/icon/index.mjs +2 -1
  7. package/es/_internal/icon/src/UIcon.d.ts +126 -0
  8. package/es/_internal/icon/src/UIcon.mjs +131 -0
  9. package/es/_internal/select-menu/src/SelectOption.mjs +12 -4
  10. package/es/_mixins/use-config.d.ts +2 -1
  11. package/es/_mixins/use-config.mjs +1 -0
  12. package/es/_utils/wrap-component.mjs +3 -1
  13. package/es/auto-complete/src/AutoComplete.d.ts +70 -0
  14. package/es/auto-complete/styles/light.d.ts +7 -0
  15. package/es/carousel/src/Carousel.mjs +39 -13
  16. package/es/chat/src/Chat.d.ts +70 -0
  17. package/es/chat/src/ChatListItems.d.ts +84 -0
  18. package/es/chat/src/ChatMessages.d.ts +84 -0
  19. package/es/chat/src/ChatParts/MainArea.mjs +104 -112
  20. package/es/chat/src/ChatParts/Sidebar.d.ts +14 -0
  21. package/es/chat/src/styles/index.cssr.mjs +24 -10
  22. package/es/chat/styles/dark.d.ts +7 -0
  23. package/es/chat/styles/light.d.ts +7 -0
  24. package/es/chat/styles/light.mjs +1 -0
  25. package/es/color-picker/src/ColorInputUnit.d.ts +7 -0
  26. package/es/color-picker/src/ColorPicker.d.ts +63 -0
  27. package/es/color-picker/styles/light.d.ts +7 -0
  28. package/es/components.d.ts +1146 -39
  29. package/es/config-provider/src/ConfigProvider.d.ts +4 -1
  30. package/es/config-provider/src/ConfigProvider.mjs +8 -0
  31. package/es/config-provider/src/interface.d.ts +1 -1
  32. package/es/config-provider/src/internal-interface.d.ts +8 -0
  33. package/es/data-table/src/DataTable.d.ts +56 -0
  34. package/es/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
  35. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
  36. package/es/data-table/src/TableParts/Body.d.ts +28 -0
  37. package/es/data-table/src/TableParts/Header.d.ts +28 -0
  38. package/es/data-table/src/interface.d.ts +21 -0
  39. package/es/data-table/styles/light.d.ts +7 -0
  40. package/es/date-picker/src/DatePicker.d.ts +147 -0
  41. package/es/date-picker/src/panel/date.d.ts +42 -0
  42. package/es/date-picker/src/panel/daterange.d.ts +42 -0
  43. package/es/date-picker/src/panel/datetime.d.ts +42 -0
  44. package/es/date-picker/src/panel/datetimerange.d.ts +42 -0
  45. package/es/date-picker/src/panel/panelMonth.d.ts +168 -0
  46. package/es/date-picker/src/panel/panelMonthContent.d.ts +42 -0
  47. package/es/date-picker/src/panel/panelYear.d.ts +168 -0
  48. package/es/date-picker/src/panel/panelYearContent.d.ts +42 -0
  49. package/es/date-picker/src/panel/use-calendar.d.ts +42 -0
  50. package/es/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
  51. package/es/date-picker/src/panel/use-panel-common.d.ts +42 -0
  52. package/es/date-picker/styles/light.d.ts +14 -0
  53. package/es/date-picker-v2/src/DatePickerV2.d.ts +70 -0
  54. package/es/date-picker-v2/styles/dark.d.ts +7 -0
  55. package/es/date-picker-v2/styles/light.d.ts +7 -0
  56. package/es/dialog/src/DialogEnvironment.mjs +1 -2
  57. package/es/dynamic-input/src/DynamicInput.d.ts +70 -0
  58. package/es/dynamic-input/src/InputPreset.d.ts +14 -0
  59. package/es/dynamic-input/src/PairPreset.d.ts +14 -0
  60. package/es/dynamic-input/styles/light.d.ts +7 -0
  61. package/es/dynamic-tags/src/DynamicTags.d.ts +70 -0
  62. package/es/dynamic-tags/styles/light.d.ts +7 -0
  63. package/es/icon/src/Icon.d.ts +2 -109
  64. package/es/icon/src/Icon.mjs +1 -93
  65. package/es/input/src/Input.d.ts +77 -0
  66. package/es/input/src/Input.mjs +15 -0
  67. package/es/input/src/InputGroupLabel.d.ts +63 -0
  68. package/es/input/src/styles/input.cssr.mjs +1 -1
  69. package/es/input/styles/light.d.ts +7 -0
  70. package/es/input/styles/light.mjs +11 -0
  71. package/es/input-number/src/InputNumber.d.ts +70 -0
  72. package/es/input-number/styles/light.d.ts +7 -0
  73. package/es/input-otp/src/InputOtp.d.ts +70 -0
  74. package/es/input-otp/styles/light.d.ts +7 -0
  75. package/es/legacy-transfer/src/Transfer.d.ts +70 -0
  76. package/es/legacy-transfer/src/TransferFilter.d.ts +14 -0
  77. package/es/legacy-transfer/src/TransferList.d.ts +14 -0
  78. package/es/legacy-transfer/src/TransferListItem.d.ts +14 -0
  79. package/es/legacy-transfer/styles/light.d.ts +7 -0
  80. package/es/mapping-card/src/MappingCard.d.ts +9 -0
  81. package/es/mapping-card/src/MappingCardParts/Header.mjs +1 -1
  82. package/es/mapping-card/src/interface.d.ts +5 -0
  83. package/es/mapping-card/src/interface.mjs +4 -0
  84. package/es/mention/src/Mention.d.ts +70 -0
  85. package/es/mention/styles/light.d.ts +7 -0
  86. package/es/modal/src/BodyWrapper.d.ts +0 -3
  87. package/es/modal/src/Modal.d.ts +13 -7
  88. package/es/modal/src/Modal.mjs +5 -2
  89. package/es/modal/src/ModalEnvironment.d.ts +9 -5
  90. package/es/modal/src/presetProps.d.ts +1 -2
  91. package/es/modal/src/presetProps.mjs +0 -1
  92. package/es/pagination/src/Pagination.d.ts +70 -0
  93. package/es/pagination/styles/light.d.ts +7 -0
  94. package/es/time-picker/src/Panel.d.ts +14 -0
  95. package/es/time-picker/src/TimePicker.d.ts +70 -0
  96. package/es/time-picker/styles/light.d.ts +7 -0
  97. package/es/transfer/src/Transfer.d.ts +70 -0
  98. package/es/transfer/src/TransferFilter.d.ts +14 -0
  99. package/es/transfer/src/TransferList.d.ts +14 -0
  100. package/es/transfer/src/TransferListItem.d.ts +14 -0
  101. package/es/transfer/styles/light.d.ts +7 -0
  102. package/es/version.d.ts +1 -1
  103. package/es/version.mjs +1 -1
  104. package/lib/_internal/icon/index.d.ts +2 -0
  105. package/lib/_internal/icon/index.js +4 -1
  106. package/lib/_internal/icon/src/UIcon.d.ts +126 -0
  107. package/lib/_internal/icon/src/UIcon.js +108 -0
  108. package/lib/_internal/select-menu/src/SelectOption.js +8 -4
  109. package/lib/_mixins/use-config.d.ts +2 -1
  110. package/lib/_mixins/use-config.js +1 -0
  111. package/lib/_utils/wrap-component.js +3 -1
  112. package/lib/auto-complete/src/AutoComplete.d.ts +70 -0
  113. package/lib/auto-complete/styles/light.d.ts +7 -0
  114. package/lib/carousel/src/Carousel.js +26 -13
  115. package/lib/chat/src/Chat.d.ts +70 -0
  116. package/lib/chat/src/ChatListItems.d.ts +84 -0
  117. package/lib/chat/src/ChatMessages.d.ts +84 -0
  118. package/lib/chat/src/ChatParts/MainArea.js +53 -61
  119. package/lib/chat/src/ChatParts/Sidebar.d.ts +14 -0
  120. package/lib/chat/src/styles/index.cssr.js +24 -10
  121. package/lib/chat/styles/dark.d.ts +7 -0
  122. package/lib/chat/styles/light.d.ts +7 -0
  123. package/lib/chat/styles/light.js +1 -1
  124. package/lib/color-picker/src/ColorInputUnit.d.ts +7 -0
  125. package/lib/color-picker/src/ColorPicker.d.ts +63 -0
  126. package/lib/color-picker/styles/light.d.ts +7 -0
  127. package/lib/components.d.ts +1146 -39
  128. package/lib/config-provider/src/ConfigProvider.d.ts +4 -1
  129. package/lib/config-provider/src/ConfigProvider.js +8 -0
  130. package/lib/config-provider/src/interface.d.ts +1 -1
  131. package/lib/config-provider/src/internal-interface.d.ts +8 -0
  132. package/lib/data-table/src/DataTable.d.ts +56 -0
  133. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
  134. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
  135. package/lib/data-table/src/TableParts/Body.d.ts +28 -0
  136. package/lib/data-table/src/TableParts/Header.d.ts +28 -0
  137. package/lib/data-table/src/interface.d.ts +21 -0
  138. package/lib/data-table/styles/light.d.ts +7 -0
  139. package/lib/date-picker/src/DatePicker.d.ts +147 -0
  140. package/lib/date-picker/src/panel/date.d.ts +42 -0
  141. package/lib/date-picker/src/panel/daterange.d.ts +42 -0
  142. package/lib/date-picker/src/panel/datetime.d.ts +42 -0
  143. package/lib/date-picker/src/panel/datetimerange.d.ts +42 -0
  144. package/lib/date-picker/src/panel/panelMonth.d.ts +168 -0
  145. package/lib/date-picker/src/panel/panelMonthContent.d.ts +42 -0
  146. package/lib/date-picker/src/panel/panelYear.d.ts +168 -0
  147. package/lib/date-picker/src/panel/panelYearContent.d.ts +42 -0
  148. package/lib/date-picker/src/panel/use-calendar.d.ts +42 -0
  149. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
  150. package/lib/date-picker/src/panel/use-panel-common.d.ts +42 -0
  151. package/lib/date-picker/styles/light.d.ts +14 -0
  152. package/lib/date-picker-v2/src/DatePickerV2.d.ts +70 -0
  153. package/lib/date-picker-v2/styles/dark.d.ts +7 -0
  154. package/lib/date-picker-v2/styles/light.d.ts +7 -0
  155. package/lib/dialog/src/DialogEnvironment.js +1 -1
  156. package/lib/dynamic-input/src/DynamicInput.d.ts +70 -0
  157. package/lib/dynamic-input/src/InputPreset.d.ts +14 -0
  158. package/lib/dynamic-input/src/PairPreset.d.ts +14 -0
  159. package/lib/dynamic-input/styles/light.d.ts +7 -0
  160. package/lib/dynamic-tags/src/DynamicTags.d.ts +70 -0
  161. package/lib/dynamic-tags/styles/light.d.ts +7 -0
  162. package/lib/icon/src/Icon.d.ts +2 -109
  163. package/lib/icon/src/Icon.js +3 -73
  164. package/lib/input/src/Input.d.ts +77 -0
  165. package/lib/input/src/Input.js +9 -1
  166. package/lib/input/src/InputGroupLabel.d.ts +63 -0
  167. package/lib/input/src/styles/input.cssr.js +1 -1
  168. package/lib/input/styles/light.d.ts +7 -0
  169. package/lib/input/styles/light.js +11 -1
  170. package/lib/input-number/src/InputNumber.d.ts +70 -0
  171. package/lib/input-number/styles/light.d.ts +7 -0
  172. package/lib/input-otp/src/InputOtp.d.ts +70 -0
  173. package/lib/input-otp/styles/light.d.ts +7 -0
  174. package/lib/legacy-transfer/src/Transfer.d.ts +70 -0
  175. package/lib/legacy-transfer/src/TransferFilter.d.ts +14 -0
  176. package/lib/legacy-transfer/src/TransferList.d.ts +14 -0
  177. package/lib/legacy-transfer/src/TransferListItem.d.ts +14 -0
  178. package/lib/legacy-transfer/styles/light.d.ts +7 -0
  179. package/lib/mapping-card/src/MappingCard.d.ts +9 -0
  180. package/lib/mapping-card/src/MappingCardParts/Header.js +2 -2
  181. package/lib/mapping-card/src/interface.d.ts +5 -0
  182. package/lib/mapping-card/src/interface.js +4 -0
  183. package/lib/mention/src/Mention.d.ts +70 -0
  184. package/lib/mention/styles/light.d.ts +7 -0
  185. package/lib/modal/src/BodyWrapper.d.ts +0 -3
  186. package/lib/modal/src/Modal.d.ts +13 -7
  187. package/lib/modal/src/Modal.js +5 -2
  188. package/lib/modal/src/ModalEnvironment.d.ts +9 -5
  189. package/lib/modal/src/presetProps.d.ts +1 -2
  190. package/lib/modal/src/presetProps.js +1 -1
  191. package/lib/pagination/src/Pagination.d.ts +70 -0
  192. package/lib/pagination/styles/light.d.ts +7 -0
  193. package/lib/time-picker/src/Panel.d.ts +14 -0
  194. package/lib/time-picker/src/TimePicker.d.ts +70 -0
  195. package/lib/time-picker/styles/light.d.ts +7 -0
  196. package/lib/transfer/src/Transfer.d.ts +70 -0
  197. package/lib/transfer/src/TransferFilter.d.ts +14 -0
  198. package/lib/transfer/src/TransferList.d.ts +14 -0
  199. package/lib/transfer/src/TransferListItem.d.ts +14 -0
  200. package/lib/transfer/styles/light.d.ts +7 -0
  201. package/lib/version.d.ts +1 -1
  202. package/lib/version.js +1 -1
  203. package/package.json +8 -1
  204. package/web-types.json +18 -1
package/dist/index.js CHANGED
@@ -5792,7 +5792,7 @@
5792
5792
  });
5793
5793
  wrapped.__wrapped__ = true;
5794
5794
  for (const key of Object.keys(component)) {
5795
- if (/^__.*__$/.test(key) || key.endsWith("_FLAG")) {
5795
+ if (/^__.*__$/.test(key) || key.endsWith("_FLAG") || key === "alias") {
5796
5796
  wrapped[key] = component[key];
5797
5797
  }
5798
5798
  }
@@ -5809,6 +5809,7 @@
5809
5809
  inlineThemeDisabled: UConfigProvider?.inlineThemeDisabled,
5810
5810
  mergedRtlRef: UConfigProvider?.mergedRtlRef,
5811
5811
  mergedComponentPropsRef: UConfigProvider?.mergedComponentPropsRef,
5812
+ mergedIconPacksRef: UConfigProvider?.mergedIconPacksRef,
5812
5813
  mergedBreakpointsRef: UConfigProvider?.mergedBreakpointsRef,
5813
5814
  mergedBorderedRef: vue.computed(() => {
5814
5815
  const {
@@ -13049,6 +13050,28 @@
13049
13050
  }
13050
13051
  });
13051
13052
 
13053
+ var style$1U = cB("icon", `
13054
+ height: 1em;
13055
+ width: 1em;
13056
+ line-height: 1em;
13057
+ text-align: center;
13058
+ display: inline-block;
13059
+ position: relative;
13060
+ fill: currentColor;
13061
+ transform: translateZ(0);
13062
+ `, [cM("color-transition", {
13063
+ transition: "color .3s var(--u-bezier)"
13064
+ }), cM("depth", {
13065
+ color: "var(--u-color)"
13066
+ }, [c$1("svg", {
13067
+ opacity: "var(--u-opacity)",
13068
+ transition: "opacity .3s var(--u-bezier)"
13069
+ })]), c$1("svg", {
13070
+ height: "100%",
13071
+ width: "100%",
13072
+ display: "block"
13073
+ })]);
13074
+
13052
13075
  const derived$1 = {
13053
13076
  name: "common",
13054
13077
  ...commonVariables$6,
@@ -13213,6 +13236,154 @@
13213
13236
  boxShadow2: "0px 20px 80px 0px rgba(0, 0, 0, 0.07)"
13214
13237
  };
13215
13238
 
13239
+ function self$1B(vars) {
13240
+ const {
13241
+ elementsPrimary
13242
+ } = vars;
13243
+ return {
13244
+ color: elementsPrimary,
13245
+ opacity1Depth: "0.82",
13246
+ opacity2Depth: "0.72",
13247
+ opacity3Depth: "0.38",
13248
+ opacity4Depth: "0.24",
13249
+ opacity5Depth: "0.18"
13250
+ };
13251
+ }
13252
+ const iconLight = {
13253
+ name: "Icon",
13254
+ common: derived,
13255
+ self: self$1B
13256
+ };
13257
+
13258
+ const iconDark$1 = {
13259
+ name: "Icon",
13260
+ common: derived$1,
13261
+ self: self$1B
13262
+ };
13263
+
13264
+ const iconProps = {
13265
+ ...useTheme.props,
13266
+ depth: [String, Number],
13267
+ size: [Number, String],
13268
+ color: String,
13269
+ component: Object,
13270
+ name: String,
13271
+ pack: String,
13272
+ onClick: Function
13273
+ };
13274
+ const UIconImpl = vue.defineComponent({
13275
+ _n_icon__: true,
13276
+ name: "Icon",
13277
+ props: iconProps,
13278
+ setup(props) {
13279
+ const {
13280
+ mergedClsPrefixRef,
13281
+ mergedIconPacksRef,
13282
+ inlineThemeDisabled
13283
+ } = useConfig(props);
13284
+ const themeRef = useTheme("Icon", "-icon", style$1U, iconLight, props, mergedClsPrefixRef);
13285
+ const cssVarsRef = vue.computed(() => {
13286
+ const {
13287
+ depth
13288
+ } = props;
13289
+ const {
13290
+ common: {
13291
+ cubicBezierEaseInOut
13292
+ },
13293
+ self
13294
+ } = themeRef.value;
13295
+ if (depth !== void 0) {
13296
+ const {
13297
+ color,
13298
+ [`opacity${depth}Depth`]: opacity
13299
+ } = self;
13300
+ return {
13301
+ "--u-bezier": cubicBezierEaseInOut,
13302
+ "--u-color": color,
13303
+ "--u-opacity": opacity
13304
+ };
13305
+ }
13306
+ return {
13307
+ "--u-bezier": cubicBezierEaseInOut,
13308
+ "--u-color": "",
13309
+ "--u-opacity": ""
13310
+ };
13311
+ });
13312
+ const themeClassHandle = inlineThemeDisabled ? useThemeClass("icon", vue.computed(() => `${props.depth || "d"}`), cssVarsRef, props) : void 0;
13313
+ const resolvedPackedIconRef = vue.computed(() => {
13314
+ const {
13315
+ name,
13316
+ pack
13317
+ } = props;
13318
+ if (!name) return null;
13319
+ const config = mergedIconPacksRef?.value;
13320
+ if (!config) {
13321
+ warn("icon", "no icon packs configured on `u-config-provider`");
13322
+ return null;
13323
+ }
13324
+ const targetName = pack ?? config.defaultPackName;
13325
+ const target = config.packs.find(p => p.name === targetName);
13326
+ if (!target) {
13327
+ warn("icon", `icon pack "${targetName}" not found`);
13328
+ return null;
13329
+ }
13330
+ if (config.async) {
13331
+ return target.renderAsyncIcon(name);
13332
+ }
13333
+ if (!("renderIcon" in target)) {
13334
+ warn("icon", `pack "${target.name}" is async-only, set \`async: true\` on \`u-config-provider :icon-packs\``);
13335
+ return null;
13336
+ }
13337
+ return target.renderIcon(name);
13338
+ });
13339
+ return {
13340
+ mergedClsPrefix: mergedClsPrefixRef,
13341
+ resolvedPackedIcon: resolvedPackedIconRef,
13342
+ mergedStyle: vue.computed(() => {
13343
+ const {
13344
+ size,
13345
+ color
13346
+ } = props;
13347
+ return {
13348
+ fontSize: formatLength(size),
13349
+ color
13350
+ };
13351
+ }),
13352
+ cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
13353
+ themeClass: themeClassHandle?.themeClass,
13354
+ onRender: themeClassHandle?.onRender
13355
+ };
13356
+ },
13357
+ render() {
13358
+ const {
13359
+ $parent,
13360
+ depth,
13361
+ mergedClsPrefix,
13362
+ component,
13363
+ onRender,
13364
+ themeClass,
13365
+ resolvedPackedIcon
13366
+ } = this;
13367
+ if ($parent?.$options?._n_icon__) {
13368
+ warn("icon", "don't wrap `u-icon` inside `u-icon`");
13369
+ }
13370
+ onRender?.();
13371
+ return vue.h(UBaseIcon, {
13372
+ clsPrefix: mergedClsPrefix,
13373
+ role: "img",
13374
+ class: [`${mergedClsPrefix}-icon`, themeClass, {
13375
+ [`${mergedClsPrefix}-icon--depth`]: depth,
13376
+ [`${mergedClsPrefix}-icon--color-transition`]: depth !== void 0
13377
+ }],
13378
+ style: [this.cssVars, this.mergedStyle],
13379
+ onClick: this.onClick
13380
+ }, {
13381
+ default: () => resolvedPackedIcon ?? (component ? vue.h(component) : this.$slots.default?.())
13382
+ });
13383
+ }
13384
+ });
13385
+ const UIcon$1 = UIconImpl;
13386
+
13216
13387
  var commonVars$b = {
13217
13388
  iconWidth: "44px",
13218
13389
  iconHeight: "44px",
@@ -13225,7 +13396,7 @@
13225
13396
  avatarSize: "16px"
13226
13397
  };
13227
13398
 
13228
- function self$1B(vars) {
13399
+ function self$1A(vars) {
13229
13400
  const {
13230
13401
  heightHuge,
13231
13402
  fontBodyLarge,
@@ -13255,16 +13426,16 @@
13255
13426
  const accountOptionLight = {
13256
13427
  name: "AccountOption",
13257
13428
  common: derived,
13258
- self: self$1B
13429
+ self: self$1A
13259
13430
  };
13260
13431
 
13261
13432
  const accountOptionDark = {
13262
13433
  name: "AccountOption",
13263
13434
  common: derived$1,
13264
- self: self$1B
13435
+ self: self$1A
13265
13436
  };
13266
13437
 
13267
- var style$1U = cB("base-account-option", `
13438
+ var style$1T = cB("base-account-option", `
13268
13439
  display: flex;
13269
13440
  align-items: center;
13270
13441
  position: relative;
@@ -13319,7 +13490,7 @@
13319
13490
  const themeRef = useTheme(
13320
13491
  "AccountOption",
13321
13492
  "-base-account-option",
13322
- style$1U,
13493
+ style$1T,
13323
13494
  accountOptionLight,
13324
13495
  props,
13325
13496
  mergedClsPrefixRef
@@ -14758,7 +14929,7 @@
14758
14929
  })];
14759
14930
  }
14760
14931
 
14761
- var style$1T = cB("base-clear", `
14932
+ var style$1S = cB("base-clear", `
14762
14933
  flex-shrink: 0;
14763
14934
  height: 1em;
14764
14935
  width: 1em;
@@ -14799,7 +14970,7 @@
14799
14970
  onClear: Function
14800
14971
  },
14801
14972
  setup(props) {
14802
- useStyle("-base-clear", style$1T, vue.toRef(props, "clsPrefix"));
14973
+ useStyle("-base-clear", style$1S, vue.toRef(props, "clsPrefix"));
14803
14974
  return {
14804
14975
  handleMouseDown(e) {
14805
14976
  e.preventDefault();
@@ -14830,7 +15001,7 @@
14830
15001
  }
14831
15002
  });
14832
15003
 
14833
- var style$1S = cB("base-close", `
15004
+ var style$1R = cB("base-close", `
14834
15005
  display: flex;
14835
15006
  align-items: center;
14836
15007
  justify-content: center;
@@ -14902,7 +15073,7 @@
14902
15073
  absolute: Boolean
14903
15074
  },
14904
15075
  setup(props) {
14905
- useStyle("-base-close", style$1S, vue.toRef(props, "clsPrefix"));
15076
+ useStyle("-base-close", style$1R, vue.toRef(props, "clsPrefix"));
14906
15077
  return () => {
14907
15078
  const { clsPrefix, disabled, absolute, round, isButtonTag } = props;
14908
15079
  const Tag = isButtonTag ? "button" : "div";
@@ -15061,7 +15232,7 @@
15061
15232
  }
15062
15233
  });
15063
15234
 
15064
- var style$1R = c$1([c$1("@keyframes loading-container-rotate", `
15235
+ var style$1Q = c$1([c$1("@keyframes loading-container-rotate", `
15065
15236
  to {
15066
15237
  -webkit-transform: rotate(360deg);
15067
15238
  transform: rotate(360deg);
@@ -15231,7 +15402,7 @@
15231
15402
  ...exposedLoadingProps
15232
15403
  },
15233
15404
  setup(props) {
15234
- useStyle("-base-loading", style$1R, vue.toRef(props, "clsPrefix"));
15405
+ useStyle("-base-loading", style$1Q, vue.toRef(props, "clsPrefix"));
15235
15406
  },
15236
15407
  render() {
15237
15408
  const { clsPrefix, radius, strokeWidth, stroke, scale } = this;
@@ -15361,7 +15532,7 @@
15361
15532
  })];
15362
15533
  }
15363
15534
 
15364
- var style$1Q = cB("base-menu-mask", `
15535
+ var style$1P = cB("base-menu-mask", `
15365
15536
  position: absolute;
15366
15537
  left: 0;
15367
15538
  right: 0;
@@ -15384,7 +15555,7 @@
15384
15555
  }
15385
15556
  },
15386
15557
  setup(props) {
15387
- useStyle("-base-menu-mask", style$1Q, vue.toRef(props, "clsPrefix"));
15558
+ useStyle("-base-menu-mask", style$1P, vue.toRef(props, "clsPrefix"));
15388
15559
  const messageRef = vue.ref(null);
15389
15560
  let timerId = null;
15390
15561
  const uncontrolledShowRef = vue.ref(false);
@@ -15572,7 +15743,7 @@
15572
15743
  railColor: "transparent"
15573
15744
  };
15574
15745
 
15575
- function self$1A(vars) {
15746
+ function self$1z(vars) {
15576
15747
  const {
15577
15748
  scrollbarColor,
15578
15749
  scrollbarColorHover,
@@ -15592,13 +15763,13 @@
15592
15763
  const safeTopScrollbarLight = {
15593
15764
  name: "SafeTopScrollbar",
15594
15765
  common: derived,
15595
- self: self$1A
15766
+ self: self$1z
15596
15767
  };
15597
15768
 
15598
15769
  const safeTopScrollbarDark = {
15599
15770
  name: "SafeTopScrollbar",
15600
15771
  common: derived$1,
15601
- self: self$1A
15772
+ self: self$1z
15602
15773
  };
15603
15774
 
15604
15775
  cB("scrollbar", [cM("rtl", `
@@ -15611,7 +15782,7 @@
15611
15782
  right: unset;
15612
15783
  `)])])])]);
15613
15784
 
15614
- var style$1P = cB("safe-top-scrollbar", `
15785
+ var style$1O = cB("safe-top-scrollbar", `
15615
15786
  overflow: hidden;
15616
15787
  position: relative;
15617
15788
  z-index: auto;
@@ -15760,7 +15931,7 @@
15760
15931
  const themeRef = useTheme(
15761
15932
  "SafeTopScrollbar",
15762
15933
  "-safe-top-scrollbar",
15763
- style$1P,
15934
+ style$1O,
15764
15935
  safeTopScrollbarLight,
15765
15936
  props,
15766
15937
  mergedClsPrefixRef
@@ -16494,7 +16665,7 @@
16494
16665
  railColor: "transparent"
16495
16666
  };
16496
16667
 
16497
- function self$1z(vars) {
16668
+ function self$1y(vars) {
16498
16669
  const {
16499
16670
  scrollbarColor,
16500
16671
  scrollbarColorHover,
@@ -16514,13 +16685,13 @@
16514
16685
  const scrollbarLight = {
16515
16686
  name: "Scrollbar",
16516
16687
  common: derived,
16517
- self: self$1z
16688
+ self: self$1y
16518
16689
  };
16519
16690
 
16520
16691
  const scrollbarDark = {
16521
16692
  name: "Scrollbar",
16522
16693
  common: derived$1,
16523
- self: self$1z
16694
+ self: self$1y
16524
16695
  };
16525
16696
 
16526
16697
  var rtlStyle$t = cB("scrollbar", [cM("rtl", `
@@ -16538,7 +16709,7 @@
16538
16709
  style: rtlStyle$t
16539
16710
  };
16540
16711
 
16541
- var style$1O = cB("scrollbar", `
16712
+ var style$1N = cB("scrollbar", `
16542
16713
  overflow: hidden;
16543
16714
  position: relative;
16544
16715
  z-index: auto;
@@ -16681,7 +16852,7 @@
16681
16852
  const themeRef = useTheme(
16682
16853
  "Scrollbar",
16683
16854
  "-scrollbar",
16684
- style$1O,
16855
+ style$1N,
16685
16856
  scrollbarLight,
16686
16857
  props,
16687
16858
  mergedClsPrefixRef
@@ -18053,7 +18224,7 @@
18053
18224
  return treemate;
18054
18225
  }
18055
18226
 
18056
- function self$1y(vars) {
18227
+ function self$1x(vars) {
18057
18228
  const {
18058
18229
  fontBodyMedium,
18059
18230
  fontTitleLarge,
@@ -18085,16 +18256,16 @@
18085
18256
  const emptyLight = {
18086
18257
  name: "Empty",
18087
18258
  common: derived,
18088
- self: self$1y
18259
+ self: self$1x
18089
18260
  };
18090
18261
 
18091
18262
  const emptyDark$1 = {
18092
18263
  name: "Empty",
18093
18264
  common: derived$1,
18094
- self: self$1y
18265
+ self: self$1x
18095
18266
  };
18096
18267
 
18097
- var style$1N = cB("empty", `
18268
+ var style$1M = cB("empty", `
18098
18269
  display: flex;
18099
18270
  flex-direction: column;
18100
18271
  align-items: center;
@@ -18172,7 +18343,7 @@
18172
18343
  const themeRef = useTheme(
18173
18344
  "Empty",
18174
18345
  "-empty",
18175
- style$1N,
18346
+ style$1M,
18176
18347
  emptyLight,
18177
18348
  props,
18178
18349
  mergedClsPrefixRef
@@ -18260,7 +18431,7 @@
18260
18431
  }
18261
18432
  });
18262
18433
 
18263
- function self$1x(vars) {
18434
+ function self$1w(vars) {
18264
18435
  const {
18265
18436
  borderRadius,
18266
18437
  iconMedium,
@@ -18317,7 +18488,7 @@
18317
18488
  Scrollbar: scrollbarLight,
18318
18489
  Empty: emptyLight
18319
18490
  },
18320
- self: self$1x
18491
+ self: self$1w
18321
18492
  });
18322
18493
 
18323
18494
  const internalSelectMenuDark = {
@@ -18327,7 +18498,7 @@
18327
18498
  Scrollbar: scrollbarDark,
18328
18499
  Empty: emptyDark$1
18329
18500
  },
18330
- self: self$1x
18501
+ self: self$1w
18331
18502
  };
18332
18503
 
18333
18504
  cB("base-select-menu", [cM("rtl", `
@@ -18427,27 +18598,31 @@
18427
18598
  } = vue.inject(internalSelectionMenuInjectionKey);
18428
18599
  const isPendingRef = useMemo(() => {
18429
18600
  const { value: pendingTmNode } = pendingTmNodeRef;
18430
- if (!pendingTmNode)
18601
+ if (!pendingTmNode) {
18431
18602
  return false;
18603
+ }
18432
18604
  return props.tmNode.key === pendingTmNode.key;
18433
18605
  });
18434
18606
  function handleClick(e) {
18435
18607
  const { tmNode } = props;
18436
- if (tmNode.disabled)
18608
+ if (tmNode.disabled) {
18437
18609
  return;
18610
+ }
18438
18611
  handleOptionClick(e, tmNode);
18439
18612
  }
18440
18613
  function handleMouseEnter(e) {
18441
18614
  const { tmNode } = props;
18442
- if (tmNode.disabled)
18615
+ if (tmNode.disabled) {
18443
18616
  return;
18617
+ }
18444
18618
  handleOptionMouseEnter(e, tmNode);
18445
18619
  }
18446
18620
  function handleMouseMove(e) {
18447
18621
  const { tmNode } = props;
18448
18622
  const { value: isPending } = isPendingRef;
18449
- if (tmNode.disabled || isPending)
18623
+ if (tmNode.disabled || isPending) {
18450
18624
  return;
18625
+ }
18451
18626
  handleOptionMouseEnter(e, tmNode);
18452
18627
  }
18453
18628
  return {
@@ -18564,7 +18739,7 @@
18564
18739
  })];
18565
18740
  }
18566
18741
 
18567
- var style$1M = cB("base-select-menu", `
18742
+ var style$1L = cB("base-select-menu", `
18568
18743
  line-height: 1.5;
18569
18744
  outline: none;
18570
18745
  z-index: 0;
@@ -18752,7 +18927,7 @@
18752
18927
  const themeRef = useTheme(
18753
18928
  "InternalSelectMenu",
18754
18929
  "-internal-select-menu",
18755
- style$1M,
18930
+ style$1L,
18756
18931
  internalSelectMenuLight,
18757
18932
  props,
18758
18933
  vue.toRef(props, "clsPrefix")
@@ -19220,7 +19395,7 @@
19220
19395
  }
19221
19396
  });
19222
19397
 
19223
- function self$1w(vars) {
19398
+ function self$1v(vars) {
19224
19399
  const {
19225
19400
  fontBodyMedium,
19226
19401
  containerPrimary,
@@ -19247,13 +19422,13 @@
19247
19422
  const popoverLight = {
19248
19423
  name: "Popover",
19249
19424
  common: derived,
19250
- self: self$1w
19425
+ self: self$1v
19251
19426
  };
19252
19427
 
19253
19428
  const popoverDark = {
19254
19429
  name: "Popover",
19255
19430
  common: derived$1,
19256
- self: self$1w
19431
+ self: self$1v
19257
19432
  };
19258
19433
 
19259
19434
  cB("popover", [cM("rtl", `
@@ -19268,7 +19443,7 @@
19268
19443
  right: "left"
19269
19444
  };
19270
19445
  const arrowSize = "var(--u-arrow-height) * 1.414";
19271
- var style$1L = c$1([cB("popover", `
19446
+ var style$1K = c$1([cB("popover", `
19272
19447
  transition:
19273
19448
  box-shadow .3s var(--u-bezier),
19274
19449
  background-color .3s var(--u-bezier),
@@ -19487,7 +19662,7 @@
19487
19662
  const themeRef = useTheme(
19488
19663
  "Popover",
19489
19664
  "-popover",
19490
- style$1L,
19665
+ style$1K,
19491
19666
  popoverLight,
19492
19667
  props,
19493
19668
  mergedClsPrefixRef
@@ -20314,7 +20489,7 @@
20314
20489
  }
20315
20490
  });
20316
20491
 
20317
- function self$1v(vars) {
20492
+ function self$1u(vars) {
20318
20493
  const {
20319
20494
  opacityDisabled,
20320
20495
  borderRadiusSmall: borderRadius,
@@ -20412,13 +20587,13 @@
20412
20587
  const tagLight = {
20413
20588
  name: "Tag",
20414
20589
  common: derived,
20415
- self: self$1v
20590
+ self: self$1u
20416
20591
  };
20417
20592
 
20418
20593
  const tagDark = {
20419
20594
  name: "Tag",
20420
20595
  common: derived$1,
20421
- self: self$1v
20596
+ self: self$1u
20422
20597
  };
20423
20598
 
20424
20599
  var rtlStyle$s = cB("tag", [cM("rtl", `
@@ -20465,7 +20640,7 @@
20465
20640
  }
20466
20641
  };
20467
20642
 
20468
- var style$1K = cB("tag", `
20643
+ var style$1J = cB("tag", `
20469
20644
  white-space: nowrap;
20470
20645
  position: relative;
20471
20646
  box-sizing: border-box;
@@ -20632,7 +20807,7 @@
20632
20807
  const themeRef = useTheme(
20633
20808
  "Tag",
20634
20809
  "-tag",
20635
- style$1K,
20810
+ style$1J,
20636
20811
  tagLight,
20637
20812
  props,
20638
20813
  mergedClsPrefixRef
@@ -20996,7 +21171,7 @@
20996
21171
  }
20997
21172
  });
20998
21173
 
20999
- function self$1u(vars) {
21174
+ function self$1t(vars) {
21000
21175
  const {
21001
21176
  heightSmall,
21002
21177
  heightMedium,
@@ -21016,10 +21191,10 @@
21016
21191
  }
21017
21192
  const skeletonLight$1 = {
21018
21193
  common: derived,
21019
- self: self$1u
21194
+ self: self$1t
21020
21195
  };
21021
21196
 
21022
- var style$1J = c$1([cB("skeleton", `
21197
+ var style$1I = c$1([cB("skeleton", `
21023
21198
  height: 1em;
21024
21199
  width: 100%;
21025
21200
  transition: background-color .3s var(--u-bezier);
@@ -21075,7 +21250,7 @@
21075
21250
  const themeRef = useTheme(
21076
21251
  "Skeleton",
21077
21252
  "-skeleton",
21078
- style$1J,
21253
+ style$1I,
21079
21254
  skeletonLight$1,
21080
21255
  props,
21081
21256
  mergedClsPrefixRef
@@ -21191,7 +21366,7 @@
21191
21366
  }
21192
21367
  });
21193
21368
 
21194
- function self$1t(vars) {
21369
+ function self$1s(vars) {
21195
21370
  const {
21196
21371
  borderRadius,
21197
21372
  iconMedium,
@@ -21349,7 +21524,7 @@
21349
21524
  peers: {
21350
21525
  Popover: popoverLight
21351
21526
  },
21352
- self: self$1t
21527
+ self: self$1s
21353
21528
  });
21354
21529
 
21355
21530
  const internalSelectionDark = {
@@ -21358,7 +21533,7 @@
21358
21533
  peers: {
21359
21534
  Popover: popoverDark
21360
21535
  },
21361
- self: self$1t
21536
+ self: self$1s
21362
21537
  };
21363
21538
 
21364
21539
  cB("base-selection", [cM("rtl", `
@@ -21391,7 +21566,7 @@
21391
21566
  color: var(--u-arrow-color${state}-secondary);
21392
21567
  `)])];
21393
21568
  }
21394
- var style$1I = c$1([cB("base-selection", `
21569
+ var style$1H = c$1([cB("base-selection", `
21395
21570
  position: relative;
21396
21571
  z-index: auto;
21397
21572
  box-shadow: none;
@@ -21742,7 +21917,7 @@
21742
21917
  const themeRef = useTheme(
21743
21918
  "InternalSelection",
21744
21919
  "-internal-selection",
21745
- style$1I,
21920
+ style$1H,
21746
21921
  internalSelectionLight,
21747
21922
  props,
21748
21923
  vue.toRef(props, "clsPrefix")
@@ -22823,7 +22998,7 @@
22823
22998
  })];
22824
22999
  }
22825
23000
 
22826
- var style$1H = c$1([c$1("@keyframes u-base-slot-machine-fade-up-in", `
23001
+ var style$1G = c$1([c$1("@keyframes u-base-slot-machine-fade-up-in", `
22827
23002
  from {
22828
23003
  transform: translateY(60%);
22829
23004
  opacity: 0;
@@ -22942,7 +23117,7 @@
22942
23117
  }
22943
23118
  },
22944
23119
  setup(props) {
22945
- useStyle("-base-slot-machine", style$1H, vue.toRef(props, "clsPrefix"));
23120
+ useStyle("-base-slot-machine", style$1G, vue.toRef(props, "clsPrefix"));
22946
23121
  const oldValueRef = vue.ref();
22947
23122
  const newValueRef = vue.ref();
22948
23123
  const numbersRef = vue.computed(() => {
@@ -22997,7 +23172,7 @@
22997
23172
  }
22998
23173
  });
22999
23174
 
23000
- function self$1s(vars) {
23175
+ function self$1r(vars) {
23001
23176
  const {
23002
23177
  borderRadiusSmall,
23003
23178
  brandPrimary500,
@@ -23033,10 +23208,10 @@
23033
23208
  }
23034
23209
  const typographyLight$1 = {
23035
23210
  common: derived,
23036
- self: self$1s
23211
+ self: self$1r
23037
23212
  };
23038
23213
 
23039
- var style$1G = cB("text", `
23214
+ var style$1F = cB("text", `
23040
23215
  transition: color .3s var(--u-bezier);
23041
23216
  color: var(--u-text-color);
23042
23217
  margin: 0;
@@ -23344,7 +23519,7 @@
23344
23519
  const themeRef = useTheme(
23345
23520
  "Typography",
23346
23521
  "-text",
23347
- style$1G,
23522
+ style$1F,
23348
23523
  typographyLight$1,
23349
23524
  props,
23350
23525
  mergedClsPrefixRef
@@ -23432,7 +23607,7 @@
23432
23607
  }
23433
23608
  });
23434
23609
 
23435
- var style$1F = cB("base-wave", `
23610
+ var style$1E = cB("base-wave", `
23436
23611
  position: absolute;
23437
23612
  left: 0;
23438
23613
  right: 0;
@@ -23450,7 +23625,7 @@
23450
23625
  }
23451
23626
  },
23452
23627
  setup(props) {
23453
- useStyle("-base-wave", style$1F, vue.toRef(props, "clsPrefix"));
23628
+ useStyle("-base-wave", style$1E, vue.toRef(props, "clsPrefix"));
23454
23629
  const selfRef = vue.ref(null);
23455
23630
  const activeRef = vue.ref(false);
23456
23631
  let animationTimerId = null;
@@ -23495,142 +23670,6 @@
23495
23670
  }
23496
23671
  });
23497
23672
 
23498
- function self$1r(vars) {
23499
- const {
23500
- elementsPrimary
23501
- } = vars;
23502
- return {
23503
- color: elementsPrimary,
23504
- opacity1Depth: "0.82",
23505
- opacity2Depth: "0.72",
23506
- opacity3Depth: "0.38",
23507
- opacity4Depth: "0.24",
23508
- opacity5Depth: "0.18"
23509
- };
23510
- }
23511
- const iconLight = {
23512
- name: "Icon",
23513
- common: derived,
23514
- self: self$1r
23515
- };
23516
-
23517
- const iconDark$1 = {
23518
- name: "Icon",
23519
- common: derived$1,
23520
- self: self$1r
23521
- };
23522
-
23523
- var style$1E = cB("icon", `
23524
- height: 1em;
23525
- width: 1em;
23526
- line-height: 1em;
23527
- text-align: center;
23528
- display: inline-block;
23529
- position: relative;
23530
- fill: currentColor;
23531
- transform: translateZ(0);
23532
- `, [cM("color-transition", {
23533
- transition: "color .3s var(--u-bezier)"
23534
- }), cM("depth", {
23535
- color: "var(--u-color)"
23536
- }, [c$1("svg", {
23537
- opacity: "var(--u-opacity)",
23538
- transition: "opacity .3s var(--u-bezier)"
23539
- })]), c$1("svg", {
23540
- height: "100%",
23541
- width: "100%",
23542
- display: "block"
23543
- })]);
23544
-
23545
- const iconProps = {
23546
- ...useTheme.props,
23547
- depth: [String, Number],
23548
- size: [Number, String],
23549
- color: String,
23550
- component: Object,
23551
- onClick: Function
23552
- };
23553
- const UIcon$1 = vue.defineComponent({
23554
- _n_icon__: true,
23555
- name: "Icon",
23556
- inheritAttrs: false,
23557
- props: iconProps,
23558
- setup(props) {
23559
- const {
23560
- mergedClsPrefixRef,
23561
- inlineThemeDisabled
23562
- } = useConfig(props);
23563
- const themeRef = useTheme("Icon", "-icon", style$1E, iconLight, props, mergedClsPrefixRef);
23564
- const cssVarsRef = vue.computed(() => {
23565
- const {
23566
- depth
23567
- } = props;
23568
- const {
23569
- common: {
23570
- cubicBezierEaseInOut
23571
- },
23572
- self
23573
- } = themeRef.value;
23574
- if (depth !== void 0) {
23575
- const {
23576
- color,
23577
- [`opacity${depth}Depth`]: opacity
23578
- } = self;
23579
- return {
23580
- "--u-bezier": cubicBezierEaseInOut,
23581
- "--u-color": color,
23582
- "--u-opacity": opacity
23583
- };
23584
- }
23585
- return {
23586
- "--u-bezier": cubicBezierEaseInOut,
23587
- "--u-color": "",
23588
- "--u-opacity": ""
23589
- };
23590
- });
23591
- const themeClassHandle = inlineThemeDisabled ? useThemeClass("icon", vue.computed(() => `${props.depth || "d"}`), cssVarsRef, props) : void 0;
23592
- return {
23593
- mergedClsPrefix: mergedClsPrefixRef,
23594
- mergedStyle: vue.computed(() => {
23595
- const {
23596
- size,
23597
- color
23598
- } = props;
23599
- return {
23600
- fontSize: formatLength(size),
23601
- color
23602
- };
23603
- }),
23604
- cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
23605
- themeClass: themeClassHandle?.themeClass,
23606
- onRender: themeClassHandle?.onRender
23607
- };
23608
- },
23609
- render() {
23610
- const {
23611
- $parent,
23612
- depth,
23613
- mergedClsPrefix,
23614
- component,
23615
- onRender,
23616
- themeClass
23617
- } = this;
23618
- if ($parent?.$options?._n_icon__) {
23619
- warn("icon", "don't wrap `u-icon` inside `u-icon`");
23620
- }
23621
- onRender?.();
23622
- return vue.h("i", vue.mergeProps(this.$attrs, {
23623
- role: "img",
23624
- class: [`${mergedClsPrefix}-icon`, themeClass, {
23625
- [`${mergedClsPrefix}-icon--depth`]: depth,
23626
- [`${mergedClsPrefix}-icon--color-transition`]: depth !== void 0
23627
- }],
23628
- style: [this.cssVars, this.mergedStyle],
23629
- onClick: this.onClick
23630
- }), component ? vue.h(component) : this.$slots);
23631
- }
23632
- });
23633
-
23634
23673
  function self$1q(vars) {
23635
23674
  const {
23636
23675
  borderRadius,
@@ -25753,6 +25792,7 @@
25753
25792
  containerPrimary,
25754
25793
  elementsQuaternary,
25755
25794
  elementsPrimary,
25795
+ staticGreen,
25756
25796
  staticOrange,
25757
25797
  staticRed,
25758
25798
  elementsQuinary,
@@ -25806,6 +25846,16 @@
25806
25846
  alpha: 0.1
25807
25847
  })}`,
25808
25848
  loadingColor: elementsPrimary,
25849
+ // success
25850
+ loadingColorSuccess: staticGreen,
25851
+ borderSuccess: `2px solid ${staticGreen}`,
25852
+ borderHoverSuccess: `2px solid ${staticGreen}`,
25853
+ colorFocusSuccess: containerPrimary,
25854
+ borderFocusSuccess: `2px solid ${staticGreen}`,
25855
+ boxShadowFocusSuccess: `0 0 0 4px ${changeColor(staticGreen, {
25856
+ alpha: 0.1
25857
+ })}`,
25858
+ caretColorSuccess: elementsPrimary,
25809
25859
  // warning
25810
25860
  loadingColorWarning: staticOrange,
25811
25861
  borderWarning: `2px solid ${staticOrange}`,
@@ -26108,7 +26158,7 @@
26108
26158
  transition: color .3s var(--u-bezier);
26109
26159
  margin-left: 4px;
26110
26160
  font-variant: tabular-nums;
26111
- `), ["warning", "error"].map(status => cM(`${status}-status`, [cNotM("disabled", [cB("base-loading", `
26161
+ `), ["warning", "error", "success"].map(status => cM(`${status}-status`, [cNotM("disabled", [cB("base-loading", `
26112
26162
  color: var(--u-loading-color-${status})
26113
26163
  `), cE("input-el, textarea-el", `
26114
26164
  caret-color: var(--u-caret-color-${status});
@@ -28997,6 +29047,7 @@
28997
29047
  borderRadius,
28998
29048
  textColor,
28999
29049
  caretColor,
29050
+ caretColorSuccess,
29000
29051
  caretColorError,
29001
29052
  caretColorWarning,
29002
29053
  textDecorationColor,
@@ -29012,6 +29063,11 @@
29012
29063
  textColorDisabled,
29013
29064
  boxShadowFocus,
29014
29065
  iconSize,
29066
+ colorFocusSuccess,
29067
+ boxShadowFocusSuccess,
29068
+ borderSuccess,
29069
+ borderFocusSuccess,
29070
+ borderHoverSuccess,
29015
29071
  colorFocusWarning,
29016
29072
  boxShadowFocusWarning,
29017
29073
  borderWarning,
@@ -29034,6 +29090,7 @@
29034
29090
  iconColorHover,
29035
29091
  iconColorPressed,
29036
29092
  loadingColor,
29093
+ loadingColorSuccess,
29037
29094
  loadingColorError,
29038
29095
  loadingColorWarning,
29039
29096
  selectionColor,
@@ -29072,6 +29129,14 @@
29072
29129
  "--u-text-color-disabled": textColorDisabled,
29073
29130
  "--u-box-shadow-focus": boxShadowFocus,
29074
29131
  "--u-loading-color": loadingColor,
29132
+ // form success
29133
+ "--u-caret-color-success": caretColorSuccess,
29134
+ "--u-color-focus-success": colorFocusSuccess,
29135
+ "--u-box-shadow-focus-success": boxShadowFocusSuccess,
29136
+ "--u-border-success": borderSuccess,
29137
+ "--u-border-focus-success": borderFocusSuccess,
29138
+ "--u-border-hover-success": borderHoverSuccess,
29139
+ "--u-loading-color-success": loadingColorSuccess,
29075
29140
  // form warning
29076
29141
  "--u-caret-color-warning": caretColorWarning,
29077
29142
  "--u-color-focus-warning": colorFocusWarning,
@@ -40288,8 +40353,9 @@
40288
40353
  const slideSizesTrigger = vue.ref(0);
40289
40354
  const slideSizesRef = vue.computed(() => {
40290
40355
  const { value: slidesEls } = slideElsRef;
40291
- if (!slidesEls.length)
40356
+ if (!slidesEls.length) {
40292
40357
  return [];
40358
+ }
40293
40359
  slideSizesTrigger.value;
40294
40360
  const { value: autoSlideSize } = autoSlideSizeRef;
40295
40361
  if (autoSlideSize) {
@@ -40310,8 +40376,9 @@
40310
40376
  });
40311
40377
  const slideTranlatesRef = vue.computed(() => {
40312
40378
  const { value: slideSizes } = slideSizesRef;
40313
- if (!slideSizes.length)
40379
+ if (!slideSizes.length) {
40314
40380
  return [];
40381
+ }
40315
40382
  const { centeredSlides, spaceBetween } = props;
40316
40383
  const { value: axis } = sizeAxisRef;
40317
40384
  const { [axis]: perViewSize } = perViewSizeRef.value;
@@ -40335,8 +40402,9 @@
40335
40402
  );
40336
40403
  const slideStylesRef = vue.computed(() => {
40337
40404
  const { value: slidesEls } = slideElsRef;
40338
- if (!slidesEls.length)
40405
+ if (!slidesEls.length) {
40339
40406
  return [];
40407
+ }
40340
40408
  const useComputedSize = !(autoSlideSizeRef.value || realSlidesPerViewRef.value === 1);
40341
40409
  const getSlideSize = (index) => {
40342
40410
  if (useComputedSize) {
@@ -40371,8 +40439,9 @@
40371
40439
  } else {
40372
40440
  const { value: slideSizes } = slideSizesRef;
40373
40441
  const { length } = slideSizes;
40374
- if (!length)
40442
+ if (!length) {
40375
40443
  return totalSlides;
40444
+ }
40376
40445
  const { value: translates } = slideTranlatesRef;
40377
40446
  const { value: axis } = sizeAxisRef;
40378
40447
  const perViewSize = perViewSizeRef.value[axis];
@@ -40461,21 +40530,25 @@
40461
40530
  }
40462
40531
  function prev() {
40463
40532
  const prevIndex = getRealPrevIndex();
40464
- if (prevIndex !== null)
40533
+ if (prevIndex !== null) {
40465
40534
  toRealIndex(prevIndex);
40535
+ }
40466
40536
  }
40467
40537
  function next() {
40468
40538
  const nextIndex = getRealNextIndex();
40469
- if (nextIndex !== null)
40539
+ if (nextIndex !== null) {
40470
40540
  toRealIndex(nextIndex);
40541
+ }
40471
40542
  }
40472
40543
  function prevIfSlideTransitionEnd() {
40473
- if (!inTransition || !duplicatedableRef.value)
40544
+ if (!inTransition || !duplicatedableRef.value) {
40474
40545
  prev();
40546
+ }
40475
40547
  }
40476
40548
  function nextIfSlideTransitionEnd() {
40477
- if (!inTransition || !duplicatedableRef.value)
40549
+ if (!inTransition || !duplicatedableRef.value) {
40478
40550
  next();
40551
+ }
40479
40552
  }
40480
40553
  let previousTranslate = 0;
40481
40554
  const translateStyleRef = vue.ref({});
@@ -40551,13 +40624,15 @@
40551
40624
  };
40552
40625
  provideCarouselContext(carouselContext);
40553
40626
  function addSlide(slide) {
40554
- if (!slide)
40627
+ if (!slide) {
40555
40628
  return;
40629
+ }
40556
40630
  slideElsRef.value.push(slide);
40557
40631
  }
40558
40632
  function removeSlide(slide) {
40559
- if (!slide)
40633
+ if (!slide) {
40560
40634
  return;
40635
+ }
40561
40636
  const index = getSlideIndex(slide);
40562
40637
  if (index !== -1) {
40563
40638
  slideElsRef.value.splice(index, 1);
@@ -40611,8 +40686,9 @@
40611
40686
  let dragOffset = 0;
40612
40687
  let dragStartTime = 0;
40613
40688
  function handleTouchstart(event) {
40614
- if (globalDragging)
40689
+ if (globalDragging) {
40615
40690
  return;
40691
+ }
40616
40692
  if (!slidesElRef.value?.contains(
40617
40693
  getPreciseEventTarget(event)
40618
40694
  )) {
@@ -40728,8 +40804,9 @@
40728
40804
  }
40729
40805
  function handleMousewheel(event) {
40730
40806
  event.preventDefault();
40731
- if (inTransition)
40807
+ if (inTransition) {
40732
40808
  return;
40809
+ }
40733
40810
  let { deltaX, deltaY } = event;
40734
40811
  if (event.shiftKey && !deltaX) {
40735
40812
  deltaX = deltaY;
@@ -40800,8 +40877,9 @@
40800
40877
  vue.watch(
40801
40878
  realIndexRef,
40802
40879
  (realIndex, lastRealIndex) => {
40803
- if (realIndex === lastRealIndex)
40880
+ if (realIndex === lastRealIndex) {
40804
40881
  return;
40882
+ }
40805
40883
  resetAutoplay();
40806
40884
  if (sequenceLayoutRef.value) {
40807
40885
  if (duplicatedableRef.value && displayTotalViewRef.value > 2) {
@@ -43991,6 +44069,7 @@
43991
44069
  ...originalInputSelf,
43992
44070
  color: elementsTertiary,
43993
44071
  colorFocus: elementsTertiary,
44072
+ heightMedium: "45px",
43994
44073
  border: "none",
43995
44074
  borderFocus: "none",
43996
44075
  borderHover: "none",
@@ -53490,23 +53569,28 @@
53490
53569
  width: 100%;
53491
53570
  padding: 24px 20px 10px 24px;
53492
53571
  flex-shrink: 0;
53572
+ `), cE("header-inner", `
53573
+ display: grid;
53574
+ grid-template-columns: minmax(0, 1fr) auto;
53575
+ align-items: flex-start;
53576
+ gap: 8px;
53577
+ `), cE("header-title-wrap", `
53578
+ min-width: 0;
53579
+ overflow: hidden;
53493
53580
  `), cE("header-title", `
53494
53581
  color: var(--u-header-title-color);
53495
- flex: 1;
53496
- min-width: 0;
53582
+ display: block;
53497
53583
  overflow: hidden;
53498
- text-overflow: ellipsis;
53499
53584
  white-space: nowrap;
53500
- display: block;
53501
- margin-right: 16px;
53585
+ text-overflow: ellipsis;
53586
+ width: 100%;
53502
53587
  `), cE("header-subtitle", `
53503
53588
  display: block;
53504
53589
  color: var(--u-sidebar-item-subtitle-color);
53505
53590
  overflow: hidden;
53506
53591
  text-overflow: ellipsis;
53507
53592
  white-space: nowrap;
53508
- minWidth: 0;
53509
- maxWidth: 100%;
53593
+ width: 100%;
53510
53594
  `), cE("header-actions", `
53511
53595
  padding: 4px;
53512
53596
  flex-shrink: 0;
@@ -53609,6 +53693,7 @@
53609
53693
  height: 44px;
53610
53694
  `)]), cE("message-text", `
53611
53695
  padding: 12px 16px;
53696
+ white-space: pre-wrap;
53612
53697
  `), cE("message-attachment", `
53613
53698
  display: flex;
53614
53699
  align-items: center;
@@ -53685,6 +53770,7 @@
53685
53770
  `, [c$1(".u-input-wrapper", `
53686
53771
  flex-wrap: wrap;
53687
53772
  padding: 0 4px;
53773
+ height: 100%;
53688
53774
  `, [c$1(".u-input__prefix", `
53689
53775
  width: 100%;
53690
53776
  margin: 0;
@@ -53695,13 +53781,20 @@
53695
53781
  border-top-right-radius: 12px;
53696
53782
  `), c$1("li", `
53697
53783
  padding: 12px;
53698
- `)]), c$1(".u-input__input-el", `
53699
- padding: 8px;
53784
+ `)]), c$1(".u-input__textarea-el", `
53785
+ padding-top: 12px;
53786
+ padding-left: 12px;
53787
+ padding-right: 48px;
53700
53788
  `), c$1(".u-input__placeholder", `
53701
- margin: 8px;
53789
+ padding-top: 12px;
53790
+ padding-left: 12px;
53791
+ padding-right: 48px;
53702
53792
  `)])]), cE("editing-block", `
53703
53793
  width: 100%;
53704
53794
  `), cE("input-suffix", `
53795
+ position: absolute;
53796
+ right: 12px;
53797
+ bottom: 12px;
53705
53798
  color: var(--u-input-suffix-color) !important;
53706
53799
  cursor: pointer;
53707
53800
  margin-right: 4px;
@@ -54522,152 +54615,153 @@
54522
54615
  return value != null ? String(value) : "";
54523
54616
  };
54524
54617
  const renderHeader = () => {
54525
- return /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-chat-main__header` }, /* @__PURE__ */ vue.h(_UFlex, { justify: "space-between", align: "flex-start", wrap: false }, {
54526
- default: () => {
54527
- const chat = selectedChatRef.value;
54528
- const keyId = toKeyString(chat?.id);
54529
- const keyTitle = toKeyString(chat?.title);
54530
- return /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h(_UFlex, { vertical: true, size: [0, 0], justify: "flex-start" }, {
54531
- default: () => /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h(
54532
- _UText,
54533
- {
54534
- key: `${keyId}-${keyTitle}`,
54535
- variant: "heading-s-bold",
54536
- class: `${mergedClsPrefixRef.value}-chat-main__header-title`,
54537
- theme: mergedThemeRef.value.peers.Typography,
54538
- themeOverrides: mergedThemeRef.value.peerOverrides.Typography
54539
- },
54540
- {
54541
- default: () => selectedChatRef.value?.title ?? ""
54542
- }
54543
- ), isTyping.value && /* @__PURE__ */ vue.h(
54544
- _UText,
54545
- {
54546
- class: [
54547
- `${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
54548
- "typing"
54549
- ],
54550
- variant: "body-m-medium"
54551
- },
54552
- {
54553
- default: () => typingTextRef.value ?? ""
54554
- }
54555
- ))
54556
- }), /* @__PURE__ */ vue.h(
54557
- _UFlex,
54558
- {
54559
- align: "center",
54560
- size: "small",
54561
- class: `${mergedClsPrefixRef.value}-chat-main__header-actions`
54562
- },
54563
- {
54564
- default: () => resolveSlot(slots.headerActions, () => {
54565
- const shareButtonProps = {
54566
- ...headerButtonPropsRef.value,
54567
- ...headerShareButtonPropsRef.value
54568
- };
54569
- const profileButtonProps = {
54570
- ...headerButtonPropsRef.value,
54571
- ...headerProfileButtonPropsRef.value
54572
- };
54573
- const closeButtonProps = {
54574
- ...headerButtonPropsRef.value,
54575
- ...headerCloseButtonPropsRef.value
54576
- };
54577
- const shareIconProps = {
54578
- ...headerIconPropsRef.value,
54579
- ...headerShareIconPropsRef.value
54580
- };
54581
- const profileIconProps = {
54582
- ...headerIconPropsRef.value,
54583
- ...headerProfileIconPropsRef.value
54584
- };
54585
- const buttons = [];
54586
- buttons.push(
54587
- /* @__PURE__ */ vue.h(_UTooltip, null, {
54588
- trigger: () => /* @__PURE__ */ vue.h(
54589
- Button,
54618
+ const chat = selectedChatRef.value;
54619
+ const keyId = toKeyString(chat?.id);
54620
+ const keyTitle = toKeyString(chat?.title);
54621
+ return /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-chat-main__header-inner` }, /* @__PURE__ */ vue.h(
54622
+ "div",
54623
+ {
54624
+ class: `${mergedClsPrefixRef.value}-chat-main__header-title-wrap`
54625
+ },
54626
+ /* @__PURE__ */ vue.h(
54627
+ _UText,
54628
+ {
54629
+ key: `${keyId}-${keyTitle}`,
54630
+ variant: "heading-s-bold",
54631
+ class: `${mergedClsPrefixRef.value}-chat-main__header-title`,
54632
+ theme: mergedThemeRef.value.peers.Typography,
54633
+ themeOverrides: mergedThemeRef.value.peerOverrides.Typography
54634
+ },
54635
+ {
54636
+ default: () => selectedChatRef.value?.title ?? ""
54637
+ }
54638
+ ),
54639
+ isTyping.value && /* @__PURE__ */ vue.h(
54640
+ _UText,
54641
+ {
54642
+ class: [
54643
+ `${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
54644
+ "typing"
54645
+ ],
54646
+ variant: "body-m-medium"
54647
+ },
54648
+ {
54649
+ default: () => typingTextRef.value ?? ""
54650
+ }
54651
+ )
54652
+ ), /* @__PURE__ */ vue.h(
54653
+ _UFlex,
54654
+ {
54655
+ align: "center",
54656
+ size: "small",
54657
+ class: `${mergedClsPrefixRef.value}-chat-main__header-actions`
54658
+ },
54659
+ {
54660
+ default: () => resolveSlot(slots.headerActions, () => {
54661
+ const shareButtonProps = {
54662
+ ...headerButtonPropsRef.value,
54663
+ ...headerShareButtonPropsRef.value
54664
+ };
54665
+ const profileButtonProps = {
54666
+ ...headerButtonPropsRef.value,
54667
+ ...headerProfileButtonPropsRef.value
54668
+ };
54669
+ const closeButtonProps = {
54670
+ ...headerButtonPropsRef.value,
54671
+ ...headerCloseButtonPropsRef.value
54672
+ };
54673
+ const shareIconProps = {
54674
+ ...headerIconPropsRef.value,
54675
+ ...headerShareIconPropsRef.value
54676
+ };
54677
+ const profileIconProps = {
54678
+ ...headerIconPropsRef.value,
54679
+ ...headerProfileIconPropsRef.value
54680
+ };
54681
+ const buttons = [];
54682
+ buttons.push(
54683
+ /* @__PURE__ */ vue.h(_UTooltip, null, {
54684
+ trigger: () => /* @__PURE__ */ vue.h(
54685
+ Button,
54686
+ {
54687
+ secondary: true,
54688
+ circle: true,
54689
+ size: "large",
54690
+ ...shareButtonProps,
54691
+ theme: mergedThemeRef.value.peers.Button,
54692
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54693
+ onClick: () => onChatShare?.value?.()
54694
+ },
54695
+ {
54696
+ default: () => /* @__PURE__ */ vue.h(
54697
+ UIcon$1,
54590
54698
  {
54591
- secondary: true,
54592
- circle: true,
54593
- size: "large",
54594
- ...shareButtonProps,
54595
- theme: mergedThemeRef.value.peers.Button,
54596
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54597
- onClick: () => onChatShare?.value?.()
54699
+ size: 20,
54700
+ ...shareIconProps,
54701
+ theme: mergedThemeRef.value.peers.HeaderShareIcon,
54702
+ themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
54598
54703
  },
54599
54704
  {
54600
- default: () => /* @__PURE__ */ vue.h(
54601
- UIcon$1,
54602
- {
54603
- size: 20,
54604
- ...shareIconProps,
54605
- theme: mergedThemeRef.value.peers.HeaderShareIcon,
54606
- themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
54607
- },
54608
- {
54609
- default: () => /* @__PURE__ */ vue.h(ArrowHookUpRight, null)
54610
- }
54611
- )
54705
+ default: () => /* @__PURE__ */ vue.h(ArrowHookUpRight, null)
54612
54706
  }
54613
- ),
54614
- default: () => shareButtonTooltipRef.value
54615
- })
54616
- );
54617
- buttons.push(
54618
- /* @__PURE__ */ vue.h(_UTooltip, null, {
54619
- trigger: () => /* @__PURE__ */ vue.h(
54620
- Button,
54707
+ )
54708
+ }
54709
+ ),
54710
+ default: () => shareButtonTooltipRef.value
54711
+ })
54712
+ );
54713
+ buttons.push(
54714
+ /* @__PURE__ */ vue.h(_UTooltip, null, {
54715
+ trigger: () => /* @__PURE__ */ vue.h(
54716
+ Button,
54717
+ {
54718
+ secondary: true,
54719
+ circle: true,
54720
+ size: "large",
54721
+ ...profileButtonProps,
54722
+ theme: mergedThemeRef.value.peers.Button,
54723
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54724
+ onClick: () => onUserProfile?.value?.()
54725
+ },
54726
+ {
54727
+ default: () => /* @__PURE__ */ vue.h(
54728
+ UIcon$1,
54621
54729
  {
54622
- secondary: true,
54623
- circle: true,
54624
- size: "large",
54625
- ...profileButtonProps,
54626
- theme: mergedThemeRef.value.peers.Button,
54627
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54628
- onClick: () => onUserProfile?.value?.()
54730
+ size: 20,
54731
+ ...profileIconProps,
54732
+ theme: mergedThemeRef.value.peers.HeaderProfileIcon,
54733
+ themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
54629
54734
  },
54630
54735
  {
54631
- default: () => /* @__PURE__ */ vue.h(
54632
- UIcon$1,
54633
- {
54634
- size: 20,
54635
- ...profileIconProps,
54636
- theme: mergedThemeRef.value.peers.HeaderProfileIcon,
54637
- themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
54638
- },
54639
- {
54640
- default: () => /* @__PURE__ */ vue.h(PersonNote, null)
54641
- }
54642
- )
54736
+ default: () => /* @__PURE__ */ vue.h(PersonNote, null)
54643
54737
  }
54644
- ),
54645
- default: () => profileButtonTooltipRef.value
54646
- })
54647
- );
54648
- buttons.push(
54649
- /* @__PURE__ */ vue.h(
54650
- Button,
54651
- {
54652
- type: "primary",
54653
- size: "large",
54654
- round: true,
54655
- ...closeButtonProps,
54656
- theme: mergedThemeRef.value.peers.Button,
54657
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54658
- onClick: () => onChatClose?.value?.()
54659
- },
54660
- {
54661
- default: () => closeButtonTextRef.value
54662
- }
54663
- )
54664
- );
54665
- return buttons;
54738
+ )
54739
+ }
54740
+ ),
54741
+ default: () => profileButtonTooltipRef.value
54666
54742
  })
54667
- }
54668
- ));
54743
+ );
54744
+ buttons.push(
54745
+ /* @__PURE__ */ vue.h(
54746
+ Button,
54747
+ {
54748
+ type: "primary",
54749
+ size: "large",
54750
+ round: true,
54751
+ ...closeButtonProps,
54752
+ theme: mergedThemeRef.value.peers.Button,
54753
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54754
+ onClick: () => onChatClose?.value?.()
54755
+ },
54756
+ {
54757
+ default: () => closeButtonTextRef.value
54758
+ }
54759
+ )
54760
+ );
54761
+ return buttons;
54762
+ })
54669
54763
  }
54670
- }));
54764
+ ));
54671
54765
  };
54672
54766
  const renderMessages = () => {
54673
54767
  return /* @__PURE__ */ vue.h(
@@ -54722,7 +54816,7 @@
54722
54816
  if (isSending.value) {
54723
54817
  return;
54724
54818
  }
54725
- const hasContent = inputValue.value.trim();
54819
+ const hasContent = inputValue.value;
54726
54820
  const hasAttachments = attachmentFileList.value.length > 0;
54727
54821
  if (editMessageIdRef?.value && hasContent) {
54728
54822
  isSending.value = true;
@@ -54731,7 +54825,7 @@
54731
54825
  if (messageToEdit) {
54732
54826
  const updatedMessage = {
54733
54827
  ...messageToEdit,
54734
- content: inputValue.value.trim()
54828
+ content: inputValue.value
54735
54829
  };
54736
54830
  const bubbleActions = bubbleActionsRef?.value;
54737
54831
  if (bubbleActions) {
@@ -54784,7 +54878,7 @@
54784
54878
  }
54785
54879
  return result;
54786
54880
  })() : void 0;
54787
- handleMessageSend(inputValue.value.trim(), attachments);
54881
+ handleMessageSend(inputValue.value, attachments);
54788
54882
  inputValue.value = "";
54789
54883
  attachmentFileList.value = [];
54790
54884
  chatInputs.value[selectedChatRef.value.id] = "";
@@ -54925,9 +55019,13 @@
54925
55019
  value: inputValue.value,
54926
55020
  placeholder: inputPlaceholderRef.value,
54927
55021
  class: `${mergedClsPrefixRef.value}-chat-main__input`,
54928
- ...footerInputPropsRef.value,
54929
55022
  theme: mergedThemeRef.value.peers.Input,
54930
55023
  themeOverrides: mergedThemeRef.value.peerOverrides.Input,
55024
+ type: "textarea",
55025
+ autosize: {
55026
+ minRows: 1,
55027
+ maxRows: 5
55028
+ },
54931
55029
  onUpdateValue: (value) => {
54932
55030
  inputValue.value = value;
54933
55031
  if (selectedChatRef.value) {
@@ -54940,7 +55038,8 @@
54940
55038
  e.stopPropagation();
54941
55039
  void handleSendMessage();
54942
55040
  }
54943
- }
55041
+ },
55042
+ ...footerInputPropsRef.value
54944
55043
  },
54945
55044
  {
54946
55045
  prefix: () => renderEditingBlock(),
@@ -59776,6 +59875,7 @@
59776
59875
  themeOverrides: Object,
59777
59876
  componentOptions: Object,
59778
59877
  icons: Object,
59878
+ iconPacks: Object,
59779
59879
  breakpoints: Object,
59780
59880
  breakpointProps: Object,
59781
59881
  breakpointThemeOverrides: Object,
@@ -59918,6 +60018,12 @@
59918
60018
  } = props;
59919
60019
  return icons === void 0 ? UConfigProvider?.mergedIconsRef.value : icons;
59920
60020
  });
60021
+ const mergedIconPacksRef = vue.computed(() => {
60022
+ const {
60023
+ iconPacks
60024
+ } = props;
60025
+ return iconPacks === void 0 ? UConfigProvider?.mergedIconPacksRef.value : iconPacks;
60026
+ });
59921
60027
  const updateWindowWidth = () => {
59922
60028
  if (isBrowser$1) {
59923
60029
  windowWidthRef.value = window.innerWidth;
@@ -60026,6 +60132,7 @@
60026
60132
  mergedSsrBreakpointWidthRef,
60027
60133
  mergedRtlRef,
60028
60134
  mergedIconsRef,
60135
+ mergedIconPacksRef,
60029
60136
  mergedComponentPropsRef,
60030
60137
  mergedBreakpointPropsRef,
60031
60138
  mergedBreakpointThemeOverridesRef,
@@ -80823,7 +80930,6 @@
80823
80930
  const presetProps = {
80824
80931
  // put dialog props after since I want the card to unbordered by default
80825
80932
  ...dialogProps,
80826
- presetDisabled: Boolean,
80827
80933
  size: {
80828
80934
  type: String,
80829
80935
  default: "medium"
@@ -81194,7 +81300,10 @@
81194
81300
  type: Boolean,
81195
81301
  default: true
81196
81302
  },
81197
- preset: String,
81303
+ preset: {
81304
+ type: String,
81305
+ default: "dialog"
81306
+ },
81198
81307
  to: [String, Object],
81199
81308
  displayDirective: {
81200
81309
  type: String,
@@ -81456,7 +81565,7 @@
81456
81565
  ref: "bodyWrapper",
81457
81566
  displayDirective: this.displayDirective,
81458
81567
  show: this.show,
81459
- preset: this.preset,
81568
+ preset: this.internalDialog ? void 0 : this.preset,
81460
81569
  autoFocus: this.autoFocus,
81461
81570
  trapFocus: this.trapFocus,
81462
81571
  draggable: this.draggable,
@@ -81654,8 +81763,7 @@
81654
81763
  transformOrigin: this.transformOrigin,
81655
81764
  draggable: this.draggable,
81656
81765
  internalAppear: true,
81657
- internalDialog: true,
81658
- presetDisabled: true
81766
+ internalDialog: true
81659
81767
  },
81660
81768
  {
81661
81769
  default: () => /* @__PURE__ */ vue.h(
@@ -95109,6 +95217,10 @@
95109
95217
  type: Boolean,
95110
95218
  default: false
95111
95219
  },
95220
+ hideHeaderActions: {
95221
+ type: Boolean,
95222
+ default: false
95223
+ },
95112
95224
  copyButtonProps: Object,
95113
95225
  copyIconProps: Object,
95114
95226
  headerEditButtonProps: Object,
@@ -95742,7 +95854,7 @@
95742
95854
  default: () => locale.copyTooltip
95743
95855
  }))
95744
95856
  }
95745
- ), /* @__PURE__ */ vue.h(_UFlex, { align: "center", size: "small" }, {
95857
+ ), !props.hideHeaderActions && /* @__PURE__ */ vue.h(_UFlex, { align: "center", size: "small" }, {
95746
95858
  default: () => resolveSlot(slots.headerActions, () => {
95747
95859
  const buttons = [];
95748
95860
  buttons.push(
@@ -112286,7 +112398,7 @@
112286
112398
  });
112287
112399
  }
112288
112400
 
112289
- var version = "2.0.0-beta.8";
112401
+ var version = "2.0.0";
112290
112402
 
112291
112403
  function create({
112292
112404
  componentPrefix = "U",