@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.
Files changed (43) hide show
  1. package/lib/cjs/components/NavBar/NavBar.js +38 -0
  2. package/lib/cjs/components/NavBar/NavBar.stories.js +679 -0
  3. package/lib/cjs/components/NavBar/NavBar.test.js +116 -0
  4. package/lib/cjs/components/NavBar/index.js +18 -0
  5. package/lib/cjs/components/NavBarSection/NavBarItemBody.js +56 -0
  6. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +47 -0
  7. package/lib/cjs/components/NavBarSection/NavBarSection.js +82 -0
  8. package/lib/cjs/components/NavBarSection/index.js +18 -0
  9. package/lib/cjs/components/OverlayPanel/OverlayPanel.js +53 -6
  10. package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +59 -47
  11. package/lib/cjs/components/OverlayPanel/OverlayPanel.test.js +84 -0
  12. package/lib/cjs/components/Separator/Separator.js +1 -1
  13. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +20 -1
  14. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.js +7 -3
  15. package/lib/cjs/index.js +74 -30
  16. package/lib/cjs/styles/variants/accordion.js +32 -1
  17. package/lib/cjs/styles/variants/boxes.js +24 -1
  18. package/lib/cjs/styles/variants/buttons.js +28 -0
  19. package/lib/cjs/styles/variants/link.js +1 -1
  20. package/lib/cjs/styles/variants/separator.js +46 -3
  21. package/lib/cjs/styles/variants/text.js +15 -0
  22. package/lib/components/NavBar/NavBar.js +24 -0
  23. package/lib/components/NavBar/NavBar.stories.js +650 -0
  24. package/lib/components/NavBar/NavBar.test.js +92 -0
  25. package/lib/components/NavBar/index.js +1 -0
  26. package/lib/components/NavBarSection/NavBarItemBody.js +37 -0
  27. package/lib/components/NavBarSection/NavBarItemHeader.js +31 -0
  28. package/lib/components/NavBarSection/NavBarSection.js +65 -0
  29. package/lib/components/NavBarSection/index.js +1 -0
  30. package/lib/components/OverlayPanel/OverlayPanel.js +52 -8
  31. package/lib/components/OverlayPanel/OverlayPanel.stories.js +59 -49
  32. package/lib/components/OverlayPanel/OverlayPanel.test.js +73 -1
  33. package/lib/components/Separator/Separator.js +1 -1
  34. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +20 -1
  35. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +7 -3
  36. package/lib/index.js +4 -0
  37. package/lib/styles/variants/accordion.js +32 -1
  38. package/lib/styles/variants/boxes.js +24 -1
  39. package/lib/styles/variants/buttons.js +28 -0
  40. package/lib/styles/variants/link.js +1 -1
  41. package/lib/styles/variants/separator.js +33 -1
  42. package/lib/styles/variants/text.js +15 -0
  43. 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;