prlg-ui 1.2.7 → 1.3.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 (51) hide show
  1. package/package.json +2 -1
  2. package/dist/SortDownFillIcon-7Z207bxw.js +0 -270
  3. package/dist/SortDownFillIcon-CSQH3vsY.cjs +0 -1
  4. package/dist/fonts/Roboto/Roboto-Black.woff +0 -0
  5. package/dist/fonts/Roboto/Roboto-Black.woff2 +0 -0
  6. package/dist/fonts/Roboto/Roboto-Bold.woff +0 -0
  7. package/dist/fonts/Roboto/Roboto-Bold.woff2 +0 -0
  8. package/dist/fonts/Roboto/Roboto-ExtraBold.woff +0 -0
  9. package/dist/fonts/Roboto/Roboto-ExtraBold.woff2 +0 -0
  10. package/dist/fonts/Roboto/Roboto-ExtraLight.woff +0 -0
  11. package/dist/fonts/Roboto/Roboto-ExtraLight.woff2 +0 -0
  12. package/dist/fonts/Roboto/Roboto-Light.woff +0 -0
  13. package/dist/fonts/Roboto/Roboto-Light.woff2 +0 -0
  14. package/dist/fonts/Roboto/Roboto-Medium.woff +0 -0
  15. package/dist/fonts/Roboto/Roboto-Medium.woff2 +0 -0
  16. package/dist/fonts/Roboto/Roboto-Regular.woff +0 -0
  17. package/dist/fonts/Roboto/Roboto-Regular.woff2 +0 -0
  18. package/dist/fonts/Roboto/Roboto-SemiBold.woff +0 -0
  19. package/dist/fonts/Roboto/Roboto-SemiBold.woff2 +0 -0
  20. package/dist/fonts/Roboto/Roboto-Thin.woff +0 -0
  21. package/dist/fonts/Roboto/Roboto-Thin.woff2 +0 -0
  22. package/dist/icons/index.cjs.js +0 -1
  23. package/dist/icons/index.es.js +0 -1095
  24. package/dist/icons.d.ts +0 -150
  25. package/dist/index.d.ts +0 -1033
  26. package/dist/prlg-ui.cjs.js +0 -1
  27. package/dist/prlg-ui.css +0 -1
  28. package/dist/prlg-ui.es.js +0 -2803
  29. package/dist/scss/colors.scss +0 -134
  30. package/dist/scss/fonts.scss +0 -3
  31. package/dist/scss/main.scss +0 -36
  32. package/dist/scss/mixins.scss +0 -177
  33. package/dist/scss/reset.scss +0 -51
  34. package/dist/scss/root-vars.scss +0 -4
  35. package/dist/useBodyScroll.util-BgQeA8Dg.js +0 -82
  36. package/dist/useBodyScroll.util-D-eNxODy.cjs +0 -1
  37. package/dist/utils/Portal/Portal.vue +0 -27
  38. package/dist/utils/Portal/index.ts +0 -3
  39. package/dist/utils/Portal.vue +0 -27
  40. package/dist/utils/date.util.ts +0 -29
  41. package/dist/utils/dayjs.util.ts +0 -26
  42. package/dist/utils/eventBus.util.ts +0 -41
  43. package/dist/utils/index.cjs.js +0 -1
  44. package/dist/utils/index.es.js +0 -498
  45. package/dist/utils/index.ts +0 -3
  46. package/dist/utils/isClient.util.ts +0 -3
  47. package/dist/utils/onClickOutside.util.ts +0 -57
  48. package/dist/utils/price.util.ts +0 -21
  49. package/dist/utils/useBodyScroll.util.ts +0 -33
  50. package/dist/utils.d.ts +0 -93
  51. package/dist/vite.svg +0 -1
package/dist/utils.d.ts DELETED
@@ -1,93 +0,0 @@
1
- import { ComponentOptionsMixin } from 'vue';
2
- import { ComponentProvideOptions } from 'vue';
3
- import { default as dayjs } from 'dayjs';
4
- import { DefineComponent } from 'vue';
5
- import { PublicProps } from 'vue';
6
-
7
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
-
9
- declare type __VLS_Props = {
10
- appendTo?: 'self' | string;
11
- disabled?: boolean;
12
- };
13
-
14
- declare function __VLS_template(): {
15
- attrs: Partial<{}>;
16
- slots: {
17
- default?(_: {}): any;
18
- default?(_: {}): any;
19
- };
20
- refs: {};
21
- rootEl: any;
22
- };
23
-
24
- declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
-
26
- declare type __VLS_WithTemplateSlots<T, S> = T & {
27
- new (): {
28
- $slots: S;
29
- };
30
- };
31
-
32
- export { dayjs }
33
-
34
- export declare function EventBus<Events extends Record<string, any>>(): TypedEventBus<Events>;
35
-
36
- /**
37
- * Форматирует дату в человекочитаемый вид: 20 июня 2025
38
- */
39
- export declare function formatDateReadable(date: string | Date): string;
40
-
41
- /**
42
- * Форматирует дату для отображения времени: 20 июня, 14:30
43
- */
44
- export declare function formatDateWithTime(date: string | Date): string;
45
-
46
- /**
47
- * Преобразует число в форматированную строку с валютой (по умолчанию: ₽)
48
- */
49
- export declare function formatPrice(value: number, currency?: string): string;
50
-
51
- /**
52
- * Возвращает разницу между датами в днях
53
- */
54
- export declare function getDaysBetween(start: string | Date, end: string | Date): number;
55
-
56
- export declare type Handler<T> = (event: T) => void;
57
-
58
- /**
59
- * Проверяет, истекла ли дата
60
- */
61
- export declare function isExpired(date: string | Date): boolean;
62
-
63
- export declare function onClickOutside(target: HTMLElement | null | undefined, handler: (event: MouseEvent | TouchEvent) => void, options?: OnClickOutsideOptions): () => void;
64
-
65
- export declare interface OnClickOutsideOptions {
66
- ignore?: (() => (HTMLElement | string | null | undefined)[]) | (HTMLElement | string | null | undefined)[];
67
- }
68
-
69
- /**
70
- * Делает безопасное преобразование строки в число (цены из инпута)
71
- */
72
- export declare function parsePrice(input: string): number;
73
-
74
- export declare const Portal: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
75
-
76
- /**
77
- * Возвращает сумму всех значений (например, для корзины)
78
- */
79
- export declare function sumPrices(items: number[]): number;
80
-
81
- export declare interface TypedEventBus<Events extends Record<string, any>> {
82
- on<K extends keyof Events>(type: K, handler: Handler<Events[K]>): void;
83
- off<K extends keyof Events>(type: K, handler: Handler<Events[K]>): void;
84
- emit<K extends keyof Events>(type: K, evt?: Events[K]): void;
85
- clear(): void;
86
- }
87
-
88
- export declare function useBodyScroll(): {
89
- lockScroll: () => void;
90
- unlockScroll: () => void;
91
- };
92
-
93
- export { }
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>