@blateral/b.kit 2.0.0-beta.2 → 2.0.0-beta.2.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/lib/components/base/Section.d.ts +2 -0
- package/lib/components/base/Section.d.ts.map +1 -1
- package/lib/components/base/icons/AngleRight.d.ts.map +1 -1
- package/lib/components/base/icons/ArrowDown.d.ts +7 -0
- package/lib/components/base/icons/ArrowDown.d.ts.map +1 -0
- package/lib/components/blocks/Actions.d.ts +2 -0
- package/lib/components/blocks/Actions.d.ts.map +1 -1
- package/lib/components/blocks/Alert.d.ts +3 -6
- package/lib/components/blocks/Alert.d.ts.map +1 -1
- package/lib/components/blocks/CookieConsent.d.ts +1 -0
- package/lib/components/blocks/CookieConsent.d.ts.map +1 -1
- package/lib/components/blocks/EventBlock.d.ts +34 -0
- package/lib/components/blocks/EventBlock.d.ts.map +1 -0
- package/lib/components/blocks/LanguageSwitcher.d.ts +13 -0
- package/lib/components/blocks/LanguageSwitcher.d.ts.map +1 -0
- package/lib/components/blocks/NavBlock.d.ts.map +1 -1
- package/lib/components/blocks/NewsCard.d.ts +1 -3
- package/lib/components/blocks/NewsCard.d.ts.map +1 -1
- package/lib/components/buttons/Pointer.d.ts.map +1 -1
- package/lib/components/sections/Accordion.d.ts +5 -356
- package/lib/components/sections/Accordion.d.ts.map +1 -1
- package/lib/components/sections/AlertList.d.ts +5 -364
- package/lib/components/sections/AlertList.d.ts.map +1 -1
- package/lib/components/sections/Article.d.ts +5 -356
- package/lib/components/sections/Article.d.ts.map +1 -1
- package/lib/components/sections/CallToAction.d.ts +7 -356
- package/lib/components/sections/CallToAction.d.ts.map +1 -1
- package/lib/components/sections/CardList.d.ts +45 -0
- package/lib/components/sections/CardList.d.ts.map +1 -0
- package/lib/components/sections/ComparisonSlider.d.ts +5 -356
- package/lib/components/sections/ComparisonSlider.d.ts.map +1 -1
- package/lib/components/sections/CrossPromotion.d.ts +5 -356
- package/lib/components/sections/CrossPromotion.d.ts.map +1 -1
- package/lib/components/sections/DynamicForm.d.ts +5 -356
- package/lib/components/sections/DynamicForm.d.ts.map +1 -1
- package/lib/components/sections/EventList.d.ts +23 -0
- package/lib/components/sections/EventList.d.ts.map +1 -0
- package/lib/components/sections/FactGrid.d.ts +5 -356
- package/lib/components/sections/FactGrid.d.ts.map +1 -1
- package/lib/components/sections/FactList.d.ts +5 -356
- package/lib/components/sections/FactList.d.ts.map +1 -1
- package/lib/components/sections/FeatureList.d.ts +5 -356
- package/lib/components/sections/FeatureList.d.ts.map +1 -1
- package/lib/components/sections/Footer.d.ts +1 -356
- package/lib/components/sections/Footer.d.ts.map +1 -1
- package/lib/components/sections/Form.d.ts +1 -356
- package/lib/components/sections/Form.d.ts.map +1 -1
- package/lib/components/sections/Gallery.d.ts +5 -356
- package/lib/components/sections/Gallery.d.ts.map +1 -1
- package/lib/components/sections/IconList.d.ts +5 -356
- package/lib/components/sections/IconList.d.ts.map +1 -1
- package/lib/components/sections/IndexList.d.ts +34 -0
- package/lib/components/sections/IndexList.d.ts.map +1 -0
- package/lib/components/sections/Intro.d.ts +5 -356
- package/lib/components/sections/Intro.d.ts.map +1 -1
- package/lib/components/sections/Map.d.ts +5 -356
- package/lib/components/sections/Map.d.ts.map +1 -1
- package/lib/components/sections/NavList.d.ts +5 -356
- package/lib/components/sections/NavList.d.ts.map +1 -1
- package/lib/components/sections/NumberList.d.ts +22 -364
- package/lib/components/sections/NumberList.d.ts.map +1 -1
- package/lib/components/sections/Poster.d.ts +5 -356
- package/lib/components/sections/Poster.d.ts.map +1 -1
- package/lib/components/sections/PriceList.d.ts +5 -356
- package/lib/components/sections/PriceList.d.ts.map +1 -1
- package/lib/components/sections/PriceTable.d.ts +5 -356
- package/lib/components/sections/PriceTable.d.ts.map +1 -1
- package/lib/components/sections/Quicknav.d.ts +5 -356
- package/lib/components/sections/Quicknav.d.ts.map +1 -1
- package/lib/components/sections/Quote.d.ts +5 -356
- package/lib/components/sections/Quote.d.ts.map +1 -1
- package/lib/components/sections/SimpleImage.d.ts +2 -0
- package/lib/components/sections/SimpleImage.d.ts.map +1 -1
- package/lib/components/sections/SocialNav.d.ts +5 -356
- package/lib/components/sections/SocialNav.d.ts.map +1 -1
- package/lib/components/sections/SocialWall.d.ts +5 -356
- package/lib/components/sections/SocialWall.d.ts.map +1 -1
- package/lib/components/sections/Table.d.ts +5 -356
- package/lib/components/sections/Table.d.ts.map +1 -1
- package/lib/components/sections/Teaser.d.ts +5 -356
- package/lib/components/sections/Teaser.d.ts.map +1 -1
- package/lib/components/sections/TeaserWide.d.ts +5 -356
- package/lib/components/sections/TeaserWide.d.ts.map +1 -1
- package/lib/components/sections/Timeline.d.ts +5 -356
- package/lib/components/sections/Timeline.d.ts.map +1 -1
- package/lib/components/sections/Video.d.ts +5 -356
- package/lib/components/sections/Video.d.ts.map +1 -1
- package/lib/components/sections/carousel/FeatureCarousel.d.ts +3 -356
- package/lib/components/sections/carousel/FeatureCarousel.d.ts.map +1 -1
- package/lib/components/sections/carousel/ImageCarousel.d.ts +3 -356
- package/lib/components/sections/carousel/ImageCarousel.d.ts.map +1 -1
- package/lib/components/sections/carousel/PromotionCarousel.d.ts +3 -356
- package/lib/components/sections/carousel/PromotionCarousel.d.ts.map +1 -1
- package/lib/components/sections/carousel/VideoCarousel.d.ts +3 -356
- package/lib/components/sections/carousel/VideoCarousel.d.ts.map +1 -1
- package/lib/components/sections/header/Header.d.ts +1 -356
- package/lib/components/sections/header/Header.d.ts.map +1 -1
- package/lib/components/sections/navigation/remastered/NavBar.d.ts +26 -5
- package/lib/components/sections/navigation/remastered/NavBar.d.ts.map +1 -1
- package/lib/components/sections/navigation/remastered/Navigation.d.ts +39 -7
- package/lib/components/sections/navigation/remastered/Navigation.d.ts.map +1 -1
- package/lib/components/sections/navigation/remastered/menu/Menu.d.ts +39 -0
- package/lib/components/sections/navigation/remastered/menu/Menu.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/menu/variations/MenuFlyout.d.ts +8 -0
- package/lib/components/sections/navigation/remastered/menu/variations/MenuFlyout.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/menu/variations/MenuLarge.d.ts +9 -0
- package/lib/components/sections/navigation/remastered/menu/variations/MenuLarge.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/partials/NavBarBottom.d.ts +9 -0
- package/lib/components/sections/navigation/remastered/partials/NavBarBottom.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/partials/NavBarMain.d.ts +35 -0
- package/lib/components/sections/navigation/remastered/partials/NavBarMain.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/partials/NavBarTop.d.ts +11 -0
- package/lib/components/sections/navigation/remastered/partials/NavBarTop.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarBreadCrumbs.d.ts +13 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarBreadCrumbs.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarColumn.d.ts +7 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarColumn.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarLogo.d.ts +14 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarLogo.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarMenuToggle.d.ts +9 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarMenuToggle.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarNavList.d.ts +14 -0
- package/lib/components/sections/navigation/remastered/skeletons/BarNavList.d.ts.map +1 -0
- package/lib/components/sections/navigation/remastered/skeletons/Skeletons.d.ts +35 -0
- package/lib/components/sections/navigation/remastered/skeletons/Skeletons.d.ts.map +1 -0
- package/lib/components/sections/news/NewsAuthorCard.d.ts +1 -356
- package/lib/components/sections/news/NewsAuthorCard.d.ts.map +1 -1
- package/lib/components/sections/news/NewsFooter.d.ts +1 -356
- package/lib/components/sections/news/NewsFooter.d.ts.map +1 -1
- package/lib/components/sections/news/NewsImages.d.ts +1 -356
- package/lib/components/sections/news/NewsImages.d.ts.map +1 -1
- package/lib/components/sections/news/NewsIntro.d.ts +1 -356
- package/lib/components/sections/news/NewsIntro.d.ts.map +1 -1
- package/lib/components/sections/news/NewsList.d.ts +5 -356
- package/lib/components/sections/news/NewsList.d.ts.map +1 -1
- package/lib/components/sections/news/NewsOverview.d.ts +5 -356
- package/lib/components/sections/news/NewsOverview.d.ts.map +1 -1
- package/lib/components/sections/news/NewsTable.d.ts +1 -356
- package/lib/components/sections/news/NewsTable.d.ts.map +1 -1
- package/lib/components/sections/news/NewsText.d.ts +1 -356
- package/lib/components/sections/news/NewsText.d.ts.map +1 -1
- package/lib/components/sections/news/NewsVideo.d.ts +1 -356
- package/lib/components/sections/news/NewsVideo.d.ts.map +1 -1
- package/lib/components/typography/Copy.d.ts.map +1 -1
- package/lib/components/typography/Heading.d.ts.map +1 -1
- package/lib/components/typography/Link.d.ts +3 -0
- package/lib/components/typography/Link.d.ts.map +1 -1
- package/lib/index.d.ts +34 -27
- 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 +2 -2
- package/lib/utils/LibThemeProvider.d.ts.map +1 -1
- package/lib/utils/styles.d.ts +45 -7
- package/lib/utils/styles.d.ts.map +1 -1
- package/lib/utils/useEqualSheetHeight.d.ts +2 -2
- package/lib/utils/useEqualSheetHeight.d.ts.map +1 -1
- package/lib/utils/useMediaQuery.d.ts +16 -0
- package/lib/utils/useMediaQuery.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { DefaultTheme } from 'styled-components';
|
|
3
|
-
declare type RecursivePartial<T> = {
|
|
3
|
+
export declare type RecursivePartial<T> = {
|
|
4
4
|
[P in keyof T]?: RecursivePartial<T[P]>;
|
|
5
5
|
};
|
|
6
6
|
export declare type ThemeMods = RecursivePartial<DefaultTheme>;
|
|
@@ -18,10 +18,10 @@ export declare const useLibTheme: () => {
|
|
|
18
18
|
colors: import("./styles").Colors;
|
|
19
19
|
fonts: import("./styles").Fonts;
|
|
20
20
|
globals: import("./styles").GlobalSettings;
|
|
21
|
+
theme: DefaultTheme;
|
|
21
22
|
};
|
|
22
23
|
export declare const withLibTheme: <P extends Record<string, unknown>>(Component: React.ComponentType<P>) => React.FC<P & {
|
|
23
24
|
/** Component specific theme properties that overrides global theme settings */
|
|
24
25
|
theme?: RecursivePartial<DefaultTheme> | undefined;
|
|
25
26
|
}>;
|
|
26
|
-
export {};
|
|
27
27
|
//# sourceMappingURL=LibThemeProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,oBAAY,gBAAgB,CAAC,CAAC,IAAI;KAC7B,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;;;;;CASvB,CAAC;AAEF,eAAO,MAAM,YAAY;IAKb,+EAA+E;;EAatF,CAAC"}
|
package/lib/utils/styles.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { DefaultTheme } from 'styled-components';
|
|
2
3
|
export declare type MediaQueryType = 'small' | 'medium' | 'semilarge' | 'large' | 'xlarge' | 'xxlarge';
|
|
3
4
|
export declare const mq: {
|
|
@@ -103,6 +104,14 @@ export interface Fonts {
|
|
|
103
104
|
'heading-3': FontProps;
|
|
104
105
|
'heading-4': FontProps;
|
|
105
106
|
callout: FontOptions;
|
|
107
|
+
link: {
|
|
108
|
+
color: string;
|
|
109
|
+
colorInverted: string;
|
|
110
|
+
colorHover: string;
|
|
111
|
+
colorHoverInverted: string;
|
|
112
|
+
textTransform?: string;
|
|
113
|
+
textDecoration?: string;
|
|
114
|
+
};
|
|
106
115
|
}
|
|
107
116
|
export declare type FontType = keyof Fonts;
|
|
108
117
|
/**
|
|
@@ -114,6 +123,11 @@ export declare type NavBarHeights = {
|
|
|
114
123
|
small: number;
|
|
115
124
|
large: number;
|
|
116
125
|
};
|
|
126
|
+
export interface LinkIcon {
|
|
127
|
+
icon: React.ReactNode;
|
|
128
|
+
/** Patterns of Href value to show this icon (e.g. .svg, .png) */
|
|
129
|
+
patterns?: string[];
|
|
130
|
+
}
|
|
117
131
|
export interface GlobalSettings {
|
|
118
132
|
sections: {
|
|
119
133
|
/** Paddings and Margins for seperating each section */
|
|
@@ -141,6 +155,10 @@ export interface GlobalSettings {
|
|
|
141
155
|
newsDateFormat: string;
|
|
142
156
|
newsTimeFormat: string;
|
|
143
157
|
newsLocaleKey: 'de' | 'en';
|
|
158
|
+
/** Date and Time Formats for all event sections */
|
|
159
|
+
eventDateFormat: string;
|
|
160
|
+
eventTimeFormat: string;
|
|
161
|
+
eventLocaleKey: 'de' | 'en';
|
|
144
162
|
/** Date and Time Formats for Datepickers */
|
|
145
163
|
datepickerLocaleKey: 'de' | 'en';
|
|
146
164
|
datepickerDateFormat: string;
|
|
@@ -148,17 +166,37 @@ export interface GlobalSettings {
|
|
|
148
166
|
navigation: {
|
|
149
167
|
/** Settings of top navigation bar */
|
|
150
168
|
navBar: {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
169
|
+
/**
|
|
170
|
+
* Heights of top bar.
|
|
171
|
+
* Array values are like: [mobile, desktop]
|
|
172
|
+
* Top navbar is hidden if value equal 0
|
|
173
|
+
*/
|
|
174
|
+
topHeight: {
|
|
175
|
+
small: [number, number?];
|
|
176
|
+
large: [number, number?];
|
|
155
177
|
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
178
|
+
/**
|
|
179
|
+
* Heights of main bar.
|
|
180
|
+
* Array values are like: [mobile, desktop]
|
|
181
|
+
*/
|
|
182
|
+
mainHeight: {
|
|
183
|
+
small: [number, number?];
|
|
184
|
+
large: [number, number?];
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Heights of bottom bar.
|
|
188
|
+
* Array values are like: [mobile, desktop]
|
|
189
|
+
*/
|
|
190
|
+
bottomHeight: {
|
|
191
|
+
small: [number, number?];
|
|
192
|
+
large: [number, number?];
|
|
159
193
|
};
|
|
160
194
|
};
|
|
161
195
|
};
|
|
196
|
+
icons: {
|
|
197
|
+
/** Icon setup for link/download lists */
|
|
198
|
+
linkIcons: Array<LinkIcon>;
|
|
199
|
+
};
|
|
162
200
|
}
|
|
163
201
|
/***** Theme Helper *****/
|
|
164
202
|
export declare const baseTheme: DefaultTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/utils/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,mBAA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,UAAU,EAAE;QACR,qCAAqC;QACrC,MAAM,EAAE;YACJ;;;;eAIG;YACH,SAAS,EAAE;gBACP,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;gBACzB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;aAC5B,CAAC;YACF;;;eAGG;YACH,UAAU,EAAE;gBACR,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;gBACzB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;aAC5B,CAAC;YACF;;;eAGG;YACH,YAAY,EAAE;gBACV,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;gBACzB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;aAC5B,CAAC;SACL,CAAC;KACL,CAAC;IACF,KAAK,EAAE;QACH,yCAAyC;QACzC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;KAC9B,CAAC;CACL;AAqED,0BAA0B;AAC1B,eAAO,MAAM,SAAS,EAAE,YAIvB,CAAC;AAEF,eAAO,MAAM,QAAQ,qEAEpB,CAAC;AAEF,eAAO,MAAM,SAAS,8CAErB,CAAC;AAEF,eAAO,MAAM,QAAQ,6CAIpB,CAAC;AAEF,eAAO,MAAM,UAAU,sDAEtB,CAAC"}
|
|
@@ -6,12 +6,12 @@ interface ItemsPerRow {
|
|
|
6
6
|
large?: number;
|
|
7
7
|
xlarge?: number;
|
|
8
8
|
}
|
|
9
|
-
export declare const useEqualSheetHeight: (props: {
|
|
9
|
+
export declare const useEqualSheetHeight: <T extends HTMLElement>(props: {
|
|
10
10
|
listLength: number;
|
|
11
11
|
identifiers: string[];
|
|
12
12
|
responsive?: ItemsPerRow;
|
|
13
13
|
}) => {
|
|
14
|
-
sheetRefs: MutableRefObject<
|
|
14
|
+
sheetRefs: MutableRefObject<T>[];
|
|
15
15
|
triggerCalculation: () => void;
|
|
16
16
|
};
|
|
17
17
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEqualSheetHeight.d.ts","sourceRoot":"","sources":["../../src/utils/useEqualSheetHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,gBAAgB,EAGnB,MAAM,OAAO,CAAC;AAIf,UAAU,WAAW;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"useEqualSheetHeight.d.ts","sourceRoot":"","sources":["../../src/utils/useEqualSheetHeight.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,gBAAgB,EAGnB,MAAM,OAAO,CAAC;AAIf,UAAU,WAAW;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD,eAAO,MAAM,mBAAmB,iCAAkC;IAC9D,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,CAAC,EAAE,WAAW,CAAC;CAC5B;;;CAoIA,CAAC"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { MediaQueryType } from './styles';
|
|
2
2
|
export declare const isBrowser: boolean;
|
|
3
3
|
export declare const getMediaQuery: (checkMqs: MediaQueryType[]) => MediaQueryType;
|
|
4
|
+
export declare const getMediaQueries: () => {
|
|
5
|
+
small: boolean;
|
|
6
|
+
medium: boolean;
|
|
7
|
+
semilarge: boolean;
|
|
8
|
+
large: boolean;
|
|
9
|
+
xlarge: boolean;
|
|
10
|
+
xxlarge: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const useMediaQueries: () => {
|
|
13
|
+
small: boolean;
|
|
14
|
+
medium: boolean;
|
|
15
|
+
semilarge: boolean;
|
|
16
|
+
large: boolean;
|
|
17
|
+
xlarge: boolean;
|
|
18
|
+
xxlarge: boolean;
|
|
19
|
+
};
|
|
4
20
|
export declare const useMediaQuery: (mqs?: MediaQueryType[] | undefined) => MediaQueryType | undefined;
|
|
5
21
|
//# sourceMappingURL=useMediaQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
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,eAAe;;;;;;;CAS3B,CAAC;AAkBF,eAAO,MAAM,eAAe;;;;;;;CA6B3B,CAAC;AAEF,eAAO,MAAM,aAAa,oEAoBzB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blateral/b.kit",
|
|
3
|
-
"version": "2.0.0-beta.2",
|
|
3
|
+
"version": "2.0.0-beta.2.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"check-publish": "yarn pack && tar -xvzf *.tgz && rm -rf package *.tgz",
|
|
20
20
|
"deploy": "yarn tc && yarn build && yarn publish",
|
|
21
21
|
"deploy-patch": "yarn tc && yarn build && yarn publish --tag patch",
|
|
22
|
+
"deploy-beta": "yarn tc && yarn build && yarn publish --tag beta",
|
|
22
23
|
"prepare": "npx husky install && npx yalc --version"
|
|
23
24
|
},
|
|
24
25
|
"repository": {
|