@blateral/b.kit 1.21.3 → 2.0.0-beta.2
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/lib/components/base/Grid.d.ts +21 -1
- package/lib/components/base/Grid.d.ts.map +1 -1
- package/lib/components/base/Section.d.ts.map +1 -1
- package/lib/components/base/Wrapper.d.ts +1 -0
- package/lib/components/base/Wrapper.d.ts.map +1 -1
- package/lib/components/base/icons/AngleRight.d.ts +7 -0
- package/lib/components/base/icons/AngleRight.d.ts.map +1 -0
- package/lib/components/base/icons/ExclamationMark.d.ts +7 -0
- package/lib/components/base/icons/ExclamationMark.d.ts.map +1 -0
- package/lib/components/base/icons/Play.d.ts.map +1 -1
- package/lib/components/base/icons/socials/Instagram.d.ts.map +1 -1
- package/lib/components/blocks/Actions.d.ts +6 -1
- package/lib/components/blocks/Actions.d.ts.map +1 -1
- package/lib/components/blocks/Alert.d.ts +26 -0
- package/lib/components/blocks/Alert.d.ts.map +1 -0
- package/lib/components/blocks/CookieConsent.d.ts +3 -3
- package/lib/components/blocks/CookieConsent.d.ts.map +1 -1
- package/lib/components/blocks/Fact.d.ts +4 -4
- package/lib/components/blocks/Fact.d.ts.map +1 -1
- package/lib/components/blocks/Feature.d.ts +15 -7
- package/lib/components/blocks/Feature.d.ts.map +1 -1
- package/lib/components/blocks/Image.d.ts +37 -0
- package/lib/components/blocks/Image.d.ts.map +1 -1
- package/lib/components/blocks/IntroBlock.d.ts +19 -1
- package/lib/components/blocks/IntroBlock.d.ts.map +1 -1
- package/lib/components/blocks/NavBlock.d.ts +24 -0
- package/lib/components/blocks/NavBlock.d.ts.map +1 -0
- package/lib/components/blocks/NewsCard.d.ts +21 -4
- package/lib/components/blocks/NewsCard.d.ts.map +1 -1
- package/lib/components/blocks/PriceTag.d.ts +4 -3
- package/lib/components/blocks/PriceTag.d.ts.map +1 -1
- package/lib/components/blocks/PromotionCard.d.ts +17 -3
- package/lib/components/blocks/PromotionCard.d.ts.map +1 -1
- package/lib/components/blocks/Tag.d.ts +3 -0
- package/lib/components/blocks/Tag.d.ts.map +1 -1
- package/lib/components/blocks/Title.d.ts +11 -0
- package/lib/components/blocks/Title.d.ts.map +1 -1
- package/lib/components/blocks/VideoBlock.d.ts +23 -0
- package/lib/components/blocks/VideoBlock.d.ts.map +1 -0
- package/lib/components/blocks/VideoCard.d.ts.map +1 -1
- package/lib/components/buttons/Button.d.ts +1 -1
- package/lib/components/buttons/Button.d.ts.map +1 -1
- package/lib/components/buttons/ButtonGhost.d.ts.map +1 -1
- package/lib/components/buttons/Pointer.d.ts.map +1 -1
- package/lib/components/debug/DebugLines.d.ts +4 -0
- package/lib/components/debug/DebugLines.d.ts.map +1 -0
- package/lib/components/fields/CompactForm.d.ts +1 -2
- package/lib/components/fields/CompactForm.d.ts.map +1 -1
- package/lib/components/sections/Accordion.d.ts +87 -60
- package/lib/components/sections/Accordion.d.ts.map +1 -1
- package/lib/components/sections/{CallToActionDouble.d.ts → AlertList.d.ts} +93 -100
- package/lib/components/sections/AlertList.d.ts.map +1 -0
- package/lib/components/sections/Article.d.ts +89 -47
- package/lib/components/sections/Article.d.ts.map +1 -1
- package/lib/components/sections/CallToAction.d.ts +106 -55
- package/lib/components/sections/CallToAction.d.ts.map +1 -1
- package/lib/components/sections/ComparisonSlider.d.ts +67 -47
- package/lib/components/sections/ComparisonSlider.d.ts.map +1 -1
- package/lib/components/sections/CrossPromotion.d.ts +81 -51
- package/lib/components/sections/CrossPromotion.d.ts.map +1 -1
- package/lib/components/sections/DynamicForm.d.ts +67 -47
- package/lib/components/sections/DynamicForm.d.ts.map +1 -1
- package/lib/components/sections/FactGrid.d.ts +75 -47
- package/lib/components/sections/FactGrid.d.ts.map +1 -1
- package/lib/components/sections/FactList.d.ts +82 -56
- package/lib/components/sections/FactList.d.ts.map +1 -1
- package/lib/components/sections/FeatureList.d.ts +74 -48
- package/lib/components/sections/FeatureList.d.ts.map +1 -1
- package/lib/components/sections/Footer.d.ts +67 -47
- package/lib/components/sections/Footer.d.ts.map +1 -1
- package/lib/components/sections/Form.d.ts +67 -47
- package/lib/components/sections/Form.d.ts.map +1 -1
- package/lib/components/sections/Gallery.d.ts +67 -47
- package/lib/components/sections/Gallery.d.ts.map +1 -1
- package/lib/components/sections/IconList.d.ts +113 -55
- package/lib/components/sections/IconList.d.ts.map +1 -1
- package/lib/components/sections/Intro.d.ts +90 -50
- package/lib/components/sections/Intro.d.ts.map +1 -1
- package/lib/components/sections/Map.d.ts +67 -47
- package/lib/components/sections/Map.d.ts.map +1 -1
- package/lib/components/sections/NavList.d.ts +390 -0
- package/lib/components/sections/NavList.d.ts.map +1 -0
- package/lib/components/sections/NumberList.d.ts +67 -47
- package/lib/components/sections/NumberList.d.ts.map +1 -1
- package/lib/components/sections/Poster.d.ts +89 -51
- package/lib/components/sections/Poster.d.ts.map +1 -1
- package/lib/components/sections/PriceList.d.ts +85 -56
- package/lib/components/sections/PriceList.d.ts.map +1 -1
- package/lib/components/sections/PriceTable.d.ts +76 -48
- package/lib/components/sections/PriceTable.d.ts.map +1 -1
- package/lib/components/sections/Quicknav.d.ts +67 -47
- package/lib/components/sections/Quicknav.d.ts.map +1 -1
- package/lib/components/sections/Quote.d.ts +75 -47
- package/lib/components/sections/Quote.d.ts.map +1 -1
- package/lib/components/sections/SocialNav.d.ts +67 -47
- package/lib/components/sections/SocialNav.d.ts.map +1 -1
- package/lib/components/sections/SocialWall.d.ts +83 -58
- package/lib/components/sections/SocialWall.d.ts.map +1 -1
- package/lib/components/sections/Table.d.ts +68 -48
- package/lib/components/sections/Table.d.ts.map +1 -1
- package/lib/components/sections/Teaser.d.ts +112 -59
- package/lib/components/sections/Teaser.d.ts.map +1 -1
- package/lib/components/sections/TeaserWide.d.ts +108 -59
- package/lib/components/sections/TeaserWide.d.ts.map +1 -1
- package/lib/components/sections/Timeline.d.ts +67 -47
- package/lib/components/sections/Timeline.d.ts.map +1 -1
- package/lib/components/sections/Video.d.ts +69 -49
- package/lib/components/sections/Video.d.ts.map +1 -1
- package/lib/components/sections/carousel/FeatureCarousel.d.ts +67 -47
- package/lib/components/sections/carousel/FeatureCarousel.d.ts.map +1 -1
- package/lib/components/sections/carousel/ImageCarousel.d.ts +67 -47
- package/lib/components/sections/carousel/ImageCarousel.d.ts.map +1 -1
- package/lib/components/sections/carousel/PromotionCarousel.d.ts +69 -49
- package/lib/components/sections/carousel/PromotionCarousel.d.ts.map +1 -1
- package/lib/components/sections/carousel/VideoCarousel.d.ts +67 -47
- package/lib/components/sections/carousel/VideoCarousel.d.ts.map +1 -1
- package/lib/components/sections/header/Header.d.ts +67 -47
- package/lib/components/sections/header/Header.d.ts.map +1 -1
- package/lib/components/sections/navigation/Navigation.d.ts +2 -2
- package/lib/components/sections/navigation/Navigation.d.ts.map +1 -1
- package/lib/components/sections/navigation/remastered/NavBar.d.ts +19 -0
- package/lib/components/sections/navigation/remastered/NavBar.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/Navigation.d.ts +16 -0
- package/lib/components/sections/navigation/remastered/Navigation.d.ts.map +1 -0
- package/lib/components/sections/news/NewsAuthorCard.d.ts +67 -47
- package/lib/components/sections/news/NewsAuthorCard.d.ts.map +1 -1
- package/lib/components/sections/news/NewsFooter.d.ts +67 -47
- package/lib/components/sections/news/NewsFooter.d.ts.map +1 -1
- package/lib/components/sections/news/NewsImages.d.ts +67 -47
- package/lib/components/sections/news/NewsImages.d.ts.map +1 -1
- package/lib/components/sections/news/NewsIntro.d.ts +67 -47
- package/lib/components/sections/news/NewsIntro.d.ts.map +1 -1
- package/lib/components/sections/news/NewsList.d.ts +101 -54
- package/lib/components/sections/news/NewsList.d.ts.map +1 -1
- package/lib/components/sections/news/NewsOverview.d.ts +106 -55
- package/lib/components/sections/news/NewsOverview.d.ts.map +1 -1
- package/lib/components/sections/news/NewsTable.d.ts +67 -47
- package/lib/components/sections/news/NewsTable.d.ts.map +1 -1
- package/lib/components/sections/news/NewsText.d.ts +67 -47
- package/lib/components/sections/news/NewsText.d.ts.map +1 -1
- package/lib/components/sections/news/NewsVideo.d.ts +67 -47
- package/lib/components/sections/news/NewsVideo.d.ts.map +1 -1
- package/lib/components/typography/Callout.d.ts.map +1 -1
- package/lib/components/typography/Copy.d.ts +3 -2
- package/lib/components/typography/Copy.d.ts.map +1 -1
- package/lib/components/typography/Heading.d.ts +1 -1
- package/lib/components/typography/Heading.d.ts.map +1 -1
- package/lib/components/typography/Link.d.ts +6 -4
- package/lib/components/typography/Link.d.ts.map +1 -1
- package/lib/index.d.ts +8 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +2 -2
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/LibThemeProvider.d.ts +8 -2
- package/lib/utils/LibThemeProvider.d.ts.map +1 -1
- package/lib/utils/fontLoading.d.ts +14 -0
- package/lib/utils/fontLoading.d.ts.map +1 -0
- package/lib/utils/styles.d.ts +69 -11
- package/lib/utils/styles.d.ts.map +1 -1
- package/lib/utils/useMediaQuery.d.ts.map +1 -1
- package/lib/utils/usePageScroll.d.ts +23 -0
- package/lib/utils/usePageScroll.d.ts.map +1 -0
- package/package.json +5 -5
- package/lib/components/sections/CallToActionDouble.d.ts.map +0 -1
|
@@ -3,7 +3,7 @@ import { DefaultTheme } from 'styled-components';
|
|
|
3
3
|
declare type RecursivePartial<T> = {
|
|
4
4
|
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
5
5
|
};
|
|
6
|
-
export declare type
|
|
6
|
+
export declare type ThemeMods = RecursivePartial<DefaultTheme>;
|
|
7
7
|
/**
|
|
8
8
|
* Combining Theme objects
|
|
9
9
|
* @param target Result theme object
|
|
@@ -11,10 +11,16 @@ export declare type Theme = RecursivePartial<DefaultTheme>;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const assignTo: <T extends DefaultTheme | RecursivePartial<DefaultTheme>>(target: T, source?: RecursivePartial<DefaultTheme> | undefined) => T;
|
|
13
13
|
export declare const LibThemeProvider: FC<{
|
|
14
|
-
theme?:
|
|
14
|
+
theme?: ThemeMods;
|
|
15
15
|
}>;
|
|
16
16
|
export declare const modifyTheme: (activeTheme?: DefaultTheme | undefined, modifications?: RecursivePartial<DefaultTheme> | undefined) => DefaultTheme;
|
|
17
|
+
export declare const useLibTheme: () => {
|
|
18
|
+
colors: import("./styles").Colors;
|
|
19
|
+
fonts: import("./styles").Fonts;
|
|
20
|
+
globals: import("./styles").GlobalSettings;
|
|
21
|
+
};
|
|
17
22
|
export declare const withLibTheme: <P extends Record<string, unknown>>(Component: React.ComponentType<P>) => React.FC<P & {
|
|
23
|
+
/** Component specific theme properties that overrides global theme settings */
|
|
18
24
|
theme?: RecursivePartial<DefaultTheme> | undefined;
|
|
19
25
|
}>;
|
|
20
26
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LibThemeProvider.d.ts","sourceRoot":"","sources":["../../src/utils/LibThemeProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LibThemeProvider.d.ts","sourceRoot":"","sources":["../../src/utils/LibThemeProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAc,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,YAAY,EAA+B,MAAM,mBAAmB,CAAC;AAU9E,aAAK,gBAAgB,CAAC,CAAC,IAAI;KACtB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1C,CAAC;AAEF,oBAAY,SAAS,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAsCvD;;;;GAIG;AACH,eAAO,MAAM,QAAQ,gIA8BpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC;CACrB,CAUA,CAAC;AAMF,eAAO,MAAM,WAAW,sHAuBvB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;CAQvB,CAAC;AAEF,eAAO,MAAM,YAAY;IAKb,+EAA+E;;EAatF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FontFallback {
|
|
3
|
+
name: string;
|
|
4
|
+
altFont: string;
|
|
5
|
+
sizeAdjust: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Font {
|
|
8
|
+
rootPath: string;
|
|
9
|
+
sourcePath: string;
|
|
10
|
+
fallbacks?: FontFallback[];
|
|
11
|
+
}
|
|
12
|
+
export declare const importFonts: (fonts: Font[]) => JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=fontLoading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fontLoading.d.ts","sourceRoot":"","sources":["../../src/utils/fontLoading.tsx"],"names":[],"mappings":";AAEA,UAAU,YAAY;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,IAAI;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,UAAW,IAAI,EAAE,gBAsDxC,CAAC"}
|
package/lib/utils/styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultTheme } from 'styled-components';
|
|
2
|
-
export declare type MediaQueryType = 'small' | 'medium' | 'semilarge' | 'large' | 'xlarge' | 'xxlarge'
|
|
2
|
+
export declare type MediaQueryType = 'small' | 'medium' | 'semilarge' | 'large' | 'xlarge' | 'xxlarge';
|
|
3
3
|
export declare const mq: {
|
|
4
4
|
[key in Exclude<MediaQueryType, 'small'>]: string;
|
|
5
5
|
};
|
|
@@ -12,13 +12,49 @@ export declare const spacings: {
|
|
|
12
12
|
};
|
|
13
13
|
/***** Range Helper *****/
|
|
14
14
|
export declare const getSizeByRange: (range: [number, number]) => string;
|
|
15
|
-
export declare const withRange: (range: [number, number], property: string) =>
|
|
15
|
+
export declare const withRange: (range: [number, number?], property: string) => "" | import("styled-components").FlattenSimpleInterpolation;
|
|
16
16
|
/**
|
|
17
17
|
* Generate css attributes to style text color with plain color or gradient
|
|
18
18
|
* @param fallbackColor
|
|
19
19
|
* @param gradient
|
|
20
20
|
*/
|
|
21
21
|
export declare const styleTextColor: (fallbackColor?: string | undefined, gradient?: string | undefined) => import("styled-components").FlattenSimpleInterpolation;
|
|
22
|
+
/***** New Color Types *****/
|
|
23
|
+
interface NewColorOptions {
|
|
24
|
+
default: string;
|
|
25
|
+
inverted: string;
|
|
26
|
+
hover: string;
|
|
27
|
+
invertedHover: string;
|
|
28
|
+
}
|
|
29
|
+
export declare type NewColorOptionsType = keyof NewColorOptions;
|
|
30
|
+
export interface NewColors {
|
|
31
|
+
text: {
|
|
32
|
+
default: string;
|
|
33
|
+
inverted: string;
|
|
34
|
+
error: string;
|
|
35
|
+
heading: string;
|
|
36
|
+
headingInverted: string;
|
|
37
|
+
copy: string;
|
|
38
|
+
copyInverted: string;
|
|
39
|
+
};
|
|
40
|
+
sectionBg: {
|
|
41
|
+
light: string;
|
|
42
|
+
medium: string;
|
|
43
|
+
dark: string;
|
|
44
|
+
};
|
|
45
|
+
elementBg: {
|
|
46
|
+
light: string;
|
|
47
|
+
lightHover: string;
|
|
48
|
+
medium: string;
|
|
49
|
+
mediumHover: string;
|
|
50
|
+
dark: string;
|
|
51
|
+
darkHover: string;
|
|
52
|
+
};
|
|
53
|
+
primary: NewColorOptions;
|
|
54
|
+
secondary: NewColorOptions;
|
|
55
|
+
error: string;
|
|
56
|
+
}
|
|
57
|
+
export declare type NewColorType = keyof NewColors;
|
|
22
58
|
/***** Color Types *****/
|
|
23
59
|
interface ColorOptions {
|
|
24
60
|
light: string;
|
|
@@ -32,8 +68,8 @@ export interface Colors {
|
|
|
32
68
|
mono: ColorOptions;
|
|
33
69
|
primary: ColorOptions;
|
|
34
70
|
secondary: ColorOptions;
|
|
35
|
-
tertiary: ColorOptions;
|
|
36
71
|
error: string;
|
|
72
|
+
new: NewColors;
|
|
37
73
|
}
|
|
38
74
|
export declare type ColorType = keyof Colors;
|
|
39
75
|
/***** Font Types *****/
|
|
@@ -43,7 +79,7 @@ export interface FontProps {
|
|
|
43
79
|
style?: string;
|
|
44
80
|
lineHeight?: string;
|
|
45
81
|
letterSpacing?: string;
|
|
46
|
-
size: [number, number];
|
|
82
|
+
size: [number, number?];
|
|
47
83
|
textTransform?: string;
|
|
48
84
|
color?: string;
|
|
49
85
|
colorInverted?: string;
|
|
@@ -66,7 +102,6 @@ export interface Fonts {
|
|
|
66
102
|
'heading-2': FontProps;
|
|
67
103
|
'heading-3': FontProps;
|
|
68
104
|
'heading-4': FontProps;
|
|
69
|
-
label: FontOptions;
|
|
70
105
|
callout: FontOptions;
|
|
71
106
|
}
|
|
72
107
|
export declare type FontType = keyof Fonts;
|
|
@@ -75,24 +110,33 @@ export declare type FontType = keyof Fonts;
|
|
|
75
110
|
*/
|
|
76
111
|
export declare type FontBase = FontProps;
|
|
77
112
|
/***** Global Settings *****/
|
|
113
|
+
export declare type NavBarHeights = {
|
|
114
|
+
small: number;
|
|
115
|
+
large: number;
|
|
116
|
+
};
|
|
78
117
|
export interface GlobalSettings {
|
|
79
118
|
sections: {
|
|
80
119
|
/** Paddings and Margins for seperating each section */
|
|
81
120
|
seperation: {
|
|
82
121
|
forcePadding: boolean;
|
|
83
122
|
padding: {
|
|
84
|
-
default: [number, number];
|
|
85
|
-
stackable: [number, number];
|
|
123
|
+
default: [number, number?];
|
|
124
|
+
stackable: [number, number?];
|
|
86
125
|
};
|
|
87
126
|
margin: {
|
|
88
|
-
default: [number, number];
|
|
89
|
-
stackable: [number, number];
|
|
127
|
+
default: [number, number?];
|
|
128
|
+
stackable: [number, number?];
|
|
90
129
|
};
|
|
91
130
|
};
|
|
92
131
|
/** Radius of image and card edges */
|
|
93
132
|
edgeRadius: string | null;
|
|
94
133
|
/** Customnize gradient for all text on image background gradients */
|
|
95
134
|
imageTextGradient: string;
|
|
135
|
+
/** Show placeholder background unitl image has been loaded */
|
|
136
|
+
imagePlaceholderBg: {
|
|
137
|
+
default: string;
|
|
138
|
+
inverted: string;
|
|
139
|
+
};
|
|
96
140
|
/** Date and Time Formats for all news sections */
|
|
97
141
|
newsDateFormat: string;
|
|
98
142
|
newsTimeFormat: string;
|
|
@@ -101,12 +145,26 @@ export interface GlobalSettings {
|
|
|
101
145
|
datepickerLocaleKey: 'de' | 'en';
|
|
102
146
|
datepickerDateFormat: string;
|
|
103
147
|
};
|
|
148
|
+
navigation: {
|
|
149
|
+
/** Settings of top navigation bar */
|
|
150
|
+
navBar: {
|
|
151
|
+
isTopNavVisible: boolean;
|
|
152
|
+
topNavHeight: {
|
|
153
|
+
mobile: NavBarHeights;
|
|
154
|
+
desktop: NavBarHeights;
|
|
155
|
+
};
|
|
156
|
+
height: {
|
|
157
|
+
mobile: NavBarHeights;
|
|
158
|
+
desktop: NavBarHeights;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
104
162
|
}
|
|
105
163
|
/***** Theme Helper *****/
|
|
106
|
-
export declare const
|
|
164
|
+
export declare const baseTheme: DefaultTheme;
|
|
107
165
|
export declare const getTheme: (theme?: DefaultTheme | undefined) => GlobalSettings | DefaultTheme;
|
|
108
166
|
export declare const getColors: (theme?: DefaultTheme | undefined) => Colors;
|
|
109
167
|
export declare const getFonts: (theme?: DefaultTheme | undefined) => Fonts;
|
|
110
|
-
export declare const
|
|
168
|
+
export declare const getGlobals: (theme?: DefaultTheme | undefined) => GlobalSettings;
|
|
111
169
|
export {};
|
|
112
170
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/utils/styles.ts"],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Ac,EAAE,KAAG,
|
|
1
|
+
{"version":3,"file":"useMediaQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useMediaQuery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAM,MAAM,UAAU,CAAC;AAE9C,eAAO,MAAM,SAAS,SACqD,CAAC;AAa5E,eAAO,MAAM,aAAa,aAAc,cAAc,EAAE,KAAG,cAc1D,CAAC;AAEF,eAAO,MAAM,aAAa,oEAoBzB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum PageScrollDirection {
|
|
2
|
+
UP = 0,
|
|
3
|
+
DOWN = 1
|
|
4
|
+
}
|
|
5
|
+
interface ScrollSettings {
|
|
6
|
+
/** Direction state change delay in pixels */
|
|
7
|
+
directionOffset?: {
|
|
8
|
+
up?: number;
|
|
9
|
+
down?: number;
|
|
10
|
+
};
|
|
11
|
+
/** Set top offset area */
|
|
12
|
+
offset?: number;
|
|
13
|
+
/** On leave top offset callback */
|
|
14
|
+
onLeftOffset?: (dir: PageScrollDirection) => void;
|
|
15
|
+
}
|
|
16
|
+
declare const usePageScroll: (settings?: ScrollSettings | undefined) => {
|
|
17
|
+
isTop: boolean;
|
|
18
|
+
scrollDirection: PageScrollDirection;
|
|
19
|
+
isInOffset: boolean;
|
|
20
|
+
leftOffsetFromTop: boolean;
|
|
21
|
+
};
|
|
22
|
+
export default usePageScroll;
|
|
23
|
+
//# sourceMappingURL=usePageScroll.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePageScroll.d.ts","sourceRoot":"","sources":["../../src/utils/usePageScroll.ts"],"names":[],"mappings":"AAEA,oBAAY,mBAAmB;IAC3B,EAAE,IAAA;IACF,IAAI,IAAA;CACP;AAED,UAAU,cAAc;IACpB,6CAA6C;IAC7C,eAAe,CAAC,EAAE;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mCAAmC;IACnC,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACrD;AAED,QAAA,MAAM,aAAa;;;;;CAgGlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blateral/b.kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@rollup/plugin-babel": "^5.3.0",
|
|
38
38
|
"@rollup/plugin-commonjs": "^17.0.0",
|
|
39
39
|
"@rollup/plugin-node-resolve": "^11.0.0",
|
|
40
|
-
"@storybook/addon-a11y": "^6.4.
|
|
41
|
-
"@storybook/addon-essentials": "^6.4.
|
|
42
|
-
"@storybook/react": "6.4.
|
|
40
|
+
"@storybook/addon-a11y": "^6.4.19",
|
|
41
|
+
"@storybook/addon-essentials": "^6.4.19",
|
|
42
|
+
"@storybook/react": "6.4.19",
|
|
43
43
|
"@storybook/storybook-deployer": "^2.8.7",
|
|
44
|
-
"@storybook/theming": "^6.4.
|
|
44
|
+
"@storybook/theming": "^6.4.19",
|
|
45
45
|
"@types/react": "^17.0.0",
|
|
46
46
|
"@types/react-datepicker": "4.3.4",
|
|
47
47
|
"@types/react-dom": "^17.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CallToActionDouble.d.ts","sourceRoot":"","sources":["../../../src/components/sections/CallToActionDouble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,8BAAsC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA8I/B,MAAM,WAAW,eAAe;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7D,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;CACzC;AAgND,eAAO,MAAM,2BAA2B;;;;;;;;2DAxHM,MAAM,SAAS;6DACb,MAAM,SAAS;;;;;;;;+DASb,MAAM,SAAS;iEACb,MAAM,SAAS;;EA6GN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAC9D,wBAAgD"}
|