@ironsource/shared-ui 2.1.12-test.94 → 2.1.12-test.96

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.
@@ -1,3 +1,4 @@
1
+ import { DateServicesInterface } from '@/components/dateRange/common/dateRange.types';
1
2
  export type Day = {
2
3
  value?: number;
3
4
  isToday?: boolean;
@@ -6,14 +7,6 @@ export type Day = {
6
7
  disabled?: boolean;
7
8
  };
8
9
  export type Week = Day[];
9
- interface DateServicesInterface {
10
- getPresetsFunctions(shouldIncludeToday: boolean): Record<string, {
11
- dates: () => {
12
- from?: Date;
13
- to?: Date;
14
- };
15
- }>;
16
- }
17
10
  export declare class DateServices implements DateServicesInterface {
18
11
  getCurrentTimeUTC(): Date;
19
12
  daysInMonth(month: any, year: any): number;
@@ -0,0 +1,8 @@
1
+ export interface DateServicesInterface {
2
+ getPresetsFunctions(shouldIncludeToday: boolean): Record<string, {
3
+ dates: () => {
4
+ from?: Date;
5
+ to?: Date;
6
+ };
7
+ }>;
8
+ }
@@ -1,4 +1,4 @@
1
- import { DateServices } from '@/components/dateRange/common/DateServices.common';
1
+ import { DateServicesInterface } from '../common/dateRange.types';
2
2
  declare const DateRangeTypes: () => ({
3
3
  new (...args: any[]): {
4
4
  $: import("vue").ComponentInternalInstance;
@@ -405,5 +405,7 @@ declare const DateRangeTypes: () => ({
405
405
  footer?(_: {}): any;
406
406
  };
407
407
  }))[];
408
+ export declare const dateService: DateServicesInterface;
408
409
  export { default as DateRange } from './DateRangeV4.vue';
409
- export { DateRangeTypes, DateServices };
410
+ export { DateRangeTypes };
411
+ export * from '../common/dateRange.types';
@@ -1,8 +1,8 @@
1
1
  import e from "./DateRangeV4.vue.js";
2
- import { DateServices as p } from "../common/DateServices.common.js";
3
- const o = () => [e];
2
+ import { DateServices as t } from "../common/DateServices.common.js";
3
+ const a = () => [e], n = new t();
4
4
  export {
5
5
  e as DateRange,
6
- o as DateRangeTypes,
7
- p as DateServices
6
+ a as DateRangeTypes,
7
+ n as dateService
8
8
  };
package/index.d.ts CHANGED
@@ -550,6 +550,7 @@ declare const _default: {
550
550
  content?(_: {}): any;
551
551
  };
552
552
  }))[];
553
+ dateService: dateRangeV4.DateServicesInterface;
553
554
  DateRange: {
554
555
  new (...args: any[]): {
555
556
  $: import("vue").ComponentInternalInstance;
@@ -1362,7 +1363,6 @@ declare const _default: {
1362
1363
  footer?(_: {}): any;
1363
1364
  };
1364
1365
  }))[];
1365
- DateServices: typeof dateRangeV4.DateServices;
1366
1366
  DatePicker: {
1367
1367
  new (...args: any[]): {
1368
1368
  $: import("vue").ComponentInternalInstance;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './MenuItem.vue_vue_type_style_index_0_scoped_67e53b85_lang.css';
1
+ import './Menu.vue_vue_type_style_index_0_scoped_eb057818_lang.css';
2
2
  import { AppTriggerTypes as eo } from "./components/appTrigger/index.js";
3
3
  import { AutocompleteDropdownTypes as mo } from "./components/autocompleteDropdown/index.js";
4
4
  import { MenuItemTypes as ao } from "./components/menuItem/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ironsource/shared-ui",
3
- "version": "2.1.12-test.94",
3
+ "version": "2.1.12-test.96",
4
4
  "engines": {
5
5
  "npm": ">=7.0.0",
6
6
  "node": ">=16.0.0"