@matteoaliano/forest-ui 0.3.2 → 0.3.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.
- package/bin/sync.mjs +30 -1
- package/dist/{chunk-GZ6FQWHG.mjs → chunk-G2ZXCZKP.mjs} +926 -803
- package/dist/chunk-G2ZXCZKP.mjs.map +1 -0
- package/dist/{index-CSpNzZHg.d.mts → index-BCXD47YU.d.mts} +72 -84
- package/dist/{index-CSpNzZHg.d.ts → index-BCXD47YU.d.ts} +72 -84
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1001 -855
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +68 -56
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.mts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +927 -801
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1 -1
- package/guidelines/FOREST_BE_GUIDELINES.md +1 -1
- package/guidelines/FOREST_FE_GUIDELINES.md +1 -1
- package/guidelines/FOREST_UI_GUIDELINES.md +37 -2
- package/package.json +2 -1
- package/skills/forest-agency/SKILL.md +84 -0
- package/skills/forest-agency/references/components.md +93 -0
- package/skills/forest-agency/references/patterns.md +256 -0
- package/skills/forest-external/SKILL.md +86 -0
- package/skills/forest-external/references/components.md +93 -0
- package/skills/forest-external/references/patterns.md +256 -0
- package/skills/forest-internal/SKILL.md +86 -0
- package/skills/forest-internal/references/components.md +93 -0
- package/skills/forest-internal/references/patterns.md +256 -0
- package/dist/chunk-GZ6FQWHG.mjs.map +0 -1
|
@@ -61,20 +61,6 @@ declare const red: {
|
|
|
61
61
|
readonly 900: "#520000";
|
|
62
62
|
readonly 950: "#290000";
|
|
63
63
|
};
|
|
64
|
-
declare const info: {
|
|
65
|
-
readonly 25: "#f5faff";
|
|
66
|
-
readonly 50: "#eff8ff";
|
|
67
|
-
readonly 100: "#d1e9ff";
|
|
68
|
-
readonly 200: "#b2ddff";
|
|
69
|
-
readonly 300: "#84caff";
|
|
70
|
-
readonly 400: "#53b1fd";
|
|
71
|
-
readonly 500: "#2e90fa";
|
|
72
|
-
readonly 600: "#1570ef";
|
|
73
|
-
readonly 700: "#175cd3";
|
|
74
|
-
readonly 800: "#1849a9";
|
|
75
|
-
readonly 900: "#194185";
|
|
76
|
-
readonly 950: "#102a56";
|
|
77
|
-
};
|
|
78
64
|
declare const misc: {
|
|
79
65
|
readonly teal: {
|
|
80
66
|
readonly 25: "#f6fefc";
|
|
@@ -242,68 +228,66 @@ declare const radiusSharp: {
|
|
|
242
228
|
readonly "3xl": 10;
|
|
243
229
|
readonly "4xl": 12;
|
|
244
230
|
};
|
|
245
|
-
declare const
|
|
246
|
-
readonly
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
readonly
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
readonly
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
readonly
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
readonly
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
readonly 950: "#102a56";
|
|
306
|
-
};
|
|
231
|
+
declare const base: {
|
|
232
|
+
readonly white: "#ffffff";
|
|
233
|
+
readonly black: "#000000";
|
|
234
|
+
readonly transparent: "#ffffff00";
|
|
235
|
+
};
|
|
236
|
+
declare const error: {
|
|
237
|
+
readonly 25: "#fffbfa";
|
|
238
|
+
readonly 50: "#fef3f2";
|
|
239
|
+
readonly 100: "#fee4e2";
|
|
240
|
+
readonly 200: "#fecdca";
|
|
241
|
+
readonly 300: "#fda29b";
|
|
242
|
+
readonly 400: "#f97066";
|
|
243
|
+
readonly 500: "#f04438";
|
|
244
|
+
readonly 600: "#d92d20";
|
|
245
|
+
readonly 700: "#b42318";
|
|
246
|
+
readonly 800: "#912018";
|
|
247
|
+
readonly 900: "#7a271a";
|
|
248
|
+
readonly 950: "#55160c";
|
|
249
|
+
};
|
|
250
|
+
declare const warning: {
|
|
251
|
+
readonly 25: "#fffcf5";
|
|
252
|
+
readonly 50: "#fffaeb";
|
|
253
|
+
readonly 100: "#fef0c7";
|
|
254
|
+
readonly 200: "#fedf89";
|
|
255
|
+
readonly 300: "#fec84b";
|
|
256
|
+
readonly 400: "#fdb022";
|
|
257
|
+
readonly 500: "#f79009";
|
|
258
|
+
readonly 600: "#dc6803";
|
|
259
|
+
readonly 700: "#b54708";
|
|
260
|
+
readonly 800: "#93370d";
|
|
261
|
+
readonly 900: "#7a2e0e";
|
|
262
|
+
readonly 950: "#4e1d09";
|
|
263
|
+
};
|
|
264
|
+
declare const success: {
|
|
265
|
+
readonly 25: "#f6fef9";
|
|
266
|
+
readonly 50: "#ecfdf3";
|
|
267
|
+
readonly 100: "#dcfae6";
|
|
268
|
+
readonly 200: "#abefc6";
|
|
269
|
+
readonly 300: "#75e0a7";
|
|
270
|
+
readonly 400: "#47cd89";
|
|
271
|
+
readonly 500: "#17b26a";
|
|
272
|
+
readonly 600: "#079455";
|
|
273
|
+
readonly 700: "#067647";
|
|
274
|
+
readonly 800: "#085d3a";
|
|
275
|
+
readonly 900: "#074d31";
|
|
276
|
+
readonly 950: "#053321";
|
|
277
|
+
};
|
|
278
|
+
declare const info: {
|
|
279
|
+
readonly 25: "#f5faff";
|
|
280
|
+
readonly 50: "#eff8ff";
|
|
281
|
+
readonly 100: "#d1e9ff";
|
|
282
|
+
readonly 200: "#b2ddff";
|
|
283
|
+
readonly 300: "#84caff";
|
|
284
|
+
readonly 400: "#53b1fd";
|
|
285
|
+
readonly 500: "#2e90fa";
|
|
286
|
+
readonly 600: "#1570ef";
|
|
287
|
+
readonly 700: "#175cd3";
|
|
288
|
+
readonly 800: "#1849a9";
|
|
289
|
+
readonly 900: "#194185";
|
|
290
|
+
readonly 950: "#102a56";
|
|
307
291
|
};
|
|
308
292
|
declare const spacing: {
|
|
309
293
|
readonly none: 0;
|
|
@@ -529,12 +513,12 @@ declare const buttonColors: {
|
|
|
529
513
|
readonly borderHover: "#3a1aad";
|
|
530
514
|
};
|
|
531
515
|
readonly secondary: {
|
|
532
|
-
readonly bg: "#
|
|
533
|
-
readonly bgHover: "#
|
|
534
|
-
readonly fg: "#
|
|
535
|
-
readonly fgHover: "#
|
|
536
|
-
readonly border: "#
|
|
537
|
-
readonly borderHover: "#
|
|
516
|
+
readonly bg: "#18181b";
|
|
517
|
+
readonly bgHover: "#09090b";
|
|
518
|
+
readonly fg: "#ffffff";
|
|
519
|
+
readonly fgHover: "#ffffff";
|
|
520
|
+
readonly border: "#18181b";
|
|
521
|
+
readonly borderHover: "#09090b";
|
|
538
522
|
};
|
|
539
523
|
readonly secondaryColor: {
|
|
540
524
|
readonly bg: "#ffffff";
|
|
@@ -730,7 +714,11 @@ type Widen<T> = T extends string ? string : T extends number ? number : T extend
|
|
|
730
714
|
} : T;
|
|
731
715
|
/** Full set of design tokens that a preset variant must provide. */
|
|
732
716
|
interface DesignTokens {
|
|
733
|
-
|
|
717
|
+
base: Widen<typeof base>;
|
|
718
|
+
error: Widen<typeof error>;
|
|
719
|
+
warning: Widen<typeof warning>;
|
|
720
|
+
success: Widen<typeof success>;
|
|
721
|
+
info: Widen<typeof info>;
|
|
734
722
|
spacing: Widen<typeof spacing>;
|
|
735
723
|
radius: Widen<typeof radius>;
|
|
736
724
|
shadows: Widen<typeof shadows$1>;
|
|
@@ -804,4 +792,4 @@ declare function getAvailablePresets(): string[];
|
|
|
804
792
|
declare const forestTheme: _mui_material.Theme;
|
|
805
793
|
declare const forestThemeOptions: ThemeOptions;
|
|
806
794
|
|
|
807
|
-
export {
|
|
795
|
+
export { info as A, lineHeight as B, navColors as C, type DesignTokens as D, radius as E, registerPreset as F, sliderColors as G, spacing as H, success as I, text as J, toggleColors as K, shadows$1 as L, warning as M, widths as N, components as O, type PresetVariantConfig as P, gray as Q, magenta as R, misc as S, type ThemePreset as T, palette as U, radiusSharp as V, red as W, shadows as X, typography as Y, violet as Z, alpha as a, avatarColors as b, base as c, bg as d, border as e, breadcrumbColors as f, buildTheme as g, buildThemeOptions as h, buttonColors as i, chartColors as j, container as k, display as l, error as m, fg as n, focusRings as o, fontFamily as p, fontSize as q, fontWeight as r, forestAgencyPreset as s, forestExternalPreset as t, forestInternalPreset as u, forestTheme as v, forestThemeOptions as w, getAvailablePresets as x, getPreset as y, iconColors as z };
|
|
@@ -61,20 +61,6 @@ declare const red: {
|
|
|
61
61
|
readonly 900: "#520000";
|
|
62
62
|
readonly 950: "#290000";
|
|
63
63
|
};
|
|
64
|
-
declare const info: {
|
|
65
|
-
readonly 25: "#f5faff";
|
|
66
|
-
readonly 50: "#eff8ff";
|
|
67
|
-
readonly 100: "#d1e9ff";
|
|
68
|
-
readonly 200: "#b2ddff";
|
|
69
|
-
readonly 300: "#84caff";
|
|
70
|
-
readonly 400: "#53b1fd";
|
|
71
|
-
readonly 500: "#2e90fa";
|
|
72
|
-
readonly 600: "#1570ef";
|
|
73
|
-
readonly 700: "#175cd3";
|
|
74
|
-
readonly 800: "#1849a9";
|
|
75
|
-
readonly 900: "#194185";
|
|
76
|
-
readonly 950: "#102a56";
|
|
77
|
-
};
|
|
78
64
|
declare const misc: {
|
|
79
65
|
readonly teal: {
|
|
80
66
|
readonly 25: "#f6fefc";
|
|
@@ -242,68 +228,66 @@ declare const radiusSharp: {
|
|
|
242
228
|
readonly "3xl": 10;
|
|
243
229
|
readonly "4xl": 12;
|
|
244
230
|
};
|
|
245
|
-
declare const
|
|
246
|
-
readonly
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
readonly
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
readonly
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
readonly
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
readonly
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
readonly 950: "#102a56";
|
|
306
|
-
};
|
|
231
|
+
declare const base: {
|
|
232
|
+
readonly white: "#ffffff";
|
|
233
|
+
readonly black: "#000000";
|
|
234
|
+
readonly transparent: "#ffffff00";
|
|
235
|
+
};
|
|
236
|
+
declare const error: {
|
|
237
|
+
readonly 25: "#fffbfa";
|
|
238
|
+
readonly 50: "#fef3f2";
|
|
239
|
+
readonly 100: "#fee4e2";
|
|
240
|
+
readonly 200: "#fecdca";
|
|
241
|
+
readonly 300: "#fda29b";
|
|
242
|
+
readonly 400: "#f97066";
|
|
243
|
+
readonly 500: "#f04438";
|
|
244
|
+
readonly 600: "#d92d20";
|
|
245
|
+
readonly 700: "#b42318";
|
|
246
|
+
readonly 800: "#912018";
|
|
247
|
+
readonly 900: "#7a271a";
|
|
248
|
+
readonly 950: "#55160c";
|
|
249
|
+
};
|
|
250
|
+
declare const warning: {
|
|
251
|
+
readonly 25: "#fffcf5";
|
|
252
|
+
readonly 50: "#fffaeb";
|
|
253
|
+
readonly 100: "#fef0c7";
|
|
254
|
+
readonly 200: "#fedf89";
|
|
255
|
+
readonly 300: "#fec84b";
|
|
256
|
+
readonly 400: "#fdb022";
|
|
257
|
+
readonly 500: "#f79009";
|
|
258
|
+
readonly 600: "#dc6803";
|
|
259
|
+
readonly 700: "#b54708";
|
|
260
|
+
readonly 800: "#93370d";
|
|
261
|
+
readonly 900: "#7a2e0e";
|
|
262
|
+
readonly 950: "#4e1d09";
|
|
263
|
+
};
|
|
264
|
+
declare const success: {
|
|
265
|
+
readonly 25: "#f6fef9";
|
|
266
|
+
readonly 50: "#ecfdf3";
|
|
267
|
+
readonly 100: "#dcfae6";
|
|
268
|
+
readonly 200: "#abefc6";
|
|
269
|
+
readonly 300: "#75e0a7";
|
|
270
|
+
readonly 400: "#47cd89";
|
|
271
|
+
readonly 500: "#17b26a";
|
|
272
|
+
readonly 600: "#079455";
|
|
273
|
+
readonly 700: "#067647";
|
|
274
|
+
readonly 800: "#085d3a";
|
|
275
|
+
readonly 900: "#074d31";
|
|
276
|
+
readonly 950: "#053321";
|
|
277
|
+
};
|
|
278
|
+
declare const info: {
|
|
279
|
+
readonly 25: "#f5faff";
|
|
280
|
+
readonly 50: "#eff8ff";
|
|
281
|
+
readonly 100: "#d1e9ff";
|
|
282
|
+
readonly 200: "#b2ddff";
|
|
283
|
+
readonly 300: "#84caff";
|
|
284
|
+
readonly 400: "#53b1fd";
|
|
285
|
+
readonly 500: "#2e90fa";
|
|
286
|
+
readonly 600: "#1570ef";
|
|
287
|
+
readonly 700: "#175cd3";
|
|
288
|
+
readonly 800: "#1849a9";
|
|
289
|
+
readonly 900: "#194185";
|
|
290
|
+
readonly 950: "#102a56";
|
|
307
291
|
};
|
|
308
292
|
declare const spacing: {
|
|
309
293
|
readonly none: 0;
|
|
@@ -529,12 +513,12 @@ declare const buttonColors: {
|
|
|
529
513
|
readonly borderHover: "#3a1aad";
|
|
530
514
|
};
|
|
531
515
|
readonly secondary: {
|
|
532
|
-
readonly bg: "#
|
|
533
|
-
readonly bgHover: "#
|
|
534
|
-
readonly fg: "#
|
|
535
|
-
readonly fgHover: "#
|
|
536
|
-
readonly border: "#
|
|
537
|
-
readonly borderHover: "#
|
|
516
|
+
readonly bg: "#18181b";
|
|
517
|
+
readonly bgHover: "#09090b";
|
|
518
|
+
readonly fg: "#ffffff";
|
|
519
|
+
readonly fgHover: "#ffffff";
|
|
520
|
+
readonly border: "#18181b";
|
|
521
|
+
readonly borderHover: "#09090b";
|
|
538
522
|
};
|
|
539
523
|
readonly secondaryColor: {
|
|
540
524
|
readonly bg: "#ffffff";
|
|
@@ -730,7 +714,11 @@ type Widen<T> = T extends string ? string : T extends number ? number : T extend
|
|
|
730
714
|
} : T;
|
|
731
715
|
/** Full set of design tokens that a preset variant must provide. */
|
|
732
716
|
interface DesignTokens {
|
|
733
|
-
|
|
717
|
+
base: Widen<typeof base>;
|
|
718
|
+
error: Widen<typeof error>;
|
|
719
|
+
warning: Widen<typeof warning>;
|
|
720
|
+
success: Widen<typeof success>;
|
|
721
|
+
info: Widen<typeof info>;
|
|
734
722
|
spacing: Widen<typeof spacing>;
|
|
735
723
|
radius: Widen<typeof radius>;
|
|
736
724
|
shadows: Widen<typeof shadows$1>;
|
|
@@ -804,4 +792,4 @@ declare function getAvailablePresets(): string[];
|
|
|
804
792
|
declare const forestTheme: _mui_material.Theme;
|
|
805
793
|
declare const forestThemeOptions: ThemeOptions;
|
|
806
794
|
|
|
807
|
-
export {
|
|
795
|
+
export { info as A, lineHeight as B, navColors as C, type DesignTokens as D, radius as E, registerPreset as F, sliderColors as G, spacing as H, success as I, text as J, toggleColors as K, shadows$1 as L, warning as M, widths as N, components as O, type PresetVariantConfig as P, gray as Q, magenta as R, misc as S, type ThemePreset as T, palette as U, radiusSharp as V, red as W, shadows as X, typography as Y, violet as Z, alpha as a, avatarColors as b, base as c, bg as d, border as e, breadcrumbColors as f, buildTheme as g, buildThemeOptions as h, buttonColors as i, chartColors as j, container as k, display as l, error as m, fg as n, focusRings as o, fontFamily as p, fontSize as q, fontWeight as r, forestAgencyPreset as s, forestExternalPreset as t, forestInternalPreset as u, forestTheme as v, forestThemeOptions as w, getAvailablePresets as x, getPreset as y, iconColors as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Theme } from '@mui/material/styles';
|
|
3
|
-
export { D as DesignTokens, P as PresetVariantConfig, T as ThemePreset, a as alpha, b as avatarColors, c as
|
|
3
|
+
export { D as DesignTokens, P as PresetVariantConfig, T as ThemePreset, a as alpha, b as avatarColors, c as base, d as bg, e as border, f as breadcrumbColors, g as buildTheme, h as buildThemeOptions, i as buttonColors, j as chartColors, k as container, l as display, m as error, n as fg, o as focusRings, p as fontFamily, q as fontSize, r as fontWeight, s as forestAgencyPreset, t as forestExternalPreset, u as forestInternalPreset, v as forestTheme, w as forestThemeOptions, x as getAvailablePresets, y as getPreset, z as iconColors, A as info, B as lineHeight, C as navColors, E as radius, F as registerPreset, G as sliderColors, H as spacing, I as success, J as text, K as toggleColors, L as tokenShadows, M as warning, N as widths } from './index-BCXD47YU.mjs';
|
|
4
4
|
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
5
5
|
export { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
6
6
|
import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
|
|
@@ -160,13 +160,13 @@ declare function ForestProvider({ children, theme, preset, variant, disableCssBa
|
|
|
160
160
|
declare function Autocomplete<Value, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false>(props: AutocompleteProps<Value, Multiple, DisableClearable, FreeSolo>): react_jsx_runtime.JSX.Element;
|
|
161
161
|
|
|
162
162
|
type ButtonProps = ButtonProps$1;
|
|
163
|
-
declare function Button({ ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare function Button({ variant, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
164
164
|
|
|
165
|
-
declare function ButtonGroup(props: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
165
|
+
declare function ButtonGroup({ variant, ...props }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
166
166
|
|
|
167
167
|
declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
168
168
|
|
|
169
|
-
declare function Fab(props: FabProps): react_jsx_runtime.JSX.Element;
|
|
169
|
+
declare function Fab({ color, ...props }: FabProps): react_jsx_runtime.JSX.Element;
|
|
170
170
|
|
|
171
171
|
declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
172
172
|
declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
|
|
@@ -191,10 +191,10 @@ declare function Switch(props: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
|
191
191
|
|
|
192
192
|
declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
193
193
|
|
|
194
|
-
type SearchProps =
|
|
194
|
+
type SearchProps = TextFieldProps & {
|
|
195
195
|
onClear?: () => void;
|
|
196
196
|
};
|
|
197
|
-
declare function Search({ value: controlledValue, onChange, onClear, placeholder, slotProps, ...props }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
197
|
+
declare function Search({ value: controlledValue, onChange, onClear, placeholder, variant, slotProps, ...props }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
198
198
|
|
|
199
199
|
type InputProps = InputBaseProps;
|
|
200
200
|
declare function Input({ ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
@@ -227,7 +227,7 @@ declare function DatePicker(props: DatePickerProps): react_jsx_runtime.JSX.Eleme
|
|
|
227
227
|
|
|
228
228
|
declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
229
229
|
|
|
230
|
-
declare function Chip(props: ChipProps): react_jsx_runtime.JSX.Element;
|
|
230
|
+
declare function Chip({ deleteIcon, ...props }: ChipProps): react_jsx_runtime.JSX.Element;
|
|
231
231
|
|
|
232
232
|
declare function Divider(props: DividerProps): react_jsx_runtime.JSX.Element;
|
|
233
233
|
|
|
@@ -248,7 +248,7 @@ declare function TableRow(props: TableRowProps): react_jsx_runtime.JSX.Element;
|
|
|
248
248
|
|
|
249
249
|
declare function DataGrid(props: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
250
250
|
|
|
251
|
-
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
251
|
+
declare function Tooltip({ arrow, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
252
252
|
|
|
253
253
|
declare function Typography(props: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
254
254
|
|
|
@@ -336,7 +336,7 @@ interface SidebarNavProps extends Omit<DrawerProps, "open" | "variant" | "onClos
|
|
|
336
336
|
footer?: React__default.ReactNode;
|
|
337
337
|
}
|
|
338
338
|
declare function SidebarNav({ open, onOpenChange, expandedWidth, collapsedWidth, behavior, showToggle, children, header, footer, sx, ...rest }: SidebarNavProps): react_jsx_runtime.JSX.Element;
|
|
339
|
-
interface SidebarItemProps extends
|
|
339
|
+
interface SidebarItemProps extends ListItemButtonProps {
|
|
340
340
|
/** Icon element (required — visible in both expanded and collapsed states) */
|
|
341
341
|
icon: React__default.ReactNode;
|
|
342
342
|
/** Label text */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Theme } from '@mui/material/styles';
|
|
3
|
-
export { D as DesignTokens, P as PresetVariantConfig, T as ThemePreset, a as alpha, b as avatarColors, c as
|
|
3
|
+
export { D as DesignTokens, P as PresetVariantConfig, T as ThemePreset, a as alpha, b as avatarColors, c as base, d as bg, e as border, f as breadcrumbColors, g as buildTheme, h as buildThemeOptions, i as buttonColors, j as chartColors, k as container, l as display, m as error, n as fg, o as focusRings, p as fontFamily, q as fontSize, r as fontWeight, s as forestAgencyPreset, t as forestExternalPreset, u as forestInternalPreset, v as forestTheme, w as forestThemeOptions, x as getAvailablePresets, y as getPreset, z as iconColors, A as info, B as lineHeight, C as navColors, E as radius, F as registerPreset, G as sliderColors, H as spacing, I as success, J as text, K as toggleColors, L as tokenShadows, M as warning, N as widths } from './index-BCXD47YU.js';
|
|
4
4
|
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
5
5
|
export { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
6
6
|
import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
|
|
@@ -160,13 +160,13 @@ declare function ForestProvider({ children, theme, preset, variant, disableCssBa
|
|
|
160
160
|
declare function Autocomplete<Value, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false>(props: AutocompleteProps<Value, Multiple, DisableClearable, FreeSolo>): react_jsx_runtime.JSX.Element;
|
|
161
161
|
|
|
162
162
|
type ButtonProps = ButtonProps$1;
|
|
163
|
-
declare function Button({ ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
163
|
+
declare function Button({ variant, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
164
164
|
|
|
165
|
-
declare function ButtonGroup(props: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
165
|
+
declare function ButtonGroup({ variant, ...props }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
166
166
|
|
|
167
167
|
declare function Checkbox(props: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
168
168
|
|
|
169
|
-
declare function Fab(props: FabProps): react_jsx_runtime.JSX.Element;
|
|
169
|
+
declare function Fab({ color, ...props }: FabProps): react_jsx_runtime.JSX.Element;
|
|
170
170
|
|
|
171
171
|
declare function RadioGroup(props: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
172
172
|
declare function Radio(props: RadioProps): react_jsx_runtime.JSX.Element;
|
|
@@ -191,10 +191,10 @@ declare function Switch(props: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
|
191
191
|
|
|
192
192
|
declare function TextField(props: TextFieldProps): react_jsx_runtime.JSX.Element;
|
|
193
193
|
|
|
194
|
-
type SearchProps =
|
|
194
|
+
type SearchProps = TextFieldProps & {
|
|
195
195
|
onClear?: () => void;
|
|
196
196
|
};
|
|
197
|
-
declare function Search({ value: controlledValue, onChange, onClear, placeholder, slotProps, ...props }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
197
|
+
declare function Search({ value: controlledValue, onChange, onClear, placeholder, variant, slotProps, ...props }: SearchProps): react_jsx_runtime.JSX.Element;
|
|
198
198
|
|
|
199
199
|
type InputProps = InputBaseProps;
|
|
200
200
|
declare function Input({ ...props }: InputProps): react_jsx_runtime.JSX.Element;
|
|
@@ -227,7 +227,7 @@ declare function DatePicker(props: DatePickerProps): react_jsx_runtime.JSX.Eleme
|
|
|
227
227
|
|
|
228
228
|
declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
229
229
|
|
|
230
|
-
declare function Chip(props: ChipProps): react_jsx_runtime.JSX.Element;
|
|
230
|
+
declare function Chip({ deleteIcon, ...props }: ChipProps): react_jsx_runtime.JSX.Element;
|
|
231
231
|
|
|
232
232
|
declare function Divider(props: DividerProps): react_jsx_runtime.JSX.Element;
|
|
233
233
|
|
|
@@ -248,7 +248,7 @@ declare function TableRow(props: TableRowProps): react_jsx_runtime.JSX.Element;
|
|
|
248
248
|
|
|
249
249
|
declare function DataGrid(props: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
250
250
|
|
|
251
|
-
declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
251
|
+
declare function Tooltip({ arrow, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
252
252
|
|
|
253
253
|
declare function Typography(props: TypographyProps): react_jsx_runtime.JSX.Element;
|
|
254
254
|
|
|
@@ -336,7 +336,7 @@ interface SidebarNavProps extends Omit<DrawerProps, "open" | "variant" | "onClos
|
|
|
336
336
|
footer?: React__default.ReactNode;
|
|
337
337
|
}
|
|
338
338
|
declare function SidebarNav({ open, onOpenChange, expandedWidth, collapsedWidth, behavior, showToggle, children, header, footer, sx, ...rest }: SidebarNavProps): react_jsx_runtime.JSX.Element;
|
|
339
|
-
interface SidebarItemProps extends
|
|
339
|
+
interface SidebarItemProps extends ListItemButtonProps {
|
|
340
340
|
/** Icon element (required — visible in both expanded and collapsed states) */
|
|
341
341
|
icon: React__default.ReactNode;
|
|
342
342
|
/** Label text */
|