@pingux/astro 2.34.0-alpha.2 → 2.34.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/lib/cjs/hooks/useNavBarStyling/index.d.ts +1 -0
- package/lib/cjs/hooks/useNavBarStyling/useNavBarStyling.d.ts +38 -0
- package/lib/cjs/hooks/useNavBarStyling/useNavBarStyling.js +0 -6
- package/lib/cjs/hooks/useNavBarStyling/useNavBarStyling.test.d.ts +1 -0
- package/lib/hooks/useNavBarStyling/useNavBarStyling.js +0 -6
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './useNavBarStyling';
|
@@ -0,0 +1,38 @@
|
|
1
|
+
interface NavBarStyling {
|
2
|
+
/**
|
3
|
+
* @typedef {Object} NavBarStylingObject
|
4
|
+
* @property {String} navBar - The nav bar container
|
5
|
+
* @property {String} primaryItem - The nav bar selection button
|
6
|
+
* @property {String} sectionItem - The nav bar selection button;
|
7
|
+
* @property {String} navBarItemHeader - The nav bar item header;
|
8
|
+
* @property {String} navBarItemHeaderText - The nav bar item header text;
|
9
|
+
* @property {String} navBarItemButton - The nav bar item button;
|
10
|
+
* @property {String} navBarItemLink - The nav bar item link;
|
11
|
+
* @property {String} navBarItem - The nav bar item;
|
12
|
+
* @property {String} navBarItemText - The nav bar item text;
|
13
|
+
* @property {String} navBarItemHeaderListItem - The nav bar item header list item;
|
14
|
+
* @property {String} navBarItemBody - The nav bar item body;
|
15
|
+
* @property {String} navBarItemHeaderIconSize - The nav bar item header size;
|
16
|
+
*/
|
17
|
+
/**
|
18
|
+
* Generates the necessary props to be used in field components.
|
19
|
+
* @param {String} variant Variant for the overall NavBar
|
20
|
+
* @returns {NavBarStylingObject} Prop object that distributes styling to various sub-components.
|
21
|
+
*/
|
22
|
+
(variant: string): {
|
23
|
+
navBar: string;
|
24
|
+
primaryItem: string;
|
25
|
+
sectionItem: string;
|
26
|
+
navBarItemHeader: string;
|
27
|
+
navBarItemHeaderText: string;
|
28
|
+
navBarItemButton: string;
|
29
|
+
navBarItemLink: string;
|
30
|
+
navBarItem: string;
|
31
|
+
navBarItemText: string;
|
32
|
+
navBarItemHeaderListItem: string | null;
|
33
|
+
navBarItemBody: string;
|
34
|
+
navBarItemHeaderIconSize: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xx';
|
35
|
+
};
|
36
|
+
}
|
37
|
+
declare const useNavBarStyling: NavBarStyling;
|
38
|
+
export default useNavBarStyling;
|
@@ -5,12 +5,6 @@ _Object$defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
6
6
|
});
|
7
7
|
exports["default"] = void 0;
|
8
|
-
/**
|
9
|
-
* Generates the necessary props to be used in field components.
|
10
|
-
* @param {String} variant Variant for the overall NavBar
|
11
|
-
* @returns {Object} Prop object that distributes styling to various sub-components.
|
12
|
-
*/
|
13
|
-
|
14
8
|
var useNavBarStyling = function useNavBarStyling(variant) {
|
15
9
|
switch (variant) {
|
16
10
|
case 'popupNav':
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -1,9 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* Generates the necessary props to be used in field components.
|
3
|
-
* @param {String} variant Variant for the overall NavBar
|
4
|
-
* @returns {Object} Prop object that distributes styling to various sub-components.
|
5
|
-
*/
|
6
|
-
|
7
1
|
var useNavBarStyling = function useNavBarStyling(variant) {
|
8
2
|
switch (variant) {
|
9
3
|
case 'popupNav':
|