@blateral/b.kit 1.21.2 → 2.0.0-beta.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.
Files changed (163) hide show
  1. package/lib/components/base/Grid.d.ts +21 -1
  2. package/lib/components/base/Grid.d.ts.map +1 -1
  3. package/lib/components/base/Section.d.ts.map +1 -1
  4. package/lib/components/base/Wrapper.d.ts +1 -0
  5. package/lib/components/base/Wrapper.d.ts.map +1 -1
  6. package/lib/components/base/icons/AngleRight.d.ts +7 -0
  7. package/lib/components/base/icons/AngleRight.d.ts.map +1 -0
  8. package/lib/components/base/icons/ExclamationMark.d.ts +7 -0
  9. package/lib/components/base/icons/ExclamationMark.d.ts.map +1 -0
  10. package/lib/components/base/icons/Play.d.ts.map +1 -1
  11. package/lib/components/base/icons/socials/Instagram.d.ts.map +1 -1
  12. package/lib/components/blocks/Actions.d.ts +6 -1
  13. package/lib/components/blocks/Actions.d.ts.map +1 -1
  14. package/lib/components/blocks/Alert.d.ts +10 -0
  15. package/lib/components/blocks/Alert.d.ts.map +1 -0
  16. package/lib/components/blocks/CookieConsent.d.ts +3 -3
  17. package/lib/components/blocks/CookieConsent.d.ts.map +1 -1
  18. package/lib/components/blocks/Fact.d.ts +4 -4
  19. package/lib/components/blocks/Fact.d.ts.map +1 -1
  20. package/lib/components/blocks/Feature.d.ts +15 -7
  21. package/lib/components/blocks/Feature.d.ts.map +1 -1
  22. package/lib/components/blocks/Image.d.ts +37 -0
  23. package/lib/components/blocks/Image.d.ts.map +1 -1
  24. package/lib/components/blocks/IntroBlock.d.ts +19 -1
  25. package/lib/components/blocks/IntroBlock.d.ts.map +1 -1
  26. package/lib/components/blocks/NewsCard.d.ts +21 -4
  27. package/lib/components/blocks/NewsCard.d.ts.map +1 -1
  28. package/lib/components/blocks/PriceTag.d.ts +4 -3
  29. package/lib/components/blocks/PriceTag.d.ts.map +1 -1
  30. package/lib/components/blocks/PromotionCard.d.ts +17 -3
  31. package/lib/components/blocks/PromotionCard.d.ts.map +1 -1
  32. package/lib/components/blocks/Tag.d.ts +3 -0
  33. package/lib/components/blocks/Tag.d.ts.map +1 -1
  34. package/lib/components/blocks/Title.d.ts +11 -0
  35. package/lib/components/blocks/Title.d.ts.map +1 -1
  36. package/lib/components/blocks/VideoBlock.d.ts +23 -0
  37. package/lib/components/blocks/VideoBlock.d.ts.map +1 -0
  38. package/lib/components/blocks/VideoCard.d.ts.map +1 -1
  39. package/lib/components/buttons/Button.d.ts +1 -1
  40. package/lib/components/buttons/Button.d.ts.map +1 -1
  41. package/lib/components/buttons/ButtonGhost.d.ts.map +1 -1
  42. package/lib/components/buttons/Pointer.d.ts.map +1 -1
  43. package/lib/components/debug/DebugLines.d.ts +4 -0
  44. package/lib/components/debug/DebugLines.d.ts.map +1 -0
  45. package/lib/components/fields/CompactForm.d.ts +1 -2
  46. package/lib/components/fields/CompactForm.d.ts.map +1 -1
  47. package/lib/components/sections/Accordion.d.ts +87 -60
  48. package/lib/components/sections/Accordion.d.ts.map +1 -1
  49. package/lib/components/sections/AlertList.d.ts +8 -0
  50. package/lib/components/sections/AlertList.d.ts.map +1 -0
  51. package/lib/components/sections/Article.d.ts +89 -47
  52. package/lib/components/sections/Article.d.ts.map +1 -1
  53. package/lib/components/sections/CallToAction.d.ts +106 -55
  54. package/lib/components/sections/CallToAction.d.ts.map +1 -1
  55. package/lib/components/sections/ComparisonSlider.d.ts +67 -47
  56. package/lib/components/sections/ComparisonSlider.d.ts.map +1 -1
  57. package/lib/components/sections/CrossPromotion.d.ts +81 -51
  58. package/lib/components/sections/CrossPromotion.d.ts.map +1 -1
  59. package/lib/components/sections/DynamicForm.d.ts +67 -47
  60. package/lib/components/sections/DynamicForm.d.ts.map +1 -1
  61. package/lib/components/sections/FactGrid.d.ts +75 -47
  62. package/lib/components/sections/FactGrid.d.ts.map +1 -1
  63. package/lib/components/sections/FactList.d.ts +82 -56
  64. package/lib/components/sections/FactList.d.ts.map +1 -1
  65. package/lib/components/sections/FeatureList.d.ts +74 -48
  66. package/lib/components/sections/FeatureList.d.ts.map +1 -1
  67. package/lib/components/sections/Footer.d.ts +67 -47
  68. package/lib/components/sections/Footer.d.ts.map +1 -1
  69. package/lib/components/sections/Form.d.ts +67 -47
  70. package/lib/components/sections/Form.d.ts.map +1 -1
  71. package/lib/components/sections/Gallery.d.ts +67 -47
  72. package/lib/components/sections/Gallery.d.ts.map +1 -1
  73. package/lib/components/sections/IconList.d.ts +113 -55
  74. package/lib/components/sections/IconList.d.ts.map +1 -1
  75. package/lib/components/sections/Intro.d.ts +90 -50
  76. package/lib/components/sections/Intro.d.ts.map +1 -1
  77. package/lib/components/sections/Map.d.ts +67 -47
  78. package/lib/components/sections/Map.d.ts.map +1 -1
  79. package/lib/components/sections/NumberList.d.ts +67 -47
  80. package/lib/components/sections/NumberList.d.ts.map +1 -1
  81. package/lib/components/sections/Poster.d.ts +89 -51
  82. package/lib/components/sections/Poster.d.ts.map +1 -1
  83. package/lib/components/sections/PriceList.d.ts +85 -56
  84. package/lib/components/sections/PriceList.d.ts.map +1 -1
  85. package/lib/components/sections/PriceTable.d.ts +76 -48
  86. package/lib/components/sections/PriceTable.d.ts.map +1 -1
  87. package/lib/components/sections/Quicknav.d.ts +67 -47
  88. package/lib/components/sections/Quicknav.d.ts.map +1 -1
  89. package/lib/components/sections/Quote.d.ts +75 -47
  90. package/lib/components/sections/Quote.d.ts.map +1 -1
  91. package/lib/components/sections/SocialNav.d.ts +67 -47
  92. package/lib/components/sections/SocialNav.d.ts.map +1 -1
  93. package/lib/components/sections/SocialWall.d.ts +83 -58
  94. package/lib/components/sections/SocialWall.d.ts.map +1 -1
  95. package/lib/components/sections/Table.d.ts +68 -48
  96. package/lib/components/sections/Table.d.ts.map +1 -1
  97. package/lib/components/sections/Teaser.d.ts +112 -59
  98. package/lib/components/sections/Teaser.d.ts.map +1 -1
  99. package/lib/components/sections/TeaserWide.d.ts +108 -59
  100. package/lib/components/sections/TeaserWide.d.ts.map +1 -1
  101. package/lib/components/sections/Timeline.d.ts +67 -47
  102. package/lib/components/sections/Timeline.d.ts.map +1 -1
  103. package/lib/components/sections/Video.d.ts +69 -49
  104. package/lib/components/sections/Video.d.ts.map +1 -1
  105. package/lib/components/sections/carousel/FeatureCarousel.d.ts +67 -47
  106. package/lib/components/sections/carousel/FeatureCarousel.d.ts.map +1 -1
  107. package/lib/components/sections/carousel/ImageCarousel.d.ts +67 -47
  108. package/lib/components/sections/carousel/ImageCarousel.d.ts.map +1 -1
  109. package/lib/components/sections/carousel/PromotionCarousel.d.ts +69 -49
  110. package/lib/components/sections/carousel/PromotionCarousel.d.ts.map +1 -1
  111. package/lib/components/sections/carousel/VideoCarousel.d.ts +67 -47
  112. package/lib/components/sections/carousel/VideoCarousel.d.ts.map +1 -1
  113. package/lib/components/sections/header/Header.d.ts +67 -47
  114. package/lib/components/sections/header/Header.d.ts.map +1 -1
  115. package/lib/components/sections/navigation/Navigation.d.ts +2 -2
  116. package/lib/components/sections/navigation/Navigation.d.ts.map +1 -1
  117. package/lib/components/sections/navigation/remastered/NavBar.d.ts +19 -0
  118. package/lib/components/sections/navigation/remastered/NavBar.d.ts.map +1 -0
  119. package/lib/components/sections/navigation/remastered/Navigation.d.ts +16 -0
  120. package/lib/components/sections/navigation/remastered/Navigation.d.ts.map +1 -0
  121. package/lib/components/sections/news/NewsAuthorCard.d.ts +67 -47
  122. package/lib/components/sections/news/NewsAuthorCard.d.ts.map +1 -1
  123. package/lib/components/sections/news/NewsFooter.d.ts +67 -47
  124. package/lib/components/sections/news/NewsFooter.d.ts.map +1 -1
  125. package/lib/components/sections/news/NewsImages.d.ts +67 -47
  126. package/lib/components/sections/news/NewsImages.d.ts.map +1 -1
  127. package/lib/components/sections/news/NewsIntro.d.ts +67 -47
  128. package/lib/components/sections/news/NewsIntro.d.ts.map +1 -1
  129. package/lib/components/sections/news/NewsList.d.ts +69 -49
  130. package/lib/components/sections/news/NewsList.d.ts.map +1 -1
  131. package/lib/components/sections/news/NewsOverview.d.ts +105 -55
  132. package/lib/components/sections/news/NewsOverview.d.ts.map +1 -1
  133. package/lib/components/sections/news/NewsTable.d.ts +67 -47
  134. package/lib/components/sections/news/NewsTable.d.ts.map +1 -1
  135. package/lib/components/sections/news/NewsText.d.ts +67 -47
  136. package/lib/components/sections/news/NewsText.d.ts.map +1 -1
  137. package/lib/components/sections/news/NewsVideo.d.ts +67 -47
  138. package/lib/components/sections/news/NewsVideo.d.ts.map +1 -1
  139. package/lib/components/typography/Callout.d.ts.map +1 -1
  140. package/lib/components/typography/Copy.d.ts +3 -2
  141. package/lib/components/typography/Copy.d.ts.map +1 -1
  142. package/lib/components/typography/Heading.d.ts +1 -1
  143. package/lib/components/typography/Heading.d.ts.map +1 -1
  144. package/lib/components/typography/Link.d.ts +6 -4
  145. package/lib/components/typography/Link.d.ts.map +1 -1
  146. package/lib/index.d.ts +7 -7
  147. package/lib/index.d.ts.map +1 -1
  148. package/lib/index.es.js +2 -2
  149. package/lib/index.es.js.map +1 -1
  150. package/lib/index.js +1 -1
  151. package/lib/index.js.map +1 -1
  152. package/lib/utils/LibThemeProvider.d.ts +8 -2
  153. package/lib/utils/LibThemeProvider.d.ts.map +1 -1
  154. package/lib/utils/fontLoading.d.ts +14 -0
  155. package/lib/utils/fontLoading.d.ts.map +1 -0
  156. package/lib/utils/styles.d.ts +69 -11
  157. package/lib/utils/styles.d.ts.map +1 -1
  158. package/lib/utils/useMediaQuery.d.ts.map +1 -1
  159. package/lib/utils/usePageScroll.d.ts +23 -0
  160. package/lib/utils/usePageScroll.d.ts.map +1 -0
  161. package/package.json +5 -5
  162. package/lib/components/sections/CallToActionDouble.d.ts +0 -396
  163. 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 Theme = RecursivePartial<DefaultTheme>;
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?: 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":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAc,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,YAAY,EAA+B,MAAM,mBAAmB,CAAC;AAI9E,aAAK,gBAAgB,CAAC,CAAC,IAAI;KACtB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1C,CAAC;AAEF,oBAAY,KAAK,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;AAsCnD;;;;GAIG;AACH,eAAO,MAAM,QAAQ,gIA8BpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,CAUA,CAAC;AAMF,eAAO,MAAM,WAAW,sHAuBvB,CAAC;AAEF,eAAO,MAAM,YAAY;;EAexB,CAAC"}
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"}
@@ -1,5 +1,5 @@
1
1
  import { DefaultTheme } from 'styled-components';
2
- export declare type MediaQueryType = 'small' | 'medium' | 'semilarge' | 'large' | 'xlarge' | 'xxlarge' | 'xxxLarge';
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) => 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 getBaseTheme: () => DefaultTheme;
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 getGlobalSettings: (theme?: DefaultTheme | undefined) => GlobalSettings;
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"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,oBAAY,cAAc,GACpB,OAAO,GACP,QAAQ,GACR,WAAW,GACX,OAAO,GACP,QAAQ,GACR,SAAS,GACT,UAAU,CAAC;AAEjB,eAAO,MAAM,EAAE,EAAE;KAAG,GAAG,IAAI,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG,MAAM;CAOnE,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;CAMpB,CAAC;AAEF,0BAA0B;AAC1B,eAAO,MAAM,cAAc,UAAW,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,MACsD,CAAC;AAEhH,eAAO,MAAM,SAAS,UACX,CA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CAAC;AAEF,eAAO,MAAM,aAAa,oEAoBzB,CAAC"}
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": "1.21.2",
3
+ "version": "2.0.0-beta.1",
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.17",
41
- "@storybook/addon-essentials": "^6.4.13",
42
- "@storybook/react": "6.4.13",
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.13",
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",