@sb1/ffe-cards-react 13.0.23 → 15.0.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 (43) hide show
  1. package/es/CardBase.js +35 -23
  2. package/es/IconCard/IconCard.js +33 -42
  3. package/es/ImageCard/ImageCard.js +35 -40
  4. package/es/StippledCard/StippledCard.js +35 -45
  5. package/es/TextCard/TextCard.js +31 -32
  6. package/es/components/CardName.js +27 -17
  7. package/es/components/ComponentBase.js +25 -20
  8. package/es/components/Subtext.js +27 -17
  9. package/es/components/Text.js +27 -17
  10. package/es/components/Title.js +29 -23
  11. package/es/components/index.js +4 -4
  12. package/es/fixedForwardRef.js +2 -0
  13. package/es/index.js +5 -5
  14. package/es/types.js +1 -0
  15. package/lib/CardBase.js +41 -30
  16. package/lib/IconCard/IconCard.js +38 -50
  17. package/lib/ImageCard/ImageCard.js +40 -49
  18. package/lib/StippledCard/StippledCard.js +40 -51
  19. package/lib/TextCard/TextCard.js +35 -40
  20. package/lib/components/CardName.js +33 -23
  21. package/lib/components/ComponentBase.js +31 -26
  22. package/lib/components/Subtext.js +33 -23
  23. package/lib/components/Text.js +33 -23
  24. package/lib/components/Title.js +35 -29
  25. package/lib/components/index.js +10 -33
  26. package/lib/fixedForwardRef.js +5 -0
  27. package/lib/index.js +12 -40
  28. package/lib/types.js +2 -0
  29. package/package.json +7 -8
  30. package/types/CardBase.d.ts +23 -0
  31. package/types/IconCard/IconCard.d.ts +16 -0
  32. package/types/ImageCard/ImageCard.d.ts +16 -0
  33. package/types/StippledCard/StippledCard.d.ts +22 -0
  34. package/types/TextCard/TextCard.d.ts +14 -0
  35. package/types/components/CardName.d.ts +4 -0
  36. package/types/components/ComponentBase.d.ts +6 -0
  37. package/types/components/Subtext.d.ts +4 -0
  38. package/types/components/Text.d.ts +4 -0
  39. package/types/components/Title.d.ts +7 -0
  40. package/types/components/index.d.ts +4 -0
  41. package/types/fixedForwardRef.d.ts +4 -0
  42. package/types/index.d.ts +5 -78
  43. package/types/types.d.ts +15 -0
@@ -0,0 +1,15 @@
1
+ import React, { ComponentPropsWithRef, ElementType, ForwardedRef } from 'react';
2
+ import { CardNameProps, SubtextProps, TextProps, TitleProps } from './components';
3
+ export type DistributiveOmit<T, Omitted extends PropertyKey> = T extends any ? Omit<T, Omitted> : never;
4
+ export type ComponentAsPropParams<As extends ElementType> = {
5
+ as?: As;
6
+ } & DistributiveOmit<ComponentPropsWithRef<ElementType extends As ? 'a' : As>, 'as' & {
7
+ ref: ForwardedRef<any>;
8
+ }>;
9
+ export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
10
+ export interface CardRenderProps {
11
+ CardName: React.ElementType<CardNameProps>;
12
+ Title: React.ElementType<TitleProps>;
13
+ Subtext: React.ElementType<SubtextProps>;
14
+ Text: React.ElementType<TextProps>;
15
+ }