@nmorph/nmorph-ui-kit 0.2.100 → 0.2.102

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.
@@ -2,7 +2,7 @@ export { default as NmorphAvatar } from './nmorph-avatar/NmorphAvatar.vue';
2
2
  export { default as NmorphBadge } from './nmorph-badge/NmorphBadge.vue';
3
3
  export { default as NmorphCalendar } from './nmorph-calendar/NmorphCalendar.vue';
4
4
  export * from './nmorph-calendar/types';
5
- export * from './nmorph-calendar/locale';
5
+ export * from './nmorph-calendar/hooks/use-calendar-texts';
6
6
  export * from './nmorph-calendar/utils';
7
7
  export { default as NmorphCalendarHeader } from './nmorph-calendar/components/nmorph-calendar-header/NmorphCalendarHeader.vue';
8
8
  export { default as NmorphCard } from './nmorph-card/NmorphCard.vue';
@@ -13,7 +13,7 @@ declare function __VLS_template(): {
13
13
  content?(_: {}): any;
14
14
  "date-cell"?(_: {
15
15
  scope: {
16
- selected: boolean;
16
+ selected: boolean | boolean[];
17
17
  monthType: NmorphCalendarDateType;
18
18
  value: number;
19
19
  isToday: boolean;
@@ -0,0 +1,3 @@
1
+ import { useCalendarTexts } from './use-calendar-texts';
2
+
3
+ export { useCalendarTexts };
@@ -0,0 +1,4 @@
1
+ export declare const useCalendarTexts: () => {
2
+ months: string[];
3
+ days: string[];
4
+ };
@@ -5,6 +5,6 @@ export declare const getDecadeYears: (year: number) => any[];
5
5
  export declare const formatDateIntl: (date: NmorphSelectedDateModelType) => string | string[];
6
6
  export declare const hasAnyRangeDateInPrevMonth: (currentDate: Date, prevMonthRange: Date) => boolean;
7
7
  export declare const hasAnyRangeDateInNextMonth: (currentDate: Date, nextMonthRange: Date) => boolean;
8
- export declare const isTodayInRange: (range: NmorphCalendarRangeType) => boolean;
8
+ export declare const isTodayInMonthRange: (range: NmorphCalendarRangeType) => boolean;
9
9
  export declare const getMonthName: (monthIndex: number) => string;
10
10
  export declare const getMonthDaysByWeek: (selectedDate: Ref<Date>, range: NmorphCalendarRangeType | undefined) => NmorphCalendarDatesType[];
@@ -4,6 +4,7 @@ import { I18n } from 'vue-i18n';
4
4
  export declare const useNmorphTranslation: (data: INmorphApplyTranslation) => I18n<{
5
5
  en: TranslateMessages;
6
6
  ru: TranslateMessages;
7
+ zh: TranslateMessages;
7
8
  } | {
8
9
  en: TranslateMessages;
9
- }, {}, {}, "en" | "ru" | Locale, true>;
10
+ }, {}, {}, "en" | "ru" | "zh" | Locale, true>;
@@ -1,4 +1,5 @@
1
1
  import { translation as en } from './en';
2
2
  import { translation as ru } from './ru';
3
+ import { translation as zh } from './zh';
3
4
 
4
- export { en, ru };
5
+ export { en, ru, zh };
@@ -0,0 +1,3 @@
1
+ import { TranslateMessages } from '../main';
2
+
3
+ export declare const translation: TranslateMessages;
@@ -364,7 +364,8 @@ export interface INmorphThemeOptions extends INmorphDynamicColors, INmorphStatic
364
364
  export type NmorphThemeMapType = Record<string, INmorphColorVariable[]>;
365
365
  export declare enum Locale {
366
366
  en = "en",
367
- ru = "ru"
367
+ ru = "ru",
368
+ zh = "zh"
368
369
  }
369
370
  export type TranslateType = Record<keyof typeof Locale, TranslateMessages>;
370
371
  export interface TranslateMessages {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nmorph/nmorph-ui-kit",
3
3
  "type": "module",
4
4
  "private": false,
5
- "version": "0.2.100",
5
+ "version": "0.2.102",
6
6
  "license": "MIT",
7
7
  "engines": {
8
8
  "node": "18.13.0",
@@ -1 +0,0 @@
1
- export declare const monthNames: string[];