@uzum-tech/ui 1.12.21 → 1.13.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 (95) hide show
  1. package/dist/index.js +2789 -510
  2. package/dist/index.prod.js +4 -4
  3. package/es/_styles/common/dark.js +1 -1
  4. package/es/_styles/common/light.d.ts +1 -0
  5. package/es/_styles/common/light.js +1 -1
  6. package/es/chat/src/ChatMessages.js +6 -1
  7. package/es/chat/src/styles/index.cssr.js +5 -1
  8. package/es/components.d.ts +1 -0
  9. package/es/components.js +1 -0
  10. package/es/config-provider/src/internal-interface.d.ts +3 -0
  11. package/es/date-picker-v2/index.d.ts +5 -0
  12. package/es/date-picker-v2/index.js +2 -0
  13. package/es/date-picker-v2/src/DatePickerV2.d.ts +4765 -0
  14. package/es/date-picker-v2/src/DatePickerV2.js +750 -0
  15. package/es/date-picker-v2/src/composables/useCalendarScroll.d.ts +1133 -0
  16. package/es/date-picker-v2/src/composables/useCalendarScroll.js +61 -0
  17. package/es/date-picker-v2/src/config.d.ts +14 -0
  18. package/es/date-picker-v2/src/config.js +34 -0
  19. package/es/date-picker-v2/src/interface.d.ts +42 -0
  20. package/es/date-picker-v2/src/interface.js +1 -0
  21. package/es/date-picker-v2/src/panel/CalendarPanel.d.ts +1222 -0
  22. package/es/date-picker-v2/src/panel/CalendarPanel.js +186 -0
  23. package/es/date-picker-v2/src/panel/CalendarRangePanel.d.ts +1246 -0
  24. package/es/date-picker-v2/src/panel/CalendarRangePanel.js +205 -0
  25. package/es/date-picker-v2/src/styles/index.cssr.d.ts +2 -0
  26. package/es/date-picker-v2/src/styles/index.cssr.js +190 -0
  27. package/es/date-picker-v2/src/utils.d.ts +12 -0
  28. package/es/date-picker-v2/src/utils.js +92 -0
  29. package/es/date-picker-v2/styles/dark.d.ts +447 -0
  30. package/es/date-picker-v2/styles/dark.js +19 -0
  31. package/es/date-picker-v2/styles/index.d.ts +3 -0
  32. package/es/date-picker-v2/styles/index.js +2 -0
  33. package/es/date-picker-v2/styles/light.d.ts +477 -0
  34. package/es/date-picker-v2/styles/light.js +56 -0
  35. package/es/dialog/src/DialogProvider.d.ts +2 -0
  36. package/es/header/src/Header.js +4 -1
  37. package/es/header/src/HeaderSearchDesktop.d.ts +12 -0
  38. package/es/header/src/HeaderSearchDesktop.js +21 -4
  39. package/es/header/src/HeaderSearchMobile.d.ts +12 -0
  40. package/es/header/src/HeaderSearchMobile.js +8 -2
  41. package/es/header/src/mobile/HeaderMobile.js +18 -3
  42. package/es/locales/common/enUS.js +1 -1
  43. package/es/theme-editor/src/ThemeEditor.d.ts +1 -0
  44. package/es/themes/dark.js +2 -0
  45. package/es/themes/light.js +2 -0
  46. package/es/version.d.ts +1 -1
  47. package/es/version.js +1 -1
  48. package/lib/_styles/common/dark.js +1 -1
  49. package/lib/_styles/common/light.d.ts +1 -0
  50. package/lib/_styles/common/light.js +1 -1
  51. package/lib/chat/src/ChatMessages.js +6 -1
  52. package/lib/chat/src/styles/index.cssr.js +5 -1
  53. package/lib/components.d.ts +1 -0
  54. package/lib/components.js +1 -0
  55. package/lib/config-provider/src/internal-interface.d.ts +3 -0
  56. package/lib/date-picker-v2/index.d.ts +5 -0
  57. package/lib/date-picker-v2/index.js +11 -0
  58. package/lib/date-picker-v2/src/DatePickerV2.d.ts +4765 -0
  59. package/lib/date-picker-v2/src/DatePickerV2.js +756 -0
  60. package/lib/date-picker-v2/src/composables/useCalendarScroll.d.ts +1133 -0
  61. package/lib/date-picker-v2/src/composables/useCalendarScroll.js +64 -0
  62. package/lib/date-picker-v2/src/config.d.ts +14 -0
  63. package/lib/date-picker-v2/src/config.js +37 -0
  64. package/lib/date-picker-v2/src/interface.d.ts +42 -0
  65. package/lib/date-picker-v2/src/interface.js +4 -0
  66. package/lib/date-picker-v2/src/panel/CalendarPanel.d.ts +1222 -0
  67. package/lib/date-picker-v2/src/panel/CalendarPanel.js +188 -0
  68. package/lib/date-picker-v2/src/panel/CalendarRangePanel.d.ts +1246 -0
  69. package/lib/date-picker-v2/src/panel/CalendarRangePanel.js +207 -0
  70. package/lib/date-picker-v2/src/styles/index.cssr.d.ts +2 -0
  71. package/lib/date-picker-v2/src/styles/index.cssr.js +195 -0
  72. package/lib/date-picker-v2/src/utils.d.ts +12 -0
  73. package/lib/date-picker-v2/src/utils.js +101 -0
  74. package/lib/date-picker-v2/styles/dark.d.ts +447 -0
  75. package/lib/date-picker-v2/styles/dark.js +21 -0
  76. package/lib/date-picker-v2/styles/index.d.ts +3 -0
  77. package/lib/date-picker-v2/styles/index.js +10 -0
  78. package/lib/date-picker-v2/styles/light.d.ts +477 -0
  79. package/lib/date-picker-v2/styles/light.js +60 -0
  80. package/lib/dialog/src/DialogProvider.d.ts +2 -0
  81. package/lib/header/src/Header.js +4 -1
  82. package/lib/header/src/HeaderSearchDesktop.d.ts +12 -0
  83. package/lib/header/src/HeaderSearchDesktop.js +20 -3
  84. package/lib/header/src/HeaderSearchMobile.d.ts +12 -0
  85. package/lib/header/src/HeaderSearchMobile.js +7 -1
  86. package/lib/header/src/mobile/HeaderMobile.js +18 -3
  87. package/lib/locales/common/enUS.js +1 -1
  88. package/lib/theme-editor/src/ThemeEditor.d.ts +1 -0
  89. package/lib/themes/dark.js +2 -0
  90. package/lib/themes/light.js +2 -0
  91. package/lib/version.d.ts +1 -1
  92. package/lib/version.js +1 -1
  93. package/package.json +1 -1
  94. package/volar.d.ts +1 -0
  95. package/web-types.json +161 -1
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { h, defineComponent, ref, watch, computed } from 'vue';
10
+ import { h, defineComponent, ref, watch, computed, onMounted } from 'vue';
11
11
  import { UDrawer } from '../../drawer';
12
12
  import { UButton } from '../../button';
13
13
  import { UIcon } from '../../icon';
@@ -41,6 +41,7 @@ export default defineComponent({
41
41
  const searchValue = ref('');
42
42
  const searchResults = ref([]);
43
43
  const searchLoading = ref(false);
44
+ const inputInstRef = ref(null);
44
45
  const placeholder = computed(() => localeRef.value.searchPlaceholder);
45
46
  const handleSearch = () => __awaiter(this, void 0, void 0, function* () {
46
47
  const query = searchValue.value.trim();
@@ -84,11 +85,16 @@ export default defineComponent({
84
85
  void handleSearch();
85
86
  }, SEARCH_DEBOUNCE_MS);
86
87
  });
88
+ onMounted(() => {
89
+ var _a;
90
+ (_a = inputInstRef.value) === null || _a === void 0 ? void 0 : _a.focus();
91
+ });
87
92
  return {
88
93
  placeholder,
89
94
  searchValue,
90
95
  searchResults,
91
96
  searchLoading,
97
+ inputInstRef,
92
98
  handleSearchInput,
93
99
  handleSearch,
94
100
  handleClose,
@@ -106,7 +112,7 @@ export default defineComponent({
106
112
  h(UButton, { text: true, class: `${blockClass}__back`, onClick: this.handleClose }, () => h(UIcon, { size: 24 }, () => h(ChevronLeftIcon, null))),
107
113
  h("div", { class: `${blockClass}__input-wrapper` },
108
114
  h(UIcon, { size: 20, class: `${blockClass}__input-icon` }, () => h(SearchIcon, null)),
109
- h(UInput, { value: this.searchValue, placeholder: this.placeholder, onKeyup: (e) => {
115
+ h(UInput, { ref: "inputInstRef", value: this.searchValue, placeholder: this.placeholder, onKeyup: (e) => {
110
116
  if (e.key === 'Enter') {
111
117
  void this.handleSearch();
112
118
  }
@@ -197,6 +197,21 @@ export default defineComponent({
197
197
  renderBadge(option, `${blockClass}__badge`)),
198
198
  isExpandable && isExpanded && option.children && (h("div", { class: `${mobileMenuClass}__children` }, option.children.map((child, index) => renderGroupItem(child, item.key, index))))));
199
199
  };
200
+ const renderSearchAction = () => {
201
+ if (this.$slots.search)
202
+ return this.$slots.search();
203
+ return (h(UButton, { text: true, onClick: this.onSearchClick }, () => h(UIcon, { size: 24 }, () => h(SearchIcon, null))));
204
+ };
205
+ const renderPreviewAction = () => {
206
+ if (this.$slots.preview)
207
+ return this.$slots.preview();
208
+ return (h(UButton, { text: true, onClick: this.onPreview }, () => h(UIcon, { size: 24 }, () => h(EyeIcon, null))));
209
+ };
210
+ const renderLogoutAction = () => {
211
+ if (this.$slots.logout)
212
+ return this.$slots.logout();
213
+ return (h(UButton, { text: true, onClick: this.onLogout }, () => h(UIcon, { size: 24 }, () => h(LogoutIcon, null))));
214
+ };
200
215
  const mobileMenuContent = (h("div", { class: mobileMenuClass, style: this.cssVars },
201
216
  h("div", { class: `${mobileMenuClass}__header` },
202
217
  this.$slots.actions ? (h("div", { class: `${mobileMenuClass}__actions` }, this.$slots.actions())) : this.showHeaderActions ? (h("div", { class: `${mobileMenuClass}__actions` },
@@ -216,9 +231,9 @@ export default defineComponent({
216
231
  }),
217
232
  h(UFlex, { size: 24 }, {
218
233
  default: () => (h(Fragment, null,
219
- h(UButton, { text: true, onClick: this.onSearchClick }, () => h(UIcon, { size: 24 }, () => h(SearchIcon, null))),
220
- h(UButton, { text: true, onClick: this.onPreview }, () => h(UIcon, { size: 24 }, () => h(EyeIcon, null))),
221
- h(UButton, { text: true, onClick: this.onLogout }, () => h(UIcon, { size: 24 }, () => h(LogoutIcon, null)))))
234
+ renderSearchAction(),
235
+ renderPreviewAction(),
236
+ renderLogoutAction()))
222
237
  }))) : null,
223
238
  h(UButton, { text: true, class: `${mobileMenuClass}__close`, onClick: this.onClose }, () => h(UIcon, { size: 24 }, () => h(CloseIcon, null)))),
224
239
  h("div", { class: `${mobileMenuClass}__body` },
@@ -21,7 +21,7 @@ const enUS = {
21
21
  },
22
22
  DatePicker: {
23
23
  yearFormat: 'yyyy',
24
- monthFormat: 'MMM',
24
+ monthFormat: 'MMMM',
25
25
  dayFormat: 'eeeeee',
26
26
  yearTypeFormat: 'yyyy',
27
27
  monthTypeFormat: 'yyyy-MM',
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{}, {
20
20
  brand150: string;
21
21
  brand350: string;
22
22
  brand550: string;
23
+ brandPrimary10: string;
23
24
  brandPrimary50: string;
24
25
  brandPrimary100: string;
25
26
  brandPrimary200: string;
package/es/themes/dark.js CHANGED
@@ -94,6 +94,7 @@ import safeTopScrollbarDark from '../_internal/safe-top-scrollbar/styles/dark';
94
94
  import { headerDark } from '../header/styles';
95
95
  import { iconBarDark } from '../icon-bar/styles';
96
96
  import { qrcodeDark } from '../qr-code/styles';
97
+ import { datePickerV2Dark } from '../components';
97
98
  export const darkTheme = {
98
99
  name: 'dark',
99
100
  common: commonDark,
@@ -121,6 +122,7 @@ export const darkTheme = {
121
122
  ColorPicker: colorPickerDark,
122
123
  DataTable: dataTableDark,
123
124
  DatePicker: datePickerDark,
125
+ DatePickerV2: datePickerV2Dark,
124
126
  Descriptions: descriptionsDark,
125
127
  Dialog: dialogDark,
126
128
  Divider: dividerDark,
@@ -96,6 +96,7 @@ import { qrcodeLight } from '../qr-code/styles';
96
96
  import safeTopScrollbarLight from '../_internal/safe-top-scrollbar/styles/light';
97
97
  import { headerLight } from '../header/styles';
98
98
  import { iconBarLight } from '../icon-bar/styles';
99
+ import { datePickerV2Light } from '../components';
99
100
  export const lightTheme = {
100
101
  name: 'light',
101
102
  common: commonLight,
@@ -123,6 +124,7 @@ export const lightTheme = {
123
124
  ColorPicker: colorPickerLight,
124
125
  DataTable: dataTableLight,
125
126
  DatePicker: datePickerLight,
127
+ DatePickerV2: datePickerV2Light,
126
128
  Descriptions: descriptionsLight,
127
129
  Dialog: dialogLight,
128
130
  Divider: dividerLight,
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.12.21";
1
+ declare const _default: "1.13.0";
2
2
  export default _default;
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.12.21';
1
+ export default '1.13.0';
@@ -4,6 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const _common_1 = __importDefault(require("./_common"));
7
- const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.default), { scrollbarColor: 'rgba(255, 255, 255, 0.25)', scrollbarColorHover: 'rgba(255, 255, 255, 0.4)', scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', opacityDisabled: '0.5', brand150: '#FFF3D3', brand350: '#F1F9DF', brand550: '#FFF3F4', brandPrimary50: '#2B204E', brandPrimary100: '#412A89', brandPrimary200: '#6A40ED', brandPrimary300: '#BBA2FD', brandPrimary400: '#7748F1', brandPrimary500: '#8967F1', brandPrimary550: '#6607DF', brandPrimary600: '#5D46A6', brandSecondary400: '#FFF8E3', brandSecondary500: '#FFFF54', brandSecondary300: '#FDF5A6', brandSecondary600: '#F9DE6D', brandTertiary500: '#C4ED70', brandTertiary300: '#DCF0AF', brandTertiary600: '#9DED70', brandQuaternary500: '#90DDFB', brandQuaternary300: '#C5ECFD', brandQuaternary600: '#54B8F9', brandQuinary500: '#EC616A', brandQuinary300: '#F19EDA', brandQuinary600: '#EA3E68', brandQuinary100: '#FAD6D9', surfacePrimary: '#101010', surfaceSecondary: '#1D1D1D', containerPrimary: '#1D1D1D', containerSecondary: '#313135', textPrimary: '#F3F4F6', textSecondary: '#808080', textTertiary: '#999999', textQuaternary: '#101010', textBrand: '#F3F4F6', elementsPrimary: '#F3F4F6', elementsSecondary: '#101010', elementsTertiary: '#222222', elementsQuaternary: '#424247', elementsQuinary: '#707479', elementsDarkQuinary: '#919396', elementsSenary: '#DFDFDF', elementsOnContainer: '#101010', transparencyPrimary: 'rgba(255, 255, 255, 0.1)', transparencySecondary: 'rgba(255, 255, 255, 0.07)', transparencyTertiary: 'rgba(255, 255, 255, 0.16)', transparencyQuinary: 'rgba(255, 255, 255, 0.32)', transparencyModal: 'rgba(0, 0, 0, 0.75)', staticBlack: '#101010', staticDarkGrey: '#2C2C2D', staticWhite: '#FFFFFF', staticRed: '#F24835', staticOrange: '#F48C2C', staticGreen: '#09B849', staticDeepBlue: '#2F53CD', staticErrorAccent: '#CB0000', shadowDepth2: '0 0 0 1px #424247', shadowDepth: '0px 8px 8px 0px rgba(255, 255, 255, 0.25)' // В дизайне тень вообще отсутствует, пока что пусть побудет визуально как border
7
+ const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.default), { scrollbarColor: 'rgba(255, 255, 255, 0.25)', scrollbarColorHover: 'rgba(255, 255, 255, 0.4)', scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', opacityDisabled: '0.5', brand150: '#FFF3D3', brand350: '#F1F9DF', brand550: '#FFF3F4', brandPrimary10: '#F3F2F9', brandPrimary50: '#2B204E', brandPrimary100: '#412A89', brandPrimary200: '#6A40ED', brandPrimary300: '#BBA2FD', brandPrimary400: '#7748F1', brandPrimary500: '#8967F1', brandPrimary550: '#6607DF', brandPrimary600: '#5D46A6', brandSecondary400: '#FFF8E3', brandSecondary500: '#FFFF54', brandSecondary300: '#FDF5A6', brandSecondary600: '#F9DE6D', brandTertiary500: '#C4ED70', brandTertiary300: '#DCF0AF', brandTertiary600: '#9DED70', brandQuaternary500: '#90DDFB', brandQuaternary300: '#C5ECFD', brandQuaternary600: '#54B8F9', brandQuinary500: '#EC616A', brandQuinary300: '#F19EDA', brandQuinary600: '#EA3E68', brandQuinary100: '#FAD6D9', surfacePrimary: '#101010', surfaceSecondary: '#1D1D1D', containerPrimary: '#1D1D1D', containerSecondary: '#313135', textPrimary: '#F3F4F6', textSecondary: '#808080', textTertiary: '#999999', textQuaternary: '#101010', textBrand: '#F3F4F6', elementsPrimary: '#F3F4F6', elementsSecondary: '#101010', elementsTertiary: '#222222', elementsQuaternary: '#424247', elementsQuinary: '#707479', elementsDarkQuinary: '#919396', elementsSenary: '#DFDFDF', elementsOnContainer: '#101010', transparencyPrimary: 'rgba(255, 255, 255, 0.1)', transparencySecondary: 'rgba(255, 255, 255, 0.07)', transparencyTertiary: 'rgba(255, 255, 255, 0.16)', transparencyQuinary: 'rgba(255, 255, 255, 0.32)', transparencyModal: 'rgba(0, 0, 0, 0.75)', staticBlack: '#101010', staticDarkGrey: '#2C2C2D', staticWhite: '#FFFFFF', staticRed: '#F24835', staticOrange: '#F48C2C', staticGreen: '#09B849', staticDeepBlue: '#2F53CD', staticErrorAccent: '#CB0000', shadowDepth2: '0 0 0 1px #424247', shadowDepth: '0px 8px 8px 0px rgba(255, 255, 255, 0.25)' // В дизайне тень вообще отсутствует, пока что пусть побудет визуально как border
8
8
  });
9
9
  exports.default = derived;
@@ -8,6 +8,7 @@ declare const derived: {
8
8
  brand150: string;
9
9
  brand350: string;
10
10
  brand550: string;
11
+ brandPrimary10: string;
11
12
  brandPrimary50: string;
12
13
  brandPrimary100: string;
13
14
  brandPrimary200: string;
@@ -4,5 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const _common_1 = __importDefault(require("./_common"));
7
- const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.default), { scrollbarColor: 'rgba(0, 0, 0, 0.25)', scrollbarColorHover: 'rgba(0, 0, 0, 0.4)', scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', opacityDisabled: '0.5', brand150: '#FFF3D3', brand350: '#F1F9DF', brand550: '#FFF3F4', brandPrimary50: '#F8F2FF', brandPrimary100: '#EAE2FF', brandPrimary200: '#DACCFF', brandPrimary300: '#BBA2FD', brandPrimary400: '#7748F1', brandPrimary500: '#7000FF', brandPrimary550: '#6607DF', brandPrimary600: '#5B34C1', brandSecondary400: '#FFF8E3', brandSecondary500: '#FFFF54', brandSecondary300: '#FDF5A6', brandSecondary600: '#F9DE6D', brandTertiary500: '#C4ED70', brandTertiary300: '#DCF0AF', brandTertiary600: '#9DED70', brandQuaternary500: '#90DDFB', brandQuaternary300: '#C5ECFD', brandQuaternary600: '#54B8F9', brandQuinary500: '#EC616A', brandQuinary300: '#F19EDA', brandQuinary600: '#EA3E68', brandQuinary100: '#FAD6D9', surfacePrimary: '#fff', surfaceSecondary: '#1d1d1d', containerPrimary: '#fff', containerSecondary: '#F3F4F6', textPrimary: '#101010', textSecondary: '#808080', textTertiary: '#999999', textQuaternary: '#FFFFFF', textBrand: '#7000FF', elementsPrimary: '#101010', elementsSecondary: '#fff', elementsTertiary: '#F3F4F6', elementsQuaternary: '#E7E8EA', elementsQuinary: '#C5C7CA', elementsDarkQuinary: '#919396', elementsSenary: '#4E4D4D', elementsOnContainer: '#fff', transparencyPrimary: 'rgba(0, 0, 0, 0.35)', transparencySecondary: 'rgba(0, 0, 0, 0.07)', transparencyTertiary: 'rgba(255, 255, 255, 0.16)', transparencyQuinary: 'rgba(255, 255, 255, 0.32)', transparencyModal: 'rgba(0, 0, 0, 0.40)', staticBlack: '#101010', staticDarkGrey: '#2C2C2D', staticWhite: '#FFFFFF', staticRed: '#F24835', staticOrange: '#F48C2C', staticGreen: '#09B849', staticDeepBlue: '#2F53CD', staticErrorAccent: '#CB0000', shadowDepth2: '0px 20px 80px 0px rgba(0, 0, 0, 0.07)', shadowDepth: '0px 8px 8px 0px rgba(0, 0, 0, 0.25)' });
7
+ const derived = Object.assign(Object.assign({ name: 'common' }, _common_1.default), { scrollbarColor: 'rgba(0, 0, 0, 0.25)', scrollbarColorHover: 'rgba(0, 0, 0, 0.4)', scrollbarWidth: '5px', scrollbarHeight: '5px', scrollbarBorderRadius: '5px', opacityDisabled: '0.5', brand150: '#FFF3D3', brand350: '#F1F9DF', brand550: '#FFF3F4', brandPrimary10: '#F3F2F9', brandPrimary50: '#F8F2FF', brandPrimary100: '#EAE2FF', brandPrimary200: '#DACCFF', brandPrimary300: '#BBA2FD', brandPrimary400: '#7748F1', brandPrimary500: '#7000FF', brandPrimary550: '#6607DF', brandPrimary600: '#5B34C1', brandSecondary400: '#FFF8E3', brandSecondary500: '#FFFF54', brandSecondary300: '#FDF5A6', brandSecondary600: '#F9DE6D', brandTertiary500: '#C4ED70', brandTertiary300: '#DCF0AF', brandTertiary600: '#9DED70', brandQuaternary500: '#90DDFB', brandQuaternary300: '#C5ECFD', brandQuaternary600: '#54B8F9', brandQuinary500: '#EC616A', brandQuinary300: '#F19EDA', brandQuinary600: '#EA3E68', brandQuinary100: '#FAD6D9', surfacePrimary: '#fff', surfaceSecondary: '#1d1d1d', containerPrimary: '#fff', containerSecondary: '#F3F4F6', textPrimary: '#101010', textSecondary: '#808080', textTertiary: '#999999', textQuaternary: '#FFFFFF', textBrand: '#7000FF', elementsPrimary: '#101010', elementsSecondary: '#fff', elementsTertiary: '#F3F4F6', elementsQuaternary: '#E7E8EA', elementsQuinary: '#C5C7CA', elementsDarkQuinary: '#919396', elementsSenary: '#4E4D4D', elementsOnContainer: '#fff', transparencyPrimary: 'rgba(0, 0, 0, 0.35)', transparencySecondary: 'rgba(0, 0, 0, 0.07)', transparencyTertiary: 'rgba(255, 255, 255, 0.16)', transparencyQuinary: 'rgba(255, 255, 255, 0.32)', transparencyModal: 'rgba(0, 0, 0, 0.40)', staticBlack: '#101010', staticDarkGrey: '#2C2C2D', staticWhite: '#FFFFFF', staticRed: '#F24835', staticOrange: '#F48C2C', staticGreen: '#09B849', staticDeepBlue: '#2F53CD', staticErrorAccent: '#CB0000', shadowDepth2: '0px 20px 80px 0px rgba(0, 0, 0, 0.07)', shadowDepth: '0px 8px 8px 0px rgba(0, 0, 0, 0.25)' });
8
8
  exports.default = derived;
@@ -214,7 +214,12 @@ exports.default = (0, vue_1.defineComponent)({
214
214
  ? `${mergedClsPrefixRef.value}-chat-main__message--own`
215
215
  : `${mergedClsPrefixRef.value}-chat-main__message--other`
216
216
  ] },
217
- (0, vue_1.h)("div", { class: `${mergedClsPrefixRef.value}-chat-main__message-wrapper` },
217
+ (0, vue_1.h)("div", { class: [
218
+ `${mergedClsPrefixRef.value}-chat-main__message-wrapper`,
219
+ isOwn
220
+ ? `${mergedClsPrefixRef.value}-chat-main__message-wrapper--own`
221
+ : `${mergedClsPrefixRef.value}-chat-main__message-wrapper--other`
222
+ ] },
218
223
  hasBubbleActionsSlot ? ((0, vue_1.h)("div", { onContextmenu: (e) => {
219
224
  e.preventDefault();
220
225
  contextMenuShow.value = false;
@@ -229,7 +229,11 @@ exports.default = (0, cssr_1.cB)('chat', `
229
229
  flex-direction: column;
230
230
  gap: 4px;
231
231
  flex-shrink: 0;
232
- `), (0, cssr_1.cE)('message-bubble', `
232
+ `, [(0, cssr_1.cM)('own', `
233
+ align-items: flex-end;
234
+ `), (0, cssr_1.cM)('other', `
235
+ align-items: flex-start;
236
+ `)]), (0, cssr_1.cE)('message-bubble', `
233
237
  border-radius: 18px;
234
238
  font-size: 14px;
235
239
  line-height: 20px;
@@ -26,6 +26,7 @@ export * from './countdown';
26
26
  export * from './number-animation';
27
27
  export * from './data-table';
28
28
  export * from './date-picker';
29
+ export * from './date-picker-v2';
29
30
  export * from './descriptions';
30
31
  export * from './dialog';
31
32
  export * from './divider';
package/lib/components.js CHANGED
@@ -42,6 +42,7 @@ __exportStar(require("./countdown"), exports);
42
42
  __exportStar(require("./number-animation"), exports);
43
43
  __exportStar(require("./data-table"), exports);
44
44
  __exportStar(require("./date-picker"), exports);
45
+ __exportStar(require("./date-picker-v2"), exports);
45
46
  __exportStar(require("./descriptions"), exports);
46
47
  __exportStar(require("./dialog"), exports);
47
48
  __exportStar(require("./divider"), exports);
@@ -189,6 +189,7 @@ import { SafeTopScrollbarTheme } from '../../_internal/safe-top-scrollbar/styles
189
189
  import { HeaderTheme } from '../../header/styles';
190
190
  import { QrCodeTheme } from '../../qr-code/styles';
191
191
  import { HeaderProps } from '../../header';
192
+ import { DatePickerV2Props, DatePickerV2Theme } from '../../components';
192
193
  export interface GlobalThemeWithoutCommon {
193
194
  Alert?: AlertTheme;
194
195
  Anchor?: AnchorTheme;
@@ -212,6 +213,7 @@ export interface GlobalThemeWithoutCommon {
212
213
  ColorPicker?: ColorPickerTheme;
213
214
  DataTable?: DataTableTheme;
214
215
  DatePicker?: DatePickerTheme;
216
+ DatePickerV2?: DatePickerV2Theme;
215
217
  Descriptions?: DescriptionsTheme;
216
218
  Dialog?: DialogTheme;
217
219
  Divider?: DividerTheme;
@@ -319,6 +321,7 @@ export interface GlobalComponentConfig {
319
321
  DatePicker?: DatePickerProps & {
320
322
  timePickerSize?: TimePickerSize;
321
323
  };
324
+ DatePickerV2?: DatePickerV2Props;
322
325
  Descriptions?: DescriptionsProps;
323
326
  Dialog?: DialogProps & {
324
327
  iconPlacement?: IconPlacement;
@@ -0,0 +1,5 @@
1
+ export { default as UDatePickerV2 } from './src/DatePickerV2';
2
+ export type { DatePickerV2Props } from './src/DatePickerV2';
3
+ export type { Value as DatePickerV2Value, RangeValue as DatePickerV2RangeValue, TriggerPreset as DatePickerV2TriggerPreset } from './src/interface';
4
+ export { datePickerV2Light, datePickerV2Dark } from './styles';
5
+ export type { DatePickerV2Theme, DatePickerV2ThemeVars } from './styles';
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.datePickerV2Dark = exports.datePickerV2Light = exports.UDatePickerV2 = void 0;
7
+ var DatePickerV2_1 = require("./src/DatePickerV2");
8
+ Object.defineProperty(exports, "UDatePickerV2", { enumerable: true, get: function () { return __importDefault(DatePickerV2_1).default; } });
9
+ var styles_1 = require("./styles");
10
+ Object.defineProperty(exports, "datePickerV2Light", { enumerable: true, get: function () { return styles_1.datePickerV2Light; } });
11
+ Object.defineProperty(exports, "datePickerV2Dark", { enumerable: true, get: function () { return styles_1.datePickerV2Dark; } });