gantri-components 2.230.0 → 2.232.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/button/button.types.d.ts +1 -1
- package/dist/components/carousel/carousel.d.ts +3 -0
- package/dist/components/carousel/carousel.presets.d.ts +2 -0
- package/dist/components/carousel/carousel.styles.d.ts +8 -0
- package/dist/components/carousel/carousel.types.d.ts +52 -0
- package/dist/components/carousel/hooks/use-carousel-metrics.d.ts +27 -0
- package/dist/components/carousel/hooks/use-carousel-state.d.ts +26 -0
- package/dist/components/carousel/hooks/use-swipe.d.ts +19 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/styles/theme.d.ts +10 -4
- package/package.json +1 -1
package/dist/styles/theme.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ButtonSize, ButtonVariant } from '../components/button/button.types';
|
|
|
5
5
|
import { BoxDimension } from '../components/box/box.types';
|
|
6
6
|
import { LabelPosition, TextFieldSize, TextFieldVariant } from '../components/text-field';
|
|
7
7
|
import { TextVariant } from '../components/typography';
|
|
8
|
-
export type PaletteColor = 'blue_100' | 'blue_200' | 'blue_300' | 'blue_400' | 'blue_500' | 'blue_800' | 'blue_900' | 'gold_100' | 'gold_200' | 'gold_300' | 'gold_400' | 'gold_500' | 'green_100' | 'green_200' | 'green_300' | 'green_400' | 'green_500' | 'green_800' | 'green_900' | 'monochrome_050' | 'monochrome_100' | 'monochrome_200' | 'monochrome_300' | 'monochrome_400' | 'monochrome_500' | 'monochrome_600' | 'monochrome_700' | 'monochrome_800' | 'monochrome_900' | 'monochrome_black' | 'monochrome_white' | 'pink_300' | 'pink_400' | 'pink_500' | 'red_100' | 'red_200' | 'red_300' | 'red_400' | 'red_500' | 'red_800' | 'red_900' | 'translucent_black_t1' | 'translucent_black_t2' | 'translucent_cream' | 'translucent_white' | 'yellow_100' | 'yellow_200' | 'yellow_300' | 'yellow_400' | 'yellow_500' | 'yellow_800' | 'yellow_900' | string;
|
|
8
|
+
export type PaletteColor = 'amber_100' | 'amber_200' | 'amber_300' | 'amber_400' | 'amber_500' | 'amber_800' | 'amber_900' | 'blue_100' | 'blue_200' | 'blue_300' | 'blue_400' | 'blue_500' | 'blue_800' | 'blue_900' | 'gold_100' | 'gold_200' | 'gold_300' | 'gold_400' | 'gold_500' | 'green_100' | 'green_200' | 'green_300' | 'green_400' | 'green_500' | 'green_800' | 'green_900' | 'monochrome_050' | 'monochrome_100' | 'monochrome_200' | 'monochrome_300' | 'monochrome_400' | 'monochrome_500' | 'monochrome_600' | 'monochrome_700' | 'monochrome_800' | 'monochrome_900' | 'monochrome_black' | 'monochrome_white' | 'pink_300' | 'pink_400' | 'pink_500' | 'red_100' | 'red_200' | 'red_300' | 'red_400' | 'red_500' | 'red_800' | 'red_900' | 'translucent_black_t1' | 'translucent_black_t2' | 'translucent_cream' | 'translucent_white' | 'yellow_100' | 'yellow_200' | 'yellow_300' | 'yellow_400' | 'yellow_500' | 'yellow_800' | 'yellow_900' | string;
|
|
9
9
|
export declare const palette: Record<PaletteColor, string>;
|
|
10
10
|
declare module 'styled-components' {
|
|
11
11
|
interface FontInfo {
|
|
@@ -83,6 +83,7 @@ declare module 'styled-components' {
|
|
|
83
83
|
t1: PaletteColor;
|
|
84
84
|
t2: PaletteColor;
|
|
85
85
|
t3: PaletteColor;
|
|
86
|
+
t4: PaletteColor;
|
|
86
87
|
};
|
|
87
88
|
};
|
|
88
89
|
typography: {
|
|
@@ -577,16 +578,21 @@ export declare const getButtonsColors: (variant: ButtonVariant, theme?: DefaultT
|
|
|
577
578
|
processingIconColorOpaque: string;
|
|
578
579
|
borderProcessing?: undefined;
|
|
579
580
|
};
|
|
581
|
+
/** Base theme identifier accepted by `createTheme`. */
|
|
582
|
+
export type BaseThemeId = 'classic-dark' | 'classic-light' | 'dark' | 'light' | 'modern-dark' | 'modern-light';
|
|
580
583
|
export declare const createTheme: (config: {
|
|
581
|
-
/**
|
|
582
|
-
|
|
584
|
+
/**
|
|
585
|
+
* Base theme to extend from. Accepts 'light', 'dark', 'classic-light',
|
|
586
|
+
* 'classic-dark', 'modern-light', or 'modern-dark'.
|
|
587
|
+
*/
|
|
588
|
+
base?: BaseThemeId;
|
|
583
589
|
defaults?: Partial<DefaultTheme['defaults']>;
|
|
584
590
|
/** Fallback chain for themeStyle resolution. Defaults to [id, base name]. */
|
|
585
591
|
fallbacks?: string[];
|
|
586
592
|
/** Unique theme identifier. */
|
|
587
593
|
id?: string;
|
|
588
594
|
/** @deprecated Use `base` instead. Kept for backward compatibility. */
|
|
589
|
-
theme
|
|
595
|
+
theme?: 'light' | 'dark';
|
|
590
596
|
typography?: Partial<Omit<DefaultTheme['fonts'], 'useCssVariablesForFontFamily'>>;
|
|
591
597
|
}) => DefaultTheme;
|
|
592
598
|
export {};
|