@sincpro/mobile-ui 0.2.1 → 0.3.1
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/README.md +75 -20
- package/dist/Dialog/BottomSheet/BottomSheet.Root.d.ts +13 -9
- package/dist/Dialog/BottomSheet/BottomSheet.Root.js +6 -2
- package/dist/Dialog/Confirmation.context.d.ts +1 -1
- package/dist/Dialog/Dialog.ActionSheet.d.ts +17 -0
- package/dist/Dialog/Dialog.ActionSheet.js +16 -0
- package/dist/Dialog/Dialog.Confirmation.js +5 -1
- package/dist/Dialog/Dialog.EditValue.d.ts +1 -1
- package/dist/Dialog/Dialog.EditValue.js +1 -1
- package/dist/Dialog/Dialog.Sheet.d.ts +26 -0
- package/dist/Dialog/Dialog.Sheet.js +55 -0
- package/dist/Dialog/index.d.ts +9 -7
- package/dist/Dialog/index.js +2 -0
- package/dist/Display/Display.Accordion.d.ts +18 -0
- package/dist/Display/Display.Accordion.js +22 -0
- package/dist/Display/Display.AvatarGroup.d.ts +12 -0
- package/dist/Display/Display.AvatarGroup.js +23 -0
- package/dist/Display/Display.Badge.d.ts +1 -1
- package/dist/Display/Display.Card.d.ts +46 -0
- package/dist/Display/Display.Card.js +36 -0
- package/dist/Display/Display.Carousel.d.ts +13 -0
- package/dist/Display/Display.Carousel.js +19 -0
- package/dist/Display/Display.Chip.d.ts +105 -0
- package/dist/Display/Display.Chip.js +45 -0
- package/dist/Display/Display.CopyableText.d.ts +1 -1
- package/dist/Display/Display.CountRecords.d.ts +1 -1
- package/dist/Display/Display.DataTable.d.ts +19 -0
- package/dist/Display/Display.DataTable.js +22 -0
- package/dist/Display/Display.Date.d.ts +15 -2
- package/dist/Display/Display.Date.js +34 -4
- package/dist/Display/Display.Divider.d.ts +1 -1
- package/dist/Display/Display.GradientSurface.d.ts +116 -0
- package/dist/Display/Display.GradientSurface.js +62 -0
- package/dist/Display/Display.IconBadge.d.ts +13 -0
- package/dist/Display/Display.IconBadge.js +30 -0
- package/dist/Display/Display.Image.d.ts +15 -0
- package/dist/Display/Display.Image.js +17 -0
- package/dist/Display/Display.KeyValue.d.ts +10 -0
- package/dist/Display/Display.KeyValue.js +9 -0
- package/dist/Display/Display.ListItem.d.ts +17 -0
- package/dist/Display/Display.ListItem.js +18 -0
- package/dist/Display/Display.Logo.js +3 -1
- package/dist/Display/Display.MediaCard.d.ts +17 -0
- package/dist/Display/Display.MediaCard.js +12 -0
- package/dist/Display/Display.MediaEmbed.d.ts +19 -0
- package/dist/Display/Display.MediaEmbed.js +39 -0
- package/dist/Display/Display.MenuButton.d.ts +1 -1
- package/dist/Display/Display.Monetary.d.ts +1 -1
- package/dist/Display/Display.Monetary.js +1 -1
- package/dist/Display/Display.Pattern.d.ts +26 -0
- package/dist/Display/Display.Pattern.js +27 -0
- package/dist/Display/Display.PriceTag.d.ts +10 -0
- package/dist/Display/Display.PriceTag.js +23 -0
- package/dist/Display/Display.ProductCard.d.ts +17 -0
- package/dist/Display/Display.ProductCard.js +13 -0
- package/dist/Display/Display.Rating.d.ts +11 -0
- package/dist/Display/Display.Rating.js +16 -0
- package/dist/Display/Display.SearchHistory.d.ts +12 -0
- package/dist/Display/Display.SearchHistory.js +13 -0
- package/dist/Display/Display.SectionHeader.d.ts +13 -0
- package/dist/Display/Display.SectionHeader.js +9 -0
- package/dist/Display/Display.Stat.d.ts +10 -0
- package/dist/Display/Display.Stat.js +9 -0
- package/dist/Display/Display.StatCard.d.ts +14 -0
- package/dist/Display/Display.StatCard.js +13 -0
- package/dist/Display/Display.StatusDot.d.ts +11 -0
- package/dist/Display/Display.StatusDot.js +28 -0
- package/dist/Display/Display.Story.d.ts +15 -0
- package/dist/Display/Display.Story.js +43 -0
- package/dist/Display/Display.StoryTray.d.ts +26 -0
- package/dist/Display/Display.StoryTray.js +43 -0
- package/dist/Display/Display.StoryViewer.d.ts +26 -0
- package/dist/Display/Display.StoryViewer.js +79 -0
- package/dist/Display/Display.SwipeableRow.d.ts +15 -0
- package/dist/Display/Display.SwipeableRow.js +28 -0
- package/dist/Display/Display.Tag.d.ts +11 -0
- package/dist/Display/Display.Tag.js +9 -0
- package/dist/Display/Display.Timeline.d.ts +13 -0
- package/dist/Display/Display.Timeline.js +19 -0
- package/dist/Display/Display.Tooltip.d.ts +10 -0
- package/dist/Display/Display.Tooltip.js +24 -0
- package/dist/Display/index.d.ts +70 -0
- package/dist/Display/index.js +58 -0
- package/dist/Feedback/ErrorBoundary.d.ts +1 -1
- package/dist/Feedback/Feedback.Banner.d.ts +82 -0
- package/dist/Feedback/Feedback.Banner.js +35 -0
- package/dist/Feedback/Feedback.DomainSplashScreen.d.ts +2 -1
- package/dist/Feedback/Feedback.DomainSplashScreen.js +3 -2
- package/dist/Feedback/Feedback.Empty.d.ts +1 -1
- package/dist/Feedback/Feedback.EmptyState.d.ts +15 -0
- package/dist/Feedback/Feedback.EmptyState.js +11 -0
- package/dist/Feedback/Feedback.Error.d.ts +1 -1
- package/dist/Feedback/Feedback.Loading.d.ts +8 -1
- package/dist/Feedback/Feedback.Loading.js +7 -1
- package/dist/Feedback/Feedback.PermissionCard.d.ts +15 -0
- package/dist/Feedback/Feedback.PermissionCard.js +11 -0
- package/dist/Feedback/Feedback.Progress.d.ts +9 -0
- package/dist/Feedback/Feedback.Progress.js +35 -0
- package/dist/Feedback/Feedback.ProgressCircle.d.ts +12 -0
- package/dist/Feedback/Feedback.ProgressCircle.js +15 -0
- package/dist/Feedback/Feedback.Skeleton.d.ts +11 -0
- package/dist/Feedback/Feedback.Skeleton.js +29 -0
- package/dist/Feedback/Feedback.Spinner.js +2 -1
- package/dist/Feedback/Feedback.Splash.d.ts +7 -1
- package/dist/Feedback/Feedback.Splash.js +11 -2
- package/dist/Feedback/Toast.context.d.ts +42 -0
- package/dist/Feedback/Toast.context.js +121 -0
- package/dist/Feedback/index.d.ts +15 -0
- package/dist/Feedback/index.js +15 -0
- package/dist/Form/Form.Button.d.ts +10 -4
- package/dist/Form/Form.Button.js +27 -16
- package/dist/Form/Form.Checkbox.d.ts +1 -1
- package/dist/Form/Form.Checkbox.js +1 -1
- package/dist/Form/Form.ControlledCheckbox.d.ts +1 -1
- package/dist/Form/Form.ControlledInput.d.ts +1 -1
- package/dist/Form/Form.ControlledMonetaryInput.d.ts +1 -1
- package/dist/Form/Form.ControlledRadioButton.d.ts +1 -1
- package/dist/Form/Form.DatePicker.d.ts +20 -0
- package/dist/Form/Form.DatePicker.js +38 -0
- package/dist/Form/Form.Dropdown.d.ts +1 -1
- package/dist/Form/Form.FAB.d.ts +10 -0
- package/dist/Form/Form.FAB.js +17 -0
- package/dist/Form/Form.FilterButton.d.ts +1 -1
- package/dist/Form/Form.FractionalQuantityInput.d.ts +1 -1
- package/dist/Form/Form.IconButton.d.ts +1 -1
- package/dist/Form/Form.Input.d.ts +2 -1
- package/dist/Form/Form.Input.js +1 -1
- package/dist/Form/Form.InputField.js +1 -1
- package/dist/Form/Form.MonetaryInput.d.ts +1 -1
- package/dist/Form/Form.PinInput.d.ts +12 -0
- package/dist/Form/Form.PinInput.js +23 -0
- package/dist/Form/Form.QuantitySelector.d.ts +2 -1
- package/dist/Form/Form.QuantitySelector.js +1 -1
- package/dist/Form/Form.RadioButton.d.ts +1 -1
- package/dist/Form/Form.SearchBar.d.ts +6 -1
- package/dist/Form/Form.SearchBar.js +4 -0
- package/dist/Form/Form.Select.d.ts +17 -0
- package/dist/Form/Form.Select.js +26 -0
- package/dist/Form/Form.Slider.d.ts +20 -0
- package/dist/Form/Form.Slider.js +16 -0
- package/dist/Form/Form.Switch.d.ts +10 -0
- package/dist/Form/Form.Switch.js +9 -0
- package/dist/Form/index.d.ts +12 -0
- package/dist/Form/index.js +12 -0
- package/dist/Navigation/Navigation.AppBar.d.ts +57 -0
- package/dist/Navigation/Navigation.AppBar.js +72 -0
- package/dist/Navigation/Navigation.BottomNav.d.ts +57 -0
- package/dist/Navigation/Navigation.BottomNav.js +108 -0
- package/dist/Navigation/Navigation.CollapsingHeader.d.ts +34 -0
- package/dist/Navigation/Navigation.CollapsingHeader.js +47 -0
- package/dist/Navigation/Navigation.FloatingBar.d.ts +15 -0
- package/dist/Navigation/Navigation.FloatingBar.js +21 -0
- package/dist/Navigation/Navigation.Header.d.ts +6 -2
- package/dist/Navigation/Navigation.Header.js +4 -0
- package/dist/Navigation/Navigation.HeaderToolbar.d.ts +1 -1
- package/dist/Navigation/Navigation.Menu.d.ts +21 -0
- package/dist/Navigation/Navigation.Menu.js +42 -0
- package/dist/Navigation/Navigation.RowItem.d.ts +1 -1
- package/dist/Navigation/Navigation.SearchBar.d.ts +18 -0
- package/dist/Navigation/Navigation.SearchBar.js +28 -0
- package/dist/Navigation/Navigation.SegmentedControl.d.ts +14 -0
- package/dist/Navigation/Navigation.SegmentedControl.js +13 -0
- package/dist/Navigation/Navigation.Steps.d.ts +8 -0
- package/dist/Navigation/Navigation.Steps.js +17 -0
- package/dist/Navigation/Navigation.TabIcon.d.ts +5 -1
- package/dist/Navigation/Navigation.TabIcon.js +4 -0
- package/dist/Navigation/Navigation.TabItem.d.ts +5 -0
- package/dist/Navigation/Navigation.TabItem.js +5 -0
- package/dist/Navigation/Navigation.Tabs.d.ts +28 -0
- package/dist/Navigation/Navigation.Tabs.js +45 -0
- package/dist/Navigation/index.d.ts +32 -1
- package/dist/Navigation/index.js +18 -0
- package/dist/Typography/Typography.Text.d.ts +3 -2
- package/dist/Typography/Typography.Text.js +16 -6
- package/dist/branding.d.ts +6 -0
- package/dist/branding.js +7 -0
- package/dist/icons/ArrowDownIcon.d.ts +2 -1
- package/dist/icons/ArrowUpIcon.d.ts +2 -1
- package/dist/icons/CreditIcon.d.ts +1 -1
- package/dist/icons/OdooIcon.d.ts +6 -1
- package/dist/icons/OdooIcon.js +5 -0
- package/dist/icons/PrinterIcon.d.ts +5 -0
- package/dist/icons/PrinterIcon.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/layouts/AuthContainer.d.ts +1 -1
- package/dist/layouts/AuthContainer.js +2 -2
- package/dist/layouts/Container.d.ts +1 -0
- package/dist/layouts/Container.js +2 -3
- package/dist/layouts/GradientContainer.d.ts +1 -1
- package/dist/layouts/PlainLayout.d.ts +1 -1
- package/dist/layouts/ScrollContainer.d.ts +2 -2
- package/dist/layouts/ScrollContainer.js +1 -1
- package/dist/layouts/TabNavigatorLayout.d.ts +2 -2
- package/dist/layouts/TabNavigatorLayout.js +4 -0
- package/dist/primitives/AspectRatio.d.ts +10 -0
- package/dist/primitives/AspectRatio.js +8 -0
- package/dist/primitives/Box.d.ts +1 -1
- package/dist/primitives/Pressable.d.ts +10 -0
- package/dist/primitives/Pressable.js +9 -0
- package/dist/primitives/Row.d.ts +1 -1
- package/dist/primitives/Spacer.d.ts +8 -0
- package/dist/primitives/Spacer.js +9 -0
- package/dist/primitives/Stack.d.ts +1 -1
- package/dist/primitives/index.d.ts +3 -0
- package/dist/primitives/index.js +3 -0
- package/dist/theme/active.d.ts +2 -0
- package/dist/theme/active.js +13 -0
- package/dist/theme/components/ThemedActivityIndicator.d.ts +1 -1
- package/dist/theme/components/index.d.ts +1 -1
- package/dist/theme/components/index.js +1 -1
- package/dist/theme/dark.d.ts +7 -0
- package/dist/theme/dark.js +85 -0
- package/dist/theme/default.js +1 -0
- package/dist/theme/define.d.ts +5 -5
- package/dist/theme/define.js +5 -5
- package/dist/theme/index.d.ts +4 -1
- package/dist/theme/index.js +4 -1
- package/dist/theme/theme.d.ts +1 -1
- package/dist/theme/theme.js +1 -1
- package/dist/theme/types.d.ts +15 -14
- package/dist/theme/types.js +2 -2
- package/dist/theme/typography.d.ts +117 -60
- package/dist/theme/typography.js +115 -29
- package/dist/theme/useTheme.d.ts +3 -1
- package/dist/theme/useTheme.js +6 -1
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.js +2 -0
- package/dist/tokens/motion.d.ts +71 -0
- package/dist/tokens/motion.js +25 -0
- package/dist/utils/date.d.ts +33 -33
- package/dist/utils/date.js +39 -39
- package/dist/utils/timezone.d.ts +5 -0
- package/dist/views/AuthFormView.d.ts +1 -1
- package/dist/views/FormViewV2.context.d.ts +1 -1
- package/dist/views/FormViewV2.d.ts +12 -11
- package/dist/views/FormViewV2.js +8 -4
- package/dist/views/ListViewV2.context.d.ts +6 -2
- package/dist/views/ListViewV2.context.js +3 -1
- package/dist/views/ListViewV2.d.ts +26 -21
- package/dist/views/ListViewV2.js +18 -20
- package/dist/views/Wizard/Wizard.context.d.ts +1 -1
- package/dist/widgets/CircleButton.d.ts +6 -2
- package/dist/widgets/CircleButton.js +4 -0
- package/dist/widgets/GeoPermissionCard.d.ts +6 -1
- package/dist/widgets/GeoPermissionCard.js +8 -3
- package/dist/widgets/HomeHeader.d.ts +4 -0
- package/dist/widgets/HomeHeader.js +4 -0
- package/dist/widgets/JSONViewer.d.ts +2 -1
- package/dist/widgets/JSONViewer.js +9 -12
- package/dist/widgets/MenuCard.d.ts +1 -1
- package/dist/widgets/ScreenHeader.d.ts +5 -1
- package/dist/widgets/ScreenHeader.js +4 -0
- package/dist/widgets/TimeZoneSelector.d.ts +6 -1
- package/dist/widgets/TimeZoneSelector.js +6 -1
- package/dist/widgets/TimeZoneSelectorModal.d.ts +6 -1
- package/dist/widgets/TimeZoneSelectorModal.js +8 -3
- package/package.json +41 -23
- package/tailwind.preset.js +14 -0
- package/dist/notifications/index.d.ts +0 -1
- package/dist/notifications/index.js +0 -1
- package/dist/providers/index.d.ts +0 -1
- package/dist/providers/index.js +0 -2
package/dist/theme/default.js
CHANGED
package/dist/theme/define.d.ts
CHANGED
|
@@ -3,16 +3,16 @@ export type DeepPartial<T> = {
|
|
|
3
3
|
[K in keyof T]?: T[K] extends readonly unknown[] ? T[K] : T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Defines a complete, typed theme (powerful API: the framework parametrizes
|
|
7
|
+
* every token explicitly).
|
|
8
8
|
*/
|
|
9
9
|
export declare function defineTheme(tokens: ThemeTokens): ThemeTokens;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* Merges a base theme with partial overrides (typed deep merge). Primitive
|
|
12
|
+
* to build simpler APIs on top (e.g. the core's createTheme).
|
|
13
13
|
*/
|
|
14
14
|
export declare function mergeTheme(base: ThemeTokens, overrides?: DeepPartial<ThemeTokens>): ThemeTokens;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Default theme + partial overrides in a single step.
|
|
17
17
|
*/
|
|
18
18
|
export declare function extendTheme(overrides?: DeepPartial<ThemeTokens>): ThemeTokens;
|
package/dist/theme/define.js
CHANGED
|
@@ -13,21 +13,21 @@ function deepMerge(base, override) {
|
|
|
13
13
|
return out;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Defines a complete, typed theme (powerful API: the framework parametrizes
|
|
17
|
+
* every token explicitly).
|
|
18
18
|
*/
|
|
19
19
|
export function defineTheme(tokens) {
|
|
20
20
|
return tokens;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* Merges a base theme with partial overrides (typed deep merge). Primitive
|
|
24
|
+
* to build simpler APIs on top (e.g. the core's createTheme).
|
|
25
25
|
*/
|
|
26
26
|
export function mergeTheme(base, overrides = {}) {
|
|
27
27
|
return deepMerge(base, overrides);
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Default theme + partial overrides in a single step.
|
|
31
31
|
*/
|
|
32
32
|
export function extendTheme(overrides = {}) {
|
|
33
33
|
return deepMerge(DEFAULT_THEME, overrides);
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export { getActiveTheme, setActiveTheme } from "../theme/active";
|
|
1
|
+
export { getActiveTheme, setActiveTheme, subscribeTheme, } from "../theme/active";
|
|
2
2
|
export { ThemedActivityIndicator } from "../theme/components";
|
|
3
3
|
export { themeToVars } from "../theme/css-vars";
|
|
4
|
+
export { DEFAULT_DARK_THEME } from "../theme/dark";
|
|
4
5
|
export { DEFAULT_THEME } from "../theme/default";
|
|
5
6
|
export { type DeepPartial, defineTheme, extendTheme, mergeTheme, } from "../theme/define";
|
|
6
7
|
export { theme } from "../theme/theme";
|
|
7
8
|
export type { ShadowStyle, ThemeTokens } from "../theme/types";
|
|
9
|
+
export { configureFonts, fontFamilies, type FontRole, resetFonts, useAppFonts, variantFontRole, } from "../theme/typography";
|
|
10
|
+
export { useTheme } from "../theme/useTheme";
|
package/dist/theme/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
export { getActiveTheme, setActiveTheme } from "../theme/active";
|
|
1
|
+
export { getActiveTheme, setActiveTheme, subscribeTheme, } from "../theme/active";
|
|
2
2
|
export { ThemedActivityIndicator } from "../theme/components";
|
|
3
3
|
export { themeToVars } from "../theme/css-vars";
|
|
4
|
+
export { DEFAULT_DARK_THEME } from "../theme/dark";
|
|
4
5
|
export { DEFAULT_THEME } from "../theme/default";
|
|
5
6
|
export { defineTheme, extendTheme, mergeTheme, } from "../theme/define";
|
|
6
7
|
export { theme } from "../theme/theme";
|
|
8
|
+
export { configureFonts, fontFamilies, resetFonts, useAppFonts, variantFontRole, } from "../theme/typography";
|
|
9
|
+
export { useTheme } from "../theme/useTheme";
|
package/dist/theme/theme.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* THEME CONSTANT - Acceso directo al theme activo
|
|
4
4
|
* ============================================================================
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Constant that resolves the active theme automatically.
|
|
7
7
|
* SOLO usar cuando className no es suficiente (RefreshControl, placeholderColor, etc.)
|
|
8
8
|
*
|
|
9
9
|
* @example
|
package/dist/theme/theme.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* THEME CONSTANT - Acceso directo al theme activo
|
|
4
4
|
* ============================================================================
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* Constant that resolves the active theme automatically.
|
|
7
7
|
* SOLO usar cuando className no es suficiente (RefreshControl, placeholderColor, etc.)
|
|
8
8
|
*
|
|
9
9
|
* @example
|
package/dist/theme/types.d.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* THEME SYSTEM - SIMPLE & SEMANTIC
|
|
4
4
|
* ============================================================================
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Simplified theming system without hooks or context.
|
|
7
|
+
* Tokens are read directly from the active theme.
|
|
8
8
|
*/
|
|
9
9
|
export interface ShadowStyle {
|
|
10
10
|
shadowColor: string;
|
|
@@ -17,15 +17,15 @@ export interface ShadowStyle {
|
|
|
17
17
|
elevation: number;
|
|
18
18
|
}
|
|
19
19
|
export interface ThemeTokens {
|
|
20
|
-
/**
|
|
20
|
+
/** Theme name */
|
|
21
21
|
name: string;
|
|
22
|
-
/**
|
|
22
|
+
/** Primary color - main buttons, links, active states */
|
|
23
23
|
primary: string;
|
|
24
|
-
/**
|
|
24
|
+
/** Secondary color - secondary buttons, low-profile elements (gray) */
|
|
25
25
|
secondary: string;
|
|
26
|
-
/**
|
|
26
|
+
/** Accent color - highlights, important badges, secondary CTAs (orange/indigo) */
|
|
27
27
|
accent: string;
|
|
28
|
-
/**
|
|
28
|
+
/** Backgrounds */
|
|
29
29
|
bg: {
|
|
30
30
|
page: string;
|
|
31
31
|
card: string;
|
|
@@ -34,8 +34,9 @@ export interface ThemeTokens {
|
|
|
34
34
|
accent: string;
|
|
35
35
|
hover: string;
|
|
36
36
|
disabled: string;
|
|
37
|
+
inverse?: string;
|
|
37
38
|
};
|
|
38
|
-
/**
|
|
39
|
+
/** Text */
|
|
39
40
|
text: {
|
|
40
41
|
primary: string;
|
|
41
42
|
secondary: string;
|
|
@@ -50,7 +51,7 @@ export interface ThemeTokens {
|
|
|
50
51
|
onDanger: string;
|
|
51
52
|
onSuccess: string;
|
|
52
53
|
};
|
|
53
|
-
/**
|
|
54
|
+
/** Icons */
|
|
54
55
|
icon: {
|
|
55
56
|
primary: string;
|
|
56
57
|
secondary: string;
|
|
@@ -58,19 +59,19 @@ export interface ThemeTokens {
|
|
|
58
59
|
inverse: string;
|
|
59
60
|
disabled: string;
|
|
60
61
|
};
|
|
61
|
-
/**
|
|
62
|
+
/** Borders */
|
|
62
63
|
border: {
|
|
63
64
|
default: string;
|
|
64
65
|
light: string;
|
|
65
66
|
strong: string;
|
|
66
67
|
focus: string;
|
|
67
68
|
};
|
|
68
|
-
/**
|
|
69
|
+
/** Semantic states */
|
|
69
70
|
success: string;
|
|
70
71
|
warning: string;
|
|
71
72
|
danger: string;
|
|
72
73
|
info: string;
|
|
73
|
-
/**
|
|
74
|
+
/** Semantic states - light variants */
|
|
74
75
|
successLight: string;
|
|
75
76
|
warningLight: string;
|
|
76
77
|
dangerLight: string;
|
|
@@ -78,12 +79,12 @@ export interface ThemeTokens {
|
|
|
78
79
|
/** Focus & Input */
|
|
79
80
|
ring: string;
|
|
80
81
|
input: string;
|
|
81
|
-
/**
|
|
82
|
+
/** Gradients (for LinearGradient) */
|
|
82
83
|
gradient: {
|
|
83
84
|
primary: readonly [string, string];
|
|
84
85
|
accent: readonly [string, string];
|
|
85
86
|
};
|
|
86
|
-
/**
|
|
87
|
+
/** Shadows (React Native) */
|
|
87
88
|
shadow: {
|
|
88
89
|
sm: ShadowStyle;
|
|
89
90
|
md: ShadowStyle;
|
package/dist/theme/types.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* THEME SYSTEM - SIMPLE & SEMANTIC
|
|
4
4
|
* ============================================================================
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* Simplified theming system without hooks or context.
|
|
7
|
+
* Tokens are read directly from the active theme.
|
|
8
8
|
*/
|
|
9
9
|
export {};
|
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
import type { TextStyle } from "react-native";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
export type FontRole = "light" | "regular" | "medium" | "semiBold" | "extraBold" | "mono" | "monoMedium" | "titleRegular" | "titleMedium" | "title" | "titleBlack";
|
|
3
|
+
export declare const fontFamilies: Record<FontRole, string>;
|
|
4
|
+
/**
|
|
5
|
+
* Configura las familias de fuente del DS (rol → nombre de familia ya cargada por la app).
|
|
6
|
+
* Mutación in-place del singleton, así los componentes la leen en vivo. Ejemplo:
|
|
7
|
+
* `configureFonts({ title: "Satoshi-Bold", titleBlack: "Satoshi-Black" })`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function configureFonts(overrides: Partial<Record<FontRole, string>>): void;
|
|
10
|
+
/** Restablece las familias a los defaults (Inter + Fira Code). Útil en tests/stories. */
|
|
11
|
+
export declare function resetFonts(): void;
|
|
9
12
|
export declare const fontWeights: {
|
|
10
13
|
readonly light: "300";
|
|
11
14
|
readonly regular: "400";
|
|
12
15
|
readonly medium: "500";
|
|
13
16
|
readonly semiBold: "600";
|
|
14
17
|
readonly extraBold: "800";
|
|
18
|
+
readonly mono: "400";
|
|
19
|
+
readonly monoMedium: "500";
|
|
20
|
+
readonly titleRegular: "400";
|
|
21
|
+
readonly titleMedium: "500";
|
|
22
|
+
readonly title: "700";
|
|
23
|
+
readonly titleBlack: "900";
|
|
15
24
|
};
|
|
16
25
|
export declare const fontSizes: {
|
|
17
26
|
readonly xs: 10;
|
|
@@ -46,138 +55,161 @@ export declare const letterSpacing: {
|
|
|
46
55
|
export declare const typographyVariants: {
|
|
47
56
|
readonly display: {
|
|
48
57
|
readonly fontSize: 48;
|
|
49
|
-
readonly fontFamily:
|
|
50
|
-
readonly fontWeight: "
|
|
58
|
+
readonly fontFamily: string;
|
|
59
|
+
readonly fontWeight: "900";
|
|
51
60
|
readonly lineHeight: number;
|
|
52
61
|
readonly letterSpacing: -0.25;
|
|
53
62
|
};
|
|
54
63
|
readonly h1: {
|
|
55
64
|
readonly fontSize: 32;
|
|
56
|
-
readonly fontFamily:
|
|
57
|
-
readonly fontWeight: "
|
|
65
|
+
readonly fontFamily: string;
|
|
66
|
+
readonly fontWeight: "700";
|
|
58
67
|
readonly lineHeight: number;
|
|
59
68
|
readonly letterSpacing: -0.25;
|
|
60
69
|
};
|
|
61
70
|
readonly h2: {
|
|
62
71
|
readonly fontSize: 28;
|
|
63
|
-
readonly fontFamily:
|
|
64
|
-
readonly fontWeight: "
|
|
72
|
+
readonly fontFamily: string;
|
|
73
|
+
readonly fontWeight: "700";
|
|
65
74
|
readonly lineHeight: number;
|
|
66
75
|
readonly letterSpacing: 0;
|
|
67
76
|
};
|
|
68
77
|
readonly h3: {
|
|
69
78
|
readonly fontSize: 24;
|
|
70
|
-
readonly fontFamily:
|
|
71
|
-
readonly fontWeight: "
|
|
79
|
+
readonly fontFamily: string;
|
|
80
|
+
readonly fontWeight: "700";
|
|
72
81
|
readonly lineHeight: number;
|
|
73
82
|
readonly letterSpacing: 0;
|
|
74
83
|
};
|
|
75
84
|
readonly h4: {
|
|
76
85
|
readonly fontSize: 20;
|
|
77
|
-
readonly fontFamily:
|
|
86
|
+
readonly fontFamily: string;
|
|
78
87
|
readonly fontWeight: "500";
|
|
79
88
|
readonly lineHeight: number;
|
|
80
89
|
readonly letterSpacing: 0;
|
|
81
90
|
};
|
|
82
91
|
readonly h5: {
|
|
83
92
|
readonly fontSize: 18;
|
|
84
|
-
readonly fontFamily:
|
|
93
|
+
readonly fontFamily: string;
|
|
85
94
|
readonly fontWeight: "500";
|
|
86
95
|
readonly lineHeight: number;
|
|
87
96
|
readonly letterSpacing: 0;
|
|
88
97
|
};
|
|
89
98
|
readonly h6: {
|
|
90
99
|
readonly fontSize: 16;
|
|
91
|
-
readonly fontFamily:
|
|
100
|
+
readonly fontFamily: string;
|
|
92
101
|
readonly fontWeight: "500";
|
|
93
102
|
readonly lineHeight: number;
|
|
94
103
|
readonly letterSpacing: 0;
|
|
95
104
|
};
|
|
96
105
|
readonly bodyLarge: {
|
|
97
106
|
readonly fontSize: 16;
|
|
98
|
-
readonly fontFamily:
|
|
107
|
+
readonly fontFamily: string;
|
|
99
108
|
readonly fontWeight: "400";
|
|
100
109
|
readonly lineHeight: number;
|
|
101
110
|
readonly letterSpacing: 0;
|
|
102
111
|
};
|
|
103
112
|
readonly body: {
|
|
104
113
|
readonly fontSize: 14;
|
|
105
|
-
readonly fontFamily:
|
|
114
|
+
readonly fontFamily: string;
|
|
106
115
|
readonly fontWeight: "400";
|
|
107
116
|
readonly lineHeight: number;
|
|
108
117
|
readonly letterSpacing: 0;
|
|
109
118
|
};
|
|
110
119
|
readonly bodySmall: {
|
|
111
120
|
readonly fontSize: 13;
|
|
112
|
-
readonly fontFamily:
|
|
121
|
+
readonly fontFamily: string;
|
|
113
122
|
readonly fontWeight: "400";
|
|
114
123
|
readonly lineHeight: number;
|
|
115
124
|
readonly letterSpacing: 0;
|
|
116
125
|
};
|
|
117
126
|
readonly label: {
|
|
118
127
|
readonly fontSize: 14;
|
|
119
|
-
readonly fontFamily:
|
|
128
|
+
readonly fontFamily: string;
|
|
120
129
|
readonly fontWeight: "500";
|
|
121
130
|
readonly lineHeight: number;
|
|
122
131
|
readonly letterSpacing: 0.25;
|
|
123
132
|
};
|
|
124
133
|
readonly labelSmall: {
|
|
125
134
|
readonly fontSize: 13;
|
|
126
|
-
readonly fontFamily:
|
|
135
|
+
readonly fontFamily: string;
|
|
127
136
|
readonly fontWeight: "500";
|
|
128
137
|
readonly lineHeight: number;
|
|
129
138
|
readonly letterSpacing: 0.25;
|
|
130
139
|
};
|
|
140
|
+
readonly data: {
|
|
141
|
+
readonly fontSize: 16;
|
|
142
|
+
readonly fontFamily: string;
|
|
143
|
+
readonly fontWeight: "500";
|
|
144
|
+
readonly lineHeight: number;
|
|
145
|
+
readonly letterSpacing: 0;
|
|
146
|
+
};
|
|
147
|
+
readonly dataLarge: {
|
|
148
|
+
readonly fontSize: 28;
|
|
149
|
+
readonly fontFamily: string;
|
|
150
|
+
readonly fontWeight: "500";
|
|
151
|
+
readonly lineHeight: number;
|
|
152
|
+
readonly letterSpacing: -0.25;
|
|
153
|
+
};
|
|
154
|
+
readonly overline: {
|
|
155
|
+
readonly fontSize: 11;
|
|
156
|
+
readonly fontFamily: string;
|
|
157
|
+
readonly fontWeight: "400";
|
|
158
|
+
readonly lineHeight: number;
|
|
159
|
+
readonly letterSpacing: 0.6;
|
|
160
|
+
readonly textTransform: "uppercase";
|
|
161
|
+
};
|
|
131
162
|
readonly caption: {
|
|
132
163
|
readonly fontSize: 13;
|
|
133
|
-
readonly fontFamily:
|
|
164
|
+
readonly fontFamily: string;
|
|
134
165
|
readonly fontWeight: "400";
|
|
135
166
|
readonly lineHeight: number;
|
|
136
167
|
readonly letterSpacing: 0;
|
|
137
168
|
};
|
|
138
169
|
readonly captionSmall: {
|
|
139
170
|
readonly fontSize: 10;
|
|
140
|
-
readonly fontFamily:
|
|
171
|
+
readonly fontFamily: string;
|
|
141
172
|
readonly fontWeight: "400";
|
|
142
173
|
readonly lineHeight: number;
|
|
143
174
|
readonly letterSpacing: 0;
|
|
144
175
|
};
|
|
145
176
|
readonly button: {
|
|
146
177
|
readonly fontSize: 14;
|
|
147
|
-
readonly fontFamily:
|
|
178
|
+
readonly fontFamily: string;
|
|
148
179
|
readonly fontWeight: "600";
|
|
149
180
|
readonly lineHeight: number;
|
|
150
181
|
readonly letterSpacing: 0.25;
|
|
151
182
|
};
|
|
152
183
|
readonly buttonSmall: {
|
|
153
184
|
readonly fontSize: 13;
|
|
154
|
-
readonly fontFamily:
|
|
185
|
+
readonly fontFamily: string;
|
|
155
186
|
readonly fontWeight: "600";
|
|
156
187
|
readonly lineHeight: number;
|
|
157
188
|
readonly letterSpacing: 0.25;
|
|
158
189
|
};
|
|
159
190
|
readonly buttonLarge: {
|
|
160
191
|
readonly fontSize: 16;
|
|
161
|
-
readonly fontFamily:
|
|
192
|
+
readonly fontFamily: string;
|
|
162
193
|
readonly fontWeight: "600";
|
|
163
194
|
readonly lineHeight: number;
|
|
164
195
|
readonly letterSpacing: 0.25;
|
|
165
196
|
};
|
|
166
197
|
readonly title: {
|
|
167
198
|
readonly fontSize: 18;
|
|
168
|
-
readonly fontFamily:
|
|
199
|
+
readonly fontFamily: string;
|
|
169
200
|
readonly fontWeight: "600";
|
|
170
201
|
readonly lineHeight: number;
|
|
171
202
|
readonly letterSpacing: 0;
|
|
172
203
|
};
|
|
173
204
|
readonly subtitle: {
|
|
174
205
|
readonly fontSize: 16;
|
|
175
|
-
readonly fontFamily:
|
|
206
|
+
readonly fontFamily: string;
|
|
176
207
|
readonly fontWeight: "500";
|
|
177
208
|
readonly lineHeight: number;
|
|
178
209
|
readonly letterSpacing: 0;
|
|
179
210
|
};
|
|
180
211
|
};
|
|
212
|
+
export declare const variantFontRole: Record<keyof typeof typographyVariants, FontRole>;
|
|
181
213
|
export declare const createTextStyle: (variant: keyof typeof typographyVariants, overrides?: Partial<TextStyle>) => TextStyle;
|
|
182
214
|
export declare const createCustomTextStyle: (fontSize: keyof typeof fontSizes, fontFamily: keyof typeof fontFamilies, options?: {
|
|
183
215
|
lineHeight?: keyof typeof lineHeights;
|
|
@@ -186,19 +218,19 @@ export declare const createCustomTextStyle: (fontSize: keyof typeof fontSizes, f
|
|
|
186
218
|
}) => TextStyle;
|
|
187
219
|
export declare const useAppFonts: () => boolean;
|
|
188
220
|
export declare const Typography: {
|
|
189
|
-
readonly fontFamilies:
|
|
190
|
-
readonly light: "Montserrat_300Light";
|
|
191
|
-
readonly regular: "Montserrat_400Regular";
|
|
192
|
-
readonly medium: "Montserrat_500Medium";
|
|
193
|
-
readonly semiBold: "Montserrat_600SemiBold";
|
|
194
|
-
readonly extraBold: "Montserrat_800ExtraBold";
|
|
195
|
-
};
|
|
221
|
+
readonly fontFamilies: Record<FontRole, string>;
|
|
196
222
|
readonly fontWeights: {
|
|
197
223
|
readonly light: "300";
|
|
198
224
|
readonly regular: "400";
|
|
199
225
|
readonly medium: "500";
|
|
200
226
|
readonly semiBold: "600";
|
|
201
227
|
readonly extraBold: "800";
|
|
228
|
+
readonly mono: "400";
|
|
229
|
+
readonly monoMedium: "500";
|
|
230
|
+
readonly titleRegular: "400";
|
|
231
|
+
readonly titleMedium: "500";
|
|
232
|
+
readonly title: "700";
|
|
233
|
+
readonly titleBlack: "900";
|
|
202
234
|
};
|
|
203
235
|
readonly fontSizes: {
|
|
204
236
|
readonly xs: 10;
|
|
@@ -233,144 +265,169 @@ export declare const Typography: {
|
|
|
233
265
|
readonly variants: {
|
|
234
266
|
readonly display: {
|
|
235
267
|
readonly fontSize: 48;
|
|
236
|
-
readonly fontFamily:
|
|
237
|
-
readonly fontWeight: "
|
|
268
|
+
readonly fontFamily: string;
|
|
269
|
+
readonly fontWeight: "900";
|
|
238
270
|
readonly lineHeight: number;
|
|
239
271
|
readonly letterSpacing: -0.25;
|
|
240
272
|
};
|
|
241
273
|
readonly h1: {
|
|
242
274
|
readonly fontSize: 32;
|
|
243
|
-
readonly fontFamily:
|
|
244
|
-
readonly fontWeight: "
|
|
275
|
+
readonly fontFamily: string;
|
|
276
|
+
readonly fontWeight: "700";
|
|
245
277
|
readonly lineHeight: number;
|
|
246
278
|
readonly letterSpacing: -0.25;
|
|
247
279
|
};
|
|
248
280
|
readonly h2: {
|
|
249
281
|
readonly fontSize: 28;
|
|
250
|
-
readonly fontFamily:
|
|
251
|
-
readonly fontWeight: "
|
|
282
|
+
readonly fontFamily: string;
|
|
283
|
+
readonly fontWeight: "700";
|
|
252
284
|
readonly lineHeight: number;
|
|
253
285
|
readonly letterSpacing: 0;
|
|
254
286
|
};
|
|
255
287
|
readonly h3: {
|
|
256
288
|
readonly fontSize: 24;
|
|
257
|
-
readonly fontFamily:
|
|
258
|
-
readonly fontWeight: "
|
|
289
|
+
readonly fontFamily: string;
|
|
290
|
+
readonly fontWeight: "700";
|
|
259
291
|
readonly lineHeight: number;
|
|
260
292
|
readonly letterSpacing: 0;
|
|
261
293
|
};
|
|
262
294
|
readonly h4: {
|
|
263
295
|
readonly fontSize: 20;
|
|
264
|
-
readonly fontFamily:
|
|
296
|
+
readonly fontFamily: string;
|
|
265
297
|
readonly fontWeight: "500";
|
|
266
298
|
readonly lineHeight: number;
|
|
267
299
|
readonly letterSpacing: 0;
|
|
268
300
|
};
|
|
269
301
|
readonly h5: {
|
|
270
302
|
readonly fontSize: 18;
|
|
271
|
-
readonly fontFamily:
|
|
303
|
+
readonly fontFamily: string;
|
|
272
304
|
readonly fontWeight: "500";
|
|
273
305
|
readonly lineHeight: number;
|
|
274
306
|
readonly letterSpacing: 0;
|
|
275
307
|
};
|
|
276
308
|
readonly h6: {
|
|
277
309
|
readonly fontSize: 16;
|
|
278
|
-
readonly fontFamily:
|
|
310
|
+
readonly fontFamily: string;
|
|
279
311
|
readonly fontWeight: "500";
|
|
280
312
|
readonly lineHeight: number;
|
|
281
313
|
readonly letterSpacing: 0;
|
|
282
314
|
};
|
|
283
315
|
readonly bodyLarge: {
|
|
284
316
|
readonly fontSize: 16;
|
|
285
|
-
readonly fontFamily:
|
|
317
|
+
readonly fontFamily: string;
|
|
286
318
|
readonly fontWeight: "400";
|
|
287
319
|
readonly lineHeight: number;
|
|
288
320
|
readonly letterSpacing: 0;
|
|
289
321
|
};
|
|
290
322
|
readonly body: {
|
|
291
323
|
readonly fontSize: 14;
|
|
292
|
-
readonly fontFamily:
|
|
324
|
+
readonly fontFamily: string;
|
|
293
325
|
readonly fontWeight: "400";
|
|
294
326
|
readonly lineHeight: number;
|
|
295
327
|
readonly letterSpacing: 0;
|
|
296
328
|
};
|
|
297
329
|
readonly bodySmall: {
|
|
298
330
|
readonly fontSize: 13;
|
|
299
|
-
readonly fontFamily:
|
|
331
|
+
readonly fontFamily: string;
|
|
300
332
|
readonly fontWeight: "400";
|
|
301
333
|
readonly lineHeight: number;
|
|
302
334
|
readonly letterSpacing: 0;
|
|
303
335
|
};
|
|
304
336
|
readonly label: {
|
|
305
337
|
readonly fontSize: 14;
|
|
306
|
-
readonly fontFamily:
|
|
338
|
+
readonly fontFamily: string;
|
|
307
339
|
readonly fontWeight: "500";
|
|
308
340
|
readonly lineHeight: number;
|
|
309
341
|
readonly letterSpacing: 0.25;
|
|
310
342
|
};
|
|
311
343
|
readonly labelSmall: {
|
|
312
344
|
readonly fontSize: 13;
|
|
313
|
-
readonly fontFamily:
|
|
345
|
+
readonly fontFamily: string;
|
|
314
346
|
readonly fontWeight: "500";
|
|
315
347
|
readonly lineHeight: number;
|
|
316
348
|
readonly letterSpacing: 0.25;
|
|
317
349
|
};
|
|
350
|
+
readonly data: {
|
|
351
|
+
readonly fontSize: 16;
|
|
352
|
+
readonly fontFamily: string;
|
|
353
|
+
readonly fontWeight: "500";
|
|
354
|
+
readonly lineHeight: number;
|
|
355
|
+
readonly letterSpacing: 0;
|
|
356
|
+
};
|
|
357
|
+
readonly dataLarge: {
|
|
358
|
+
readonly fontSize: 28;
|
|
359
|
+
readonly fontFamily: string;
|
|
360
|
+
readonly fontWeight: "500";
|
|
361
|
+
readonly lineHeight: number;
|
|
362
|
+
readonly letterSpacing: -0.25;
|
|
363
|
+
};
|
|
364
|
+
readonly overline: {
|
|
365
|
+
readonly fontSize: 11;
|
|
366
|
+
readonly fontFamily: string;
|
|
367
|
+
readonly fontWeight: "400";
|
|
368
|
+
readonly lineHeight: number;
|
|
369
|
+
readonly letterSpacing: 0.6;
|
|
370
|
+
readonly textTransform: "uppercase";
|
|
371
|
+
};
|
|
318
372
|
readonly caption: {
|
|
319
373
|
readonly fontSize: 13;
|
|
320
|
-
readonly fontFamily:
|
|
374
|
+
readonly fontFamily: string;
|
|
321
375
|
readonly fontWeight: "400";
|
|
322
376
|
readonly lineHeight: number;
|
|
323
377
|
readonly letterSpacing: 0;
|
|
324
378
|
};
|
|
325
379
|
readonly captionSmall: {
|
|
326
380
|
readonly fontSize: 10;
|
|
327
|
-
readonly fontFamily:
|
|
381
|
+
readonly fontFamily: string;
|
|
328
382
|
readonly fontWeight: "400";
|
|
329
383
|
readonly lineHeight: number;
|
|
330
384
|
readonly letterSpacing: 0;
|
|
331
385
|
};
|
|
332
386
|
readonly button: {
|
|
333
387
|
readonly fontSize: 14;
|
|
334
|
-
readonly fontFamily:
|
|
388
|
+
readonly fontFamily: string;
|
|
335
389
|
readonly fontWeight: "600";
|
|
336
390
|
readonly lineHeight: number;
|
|
337
391
|
readonly letterSpacing: 0.25;
|
|
338
392
|
};
|
|
339
393
|
readonly buttonSmall: {
|
|
340
394
|
readonly fontSize: 13;
|
|
341
|
-
readonly fontFamily:
|
|
395
|
+
readonly fontFamily: string;
|
|
342
396
|
readonly fontWeight: "600";
|
|
343
397
|
readonly lineHeight: number;
|
|
344
398
|
readonly letterSpacing: 0.25;
|
|
345
399
|
};
|
|
346
400
|
readonly buttonLarge: {
|
|
347
401
|
readonly fontSize: 16;
|
|
348
|
-
readonly fontFamily:
|
|
402
|
+
readonly fontFamily: string;
|
|
349
403
|
readonly fontWeight: "600";
|
|
350
404
|
readonly lineHeight: number;
|
|
351
405
|
readonly letterSpacing: 0.25;
|
|
352
406
|
};
|
|
353
407
|
readonly title: {
|
|
354
408
|
readonly fontSize: 18;
|
|
355
|
-
readonly fontFamily:
|
|
409
|
+
readonly fontFamily: string;
|
|
356
410
|
readonly fontWeight: "600";
|
|
357
411
|
readonly lineHeight: number;
|
|
358
412
|
readonly letterSpacing: 0;
|
|
359
413
|
};
|
|
360
414
|
readonly subtitle: {
|
|
361
415
|
readonly fontSize: 16;
|
|
362
|
-
readonly fontFamily:
|
|
416
|
+
readonly fontFamily: string;
|
|
363
417
|
readonly fontWeight: "500";
|
|
364
418
|
readonly lineHeight: number;
|
|
365
419
|
readonly letterSpacing: 0;
|
|
366
420
|
};
|
|
367
421
|
};
|
|
422
|
+
readonly variantFontRole: Record<"button" | "title" | "display" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "bodyLarge" | "body" | "bodySmall" | "label" | "labelSmall" | "data" | "dataLarge" | "overline" | "caption" | "captionSmall" | "buttonSmall" | "buttonLarge" | "subtitle", FontRole>;
|
|
368
423
|
readonly createTextStyle: (variant: keyof typeof typographyVariants, overrides?: Partial<TextStyle>) => TextStyle;
|
|
369
424
|
readonly createCustomTextStyle: (fontSize: keyof typeof fontSizes, fontFamily: keyof typeof fontFamilies, options?: {
|
|
370
425
|
lineHeight?: keyof typeof lineHeights;
|
|
371
426
|
letterSpacing?: keyof typeof letterSpacing;
|
|
372
427
|
color?: string;
|
|
373
428
|
}) => TextStyle;
|
|
429
|
+
readonly configureFonts: typeof configureFonts;
|
|
430
|
+
readonly resetFonts: typeof resetFonts;
|
|
374
431
|
readonly useAppFonts: () => boolean;
|
|
375
432
|
};
|
|
376
433
|
export default Typography;
|