@axzydev/axzy_ui_system 1.4.2 → 1.4.3
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/index.cjs +273 -194
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +125 -68
- package/dist/index.d.ts +125 -68
- package/dist/index.js +175 -97
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/card/card.tsx +22 -9
- package/src/components/organisms/page-header/page-header.tsx +14 -3
- package/src/components/organisms/sidebar/sidebar.doc.mdx +1 -0
- package/src/components/organisms/sidebar/sidebar.props.ts +18 -1
- package/src/components/organisms/sidebar/sidebar.tsx +30 -10
- package/src/components/organisms/topbar/topbar.props.ts +7 -0
- package/src/components/organisms/topbar/topbar.tsx +31 -8
- package/src/components/templates/layout/layout.props.ts +8 -0
- package/src/components/templates/layout/layout.tsx +101 -54
- package/src/components/theme-provider/themeProvider.doc.mdx +1 -0
- package/src/components/theme-provider/themeProvider.props.ts +6 -0
- package/src/components/theme-provider/themeProvider.tsx +11 -1
- package/src/index.ts +6 -6
- package/src/theme/theme-context.ts +11 -1
- package/src/theme/theme.types.ts +7 -0
package/dist/index.d.cts
CHANGED
|
@@ -3084,6 +3084,16 @@ interface ITSidebarNotification {
|
|
|
3084
3084
|
*/
|
|
3085
3085
|
badgeProps?: ITBadgetProps;
|
|
3086
3086
|
}
|
|
3087
|
+
/**
|
|
3088
|
+
* Brand block pinned at the top of {@link ITSidebarProps}. The logo stays
|
|
3089
|
+
* visible while the rail is collapsed; the text only shows when expanded.
|
|
3090
|
+
*/
|
|
3091
|
+
interface ITSidebarBrand {
|
|
3092
|
+
/** Logo element (e.g. an `<img>` or an SVG mark). Always visible. */
|
|
3093
|
+
logo?: React.ReactNode;
|
|
3094
|
+
/** Wordmark rendered next to the logo. Hidden while the sidebar is collapsed. */
|
|
3095
|
+
text?: string;
|
|
3096
|
+
}
|
|
3087
3097
|
/** Props for the ITSidebar vertical navigation component. */
|
|
3088
3098
|
interface ITSidebarProps {
|
|
3089
3099
|
/** Navigation structure: top-level items with optional sub-items. */
|
|
@@ -3113,6 +3123,13 @@ interface ITSidebarProps {
|
|
|
3113
3123
|
* while collapsed, showing just the icon and the counter.
|
|
3114
3124
|
*/
|
|
3115
3125
|
notification?: ITSidebarNotification;
|
|
3126
|
+
/**
|
|
3127
|
+
* Brand (logo + wordmark) pinned at the very top of the sidebar, in a 64px
|
|
3128
|
+
* row that lines up with the top bar. Unlike {@link ITSidebarProps.header}
|
|
3129
|
+
* the logo stays visible while collapsed. `ITLayout` fills it from
|
|
3130
|
+
* `topBar.logo` / `topBar.logoText` when `sidebarFullHeight` is set.
|
|
3131
|
+
*/
|
|
3132
|
+
brand?: ITSidebarBrand;
|
|
3116
3133
|
}
|
|
3117
3134
|
|
|
3118
3135
|
/**
|
|
@@ -3144,7 +3161,7 @@ interface ITSidebarProps {
|
|
|
3144
3161
|
* />
|
|
3145
3162
|
* ```
|
|
3146
3163
|
*/
|
|
3147
|
-
declare function ITSidebar({ navigationItems, isCollapsed, className, visibleOnMobile, onItemClick, onSubItemClick, subitemConnector, header, notification, }: ITSidebarProps): react_jsx_runtime.JSX.Element;
|
|
3164
|
+
declare function ITSidebar({ navigationItems, isCollapsed, className, visibleOnMobile, onItemClick, onSubItemClick, subitemConnector, header, notification, brand, }: ITSidebarProps): react_jsx_runtime.JSX.Element;
|
|
3148
3165
|
|
|
3149
3166
|
/** Skeleton shape variant: "text" (line) | "circular" (avatar/icon) | "rectangular" (card/image). */
|
|
3150
3167
|
type SkeletonVariant = "text" | "circular" | "rectangular";
|
|
@@ -3765,6 +3782,13 @@ interface ITTopBarProps {
|
|
|
3765
3782
|
showMobileMenuButton?: boolean;
|
|
3766
3783
|
/** Callback fired when the mobile menu toggle button is clicked. */
|
|
3767
3784
|
onToggleMobileMenu?: () => void;
|
|
3785
|
+
/**
|
|
3786
|
+
* Hides the logo and `logoText` from the `lg` breakpoint up and left-aligns
|
|
3787
|
+
* `centerContent`. Use it when the brand already lives somewhere else (e.g.
|
|
3788
|
+
* at the top of a full-height sidebar); `ITLayout` sets it for you when
|
|
3789
|
+
* `sidebarFullHeight` is on. Below `lg` the logo is still shown. @default false
|
|
3790
|
+
*/
|
|
3791
|
+
hideBrandOnDesktop?: boolean;
|
|
3768
3792
|
}
|
|
3769
3793
|
|
|
3770
3794
|
interface ITLayoutProps {
|
|
@@ -3778,6 +3802,14 @@ interface ITLayoutProps {
|
|
|
3778
3802
|
className?: string;
|
|
3779
3803
|
/** Additional CSS classes for the content container */
|
|
3780
3804
|
contentClassName?: string;
|
|
3805
|
+
/**
|
|
3806
|
+
* App-shell arrangement. `false` (default): the top bar spans the full width
|
|
3807
|
+
* and the sidebar sits below it. `true`: the sidebar spans the full viewport
|
|
3808
|
+
* height and shows the brand (`topBar.logo` + `topBar.logoText`) at its top,
|
|
3809
|
+
* while the top bar covers only the content column and drops the logo from
|
|
3810
|
+
* the `lg` breakpoint up. Mobile is unchanged. @default false
|
|
3811
|
+
*/
|
|
3812
|
+
sidebarFullHeight?: boolean;
|
|
3781
3813
|
}
|
|
3782
3814
|
|
|
3783
3815
|
/**
|
|
@@ -3802,8 +3834,18 @@ interface ITLayoutProps {
|
|
|
3802
3834
|
* >
|
|
3803
3835
|
* <SettingsPage />
|
|
3804
3836
|
* </ITLayout>
|
|
3837
|
+
*
|
|
3838
|
+
* @example
|
|
3839
|
+
* // Full-height sidebar with the brand on top; the top bar covers only the content.
|
|
3840
|
+
* <ITLayout
|
|
3841
|
+
* sidebarFullHeight
|
|
3842
|
+
* topBar={{ logo: <Logo />, logoText: "Acme", centerContent: <SearchBox /> }}
|
|
3843
|
+
* sidebar={{ navigationItems, isCollapsed: false }}
|
|
3844
|
+
* >
|
|
3845
|
+
* <Dashboard />
|
|
3846
|
+
* </ITLayout>
|
|
3805
3847
|
*/
|
|
3806
|
-
declare function ITLayout({ topBar, sidebar, children, className, contentClassName, }: ITLayoutProps): react_jsx_runtime.JSX.Element;
|
|
3848
|
+
declare function ITLayout({ topBar, sidebar, children, className, contentClassName, sidebarFullHeight, }: ITLayoutProps): react_jsx_runtime.JSX.Element;
|
|
3807
3849
|
|
|
3808
3850
|
type LoaderSize = "sm" | "md" | "lg" | "xl";
|
|
3809
3851
|
type LoaderVariant = "spinner" | "dots" | "bar" | "pulse";
|
|
@@ -3896,63 +3938,6 @@ interface ITStepperProps {
|
|
|
3896
3938
|
*/
|
|
3897
3939
|
declare function ITStepper({ steps, currentStep, onFinish, onStepChange, allowClickToJump, useIcons, disableNext, containerClassName, stepClassName, scrollableContent, maxContentHeight, color, }: ITStepperProps): react_jsx_runtime.JSX.Element;
|
|
3898
3940
|
|
|
3899
|
-
interface ITThemePalette$1 {
|
|
3900
|
-
/** Main brand accent color (hex). Drives primary buttons, active nav items, focus rings, links, and the `--color-primary` CSS variable. @default "#06b6d4" */
|
|
3901
|
-
primary: string;
|
|
3902
|
-
/** Secondary/neutral accent color (hex). Used for less prominent actions and secondary badges/buttons. @default "#6b7280" */
|
|
3903
|
-
secondary: string;
|
|
3904
|
-
/** Tertiary accent color (hex), used for a third level of emphasis (e.g. alternate badges, chart accents). @default "#8b5cf6" */
|
|
3905
|
-
ternary: string;
|
|
3906
|
-
/** Semantic color for destructive/error states (hex): delete buttons, error badges, invalid form fields. @default "#ef4444" */
|
|
3907
|
-
danger: string;
|
|
3908
|
-
/** Semantic color for success/confirmation states (hex): success badges, completed steps, positive stats. @default "#22c55e" */
|
|
3909
|
-
success: string;
|
|
3910
|
-
/** Semantic color for informational states (hex): info banners/badges, neutral notices. @default "#3b82f6" */
|
|
3911
|
-
info: string;
|
|
3912
|
-
/** Semantic color for alert/caution states (hex), distinct from `warning`. Used by components that need a stronger visual cue than warning. @default "#f97316" */
|
|
3913
|
-
alert: string;
|
|
3914
|
-
/** Semantic color for warning states (hex): warning badges/banners, pending states. @default "#eab308" */
|
|
3915
|
-
warning: string;
|
|
3916
|
-
/** Colors for the app shell's sidebar and top navbar (ITSidebar, ITNavbar, ITTopbar, ITLayout). */
|
|
3917
|
-
layout: {
|
|
3918
|
-
/** Background color of the sidebar (hex). @default "#ffffff" */
|
|
3919
|
-
sidebarBg: string;
|
|
3920
|
-
/** Text/icon color used on the sidebar. @default "#334155" */
|
|
3921
|
-
sidebarText: string;
|
|
3922
|
-
/** Background color of the top navigation bar (hex). @default "#ffffff" */
|
|
3923
|
-
navbarBg: string;
|
|
3924
|
-
/** Text/icon color used on the top navigation bar. @default "#1e293b" */
|
|
3925
|
-
navbarText: string;
|
|
3926
|
-
};
|
|
3927
|
-
/** Colors for ITTable/ITDataTable/ITSearchTable header and rows. */
|
|
3928
|
-
table: {
|
|
3929
|
-
/** Background color of the table header row (hex). @default "#f8fafc" */
|
|
3930
|
-
headerBg: string;
|
|
3931
|
-
/** Text color of the table header row. @default "#334155" */
|
|
3932
|
-
headerText: string;
|
|
3933
|
-
/** Background color of table body rows (hex). @default "#ffffff" */
|
|
3934
|
-
rowBg: string;
|
|
3935
|
-
/** Text color of table body rows. @default "#1e293b" */
|
|
3936
|
-
rowText: string;
|
|
3937
|
-
/** Background color applied to a table body row while the pointer is over it (hex). @default "#f1f5f9" */
|
|
3938
|
-
rowHover: string;
|
|
3939
|
-
};
|
|
3940
|
-
}
|
|
3941
|
-
interface ITThemeProviderProps {
|
|
3942
|
-
/** Partial palette overrides merged (deep merge) with the default theme. Supports primary, secondary, ternary, danger, success, info, alert, warning, layout, and table colors. Persisted to `localStorage` under `"it-theme-palette"` once the user edits it via the FAB/drawer. */
|
|
3943
|
-
theme?: Partial<ITThemePalette$1>;
|
|
3944
|
-
/** The subtree that receives the theme context and CSS variables. Must wrap your entire app (or the portion that uses AXZY UI System components) once, near the root. */
|
|
3945
|
-
children: React.ReactNode;
|
|
3946
|
-
/** Whether to render the floating action button (bottom-right) that opens the live theme-designer drawer, letting end users tweak colors and persist their choice. Set to `false` to hide the FAB in production and only theme via the `theme` prop. @default true */
|
|
3947
|
-
showFab?: boolean;
|
|
3948
|
-
/** Global density/compactness factor. Values below 1 shrink the UI's base sizes, above 1 grow them (e.g. `0.8` = 80%: smaller fonts, paddings, gaps, spacing). Applied by scaling the root font-size so every `rem`-based token in Tailwind components compacts together, keeping the layout fluid (no empty margins, unlike CSS zoom). Clamped to `0.5`–`1.5`. @default 1 */
|
|
3949
|
-
density?: number;
|
|
3950
|
-
/** Global border radius in pixels applied to the entire rounding scale (`rounded-sm/md/lg/xl/2xl/…`). `radius={2}` ⇒ 2px corners (near-square), `8` ⇒ 8px, `0` ⇒ completely square. Every `rounded-*` utility resolves to a `--radius-*` variable, so this reshapes inputs, buttons, cards, dialogs and tables system-wide with no per-component changes. @default 0 (no override, Tailwind defaults) */
|
|
3951
|
-
radius?: number;
|
|
3952
|
-
/** Global shadow strength level. `0` ⇒ no shadows, `1` ⇒ subtle, `2` ⇒ default current look, `3` ⇒ pronounced. Shadows are injected as `--shadow-*`/`.shadow-*` overrides so cards, dropdowns and dialogs follow the level. @default 2 (keeps current default when omitted) */
|
|
3953
|
-
shadow?: number;
|
|
3954
|
-
}
|
|
3955
|
-
|
|
3956
3941
|
type ColorScale = {
|
|
3957
3942
|
50: string;
|
|
3958
3943
|
100: string;
|
|
@@ -3966,7 +3951,13 @@ type ColorScale = {
|
|
|
3966
3951
|
900: string;
|
|
3967
3952
|
950?: string;
|
|
3968
3953
|
};
|
|
3969
|
-
|
|
3954
|
+
/**
|
|
3955
|
+
* Visual language of the whole system.
|
|
3956
|
+
* - `"soft"`: soft depth — floating cards, tinted shadows, glass sidebar and top bar (default).
|
|
3957
|
+
* - `"flat"`: flat surfaces — hairline borders instead of shadows, plain sidebar and top bar, compact page headers.
|
|
3958
|
+
*/
|
|
3959
|
+
type ITThemeAppearance = "soft" | "flat";
|
|
3960
|
+
interface ITThemePalette$1 {
|
|
3970
3961
|
/** Main brand accent color (hex). Drives primary buttons, active nav items, focus rings, links, and the `--color-primary` CSS variable. @default "#06b6d4" */
|
|
3971
3962
|
primary: string;
|
|
3972
3963
|
/** Secondary/neutral accent color (hex). Used for less prominent actions and secondary badges/buttons. @default "#6b7280" */
|
|
@@ -4090,21 +4081,82 @@ interface ITThemeConfig {
|
|
|
4090
4081
|
};
|
|
4091
4082
|
}
|
|
4092
4083
|
|
|
4084
|
+
interface ITThemePalette {
|
|
4085
|
+
/** Main brand accent color (hex). Drives primary buttons, active nav items, focus rings, links, and the `--color-primary` CSS variable. @default "#06b6d4" */
|
|
4086
|
+
primary: string;
|
|
4087
|
+
/** Secondary/neutral accent color (hex). Used for less prominent actions and secondary badges/buttons. @default "#6b7280" */
|
|
4088
|
+
secondary: string;
|
|
4089
|
+
/** Tertiary accent color (hex), used for a third level of emphasis (e.g. alternate badges, chart accents). @default "#8b5cf6" */
|
|
4090
|
+
ternary: string;
|
|
4091
|
+
/** Semantic color for destructive/error states (hex): delete buttons, error badges, invalid form fields. @default "#ef4444" */
|
|
4092
|
+
danger: string;
|
|
4093
|
+
/** Semantic color for success/confirmation states (hex): success badges, completed steps, positive stats. @default "#22c55e" */
|
|
4094
|
+
success: string;
|
|
4095
|
+
/** Semantic color for informational states (hex): info banners/badges, neutral notices. @default "#3b82f6" */
|
|
4096
|
+
info: string;
|
|
4097
|
+
/** Semantic color for alert/caution states (hex), distinct from `warning`. Used by components that need a stronger visual cue than warning. @default "#f97316" */
|
|
4098
|
+
alert: string;
|
|
4099
|
+
/** Semantic color for warning states (hex): warning badges/banners, pending states. @default "#eab308" */
|
|
4100
|
+
warning: string;
|
|
4101
|
+
/** Colors for the app shell's sidebar and top navbar (ITSidebar, ITNavbar, ITTopbar, ITLayout). */
|
|
4102
|
+
layout: {
|
|
4103
|
+
/** Background color of the sidebar (hex). @default "#ffffff" */
|
|
4104
|
+
sidebarBg: string;
|
|
4105
|
+
/** Text/icon color used on the sidebar. @default "#334155" */
|
|
4106
|
+
sidebarText: string;
|
|
4107
|
+
/** Background color of the top navigation bar (hex). @default "#ffffff" */
|
|
4108
|
+
navbarBg: string;
|
|
4109
|
+
/** Text/icon color used on the top navigation bar. @default "#1e293b" */
|
|
4110
|
+
navbarText: string;
|
|
4111
|
+
};
|
|
4112
|
+
/** Colors for ITTable/ITDataTable/ITSearchTable header and rows. */
|
|
4113
|
+
table: {
|
|
4114
|
+
/** Background color of the table header row (hex). @default "#f8fafc" */
|
|
4115
|
+
headerBg: string;
|
|
4116
|
+
/** Text color of the table header row. @default "#334155" */
|
|
4117
|
+
headerText: string;
|
|
4118
|
+
/** Background color of table body rows (hex). @default "#ffffff" */
|
|
4119
|
+
rowBg: string;
|
|
4120
|
+
/** Text color of table body rows. @default "#1e293b" */
|
|
4121
|
+
rowText: string;
|
|
4122
|
+
/** Background color applied to a table body row while the pointer is over it (hex). @default "#f1f5f9" */
|
|
4123
|
+
rowHover: string;
|
|
4124
|
+
};
|
|
4125
|
+
}
|
|
4126
|
+
interface ITThemeProviderProps {
|
|
4127
|
+
/** Partial palette overrides merged (deep merge) with the default theme. Supports primary, secondary, ternary, danger, success, info, alert, warning, layout, and table colors. Persisted to `localStorage` under `"it-theme-palette"` once the user edits it via the FAB/drawer. */
|
|
4128
|
+
theme?: Partial<ITThemePalette>;
|
|
4129
|
+
/** The subtree that receives the theme context and CSS variables. Must wrap your entire app (or the portion that uses AXZY UI System components) once, near the root. */
|
|
4130
|
+
children: React.ReactNode;
|
|
4131
|
+
/** Whether to render the floating action button (bottom-right) that opens the live theme-designer drawer, letting end users tweak colors and persist their choice. Set to `false` to hide the FAB in production and only theme via the `theme` prop. @default true */
|
|
4132
|
+
showFab?: boolean;
|
|
4133
|
+
/** Global density/compactness factor. Values below 1 shrink the UI's base sizes, above 1 grow them (e.g. `0.8` = 80%: smaller fonts, paddings, gaps, spacing). Applied by scaling the root font-size so every `rem`-based token in Tailwind components compacts together, keeping the layout fluid (no empty margins, unlike CSS zoom). Clamped to `0.5`–`1.5`. @default 1 */
|
|
4134
|
+
density?: number;
|
|
4135
|
+
/** Global border radius in pixels applied to the entire rounding scale (`rounded-sm/md/lg/xl/2xl/…`). `radius={2}` ⇒ 2px corners (near-square), `8` ⇒ 8px, `0` ⇒ completely square. Every `rounded-*` utility resolves to a `--radius-*` variable, so this reshapes inputs, buttons, cards, dialogs and tables system-wide with no per-component changes. @default 0 (no override, Tailwind defaults) */
|
|
4136
|
+
radius?: number;
|
|
4137
|
+
/** Global shadow strength level. `0` ⇒ no shadows, `1` ⇒ subtle, `2` ⇒ default current look, `3` ⇒ pronounced. Shadows are injected as `--shadow-*`/`.shadow-*` overrides so cards, dropdowns and dialogs follow the level. @default 2 (keeps current default when omitted) */
|
|
4138
|
+
shadow?: number;
|
|
4139
|
+
/** Visual language of the whole system. `"soft"` keeps the current look (floating cards, tinted shadows, glass sidebar/top bar). `"flat"` switches the app shell and surfaces to flat ones: hairline borders instead of shadows on `ITCard`, a plain `ITSidebar` (no glow, no accent bar, narrower), a plain `ITTopBar` (no shadow, initials avatar) and a compact `ITPageHeader` without the icon tile. It also sets `data-it-appearance` on `<html>` so app CSS can follow it. Combine it with `shadow` and `radius` to finish the look. @default "soft" */
|
|
4140
|
+
appearance?: ITThemeAppearance;
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4093
4143
|
/**
|
|
4094
4144
|
* Contexto de theming compartido por ITThemeProvider y componentes que lo
|
|
4095
4145
|
* consumen (p.ej. ITFormHeader). Vive en @/theme para que ninguna capa
|
|
4096
4146
|
* atómica dependa de otra a través del provider.
|
|
4097
4147
|
*/
|
|
4098
4148
|
interface ITThemeContextType {
|
|
4099
|
-
palette: ITThemePalette;
|
|
4100
|
-
colors: ITThemePalette;
|
|
4101
|
-
setPalette: (newPalette: ITThemePalette) => void;
|
|
4149
|
+
palette: ITThemePalette$1;
|
|
4150
|
+
colors: ITThemePalette$1;
|
|
4151
|
+
setPalette: (newPalette: ITThemePalette$1) => void;
|
|
4102
4152
|
updateColor: (key: string, value: string) => void;
|
|
4103
4153
|
resetTheme: () => void;
|
|
4104
|
-
applyPreset: (colors: ITThemePalette) => void;
|
|
4154
|
+
applyPreset: (colors: ITThemePalette$1) => void;
|
|
4105
4155
|
resolvedTheme: "light" | "dark";
|
|
4106
4156
|
darkModeMode: "light" | "dark" | "system";
|
|
4107
4157
|
setDarkModeMode: (mode: "light" | "dark" | "system") => void;
|
|
4158
|
+
/** Visual language chosen on the provider (`"soft"` unless `appearance` says otherwise). */
|
|
4159
|
+
appearance: ITThemeAppearance;
|
|
4108
4160
|
}
|
|
4109
4161
|
declare const useITTheme: () => ITThemeContextType;
|
|
4110
4162
|
/**
|
|
@@ -4112,6 +4164,11 @@ declare const useITTheme: () => ITThemeContextType;
|
|
|
4112
4164
|
* si se usa fuera de ITThemeProvider (no lanza error).
|
|
4113
4165
|
*/
|
|
4114
4166
|
declare const useITThemeSafe: () => ITThemeContextType | undefined;
|
|
4167
|
+
/**
|
|
4168
|
+
* `true` cuando el provider pide el lenguaje visual plano (`appearance="flat"`).
|
|
4169
|
+
* Fuera de un ITThemeProvider devuelve `false` (aspecto por defecto).
|
|
4170
|
+
*/
|
|
4171
|
+
declare const useITFlatAppearance: () => boolean;
|
|
4115
4172
|
|
|
4116
4173
|
/**
|
|
4117
4174
|
* Root theme context provider that injects CSS custom properties for all components,
|
|
@@ -4127,7 +4184,7 @@ declare const useITThemeSafe: () => ITThemeContextType | undefined;
|
|
|
4127
4184
|
* <Dashboard />
|
|
4128
4185
|
* </ITThemeProvider>
|
|
4129
4186
|
*/
|
|
4130
|
-
declare function ITThemeProvider({ children, theme, showFab, density, radius, shadow, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
4187
|
+
declare function ITThemeProvider({ children, theme, showFab, density, radius, shadow, appearance, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
4131
4188
|
|
|
4132
4189
|
interface ITTimePickerProps {
|
|
4133
4190
|
/** Form field name attribute and key for the change event. */
|
|
@@ -4196,10 +4253,10 @@ declare const isLightColor: (hex: string) => boolean;
|
|
|
4196
4253
|
/**
|
|
4197
4254
|
* Traduce un valor de color de CSS (hexadecimal o variable var(--...)) a hexadecimal absoluto.
|
|
4198
4255
|
*/
|
|
4199
|
-
declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette
|
|
4256
|
+
declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette, isDarkMode?: boolean) => string;
|
|
4200
4257
|
/**
|
|
4201
4258
|
* Obtiene la clase de color de texto óptima (blanca o gris oscuro) basado en el fondo.
|
|
4202
4259
|
*/
|
|
4203
|
-
declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette
|
|
4260
|
+
declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette, isDarkMode?: boolean) => "text-white" | "text-slate-800";
|
|
4204
4261
|
|
|
4205
|
-
export { type Column, type ColumnFilterMode, type ColumnFilterValue, type ColumnFilters, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAccordion, type ITAccordionItem, type ITAccordionProps, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITChip, ITChipInput, type ITChipInputProps, type ITChipProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropdownMenu, type ITDropdownMenuItem, type ITDropdownMenuProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITField, type ITFieldProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, ITInputNumber, type ITInputNumberProps, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITMaskedInput, type ITMaskedInputProps, ITMultiSelect, type ITMultiSelectOption, type ITMultiSelectProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, type ITNavigationSubItemEntry, type ITNavigationSubItemGroup, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarNotification, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type
|
|
4262
|
+
export { type Column, type ColumnFilterMode, type ColumnFilterValue, type ColumnFilters, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAccordion, type ITAccordionItem, type ITAccordionProps, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITChip, ITChipInput, type ITChipInputProps, type ITChipProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropdownMenu, type ITDropdownMenuItem, type ITDropdownMenuProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITField, type ITFieldProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, ITInputNumber, type ITInputNumberProps, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITMaskedInput, type ITMaskedInputProps, ITMultiSelect, type ITMultiSelectOption, type ITMultiSelectProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, type ITNavigationSubItemEntry, type ITNavigationSubItemGroup, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarBrand, type ITSidebarNotification, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type ITThemeAppearance, type ITThemeConfig, type ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, ITWysiwyg, type ITWysiwygProps, type TableDensity, UploadStatus, type UseTableStateOptions, type UseTableStateResult, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useClickOutside, useDebouncedSearch, useEditableRow, useFloatingPanel, useITFlatAppearance, useITTheme, useITThemeSafe, useTableState };
|
package/dist/index.d.ts
CHANGED
|
@@ -3084,6 +3084,16 @@ interface ITSidebarNotification {
|
|
|
3084
3084
|
*/
|
|
3085
3085
|
badgeProps?: ITBadgetProps;
|
|
3086
3086
|
}
|
|
3087
|
+
/**
|
|
3088
|
+
* Brand block pinned at the top of {@link ITSidebarProps}. The logo stays
|
|
3089
|
+
* visible while the rail is collapsed; the text only shows when expanded.
|
|
3090
|
+
*/
|
|
3091
|
+
interface ITSidebarBrand {
|
|
3092
|
+
/** Logo element (e.g. an `<img>` or an SVG mark). Always visible. */
|
|
3093
|
+
logo?: React.ReactNode;
|
|
3094
|
+
/** Wordmark rendered next to the logo. Hidden while the sidebar is collapsed. */
|
|
3095
|
+
text?: string;
|
|
3096
|
+
}
|
|
3087
3097
|
/** Props for the ITSidebar vertical navigation component. */
|
|
3088
3098
|
interface ITSidebarProps {
|
|
3089
3099
|
/** Navigation structure: top-level items with optional sub-items. */
|
|
@@ -3113,6 +3123,13 @@ interface ITSidebarProps {
|
|
|
3113
3123
|
* while collapsed, showing just the icon and the counter.
|
|
3114
3124
|
*/
|
|
3115
3125
|
notification?: ITSidebarNotification;
|
|
3126
|
+
/**
|
|
3127
|
+
* Brand (logo + wordmark) pinned at the very top of the sidebar, in a 64px
|
|
3128
|
+
* row that lines up with the top bar. Unlike {@link ITSidebarProps.header}
|
|
3129
|
+
* the logo stays visible while collapsed. `ITLayout` fills it from
|
|
3130
|
+
* `topBar.logo` / `topBar.logoText` when `sidebarFullHeight` is set.
|
|
3131
|
+
*/
|
|
3132
|
+
brand?: ITSidebarBrand;
|
|
3116
3133
|
}
|
|
3117
3134
|
|
|
3118
3135
|
/**
|
|
@@ -3144,7 +3161,7 @@ interface ITSidebarProps {
|
|
|
3144
3161
|
* />
|
|
3145
3162
|
* ```
|
|
3146
3163
|
*/
|
|
3147
|
-
declare function ITSidebar({ navigationItems, isCollapsed, className, visibleOnMobile, onItemClick, onSubItemClick, subitemConnector, header, notification, }: ITSidebarProps): react_jsx_runtime.JSX.Element;
|
|
3164
|
+
declare function ITSidebar({ navigationItems, isCollapsed, className, visibleOnMobile, onItemClick, onSubItemClick, subitemConnector, header, notification, brand, }: ITSidebarProps): react_jsx_runtime.JSX.Element;
|
|
3148
3165
|
|
|
3149
3166
|
/** Skeleton shape variant: "text" (line) | "circular" (avatar/icon) | "rectangular" (card/image). */
|
|
3150
3167
|
type SkeletonVariant = "text" | "circular" | "rectangular";
|
|
@@ -3765,6 +3782,13 @@ interface ITTopBarProps {
|
|
|
3765
3782
|
showMobileMenuButton?: boolean;
|
|
3766
3783
|
/** Callback fired when the mobile menu toggle button is clicked. */
|
|
3767
3784
|
onToggleMobileMenu?: () => void;
|
|
3785
|
+
/**
|
|
3786
|
+
* Hides the logo and `logoText` from the `lg` breakpoint up and left-aligns
|
|
3787
|
+
* `centerContent`. Use it when the brand already lives somewhere else (e.g.
|
|
3788
|
+
* at the top of a full-height sidebar); `ITLayout` sets it for you when
|
|
3789
|
+
* `sidebarFullHeight` is on. Below `lg` the logo is still shown. @default false
|
|
3790
|
+
*/
|
|
3791
|
+
hideBrandOnDesktop?: boolean;
|
|
3768
3792
|
}
|
|
3769
3793
|
|
|
3770
3794
|
interface ITLayoutProps {
|
|
@@ -3778,6 +3802,14 @@ interface ITLayoutProps {
|
|
|
3778
3802
|
className?: string;
|
|
3779
3803
|
/** Additional CSS classes for the content container */
|
|
3780
3804
|
contentClassName?: string;
|
|
3805
|
+
/**
|
|
3806
|
+
* App-shell arrangement. `false` (default): the top bar spans the full width
|
|
3807
|
+
* and the sidebar sits below it. `true`: the sidebar spans the full viewport
|
|
3808
|
+
* height and shows the brand (`topBar.logo` + `topBar.logoText`) at its top,
|
|
3809
|
+
* while the top bar covers only the content column and drops the logo from
|
|
3810
|
+
* the `lg` breakpoint up. Mobile is unchanged. @default false
|
|
3811
|
+
*/
|
|
3812
|
+
sidebarFullHeight?: boolean;
|
|
3781
3813
|
}
|
|
3782
3814
|
|
|
3783
3815
|
/**
|
|
@@ -3802,8 +3834,18 @@ interface ITLayoutProps {
|
|
|
3802
3834
|
* >
|
|
3803
3835
|
* <SettingsPage />
|
|
3804
3836
|
* </ITLayout>
|
|
3837
|
+
*
|
|
3838
|
+
* @example
|
|
3839
|
+
* // Full-height sidebar with the brand on top; the top bar covers only the content.
|
|
3840
|
+
* <ITLayout
|
|
3841
|
+
* sidebarFullHeight
|
|
3842
|
+
* topBar={{ logo: <Logo />, logoText: "Acme", centerContent: <SearchBox /> }}
|
|
3843
|
+
* sidebar={{ navigationItems, isCollapsed: false }}
|
|
3844
|
+
* >
|
|
3845
|
+
* <Dashboard />
|
|
3846
|
+
* </ITLayout>
|
|
3805
3847
|
*/
|
|
3806
|
-
declare function ITLayout({ topBar, sidebar, children, className, contentClassName, }: ITLayoutProps): react_jsx_runtime.JSX.Element;
|
|
3848
|
+
declare function ITLayout({ topBar, sidebar, children, className, contentClassName, sidebarFullHeight, }: ITLayoutProps): react_jsx_runtime.JSX.Element;
|
|
3807
3849
|
|
|
3808
3850
|
type LoaderSize = "sm" | "md" | "lg" | "xl";
|
|
3809
3851
|
type LoaderVariant = "spinner" | "dots" | "bar" | "pulse";
|
|
@@ -3896,63 +3938,6 @@ interface ITStepperProps {
|
|
|
3896
3938
|
*/
|
|
3897
3939
|
declare function ITStepper({ steps, currentStep, onFinish, onStepChange, allowClickToJump, useIcons, disableNext, containerClassName, stepClassName, scrollableContent, maxContentHeight, color, }: ITStepperProps): react_jsx_runtime.JSX.Element;
|
|
3898
3940
|
|
|
3899
|
-
interface ITThemePalette$1 {
|
|
3900
|
-
/** Main brand accent color (hex). Drives primary buttons, active nav items, focus rings, links, and the `--color-primary` CSS variable. @default "#06b6d4" */
|
|
3901
|
-
primary: string;
|
|
3902
|
-
/** Secondary/neutral accent color (hex). Used for less prominent actions and secondary badges/buttons. @default "#6b7280" */
|
|
3903
|
-
secondary: string;
|
|
3904
|
-
/** Tertiary accent color (hex), used for a third level of emphasis (e.g. alternate badges, chart accents). @default "#8b5cf6" */
|
|
3905
|
-
ternary: string;
|
|
3906
|
-
/** Semantic color for destructive/error states (hex): delete buttons, error badges, invalid form fields. @default "#ef4444" */
|
|
3907
|
-
danger: string;
|
|
3908
|
-
/** Semantic color for success/confirmation states (hex): success badges, completed steps, positive stats. @default "#22c55e" */
|
|
3909
|
-
success: string;
|
|
3910
|
-
/** Semantic color for informational states (hex): info banners/badges, neutral notices. @default "#3b82f6" */
|
|
3911
|
-
info: string;
|
|
3912
|
-
/** Semantic color for alert/caution states (hex), distinct from `warning`. Used by components that need a stronger visual cue than warning. @default "#f97316" */
|
|
3913
|
-
alert: string;
|
|
3914
|
-
/** Semantic color for warning states (hex): warning badges/banners, pending states. @default "#eab308" */
|
|
3915
|
-
warning: string;
|
|
3916
|
-
/** Colors for the app shell's sidebar and top navbar (ITSidebar, ITNavbar, ITTopbar, ITLayout). */
|
|
3917
|
-
layout: {
|
|
3918
|
-
/** Background color of the sidebar (hex). @default "#ffffff" */
|
|
3919
|
-
sidebarBg: string;
|
|
3920
|
-
/** Text/icon color used on the sidebar. @default "#334155" */
|
|
3921
|
-
sidebarText: string;
|
|
3922
|
-
/** Background color of the top navigation bar (hex). @default "#ffffff" */
|
|
3923
|
-
navbarBg: string;
|
|
3924
|
-
/** Text/icon color used on the top navigation bar. @default "#1e293b" */
|
|
3925
|
-
navbarText: string;
|
|
3926
|
-
};
|
|
3927
|
-
/** Colors for ITTable/ITDataTable/ITSearchTable header and rows. */
|
|
3928
|
-
table: {
|
|
3929
|
-
/** Background color of the table header row (hex). @default "#f8fafc" */
|
|
3930
|
-
headerBg: string;
|
|
3931
|
-
/** Text color of the table header row. @default "#334155" */
|
|
3932
|
-
headerText: string;
|
|
3933
|
-
/** Background color of table body rows (hex). @default "#ffffff" */
|
|
3934
|
-
rowBg: string;
|
|
3935
|
-
/** Text color of table body rows. @default "#1e293b" */
|
|
3936
|
-
rowText: string;
|
|
3937
|
-
/** Background color applied to a table body row while the pointer is over it (hex). @default "#f1f5f9" */
|
|
3938
|
-
rowHover: string;
|
|
3939
|
-
};
|
|
3940
|
-
}
|
|
3941
|
-
interface ITThemeProviderProps {
|
|
3942
|
-
/** Partial palette overrides merged (deep merge) with the default theme. Supports primary, secondary, ternary, danger, success, info, alert, warning, layout, and table colors. Persisted to `localStorage` under `"it-theme-palette"` once the user edits it via the FAB/drawer. */
|
|
3943
|
-
theme?: Partial<ITThemePalette$1>;
|
|
3944
|
-
/** The subtree that receives the theme context and CSS variables. Must wrap your entire app (or the portion that uses AXZY UI System components) once, near the root. */
|
|
3945
|
-
children: React.ReactNode;
|
|
3946
|
-
/** Whether to render the floating action button (bottom-right) that opens the live theme-designer drawer, letting end users tweak colors and persist their choice. Set to `false` to hide the FAB in production and only theme via the `theme` prop. @default true */
|
|
3947
|
-
showFab?: boolean;
|
|
3948
|
-
/** Global density/compactness factor. Values below 1 shrink the UI's base sizes, above 1 grow them (e.g. `0.8` = 80%: smaller fonts, paddings, gaps, spacing). Applied by scaling the root font-size so every `rem`-based token in Tailwind components compacts together, keeping the layout fluid (no empty margins, unlike CSS zoom). Clamped to `0.5`–`1.5`. @default 1 */
|
|
3949
|
-
density?: number;
|
|
3950
|
-
/** Global border radius in pixels applied to the entire rounding scale (`rounded-sm/md/lg/xl/2xl/…`). `radius={2}` ⇒ 2px corners (near-square), `8` ⇒ 8px, `0` ⇒ completely square. Every `rounded-*` utility resolves to a `--radius-*` variable, so this reshapes inputs, buttons, cards, dialogs and tables system-wide with no per-component changes. @default 0 (no override, Tailwind defaults) */
|
|
3951
|
-
radius?: number;
|
|
3952
|
-
/** Global shadow strength level. `0` ⇒ no shadows, `1` ⇒ subtle, `2` ⇒ default current look, `3` ⇒ pronounced. Shadows are injected as `--shadow-*`/`.shadow-*` overrides so cards, dropdowns and dialogs follow the level. @default 2 (keeps current default when omitted) */
|
|
3953
|
-
shadow?: number;
|
|
3954
|
-
}
|
|
3955
|
-
|
|
3956
3941
|
type ColorScale = {
|
|
3957
3942
|
50: string;
|
|
3958
3943
|
100: string;
|
|
@@ -3966,7 +3951,13 @@ type ColorScale = {
|
|
|
3966
3951
|
900: string;
|
|
3967
3952
|
950?: string;
|
|
3968
3953
|
};
|
|
3969
|
-
|
|
3954
|
+
/**
|
|
3955
|
+
* Visual language of the whole system.
|
|
3956
|
+
* - `"soft"`: soft depth — floating cards, tinted shadows, glass sidebar and top bar (default).
|
|
3957
|
+
* - `"flat"`: flat surfaces — hairline borders instead of shadows, plain sidebar and top bar, compact page headers.
|
|
3958
|
+
*/
|
|
3959
|
+
type ITThemeAppearance = "soft" | "flat";
|
|
3960
|
+
interface ITThemePalette$1 {
|
|
3970
3961
|
/** Main brand accent color (hex). Drives primary buttons, active nav items, focus rings, links, and the `--color-primary` CSS variable. @default "#06b6d4" */
|
|
3971
3962
|
primary: string;
|
|
3972
3963
|
/** Secondary/neutral accent color (hex). Used for less prominent actions and secondary badges/buttons. @default "#6b7280" */
|
|
@@ -4090,21 +4081,82 @@ interface ITThemeConfig {
|
|
|
4090
4081
|
};
|
|
4091
4082
|
}
|
|
4092
4083
|
|
|
4084
|
+
interface ITThemePalette {
|
|
4085
|
+
/** Main brand accent color (hex). Drives primary buttons, active nav items, focus rings, links, and the `--color-primary` CSS variable. @default "#06b6d4" */
|
|
4086
|
+
primary: string;
|
|
4087
|
+
/** Secondary/neutral accent color (hex). Used for less prominent actions and secondary badges/buttons. @default "#6b7280" */
|
|
4088
|
+
secondary: string;
|
|
4089
|
+
/** Tertiary accent color (hex), used for a third level of emphasis (e.g. alternate badges, chart accents). @default "#8b5cf6" */
|
|
4090
|
+
ternary: string;
|
|
4091
|
+
/** Semantic color for destructive/error states (hex): delete buttons, error badges, invalid form fields. @default "#ef4444" */
|
|
4092
|
+
danger: string;
|
|
4093
|
+
/** Semantic color for success/confirmation states (hex): success badges, completed steps, positive stats. @default "#22c55e" */
|
|
4094
|
+
success: string;
|
|
4095
|
+
/** Semantic color for informational states (hex): info banners/badges, neutral notices. @default "#3b82f6" */
|
|
4096
|
+
info: string;
|
|
4097
|
+
/** Semantic color for alert/caution states (hex), distinct from `warning`. Used by components that need a stronger visual cue than warning. @default "#f97316" */
|
|
4098
|
+
alert: string;
|
|
4099
|
+
/** Semantic color for warning states (hex): warning badges/banners, pending states. @default "#eab308" */
|
|
4100
|
+
warning: string;
|
|
4101
|
+
/** Colors for the app shell's sidebar and top navbar (ITSidebar, ITNavbar, ITTopbar, ITLayout). */
|
|
4102
|
+
layout: {
|
|
4103
|
+
/** Background color of the sidebar (hex). @default "#ffffff" */
|
|
4104
|
+
sidebarBg: string;
|
|
4105
|
+
/** Text/icon color used on the sidebar. @default "#334155" */
|
|
4106
|
+
sidebarText: string;
|
|
4107
|
+
/** Background color of the top navigation bar (hex). @default "#ffffff" */
|
|
4108
|
+
navbarBg: string;
|
|
4109
|
+
/** Text/icon color used on the top navigation bar. @default "#1e293b" */
|
|
4110
|
+
navbarText: string;
|
|
4111
|
+
};
|
|
4112
|
+
/** Colors for ITTable/ITDataTable/ITSearchTable header and rows. */
|
|
4113
|
+
table: {
|
|
4114
|
+
/** Background color of the table header row (hex). @default "#f8fafc" */
|
|
4115
|
+
headerBg: string;
|
|
4116
|
+
/** Text color of the table header row. @default "#334155" */
|
|
4117
|
+
headerText: string;
|
|
4118
|
+
/** Background color of table body rows (hex). @default "#ffffff" */
|
|
4119
|
+
rowBg: string;
|
|
4120
|
+
/** Text color of table body rows. @default "#1e293b" */
|
|
4121
|
+
rowText: string;
|
|
4122
|
+
/** Background color applied to a table body row while the pointer is over it (hex). @default "#f1f5f9" */
|
|
4123
|
+
rowHover: string;
|
|
4124
|
+
};
|
|
4125
|
+
}
|
|
4126
|
+
interface ITThemeProviderProps {
|
|
4127
|
+
/** Partial palette overrides merged (deep merge) with the default theme. Supports primary, secondary, ternary, danger, success, info, alert, warning, layout, and table colors. Persisted to `localStorage` under `"it-theme-palette"` once the user edits it via the FAB/drawer. */
|
|
4128
|
+
theme?: Partial<ITThemePalette>;
|
|
4129
|
+
/** The subtree that receives the theme context and CSS variables. Must wrap your entire app (or the portion that uses AXZY UI System components) once, near the root. */
|
|
4130
|
+
children: React.ReactNode;
|
|
4131
|
+
/** Whether to render the floating action button (bottom-right) that opens the live theme-designer drawer, letting end users tweak colors and persist their choice. Set to `false` to hide the FAB in production and only theme via the `theme` prop. @default true */
|
|
4132
|
+
showFab?: boolean;
|
|
4133
|
+
/** Global density/compactness factor. Values below 1 shrink the UI's base sizes, above 1 grow them (e.g. `0.8` = 80%: smaller fonts, paddings, gaps, spacing). Applied by scaling the root font-size so every `rem`-based token in Tailwind components compacts together, keeping the layout fluid (no empty margins, unlike CSS zoom). Clamped to `0.5`–`1.5`. @default 1 */
|
|
4134
|
+
density?: number;
|
|
4135
|
+
/** Global border radius in pixels applied to the entire rounding scale (`rounded-sm/md/lg/xl/2xl/…`). `radius={2}` ⇒ 2px corners (near-square), `8` ⇒ 8px, `0` ⇒ completely square. Every `rounded-*` utility resolves to a `--radius-*` variable, so this reshapes inputs, buttons, cards, dialogs and tables system-wide with no per-component changes. @default 0 (no override, Tailwind defaults) */
|
|
4136
|
+
radius?: number;
|
|
4137
|
+
/** Global shadow strength level. `0` ⇒ no shadows, `1` ⇒ subtle, `2` ⇒ default current look, `3` ⇒ pronounced. Shadows are injected as `--shadow-*`/`.shadow-*` overrides so cards, dropdowns and dialogs follow the level. @default 2 (keeps current default when omitted) */
|
|
4138
|
+
shadow?: number;
|
|
4139
|
+
/** Visual language of the whole system. `"soft"` keeps the current look (floating cards, tinted shadows, glass sidebar/top bar). `"flat"` switches the app shell and surfaces to flat ones: hairline borders instead of shadows on `ITCard`, a plain `ITSidebar` (no glow, no accent bar, narrower), a plain `ITTopBar` (no shadow, initials avatar) and a compact `ITPageHeader` without the icon tile. It also sets `data-it-appearance` on `<html>` so app CSS can follow it. Combine it with `shadow` and `radius` to finish the look. @default "soft" */
|
|
4140
|
+
appearance?: ITThemeAppearance;
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4093
4143
|
/**
|
|
4094
4144
|
* Contexto de theming compartido por ITThemeProvider y componentes que lo
|
|
4095
4145
|
* consumen (p.ej. ITFormHeader). Vive en @/theme para que ninguna capa
|
|
4096
4146
|
* atómica dependa de otra a través del provider.
|
|
4097
4147
|
*/
|
|
4098
4148
|
interface ITThemeContextType {
|
|
4099
|
-
palette: ITThemePalette;
|
|
4100
|
-
colors: ITThemePalette;
|
|
4101
|
-
setPalette: (newPalette: ITThemePalette) => void;
|
|
4149
|
+
palette: ITThemePalette$1;
|
|
4150
|
+
colors: ITThemePalette$1;
|
|
4151
|
+
setPalette: (newPalette: ITThemePalette$1) => void;
|
|
4102
4152
|
updateColor: (key: string, value: string) => void;
|
|
4103
4153
|
resetTheme: () => void;
|
|
4104
|
-
applyPreset: (colors: ITThemePalette) => void;
|
|
4154
|
+
applyPreset: (colors: ITThemePalette$1) => void;
|
|
4105
4155
|
resolvedTheme: "light" | "dark";
|
|
4106
4156
|
darkModeMode: "light" | "dark" | "system";
|
|
4107
4157
|
setDarkModeMode: (mode: "light" | "dark" | "system") => void;
|
|
4158
|
+
/** Visual language chosen on the provider (`"soft"` unless `appearance` says otherwise). */
|
|
4159
|
+
appearance: ITThemeAppearance;
|
|
4108
4160
|
}
|
|
4109
4161
|
declare const useITTheme: () => ITThemeContextType;
|
|
4110
4162
|
/**
|
|
@@ -4112,6 +4164,11 @@ declare const useITTheme: () => ITThemeContextType;
|
|
|
4112
4164
|
* si se usa fuera de ITThemeProvider (no lanza error).
|
|
4113
4165
|
*/
|
|
4114
4166
|
declare const useITThemeSafe: () => ITThemeContextType | undefined;
|
|
4167
|
+
/**
|
|
4168
|
+
* `true` cuando el provider pide el lenguaje visual plano (`appearance="flat"`).
|
|
4169
|
+
* Fuera de un ITThemeProvider devuelve `false` (aspecto por defecto).
|
|
4170
|
+
*/
|
|
4171
|
+
declare const useITFlatAppearance: () => boolean;
|
|
4115
4172
|
|
|
4116
4173
|
/**
|
|
4117
4174
|
* Root theme context provider that injects CSS custom properties for all components,
|
|
@@ -4127,7 +4184,7 @@ declare const useITThemeSafe: () => ITThemeContextType | undefined;
|
|
|
4127
4184
|
* <Dashboard />
|
|
4128
4185
|
* </ITThemeProvider>
|
|
4129
4186
|
*/
|
|
4130
|
-
declare function ITThemeProvider({ children, theme, showFab, density, radius, shadow, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
4187
|
+
declare function ITThemeProvider({ children, theme, showFab, density, radius, shadow, appearance, }: ITThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
4131
4188
|
|
|
4132
4189
|
interface ITTimePickerProps {
|
|
4133
4190
|
/** Form field name attribute and key for the change event. */
|
|
@@ -4196,10 +4253,10 @@ declare const isLightColor: (hex: string) => boolean;
|
|
|
4196
4253
|
/**
|
|
4197
4254
|
* Traduce un valor de color de CSS (hexadecimal o variable var(--...)) a hexadecimal absoluto.
|
|
4198
4255
|
*/
|
|
4199
|
-
declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette
|
|
4256
|
+
declare const resolveCssColor: (colorStr: string, palette?: ITThemePalette, isDarkMode?: boolean) => string;
|
|
4200
4257
|
/**
|
|
4201
4258
|
* Obtiene la clase de color de texto óptima (blanca o gris oscuro) basado en el fondo.
|
|
4202
4259
|
*/
|
|
4203
|
-
declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette
|
|
4260
|
+
declare const getContrastTextColor: (bgColor: string, palette?: ITThemePalette, isDarkMode?: boolean) => "text-white" | "text-slate-800";
|
|
4204
4261
|
|
|
4205
|
-
export { type Column, type ColumnFilterMode, type ColumnFilterValue, type ColumnFilters, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAccordion, type ITAccordionItem, type ITAccordionProps, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITChip, ITChipInput, type ITChipInputProps, type ITChipProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropdownMenu, type ITDropdownMenuItem, type ITDropdownMenuProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITField, type ITFieldProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, ITInputNumber, type ITInputNumberProps, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITMaskedInput, type ITMaskedInputProps, ITMultiSelect, type ITMultiSelectOption, type ITMultiSelectProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, type ITNavigationSubItemEntry, type ITNavigationSubItemGroup, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarNotification, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type
|
|
4262
|
+
export { type Column, type ColumnFilterMode, type ColumnFilterValue, type ColumnFilters, type FieldConfig, type FieldConfigV2, FileTypeEnum, ITAccordion, type ITAccordionItem, type ITAccordionProps, ITAlert, type ITAlertProps, ITAvatar, type ITAvatarProps, ITBadget, type ITBadgetProps, type ITBreadcrumbItem, ITBreadcrumbs, type ITBreadcrumbsProps, ITButton, type ITButtonProps, ITCalendar, type ITCalendarProps, ITCard, type ITCardProps, ITCheckbox, type ITCheckboxProps, ITChip, ITChipInput, type ITChipInputProps, type ITChipProps, ITConfirmDialog, type ITConfirmDialogProps, ITDataTable, type ITDataTableFetchParams, type ITDataTableProps, type ITDataTableResponse, ITDatePicker, type ITDatePickerProps, ITDialog, type ITDialogProps, ITDivider, type ITDividerProps, ITDrawer, type ITDrawerProps, ITDropdownMenu, type ITDropdownMenuItem, type ITDropdownMenuProps, ITDropfile, ITEmptyState, type ITEmptyStateProps, ITField, type ITFieldProps, ITFlex, type ITFlexProps, ITFormBuilder, type ITFormBuilderProps, ITFormHeader, type ITFormHeaderProps, ITGrid, type ITGridProps, ITImage, type ITImageProps, ITInput, ITInputNumber, type ITInputNumberProps, type ITInputProps, ITLayout, type ITLayoutProps, ITLoader, type LoaderProps as ITLoaderProps, ITMaskedInput, type ITMaskedInputProps, ITMultiSelect, type ITMultiSelectOption, type ITMultiSelectProps, ITNavbar, type ITNavbarProps, type ITNavigationItem, type ITNavigationSubItem, type ITNavigationSubItemEntry, type ITNavigationSubItemGroup, ITPage, ITPageHeader, type ITPageHeaderProps, type ITPageProps, ITPagination, type ITPaginationProps, ITPopover, type ITPopoverProps, ITProgress, type ITProgressProps, ITRadioGroup, type ITRadioGroupProps, type ITRadioOption, ITSearchSelect, type ITSearchSelectProps, ITSearchTable, type ITSearchTableProps, ITSegmentedControl, type ITSegmentedControlProps, ITSelect, type ITSelectProps, ITSidebar, type ITSidebarBrand, type ITSidebarNotification, type ITSidebarProps, ITSkeleton, type ITSkeletonProps, ITSlideToggle, type ITSlideToggleProps, ITSlider, type ITSliderProps, ITStack, type ITStackProps, ITStatCard, type ITStatCardProps, ITStepper, type ITStepperProps, type ITTabItem, ITTable, type ITTableProps, ITTabs, type ITTabsProps, ITText, type ITTextProps, ITTextarea, type ITTextareaProps, type ITThemeAppearance, type ITThemeConfig, type ITThemePalette, ITThemeProvider, type ITThemeProviderProps, ITTimePicker, type ITTimePickerProps, ITToast, type ITToastProps, ITTripleFilter, type ITTripleFilterOption, type ITTripleFilterProps, ITWysiwyg, type ITWysiwygProps, type TableDensity, UploadStatus, type UseTableStateOptions, type UseTableStateResult, createValidationSchema, getContrastTextColor, isLightColor, resolveCssColor, useClickOutside, useDebouncedSearch, useEditableRow, useFloatingPanel, useITFlatAppearance, useITTheme, useITThemeSafe, useTableState };
|