@pingux/astro 2.119.0-alpha.1 → 2.119.0-alpha.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.
Files changed (98) hide show
  1. package/lib/cjs/components/Button/Buttons.styles.d.ts +40 -0
  2. package/lib/cjs/components/Button/Buttons.styles.js +4 -0
  3. package/lib/cjs/components/ListView/ListView.stories.d.ts +3 -0
  4. package/lib/cjs/components/ListView/ListView.stories.js +2 -1
  5. package/lib/cjs/components/NavBar/NavBar.stories.d.ts +1 -0
  6. package/lib/cjs/components/NavBar/NavBar.stories.js +272 -107
  7. package/lib/cjs/{styles/themeOverrides → components/NavBar}/stories/NavBar.chromatic.stories.js +53 -53
  8. package/lib/cjs/components/NavBar/stories/NavBarNextGenComponent.js +191 -0
  9. package/lib/cjs/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.js +2 -2
  10. package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.js +1 -1
  11. package/lib/cjs/components/NavBarSection/NavBarItem.js +3 -1
  12. package/lib/cjs/components/NavBarSection/NavBarItemHeader.js +9 -6
  13. package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.d.ts +1 -0
  14. package/lib/cjs/components/NavBarSection/NavBarItemHeader.test.js +86 -0
  15. package/lib/cjs/components/Pagination/Pagination.d.ts +4 -0
  16. package/lib/cjs/components/Pagination/Pagination.js +78 -0
  17. package/lib/cjs/components/Pagination/Pagination.mdx +68 -0
  18. package/lib/cjs/components/Pagination/Pagination.stories.d.ts +39 -0
  19. package/lib/cjs/components/Pagination/Pagination.stories.js +159 -0
  20. package/lib/cjs/components/Pagination/Pagination.styles.d.ts +17 -0
  21. package/lib/cjs/components/Pagination/Pagination.styles.js +27 -0
  22. package/lib/cjs/components/Pagination/Pagination.test.d.ts +1 -0
  23. package/lib/cjs/components/Pagination/Pagination.test.js +208 -0
  24. package/lib/cjs/components/Pagination/PaginationProvider.d.ts +4 -0
  25. package/lib/cjs/components/Pagination/PaginationProvider.js +38 -0
  26. package/lib/cjs/components/Pagination/index.d.ts +2 -0
  27. package/lib/cjs/components/Pagination/index.js +33 -0
  28. package/lib/cjs/context/PaginationContext/index.d.ts +10 -0
  29. package/lib/cjs/context/PaginationContext/index.js +20 -0
  30. package/lib/cjs/hooks/index.d.ts +2 -0
  31. package/lib/cjs/hooks/index.js +14 -0
  32. package/lib/cjs/hooks/usePagination/index.d.ts +1 -0
  33. package/lib/cjs/hooks/usePagination/index.js +14 -0
  34. package/lib/cjs/hooks/usePagination/usePagination.d.ts +682 -0
  35. package/lib/cjs/hooks/usePagination/usePagination.js +178 -0
  36. package/lib/cjs/hooks/usePaginationState/index.d.ts +1 -0
  37. package/lib/cjs/hooks/usePaginationState/index.js +14 -0
  38. package/lib/cjs/hooks/usePaginationState/usePaginationState.d.ts +4 -0
  39. package/lib/cjs/hooks/usePaginationState/usePaginationState.js +18 -0
  40. package/lib/cjs/index.d.ts +3 -0
  41. package/lib/cjs/index.js +24 -0
  42. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +3 -0
  43. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -0
  44. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +4 -0
  45. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +8 -3
  46. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +30 -0
  47. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +17 -0
  48. package/lib/cjs/styles/themes/next-gen/variants/button.js +7 -1
  49. package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +9 -0
  50. package/lib/cjs/styles/themes/next-gen/variants/links.js +12 -1
  51. package/lib/cjs/styles/themes/next-gen/variants/navbar.d.ts +4 -0
  52. package/lib/cjs/styles/themes/next-gen/variants/navbar.js +11 -7
  53. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +4 -0
  54. package/lib/cjs/styles/variants/variants.js +3 -1
  55. package/lib/cjs/types/pagination.d.ts +46 -0
  56. package/lib/cjs/types/pagination.js +6 -0
  57. package/lib/cjs/utils/devUtils/shouldReturnComingSoon.js +8 -2
  58. package/lib/components/Button/Buttons.styles.js +4 -0
  59. package/lib/components/ListView/ListView.stories.js +1 -1
  60. package/lib/components/NavBar/NavBar.stories.js +196 -32
  61. package/lib/{styles/themeOverrides → components/NavBar}/stories/NavBar.chromatic.stories.js +2 -2
  62. package/lib/components/NavBar/stories/NavBarNextGenComponent.js +182 -0
  63. package/lib/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.js +2 -2
  64. package/lib/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.js +1 -1
  65. package/lib/components/NavBarSection/NavBarItem.js +4 -2
  66. package/lib/components/NavBarSection/NavBarItemHeader.js +7 -4
  67. package/lib/components/NavBarSection/NavBarItemHeader.test.js +83 -0
  68. package/lib/components/Pagination/Pagination.js +64 -0
  69. package/lib/components/Pagination/Pagination.mdx +68 -0
  70. package/lib/components/Pagination/Pagination.stories.js +141 -0
  71. package/lib/components/Pagination/Pagination.styles.js +19 -0
  72. package/lib/components/Pagination/Pagination.test.js +205 -0
  73. package/lib/components/Pagination/PaginationProvider.js +24 -0
  74. package/lib/components/Pagination/index.js +2 -0
  75. package/lib/context/PaginationContext/index.js +11 -0
  76. package/lib/hooks/index.js +2 -0
  77. package/lib/hooks/usePagination/index.js +1 -0
  78. package/lib/hooks/usePagination/usePagination.js +170 -0
  79. package/lib/hooks/usePaginationState/index.js +1 -0
  80. package/lib/hooks/usePaginationState/usePaginationState.js +10 -0
  81. package/lib/index.js +3 -0
  82. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -0
  83. package/lib/styles/themes/next-gen/convertedComponentList.js +6 -2
  84. package/lib/styles/themes/next-gen/variants/button.js +7 -1
  85. package/lib/styles/themes/next-gen/variants/links.js +12 -1
  86. package/lib/styles/themes/next-gen/variants/navbar.js +11 -7
  87. package/lib/styles/variants/variants.js +3 -1
  88. package/lib/types/pagination.js +1 -0
  89. package/lib/utils/devUtils/shouldReturnComingSoon.js +9 -3
  90. package/package.json +1 -1
  91. package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.d.ts +0 -6
  92. package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.js +0 -19
  93. package/lib/cjs/styles/themes/next-gen/stories/NavBarNextGenComponent.js +0 -191
  94. package/lib/recipes/NextGen/NavBarNextGen.stories.js +0 -9
  95. package/lib/styles/themes/next-gen/stories/NavBarNextGenComponent.js +0 -182
  96. /package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NavBarNextGenComponent.d.ts +0 -0
  97. /package/lib/cjs/{styles/themeOverrides/nextGenDarkMode → components/NavBar}/stories/NextGenDarkNavStory.chomatic.stories.d.ts +0 -0
  98. /package/lib/cjs/{styles/themes/next-gen → components/NavBar}/stories/NextGenNavBar.chromatic.stories.d.ts +0 -0
@@ -712,6 +712,46 @@ declare const _default: {
712
712
  flexShrink: number;
713
713
  whiteSpace: string;
714
714
  };
715
+ paginationMenu: {
716
+ fontWeight: number;
717
+ lineHeight: string;
718
+ textDecoration: string;
719
+ display: string;
720
+ justifyContent: string;
721
+ width: string;
722
+ '&.is-current': {
723
+ cursor: string;
724
+ color: string;
725
+ };
726
+ '&.is-focused': {
727
+ boxShadow: string;
728
+ outline: string;
729
+ outlineColor: string;
730
+ outlineOffset: string;
731
+ };
732
+ bg: string;
733
+ border: string;
734
+ borderColor: string;
735
+ color: string;
736
+ height: string;
737
+ padding: string;
738
+ '&.is-hovered': {
739
+ textDecoration: string;
740
+ };
741
+ fontSize: string;
742
+ fontFamily: string;
743
+ overflowWrap: import("../..").overflowWrap;
744
+ maxWidth: string;
745
+ wordWrap: import("../..").wordWrap;
746
+ wordBreak: import("../..").wordBreak;
747
+ cursor: string;
748
+ minWidth: string;
749
+ outline: string;
750
+ alignItems: string;
751
+ borderRadius: string;
752
+ flexShrink: number;
753
+ whiteSpace: string;
754
+ };
715
755
  primary: {
716
756
  display: string;
717
757
  bg: string;
@@ -289,6 +289,9 @@ var exampleText = _objectSpread(_objectSpread({}, base), {}, {
289
289
  background: 'none',
290
290
  '&.is-focused': _objectSpread({}, defaultFocus)
291
291
  });
292
+ var paginationMenu = _objectSpread(_objectSpread({}, link), {}, {
293
+ fontWeight: 0
294
+ });
292
295
  var _default = {
293
296
  colorBlock: colorBlock,
294
297
  colorBlockPrimary: colorBlockPrimary,
@@ -309,6 +312,7 @@ var _default = {
309
312
  inlinePrimaryWithIcon: inlinePrimaryWithIcon,
310
313
  inlineWithIcon: inlineWithIcon,
311
314
  link: link,
315
+ paginationMenu: paginationMenu,
312
316
  primary: primary,
313
317
  primaryWithIcon: primaryWithIcon,
314
318
  quiet: quiet,
@@ -140,6 +140,9 @@ export interface ExampleItemProps {
140
140
  id: string | number;
141
141
  hasSeparator?: boolean;
142
142
  }
143
+ export declare const animals: {
144
+ name: string;
145
+ }[];
143
146
  export declare const Default: {
144
147
  ({ ...args }: {
145
148
  [x: string]: any;
@@ -21,7 +21,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
21
21
  _Object$defineProperty(exports, "__esModule", {
22
22
  value: true
23
23
  });
24
- exports["default"] = exports.WithExpandableItems = exports.WithCharts = exports.OnLoadPrev = exports.InfiniteLoadingList = exports.Default = exports.ControlledExpandableItems = void 0;
24
+ exports["default"] = exports.animals = exports.WithExpandableItems = exports.WithCharts = exports.OnLoadPrev = exports.InfiniteLoadingList = exports.Default = exports.ControlledExpandableItems = void 0;
25
25
  var _from = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/array/from"));
26
26
  var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
27
27
  var _indexOf = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/index-of"));
@@ -538,6 +538,7 @@ var animals = [{
538
538
  }, {
539
539
  name: 'Zebra'
540
540
  }];
541
+ exports.animals = animals;
541
542
  var props = {
542
543
  disabledKeys: ['Snake']
543
544
  };
@@ -3,5 +3,6 @@ import { NavBarProps } from '../../types';
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  export declare const Default: StoryFn<NavBarProps>;
6
+ export declare const OnyxDefault: StoryFn<NavBarProps>;
6
7
  export declare const Controlled: StoryFn<NavBarProps>;
7
8
  export declare const AutoCollapse: StoryFn<NavBarProps>;