@profitliga/ui 2.0.2 → 2.0.4

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 (121) hide show
  1. package/dist/components/AlertDialog/AlertDialogAction.vue.js +2 -3
  2. package/dist/components/AlertDialog/AlertDialogCancel.vue.js +8 -9
  3. package/dist/components/AlertDialog/AlertDialogTrigger.vue.js +7 -8
  4. package/dist/components/Button/Button.css +1 -1
  5. package/dist/components/Button/Button.vue.js +5 -52
  6. package/dist/components/Button/Button.vue2.js +52 -3
  7. package/dist/components/Calendar/CalendarNext.vue.js +3 -4
  8. package/dist/components/Calendar/CalendarPrev.vue.js +7 -8
  9. package/dist/components/ConfirmDialog/ConfirmDialog.vue2.js +11 -12
  10. package/dist/components/DatePicker/DatePickerNext.vue.js +1 -2
  11. package/dist/components/DatePicker/DatePickerPrev.vue.js +7 -8
  12. package/dist/components/DateRangePicker/DateRangePickerNext.vue.js +6 -7
  13. package/dist/components/DateRangePicker/DateRangePickerPrev.vue.js +7 -8
  14. package/dist/components/RangeCalendar/RangeCalendarNext.vue.js +3 -4
  15. package/dist/components/RangeCalendar/RangeCalendarPrev.vue.js +3 -4
  16. package/dist/components/Schedule/Schedule.vue2.js +38 -39
  17. package/dist/components/index.js +391 -392
  18. package/dist/components/v2/AlertDialog/AlertDialog.css +1 -1
  19. package/dist/components/v2/AlertDialog/AlertDialog.types.d.ts +2 -2
  20. package/dist/components/v2/AlertDialog/AlertDialog.vue.d.ts +2 -2
  21. package/dist/components/v2/AlertDialog/AlertDialog.vue.js +2 -2
  22. package/dist/components/v2/AlertDialog/AlertDialog.vue2.js +29 -29
  23. package/dist/components/v2/Checkbox/Checkbox.css +1 -1
  24. package/dist/components/v2/Checkbox/Checkbox.types.d.ts +11 -0
  25. package/dist/components/v2/Checkbox/Checkbox.vue.d.ts +2 -0
  26. package/dist/components/v2/Checkbox/Checkbox.vue.js +2 -2
  27. package/dist/components/v2/Checkbox/Checkbox.vue2.js +61 -49
  28. package/dist/components/v2/Combobox/Combobox.css +1 -1
  29. package/dist/components/v2/Combobox/Combobox.types.d.ts +28 -2
  30. package/dist/components/v2/Combobox/Combobox.vue.d.ts +3 -2
  31. package/dist/components/v2/Combobox/Combobox.vue.js +1 -1
  32. package/dist/components/v2/Combobox/Combobox.vue2.js +305 -251
  33. package/dist/components/v2/ConfirmDialog/ConfirmDialog.types.d.ts +2 -2
  34. package/dist/components/v2/ConfirmDialog/ConfirmDialog.vue.d.ts +2 -2
  35. package/dist/components/v2/ConfirmDialog/ConfirmDialog.vue.js +6 -6
  36. package/dist/components/v2/DatePicker/DatePicker.css +1 -1
  37. package/dist/components/v2/DatePicker/DatePicker.types.d.ts +2 -2
  38. package/dist/components/v2/DatePicker/DatePicker.vue.d.ts +2 -2
  39. package/dist/components/v2/DatePicker/DatePicker.vue.js +2 -2
  40. package/dist/components/v2/DatePicker/DatePicker.vue2.js +54 -54
  41. package/dist/components/v2/Divider/Divider.css +1 -1
  42. package/dist/components/v2/Divider/Divider.types.d.ts +8 -0
  43. package/dist/components/v2/Divider/Divider.vue.js +2 -2
  44. package/dist/components/v2/DropdownMenu/DropdownMenu.types.d.ts +2 -2
  45. package/dist/components/v2/DropdownMenu/DropdownMenu.vue.d.ts +2 -2
  46. package/dist/components/v2/DropdownMenu/DropdownMenu.vue2.js +6 -6
  47. package/dist/components/v2/FileUpload/FileUpload.css +1 -1
  48. package/dist/components/v2/FileUpload/FileUpload.vue.js +2 -2
  49. package/dist/components/v2/FileUpload/FileUpload.vue2.js +16 -16
  50. package/dist/components/v2/FormField/FormField.css +1 -0
  51. package/dist/components/v2/FormField/FormField.types.d.ts +48 -0
  52. package/dist/components/v2/FormField/FormField.vue.d.ts +25 -0
  53. package/dist/components/v2/FormField/FormField.vue.js +8 -0
  54. package/dist/components/v2/FormField/FormField.vue2.js +54 -0
  55. package/dist/components/v2/FormField/index.d.ts +3 -0
  56. package/dist/components/v2/Image/Image.css +1 -0
  57. package/dist/components/v2/Image/Image.types.d.ts +26 -0
  58. package/dist/components/v2/Image/Image.vue.d.ts +16 -0
  59. package/dist/components/v2/Image/Image.vue.js +8 -0
  60. package/dist/components/v2/Image/Image.vue2.js +91 -0
  61. package/dist/components/v2/Image/ImageList.css +1 -0
  62. package/dist/components/v2/Image/ImageList.types.d.ts +28 -0
  63. package/dist/components/v2/Image/ImageList.vue.d.ts +15 -0
  64. package/dist/components/v2/Image/ImageList.vue.js +8 -0
  65. package/dist/components/v2/Image/ImageList.vue2.js +38 -0
  66. package/dist/components/v2/Image/index.d.ts +5 -0
  67. package/dist/components/v2/Input/Input.css +1 -1
  68. package/dist/components/v2/Input/Input.vue.js +2 -2
  69. package/dist/components/v2/Input/Input.vue2.js +113 -107
  70. package/dist/components/v2/InputNumber/InputNumber.css +1 -1
  71. package/dist/components/v2/InputNumber/InputNumber.vue.js +2 -2
  72. package/dist/components/v2/InputNumber/InputNumber.vue2.js +22 -21
  73. package/dist/components/v2/InputSelect/InputSelect.types.d.ts +2 -2
  74. package/dist/components/v2/InputSelect/InputSelect.vue.d.ts +2 -2
  75. package/dist/components/v2/InputSelect/InputSelect.vue.js +14 -14
  76. package/dist/components/v2/InputSelect/InputSelectChip.css +1 -1
  77. package/dist/components/v2/InputSelect/InputSelectChip.vue.d.ts +3 -3
  78. package/dist/components/v2/InputSelect/InputSelectChip.vue.js +2 -2
  79. package/dist/components/v2/InputSelect/InputSelectChip.vue2.js +17 -17
  80. package/dist/components/v2/Popover/Popover.css +1 -1
  81. package/dist/components/v2/Popover/Popover.types.d.ts +2 -2
  82. package/dist/components/v2/Popover/Popover.vue.d.ts +2 -2
  83. package/dist/components/v2/Popover/Popover.vue.js +2 -2
  84. package/dist/components/v2/Popover/Popover.vue2.js +24 -24
  85. package/dist/components/v2/Radio/Radio.css +1 -1
  86. package/dist/components/v2/Radio/Radio.vue.d.ts +4 -0
  87. package/dist/components/v2/Radio/Radio.vue.js +1 -1
  88. package/dist/components/v2/Radio/Radio.vue2.js +57 -49
  89. package/dist/components/v2/Schedule/Schedule.css +1 -1
  90. package/dist/components/v2/Schedule/Schedule.types.d.ts +2 -2
  91. package/dist/components/v2/Schedule/Schedule.vue.d.ts +2 -2
  92. package/dist/components/v2/Schedule/Schedule.vue.js +3 -3
  93. package/dist/components/v2/Schedule/Schedule.vue2.js +55 -55
  94. package/dist/components/v2/Select/Select.css +1 -1
  95. package/dist/components/v2/Select/Select.types.d.ts +8 -2
  96. package/dist/components/v2/Select/Select.vue.js +3 -3
  97. package/dist/components/v2/Select/Select.vue2.js +143 -127
  98. package/dist/components/v2/Toast/Toast.types.d.ts +2 -2
  99. package/dist/components/v2/Toast/Toaster.css +1 -1
  100. package/dist/components/v2/Toast/Toaster.vue.d.ts +2 -2
  101. package/dist/components/v2/Toast/Toaster.vue.js +1 -1
  102. package/dist/components/v2/Toast/Toaster.vue2.js +17 -17
  103. package/dist/components/v2/Tooltip/Tooltip.css +1 -1
  104. package/dist/components/v2/Tooltip/Tooltip.types.d.ts +2 -2
  105. package/dist/components/v2/Tooltip/Tooltip.vue.d.ts +2 -2
  106. package/dist/components/v2/Tooltip/Tooltip.vue.js +1 -1
  107. package/dist/components/v2/Tooltip/Tooltip.vue2.js +39 -38
  108. package/dist/components/v2/Tooltip/TooltipContent.css +1 -1
  109. package/dist/components/v2/Tooltip/TooltipContent.vue.d.ts +2 -2
  110. package/dist/components/v2/Tooltip/TooltipContent.vue.js +2 -2
  111. package/dist/components/v2/Tooltip/TooltipContent.vue2.js +20 -20
  112. package/dist/components/v2/Tooltip/vTooltip.directive.js +40 -41
  113. package/dist/components/v2/index.d.ts +2 -0
  114. package/dist/components/v2/index.js +82 -76
  115. package/dist/components/v2/shared/isHtmlElement.util.d.ts +15 -0
  116. package/dist/components/v2/shared/isHtmlElement.util.js +10 -0
  117. package/dist/components/v2/shared/useIsMobile.util.d.ts +13 -0
  118. package/dist/components/v2/shared/useIsMobile.util.js +8 -0
  119. package/dist/components/v2/shared/useTriggerAria.util.js +4 -3
  120. package/dist/types/global.types.d.ts +10 -0
  121. package/package.json +3 -1
@@ -3,16 +3,16 @@ import '../../styles/tokens.css';
3
3
  import { default as t } from "./ConfirmDialog/ConfirmDialog.vue.js";
4
4
  import { default as f } from "./InputPhone/InputPhone.vue.js";
5
5
  import { default as p } from "./InputSelect/InputSelect.vue.js";
6
- import { default as m } from "./Accordion/Accordion.vue.js";
6
+ import { default as d } from "./Accordion/Accordion.vue.js";
7
7
  import { default as u } from "./AlertDialog/AlertDialog.vue.js";
8
8
  import { default as i } from "./Badge/Badge.vue.js";
9
9
  import { default as D } from "./BottomSheet/BottomSheet.vue.js";
10
10
  import { default as S } from "./Breadcrumb/Breadcrumb.vue.js";
11
11
  import { default as A } from "./Button/Button.vue.js";
12
- import { default as c } from "./Calendar/Calendar.vue.js";
12
+ import { default as L } from "./Calendar/Calendar.vue.js";
13
13
  import { default as _ } from "./Checkbox/Checkbox.vue.js";
14
- import { default as P } from "./Combobox/Combobox.vue.js";
15
- import { DEFAULT_DAY_LABELS as I, DEFAULT_DAY_SHORT_LABELS as F, SCHEDULE_DAYS as U } from "./Schedule/Schedule.util.js";
14
+ import { default as I } from "./Combobox/Combobox.vue.js";
15
+ import { DEFAULT_DAY_LABELS as E, DEFAULT_DAY_SHORT_LABELS as F, SCHEDULE_DAYS as U } from "./Schedule/Schedule.util.js";
16
16
  import { default as B } from "./DataTable/DataTable.vue.js";
17
17
  import { default as H } from "./DataTable/DataTableBody.vue.js";
18
18
  import { default as R } from "./DataTable/DataTableFooter.vue.js";
@@ -29,49 +29,52 @@ import { default as ae } from "./File/File.vue.js";
29
29
  import { default as te } from "./File/FilePreviewDialog.vue.js";
30
30
  import { default as fe } from "./FileUpload/FileUpload.vue.js";
31
31
  import { default as pe } from "./FileUpload/FileUploadInline.vue.js";
32
- import { default as me } from "./Indicator/Indicator.vue.js";
33
- import { default as ue } from "./Input/Input.vue.js";
34
- import { default as ie } from "./InputNumber/InputNumber.vue.js";
35
- import { default as De } from "./Message/Message.vue.js";
36
- import { default as Se } from "./OTPCode/OTPCode.vue.js";
37
- import { PHONE_MASK_PLACEHOLDER as Ae, extractPhoneDigits as Le, formatPhone as ce } from "./InputPhone/phoneMask.util.js";
38
- import { default as _e } from "./Pagination/Pagination.vue.js";
39
- import { default as Pe } from "./Pagination/PaginationPageSize.vue.js";
40
- import { default as Ie } from "./Popover/Popover.vue.js";
41
- import { default as Ue } from "./Radio/Radio.vue.js";
42
- import { default as Be } from "./Radio/RadioGroup.vue.js";
43
- import { default as He } from "./Radio/RadioMarker.vue.js";
44
- import { default as Re } from "./Schedule/Schedule.vue.js";
45
- import { default as we } from "./Select/Select.vue.js";
46
- import { default as Ne } from "./Stepper/Stepper.vue.js";
47
- import { default as ye } from "./Stepper/StepperItem.vue.js";
48
- import { default as Ge } from "./Switch/Switch.vue.js";
49
- import { TOAST_DEFAULT_DURATION_MS as je, TOAST_DEFAULT_LIMIT as qe, toast as Je, useToast as Qe } from "./Toast/useToast.js";
50
- import { default as We } from "./Tabs/Tabs.vue.js";
51
- import { default as Ze } from "./Tabs/TabsContent.vue.js";
52
- import { default as ea } from "./Tabs/TabsCounter.vue.js";
53
- import { default as oa } from "./Tabs/TabsList.vue.js";
54
- import { default as ra } from "./Tabs/TabsTrigger.vue.js";
55
- import { default as la } from "./Tag/Tag.vue.js";
56
- import { default as da } from "./Textarea/Textarea.vue.js";
57
- import { default as sa } from "./Toast/Toast.vue.js";
58
- import { default as xa } from "./Toast/Toaster.vue.js";
59
- import { default as Ta } from "./Tooltip/Tooltip.vue.js";
60
- import { confirmState as na, useConfirm as Sa } from "./ConfirmDialog/useConfirm.js";
61
- import { createDataTableColumns as Aa } from "./DataTable/DataTable.columns.js";
62
- import { vTooltip as ca } from "./Tooltip/vTooltip.directive.js";
32
+ import { default as de } from "./FormField/FormField.vue.js";
33
+ import { default as ue } from "./Image/Image.vue.js";
34
+ import { default as ie } from "./Image/ImageList.vue.js";
35
+ import { default as De } from "./Indicator/Indicator.vue.js";
36
+ import { default as Se } from "./Input/Input.vue.js";
37
+ import { default as Ae } from "./InputNumber/InputNumber.vue.js";
38
+ import { default as Le } from "./Message/Message.vue.js";
39
+ import { default as _e } from "./OTPCode/OTPCode.vue.js";
40
+ import { PHONE_MASK_PLACEHOLDER as Ie, extractPhoneDigits as Pe, formatPhone as Ee } from "./InputPhone/phoneMask.util.js";
41
+ import { default as Ue } from "./Pagination/Pagination.vue.js";
42
+ import { default as Be } from "./Pagination/PaginationPageSize.vue.js";
43
+ import { default as He } from "./Popover/Popover.vue.js";
44
+ import { default as Re } from "./Radio/Radio.vue.js";
45
+ import { default as we } from "./Radio/RadioGroup.vue.js";
46
+ import { default as Ne } from "./Radio/RadioMarker.vue.js";
47
+ import { default as ye } from "./Schedule/Schedule.vue.js";
48
+ import { default as Ge } from "./Select/Select.vue.js";
49
+ import { default as je } from "./Stepper/Stepper.vue.js";
50
+ import { default as Je } from "./Stepper/StepperItem.vue.js";
51
+ import { default as Ve } from "./Switch/Switch.vue.js";
52
+ import { TOAST_DEFAULT_DURATION_MS as Xe, TOAST_DEFAULT_LIMIT as Ze, toast as $e, useToast as ea } from "./Toast/useToast.js";
53
+ import { default as oa } from "./Tabs/Tabs.vue.js";
54
+ import { default as ra } from "./Tabs/TabsContent.vue.js";
55
+ import { default as la } from "./Tabs/TabsCounter.vue.js";
56
+ import { default as ma } from "./Tabs/TabsList.vue.js";
57
+ import { default as sa } from "./Tabs/TabsTrigger.vue.js";
58
+ import { default as xa } from "./Tag/Tag.vue.js";
59
+ import { default as Ta } from "./Textarea/Textarea.vue.js";
60
+ import { default as na } from "./Toast/Toast.vue.js";
61
+ import { default as ba } from "./Toast/Toaster.vue.js";
62
+ import { default as ga } from "./Tooltip/Tooltip.vue.js";
63
+ import { confirmState as ca, useConfirm as _a } from "./ConfirmDialog/useConfirm.js";
64
+ import { createDataTableColumns as Ia } from "./DataTable/DataTable.columns.js";
65
+ import { vTooltip as Ea } from "./Tooltip/vTooltip.directive.js";
63
66
  export {
64
- m as Accordion,
67
+ d as Accordion,
65
68
  u as AlertDialog,
66
69
  i as Badge,
67
70
  D as BottomSheet,
68
71
  S as Breadcrumb,
69
72
  A as Button,
70
- c as Calendar,
73
+ L as Calendar,
71
74
  _ as Checkbox,
72
- P as Combobox,
75
+ I as Combobox,
73
76
  t as ConfirmDialog,
74
- I as DEFAULT_DAY_LABELS,
77
+ E as DEFAULT_DAY_LABELS,
75
78
  F as DEFAULT_DAY_SHORT_LABELS,
76
79
  B as DataTable,
77
80
  H as DataTableBody,
@@ -89,44 +92,47 @@ export {
89
92
  te as FilePreviewDialog,
90
93
  fe as FileUpload,
91
94
  pe as FileUploadInline,
92
- me as Indicator,
93
- ue as Input,
94
- ie as InputNumber,
95
+ de as FormField,
96
+ ue as Image,
97
+ ie as ImageList,
98
+ De as Indicator,
99
+ Se as Input,
100
+ Ae as InputNumber,
95
101
  f as InputPhone,
96
102
  p as InputSelect,
97
- De as Message,
98
- Se as OTPCode,
99
- Ae as PHONE_MASK_PLACEHOLDER,
100
- _e as Pagination,
101
- Pe as PaginationPageSize,
102
- Ie as Popover,
103
- Ue as Radio,
104
- Be as RadioGroup,
105
- He as RadioMarker,
103
+ Le as Message,
104
+ _e as OTPCode,
105
+ Ie as PHONE_MASK_PLACEHOLDER,
106
+ Ue as Pagination,
107
+ Be as PaginationPageSize,
108
+ He as Popover,
109
+ Re as Radio,
110
+ we as RadioGroup,
111
+ Ne as RadioMarker,
106
112
  U as SCHEDULE_DAYS,
107
- Re as Schedule,
108
- we as Select,
109
- Ne as Stepper,
110
- ye as StepperItem,
111
- Ge as Switch,
112
- je as TOAST_DEFAULT_DURATION_MS,
113
- qe as TOAST_DEFAULT_LIMIT,
114
- We as Tabs,
115
- Ze as TabsContent,
116
- ea as TabsCounter,
117
- oa as TabsList,
118
- ra as TabsTrigger,
119
- la as Tag,
120
- da as Textarea,
121
- sa as Toast,
122
- xa as Toaster,
123
- Ta as Tooltip,
124
- na as confirmState,
125
- Aa as createDataTableColumns,
126
- Le as extractPhoneDigits,
127
- ce as formatPhone,
128
- Je as toast,
129
- Sa as useConfirm,
130
- Qe as useToast,
131
- ca as vTooltip
113
+ ye as Schedule,
114
+ Ge as Select,
115
+ je as Stepper,
116
+ Je as StepperItem,
117
+ Ve as Switch,
118
+ Xe as TOAST_DEFAULT_DURATION_MS,
119
+ Ze as TOAST_DEFAULT_LIMIT,
120
+ oa as Tabs,
121
+ ra as TabsContent,
122
+ la as TabsCounter,
123
+ ma as TabsList,
124
+ sa as TabsTrigger,
125
+ xa as Tag,
126
+ Ta as Textarea,
127
+ na as Toast,
128
+ ba as Toaster,
129
+ ga as Tooltip,
130
+ ca as confirmState,
131
+ Ia as createDataTableColumns,
132
+ Pe as extractPhoneDigits,
133
+ Ee as formatPhone,
134
+ $e as toast,
135
+ _a as useConfirm,
136
+ ea as useToast,
137
+ Ea as vTooltip
132
138
  };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Проверка «это элемент DOM», пригодная для рендера на сервере.
3
+ *
4
+ * Писать `node instanceof HTMLElement` напрямую нельзя: в Node глобального
5
+ * `HTMLElement` нет, и само обращение к имени роняет рендер с
6
+ * `ReferenceError`. Ловушка не теоретическая — `watchEffect` без коллбэка Vue
7
+ * выполняет один раз и на сервере, поэтому любая такая проверка в эффекте
8
+ * срабатывает при SSR, когда ref шаблона ещё null.
9
+ *
10
+ * `typeof` — единственная конструкция, которой необъявленный идентификатор не
11
+ * страшен, поэтому порядок операндов важен и менять его нельзя.
12
+ */
13
+ export declare function isHtmlElement(node: unknown): node is HTMLElement;
14
+ /** То же самое для `<input>`: на сервере `HTMLInputElement` тоже отсутствует. */
15
+ export declare function isHtmlInputElement(node: unknown): node is HTMLInputElement;
@@ -0,0 +1,10 @@
1
+ function n(e) {
2
+ return typeof HTMLElement < "u" && e instanceof HTMLElement;
3
+ }
4
+ function t(e) {
5
+ return typeof HTMLInputElement < "u" && e instanceof HTMLInputElement;
6
+ }
7
+ export {
8
+ n as isHtmlElement,
9
+ t as isHtmlInputElement
10
+ };
@@ -0,0 +1,13 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { TBreakpointMobile } from '../../../types/global.types';
3
+ /**
4
+ * Единая точка, где проп `breakpointMobile` превращается в «сейчас мобильный
5
+ * вид». Нужна из-за значения `false`: у `useBreakpoints` порога «никогда»
6
+ * нет, поэтому выключение приходится обрабатывать до обращения к нему.
7
+ *
8
+ * Значение читается один раз при вызове — как и было у прямых вызовов
9
+ * `breakpoints.smaller(props.breakpointMobile)`: смена самого брейкпоинта на
10
+ * лету не поддерживалась и раньше, реагировать нужно на ширину экрана, а не
11
+ * на правку пропа.
12
+ */
13
+ export declare function useIsMobile(breakpoint: TBreakpointMobile): ComputedRef<boolean>;
@@ -0,0 +1,8 @@
1
+ import { computed as e } from "vue";
2
+ import { breakpoints as o } from "../../../utils/breakpoints.util.js";
3
+ function m(r) {
4
+ return r === !1 ? e(() => !1) : o.smaller(r);
5
+ }
6
+ export {
7
+ m as useIsMobile
8
+ };
@@ -1,4 +1,5 @@
1
1
  import { watchEffect as i } from "vue";
2
+ import { isHtmlElement as o } from "./isHtmlElement.util.js";
2
3
  const n = [
3
4
  "button",
4
5
  '[role="button"]',
@@ -10,9 +11,9 @@ const n = [
10
11
  ].join(", ");
11
12
  function a(e) {
12
13
  const t = e?.firstElementChild;
13
- return t instanceof HTMLElement ? t.matches(n) ? t : t.querySelector(n) : null;
14
+ return o(t) ? t.matches(n) ? t : t.querySelector(n) : null;
14
15
  }
15
- function s(e) {
16
+ function l(e) {
16
17
  i(() => {
17
18
  const t = a(e.host());
18
19
  if (!t) return;
@@ -21,5 +22,5 @@ function s(e) {
21
22
  });
22
23
  }
23
24
  export {
24
- s as useTriggerAria
25
+ l as useTriggerAria
25
26
  };
@@ -1,3 +1,13 @@
1
1
  export type TVariants = 'success' | 'secondary' | 'warning' | 'danger' | 'info';
2
2
  export type TSize = 'extrasmall' | 'small' | 'medium' | 'large' | 'extralarge';
3
3
  export type TBreakpoints = 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
4
+ /**
5
+ * Брейкпоинт, ниже которого компонент переключается на мобильный вид (обычно
6
+ * — на шторку снизу). `false` выключает переключение совсем: компонент
7
+ * остаётся десктопным на любой ширине.
8
+ *
9
+ * Отключение нужно там, где мобильный макет не шторка: например
10
+ * полноэкранная модалка авторизации. Самый мелкий брейкпоинт `sm` — это
11
+ * 640px, поэтому «поставить порог поменьше» вместо выключения не работает.
12
+ */
13
+ export type TBreakpointMobile = TBreakpoints | false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profitliga/ui",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "author": "Profit League<dev@pr-lg.ru>",
5
5
  "license": "MIT",
6
6
  "description": "Vue 3 UI component library with TypeScript and SCSS",
@@ -54,6 +54,8 @@
54
54
  "format:check": "prettier --check \"src/**/*.{ts,tsx,vue,scss,css,json}\"",
55
55
  "check": "npm run type-check && npm run lint && npm run format:check",
56
56
  "test:a11y": "vitest run --project=storybook",
57
+ "test:ssr": "vite build --config scripts/ssr-smoke/vite.config.ts && node node_modules/.ssr-smoke/entry.js",
58
+ "check:css-leak": "node scripts/check-css-leak.mjs",
57
59
  "storybook": "storybook dev -p 6006",
58
60
  "build-storybook": "storybook build",
59
61
  "prepare": "husky"