@coopdigital/react 1.19.0 → 1.20.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 (288) hide show
  1. package/dist/components/AlertBanner/AlertBanner.js +5 -2
  2. package/dist/components/Author/Author.js +5 -2
  3. package/dist/components/Button/Button.js +1 -1
  4. package/dist/components/Card/Card.d.ts +96 -49
  5. package/dist/components/Card/Card.js +61 -60
  6. package/dist/components/Card/index.d.ts +2 -2
  7. package/dist/components/Card/index.js +2 -2
  8. package/dist/components/Checkbox/Checkbox.js +5 -2
  9. package/dist/components/DatePicker/DatePicker.js +5 -4
  10. package/dist/components/DatePicker/datepicker-utils.js +12 -11
  11. package/dist/components/Dialog/Dialog.js +6 -3
  12. package/dist/components/Expandable/Expandable.js +6 -3
  13. package/dist/components/Field/Field.js +1 -1
  14. package/dist/components/FieldMarkers/Error.js +5 -2
  15. package/dist/components/FieldMarkers/Hint.js +5 -2
  16. package/dist/components/FieldMarkers/Label.js +5 -2
  17. package/dist/components/Fieldset/Fieldset.js +10 -4
  18. package/dist/components/Flourish/Flourish.js +6 -3
  19. package/dist/components/Form/Form.js +5 -2
  20. package/dist/components/Image/Image.d.ts +3 -5
  21. package/dist/components/Image/Image.js +10 -7
  22. package/dist/components/LoadingSpinner/LoadingSpinner.js +5 -2
  23. package/dist/components/Logo/Logo.js +5 -2
  24. package/dist/components/Picture/Picture.d.ts +15 -0
  25. package/dist/components/Picture/Picture.js +17 -0
  26. package/dist/components/Picture/index.d.ts +2 -0
  27. package/dist/components/Picture/index.js +5 -0
  28. package/dist/components/Prose/Prose.js +5 -2
  29. package/dist/components/Radio/Radio.js +5 -2
  30. package/dist/components/Searchbox/Searchbox.js +6 -6
  31. package/dist/components/Select/Select.js +5 -2
  32. package/dist/components/Signpost/Signpost.js +6 -6
  33. package/dist/components/SkipNav/SkipNav.js +5 -2
  34. package/dist/components/Squircle/Squircle.js +5 -2
  35. package/dist/components/ValidationSummary/ValidationSummary.js +5 -2
  36. package/dist/components/icons/AccountCircleFilledIcon.js +5 -2
  37. package/dist/components/icons/AccountCircleIcon.js +5 -2
  38. package/dist/components/icons/AccountFilledIcon.js +5 -2
  39. package/dist/components/icons/AccountIcon.js +5 -2
  40. package/dist/components/icons/AddIcon.js +5 -2
  41. package/dist/components/icons/AppsFilledIcon.js +5 -2
  42. package/dist/components/icons/AppsIcon.js +5 -2
  43. package/dist/components/icons/ArrowDownIcon.js +5 -2
  44. package/dist/components/icons/ArrowLeftIcon.js +5 -2
  45. package/dist/components/icons/ArrowRightIcon.js +5 -2
  46. package/dist/components/icons/ArrowUpIcon.js +5 -2
  47. package/dist/components/icons/BackspaceFilledIcon.js +5 -2
  48. package/dist/components/icons/BackspaceIcon.js +5 -2
  49. package/dist/components/icons/BasketFilledIcon.js +5 -2
  50. package/dist/components/icons/BasketIcon.js +5 -2
  51. package/dist/components/icons/BellFilledIcon.js +5 -2
  52. package/dist/components/icons/BellIcon.js +5 -2
  53. package/dist/components/icons/BroomIcon.js +5 -2
  54. package/dist/components/icons/CalendarFilledIcon.js +5 -2
  55. package/dist/components/icons/CalendarIcon.js +5 -2
  56. package/dist/components/icons/CashFilledIcon.js +5 -2
  57. package/dist/components/icons/CashIcon.js +5 -2
  58. package/dist/components/icons/ChevronDownIcon.js +5 -2
  59. package/dist/components/icons/ChevronLeftIcon.js +5 -2
  60. package/dist/components/icons/ChevronRightIcon.js +5 -2
  61. package/dist/components/icons/ChevronUpIcon.js +5 -2
  62. package/dist/components/icons/CircleBurgerFilledIcon.js +5 -2
  63. package/dist/components/icons/CircleBurgerIcon.js +5 -2
  64. package/dist/components/icons/ClipboardFilledIcon.js +5 -2
  65. package/dist/components/icons/ClipboardIcon.js +5 -2
  66. package/dist/components/icons/ClockFilledIcon.js +5 -2
  67. package/dist/components/icons/ClockIcon.js +5 -2
  68. package/dist/components/icons/CloseAltFilledIcon.js +5 -2
  69. package/dist/components/icons/CloseAltIcon.js +5 -2
  70. package/dist/components/icons/CogIcon.js +5 -2
  71. package/dist/components/icons/CommunityFilledIcon.js +5 -2
  72. package/dist/components/icons/CommunityIcon.js +5 -2
  73. package/dist/components/icons/ComputerIcon.js +5 -2
  74. package/dist/components/icons/ContactFilledIcon.js +5 -2
  75. package/dist/components/icons/ContactIcon.js +5 -2
  76. package/dist/components/icons/ContactlessFilledIcon.js +5 -2
  77. package/dist/components/icons/ContactlessIcon.js +5 -2
  78. package/dist/components/icons/CoopLiveIcon.js +5 -2
  79. package/dist/components/icons/CoopLocationFilledIcon.js +5 -2
  80. package/dist/components/icons/CoopLogoIcon.js +5 -2
  81. package/dist/components/icons/CoopMembershipCardFilledIcon.js +5 -2
  82. package/dist/components/icons/CreditCardFilledIcon.js +5 -2
  83. package/dist/components/icons/CreditCardIcon.js +5 -2
  84. package/dist/components/icons/CrossIcon.js +5 -2
  85. package/dist/components/icons/DocumentIcon.js +5 -2
  86. package/dist/components/icons/DownloadIcon.js +5 -2
  87. package/dist/components/icons/EnterStoreIcon.js +5 -2
  88. package/dist/components/icons/ExitStoreIcon.js +5 -2
  89. package/dist/components/icons/EyeFilledIcon.js +5 -2
  90. package/dist/components/icons/EyeIcon.js +5 -2
  91. package/dist/components/icons/EyeStrikeFilledIcon.js +5 -2
  92. package/dist/components/icons/EyeStrikeIcon.js +5 -2
  93. package/dist/components/icons/FeedbackFilledIcon.js +5 -2
  94. package/dist/components/icons/FeedbackIcon.js +5 -2
  95. package/dist/components/icons/FilterIcon.js +5 -2
  96. package/dist/components/icons/GiftCardFilledIcon.js +5 -2
  97. package/dist/components/icons/GiftCardIcon.js +5 -2
  98. package/dist/components/icons/GiftFilledIcon.js +5 -2
  99. package/dist/components/icons/GiftIcon.js +5 -2
  100. package/dist/components/icons/HelpFilledIcon.js +5 -2
  101. package/dist/components/icons/HelpIcon.js +5 -2
  102. package/dist/components/icons/HomeFilledIcon.js +5 -2
  103. package/dist/components/icons/HomeIcon.js +5 -2
  104. package/dist/components/icons/HowDoIAssistantIcon.js +5 -2
  105. package/dist/components/icons/InfoIcon.js +5 -2
  106. package/dist/components/icons/KebabIcon.js +5 -2
  107. package/dist/components/icons/LoadingIcon.js +5 -2
  108. package/dist/components/icons/LocationFilledIcon.js +5 -2
  109. package/dist/components/icons/LocationIcon.js +5 -2
  110. package/dist/components/icons/LogoutIcon.js +5 -2
  111. package/dist/components/icons/MailIcon.js +5 -2
  112. package/dist/components/icons/MenuIcon.js +5 -2
  113. package/dist/components/icons/MessageIcon.js +5 -2
  114. package/dist/components/icons/MinusIcon.js +5 -2
  115. package/dist/components/icons/NotesFilledIcon.js +5 -2
  116. package/dist/components/icons/NotesIcon.js +5 -2
  117. package/dist/components/icons/OpenNewIcon.js +5 -2
  118. package/dist/components/icons/OwnBagIcon.js +5 -2
  119. package/dist/components/icons/PadlockIcon.js +5 -2
  120. package/dist/components/icons/PencilIcon.js +5 -2
  121. package/dist/components/icons/PhoneIcon.js +5 -2
  122. package/dist/components/icons/PowerIcon.js +5 -2
  123. package/dist/components/icons/SaveFilledIcon.js +5 -2
  124. package/dist/components/icons/SaveIcon.js +5 -2
  125. package/dist/components/icons/ScooterIcon.js +5 -2
  126. package/dist/components/icons/SearchFilledIcon.js +5 -2
  127. package/dist/components/icons/SearchIcon.js +5 -2
  128. package/dist/components/icons/SendIcon.js +5 -2
  129. package/dist/components/icons/SpannerIcon.js +5 -2
  130. package/dist/components/icons/StarFilledIcon.js +5 -2
  131. package/dist/components/icons/StarIcon.js +5 -2
  132. package/dist/components/icons/TickAltFilledIcon.js +5 -2
  133. package/dist/components/icons/TickAltIcon.js +5 -2
  134. package/dist/components/icons/TickIcon.js +5 -2
  135. package/dist/components/icons/TruckIcon.js +5 -2
  136. package/dist/components/icons/UserWipeIcon.js +5 -2
  137. package/dist/components/icons/VoucherFilledIcon.js +5 -2
  138. package/dist/components/icons/VoucherIcon.js +5 -2
  139. package/dist/components/icons/WarningCircleFilledIcon.js +5 -2
  140. package/dist/components/icons/WarningCircleIcon.js +5 -2
  141. package/dist/components/icons/WarningFilledIcon.js +5 -2
  142. package/dist/components/icons/WarningIcon.js +5 -2
  143. package/dist/components/icons/WifiIcon.js +5 -2
  144. package/dist/components/icons/WriteIcon.js +5 -2
  145. package/dist/hooks/useSlots.js +4 -3
  146. package/dist/index.d.ts +4 -2
  147. package/dist/index.js +3 -2
  148. package/package.json +11 -10
  149. package/src/components/Author/Author.tsx +1 -1
  150. package/src/components/Button/Button.tsx +2 -2
  151. package/src/components/Card/Card.tsx +149 -105
  152. package/src/components/Checkbox/Checkbox.tsx +2 -2
  153. package/src/components/DatePicker/DatePicker.tsx +8 -6
  154. package/src/components/Dialog/Dialog.tsx +2 -2
  155. package/src/components/Expandable/Expandable.tsx +3 -3
  156. package/src/components/Field/Field.tsx +7 -6
  157. package/src/components/FieldMarkers/Label.tsx +1 -1
  158. package/src/components/Fieldset/Fieldset.tsx +4 -4
  159. package/src/components/Flourish/Flourish.tsx +1 -1
  160. package/src/components/Image/Image.tsx +15 -22
  161. package/src/components/LoadingSpinner/LoadingSpinner.tsx +1 -1
  162. package/src/components/PasswordInput/PasswordInput.tsx +3 -3
  163. package/src/components/Picture/Picture.tsx +36 -0
  164. package/src/components/Picture/index.ts +5 -0
  165. package/src/components/Pill/Pill.tsx +3 -3
  166. package/src/components/Popover/Popover.tsx +2 -2
  167. package/src/components/Prose/Prose.tsx +1 -1
  168. package/src/components/Radio/Radio.tsx +2 -2
  169. package/src/components/Searchbox/Searchbox.context.tsx +1 -1
  170. package/src/components/Searchbox/Searchbox.tsx +9 -10
  171. package/src/components/Select/Select.tsx +2 -2
  172. package/src/components/Signpost/Signpost.tsx +3 -3
  173. package/src/components/Squircle/Squircle.tsx +2 -1
  174. package/src/components/Tag/Tag.tsx +1 -1
  175. package/src/components/TextInput/TextInput.tsx +2 -2
  176. package/src/components/Textarea/Textarea.tsx +3 -3
  177. package/src/components/ValidationSummary/ValidationSummary.tsx +5 -2
  178. package/src/components/icons/AccountCircleFilledIcon.tsx +1 -1
  179. package/src/components/icons/AccountCircleIcon.tsx +1 -1
  180. package/src/components/icons/AccountFilledIcon.tsx +1 -1
  181. package/src/components/icons/AccountIcon.tsx +1 -1
  182. package/src/components/icons/AddIcon.tsx +1 -1
  183. package/src/components/icons/AppsFilledIcon.tsx +1 -1
  184. package/src/components/icons/AppsIcon.tsx +1 -1
  185. package/src/components/icons/ArrowDownIcon.tsx +1 -1
  186. package/src/components/icons/ArrowLeftIcon.tsx +1 -1
  187. package/src/components/icons/ArrowRightIcon.tsx +1 -1
  188. package/src/components/icons/ArrowUpIcon.tsx +1 -1
  189. package/src/components/icons/BackspaceFilledIcon.tsx +1 -1
  190. package/src/components/icons/BackspaceIcon.tsx +1 -1
  191. package/src/components/icons/BasketFilledIcon.tsx +1 -1
  192. package/src/components/icons/BasketIcon.tsx +1 -1
  193. package/src/components/icons/BellFilledIcon.tsx +1 -1
  194. package/src/components/icons/BellIcon.tsx +1 -1
  195. package/src/components/icons/BroomIcon.tsx +1 -1
  196. package/src/components/icons/CalendarFilledIcon.tsx +1 -1
  197. package/src/components/icons/CalendarIcon.tsx +1 -1
  198. package/src/components/icons/CashFilledIcon.tsx +1 -1
  199. package/src/components/icons/CashIcon.tsx +1 -1
  200. package/src/components/icons/ChevronDownIcon.tsx +1 -1
  201. package/src/components/icons/ChevronLeftIcon.tsx +1 -1
  202. package/src/components/icons/ChevronRightIcon.tsx +1 -1
  203. package/src/components/icons/ChevronUpIcon.tsx +1 -1
  204. package/src/components/icons/CircleBurgerFilledIcon.tsx +1 -1
  205. package/src/components/icons/CircleBurgerIcon.tsx +1 -1
  206. package/src/components/icons/ClipboardFilledIcon.tsx +1 -1
  207. package/src/components/icons/ClipboardIcon.tsx +1 -1
  208. package/src/components/icons/ClockFilledIcon.tsx +1 -1
  209. package/src/components/icons/ClockIcon.tsx +1 -1
  210. package/src/components/icons/CloseAltFilledIcon.tsx +1 -1
  211. package/src/components/icons/CloseAltIcon.tsx +1 -1
  212. package/src/components/icons/CogIcon.tsx +1 -1
  213. package/src/components/icons/CommunityFilledIcon.tsx +1 -1
  214. package/src/components/icons/CommunityIcon.tsx +1 -1
  215. package/src/components/icons/ComputerIcon.tsx +1 -1
  216. package/src/components/icons/ContactFilledIcon.tsx +1 -1
  217. package/src/components/icons/ContactIcon.tsx +1 -1
  218. package/src/components/icons/ContactlessFilledIcon.tsx +1 -1
  219. package/src/components/icons/ContactlessIcon.tsx +1 -1
  220. package/src/components/icons/CoopLiveIcon.tsx +1 -1
  221. package/src/components/icons/CoopLocationFilledIcon.tsx +1 -1
  222. package/src/components/icons/CoopLogoIcon.tsx +1 -1
  223. package/src/components/icons/CoopMembershipCardFilledIcon.tsx +1 -1
  224. package/src/components/icons/CreditCardFilledIcon.tsx +1 -1
  225. package/src/components/icons/CreditCardIcon.tsx +1 -1
  226. package/src/components/icons/CrossIcon.tsx +1 -1
  227. package/src/components/icons/DocumentIcon.tsx +1 -1
  228. package/src/components/icons/DownloadIcon.tsx +1 -1
  229. package/src/components/icons/EnterStoreIcon.tsx +1 -1
  230. package/src/components/icons/ExitStoreIcon.tsx +1 -1
  231. package/src/components/icons/EyeFilledIcon.tsx +1 -1
  232. package/src/components/icons/EyeIcon.tsx +1 -1
  233. package/src/components/icons/EyeStrikeFilledIcon.tsx +1 -1
  234. package/src/components/icons/EyeStrikeIcon.tsx +1 -1
  235. package/src/components/icons/FeedbackFilledIcon.tsx +1 -1
  236. package/src/components/icons/FeedbackIcon.tsx +1 -1
  237. package/src/components/icons/FilterIcon.tsx +1 -1
  238. package/src/components/icons/GiftCardFilledIcon.tsx +1 -1
  239. package/src/components/icons/GiftCardIcon.tsx +1 -1
  240. package/src/components/icons/GiftFilledIcon.tsx +1 -1
  241. package/src/components/icons/GiftIcon.tsx +1 -1
  242. package/src/components/icons/HelpFilledIcon.tsx +1 -1
  243. package/src/components/icons/HelpIcon.tsx +1 -1
  244. package/src/components/icons/HomeFilledIcon.tsx +1 -1
  245. package/src/components/icons/HomeIcon.tsx +1 -1
  246. package/src/components/icons/HowDoIAssistantIcon.tsx +1 -1
  247. package/src/components/icons/InfoIcon.tsx +1 -1
  248. package/src/components/icons/KebabIcon.tsx +1 -1
  249. package/src/components/icons/LoadingIcon.tsx +1 -1
  250. package/src/components/icons/LocationFilledIcon.tsx +1 -1
  251. package/src/components/icons/LocationIcon.tsx +1 -1
  252. package/src/components/icons/LogoutIcon.tsx +1 -1
  253. package/src/components/icons/MailIcon.tsx +1 -1
  254. package/src/components/icons/MenuIcon.tsx +1 -1
  255. package/src/components/icons/MessageIcon.tsx +1 -1
  256. package/src/components/icons/MinusIcon.tsx +1 -1
  257. package/src/components/icons/NotesFilledIcon.tsx +1 -1
  258. package/src/components/icons/NotesIcon.tsx +1 -1
  259. package/src/components/icons/OpenNewIcon.tsx +1 -1
  260. package/src/components/icons/OwnBagIcon.tsx +1 -1
  261. package/src/components/icons/PadlockIcon.tsx +1 -1
  262. package/src/components/icons/PencilIcon.tsx +1 -1
  263. package/src/components/icons/PhoneIcon.tsx +1 -1
  264. package/src/components/icons/PowerIcon.tsx +1 -1
  265. package/src/components/icons/SaveFilledIcon.tsx +1 -1
  266. package/src/components/icons/SaveIcon.tsx +1 -1
  267. package/src/components/icons/ScooterIcon.tsx +1 -1
  268. package/src/components/icons/SearchFilledIcon.tsx +1 -1
  269. package/src/components/icons/SearchIcon.tsx +1 -1
  270. package/src/components/icons/SendIcon.tsx +1 -1
  271. package/src/components/icons/SpannerIcon.tsx +1 -1
  272. package/src/components/icons/StarFilledIcon.tsx +1 -1
  273. package/src/components/icons/StarIcon.tsx +1 -1
  274. package/src/components/icons/TickAltFilledIcon.tsx +1 -1
  275. package/src/components/icons/TickAltIcon.tsx +1 -1
  276. package/src/components/icons/TickIcon.tsx +1 -1
  277. package/src/components/icons/TruckIcon.tsx +1 -1
  278. package/src/components/icons/UserWipeIcon.tsx +1 -1
  279. package/src/components/icons/VoucherFilledIcon.tsx +1 -1
  280. package/src/components/icons/VoucherIcon.tsx +1 -1
  281. package/src/components/icons/WarningCircleFilledIcon.tsx +1 -1
  282. package/src/components/icons/WarningCircleIcon.tsx +1 -1
  283. package/src/components/icons/WarningFilledIcon.tsx +1 -1
  284. package/src/components/icons/WarningIcon.tsx +1 -1
  285. package/src/components/icons/WifiIcon.tsx +1 -1
  286. package/src/components/icons/WriteIcon.tsx +1 -1
  287. package/src/hooks/useSlots.ts +1 -1
  288. package/src/index.ts +1 -0
@@ -2,8 +2,8 @@
2
2
  import clsx from "clsx"
3
3
  import { type InputHTMLAttributes, type JSX, Ref } from "react"
4
4
 
5
- import { StandardSizes } from "../../types"
6
- import { useField } from "../Field/Field.context"
5
+ import { useField } from "@/components/Field/Field.context"
6
+ import { StandardSizes } from "@/types"
7
7
 
8
8
  export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type"> {
9
9
  /** **(Optional)** Specify additional CSS classes to be applied to the component. */
@@ -1,6 +1,6 @@
1
1
  import { createContext, RefObject, useContext } from "react"
2
2
 
3
- import { StandardSizes } from "../../types"
3
+ import { StandardSizes } from "@/types"
4
4
 
5
5
  interface SearchboxContextValue {
6
6
  buttonId?: string
@@ -5,16 +5,15 @@ import type { FormHTMLAttributes, JSX, RefObject } from "react"
5
5
  import clsx from "clsx"
6
6
  import React, { useCallback, useState } from "react"
7
7
 
8
- import { useId } from "../../hooks/useId"
9
- import { useSlots } from "../../hooks/useSlots"
10
- import { StandardSizes } from "../../types"
11
- import { getSlotProp, hasUserBorder } from "../../utils"
12
- import { Button, type ButtonProps } from "../Button"
13
- import Field from "../Field"
14
- import { FieldLabel } from "../Field/Field"
15
- import { SearchIcon } from "../icons"
16
- import TextInput, { TextInputProps } from "../TextInput"
17
- import { SearchboxContext, useSearchbox } from "./Searchbox.context"
8
+ import { Button, type ButtonProps } from "@/components/Button"
9
+ import { Field, FieldLabel } from "@/components/Field"
10
+ import { SearchIcon } from "@/components/icons"
11
+ import { SearchboxContext, useSearchbox } from "@/components/Searchbox/Searchbox.context"
12
+ import TextInput, { TextInputProps } from "@/components/TextInput"
13
+ import { useId } from "@/hooks/useId"
14
+ import { useSlots } from "@/hooks/useSlots"
15
+ import { StandardSizes } from "@/types"
16
+ import { getSlotProp, hasUserBorder } from "@/utils"
18
17
 
19
18
  export interface SearchboxProps extends FormHTMLAttributes<HTMLFormElement> {
20
19
  /** **(Optional)** Specify a server endpoint to submit the form. Will be ignored if onSubmit is also set. */
@@ -10,8 +10,8 @@ import type {
10
10
 
11
11
  import clsx from "clsx"
12
12
 
13
- import { StandardSizes } from "../../../src/types"
14
- import { useField } from "../Field/Field.context"
13
+ import { useField } from "@/components/Field/Field.context"
14
+ import { StandardSizes } from "@/types"
15
15
 
16
16
  export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "size"> {
17
17
  /** **(Optional)** Options inside the Select. This should be a set of `Select.Option` or `Select.OptionGroup` components. */
@@ -3,8 +3,8 @@ import type { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react"
3
3
  import clsx from "clsx"
4
4
  import React from "react"
5
5
 
6
- import { ChevronRightIcon } from "../icons"
7
- import { Image, ImageProps } from "../Image"
6
+ import { ChevronRightIcon } from "@/components/icons"
7
+ import { Image, ImageProps } from "@/components/Image"
8
8
 
9
9
  export interface SignpostProps extends HTMLAttributes<HTMLDivElement> {
10
10
  /** **(Optional)** Specify a custom element to override default `a`. */
@@ -46,7 +46,7 @@ const Signpost = ({
46
46
 
47
47
  return (
48
48
  <div {...componentProps} ref={ref}>
49
- {image && <Image crop="wide" {...image} />}
49
+ {image && <Image {...image} />}
50
50
  {React.createElement(
51
51
  element,
52
52
  { href },
@@ -2,7 +2,8 @@ import type { HTMLAttributes, JSX, Ref } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { hasUserBg } from "../../../src/utils"
5
+ import { hasUserBg } from "@/utils"
6
+
6
7
  export interface SquircleProps extends HTMLAttributes<HTMLDivElement> {
7
8
  /** **(Optional)** Main content inside the component. It can be any valid JSX or string. */
8
9
  children?: React.ReactNode
@@ -3,7 +3,7 @@ import type { ForwardRefExoticComponent, HTMLAttributes, JSX, Ref } from "react"
3
3
  import clsx from "clsx"
4
4
  import React from "react"
5
5
 
6
- import { hasUserBg } from "../../../src/utils"
6
+ import { hasUserBg } from "@/utils"
7
7
 
8
8
  export interface TagProps extends HTMLAttributes<HTMLAnchorElement> {
9
9
  /** **(Optional)** Specify a custom element to override default `a` or `span`. */
@@ -3,8 +3,8 @@ import type { InputHTMLAttributes, JSX, Ref } from "react"
3
3
 
4
4
  import clsx from "clsx"
5
5
 
6
- import { StandardSizes } from "../../../src/types"
7
- import { useField } from "../Field/Field.context"
6
+ import { useField } from "@/components/Field/Field.context"
7
+ import { StandardSizes } from "@/types"
8
8
 
9
9
  export interface TextInputProps extends Omit<
10
10
  InputHTMLAttributes<HTMLInputElement>,
@@ -5,9 +5,9 @@ import type { ChangeEvent, JSX, Ref, TextareaHTMLAttributes } from "react"
5
5
  import clsx from "clsx"
6
6
  import { useState } from "react"
7
7
 
8
- import { useDebounce } from "../../hooks/useDebounce"
9
- import { StandardSizes } from "../../types"
10
- import { useField } from "../Field/Field.context"
8
+ import { useField } from "@/components/Field/Field.context"
9
+ import { useDebounce } from "@/hooks/useDebounce"
10
+ import { StandardSizes } from "@/types"
11
11
 
12
12
  const DEBOUNCE_DELAY = 750
13
13
 
@@ -7,8 +7,11 @@ import clsx from "clsx"
7
7
  import mergeRefs from "merge-refs"
8
8
  import React, { useEffect, useRef } from "react"
9
9
 
10
- import { useSlots } from "../../hooks/useSlots"
11
- import { getFieldElement, sanitizeFieldId } from "./validationsummary-utils"
10
+ import {
11
+ getFieldElement,
12
+ sanitizeFieldId,
13
+ } from "@/components/ValidationSummary/validationsummary-utils"
14
+ import { useSlots } from "@/hooks/useSlots"
12
15
 
13
16
  export interface ValidationSummaryProps extends HTMLAttributes<HTMLDivElement> {
14
17
  /** **(Optional)** Specify if the summary should be focused and the parent form scrolled into view if there are errors.
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string
@@ -2,7 +2,7 @@ import type { JSX, SVGProps } from "react"
2
2
 
3
3
  import clsx from "clsx"
4
4
 
5
- import { useId } from "../../hooks/useId"
5
+ import { useId } from "@/hooks/useId"
6
6
 
7
7
  interface IconProps extends SVGProps<SVGSVGElement> {
8
8
  alt?: string