@divayth/brick-ui 0.7.0 → 0.9.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 (39) hide show
  1. package/dist/app/Provider.d.ts +2 -0
  2. package/dist/app/Provider.d.ts.map +1 -1
  3. package/dist/index.js +74 -72
  4. package/dist/lib/locale.d.ts +2 -0
  5. package/dist/lib/locale.d.ts.map +1 -1
  6. package/dist/lib/locale.js +2 -0
  7. package/dist/styles.css +1 -1
  8. package/dist/ui/DropdownMenu/DropdownMenu.d.ts +17 -0
  9. package/dist/ui/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  10. package/dist/ui/DropdownMenu/DropdownMenu.js +34 -0
  11. package/dist/ui/DropdownMenu/DropdownMenu.module.css.js +11 -0
  12. package/dist/ui/DropdownMenu/index.d.ts +2 -0
  13. package/dist/ui/DropdownMenu/index.d.ts.map +1 -0
  14. package/dist/ui/FeedList/FeedList.d.ts +3 -1
  15. package/dist/ui/FeedList/FeedList.d.ts.map +1 -1
  16. package/dist/ui/FeedList/FeedList.js +32 -28
  17. package/dist/ui/IconButton/IconButton.d.ts +2 -1
  18. package/dist/ui/IconButton/IconButton.d.ts.map +1 -1
  19. package/dist/ui/IconButton/IconButton.js +61 -56
  20. package/dist/ui/IconButton/IconButton.module.css.js +24 -24
  21. package/dist/ui/IconButton/index.d.ts +2 -0
  22. package/dist/ui/IconButton/index.d.ts.map +1 -0
  23. package/dist/ui/Modal/Modal.d.ts +1 -0
  24. package/dist/ui/Modal/Modal.d.ts.map +1 -1
  25. package/dist/ui/Modal/Modal.js +45 -45
  26. package/dist/ui/Text/Text.js +7 -7
  27. package/dist/ui/Text/index.d.ts +2 -0
  28. package/dist/ui/Text/index.d.ts.map +1 -0
  29. package/dist/ui/Textarea/Textarea.d.ts +1 -1
  30. package/dist/ui/Textarea/Textarea.d.ts.map +1 -1
  31. package/dist/ui/Textarea/Textarea.js +54 -50
  32. package/dist/ui/Textarea/index.d.ts +2 -0
  33. package/dist/ui/Textarea/index.d.ts.map +1 -0
  34. package/dist/ui/Tooltip/Tooltip.d.ts +7 -4
  35. package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -1
  36. package/dist/ui/Tooltip/Tooltip.js +59 -38
  37. package/dist/ui/index.d.ts +4 -3
  38. package/dist/ui/index.d.ts.map +1 -1
  39. package/package.json +7 -7
@@ -1,77 +1,81 @@
1
1
  "use client";
2
- import { jsxs as L, jsx as l } from "react/jsx-runtime";
3
- import { useId as W, useRef as j, useLayoutEffect as v } from "react";
4
- import { useComposedRefs as H } from "@radix-ui/react-compose-refs";
5
- import N from "clsx";
6
- import { Field as i } from "../Field/Field.js";
7
- import e from "../Input/Input.module.css.js";
8
- const T = (o, m, s) => {
9
- const n = Math.max(1, Math.floor(m)), d = Math.max(n, Math.floor(s ?? 1 / 0)), { paddingTop: f, paddingBottom: c, lineHeight: a } = getComputedStyle(o), h = parseFloat(f) + parseFloat(c);
10
- o.classList.add(e.measuring), o.rows = n;
2
+ import { jsxs as F, jsx as d } from "react/jsx-runtime";
3
+ import { useId as H, useRef as N, useLayoutEffect as S } from "react";
4
+ import { useComposedRefs as O } from "@radix-ui/react-compose-refs";
5
+ import { Field as n } from "../Field/Field.js";
6
+ import { cn as $ } from "../../lib/cn.js";
7
+ import i from "../Input/Input.module.css.js";
8
+ const I = (o, l, e) => {
9
+ const s = Math.max(1, Math.floor(l)), m = Math.max(s, Math.floor(e ?? 1 / 0)), { paddingTop: f, paddingBottom: a, lineHeight: c } = getComputedStyle(o), p = parseFloat(f) + parseFloat(a);
10
+ o.classList.add(i.measuring), o.rows = s;
11
11
  const r = Math.ceil(
12
- (o.scrollHeight - h) / parseFloat(a)
12
+ (o.scrollHeight - p) / parseFloat(c)
13
13
  );
14
- o.rows = Math.min(d, Math.max(n, r)), o.classList.remove(e.measuring);
15
- }, A = ({
14
+ o.rows = Math.min(m, Math.max(s, r)), o.classList.remove(i.measuring);
15
+ }, K = ({
16
16
  id: o,
17
- label: m,
18
- error: s,
19
- size: n = "md",
20
- fullWidth: d = !1,
17
+ label: l,
18
+ error: e,
19
+ size: s = "md",
20
+ fullWidth: m = !1,
21
21
  className: f,
22
- startIcon: c,
23
- endIcon: a,
24
- rows: h = 2,
25
- minRows: r = h,
26
- maxRows: p,
22
+ startIcon: a,
23
+ endIcon: c,
24
+ rows: p = 2,
25
+ minRows: r = p,
26
+ maxRows: h,
27
27
  value: g,
28
28
  defaultValue: M,
29
- onInput: b,
30
- ref: y,
31
- ...z
29
+ onInput: L,
30
+ ref: T,
31
+ "aria-describedby": j,
32
+ "aria-invalid": z,
33
+ ...C
32
34
  }) => {
33
- const C = W(), u = o ?? C, x = j(null), E = H(x, y);
34
- return v(() => {
35
- const t = x.current;
35
+ const E = H(), u = o ?? E, b = e ? `${u}-error` : void 0, W = [j, b].filter(Boolean).join(" ") || void 0, v = N(null), B = O(v, T);
36
+ return S(() => {
37
+ const t = v.current;
36
38
  if (!t) return;
37
- const w = () => T(t, r, p);
38
- w();
39
- let F = t.clientWidth;
40
- const I = new ResizeObserver(() => {
41
- F !== t.clientWidth && (F = t.clientWidth, w());
39
+ const x = () => I(t, r, h);
40
+ x();
41
+ let w = t.clientWidth;
42
+ const y = new ResizeObserver(() => {
43
+ w !== t.clientWidth && (w = t.clientWidth, x());
42
44
  });
43
- return I.observe(t), () => I.disconnect();
44
- }, [g, M, r, p]), /* @__PURE__ */ L(i.Root, { className: d ? "w-full" : "w-auto", children: [
45
- m && /* @__PURE__ */ l(i.Label, { htmlFor: u, label: m }),
46
- /* @__PURE__ */ L(i.Control, { size: n, multiline: !0, children: [
47
- c && /* @__PURE__ */ l(i.Icon, { icon: c }),
48
- /* @__PURE__ */ l(
45
+ return y.observe(t), () => y.disconnect();
46
+ }, [g, M, r, h]), /* @__PURE__ */ F(n.Root, { className: m ? "w-full" : "w-auto", children: [
47
+ l && /* @__PURE__ */ d(n.Label, { htmlFor: u, label: l }),
48
+ /* @__PURE__ */ F(n.Control, { size: s, multiline: !0, children: [
49
+ a && /* @__PURE__ */ d(n.Icon, { icon: a }),
50
+ /* @__PURE__ */ d(
49
51
  "textarea",
50
52
  {
51
- ref: E,
53
+ ref: B,
52
54
  id: u,
55
+ "aria-invalid": e ? !0 : z,
56
+ "aria-describedby": W,
53
57
  rows: Math.max(1, Math.floor(r)),
54
58
  value: g,
55
59
  defaultValue: M,
56
60
  onInput: (t) => {
57
- T(t.currentTarget, r, p), b?.(t);
61
+ I(t.currentTarget, r, h), L?.(t);
58
62
  },
59
- className: N(
60
- e.input,
61
- e.multiple,
62
- s && e.error,
63
- c && e.withStartIcon,
64
- a && e.withEndIcon,
63
+ className: $(
64
+ i.input,
65
+ i.multiple,
66
+ e && i.error,
67
+ a && i.withStartIcon,
68
+ c && i.withEndIcon,
65
69
  f
66
70
  ),
67
- ...z
71
+ ...C
68
72
  }
69
73
  ),
70
- a && /* @__PURE__ */ l(i.Icon, { icon: a, position: "end" })
74
+ c && /* @__PURE__ */ d(n.Icon, { icon: c, position: "end" })
71
75
  ] }),
72
- s && /* @__PURE__ */ l(i.Error, { id: `${u}-error`, error: s })
76
+ e && /* @__PURE__ */ d(n.Error, { id: b, error: e })
73
77
  ] });
74
78
  };
75
79
  export {
76
- A as Textarea
80
+ K as Textarea
77
81
  };
@@ -0,0 +1,2 @@
1
+ export { Textarea, type TextareaProps } from './Textarea.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/Textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC"}
@@ -1,4 +1,4 @@
1
- import { type ComponentProps, type PropsWithChildren } from 'react';
1
+ import { type ComponentProps, type PropsWithChildren, type ReactElement } from 'react';
2
2
  import { Tooltip as Primitive } from 'radix-ui';
3
3
  type Side = NonNullable<ComponentProps<typeof Primitive.Content>['side']>;
4
4
  type Placement = Side | `${Side}-start` | `${Side}-end`;
@@ -8,11 +8,14 @@ export interface TooltipRootProps extends PropsWithChildren {
8
8
  disabled?: boolean;
9
9
  }
10
10
  export type TooltipTriggerProps = ComponentProps<typeof Primitive.Trigger>;
11
- export type TooltipContentProps = ComponentProps<typeof Primitive.Content>;
11
+ export interface TooltipContentProps extends Omit<ComponentProps<typeof Primitive.Content>, 'children'> {
12
+ text: string | ReactElement;
13
+ anchor?: boolean;
14
+ }
12
15
  export declare const Tooltip: {
13
16
  Root: ({ children, placement, delay, disabled, }: TooltipRootProps) => import("react").JSX.Element;
14
- Trigger: ({ ref, ...props }: TooltipTriggerProps) => import("react").JSX.Element;
15
- Content: ({ children, className, sideOffset, collisionPadding, ...props }: TooltipContentProps) => import("react").JSX.Element;
17
+ Trigger: ({ ref, onFocus, ...props }: TooltipTriggerProps) => import("react").JSX.Element;
18
+ Content: ({ text, anchor, className, sideOffset, collisionPadding, ...props }: TooltipContentProps) => import("react").JSX.Element;
16
19
  };
17
20
  export {};
18
21
  //# sourceMappingURL=Tooltip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/ui/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,iBAAiB,EAIvB,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC;AAOhD,KAAK,IAAI,GAAG,WAAW,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC1E,KAAK,SAAS,GAAG,IAAI,GAAG,GAAG,IAAI,QAAQ,GAAG,GAAG,IAAI,MAAM,CAAC;AAExD,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,E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CA6B2B,CAAC"}
@@ -1,46 +1,67 @@
1
1
  "use client";
2
- import { jsx as e, jsxs as f } from "react/jsx-runtime";
3
- import { createContext as u, useContext as d, useState as p, useMemo as h } from "react";
2
+ import { jsx as t, jsxs as f } from "react/jsx-runtime";
3
+ import { createContext as T, useContext as u, useState as p, useEffect as h, useMemo as w } from "react";
4
4
  import { useComposedRefs as C } from "@radix-ui/react-compose-refs";
5
- import { Tooltip as s } from "radix-ui";
6
- import { twMerge as T } from "tailwind-merge";
7
- import { Portal as x } from "../Portal/Portal.js";
8
- import R from "./Tooltip.module.css.js";
9
- const m = u({}), v = ({
10
- children: t,
11
- placement: o = "top",
12
- delay: r = 250,
13
- disabled: n = !1
5
+ import { Tooltip as c } from "radix-ui";
6
+ import { Portal as v } from "../Portal/Portal.js";
7
+ import { Text as x } from "../Text/Text.js";
8
+ import { cn as E } from "../../lib/cn.js";
9
+ import y from "./Tooltip.module.css.js";
10
+ const m = T({}), L = ({
11
+ children: r,
12
+ placement: n = "top",
13
+ delay: i = 250,
14
+ disabled: l = !1
14
15
  }) => {
15
- const [l, c] = p(!1), [i, a] = p(null), g = h(
16
- () => ({ placement: o, trigger: i, setTrigger: a }),
17
- [o, i]
16
+ const [a, e] = p(!1), [o, d] = p(null);
17
+ h(() => {
18
+ const s = () => e(!1);
19
+ return window.addEventListener("resize", s), window.addEventListener("blur", s), () => {
20
+ window.removeEventListener("resize", s), window.removeEventListener("blur", s);
21
+ };
22
+ }, []);
23
+ const g = w(
24
+ () => ({ placement: n, trigger: o, setTrigger: d }),
25
+ [n, o]
18
26
  );
19
- return /* @__PURE__ */ e(m.Provider, { value: g, children: /* @__PURE__ */ e(s.Provider, { delayDuration: r, children: /* @__PURE__ */ e(s.Root, { open: l && !n, onOpenChange: c, children: t }) }) });
20
- }, w = ({ ref: t, ...o }) => {
21
- const { setTrigger: r } = d(m), n = C(r, t);
22
- return /* @__PURE__ */ e(s.Trigger, { asChild: !0, ref: n, ...o });
23
- }, y = ({
24
- children: t,
25
- className: o,
26
- sideOffset: r = 8,
27
- collisionPadding: n = 8,
28
- ...l
27
+ return /* @__PURE__ */ t(m.Provider, { value: g, children: /* @__PURE__ */ t(c.Provider, { delayDuration: i, children: /* @__PURE__ */ t(c.Root, { open: a && !l && !!o, onOpenChange: e, children: r }) }) });
28
+ }, R = ({ ref: r, onFocus: n, ...i }) => {
29
+ const { setTrigger: l } = u(m), a = C(l, r);
30
+ return /* @__PURE__ */ t(
31
+ c.Trigger,
32
+ {
33
+ asChild: !0,
34
+ ref: a,
35
+ onFocus: (e) => {
36
+ n?.(e);
37
+ const o = e.relatedTarget instanceof Element ? e.relatedTarget.closest('dialog, [role="dialog"]') : null;
38
+ o && o !== e.currentTarget.closest('dialog, [role="dialog"]') && e.preventDefault();
39
+ },
40
+ ...i
41
+ }
42
+ );
43
+ }, b = ({
44
+ text: r,
45
+ anchor: n = !0,
46
+ className: i,
47
+ sideOffset: l = 4,
48
+ collisionPadding: a = 8,
49
+ ...e
29
50
  }) => {
30
- const { placement: c, trigger: i } = d(m), [a, g = "center"] = c.split("-");
31
- return /* @__PURE__ */ e(x, { container: i?.closest('dialog, [role="dialog"]'), children: /* @__PURE__ */ f(
32
- s.Content,
51
+ const { placement: o, trigger: d } = u(m), [g, s = "center"] = o.split("-");
52
+ return /* @__PURE__ */ t(v, { container: d?.closest('dialog, [role="dialog"]'), children: /* @__PURE__ */ f(
53
+ c.Content,
33
54
  {
34
- side: a,
35
- align: g,
36
- sideOffset: r,
37
- collisionPadding: n,
38
- className: T(R.content, o),
39
- ...l,
55
+ side: g,
56
+ align: s,
57
+ sideOffset: l,
58
+ collisionPadding: a,
59
+ className: E(y.content, i),
60
+ ...e,
40
61
  children: [
41
- t,
42
- /* @__PURE__ */ e(
43
- s.Arrow,
62
+ typeof r == "string" ? /* @__PURE__ */ t(x, { size: "xs", className: "text-gray-1", children: r }) : r,
63
+ n && /* @__PURE__ */ t(
64
+ c.Arrow,
44
65
  {
45
66
  width: 12,
46
67
  height: 6,
@@ -50,7 +71,7 @@ const m = u({}), v = ({
50
71
  ]
51
72
  }
52
73
  ) });
53
- }, A = { Root: v, Trigger: w, Content: y };
74
+ }, B = { Root: L, Trigger: R, Content: b };
54
75
  export {
55
- A as Tooltip
76
+ B as Tooltip
56
77
  };
@@ -9,11 +9,12 @@ export { CircularLoading, type CircularLoadingProps, } from './CircularLoading/i
9
9
  export { DateInput, type DateInputProps } from './Date/DateInput.js';
10
10
  export { DateText, type DateTextProps } from './DateText/index.js';
11
11
  export { Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, } from './Drawer/Drawer.js';
12
+ export { DropdownMenu, type DropdownMenuContentProps, type DropdownMenuItemProps, type DropdownMenuRootProps, type DropdownMenuTriggerProps, } from './DropdownMenu/index.js';
12
13
  export { FeedList, type FeedListProps } from './FeedList/FeedList.js';
13
14
  export { type ControlSize, Field, type FieldControlProps, type FieldErrorProps, type FieldIconProps, type FieldLabelProps, } from './Field/Field.js';
14
15
  export { Flex, type FlexProps } from './Flex/index.js';
15
16
  export { Grid, type GridGap, type GridItemProps, type GridItemSize, type GridRootProps, type ResponsiveValue, } from './Grid/Grid.js';
16
- export { IconButton, type IconButtonColor, type IconButtonProps, type IconButtonVariant, } from './IconButton/IconButton.js';
17
+ export { IconButton, type IconButtonColor, type IconButtonProps, type IconButtonVariant, } from './IconButton/index.js';
17
18
  export { Input, type InputControlProps, type InputProps, } from './Input/index.js';
18
19
  export { List, type ListItemProps, type ListProps } from './List/List.js';
19
20
  export { Modal, MODAL_SIZE, type ModalActions, ModalProvider, type ModalRootProps, type ModalSize, useModal, } from './Modal/index.js';
@@ -29,7 +30,7 @@ export { Sticky, type StickyProps } from './Sticky/Sticky.js';
29
30
  export { TablePagination, type TablePaginationProps, } from './Table/components/pagination/TablePagination.js';
30
31
  export { type IColumn, SortOrder, type SortParams, Table, type TableBodyProps, type TableContextProps, type TableEmptyConfig, type TablePaginationConfig, type TablePaginationState, type TableParams, type TableProps, type TableSelectionState, type TableSortingState, useSelected, } from './Table/index.js';
31
32
  export { type TabProps, Tabs, type TabsListProps, type TabsPanelProps, type TabsRootProps, useTabs, } from './Tabs/Tabs.js';
32
- export { Text, type TextProps } from './Text/Text.js';
33
- export { Textarea, type TextareaProps } from './Textarea/Textarea.js';
33
+ export { Text, type TextProps } from './Text/index.js';
34
+ export { Textarea, type TextareaProps } from './Textarea/index.js';
34
35
  export { Tooltip, type TooltipContentProps, type TooltipRootProps, type TooltipTriggerProps, } from './Tooltip/Tooltip.js';
35
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EACL,YAAY,EACZ,KAAK,iBAAiB,GACvB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,MAAM,EACN,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,UAAU,GAChB,MAAM,sB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B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EACL,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,UAAU,EACf,KAAK,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,QAAQ,EACb,IAAI,EACJ,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,OAAO,GACR,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB,MAAM,wBAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divayth/brick-ui",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "React components for Brick UI",
5
5
  "type": "module",
6
6
  "files": [
@@ -44,12 +44,12 @@
44
44
  "tailwind-merge": "^3.7.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@eslint-react/eslint-plugin": "^5.28.8",
47
+ "@eslint-react/eslint-plugin": "5.28.8",
48
48
  "@eslint/js": "^9.39.5",
49
49
  "@fontsource-variable/inter": "^5.3.0",
50
- "@storybook/addon-docs": "^10.6.1",
51
- "@storybook/addon-vitest": "^10.6.1",
52
- "@storybook/react-vite": "^10.6.1",
50
+ "@storybook/addon-docs": "10.6.6",
51
+ "@storybook/addon-vitest": "10.6.6",
52
+ "@storybook/react-vite": "10.6.6",
53
53
  "@stylistic/eslint-plugin": "^5.10.0",
54
54
  "@tailwindcss/vite": "^4.0.0",
55
55
  "@types/js-cookie": "^3.0.6",
@@ -68,11 +68,11 @@
68
68
  "react": "^19.0.0",
69
69
  "react-dom": "^19.0.0",
70
70
  "rollup-plugin-preserve-directives": "^0.4.0",
71
- "storybook": "^10.6.1",
71
+ "storybook": "10.6.6",
72
72
  "tailwindcss": "^4.0.0",
73
73
  "tsc-alias": "^1.9.10",
74
74
  "typescript": "^5.0.0",
75
- "typescript-eslint": "^8.72.1",
75
+ "typescript-eslint": "^8.36.0",
76
76
  "vite": "^7.0.0",
77
77
  "vitest": "^5.1.0"
78
78
  },