@framework-m/ui 0.10.4 → 0.12.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.
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Card.d.ts +7 -10
- package/dist/components/Card.d.ts.map +1 -1
- package/dist/components/Popover.d.ts.map +1 -1
- package/dist/components/Primitives.d.ts +8 -26
- package/dist/components/Primitives.d.ts.map +1 -1
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.d.ts.map +1 -1
- package/dist/components/StateBadge.d.ts.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +568 -365
- package/dist/index.js.map +1 -1
- package/dist/theme/MProvider.d.ts +4 -1
- package/dist/theme/MProvider.d.ts.map +1 -1
- package/dist/theme/ThemeContext.d.ts +1 -0
- package/dist/theme/ThemeContext.d.ts.map +1 -1
- package/dist/theme/index.d.ts +3 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/mThemeConfig.d.ts +116 -2
- package/dist/theme/mThemeConfig.d.ts.map +1 -1
- package/dist/theme/presets/frappePreset.d.ts +12 -0
- package/dist/theme/presets/frappePreset.d.ts.map +1 -0
- package/dist/theme/types.d.ts +21 -0
- package/dist/theme/types.d.ts.map +1 -0
- package/dist/tokens/config.d.ts +1 -0
- package/dist/tokens/config.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +19 -19
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { UIPreset } from './types';
|
|
2
3
|
export interface MProviderProps {
|
|
3
4
|
children: ReactNode;
|
|
5
|
+
preset?: UIPreset;
|
|
6
|
+
defaultTheme?: "light" | "dark";
|
|
4
7
|
}
|
|
5
|
-
export declare function MProvider(
|
|
8
|
+
export declare function MProvider(props: Readonly<MProviderProps>): import("react").JSX.Element;
|
|
6
9
|
//# sourceMappingURL=MProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MProvider.d.ts","sourceRoot":"","sources":["../../src/theme/MProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"MProvider.d.ts","sourceRoot":"","sources":["../../src/theme/MProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACjC;AAeD,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,+BAWxD"}
|
|
@@ -5,6 +5,7 @@ export interface ThemeContextType {
|
|
|
5
5
|
setTheme: (theme: Theme) => void;
|
|
6
6
|
toggleTheme: () => void;
|
|
7
7
|
}
|
|
8
|
+
export declare const ThemeContext: import('react').Context<ThemeContextType | null>;
|
|
8
9
|
export interface ThemeProviderProps {
|
|
9
10
|
children: ReactNode;
|
|
10
11
|
defaultTheme?: Theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAkD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvF,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAErC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAkD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvF,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAErC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,kDAA+C,CAAC;AA0BzE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,kBAAkB,+BAwC3E;AAED,wBAAgB,QAAQ,IAAI,gBAAgB,CAM3C"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { ThemeProvider, useTheme } from './ThemeContext';
|
|
2
2
|
export type { Theme, ThemeContextType, ThemeProviderProps } from './ThemeContext';
|
|
3
3
|
export { ThemeToggle } from './ThemeToggle';
|
|
4
|
-
export { mThemeConfig } from './mThemeConfig';
|
|
4
|
+
export { mThemeConfig, buildMThemeConfig } from './mThemeConfig';
|
|
5
5
|
export type { MThemeConfig } from './mThemeConfig';
|
|
6
6
|
export { MProvider } from './MProvider';
|
|
7
7
|
export type { MProviderProps } from './MProvider';
|
|
8
|
+
export type { MThemeTokens, MThemeMap, UIPreset } from './types';
|
|
9
|
+
export { frappePreset } from './presets/frappePreset';
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACzD,YAAY,EAAE,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,3 +1,117 @@
|
|
|
1
|
+
import { MTheme } from '../tokens';
|
|
2
|
+
import { UIPreset } from './types';
|
|
3
|
+
export declare function buildMThemeConfig(preset?: UIPreset): import('@tamagui/core').TamaguiInternalConfig<{
|
|
4
|
+
color: {
|
|
5
|
+
[x: string]: import('@tamagui/core').Variable<string>;
|
|
6
|
+
};
|
|
7
|
+
space: {
|
|
8
|
+
[x: string]: import('@tamagui/core').Variable<number>;
|
|
9
|
+
};
|
|
10
|
+
size: {
|
|
11
|
+
[x: string]: import('@tamagui/core').Variable<number>;
|
|
12
|
+
};
|
|
13
|
+
radius: {
|
|
14
|
+
[x: string]: import('@tamagui/core').Variable<number>;
|
|
15
|
+
};
|
|
16
|
+
zIndex: {
|
|
17
|
+
[x: string]: import('@tamagui/core').Variable<number>;
|
|
18
|
+
};
|
|
19
|
+
} & Omit<{
|
|
20
|
+
color: {
|
|
21
|
+
[x: string]: import('@tamagui/core').Variable<string>;
|
|
22
|
+
};
|
|
23
|
+
space: {
|
|
24
|
+
[x: string]: import('@tamagui/core').Variable<number>;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
[x: string]: import('@tamagui/core').Variable<number>;
|
|
28
|
+
};
|
|
29
|
+
radius: {
|
|
30
|
+
[x: string]: import('@tamagui/core').Variable<number>;
|
|
31
|
+
};
|
|
32
|
+
zIndex: {
|
|
33
|
+
[x: string]: import('@tamagui/core').Variable<number>;
|
|
34
|
+
};
|
|
35
|
+
}, "zIndex" | "space" | "color" | "size" | "radius">, {
|
|
36
|
+
light: MTheme;
|
|
37
|
+
dark: MTheme;
|
|
38
|
+
}, {}, {
|
|
39
|
+
xs: {
|
|
40
|
+
maxWidth: number;
|
|
41
|
+
};
|
|
42
|
+
sm: {
|
|
43
|
+
maxWidth: number;
|
|
44
|
+
};
|
|
45
|
+
md: {
|
|
46
|
+
maxWidth: number;
|
|
47
|
+
};
|
|
48
|
+
lg: {
|
|
49
|
+
maxWidth: number;
|
|
50
|
+
};
|
|
51
|
+
xl: {
|
|
52
|
+
maxWidth: number;
|
|
53
|
+
};
|
|
54
|
+
gtXs: {
|
|
55
|
+
minWidth: number;
|
|
56
|
+
};
|
|
57
|
+
gtSm: {
|
|
58
|
+
minWidth: number;
|
|
59
|
+
};
|
|
60
|
+
gtMd: {
|
|
61
|
+
minWidth: number;
|
|
62
|
+
};
|
|
63
|
+
gtLg: {
|
|
64
|
+
minWidth: number;
|
|
65
|
+
};
|
|
66
|
+
short: {
|
|
67
|
+
maxHeight: number;
|
|
68
|
+
};
|
|
69
|
+
tall: {
|
|
70
|
+
minHeight: number;
|
|
71
|
+
};
|
|
72
|
+
hoverNone: {
|
|
73
|
+
hover: string;
|
|
74
|
+
};
|
|
75
|
+
pointerCoarse: {
|
|
76
|
+
pointer: string;
|
|
77
|
+
};
|
|
78
|
+
}, {}, {
|
|
79
|
+
heading: {
|
|
80
|
+
family: string;
|
|
81
|
+
size: Record<string, number>;
|
|
82
|
+
lineHeight: {
|
|
83
|
+
tight: number;
|
|
84
|
+
normal: number;
|
|
85
|
+
};
|
|
86
|
+
weight: {
|
|
87
|
+
normal: string;
|
|
88
|
+
medium: string;
|
|
89
|
+
semibold: string;
|
|
90
|
+
bold: string;
|
|
91
|
+
};
|
|
92
|
+
letterSpacing: {
|
|
93
|
+
base: number;
|
|
94
|
+
lg: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
body: {
|
|
98
|
+
family: string;
|
|
99
|
+
size: Record<string, number>;
|
|
100
|
+
lineHeight: {
|
|
101
|
+
tight: number;
|
|
102
|
+
normal: number;
|
|
103
|
+
};
|
|
104
|
+
weight: {
|
|
105
|
+
normal: string;
|
|
106
|
+
medium: string;
|
|
107
|
+
semibold: string;
|
|
108
|
+
bold: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
allowedStyleValues: false;
|
|
113
|
+
autocompleteSpecificTokens: "except-special";
|
|
114
|
+
}, "default">;
|
|
1
115
|
export declare const mThemeConfig: import('@tamagui/core').TamaguiInternalConfig<{
|
|
2
116
|
color: {
|
|
3
117
|
[x: string]: import('@tamagui/core').Variable<string>;
|
|
@@ -31,8 +145,8 @@ export declare const mThemeConfig: import('@tamagui/core').TamaguiInternalConfig
|
|
|
31
145
|
[x: string]: import('@tamagui/core').Variable<number>;
|
|
32
146
|
};
|
|
33
147
|
}, "zIndex" | "space" | "color" | "size" | "radius">, {
|
|
34
|
-
light:
|
|
35
|
-
dark:
|
|
148
|
+
light: MTheme;
|
|
149
|
+
dark: MTheme;
|
|
36
150
|
}, {}, {
|
|
37
151
|
xs: {
|
|
38
152
|
maxWidth: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mThemeConfig.d.ts","sourceRoot":"","sources":["../../src/theme/mThemeConfig.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mThemeConfig.d.ts","sourceRoot":"","sources":["../../src/theme/mThemeConfig.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AA2ExC,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0BlD;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAAsB,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UIPreset } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* frappePreset — Frappe UI / Frappe Desk Design System Preset
|
|
4
|
+
*
|
|
5
|
+
* Implements Frappe's visual language:
|
|
6
|
+
* - Slate/Gray neutral palette with Frappe Blue (#2490ef) primary accent
|
|
7
|
+
* - Subtle 6px rounded corners (rounded-md) for inputs, buttons, and cards
|
|
8
|
+
* - Compact ERP spacing and typography scales (Inter font metrics)
|
|
9
|
+
* - Soft layered ambient elevation shadows for cards, popovers, and modals
|
|
10
|
+
*/
|
|
11
|
+
export declare const frappePreset: UIPreset;
|
|
12
|
+
//# sourceMappingURL=frappePreset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frappePreset.d.ts","sourceRoot":"","sources":["../../../src/theme/presets/frappePreset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,EAAE,QA2K1B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MTheme } from '../tokens/config';
|
|
2
|
+
export interface MThemeTokens {
|
|
3
|
+
color: Record<string, string>;
|
|
4
|
+
space: Record<string, number>;
|
|
5
|
+
size: Record<string, number>;
|
|
6
|
+
radius: Record<string, number>;
|
|
7
|
+
zIndex: Record<string, number>;
|
|
8
|
+
}
|
|
9
|
+
export interface MThemeMap {
|
|
10
|
+
light: MTheme;
|
|
11
|
+
dark: MTheme;
|
|
12
|
+
}
|
|
13
|
+
export interface UIPreset {
|
|
14
|
+
name: string;
|
|
15
|
+
tokens?: Partial<MThemeTokens>;
|
|
16
|
+
themes?: {
|
|
17
|
+
light?: Partial<MTheme>;
|
|
18
|
+
dark?: Partial<MTheme>;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/theme/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,MAAM,EAAE,MAA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,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAyED,wBAAgB,qBAAqB,IAAI,aAAa,CAmBrD"}
|
package/dist/ui.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
:root{--spacing-xs:.25rem;--spacing-sm:.5rem;--spacing-md:1rem;--spacing-lg:1.5rem;--spacing-xl:2rem;--spacing-2xl:3rem;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--radius-xl:12px;--radius-full:9999px;--shadow-sm:
|
|
1
|
+
:root{--spacing-xs:.25rem;--spacing-sm:.5rem;--spacing-md:1rem;--spacing-lg:1.5rem;--spacing-xl:2rem;--spacing-2xl:3rem;--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--radius-xl:12px;--radius-full:9999px;--shadow-sm:var(--shadowColor);--shadow-md:var(--shadowColor);--shadow-lg:var(--shadowColor);--font-sans:"Google Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono:"JetBrains Mono", "Fira Code", monospace;--size-xs:.75rem;--size-sm:.875rem;--size-base:.875rem;--size-md:1rem;--size-lg:1.125rem;--size-xl:1.375rem;--size-2xl:1.75rem;--size-3xl:2rem;--weight-normal:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;--leading-tight:1.3;--leading-normal:1.5;--leading-relaxed:1.6;--lightningcss-light:initial;--lightningcss-dark: ;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.dark{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--backgroundHover);background-clip:padding-box;border:2px solid #0000;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:var(--backgroundActive);background-clip:padding-box}.dark ::-webkit-scrollbar-thumb{background:var(--backgroundHover);background-clip:padding-box}.dark ::-webkit-scrollbar-thumb:hover{background:var(--backgroundActive);background-clip:padding-box}aside ::-webkit-scrollbar-thumb{background:var(--backgroundHover)}aside ::-webkit-scrollbar-thumb:hover{background:var(--backgroundActive)}@keyframes skeleton-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton{background:linear-gradient(90deg, var(--backgroundTertiary) 25%, var(--borderColor) 50%, var(--backgroundTertiary) 75%);opacity:.6;background-size:200% 100%;animation:1.5s linear infinite skeleton-shimmer;display:inline-block}.dark .skeleton{background:linear-gradient(90deg, var(--backgroundTertiary) 25%, var(--backgroundSecondary) 50%, var(--backgroundTertiary) 75%);background-size:200% 100%}
|
|
2
2
|
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@framework-m/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Design system primitives for Framework M — presentational components with no business logic",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"license": "Apache-2.0",
|
|
34
34
|
"repository": {
|
|
35
35
|
"type": "git",
|
|
36
|
-
"url": "https://gitlab.com/
|
|
36
|
+
"url": "https://gitlab.com/framework-m/framework-m.git",
|
|
37
37
|
"directory": "libs/framework-m-ui"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -41,32 +41,32 @@
|
|
|
41
41
|
"react-i18next": "^16.6.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@storybook/addon-a11y": "^10.5.
|
|
45
|
-
"@storybook/addon-docs": "^10.5.
|
|
46
|
-
"@storybook/addon-vitest": "^10.5.
|
|
47
|
-
"@storybook/react-vite": "^10.5.
|
|
44
|
+
"@storybook/addon-a11y": "^10.5.8",
|
|
45
|
+
"@storybook/addon-docs": "^10.5.8",
|
|
46
|
+
"@storybook/addon-vitest": "^10.5.8",
|
|
47
|
+
"@storybook/react-vite": "^10.5.8",
|
|
48
48
|
"@testing-library/react": "^16.3.2",
|
|
49
49
|
"@types/react": "^19.2.18",
|
|
50
50
|
"@types/react-dom": "^19.2.4",
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
52
|
-
"@typescript-eslint/parser": "^8.
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
|
52
|
+
"@typescript-eslint/parser": "^8.67.0",
|
|
53
53
|
"@vitejs/plugin-react": "^6.0.5",
|
|
54
|
-
"eslint": "^10.8.
|
|
54
|
+
"eslint": "^10.8.1",
|
|
55
55
|
"eslint-config-prettier": "^10.1.8",
|
|
56
56
|
"eslint-plugin-i18next": "^6.1.5",
|
|
57
57
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
58
58
|
"eslint-plugin-react": "^7.37.5",
|
|
59
59
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
60
60
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
61
|
-
"happy-dom": "^20.11.
|
|
62
|
-
"i18next-cli": "^1.
|
|
61
|
+
"happy-dom": "^20.11.2",
|
|
62
|
+
"i18next-cli": "^1.69.2",
|
|
63
63
|
"prettier": "^3.9.6",
|
|
64
64
|
"react": "^19.2.8",
|
|
65
65
|
"react-dom": "^19.2.8",
|
|
66
66
|
"react-i18next": "^17.0.11",
|
|
67
|
-
"storybook": "^10.5.
|
|
67
|
+
"storybook": "^10.5.8",
|
|
68
68
|
"typescript": "^7.0.2",
|
|
69
|
-
"vite": "^8.2.
|
|
69
|
+
"vite": "^8.2.1",
|
|
70
70
|
"vite-plugin-dts": "^5.0.3",
|
|
71
71
|
"vitest": "4.1.10"
|
|
72
72
|
},
|
|
@@ -74,12 +74,12 @@
|
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@tamagui/core": "2.
|
|
78
|
-
"@tamagui/image": "2.
|
|
79
|
-
"@tamagui/lucide-icons-2": "2.
|
|
80
|
-
"@tamagui/scroll-view": "2.
|
|
81
|
-
"@tamagui/timer": "2.
|
|
82
|
-
"react-native-svg": "
|
|
77
|
+
"@tamagui/core": "2.7.7",
|
|
78
|
+
"@tamagui/image": "2.7.7",
|
|
79
|
+
"@tamagui/lucide-icons-2": "2.7.7",
|
|
80
|
+
"@tamagui/scroll-view": "2.7.7",
|
|
81
|
+
"@tamagui/timer": "2.7.7",
|
|
82
|
+
"react-native-svg": "npm:@tamagui/react-native-svg@^2.7.7"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
85
85
|
"build": "tsc && vite build && node -e \"const fs = require('fs'); if (fs.existsSync('locales')) fs.cpSync('locales', 'dist/locales', {recursive: true});\"",
|