@pingux/astro 1.1.0-alpha.12 → 1.1.0-alpha.16
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/components/NavBar/NavBar.js +38 -0
- package/lib/cjs/components/NavBar/NavBar.stories.js +679 -0
- package/lib/cjs/components/NavBar/NavBar.test.js +116 -0
- package/lib/cjs/components/NavBar/index.js +18 -0
- package/lib/cjs/components/NavBarSection/NavBarItemBody.js +56 -0
- package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +47 -0
- package/lib/cjs/components/NavBarSection/NavBarSection.js +82 -0
- package/lib/cjs/components/NavBarSection/index.js +18 -0
- package/lib/cjs/components/OverlayPanel/OverlayPanel.js +53 -6
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +59 -47
- package/lib/cjs/components/OverlayPanel/OverlayPanel.test.js +84 -0
- package/lib/cjs/components/Separator/Separator.js +1 -1
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +20 -1
- package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.js +7 -3
- package/lib/cjs/index.js +74 -30
- package/lib/cjs/styles/variants/accordion.js +32 -1
- package/lib/cjs/styles/variants/boxes.js +24 -1
- package/lib/cjs/styles/variants/buttons.js +28 -0
- package/lib/cjs/styles/variants/link.js +1 -1
- package/lib/cjs/styles/variants/separator.js +46 -3
- package/lib/cjs/styles/variants/text.js +15 -0
- package/lib/components/NavBar/NavBar.js +24 -0
- package/lib/components/NavBar/NavBar.stories.js +650 -0
- package/lib/components/NavBar/NavBar.test.js +92 -0
- package/lib/components/NavBar/index.js +1 -0
- package/lib/components/NavBarSection/NavBarItemBody.js +37 -0
- package/lib/components/NavBarSection/NavBarItemHeader.js +31 -0
- package/lib/components/NavBarSection/NavBarSection.js +65 -0
- package/lib/components/NavBarSection/index.js +1 -0
- package/lib/components/OverlayPanel/OverlayPanel.js +52 -8
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +59 -49
- package/lib/components/OverlayPanel/OverlayPanel.test.js +73 -1
- package/lib/components/Separator/Separator.js +1 -1
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +20 -1
- package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +7 -3
- package/lib/index.js +4 -0
- package/lib/styles/variants/accordion.js +32 -1
- package/lib/styles/variants/boxes.js +24 -1
- package/lib/styles/variants/buttons.js +28 -0
- package/lib/styles/variants/link.js +1 -1
- package/lib/styles/variants/separator.js +33 -1
- package/lib/styles/variants/text.js +15 -0
- package/package.json +2 -2
@@ -139,6 +139,19 @@ var expandableRow = {
|
|
139
139
|
}
|
140
140
|
}
|
141
141
|
};
|
142
|
+
var navBarSubtitle = {
|
143
|
+
fontWeight: 3,
|
144
|
+
fontSize: '11px',
|
145
|
+
color: 'accent.80'
|
146
|
+
};
|
147
|
+
|
148
|
+
var navBarHeaderText = _objectSpread(_objectSpread({}, wordWrap), {}, {
|
149
|
+
whiteSpace: 'break-spaces',
|
150
|
+
lineHeight: '13px',
|
151
|
+
fontSize: '13px',
|
152
|
+
fontWeight: 1
|
153
|
+
});
|
154
|
+
|
142
155
|
var text = {
|
143
156
|
base: base,
|
144
157
|
bodyStrong: _objectSpread(_objectSpread({}, wordWrap), {}, {
|
@@ -202,6 +215,8 @@ var text = {
|
|
202
215
|
textOverflow: 'ellipsis'
|
203
216
|
}),
|
204
217
|
expandableRow: expandableRow,
|
218
|
+
navBarHeaderText: navBarHeaderText,
|
219
|
+
navBarSubtitle: navBarSubtitle,
|
205
220
|
placeholder: {
|
206
221
|
fontWeight: -1,
|
207
222
|
color: 'text.secondary',
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import Box from '../Box/Box';
|
3
|
+
/**
|
4
|
+
* Composed component that spreads children.
|
5
|
+
*
|
6
|
+
* This component is built to have the NavBarSection component passed into it.
|
7
|
+
*
|
8
|
+
* NavBarSection is an iterative component that
|
9
|
+
* will build an AccordionGridGroup using
|
10
|
+
* the array of objects that is passed into it.
|
11
|
+
*
|
12
|
+
*/
|
13
|
+
|
14
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
15
|
+
|
16
|
+
var NavBar = function NavBar(props) {
|
17
|
+
return ___EmotionJSX(Box, {
|
18
|
+
variant: "boxes.navBar",
|
19
|
+
role: "navigation",
|
20
|
+
as: "nav"
|
21
|
+
}, props.children);
|
22
|
+
};
|
23
|
+
|
24
|
+
export default NavBar;
|