@pingux/astro 1.1.0-alpha.9 → 1.1.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.
Files changed (62) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/lib/cjs/components/CodeView/CodeView.js +165 -0
  3. package/lib/cjs/components/CodeView/CodeView.stories.js +93 -0
  4. package/lib/cjs/components/CodeView/CodeView.test.js +211 -0
  5. package/lib/cjs/components/CodeView/index.js +18 -0
  6. package/lib/cjs/components/CopyText/CopyText.js +34 -11
  7. package/lib/cjs/components/FileInputField/FileItem.js +2 -1
  8. package/lib/cjs/components/NavBar/NavBar.js +38 -0
  9. package/lib/cjs/components/NavBar/NavBar.stories.js +679 -0
  10. package/lib/cjs/components/NavBar/NavBar.test.js +116 -0
  11. package/lib/cjs/components/NavBar/index.js +18 -0
  12. package/lib/cjs/components/NavBarSection/NavBarItemBody.js +56 -0
  13. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +47 -0
  14. package/lib/cjs/components/NavBarSection/NavBarSection.js +82 -0
  15. package/lib/cjs/components/NavBarSection/index.js +18 -0
  16. package/lib/cjs/components/OverlayPanel/OverlayPanel.js +53 -6
  17. package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +59 -47
  18. package/lib/cjs/components/OverlayPanel/OverlayPanel.test.js +84 -0
  19. package/lib/cjs/components/Separator/Separator.js +1 -1
  20. package/lib/cjs/components/TooltipTrigger/TooltipTrigger.js +10 -5
  21. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.js +20 -1
  22. package/lib/cjs/hooks/useOverlayPanelState/useOverlayPanelState.test.js +7 -3
  23. package/lib/cjs/index.js +84 -30
  24. package/lib/cjs/styles/variants/accordion.js +32 -1
  25. package/lib/cjs/styles/variants/boxes.js +24 -1
  26. package/lib/cjs/styles/variants/buttons.js +29 -1
  27. package/lib/cjs/styles/variants/codeView.js +80 -0
  28. package/lib/cjs/styles/variants/link.js +1 -1
  29. package/lib/cjs/styles/variants/separator.js +46 -3
  30. package/lib/cjs/styles/variants/text.js +15 -0
  31. package/lib/cjs/styles/variants/variants.js +3 -0
  32. package/lib/components/CodeView/CodeView.js +130 -0
  33. package/lib/components/CodeView/CodeView.stories.js +67 -0
  34. package/lib/components/CodeView/CodeView.test.js +171 -0
  35. package/lib/components/CodeView/index.js +1 -0
  36. package/lib/components/CopyText/CopyText.js +35 -11
  37. package/lib/components/FileInputField/FileItem.js +2 -1
  38. package/lib/components/NavBar/NavBar.js +24 -0
  39. package/lib/components/NavBar/NavBar.stories.js +650 -0
  40. package/lib/components/NavBar/NavBar.test.js +92 -0
  41. package/lib/components/NavBar/index.js +1 -0
  42. package/lib/components/NavBarSection/NavBarItemBody.js +37 -0
  43. package/lib/components/NavBarSection/NavBarItemHeader.js +31 -0
  44. package/lib/components/NavBarSection/NavBarSection.js +65 -0
  45. package/lib/components/NavBarSection/index.js +1 -0
  46. package/lib/components/OverlayPanel/OverlayPanel.js +52 -8
  47. package/lib/components/OverlayPanel/OverlayPanel.stories.js +59 -49
  48. package/lib/components/OverlayPanel/OverlayPanel.test.js +73 -1
  49. package/lib/components/Separator/Separator.js +1 -1
  50. package/lib/components/TooltipTrigger/TooltipTrigger.js +10 -5
  51. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.js +20 -1
  52. package/lib/hooks/useOverlayPanelState/useOverlayPanelState.test.js +7 -3
  53. package/lib/index.js +5 -0
  54. package/lib/styles/variants/accordion.js +32 -1
  55. package/lib/styles/variants/boxes.js +24 -1
  56. package/lib/styles/variants/buttons.js +29 -1
  57. package/lib/styles/variants/codeView.js +68 -0
  58. package/lib/styles/variants/link.js +1 -1
  59. package/lib/styles/variants/separator.js +33 -1
  60. package/lib/styles/variants/text.js +15 -0
  61. package/lib/styles/variants/variants.js +2 -0
  62. package/package.json +4 -2
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
4
+
5
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
+
7
+ _Object$defineProperty(exports, "__esModule", {
8
+ value: true
9
+ });
10
+
11
+ exports["default"] = void 0;
12
+
13
+ var _react = _interopRequireDefault(require("react"));
14
+
15
+ var _Box = _interopRequireDefault(require("../Box/Box"));
16
+
17
+ var _react2 = require("@emotion/react");
18
+
19
+ /**
20
+ * Composed component that spreads children.
21
+ *
22
+ * This component is built to have the NavBarSection component passed into it.
23
+ *
24
+ * NavBarSection is an iterative component that
25
+ * will build an AccordionGridGroup using
26
+ * the array of objects that is passed into it.
27
+ *
28
+ */
29
+ var NavBar = function NavBar(props) {
30
+ return (0, _react2.jsx)(_Box["default"], {
31
+ variant: "boxes.navBar",
32
+ role: "navigation",
33
+ as: "nav"
34
+ }, props.children);
35
+ };
36
+
37
+ var _default = NavBar;
38
+ exports["default"] = _default;