@apolitical/component-library 1.13.7-beta.0 → 1.14.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 (46) hide show
  1. package/cards/card/card.d.ts +3 -0
  2. package/cards/card/card.data.d.ts +11 -0
  3. package/cards/card/card.helpers.d.ts +5 -0
  4. package/cards/card/components/details/details.d.ts +9 -0
  5. package/cards/card/components/details/index.d.ts +1 -0
  6. package/cards/card/components/index.d.ts +2 -0
  7. package/cards/card/components/links/index.d.ts +1 -0
  8. package/cards/card/components/links/links.d.ts +13 -0
  9. package/cards/card/index.d.ts +1 -0
  10. package/cards/card-block/card-block.d.ts +15 -0
  11. package/cards/card-block/index.d.ts +1 -0
  12. package/cards/cards.types.d.ts +133 -0
  13. package/cards/carousel/carousel.d.ts +3 -0
  14. package/cards/carousel/components/carousel/carousel.d.ts +8 -0
  15. package/cards/carousel/components/carousel/carousel.helpers.d.ts +1 -0
  16. package/cards/carousel/components/carousel/index.d.ts +1 -0
  17. package/cards/carousel/components/index.d.ts +2 -0
  18. package/cards/carousel/components/title/index.d.ts +1 -0
  19. package/cards/carousel/components/title/title.d.ts +13 -0
  20. package/cards/carousel/index.d.ts +1 -0
  21. package/cards/index.d.ts +3 -0
  22. package/cards/mocks/card.d.ts +235 -0
  23. package/cards/mocks/carousel.d.ts +58 -0
  24. package/cards/mocks/index.d.ts +3 -0
  25. package/cards/mocks/mocks.helpers.d.ts +500 -0
  26. package/helpers/cases.d.ts +1 -0
  27. package/helpers/dates.d.ts +1 -2
  28. package/helpers/index.d.ts +1 -0
  29. package/helpers/intl.d.ts +1 -0
  30. package/hooks/index.d.ts +1 -1
  31. package/hooks/{use-screen-width.d.ts → use-element-width.d.ts} +1 -1
  32. package/index.js +13 -13
  33. package/index.mjs +1299 -1172
  34. package/layout/content-layout/columns/columns.d.ts +1 -1
  35. package/loaders/loading-state/loading-state.d.ts +8 -2
  36. package/package.json +1 -1
  37. package/style.css +1 -1
  38. package/styles/base/_text.scss +41 -15
  39. package/styles/base/_titles.scss +22 -0
  40. package/styles/mixins/_containers.scss +18 -0
  41. package/styles/mixins/_index.scss +1 -0
  42. package/styles/variables/colors/_theme.scss +33 -1
  43. package/text/empty-state-box/empty-state-box.d.ts +1 -1
  44. package/text/pill/pill.d.ts +6 -4
  45. package/user/contributors/contributors.d.ts +7 -1
  46. package/user/profile-picture/profile-picture.d.ts +2 -0
@@ -9,5 +9,5 @@ interface Props {
9
9
  /** The content to be rendered */
10
10
  children: React.ReactElement;
11
11
  }
12
- declare const Columns: ({ layout, hideOnMobile, className, children }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ declare const Columns: ({ layout, hideOnMobile, className, children, }: Props) => import("react/jsx-runtime").JSX.Element;
13
13
  export default Columns;
@@ -1,5 +1,11 @@
1
+ declare const layouts: {
2
+ [key: string]: string[];
3
+ };
1
4
  interface Props {
2
- layout?: 'overview-page';
5
+ /** The layout of the loading state */
6
+ layout?: keyof typeof layouts;
7
+ /** An optional test ID */
8
+ 'data-testid'?: string;
3
9
  }
4
- declare const LoadingState: ({ layout }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ declare const LoadingState: ({ layout, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
5
11
  export default LoadingState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "1.13.7-beta.0",
3
+ "version": "1.14.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {