@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.mjs CHANGED
@@ -5788,7 +5788,7 @@ function wrap(component) {
5788
5788
  });
5789
5789
  wrapped.__wrapped__ = true;
5790
5790
  for (const key of Object.keys(component)) {
5791
- if (/^__.*__$/.test(key) || key.endsWith("_FLAG")) {
5791
+ if (/^__.*__$/.test(key) || key.endsWith("_FLAG") || key === "alias") {
5792
5792
  wrapped[key] = component[key];
5793
5793
  }
5794
5794
  }
@@ -5805,6 +5805,7 @@ function useConfig(props = {}, options = {
5805
5805
  inlineThemeDisabled: UConfigProvider?.inlineThemeDisabled,
5806
5806
  mergedRtlRef: UConfigProvider?.mergedRtlRef,
5807
5807
  mergedComponentPropsRef: UConfigProvider?.mergedComponentPropsRef,
5808
+ mergedIconPacksRef: UConfigProvider?.mergedIconPacksRef,
5808
5809
  mergedBreakpointsRef: UConfigProvider?.mergedBreakpointsRef,
5809
5810
  mergedBorderedRef: computed(() => {
5810
5811
  const {
@@ -13045,6 +13046,28 @@ var UBaseIcon = defineComponent({
13045
13046
  }
13046
13047
  });
13047
13048
 
13049
+ var style$1U = cB("icon", `
13050
+ height: 1em;
13051
+ width: 1em;
13052
+ line-height: 1em;
13053
+ text-align: center;
13054
+ display: inline-block;
13055
+ position: relative;
13056
+ fill: currentColor;
13057
+ transform: translateZ(0);
13058
+ `, [cM("color-transition", {
13059
+ transition: "color .3s var(--u-bezier)"
13060
+ }), cM("depth", {
13061
+ color: "var(--u-color)"
13062
+ }, [c$1("svg", {
13063
+ opacity: "var(--u-opacity)",
13064
+ transition: "opacity .3s var(--u-bezier)"
13065
+ })]), c$1("svg", {
13066
+ height: "100%",
13067
+ width: "100%",
13068
+ display: "block"
13069
+ })]);
13070
+
13048
13071
  const derived$1 = {
13049
13072
  name: "common",
13050
13073
  ...commonVariables$6,
@@ -13209,6 +13232,154 @@ const derived = {
13209
13232
  boxShadow2: "0px 20px 80px 0px rgba(0, 0, 0, 0.07)"
13210
13233
  };
13211
13234
 
13235
+ function self$1B(vars) {
13236
+ const {
13237
+ elementsPrimary
13238
+ } = vars;
13239
+ return {
13240
+ color: elementsPrimary,
13241
+ opacity1Depth: "0.82",
13242
+ opacity2Depth: "0.72",
13243
+ opacity3Depth: "0.38",
13244
+ opacity4Depth: "0.24",
13245
+ opacity5Depth: "0.18"
13246
+ };
13247
+ }
13248
+ const iconLight = {
13249
+ name: "Icon",
13250
+ common: derived,
13251
+ self: self$1B
13252
+ };
13253
+
13254
+ const iconDark$1 = {
13255
+ name: "Icon",
13256
+ common: derived$1,
13257
+ self: self$1B
13258
+ };
13259
+
13260
+ const iconProps = {
13261
+ ...useTheme.props,
13262
+ depth: [String, Number],
13263
+ size: [Number, String],
13264
+ color: String,
13265
+ component: Object,
13266
+ name: String,
13267
+ pack: String,
13268
+ onClick: Function
13269
+ };
13270
+ const UIconImpl = defineComponent({
13271
+ _n_icon__: true,
13272
+ name: "Icon",
13273
+ props: iconProps,
13274
+ setup(props) {
13275
+ const {
13276
+ mergedClsPrefixRef,
13277
+ mergedIconPacksRef,
13278
+ inlineThemeDisabled
13279
+ } = useConfig(props);
13280
+ const themeRef = useTheme("Icon", "-icon", style$1U, iconLight, props, mergedClsPrefixRef);
13281
+ const cssVarsRef = computed(() => {
13282
+ const {
13283
+ depth
13284
+ } = props;
13285
+ const {
13286
+ common: {
13287
+ cubicBezierEaseInOut
13288
+ },
13289
+ self
13290
+ } = themeRef.value;
13291
+ if (depth !== void 0) {
13292
+ const {
13293
+ color,
13294
+ [`opacity${depth}Depth`]: opacity
13295
+ } = self;
13296
+ return {
13297
+ "--u-bezier": cubicBezierEaseInOut,
13298
+ "--u-color": color,
13299
+ "--u-opacity": opacity
13300
+ };
13301
+ }
13302
+ return {
13303
+ "--u-bezier": cubicBezierEaseInOut,
13304
+ "--u-color": "",
13305
+ "--u-opacity": ""
13306
+ };
13307
+ });
13308
+ const themeClassHandle = inlineThemeDisabled ? useThemeClass("icon", computed(() => `${props.depth || "d"}`), cssVarsRef, props) : void 0;
13309
+ const resolvedPackedIconRef = computed(() => {
13310
+ const {
13311
+ name,
13312
+ pack
13313
+ } = props;
13314
+ if (!name) return null;
13315
+ const config = mergedIconPacksRef?.value;
13316
+ if (!config) {
13317
+ warn("icon", "no icon packs configured on `u-config-provider`");
13318
+ return null;
13319
+ }
13320
+ const targetName = pack ?? config.defaultPackName;
13321
+ const target = config.packs.find(p => p.name === targetName);
13322
+ if (!target) {
13323
+ warn("icon", `icon pack "${targetName}" not found`);
13324
+ return null;
13325
+ }
13326
+ if (config.async) {
13327
+ return target.renderAsyncIcon(name);
13328
+ }
13329
+ if (!("renderIcon" in target)) {
13330
+ warn("icon", `pack "${target.name}" is async-only, set \`async: true\` on \`u-config-provider :icon-packs\``);
13331
+ return null;
13332
+ }
13333
+ return target.renderIcon(name);
13334
+ });
13335
+ return {
13336
+ mergedClsPrefix: mergedClsPrefixRef,
13337
+ resolvedPackedIcon: resolvedPackedIconRef,
13338
+ mergedStyle: computed(() => {
13339
+ const {
13340
+ size,
13341
+ color
13342
+ } = props;
13343
+ return {
13344
+ fontSize: formatLength(size),
13345
+ color
13346
+ };
13347
+ }),
13348
+ cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
13349
+ themeClass: themeClassHandle?.themeClass,
13350
+ onRender: themeClassHandle?.onRender
13351
+ };
13352
+ },
13353
+ render() {
13354
+ const {
13355
+ $parent,
13356
+ depth,
13357
+ mergedClsPrefix,
13358
+ component,
13359
+ onRender,
13360
+ themeClass,
13361
+ resolvedPackedIcon
13362
+ } = this;
13363
+ if ($parent?.$options?._n_icon__) {
13364
+ warn("icon", "don't wrap `u-icon` inside `u-icon`");
13365
+ }
13366
+ onRender?.();
13367
+ return h(UBaseIcon, {
13368
+ clsPrefix: mergedClsPrefix,
13369
+ role: "img",
13370
+ class: [`${mergedClsPrefix}-icon`, themeClass, {
13371
+ [`${mergedClsPrefix}-icon--depth`]: depth,
13372
+ [`${mergedClsPrefix}-icon--color-transition`]: depth !== void 0
13373
+ }],
13374
+ style: [this.cssVars, this.mergedStyle],
13375
+ onClick: this.onClick
13376
+ }, {
13377
+ default: () => resolvedPackedIcon ?? (component ? h(component) : this.$slots.default?.())
13378
+ });
13379
+ }
13380
+ });
13381
+ const UIcon$1 = UIconImpl;
13382
+
13212
13383
  var commonVars$b = {
13213
13384
  iconWidth: "44px",
13214
13385
  iconHeight: "44px",
@@ -13221,7 +13392,7 @@ var commonVars$b = {
13221
13392
  avatarSize: "16px"
13222
13393
  };
13223
13394
 
13224
- function self$1B(vars) {
13395
+ function self$1A(vars) {
13225
13396
  const {
13226
13397
  heightHuge,
13227
13398
  fontBodyLarge,
@@ -13251,16 +13422,16 @@ function self$1B(vars) {
13251
13422
  const accountOptionLight = {
13252
13423
  name: "AccountOption",
13253
13424
  common: derived,
13254
- self: self$1B
13425
+ self: self$1A
13255
13426
  };
13256
13427
 
13257
13428
  const accountOptionDark = {
13258
13429
  name: "AccountOption",
13259
13430
  common: derived$1,
13260
- self: self$1B
13431
+ self: self$1A
13261
13432
  };
13262
13433
 
13263
- var style$1U = cB("base-account-option", `
13434
+ var style$1T = cB("base-account-option", `
13264
13435
  display: flex;
13265
13436
  align-items: center;
13266
13437
  position: relative;
@@ -13315,7 +13486,7 @@ var UBaseAccountOption = defineComponent({
13315
13486
  const themeRef = useTheme(
13316
13487
  "AccountOption",
13317
13488
  "-base-account-option",
13318
- style$1U,
13489
+ style$1T,
13319
13490
  accountOptionLight,
13320
13491
  props,
13321
13492
  mergedClsPrefixRef
@@ -14754,7 +14925,7 @@ function iconSwitchTransition({
14754
14925
  })];
14755
14926
  }
14756
14927
 
14757
- var style$1T = cB("base-clear", `
14928
+ var style$1S = cB("base-clear", `
14758
14929
  flex-shrink: 0;
14759
14930
  height: 1em;
14760
14931
  width: 1em;
@@ -14795,7 +14966,7 @@ var UBaseClear = defineComponent({
14795
14966
  onClear: Function
14796
14967
  },
14797
14968
  setup(props) {
14798
- useStyle("-base-clear", style$1T, toRef(props, "clsPrefix"));
14969
+ useStyle("-base-clear", style$1S, toRef(props, "clsPrefix"));
14799
14970
  return {
14800
14971
  handleMouseDown(e) {
14801
14972
  e.preventDefault();
@@ -14826,7 +14997,7 @@ var UBaseClear = defineComponent({
14826
14997
  }
14827
14998
  });
14828
14999
 
14829
- var style$1S = cB("base-close", `
15000
+ var style$1R = cB("base-close", `
14830
15001
  display: flex;
14831
15002
  align-items: center;
14832
15003
  justify-content: center;
@@ -14898,7 +15069,7 @@ var UBaseClose = defineComponent({
14898
15069
  absolute: Boolean
14899
15070
  },
14900
15071
  setup(props) {
14901
- useStyle("-base-close", style$1S, toRef(props, "clsPrefix"));
15072
+ useStyle("-base-close", style$1R, toRef(props, "clsPrefix"));
14902
15073
  return () => {
14903
15074
  const { clsPrefix, disabled, absolute, round, isButtonTag } = props;
14904
15075
  const Tag = isButtonTag ? "button" : "div";
@@ -15057,7 +15228,7 @@ var FocusDetector = defineComponent({
15057
15228
  }
15058
15229
  });
15059
15230
 
15060
- var style$1R = c$1([c$1("@keyframes loading-container-rotate", `
15231
+ var style$1Q = c$1([c$1("@keyframes loading-container-rotate", `
15061
15232
  to {
15062
15233
  -webkit-transform: rotate(360deg);
15063
15234
  transform: rotate(360deg);
@@ -15227,7 +15398,7 @@ var UBaseLoading = defineComponent({
15227
15398
  ...exposedLoadingProps
15228
15399
  },
15229
15400
  setup(props) {
15230
- useStyle("-base-loading", style$1R, toRef(props, "clsPrefix"));
15401
+ useStyle("-base-loading", style$1Q, toRef(props, "clsPrefix"));
15231
15402
  },
15232
15403
  render() {
15233
15404
  const { clsPrefix, radius, strokeWidth, stroke, scale } = this;
@@ -15357,7 +15528,7 @@ function fadeInTransition({
15357
15528
  })];
15358
15529
  }
15359
15530
 
15360
- var style$1Q = cB("base-menu-mask", `
15531
+ var style$1P = cB("base-menu-mask", `
15361
15532
  position: absolute;
15362
15533
  left: 0;
15363
15534
  right: 0;
@@ -15380,7 +15551,7 @@ var UBaseMenuMask = defineComponent({
15380
15551
  }
15381
15552
  },
15382
15553
  setup(props) {
15383
- useStyle("-base-menu-mask", style$1Q, toRef(props, "clsPrefix"));
15554
+ useStyle("-base-menu-mask", style$1P, toRef(props, "clsPrefix"));
15384
15555
  const messageRef = ref(null);
15385
15556
  let timerId = null;
15386
15557
  const uncontrolledShowRef = ref(false);
@@ -15568,7 +15739,7 @@ const commonVars$a = {
15568
15739
  railColor: "transparent"
15569
15740
  };
15570
15741
 
15571
- function self$1A(vars) {
15742
+ function self$1z(vars) {
15572
15743
  const {
15573
15744
  scrollbarColor,
15574
15745
  scrollbarColorHover,
@@ -15588,13 +15759,13 @@ function self$1A(vars) {
15588
15759
  const safeTopScrollbarLight = {
15589
15760
  name: "SafeTopScrollbar",
15590
15761
  common: derived,
15591
- self: self$1A
15762
+ self: self$1z
15592
15763
  };
15593
15764
 
15594
15765
  const safeTopScrollbarDark = {
15595
15766
  name: "SafeTopScrollbar",
15596
15767
  common: derived$1,
15597
- self: self$1A
15768
+ self: self$1z
15598
15769
  };
15599
15770
 
15600
15771
  cB("scrollbar", [cM("rtl", `
@@ -15607,7 +15778,7 @@ cB("scrollbar", [cM("rtl", `
15607
15778
  right: unset;
15608
15779
  `)])])])]);
15609
15780
 
15610
- var style$1P = cB("safe-top-scrollbar", `
15781
+ var style$1O = cB("safe-top-scrollbar", `
15611
15782
  overflow: hidden;
15612
15783
  position: relative;
15613
15784
  z-index: auto;
@@ -15756,7 +15927,7 @@ const SafeTopScrollbar$1 = defineComponent({
15756
15927
  const themeRef = useTheme(
15757
15928
  "SafeTopScrollbar",
15758
15929
  "-safe-top-scrollbar",
15759
- style$1P,
15930
+ style$1O,
15760
15931
  safeTopScrollbarLight,
15761
15932
  props,
15762
15933
  mergedClsPrefixRef
@@ -16490,7 +16661,7 @@ const commonVars$9 = {
16490
16661
  railColor: "transparent"
16491
16662
  };
16492
16663
 
16493
- function self$1z(vars) {
16664
+ function self$1y(vars) {
16494
16665
  const {
16495
16666
  scrollbarColor,
16496
16667
  scrollbarColorHover,
@@ -16510,13 +16681,13 @@ function self$1z(vars) {
16510
16681
  const scrollbarLight = {
16511
16682
  name: "Scrollbar",
16512
16683
  common: derived,
16513
- self: self$1z
16684
+ self: self$1y
16514
16685
  };
16515
16686
 
16516
16687
  const scrollbarDark = {
16517
16688
  name: "Scrollbar",
16518
16689
  common: derived$1,
16519
- self: self$1z
16690
+ self: self$1y
16520
16691
  };
16521
16692
 
16522
16693
  var rtlStyle$t = cB("scrollbar", [cM("rtl", `
@@ -16534,7 +16705,7 @@ const scrollbarRtl = {
16534
16705
  style: rtlStyle$t
16535
16706
  };
16536
16707
 
16537
- var style$1O = cB("scrollbar", `
16708
+ var style$1N = cB("scrollbar", `
16538
16709
  overflow: hidden;
16539
16710
  position: relative;
16540
16711
  z-index: auto;
@@ -16677,7 +16848,7 @@ const Scrollbar$1 = defineComponent({
16677
16848
  const themeRef = useTheme(
16678
16849
  "Scrollbar",
16679
16850
  "-scrollbar",
16680
- style$1O,
16851
+ style$1N,
16681
16852
  scrollbarLight,
16682
16853
  props,
16683
16854
  mergedClsPrefixRef
@@ -18049,7 +18220,7 @@ function createTreeMate(rawNodes, options = {}) {
18049
18220
  return treemate;
18050
18221
  }
18051
18222
 
18052
- function self$1y(vars) {
18223
+ function self$1x(vars) {
18053
18224
  const {
18054
18225
  fontBodyMedium,
18055
18226
  fontTitleLarge,
@@ -18081,16 +18252,16 @@ function self$1y(vars) {
18081
18252
  const emptyLight = {
18082
18253
  name: "Empty",
18083
18254
  common: derived,
18084
- self: self$1y
18255
+ self: self$1x
18085
18256
  };
18086
18257
 
18087
18258
  const emptyDark$1 = {
18088
18259
  name: "Empty",
18089
18260
  common: derived$1,
18090
- self: self$1y
18261
+ self: self$1x
18091
18262
  };
18092
18263
 
18093
- var style$1N = cB("empty", `
18264
+ var style$1M = cB("empty", `
18094
18265
  display: flex;
18095
18266
  flex-direction: column;
18096
18267
  align-items: center;
@@ -18168,7 +18339,7 @@ var UEmpty$1 = defineComponent({
18168
18339
  const themeRef = useTheme(
18169
18340
  "Empty",
18170
18341
  "-empty",
18171
- style$1N,
18342
+ style$1M,
18172
18343
  emptyLight,
18173
18344
  props,
18174
18345
  mergedClsPrefixRef
@@ -18256,7 +18427,7 @@ var UEmpty$1 = defineComponent({
18256
18427
  }
18257
18428
  });
18258
18429
 
18259
- function self$1x(vars) {
18430
+ function self$1w(vars) {
18260
18431
  const {
18261
18432
  borderRadius,
18262
18433
  iconMedium,
@@ -18313,7 +18484,7 @@ const internalSelectMenuLight = createTheme$1({
18313
18484
  Scrollbar: scrollbarLight,
18314
18485
  Empty: emptyLight
18315
18486
  },
18316
- self: self$1x
18487
+ self: self$1w
18317
18488
  });
18318
18489
 
18319
18490
  const internalSelectMenuDark = {
@@ -18323,7 +18494,7 @@ const internalSelectMenuDark = {
18323
18494
  Scrollbar: scrollbarDark,
18324
18495
  Empty: emptyDark$1
18325
18496
  },
18326
- self: self$1x
18497
+ self: self$1w
18327
18498
  };
18328
18499
 
18329
18500
  cB("base-select-menu", [cM("rtl", `
@@ -18423,27 +18594,31 @@ var USelectOption = defineComponent({
18423
18594
  } = inject(internalSelectionMenuInjectionKey);
18424
18595
  const isPendingRef = useMemo(() => {
18425
18596
  const { value: pendingTmNode } = pendingTmNodeRef;
18426
- if (!pendingTmNode)
18597
+ if (!pendingTmNode) {
18427
18598
  return false;
18599
+ }
18428
18600
  return props.tmNode.key === pendingTmNode.key;
18429
18601
  });
18430
18602
  function handleClick(e) {
18431
18603
  const { tmNode } = props;
18432
- if (tmNode.disabled)
18604
+ if (tmNode.disabled) {
18433
18605
  return;
18606
+ }
18434
18607
  handleOptionClick(e, tmNode);
18435
18608
  }
18436
18609
  function handleMouseEnter(e) {
18437
18610
  const { tmNode } = props;
18438
- if (tmNode.disabled)
18611
+ if (tmNode.disabled) {
18439
18612
  return;
18613
+ }
18440
18614
  handleOptionMouseEnter(e, tmNode);
18441
18615
  }
18442
18616
  function handleMouseMove(e) {
18443
18617
  const { tmNode } = props;
18444
18618
  const { value: isPending } = isPendingRef;
18445
- if (tmNode.disabled || isPending)
18619
+ if (tmNode.disabled || isPending) {
18446
18620
  return;
18621
+ }
18447
18622
  handleOptionMouseEnter(e, tmNode);
18448
18623
  }
18449
18624
  return {
@@ -18560,7 +18735,7 @@ function fadeInScaleUpTransition({
18560
18735
  })];
18561
18736
  }
18562
18737
 
18563
- var style$1M = cB("base-select-menu", `
18738
+ var style$1L = cB("base-select-menu", `
18564
18739
  line-height: 1.5;
18565
18740
  outline: none;
18566
18741
  z-index: 0;
@@ -18748,7 +18923,7 @@ var UInternalSelectMenu = defineComponent({
18748
18923
  const themeRef = useTheme(
18749
18924
  "InternalSelectMenu",
18750
18925
  "-internal-select-menu",
18751
- style$1M,
18926
+ style$1L,
18752
18927
  internalSelectMenuLight,
18753
18928
  props,
18754
18929
  toRef(props, "clsPrefix")
@@ -19216,7 +19391,7 @@ var UInternalSelectMenu = defineComponent({
19216
19391
  }
19217
19392
  });
19218
19393
 
19219
- function self$1w(vars) {
19394
+ function self$1v(vars) {
19220
19395
  const {
19221
19396
  fontBodyMedium,
19222
19397
  containerPrimary,
@@ -19243,13 +19418,13 @@ function self$1w(vars) {
19243
19418
  const popoverLight = {
19244
19419
  name: "Popover",
19245
19420
  common: derived,
19246
- self: self$1w
19421
+ self: self$1v
19247
19422
  };
19248
19423
 
19249
19424
  const popoverDark = {
19250
19425
  name: "Popover",
19251
19426
  common: derived$1,
19252
- self: self$1w
19427
+ self: self$1v
19253
19428
  };
19254
19429
 
19255
19430
  cB("popover", [cM("rtl", `
@@ -19264,7 +19439,7 @@ const oppositePlacement = {
19264
19439
  right: "left"
19265
19440
  };
19266
19441
  const arrowSize = "var(--u-arrow-height) * 1.414";
19267
- var style$1L = c$1([cB("popover", `
19442
+ var style$1K = c$1([cB("popover", `
19268
19443
  transition:
19269
19444
  box-shadow .3s var(--u-bezier),
19270
19445
  background-color .3s var(--u-bezier),
@@ -19483,7 +19658,7 @@ var UPopoverBody = defineComponent({
19483
19658
  const themeRef = useTheme(
19484
19659
  "Popover",
19485
19660
  "-popover",
19486
- style$1L,
19661
+ style$1K,
19487
19662
  popoverLight,
19488
19663
  props,
19489
19664
  mergedClsPrefixRef
@@ -20310,7 +20485,7 @@ var UPopover$1 = defineComponent({
20310
20485
  }
20311
20486
  });
20312
20487
 
20313
- function self$1v(vars) {
20488
+ function self$1u(vars) {
20314
20489
  const {
20315
20490
  opacityDisabled,
20316
20491
  borderRadiusSmall: borderRadius,
@@ -20408,13 +20583,13 @@ function self$1v(vars) {
20408
20583
  const tagLight = {
20409
20584
  name: "Tag",
20410
20585
  common: derived,
20411
- self: self$1v
20586
+ self: self$1u
20412
20587
  };
20413
20588
 
20414
20589
  const tagDark = {
20415
20590
  name: "Tag",
20416
20591
  common: derived$1,
20417
- self: self$1v
20592
+ self: self$1u
20418
20593
  };
20419
20594
 
20420
20595
  var rtlStyle$s = cB("tag", [cM("rtl", `
@@ -20461,7 +20636,7 @@ var commonProps = {
20461
20636
  }
20462
20637
  };
20463
20638
 
20464
- var style$1K = cB("tag", `
20639
+ var style$1J = cB("tag", `
20465
20640
  white-space: nowrap;
20466
20641
  position: relative;
20467
20642
  box-sizing: border-box;
@@ -20628,7 +20803,7 @@ var _UTag = defineComponent({
20628
20803
  const themeRef = useTheme(
20629
20804
  "Tag",
20630
20805
  "-tag",
20631
- style$1K,
20806
+ style$1J,
20632
20807
  tagLight,
20633
20808
  props,
20634
20809
  mergedClsPrefixRef
@@ -20992,7 +21167,7 @@ var _UTagGroup = defineComponent({
20992
21167
  }
20993
21168
  });
20994
21169
 
20995
- function self$1u(vars) {
21170
+ function self$1t(vars) {
20996
21171
  const {
20997
21172
  heightSmall,
20998
21173
  heightMedium,
@@ -21012,10 +21187,10 @@ function self$1u(vars) {
21012
21187
  }
21013
21188
  const skeletonLight$1 = {
21014
21189
  common: derived,
21015
- self: self$1u
21190
+ self: self$1t
21016
21191
  };
21017
21192
 
21018
- var style$1J = c$1([cB("skeleton", `
21193
+ var style$1I = c$1([cB("skeleton", `
21019
21194
  height: 1em;
21020
21195
  width: 100%;
21021
21196
  transition: background-color .3s var(--u-bezier);
@@ -21071,7 +21246,7 @@ var UBaseSkeleton = defineComponent({
21071
21246
  const themeRef = useTheme(
21072
21247
  "Skeleton",
21073
21248
  "-skeleton",
21074
- style$1J,
21249
+ style$1I,
21075
21250
  skeletonLight$1,
21076
21251
  props,
21077
21252
  mergedClsPrefixRef
@@ -21187,7 +21362,7 @@ var UBaseSuffix = defineComponent({
21187
21362
  }
21188
21363
  });
21189
21364
 
21190
- function self$1t(vars) {
21365
+ function self$1s(vars) {
21191
21366
  const {
21192
21367
  borderRadius,
21193
21368
  iconMedium,
@@ -21345,7 +21520,7 @@ const internalSelectionLight = createTheme$1({
21345
21520
  peers: {
21346
21521
  Popover: popoverLight
21347
21522
  },
21348
- self: self$1t
21523
+ self: self$1s
21349
21524
  });
21350
21525
 
21351
21526
  const internalSelectionDark = {
@@ -21354,7 +21529,7 @@ const internalSelectionDark = {
21354
21529
  peers: {
21355
21530
  Popover: popoverDark
21356
21531
  },
21357
- self: self$1t
21532
+ self: self$1s
21358
21533
  };
21359
21534
 
21360
21535
  cB("base-selection", [cM("rtl", `
@@ -21387,7 +21562,7 @@ function generateSecondaryStates(state) {
21387
21562
  color: var(--u-arrow-color${state}-secondary);
21388
21563
  `)])];
21389
21564
  }
21390
- var style$1I = c$1([cB("base-selection", `
21565
+ var style$1H = c$1([cB("base-selection", `
21391
21566
  position: relative;
21392
21567
  z-index: auto;
21393
21568
  box-shadow: none;
@@ -21738,7 +21913,7 @@ var UInternalSelection = defineComponent({
21738
21913
  const themeRef = useTheme(
21739
21914
  "InternalSelection",
21740
21915
  "-internal-selection",
21741
- style$1I,
21916
+ style$1H,
21742
21917
  internalSelectionLight,
21743
21918
  props,
21744
21919
  toRef(props, "clsPrefix")
@@ -22819,7 +22994,7 @@ function fadeUpWidthExpandTransition({
22819
22994
  })];
22820
22995
  }
22821
22996
 
22822
- var style$1H = c$1([c$1("@keyframes u-base-slot-machine-fade-up-in", `
22997
+ var style$1G = c$1([c$1("@keyframes u-base-slot-machine-fade-up-in", `
22823
22998
  from {
22824
22999
  transform: translateY(60%);
22825
23000
  opacity: 0;
@@ -22938,7 +23113,7 @@ var UBaseSlotMachine = defineComponent({
22938
23113
  }
22939
23114
  },
22940
23115
  setup(props) {
22941
- useStyle("-base-slot-machine", style$1H, toRef(props, "clsPrefix"));
23116
+ useStyle("-base-slot-machine", style$1G, toRef(props, "clsPrefix"));
22942
23117
  const oldValueRef = ref();
22943
23118
  const newValueRef = ref();
22944
23119
  const numbersRef = computed(() => {
@@ -22993,7 +23168,7 @@ var UBaseSlotMachine = defineComponent({
22993
23168
  }
22994
23169
  });
22995
23170
 
22996
- function self$1s(vars) {
23171
+ function self$1r(vars) {
22997
23172
  const {
22998
23173
  borderRadiusSmall,
22999
23174
  brandPrimary500,
@@ -23029,10 +23204,10 @@ function self$1s(vars) {
23029
23204
  }
23030
23205
  const typographyLight$1 = {
23031
23206
  common: derived,
23032
- self: self$1s
23207
+ self: self$1r
23033
23208
  };
23034
23209
 
23035
- var style$1G = cB("text", `
23210
+ var style$1F = cB("text", `
23036
23211
  transition: color .3s var(--u-bezier);
23037
23212
  color: var(--u-text-color);
23038
23213
  margin: 0;
@@ -23340,7 +23515,7 @@ var InternalUText = defineComponent({
23340
23515
  const themeRef = useTheme(
23341
23516
  "Typography",
23342
23517
  "-text",
23343
- style$1G,
23518
+ style$1F,
23344
23519
  typographyLight$1,
23345
23520
  props,
23346
23521
  mergedClsPrefixRef
@@ -23428,7 +23603,7 @@ var InternalUText = defineComponent({
23428
23603
  }
23429
23604
  });
23430
23605
 
23431
- var style$1F = cB("base-wave", `
23606
+ var style$1E = cB("base-wave", `
23432
23607
  position: absolute;
23433
23608
  left: 0;
23434
23609
  right: 0;
@@ -23446,7 +23621,7 @@ var UBaseWave = defineComponent({
23446
23621
  }
23447
23622
  },
23448
23623
  setup(props) {
23449
- useStyle("-base-wave", style$1F, toRef(props, "clsPrefix"));
23624
+ useStyle("-base-wave", style$1E, toRef(props, "clsPrefix"));
23450
23625
  const selfRef = ref(null);
23451
23626
  const activeRef = ref(false);
23452
23627
  let animationTimerId = null;
@@ -23491,142 +23666,6 @@ var UBaseWave = defineComponent({
23491
23666
  }
23492
23667
  });
23493
23668
 
23494
- function self$1r(vars) {
23495
- const {
23496
- elementsPrimary
23497
- } = vars;
23498
- return {
23499
- color: elementsPrimary,
23500
- opacity1Depth: "0.82",
23501
- opacity2Depth: "0.72",
23502
- opacity3Depth: "0.38",
23503
- opacity4Depth: "0.24",
23504
- opacity5Depth: "0.18"
23505
- };
23506
- }
23507
- const iconLight = {
23508
- name: "Icon",
23509
- common: derived,
23510
- self: self$1r
23511
- };
23512
-
23513
- const iconDark$1 = {
23514
- name: "Icon",
23515
- common: derived$1,
23516
- self: self$1r
23517
- };
23518
-
23519
- var style$1E = cB("icon", `
23520
- height: 1em;
23521
- width: 1em;
23522
- line-height: 1em;
23523
- text-align: center;
23524
- display: inline-block;
23525
- position: relative;
23526
- fill: currentColor;
23527
- transform: translateZ(0);
23528
- `, [cM("color-transition", {
23529
- transition: "color .3s var(--u-bezier)"
23530
- }), cM("depth", {
23531
- color: "var(--u-color)"
23532
- }, [c$1("svg", {
23533
- opacity: "var(--u-opacity)",
23534
- transition: "opacity .3s var(--u-bezier)"
23535
- })]), c$1("svg", {
23536
- height: "100%",
23537
- width: "100%",
23538
- display: "block"
23539
- })]);
23540
-
23541
- const iconProps = {
23542
- ...useTheme.props,
23543
- depth: [String, Number],
23544
- size: [Number, String],
23545
- color: String,
23546
- component: Object,
23547
- onClick: Function
23548
- };
23549
- const UIcon$1 = defineComponent({
23550
- _n_icon__: true,
23551
- name: "Icon",
23552
- inheritAttrs: false,
23553
- props: iconProps,
23554
- setup(props) {
23555
- const {
23556
- mergedClsPrefixRef,
23557
- inlineThemeDisabled
23558
- } = useConfig(props);
23559
- const themeRef = useTheme("Icon", "-icon", style$1E, iconLight, props, mergedClsPrefixRef);
23560
- const cssVarsRef = computed(() => {
23561
- const {
23562
- depth
23563
- } = props;
23564
- const {
23565
- common: {
23566
- cubicBezierEaseInOut
23567
- },
23568
- self
23569
- } = themeRef.value;
23570
- if (depth !== void 0) {
23571
- const {
23572
- color,
23573
- [`opacity${depth}Depth`]: opacity
23574
- } = self;
23575
- return {
23576
- "--u-bezier": cubicBezierEaseInOut,
23577
- "--u-color": color,
23578
- "--u-opacity": opacity
23579
- };
23580
- }
23581
- return {
23582
- "--u-bezier": cubicBezierEaseInOut,
23583
- "--u-color": "",
23584
- "--u-opacity": ""
23585
- };
23586
- });
23587
- const themeClassHandle = inlineThemeDisabled ? useThemeClass("icon", computed(() => `${props.depth || "d"}`), cssVarsRef, props) : void 0;
23588
- return {
23589
- mergedClsPrefix: mergedClsPrefixRef,
23590
- mergedStyle: computed(() => {
23591
- const {
23592
- size,
23593
- color
23594
- } = props;
23595
- return {
23596
- fontSize: formatLength(size),
23597
- color
23598
- };
23599
- }),
23600
- cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
23601
- themeClass: themeClassHandle?.themeClass,
23602
- onRender: themeClassHandle?.onRender
23603
- };
23604
- },
23605
- render() {
23606
- const {
23607
- $parent,
23608
- depth,
23609
- mergedClsPrefix,
23610
- component,
23611
- onRender,
23612
- themeClass
23613
- } = this;
23614
- if ($parent?.$options?._n_icon__) {
23615
- warn("icon", "don't wrap `u-icon` inside `u-icon`");
23616
- }
23617
- onRender?.();
23618
- return h("i", mergeProps(this.$attrs, {
23619
- role: "img",
23620
- class: [`${mergedClsPrefix}-icon`, themeClass, {
23621
- [`${mergedClsPrefix}-icon--depth`]: depth,
23622
- [`${mergedClsPrefix}-icon--color-transition`]: depth !== void 0
23623
- }],
23624
- style: [this.cssVars, this.mergedStyle],
23625
- onClick: this.onClick
23626
- }), component ? h(component) : this.$slots);
23627
- }
23628
- });
23629
-
23630
23669
  function self$1q(vars) {
23631
23670
  const {
23632
23671
  borderRadius,
@@ -25749,6 +25788,7 @@ function self$1m(vars) {
25749
25788
  containerPrimary,
25750
25789
  elementsQuaternary,
25751
25790
  elementsPrimary,
25791
+ staticGreen,
25752
25792
  staticOrange,
25753
25793
  staticRed,
25754
25794
  elementsQuinary,
@@ -25802,6 +25842,16 @@ function self$1m(vars) {
25802
25842
  alpha: 0.1
25803
25843
  })}`,
25804
25844
  loadingColor: elementsPrimary,
25845
+ // success
25846
+ loadingColorSuccess: staticGreen,
25847
+ borderSuccess: `2px solid ${staticGreen}`,
25848
+ borderHoverSuccess: `2px solid ${staticGreen}`,
25849
+ colorFocusSuccess: containerPrimary,
25850
+ borderFocusSuccess: `2px solid ${staticGreen}`,
25851
+ boxShadowFocusSuccess: `0 0 0 4px ${changeColor(staticGreen, {
25852
+ alpha: 0.1
25853
+ })}`,
25854
+ caretColorSuccess: elementsPrimary,
25805
25855
  // warning
25806
25856
  loadingColorWarning: staticOrange,
25807
25857
  borderWarning: `2px solid ${staticOrange}`,
@@ -26104,7 +26154,7 @@ cM("pair", [cE("input-el, placeholder", "text-align: center;"), cE("separator",
26104
26154
  transition: color .3s var(--u-bezier);
26105
26155
  margin-left: 4px;
26106
26156
  font-variant: tabular-nums;
26107
- `), ["warning", "error"].map(status => cM(`${status}-status`, [cNotM("disabled", [cB("base-loading", `
26157
+ `), ["warning", "error", "success"].map(status => cM(`${status}-status`, [cNotM("disabled", [cB("base-loading", `
26108
26158
  color: var(--u-loading-color-${status})
26109
26159
  `), cE("input-el, textarea-el", `
26110
26160
  caret-color: var(--u-caret-color-${status});
@@ -28993,6 +29043,7 @@ var UInput$1 = defineComponent({
28993
29043
  borderRadius,
28994
29044
  textColor,
28995
29045
  caretColor,
29046
+ caretColorSuccess,
28996
29047
  caretColorError,
28997
29048
  caretColorWarning,
28998
29049
  textDecorationColor,
@@ -29008,6 +29059,11 @@ var UInput$1 = defineComponent({
29008
29059
  textColorDisabled,
29009
29060
  boxShadowFocus,
29010
29061
  iconSize,
29062
+ colorFocusSuccess,
29063
+ boxShadowFocusSuccess,
29064
+ borderSuccess,
29065
+ borderFocusSuccess,
29066
+ borderHoverSuccess,
29011
29067
  colorFocusWarning,
29012
29068
  boxShadowFocusWarning,
29013
29069
  borderWarning,
@@ -29030,6 +29086,7 @@ var UInput$1 = defineComponent({
29030
29086
  iconColorHover,
29031
29087
  iconColorPressed,
29032
29088
  loadingColor,
29089
+ loadingColorSuccess,
29033
29090
  loadingColorError,
29034
29091
  loadingColorWarning,
29035
29092
  selectionColor,
@@ -29068,6 +29125,14 @@ var UInput$1 = defineComponent({
29068
29125
  "--u-text-color-disabled": textColorDisabled,
29069
29126
  "--u-box-shadow-focus": boxShadowFocus,
29070
29127
  "--u-loading-color": loadingColor,
29128
+ // form success
29129
+ "--u-caret-color-success": caretColorSuccess,
29130
+ "--u-color-focus-success": colorFocusSuccess,
29131
+ "--u-box-shadow-focus-success": boxShadowFocusSuccess,
29132
+ "--u-border-success": borderSuccess,
29133
+ "--u-border-focus-success": borderFocusSuccess,
29134
+ "--u-border-hover-success": borderHoverSuccess,
29135
+ "--u-loading-color-success": loadingColorSuccess,
29071
29136
  // form warning
29072
29137
  "--u-caret-color-warning": caretColorWarning,
29073
29138
  "--u-color-focus-warning": colorFocusWarning,
@@ -40284,8 +40349,9 @@ var _UCarousel = defineComponent({
40284
40349
  const slideSizesTrigger = ref(0);
40285
40350
  const slideSizesRef = computed(() => {
40286
40351
  const { value: slidesEls } = slideElsRef;
40287
- if (!slidesEls.length)
40352
+ if (!slidesEls.length) {
40288
40353
  return [];
40354
+ }
40289
40355
  slideSizesTrigger.value;
40290
40356
  const { value: autoSlideSize } = autoSlideSizeRef;
40291
40357
  if (autoSlideSize) {
@@ -40306,8 +40372,9 @@ var _UCarousel = defineComponent({
40306
40372
  });
40307
40373
  const slideTranlatesRef = computed(() => {
40308
40374
  const { value: slideSizes } = slideSizesRef;
40309
- if (!slideSizes.length)
40375
+ if (!slideSizes.length) {
40310
40376
  return [];
40377
+ }
40311
40378
  const { centeredSlides, spaceBetween } = props;
40312
40379
  const { value: axis } = sizeAxisRef;
40313
40380
  const { [axis]: perViewSize } = perViewSizeRef.value;
@@ -40331,8 +40398,9 @@ var _UCarousel = defineComponent({
40331
40398
  );
40332
40399
  const slideStylesRef = computed(() => {
40333
40400
  const { value: slidesEls } = slideElsRef;
40334
- if (!slidesEls.length)
40401
+ if (!slidesEls.length) {
40335
40402
  return [];
40403
+ }
40336
40404
  const useComputedSize = !(autoSlideSizeRef.value || realSlidesPerViewRef.value === 1);
40337
40405
  const getSlideSize = (index) => {
40338
40406
  if (useComputedSize) {
@@ -40367,8 +40435,9 @@ var _UCarousel = defineComponent({
40367
40435
  } else {
40368
40436
  const { value: slideSizes } = slideSizesRef;
40369
40437
  const { length } = slideSizes;
40370
- if (!length)
40438
+ if (!length) {
40371
40439
  return totalSlides;
40440
+ }
40372
40441
  const { value: translates } = slideTranlatesRef;
40373
40442
  const { value: axis } = sizeAxisRef;
40374
40443
  const perViewSize = perViewSizeRef.value[axis];
@@ -40457,21 +40526,25 @@ var _UCarousel = defineComponent({
40457
40526
  }
40458
40527
  function prev() {
40459
40528
  const prevIndex = getRealPrevIndex();
40460
- if (prevIndex !== null)
40529
+ if (prevIndex !== null) {
40461
40530
  toRealIndex(prevIndex);
40531
+ }
40462
40532
  }
40463
40533
  function next() {
40464
40534
  const nextIndex = getRealNextIndex();
40465
- if (nextIndex !== null)
40535
+ if (nextIndex !== null) {
40466
40536
  toRealIndex(nextIndex);
40537
+ }
40467
40538
  }
40468
40539
  function prevIfSlideTransitionEnd() {
40469
- if (!inTransition || !duplicatedableRef.value)
40540
+ if (!inTransition || !duplicatedableRef.value) {
40470
40541
  prev();
40542
+ }
40471
40543
  }
40472
40544
  function nextIfSlideTransitionEnd() {
40473
- if (!inTransition || !duplicatedableRef.value)
40545
+ if (!inTransition || !duplicatedableRef.value) {
40474
40546
  next();
40547
+ }
40475
40548
  }
40476
40549
  let previousTranslate = 0;
40477
40550
  const translateStyleRef = ref({});
@@ -40547,13 +40620,15 @@ var _UCarousel = defineComponent({
40547
40620
  };
40548
40621
  provideCarouselContext(carouselContext);
40549
40622
  function addSlide(slide) {
40550
- if (!slide)
40623
+ if (!slide) {
40551
40624
  return;
40625
+ }
40552
40626
  slideElsRef.value.push(slide);
40553
40627
  }
40554
40628
  function removeSlide(slide) {
40555
- if (!slide)
40629
+ if (!slide) {
40556
40630
  return;
40631
+ }
40557
40632
  const index = getSlideIndex(slide);
40558
40633
  if (index !== -1) {
40559
40634
  slideElsRef.value.splice(index, 1);
@@ -40607,8 +40682,9 @@ var _UCarousel = defineComponent({
40607
40682
  let dragOffset = 0;
40608
40683
  let dragStartTime = 0;
40609
40684
  function handleTouchstart(event) {
40610
- if (globalDragging)
40685
+ if (globalDragging) {
40611
40686
  return;
40687
+ }
40612
40688
  if (!slidesElRef.value?.contains(
40613
40689
  getPreciseEventTarget(event)
40614
40690
  )) {
@@ -40724,8 +40800,9 @@ var _UCarousel = defineComponent({
40724
40800
  }
40725
40801
  function handleMousewheel(event) {
40726
40802
  event.preventDefault();
40727
- if (inTransition)
40803
+ if (inTransition) {
40728
40804
  return;
40805
+ }
40729
40806
  let { deltaX, deltaY } = event;
40730
40807
  if (event.shiftKey && !deltaX) {
40731
40808
  deltaX = deltaY;
@@ -40796,8 +40873,9 @@ var _UCarousel = defineComponent({
40796
40873
  watch(
40797
40874
  realIndexRef,
40798
40875
  (realIndex, lastRealIndex) => {
40799
- if (realIndex === lastRealIndex)
40876
+ if (realIndex === lastRealIndex) {
40800
40877
  return;
40878
+ }
40801
40879
  resetAutoplay();
40802
40880
  if (sequenceLayoutRef.value) {
40803
40881
  if (duplicatedableRef.value && displayTotalViewRef.value > 2) {
@@ -43987,6 +44065,7 @@ const chatInputLight = {
43987
44065
  ...originalInputSelf,
43988
44066
  color: elementsTertiary,
43989
44067
  colorFocus: elementsTertiary,
44068
+ heightMedium: "45px",
43990
44069
  border: "none",
43991
44070
  borderFocus: "none",
43992
44071
  borderHover: "none",
@@ -53486,23 +53565,28 @@ var style$13 = cB("chat", `
53486
53565
  width: 100%;
53487
53566
  padding: 24px 20px 10px 24px;
53488
53567
  flex-shrink: 0;
53568
+ `), cE("header-inner", `
53569
+ display: grid;
53570
+ grid-template-columns: minmax(0, 1fr) auto;
53571
+ align-items: flex-start;
53572
+ gap: 8px;
53573
+ `), cE("header-title-wrap", `
53574
+ min-width: 0;
53575
+ overflow: hidden;
53489
53576
  `), cE("header-title", `
53490
53577
  color: var(--u-header-title-color);
53491
- flex: 1;
53492
- min-width: 0;
53578
+ display: block;
53493
53579
  overflow: hidden;
53494
- text-overflow: ellipsis;
53495
53580
  white-space: nowrap;
53496
- display: block;
53497
- margin-right: 16px;
53581
+ text-overflow: ellipsis;
53582
+ width: 100%;
53498
53583
  `), cE("header-subtitle", `
53499
53584
  display: block;
53500
53585
  color: var(--u-sidebar-item-subtitle-color);
53501
53586
  overflow: hidden;
53502
53587
  text-overflow: ellipsis;
53503
53588
  white-space: nowrap;
53504
- minWidth: 0;
53505
- maxWidth: 100%;
53589
+ width: 100%;
53506
53590
  `), cE("header-actions", `
53507
53591
  padding: 4px;
53508
53592
  flex-shrink: 0;
@@ -53605,6 +53689,7 @@ var style$13 = cB("chat", `
53605
53689
  height: 44px;
53606
53690
  `)]), cE("message-text", `
53607
53691
  padding: 12px 16px;
53692
+ white-space: pre-wrap;
53608
53693
  `), cE("message-attachment", `
53609
53694
  display: flex;
53610
53695
  align-items: center;
@@ -53681,6 +53766,7 @@ var style$13 = cB("chat", `
53681
53766
  `, [c$1(".u-input-wrapper", `
53682
53767
  flex-wrap: wrap;
53683
53768
  padding: 0 4px;
53769
+ height: 100%;
53684
53770
  `, [c$1(".u-input__prefix", `
53685
53771
  width: 100%;
53686
53772
  margin: 0;
@@ -53691,13 +53777,20 @@ var style$13 = cB("chat", `
53691
53777
  border-top-right-radius: 12px;
53692
53778
  `), c$1("li", `
53693
53779
  padding: 12px;
53694
- `)]), c$1(".u-input__input-el", `
53695
- padding: 8px;
53780
+ `)]), c$1(".u-input__textarea-el", `
53781
+ padding-top: 12px;
53782
+ padding-left: 12px;
53783
+ padding-right: 48px;
53696
53784
  `), c$1(".u-input__placeholder", `
53697
- margin: 8px;
53785
+ padding-top: 12px;
53786
+ padding-left: 12px;
53787
+ padding-right: 48px;
53698
53788
  `)])]), cE("editing-block", `
53699
53789
  width: 100%;
53700
53790
  `), cE("input-suffix", `
53791
+ position: absolute;
53792
+ right: 12px;
53793
+ bottom: 12px;
53701
53794
  color: var(--u-input-suffix-color) !important;
53702
53795
  cursor: pointer;
53703
53796
  margin-right: 4px;
@@ -54518,152 +54611,153 @@ var ChatMainArea = defineComponent({
54518
54611
  return value != null ? String(value) : "";
54519
54612
  };
54520
54613
  const renderHeader = () => {
54521
- return /* @__PURE__ */ h("div", { class: `${mergedClsPrefixRef.value}-chat-main__header` }, /* @__PURE__ */ h(_UFlex, { justify: "space-between", align: "flex-start", wrap: false }, {
54522
- default: () => {
54523
- const chat = selectedChatRef.value;
54524
- const keyId = toKeyString(chat?.id);
54525
- const keyTitle = toKeyString(chat?.title);
54526
- return /* @__PURE__ */ h(Fragment, null, /* @__PURE__ */ h(_UFlex, { vertical: true, size: [0, 0], justify: "flex-start" }, {
54527
- default: () => /* @__PURE__ */ h(Fragment, null, /* @__PURE__ */ h(
54528
- _UText,
54529
- {
54530
- key: `${keyId}-${keyTitle}`,
54531
- variant: "heading-s-bold",
54532
- class: `${mergedClsPrefixRef.value}-chat-main__header-title`,
54533
- theme: mergedThemeRef.value.peers.Typography,
54534
- themeOverrides: mergedThemeRef.value.peerOverrides.Typography
54535
- },
54536
- {
54537
- default: () => selectedChatRef.value?.title ?? ""
54538
- }
54539
- ), isTyping.value && /* @__PURE__ */ h(
54540
- _UText,
54541
- {
54542
- class: [
54543
- `${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
54544
- "typing"
54545
- ],
54546
- variant: "body-m-medium"
54547
- },
54548
- {
54549
- default: () => typingTextRef.value ?? ""
54550
- }
54551
- ))
54552
- }), /* @__PURE__ */ h(
54553
- _UFlex,
54554
- {
54555
- align: "center",
54556
- size: "small",
54557
- class: `${mergedClsPrefixRef.value}-chat-main__header-actions`
54558
- },
54559
- {
54560
- default: () => resolveSlot(slots.headerActions, () => {
54561
- const shareButtonProps = {
54562
- ...headerButtonPropsRef.value,
54563
- ...headerShareButtonPropsRef.value
54564
- };
54565
- const profileButtonProps = {
54566
- ...headerButtonPropsRef.value,
54567
- ...headerProfileButtonPropsRef.value
54568
- };
54569
- const closeButtonProps = {
54570
- ...headerButtonPropsRef.value,
54571
- ...headerCloseButtonPropsRef.value
54572
- };
54573
- const shareIconProps = {
54574
- ...headerIconPropsRef.value,
54575
- ...headerShareIconPropsRef.value
54576
- };
54577
- const profileIconProps = {
54578
- ...headerIconPropsRef.value,
54579
- ...headerProfileIconPropsRef.value
54580
- };
54581
- const buttons = [];
54582
- buttons.push(
54583
- /* @__PURE__ */ h(_UTooltip, null, {
54584
- trigger: () => /* @__PURE__ */ h(
54585
- Button,
54614
+ const chat = selectedChatRef.value;
54615
+ const keyId = toKeyString(chat?.id);
54616
+ const keyTitle = toKeyString(chat?.title);
54617
+ return /* @__PURE__ */ h("div", { class: `${mergedClsPrefixRef.value}-chat-main__header-inner` }, /* @__PURE__ */ h(
54618
+ "div",
54619
+ {
54620
+ class: `${mergedClsPrefixRef.value}-chat-main__header-title-wrap`
54621
+ },
54622
+ /* @__PURE__ */ h(
54623
+ _UText,
54624
+ {
54625
+ key: `${keyId}-${keyTitle}`,
54626
+ variant: "heading-s-bold",
54627
+ class: `${mergedClsPrefixRef.value}-chat-main__header-title`,
54628
+ theme: mergedThemeRef.value.peers.Typography,
54629
+ themeOverrides: mergedThemeRef.value.peerOverrides.Typography
54630
+ },
54631
+ {
54632
+ default: () => selectedChatRef.value?.title ?? ""
54633
+ }
54634
+ ),
54635
+ isTyping.value && /* @__PURE__ */ h(
54636
+ _UText,
54637
+ {
54638
+ class: [
54639
+ `${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
54640
+ "typing"
54641
+ ],
54642
+ variant: "body-m-medium"
54643
+ },
54644
+ {
54645
+ default: () => typingTextRef.value ?? ""
54646
+ }
54647
+ )
54648
+ ), /* @__PURE__ */ h(
54649
+ _UFlex,
54650
+ {
54651
+ align: "center",
54652
+ size: "small",
54653
+ class: `${mergedClsPrefixRef.value}-chat-main__header-actions`
54654
+ },
54655
+ {
54656
+ default: () => resolveSlot(slots.headerActions, () => {
54657
+ const shareButtonProps = {
54658
+ ...headerButtonPropsRef.value,
54659
+ ...headerShareButtonPropsRef.value
54660
+ };
54661
+ const profileButtonProps = {
54662
+ ...headerButtonPropsRef.value,
54663
+ ...headerProfileButtonPropsRef.value
54664
+ };
54665
+ const closeButtonProps = {
54666
+ ...headerButtonPropsRef.value,
54667
+ ...headerCloseButtonPropsRef.value
54668
+ };
54669
+ const shareIconProps = {
54670
+ ...headerIconPropsRef.value,
54671
+ ...headerShareIconPropsRef.value
54672
+ };
54673
+ const profileIconProps = {
54674
+ ...headerIconPropsRef.value,
54675
+ ...headerProfileIconPropsRef.value
54676
+ };
54677
+ const buttons = [];
54678
+ buttons.push(
54679
+ /* @__PURE__ */ h(_UTooltip, null, {
54680
+ trigger: () => /* @__PURE__ */ h(
54681
+ Button,
54682
+ {
54683
+ secondary: true,
54684
+ circle: true,
54685
+ size: "large",
54686
+ ...shareButtonProps,
54687
+ theme: mergedThemeRef.value.peers.Button,
54688
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54689
+ onClick: () => onChatShare?.value?.()
54690
+ },
54691
+ {
54692
+ default: () => /* @__PURE__ */ h(
54693
+ UIcon$1,
54586
54694
  {
54587
- secondary: true,
54588
- circle: true,
54589
- size: "large",
54590
- ...shareButtonProps,
54591
- theme: mergedThemeRef.value.peers.Button,
54592
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54593
- onClick: () => onChatShare?.value?.()
54695
+ size: 20,
54696
+ ...shareIconProps,
54697
+ theme: mergedThemeRef.value.peers.HeaderShareIcon,
54698
+ themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
54594
54699
  },
54595
54700
  {
54596
- default: () => /* @__PURE__ */ h(
54597
- UIcon$1,
54598
- {
54599
- size: 20,
54600
- ...shareIconProps,
54601
- theme: mergedThemeRef.value.peers.HeaderShareIcon,
54602
- themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
54603
- },
54604
- {
54605
- default: () => /* @__PURE__ */ h(ArrowHookUpRight, null)
54606
- }
54607
- )
54701
+ default: () => /* @__PURE__ */ h(ArrowHookUpRight, null)
54608
54702
  }
54609
- ),
54610
- default: () => shareButtonTooltipRef.value
54611
- })
54612
- );
54613
- buttons.push(
54614
- /* @__PURE__ */ h(_UTooltip, null, {
54615
- trigger: () => /* @__PURE__ */ h(
54616
- Button,
54703
+ )
54704
+ }
54705
+ ),
54706
+ default: () => shareButtonTooltipRef.value
54707
+ })
54708
+ );
54709
+ buttons.push(
54710
+ /* @__PURE__ */ h(_UTooltip, null, {
54711
+ trigger: () => /* @__PURE__ */ h(
54712
+ Button,
54713
+ {
54714
+ secondary: true,
54715
+ circle: true,
54716
+ size: "large",
54717
+ ...profileButtonProps,
54718
+ theme: mergedThemeRef.value.peers.Button,
54719
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54720
+ onClick: () => onUserProfile?.value?.()
54721
+ },
54722
+ {
54723
+ default: () => /* @__PURE__ */ h(
54724
+ UIcon$1,
54617
54725
  {
54618
- secondary: true,
54619
- circle: true,
54620
- size: "large",
54621
- ...profileButtonProps,
54622
- theme: mergedThemeRef.value.peers.Button,
54623
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54624
- onClick: () => onUserProfile?.value?.()
54726
+ size: 20,
54727
+ ...profileIconProps,
54728
+ theme: mergedThemeRef.value.peers.HeaderProfileIcon,
54729
+ themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
54625
54730
  },
54626
54731
  {
54627
- default: () => /* @__PURE__ */ h(
54628
- UIcon$1,
54629
- {
54630
- size: 20,
54631
- ...profileIconProps,
54632
- theme: mergedThemeRef.value.peers.HeaderProfileIcon,
54633
- themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
54634
- },
54635
- {
54636
- default: () => /* @__PURE__ */ h(PersonNote, null)
54637
- }
54638
- )
54732
+ default: () => /* @__PURE__ */ h(PersonNote, null)
54639
54733
  }
54640
- ),
54641
- default: () => profileButtonTooltipRef.value
54642
- })
54643
- );
54644
- buttons.push(
54645
- /* @__PURE__ */ h(
54646
- Button,
54647
- {
54648
- type: "primary",
54649
- size: "large",
54650
- round: true,
54651
- ...closeButtonProps,
54652
- theme: mergedThemeRef.value.peers.Button,
54653
- themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54654
- onClick: () => onChatClose?.value?.()
54655
- },
54656
- {
54657
- default: () => closeButtonTextRef.value
54658
- }
54659
- )
54660
- );
54661
- return buttons;
54734
+ )
54735
+ }
54736
+ ),
54737
+ default: () => profileButtonTooltipRef.value
54662
54738
  })
54663
- }
54664
- ));
54739
+ );
54740
+ buttons.push(
54741
+ /* @__PURE__ */ h(
54742
+ Button,
54743
+ {
54744
+ type: "primary",
54745
+ size: "large",
54746
+ round: true,
54747
+ ...closeButtonProps,
54748
+ theme: mergedThemeRef.value.peers.Button,
54749
+ themeOverrides: mergedThemeRef.value.peerOverrides.Button,
54750
+ onClick: () => onChatClose?.value?.()
54751
+ },
54752
+ {
54753
+ default: () => closeButtonTextRef.value
54754
+ }
54755
+ )
54756
+ );
54757
+ return buttons;
54758
+ })
54665
54759
  }
54666
- }));
54760
+ ));
54667
54761
  };
54668
54762
  const renderMessages = () => {
54669
54763
  return /* @__PURE__ */ h(
@@ -54718,7 +54812,7 @@ var ChatMainArea = defineComponent({
54718
54812
  if (isSending.value) {
54719
54813
  return;
54720
54814
  }
54721
- const hasContent = inputValue.value.trim();
54815
+ const hasContent = inputValue.value;
54722
54816
  const hasAttachments = attachmentFileList.value.length > 0;
54723
54817
  if (editMessageIdRef?.value && hasContent) {
54724
54818
  isSending.value = true;
@@ -54727,7 +54821,7 @@ var ChatMainArea = defineComponent({
54727
54821
  if (messageToEdit) {
54728
54822
  const updatedMessage = {
54729
54823
  ...messageToEdit,
54730
- content: inputValue.value.trim()
54824
+ content: inputValue.value
54731
54825
  };
54732
54826
  const bubbleActions = bubbleActionsRef?.value;
54733
54827
  if (bubbleActions) {
@@ -54780,7 +54874,7 @@ var ChatMainArea = defineComponent({
54780
54874
  }
54781
54875
  return result;
54782
54876
  })() : void 0;
54783
- handleMessageSend(inputValue.value.trim(), attachments);
54877
+ handleMessageSend(inputValue.value, attachments);
54784
54878
  inputValue.value = "";
54785
54879
  attachmentFileList.value = [];
54786
54880
  chatInputs.value[selectedChatRef.value.id] = "";
@@ -54921,9 +55015,13 @@ var ChatMainArea = defineComponent({
54921
55015
  value: inputValue.value,
54922
55016
  placeholder: inputPlaceholderRef.value,
54923
55017
  class: `${mergedClsPrefixRef.value}-chat-main__input`,
54924
- ...footerInputPropsRef.value,
54925
55018
  theme: mergedThemeRef.value.peers.Input,
54926
55019
  themeOverrides: mergedThemeRef.value.peerOverrides.Input,
55020
+ type: "textarea",
55021
+ autosize: {
55022
+ minRows: 1,
55023
+ maxRows: 5
55024
+ },
54927
55025
  onUpdateValue: (value) => {
54928
55026
  inputValue.value = value;
54929
55027
  if (selectedChatRef.value) {
@@ -54936,7 +55034,8 @@ var ChatMainArea = defineComponent({
54936
55034
  e.stopPropagation();
54937
55035
  void handleSendMessage();
54938
55036
  }
54939
- }
55037
+ },
55038
+ ...footerInputPropsRef.value
54940
55039
  },
54941
55040
  {
54942
55041
  prefix: () => renderEditingBlock(),
@@ -59772,6 +59871,7 @@ const configProviderProps = {
59772
59871
  themeOverrides: Object,
59773
59872
  componentOptions: Object,
59774
59873
  icons: Object,
59874
+ iconPacks: Object,
59775
59875
  breakpoints: Object,
59776
59876
  breakpointProps: Object,
59777
59877
  breakpointThemeOverrides: Object,
@@ -59914,6 +60014,12 @@ var UConfigProvider$1 = defineComponent({
59914
60014
  } = props;
59915
60015
  return icons === void 0 ? UConfigProvider?.mergedIconsRef.value : icons;
59916
60016
  });
60017
+ const mergedIconPacksRef = computed(() => {
60018
+ const {
60019
+ iconPacks
60020
+ } = props;
60021
+ return iconPacks === void 0 ? UConfigProvider?.mergedIconPacksRef.value : iconPacks;
60022
+ });
59917
60023
  const updateWindowWidth = () => {
59918
60024
  if (isBrowser$1) {
59919
60025
  windowWidthRef.value = window.innerWidth;
@@ -60022,6 +60128,7 @@ var UConfigProvider$1 = defineComponent({
60022
60128
  mergedSsrBreakpointWidthRef,
60023
60129
  mergedRtlRef,
60024
60130
  mergedIconsRef,
60131
+ mergedIconPacksRef,
60025
60132
  mergedComponentPropsRef,
60026
60133
  mergedBreakpointPropsRef,
60027
60134
  mergedBreakpointThemeOverridesRef,
@@ -80819,7 +80926,6 @@ function useDragModal(draggablePropsRef, options) {
80819
80926
  const presetProps = {
80820
80927
  // put dialog props after since I want the card to unbordered by default
80821
80928
  ...dialogProps,
80822
- presetDisabled: Boolean,
80823
80929
  size: {
80824
80930
  type: String,
80825
80931
  default: "medium"
@@ -81190,7 +81296,10 @@ const modalProps = {
81190
81296
  type: Boolean,
81191
81297
  default: true
81192
81298
  },
81193
- preset: String,
81299
+ preset: {
81300
+ type: String,
81301
+ default: "dialog"
81302
+ },
81194
81303
  to: [String, Object],
81195
81304
  displayDirective: {
81196
81305
  type: String,
@@ -81452,7 +81561,7 @@ var _UModal = defineComponent({
81452
81561
  ref: "bodyWrapper",
81453
81562
  displayDirective: this.displayDirective,
81454
81563
  show: this.show,
81455
- preset: this.preset,
81564
+ preset: this.internalDialog ? void 0 : this.preset,
81456
81565
  autoFocus: this.autoFocus,
81457
81566
  trapFocus: this.trapFocus,
81458
81567
  draggable: this.draggable,
@@ -81650,8 +81759,7 @@ const UDialogEnvironment = defineComponent({
81650
81759
  transformOrigin: this.transformOrigin,
81651
81760
  draggable: this.draggable,
81652
81761
  internalAppear: true,
81653
- internalDialog: true,
81654
- presetDisabled: true
81762
+ internalDialog: true
81655
81763
  },
81656
81764
  {
81657
81765
  default: () => /* @__PURE__ */ h(
@@ -95105,6 +95213,10 @@ const mappingCardProps = {
95105
95213
  type: Boolean,
95106
95214
  default: false
95107
95215
  },
95216
+ hideHeaderActions: {
95217
+ type: Boolean,
95218
+ default: false
95219
+ },
95108
95220
  copyButtonProps: Object,
95109
95221
  copyIconProps: Object,
95110
95222
  headerEditButtonProps: Object,
@@ -95738,7 +95850,7 @@ var MappingCardHeader = defineComponent({
95738
95850
  default: () => locale.copyTooltip
95739
95851
  }))
95740
95852
  }
95741
- ), /* @__PURE__ */ h(_UFlex, { align: "center", size: "small" }, {
95853
+ ), !props.hideHeaderActions && /* @__PURE__ */ h(_UFlex, { align: "center", size: "small" }, {
95742
95854
  default: () => resolveSlot(slots.headerActions, () => {
95743
95855
  const buttons = [];
95744
95856
  buttons.push(
@@ -112282,7 +112394,7 @@ function useThemeVars() {
112282
112394
  });
112283
112395
  }
112284
112396
 
112285
- var version = "2.0.0-beta.8";
112397
+ var version = "2.0.0";
112286
112398
 
112287
112399
  function create({
112288
112400
  componentPrefix = "U",