@alphakits/ui 2.3.0 → 2.4.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 (217) hide show
  1. package/dist/__internal/utils/index.d.ts +1 -1
  2. package/dist/__internal/utils/index.js +4 -4
  3. package/dist/amount-input/component.js +41 -41
  4. package/dist/avatar/component.js +2 -18
  5. package/dist/badge/component.d.ts +1 -1
  6. package/dist/base-card/component.js +1 -7
  7. package/dist/bottom-sheet/component.d.ts +1 -1
  8. package/dist/bottom-sheet/component.js +9 -13
  9. package/dist/box/component.d.ts +2 -2
  10. package/dist/box/component.js +4 -4
  11. package/dist/button/component.js +9 -9
  12. package/dist/button-arrow/component.js +6 -1
  13. package/dist/calendar/component.d.ts +1 -2
  14. package/dist/calendar/component.js +77 -74
  15. package/dist/calendar/components/days-table/component.js +46 -43
  16. package/dist/calendar/components/header/{/321/201omponent.js → component.js} +3 -12
  17. package/dist/calendar/components/header/index.d.ts +1 -1
  18. package/dist/calendar/components/header/index.js +1 -1
  19. package/dist/calendar/components/months-table/{/321/201omponent.js → component.js} +7 -7
  20. package/dist/calendar/components/months-table/index.d.ts +1 -1
  21. package/dist/calendar/components/months-table/index.js +1 -1
  22. package/dist/calendar/components/select-button/{/321/201omponent.d.ts → component.d.ts} +3 -3
  23. package/dist/calendar/components/select-button/{/321/201omponent.js → component.js} +5 -11
  24. package/dist/calendar/components/select-button/index.d.ts +1 -1
  25. package/dist/calendar/components/select-button/index.js +1 -1
  26. package/dist/calendar/components/years-table/{/321/201omponent.js → component.js} +14 -14
  27. package/dist/calendar/components/years-table/index.d.ts +1 -1
  28. package/dist/calendar/components/years-table/index.js +1 -1
  29. package/dist/calendar/index.d.ts +2 -2
  30. package/dist/calendar/index.js +4 -4
  31. package/dist/calendar/use-calendar.js +51 -47
  32. package/dist/calendar/utils.js +7 -9
  33. package/dist/calendar-input/component.js +22 -22
  34. package/dist/card/component.js +2 -18
  35. package/dist/cell/base/component.js +31 -31
  36. package/dist/cell/pure/component.js +2 -2
  37. package/dist/checkbox/component.js +11 -11
  38. package/dist/checkbox-group/component.js +23 -24
  39. package/dist/checkbox-lists/component.d.ts +1 -2
  40. package/dist/checkbox-lists/component.js +59 -61
  41. package/dist/collapsable-row/addons.d.ts +3 -4
  42. package/dist/collapsable-row/addons.js +6 -9
  43. package/dist/collapsable-row/component.d.ts +1 -1
  44. package/dist/collapsable-row/component.js +7 -7
  45. package/dist/collapse/component.js +45 -54
  46. package/dist/copy-button/component.d.ts +1 -2
  47. package/dist/copy-button/component.js +1 -5
  48. package/dist/date/component.js +1 -1
  49. package/dist/date-switcher/component.d.ts +1 -2
  50. package/dist/date-switcher/component.js +8 -8
  51. package/dist/decorated-item/component.js +10 -20
  52. package/dist/dot/component.js +1 -4
  53. package/dist/empty-page/component.js +1 -9
  54. package/dist/filter-tag/component.d.ts +1 -1
  55. package/dist/flex/component.d.ts +2 -2
  56. package/dist/footer/component.js +57 -53
  57. package/dist/form/component.d.ts +1 -2
  58. package/dist/form/component.js +2 -12
  59. package/dist/form/templates/base-form/index.d.ts +3 -3
  60. package/dist/form/templates/base-form/index.js +26 -26
  61. package/dist/form/templates/filters-form/index.d.ts +1 -1
  62. package/dist/form/templates/filters-form/index.js +20 -23
  63. package/dist/form/templates/rest-form/form.d.ts +1 -2
  64. package/dist/form/templates/rest-form/form.js +51 -56
  65. package/dist/form/templates/rest-form/index.d.ts +3 -3
  66. package/dist/form/templates/rest-form/index.js +16 -27
  67. package/dist/form/utils/get-default-values.js +3 -6
  68. package/dist/form/utils/remove-undefined-from-object.js +1 -3
  69. package/dist/form-control/component.js +1 -1
  70. package/dist/formik/index.d.ts +2 -2
  71. package/dist/header-search/component.js +1 -6
  72. package/dist/hooks/index.d.ts +2 -2
  73. package/dist/hooks/index.js +10 -10
  74. package/dist/hooks/use-get-one/index.js +16 -16
  75. package/dist/icon-button/component.d.ts +3 -3
  76. package/dist/icon-button/component.js +2 -8
  77. package/dist/image/component.js +52 -30
  78. package/dist/image/image-base.js +1 -7
  79. package/dist/image/use-image-render-component.d.ts +1 -1
  80. package/dist/image/use-image-render-component.js +11 -14
  81. package/dist/image-gallery/component.js +40 -45
  82. package/dist/image-uploader/component.js +56 -53
  83. package/dist/index.js +41 -41
  84. package/dist/info-block-wrapper/component.d.ts +1 -1
  85. package/dist/input/component.js +1 -1
  86. package/dist/input-autocomplete/autocomplete-field/index.d.ts +1 -2
  87. package/dist/input-autocomplete/autocomplete-field/index.js +6 -6
  88. package/dist/input-autocomplete/component.d.ts +26 -26
  89. package/dist/input-ghost/component.d.ts +1 -1
  90. package/dist/link/component.d.ts +2 -2
  91. package/dist/link/component.js +1 -1
  92. package/dist/loader/component.js +6 -5
  93. package/dist/masked-input/component.js +7 -16
  94. package/dist/menu/component.js +12 -17
  95. package/dist/menu/components/content-header/index.js +1 -9
  96. package/dist/menu/components/menu-avatar/index.js +1 -6
  97. package/dist/menu/components/menu-button/index.js +1 -10
  98. package/dist/menu/components/menu-buttons-list/index.d.ts +1 -1
  99. package/dist/menu/components/menu-buttons-list/index.js +1 -7
  100. package/dist/menu/hooks/use-menu.js +12 -12
  101. package/dist/message/component.js +33 -14
  102. package/dist/modal/components/modals/modal.d.ts +1 -2
  103. package/dist/modal/components/modals/modal.js +30 -33
  104. package/dist/modal/context.js +12 -9
  105. package/dist/modal/hooks/use-modal.d.ts +1 -1
  106. package/dist/mq/component.js +1 -6
  107. package/dist/notification/component.js +14 -12
  108. package/dist/page-container/component.js +1 -6
  109. package/dist/page-loading/component.d.ts +1 -2
  110. package/dist/page-with-controls/component.js +4 -7
  111. package/dist/picker-button/common/labeled-button/index.js +18 -12
  112. package/dist/picker-button/component.js +5 -5
  113. package/dist/picker-button/field/{Component.d.ts → component.d.ts} +1 -2
  114. package/dist/picker-button/field/index.d.ts +1 -1
  115. package/dist/picker-button/field/index.js +1 -1
  116. package/dist/picker-button/index.d.ts +1 -1
  117. package/dist/picker-button/index.js +4 -4
  118. package/dist/popover/component.d.ts +2 -2
  119. package/dist/popover/component.js +69 -63
  120. package/dist/radio/component.js +7 -7
  121. package/dist/radio-groups/component.d.ts +1 -2
  122. package/dist/radio-groups/component.js +9 -7
  123. package/dist/select/component.d.ts +8 -9
  124. package/dist/select/component.js +1 -9
  125. package/dist/select/components/arrow/component.d.ts +1 -2
  126. package/dist/select/components/base-select/component.js +97 -90
  127. package/dist/select/components/checkmark/component.d.ts +1 -2
  128. package/dist/select/components/field/component.d.ts +1 -2
  129. package/dist/select/components/field/component.js +8 -5
  130. package/dist/select/components/native-select/component.js +4 -11
  131. package/dist/select/components/optgroup/component.d.ts +1 -2
  132. package/dist/select/components/optgroup/component.js +4 -4
  133. package/dist/select/components/option/component.js +1 -1
  134. package/dist/select/components/options-list/component.d.ts +1 -2
  135. package/dist/select/components/options-list/component.js +25 -23
  136. package/dist/select/components/select-search/index.d.ts +1 -1
  137. package/dist/select/components/select-search/index.js +28 -26
  138. package/dist/select/components/virtual-options-list/component.d.ts +1 -2
  139. package/dist/select/components/virtual-options-list/component.js +52 -45
  140. package/dist/select/index.js +4 -4
  141. package/dist/select/presets/index.d.ts +1 -1
  142. package/dist/select/presets/index.js +4 -4
  143. package/dist/select/presets/use-lazy-loading/index.d.ts +3 -4
  144. package/dist/select/presets/use-lazy-loading/index.js +45 -43
  145. package/dist/select/presets/use-select-with-loading/hook.d.ts +1 -2
  146. package/dist/select/presets/use-select-with-loading/hook.js +8 -1
  147. package/dist/select/utils.js +32 -32
  148. package/dist/sidepanel/component.js +21 -15
  149. package/dist/sidepanel-header/component.js +17 -16
  150. package/dist/skeleton/component.js +4 -4
  151. package/dist/space/component.d.ts +2 -2
  152. package/dist/space/component.js +42 -45
  153. package/dist/space/{Item.d.ts → item.d.ts} +2 -2
  154. package/dist/spinner/component.js +6 -5
  155. package/dist/stack/index.d.ts +1 -1
  156. package/dist/stack/index.js +5 -5
  157. package/dist/stepped-progress-bar/components/step-bar.js +3 -3
  158. package/dist/stepped-progress-bar/index.d.ts +2 -2
  159. package/dist/stepped-progress-bar/index.js +37 -22
  160. package/dist/sticker/component.js +1 -17
  161. package/dist/suffix-input/component.js +13 -13
  162. package/dist/switch/component.js +7 -7
  163. package/dist/table/components/cells/index.d.ts +1 -2
  164. package/dist/table/components/empty-list/index.d.ts +1 -2
  165. package/dist/table/components/error/index.d.ts +2 -3
  166. package/dist/table/components/error/index.js +1 -1
  167. package/dist/table/components/loading/index.d.ts +1 -1
  168. package/dist/table/components/loading/index.js +18 -12
  169. package/dist/table/components/pagination/index.js +56 -53
  170. package/dist/table/components/table-header/index.js +59 -56
  171. package/dist/table/hooks/use-table-data.js +63 -60
  172. package/dist/table/table.d.ts +1 -1
  173. package/dist/table/table.js +73 -73
  174. package/dist/table/types.d.ts +3 -3
  175. package/dist/table/utils/get-query-from-url.js +1 -8
  176. package/dist/table/utils/get-tags.d.ts +1 -1
  177. package/dist/table/utils/get-tags.js +9 -12
  178. package/dist/table/utils/index.d.ts +1 -1
  179. package/dist/table/utils/index.js +4 -4
  180. package/dist/table/utils/parse-query-params.js +5 -1
  181. package/dist/table/utils/prepare-rows.d.ts +1 -2
  182. package/dist/table/utils/prepare-rows.js +4 -3
  183. package/dist/table/utils/query-adapter.d.ts +1 -1
  184. package/dist/table/utils/query-adapter.js +5 -5
  185. package/dist/table/utils/remove-query-param.js +3 -1
  186. package/dist/table/utils/reset-query-param.js +16 -9
  187. package/dist/table-status/component.js +5 -1
  188. package/dist/textarea/component.js +36 -28
  189. package/dist/theme-provider/component.js +33 -29
  190. package/dist/toast/component.d.ts +7 -8
  191. package/dist/toast/component.js +65 -63
  192. package/dist/toast-notifier/component.js +13 -13
  193. package/dist/toast-notifier/use-timer.d.ts +1 -1
  194. package/dist/toast-notifier/use-timer.js +5 -5
  195. package/dist/toast-plate/component.d.ts +3 -3
  196. package/dist/toast-plate/component.js +7 -7
  197. package/dist/tooltip/component.js +35 -35
  198. package/dist/tooltip/node-resolver.js +7 -7
  199. package/dist/typings/api.d.ts +3 -5
  200. package/dist/typography/colors.d.ts +1 -1
  201. package/dist/typography/title/component.d.ts +3 -3
  202. package/dist/typography/title/index.d.ts +1 -1
  203. package/dist/typography/title/index.js +3 -3
  204. package/dist/utils/date/index.js +12 -2
  205. package/dist/utils/index.d.ts +2 -2
  206. package/dist/utils/index.js +14 -14
  207. package/dist/utils/split-amount/util.js +4 -4
  208. package/dist/with-suffix/component.d.ts +13 -13
  209. package/dist/with-suffix/component.js +8 -8
  210. package/package.json +9 -34
  211. /package/dist/__internal/utils/{getDataTestId.d.ts → get-data-test-id.d.ts} +0 -0
  212. /package/dist/__internal/utils/{getDataTestId.js → get-data-test-id.js} +0 -0
  213. /package/dist/calendar/components/header/{/321/201omponent.d.ts" → component.d.ts} +0 -0
  214. /package/dist/calendar/components/months-table/{/321/201omponent.d.ts" → component.d.ts} +0 -0
  215. /package/dist/calendar/components/years-table/{/321/201omponent.d.ts" → component.d.ts} +0 -0
  216. /package/dist/picker-button/field/{Component.js → component.js} +0 -0
  217. /package/dist/space/{Item.js → item.js} +0 -0
@@ -1,14 +1,14 @@
1
1
  import { add as r, addDays as t, addMonths as s, addYears as o, eachDayOfInterval as f, eachMonthOfInterval as n, eachYearOfInterval as i, endOfDay as O, endOfISOWeek as m, endOfWeek as h, endOfYear as d, format as p, isAfter as S, isBefore as y, isEqual as M, isLastDayOfMonth as l, isSameDay as D, isSameMonth as u, isSameYear as x, isThisMonth as I, isThisYear as c, isToday as A, isWithinInterval as T, lastDayOfMonth as Y, max as k, min as W, parse as b, parseISO as R, startOfDay as v, startOfISOWeek as _, startOfMonth as w, startOfWeek as E, startOfYear as N, subDays as P, subMonths as g, subWeeks as q, subYears as z, weekDaysShort as B } from "./date/index.js";
2
2
  import { debounce as J } from "./debounce.js";
3
- import { safeStringify as U } from "./safe-stringify.js";
4
- import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as C, THINSP as F, formatAmount as G } from "./format-amount/util.js";
5
- import { showError as Q, showSuccess as V } from "./show-toast/index.js";
6
- import { splitAmount as Z } from "./split-amount/util.js";
7
- import { formatDate as ee, locales as ae } from "./format-date/index.js";
3
+ import { AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as U, THINSP as j, formatAmount as C } from "./format-amount/util.js";
4
+ import { formatDate as G, locales as K } from "./format-date/index.js";
5
+ import { safeStringify as V } from "./safe-stringify.js";
6
+ import { showError as Z, showSuccess as $ } from "./show-toast/index.js";
7
+ import { splitAmount as ae } from "./split-amount/util.js";
8
8
  import { capitalize as te } from "./string.js";
9
9
  export {
10
- C as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
11
- F as THINSP,
10
+ U as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,
11
+ j as THINSP,
12
12
  r as add,
13
13
  t as addDays,
14
14
  s as addMonths,
@@ -23,8 +23,8 @@ export {
23
23
  h as endOfWeek,
24
24
  d as endOfYear,
25
25
  p as format,
26
- G as formatAmount,
27
- ee as formatDate,
26
+ C as formatAmount,
27
+ G as formatDate,
28
28
  S as isAfter,
29
29
  y as isBefore,
30
30
  M as isEqual,
@@ -37,15 +37,15 @@ export {
37
37
  A as isToday,
38
38
  T as isWithinInterval,
39
39
  Y as lastDayOfMonth,
40
- ae as locales,
40
+ K as locales,
41
41
  k as max,
42
42
  W as min,
43
43
  b as parse,
44
44
  R as parseISO,
45
- U as safeStringify,
46
- Q as showError,
47
- V as showSuccess,
48
- Z as splitAmount,
45
+ V as safeStringify,
46
+ Z as showError,
47
+ $ as showSuccess,
48
+ ae as splitAmount,
49
49
  v as startOfDay,
50
50
  _ as startOfISOWeek,
51
51
  w as startOfMonth,
@@ -1,7 +1,7 @@
1
- const r = (e, n = 3, p, l = 4) => {
2
- const g = `\\B(?=(\\d{${n}})+(?!\\d))`;
3
- return e.length < l ? e : (console.log({ pp: e.replace(new RegExp(g, "g"), p) }), e.replace(new RegExp(g, "g"), p));
1
+ const g = (e, t = 3, n, p = 4) => {
2
+ const r = `\\B(?=(\\d{${t}})+(?!\\d))`;
3
+ return e.length < p ? e : e.replace(new RegExp(r, "g"), n);
4
4
  };
5
5
  export {
6
- r as splitAmount
6
+ g as splitAmount
7
7
  };
@@ -1,10 +1,10 @@
1
- import { default as React, FC, ReactNode, RefAttributes } from 'react';
1
+ import { FC, ReactNode, RefAttributes } from 'react';
2
2
  import { InputProps } from '../input';
3
3
  export type WithSuffixProps = InputProps & {
4
4
  suffix?: ReactNode;
5
5
  suffixContainerClassName?: string;
6
6
  };
7
- export declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "value" | "type" | "size"> & {
7
+ export declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "value" | "type" | "size"> & {
8
8
  value?: string | undefined;
9
9
  defaultValue?: string | undefined;
10
10
  block?: boolean | undefined;
@@ -14,12 +14,12 @@ export declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInput
14
14
  error?: string | boolean | undefined;
15
15
  success?: boolean | undefined;
16
16
  hint?: string | undefined;
17
- label?: React.ReactNode;
17
+ label?: ReactNode;
18
18
  type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
19
- wrapperRef?: React.Ref<HTMLDivElement> | undefined;
20
- leftAddons?: React.ReactNode;
21
- rightAddons?: React.ReactNode;
22
- bottomAddons?: React.ReactNode;
19
+ wrapperRef?: import('react').Ref<HTMLDivElement> | undefined;
20
+ leftAddons?: ReactNode;
21
+ rightAddons?: ReactNode;
22
+ bottomAddons?: ReactNode;
23
23
  className?: string | undefined;
24
24
  fieldClassName?: string | undefined;
25
25
  inputClassName?: string | undefined;
@@ -27,15 +27,15 @@ export declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInput
27
27
  addonsClassName?: string | undefined;
28
28
  focusedClassName?: string | undefined;
29
29
  filledClassName?: string | undefined;
30
- onChange?: ((event: React.ChangeEvent<HTMLInputElement, Element>, payload: {
30
+ onChange?: ((event: import('react').ChangeEvent<HTMLInputElement, Element>, payload: {
31
31
  value: string;
32
32
  }) => void) | undefined;
33
- onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
34
- onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
35
- onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
36
- onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
33
+ onClear?: ((event: import('react').MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
34
+ onClick?: ((event: import('react').MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
35
+ onMouseDown?: ((event: import('react').MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
36
+ onMouseUp?: ((event: import('react').MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
37
37
  dataTestId?: string | undefined;
38
38
  } & {
39
39
  suffix?: ReactNode;
40
40
  suffixContainerClassName?: string | undefined;
41
- } & React.RefAttributes<HTMLInputElement>>;
41
+ } & RefAttributes<HTMLInputElement>>;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as x, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as k, useRef as B, useState as E, useCallback as l, Fragment as F } from "react";
2
+ import l from "classnames";
3
+ import { forwardRef as k, useRef as B, useState as E, useCallback as c, Fragment as F } from "react";
3
4
  import I from "react-merge-refs";
4
- import c from "classnames";
5
5
  import { Portal as q } from "../portal/component.js";
6
6
  import e from "./index.module.css.js";
7
7
  const J = (v) => k(
@@ -18,17 +18,17 @@ const J = (v) => k(
18
18
  suffixContainerClassName: V,
19
19
  ...b
20
20
  }, g) => {
21
- const t = f === void 0, d = B(null), [C, p] = E(N || ""), j = l(
21
+ const t = f === void 0, d = B(null), [C, p] = E(N || ""), j = c(
22
22
  (o, h) => {
23
23
  s && s(o, h), t && p(h.value);
24
24
  },
25
25
  [s, t]
26
- ), w = l(
26
+ ), w = c(
27
27
  (o) => {
28
28
  t && p(""), n && n(o);
29
29
  },
30
30
  [n, t]
31
- ), P = l(
31
+ ), P = c(
32
32
  // TODO: Изменить сигнатуру getPortalContainer в Portal
33
33
  () => d.current.parentElement,
34
34
  []
@@ -44,19 +44,19 @@ const J = (v) => k(
44
44
  onChange: j,
45
45
  onClear: w,
46
46
  placeholder: R,
47
- className: c(S, {
47
+ className: l(S, {
48
48
  [e.suffixVisible]: !!a,
49
49
  [e.hasSuffix]: i
50
50
  }),
51
51
  ...b
52
52
  }
53
53
  ),
54
- /* @__PURE__ */ r(q, { getPortalContainer: P, children: /* @__PURE__ */ x("div", { className: c(e.suffixContainer, V), children: [
54
+ /* @__PURE__ */ r(q, { getPortalContainer: P, children: /* @__PURE__ */ x("div", { className: l(e.suffixContainer, V), children: [
55
55
  /* @__PURE__ */ r("span", { className: e.spacer, children: a }),
56
56
  i && /* @__PURE__ */ r(
57
57
  "div",
58
58
  {
59
- className: c(e.suffix, {
59
+ className: l(e.suffix, {
60
60
  [e.disabled]: m,
61
61
  [e.readOnly]: u
62
62
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -26,10 +26,10 @@
26
26
  "storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006 --ci",
27
27
  "build-storybook": "NODE_OPTIONS=--openssl-legacy-provider build-storybook -o storybook-static",
28
28
  "lint:css": "stylelint ./src/**/*.css",
29
- "lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
29
+ "lint:scripts": "biome lint",
30
30
  "lint": "yarn lint:css && yarn lint:scripts",
31
- "format": "prettier --ignore-path \"./.gitignore\" --write \"./{config,src}/**/*.{ts,tsx,js,jsx,css}\"",
32
- "fix": "eslint --fix --ext .ts,.tsx",
31
+ "format": "biome format --write",
32
+ "fix": "biome check --write",
33
33
  "semantic-release": "semantic-release"
34
34
  },
35
35
  "browserslist": [
@@ -68,6 +68,7 @@
68
68
  "@babel/preset-env": "^7.29.3",
69
69
  "@babel/preset-react": "^7.28.5",
70
70
  "@babel/preset-typescript": "^7.28.5",
71
+ "@biomejs/biome": "2.4.15",
71
72
  "@commitlint/cli": "8.3.5",
72
73
  "@commitlint/config-conventional": "8.3.4",
73
74
  "@semantic-release/git": "^10.0.0",
@@ -100,27 +101,11 @@
100
101
  "@types/react-transition-group": "^4.4.1",
101
102
  "@types/react-window": "1.8.2",
102
103
  "@types/uuid": "8.3.0",
103
- "@typescript-eslint/eslint-plugin": "^4.4.0",
104
- "@typescript-eslint/parser": "^4.4.0",
105
104
  "@vitejs/plugin-react-swc": "^3.7.2",
106
- "alphakit-presets-lint": "1.0.0",
107
105
  "babel-loader": "8.4.1",
108
106
  "conventional-changelog-cli": "2.0.31",
109
107
  "cssnano": "4.1.11",
110
108
  "cz-conventional-changelog": "3.1.0",
111
- "eslint": "^7.7.0",
112
- "eslint-config-airbnb": "^18.2.0",
113
- "eslint-config-airbnb-typescript": "^9.0.0",
114
- "eslint-import-resolver-typescript": "^2.2.1",
115
- "eslint-plugin-cypress": "2.11.1",
116
- "eslint-plugin-dirnames": "^1.0.3",
117
- "eslint-plugin-import": "^2.22.0",
118
- "eslint-plugin-jsx-a11y": "^6.3.1",
119
- "eslint-plugin-prettier": "^3.1.4",
120
- "eslint-plugin-react": "^7.20.6",
121
- "eslint-plugin-react-hooks": "^4.1.0",
122
- "eslint-plugin-simple-import-sort": "^5.0.3",
123
- "eslint-plugin-unicorn": "^32.0.1",
124
109
  "formik": "2.2.9",
125
110
  "glob": "^10.4.5",
126
111
  "husky": "^4.2.5",
@@ -135,9 +120,6 @@
135
120
  "postcss-loader": "4.3.0",
136
121
  "postcss-mixins": "^11.0.3",
137
122
  "postcss-preset-env": "^10.0.0",
138
- "prettier": "^2.1.1",
139
- "prettier-eslint": "^11.0.0",
140
- "prettier-eslint-cli": "^5.0.0",
141
123
  "react": "19.2.6",
142
124
  "react-docgen-typescript-loader": "^3.7.1",
143
125
  "react-dom": "19.2.6",
@@ -149,10 +131,6 @@
149
131
  "vite": "^6.0.7",
150
132
  "vite-plugin-dts": "^4.3.0"
151
133
  },
152
- "prettier": "./node_modules/alphakit-presets-lint/prettier.js",
153
- "eslintConfig": {
154
- "extends": "./node_modules/alphakit-presets-lint/eslint/index.js"
155
- },
156
134
  "peerDependencies": {
157
135
  "@alphakits/icons": "1.25.0",
158
136
  "formik": "2.2.9",
@@ -161,16 +139,13 @@
161
139
  },
162
140
  "lint-staged": {
163
141
  "{src,config}/**/*.{js,jsx,ts,tsx}": [
164
- "prettier-eslint --write",
165
- "eslint"
142
+ "biome check --write --no-errors-on-unmatched"
143
+ ],
144
+ "tools/**/*.{js,cjs}": [
145
+ "biome check --write --no-errors-on-unmatched"
166
146
  ],
167
147
  "*.css": [
168
- "prettier-eslint --write",
169
148
  "stylelint"
170
149
  ]
171
- },
172
- "resolutions": {
173
- "@typescript-eslint/eslint-plugin": "^4.4.0",
174
- "@typescript-eslint/parser": "^4.4.0"
175
150
  }
176
151
  }
File without changes