@coopdigital/react 0.19.1 → 0.19.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 (77) hide show
  1. package/dist/components/AlertBanner/AlertBanner.d.ts +4 -14
  2. package/dist/components/AlertBanner/AlertBanner.js +0 -10
  3. package/dist/components/Author/Author.d.ts +5 -8
  4. package/dist/components/Author/Author.js +0 -3
  5. package/dist/components/Button/Button.d.ts +0 -3
  6. package/dist/components/Button/Button.js +0 -3
  7. package/dist/components/Card/Card.d.ts +0 -3
  8. package/dist/components/Card/Card.js +0 -3
  9. package/dist/components/Expandable/Expandable.d.ts +0 -4
  10. package/dist/components/Expandable/Expandable.js +0 -4
  11. package/dist/components/Icon/AddIcon.js +12 -0
  12. package/dist/components/Icon/ArrowDownIcon.js +12 -0
  13. package/dist/components/Icon/ArrowLeftIcon.js +12 -0
  14. package/dist/components/Icon/ArrowRightIcon.js +12 -0
  15. package/dist/components/Icon/ArrowUpIcon.js +12 -0
  16. package/dist/components/Icon/AvatarAltIcon.js +12 -0
  17. package/dist/components/Icon/AvatarIcon.js +12 -0
  18. package/dist/components/Icon/BasketIcon.js +12 -0
  19. package/dist/components/Icon/CalendarIcon.js +12 -0
  20. package/dist/components/Icon/ChevronDownIcon.js +12 -0
  21. package/dist/components/Icon/ChevronLeftIcon.js +12 -0
  22. package/dist/components/Icon/ChevronRightIcon.js +12 -0
  23. package/dist/components/Icon/ChevronUpIcon.js +12 -0
  24. package/dist/components/Icon/ClockIcon.js +12 -0
  25. package/dist/components/Icon/CloseAltIcon.js +12 -0
  26. package/dist/components/Icon/CloseIcon.js +12 -0
  27. package/dist/components/Icon/CoopCardIcon.js +12 -0
  28. package/dist/components/Icon/CoopIcon.js +12 -0
  29. package/dist/components/Icon/CoopLocationIcon.js +12 -0
  30. package/dist/components/Icon/DownloadIcon.js +12 -0
  31. package/dist/components/Icon/HomeIcon.js +12 -0
  32. package/dist/components/Icon/InformationIcon.js +12 -0
  33. package/dist/components/Icon/LocationIcon.js +12 -0
  34. package/dist/components/Icon/MailIcon.js +12 -0
  35. package/dist/components/Icon/MenuIcon.js +12 -0
  36. package/dist/components/Icon/MessageIcon.js +12 -0
  37. package/dist/components/Icon/MinusIcon.js +12 -0
  38. package/dist/components/Icon/OpenNewIcon.js +12 -0
  39. package/dist/components/Icon/PencilIcon.js +12 -0
  40. package/dist/components/Icon/PhoneIcon.js +12 -0
  41. package/dist/components/Icon/QuestionIcon.js +12 -0
  42. package/dist/components/Icon/ScooterIcon.js +12 -0
  43. package/dist/components/Icon/SettingsIcon.js +12 -0
  44. package/dist/components/Icon/TickAltIcon.js +12 -0
  45. package/dist/components/Icon/TickIcon.js +12 -0
  46. package/dist/components/Icon/VanIcon.js +12 -0
  47. package/dist/components/Icon/WarningIcon.js +12 -0
  48. package/dist/components/Icon/WriteIcon.js +12 -0
  49. package/dist/components/Icon/index.js +40 -0
  50. package/dist/components/Image/Image.d.ts +0 -3
  51. package/dist/components/Image/Image.js +0 -3
  52. package/dist/components/Pill/Pill.d.ts +0 -3
  53. package/dist/components/Pill/Pill.js +0 -3
  54. package/dist/components/SearchBox/SearchBox.d.ts +0 -17
  55. package/dist/components/SearchBox/SearchBox.js +0 -17
  56. package/dist/components/Signpost/Signpost.d.ts +0 -3
  57. package/dist/components/Signpost/Signpost.js +0 -3
  58. package/dist/components/SkipNav/SkipNav.d.ts +0 -17
  59. package/dist/components/SkipNav/SkipNav.js +0 -17
  60. package/dist/components/Squircle/Squircle.d.ts +2 -5
  61. package/dist/components/Squircle/Squircle.js +0 -3
  62. package/dist/components/Tag/Tag.d.ts +0 -10
  63. package/dist/components/Tag/Tag.js +0 -10
  64. package/package.json +8 -3
  65. package/src/components/AlertBanner/AlertBanner.tsx +4 -14
  66. package/src/components/Author/Author.tsx +5 -9
  67. package/src/components/Button/Button.tsx +0 -3
  68. package/src/components/Card/Card.tsx +0 -3
  69. package/src/components/Expandable/Expandable.tsx +0 -5
  70. package/src/components/Image/Image.tsx +0 -3
  71. package/src/components/Pill/Pill.tsx +0 -3
  72. package/src/components/SearchBox/SearchBox.tsx +0 -17
  73. package/src/components/Signpost/Signpost.tsx +0 -4
  74. package/src/components/SkipNav/SkipNav.tsx +0 -17
  75. package/src/components/Squircle/Squircle.tsx +2 -6
  76. package/src/components/Tag/Tag.tsx +0 -11
  77. /package/src/components/Icon/{index.tsx → index.ts} +0 -0
@@ -1,9 +1,9 @@
1
- import type { JSX } from "react"
1
+ import type { HTMLAttributes, JSX } from "react"
2
2
 
3
3
  import { bgPropToClass } from "../../../src/utils"
4
4
  import { CoopBlue, Green, OffersRed } from "../../types/colors"
5
5
 
6
- export interface SquircleProps {
6
+ export interface SquircleProps extends HTMLAttributes<HTMLDivElement> {
7
7
  /** **(Optional)** Specifies the background color of the Squircle. */
8
8
  background?: OffersRed | CoopBlue | Green
9
9
  /** **(Optional)** Represents the content inside the Squircle component. It can be any valid JSX or string. */
@@ -14,10 +14,6 @@ export interface SquircleProps {
14
14
  size?: "sm" | "md" | "lg"
15
15
  }
16
16
 
17
- /**
18
- * Squircle to use on components like Cards, etc.
19
- */
20
-
21
17
  export const Squircle = ({
22
18
  background = "offers-red",
23
19
  children,
@@ -21,17 +21,6 @@ export interface TagProps extends HTMLAttributes<HTMLAnchorElement> {
21
21
  href?: string
22
22
  }
23
23
 
24
- /**
25
- * Tag is a simple component that is meant to communicate a brief message such as categories.
26
- *
27
- * It has similarities with Pill component but also has differences such as:
28
- * - Tag doesn't accept a badge option
29
- * - Tags have more rounded corners compared to Pill
30
- * - Tags are more compact compared to Pill
31
- * - Tag components should be used as tags to communicate brief message while Pill component is more versatile and has more styling options
32
- *
33
- */
34
-
35
24
  export const Tag = ({
36
25
  as,
37
26
  background = "tint-grey",
File without changes