@coopdigital/react 0.54.0 → 0.55.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 (325) hide show
  1. package/dist/components/Button/Button.js +1 -1
  2. package/dist/components/DatePicker/DatePicker.d.ts +2 -1
  3. package/dist/components/DatePicker/DatePicker.js +6 -5
  4. package/dist/components/Expandable/Expandable.js +1 -1
  5. package/dist/components/Searchbox/Searchbox.d.ts +1 -1
  6. package/dist/components/Searchbox/Searchbox.js +1 -1
  7. package/dist/components/TextInput/TextInput.d.ts +5 -1
  8. package/dist/components/TextInput/TextInput.js +8 -2
  9. package/dist/components/icons/AccountCircleFilledIcon.d.ts +6 -0
  10. package/dist/components/icons/AccountCircleFilledIcon.js +20 -0
  11. package/dist/components/icons/AccountCircleIcon.d.ts +6 -0
  12. package/dist/components/icons/AccountCircleIcon.js +20 -0
  13. package/dist/components/icons/AccountFilledIcon.d.ts +6 -0
  14. package/dist/components/icons/AccountFilledIcon.js +20 -0
  15. package/dist/components/icons/AccountIcon.d.ts +6 -0
  16. package/dist/components/icons/AccountIcon.js +20 -0
  17. package/dist/components/icons/AddIcon.js +2 -2
  18. package/dist/components/icons/AppsFilledIcon.d.ts +6 -0
  19. package/dist/components/icons/AppsFilledIcon.js +20 -0
  20. package/dist/components/icons/{CoopIcon.d.ts → AppsIcon.d.ts} +1 -1
  21. package/dist/components/icons/AppsIcon.js +20 -0
  22. package/dist/components/icons/ArrowDownIcon.js +2 -2
  23. package/dist/components/icons/ArrowLeftIcon.js +2 -2
  24. package/dist/components/icons/ArrowRightIcon.js +2 -2
  25. package/dist/components/icons/ArrowUpIcon.js +2 -2
  26. package/dist/components/icons/BackspaceFilledIcon.d.ts +6 -0
  27. package/dist/components/icons/BackspaceFilledIcon.js +20 -0
  28. package/dist/components/icons/{AvatarAltIcon.d.ts → BackspaceIcon.d.ts} +1 -1
  29. package/dist/components/icons/BackspaceIcon.js +20 -0
  30. package/dist/components/icons/{CoopLocationIcon.d.ts → BasketFilledIcon.d.ts} +1 -1
  31. package/dist/components/icons/BasketFilledIcon.js +20 -0
  32. package/dist/components/icons/BasketIcon.js +2 -2
  33. package/dist/components/icons/BellFilledIcon.d.ts +6 -0
  34. package/dist/components/icons/BellFilledIcon.js +20 -0
  35. package/dist/components/icons/BellIcon.d.ts +6 -0
  36. package/dist/components/icons/BellIcon.js +20 -0
  37. package/dist/components/icons/{CloseIcon.d.ts → BroomIcon.d.ts} +1 -1
  38. package/dist/components/icons/BroomIcon.js +20 -0
  39. package/dist/components/icons/CalendarFilledIcon.d.ts +6 -0
  40. package/dist/components/icons/CalendarFilledIcon.js +20 -0
  41. package/dist/components/icons/CalendarIcon.js +2 -2
  42. package/dist/components/icons/CashFilledIcon.d.ts +6 -0
  43. package/dist/components/icons/CashFilledIcon.js +20 -0
  44. package/dist/components/icons/CashIcon.d.ts +6 -0
  45. package/dist/components/icons/CashIcon.js +20 -0
  46. package/dist/components/icons/ChevronDownIcon.js +2 -2
  47. package/dist/components/icons/ChevronLeftIcon.js +2 -2
  48. package/dist/components/icons/ChevronRightIcon.js +2 -2
  49. package/dist/components/icons/ChevronUpIcon.js +2 -2
  50. package/dist/components/icons/CircleBurgerFilledIcon.d.ts +6 -0
  51. package/dist/components/icons/CircleBurgerFilledIcon.js +20 -0
  52. package/dist/components/icons/CircleBurgerIcon.d.ts +6 -0
  53. package/dist/components/icons/CircleBurgerIcon.js +20 -0
  54. package/dist/components/icons/ClipboardFilledIcon.d.ts +6 -0
  55. package/dist/components/icons/ClipboardFilledIcon.js +20 -0
  56. package/dist/components/icons/ClipboardIcon.d.ts +6 -0
  57. package/dist/components/icons/ClipboardIcon.js +20 -0
  58. package/dist/components/icons/{InformationIcon.d.ts → ClockFilledIcon.d.ts} +1 -1
  59. package/dist/components/icons/ClockFilledIcon.js +20 -0
  60. package/dist/components/icons/ClockIcon.js +2 -2
  61. package/dist/components/icons/CloseAltFilledIcon.d.ts +6 -0
  62. package/dist/components/icons/CloseAltFilledIcon.js +20 -0
  63. package/dist/components/icons/CloseAltIcon.js +2 -2
  64. package/dist/components/icons/{VanIcon.d.ts → CogIcon.d.ts} +1 -1
  65. package/dist/components/icons/CogIcon.js +20 -0
  66. package/dist/components/icons/CommunityFilledIcon.d.ts +6 -0
  67. package/dist/components/icons/CommunityFilledIcon.js +20 -0
  68. package/dist/components/icons/CommunityIcon.d.ts +6 -0
  69. package/dist/components/icons/CommunityIcon.js +20 -0
  70. package/dist/components/icons/{QuestionIcon.d.ts → ComputerIcon.d.ts} +1 -1
  71. package/dist/components/icons/ComputerIcon.js +20 -0
  72. package/dist/components/icons/ContactFilledIcon.d.ts +6 -0
  73. package/dist/components/icons/ContactFilledIcon.js +20 -0
  74. package/dist/components/icons/ContactIcon.d.ts +6 -0
  75. package/dist/components/icons/ContactIcon.js +20 -0
  76. package/dist/components/icons/ContactlessFilledIcon.d.ts +6 -0
  77. package/dist/components/icons/ContactlessFilledIcon.js +20 -0
  78. package/dist/components/icons/ContactlessIcon.d.ts +6 -0
  79. package/dist/components/icons/ContactlessIcon.js +20 -0
  80. package/dist/components/icons/{SettingsIcon.d.ts → CoopLiveIcon.d.ts} +1 -1
  81. package/dist/components/icons/CoopLiveIcon.js +20 -0
  82. package/dist/components/icons/CoopLocationFilledIcon.d.ts +6 -0
  83. package/dist/components/icons/{CoopLocationIcon.js → CoopLocationFilledIcon.js} +5 -5
  84. package/dist/components/icons/{CoopCardIcon.d.ts → CoopLogoIcon.d.ts} +1 -1
  85. package/dist/components/icons/CoopLogoIcon.js +20 -0
  86. package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +6 -0
  87. package/dist/components/icons/CoopMembershipCardFilledIcon.js +20 -0
  88. package/dist/components/icons/CreditCardFilledIcon.d.ts +6 -0
  89. package/dist/components/icons/CreditCardFilledIcon.js +20 -0
  90. package/dist/components/icons/CreditCardIcon.d.ts +6 -0
  91. package/dist/components/icons/CreditCardIcon.js +20 -0
  92. package/dist/components/icons/CrossIcon.d.ts +6 -0
  93. package/dist/components/icons/CrossIcon.js +20 -0
  94. package/dist/components/icons/DocumentIcon.d.ts +6 -0
  95. package/dist/components/icons/DocumentIcon.js +20 -0
  96. package/dist/components/icons/DownloadIcon.js +2 -2
  97. package/dist/components/icons/EnterStoreIcon.d.ts +6 -0
  98. package/dist/components/icons/EnterStoreIcon.js +20 -0
  99. package/dist/components/icons/ExitStoreIcon.d.ts +6 -0
  100. package/dist/components/icons/ExitStoreIcon.js +20 -0
  101. package/dist/components/icons/EyeFilledIcon.d.ts +6 -0
  102. package/dist/components/icons/EyeFilledIcon.js +20 -0
  103. package/dist/components/icons/EyeIcon.d.ts +6 -0
  104. package/dist/components/icons/EyeIcon.js +20 -0
  105. package/dist/components/icons/EyeStrikeFilledIcon.d.ts +6 -0
  106. package/dist/components/icons/EyeStrikeFilledIcon.js +20 -0
  107. package/dist/components/icons/EyeStrikeIcon.d.ts +6 -0
  108. package/dist/components/icons/EyeStrikeIcon.js +20 -0
  109. package/dist/components/icons/FeedbackFilledIcon.d.ts +6 -0
  110. package/dist/components/icons/FeedbackFilledIcon.js +20 -0
  111. package/dist/components/icons/FeedbackIcon.d.ts +6 -0
  112. package/dist/components/icons/FeedbackIcon.js +20 -0
  113. package/dist/components/icons/{AvatarIcon.d.ts → FilterIcon.d.ts} +1 -1
  114. package/dist/components/icons/FilterIcon.js +20 -0
  115. package/dist/components/icons/GiftCardFilledIcon.d.ts +6 -0
  116. package/dist/components/icons/GiftCardFilledIcon.js +20 -0
  117. package/dist/components/icons/GiftCardIcon.d.ts +6 -0
  118. package/dist/components/icons/GiftCardIcon.js +20 -0
  119. package/dist/components/icons/GiftFilledIcon.d.ts +6 -0
  120. package/dist/components/icons/GiftFilledIcon.js +20 -0
  121. package/dist/components/icons/GiftIcon.d.ts +6 -0
  122. package/dist/components/icons/GiftIcon.js +20 -0
  123. package/dist/components/icons/HelpFilledIcon.d.ts +6 -0
  124. package/dist/components/icons/HelpFilledIcon.js +20 -0
  125. package/dist/components/icons/HelpIcon.d.ts +6 -0
  126. package/dist/components/icons/HelpIcon.js +20 -0
  127. package/dist/components/icons/HomeFilledIcon.d.ts +6 -0
  128. package/dist/components/icons/HomeFilledIcon.js +20 -0
  129. package/dist/components/icons/HomeIcon.js +2 -2
  130. package/dist/components/icons/HowDoIAssistantIcon.d.ts +6 -0
  131. package/dist/components/icons/HowDoIAssistantIcon.js +20 -0
  132. package/dist/components/icons/InfoIcon.d.ts +6 -0
  133. package/dist/components/icons/InfoIcon.js +20 -0
  134. package/dist/components/icons/KebabIcon.d.ts +6 -0
  135. package/dist/components/icons/KebabIcon.js +20 -0
  136. package/dist/components/icons/LoadingIcon.js +3 -3
  137. package/dist/components/icons/LocationFilledIcon.d.ts +6 -0
  138. package/dist/components/icons/LocationFilledIcon.js +20 -0
  139. package/dist/components/icons/LocationIcon.js +2 -2
  140. package/dist/components/icons/LogoutIcon.d.ts +6 -0
  141. package/dist/components/icons/LogoutIcon.js +20 -0
  142. package/dist/components/icons/MailIcon.js +2 -2
  143. package/dist/components/icons/MenuIcon.js +2 -2
  144. package/dist/components/icons/MessageIcon.js +2 -2
  145. package/dist/components/icons/MinusIcon.js +2 -2
  146. package/dist/components/icons/NotesFilledIcon.d.ts +6 -0
  147. package/dist/components/icons/NotesFilledIcon.js +20 -0
  148. package/dist/components/icons/NotesIcon.d.ts +6 -0
  149. package/dist/components/icons/NotesIcon.js +20 -0
  150. package/dist/components/icons/OpenNewIcon.js +2 -2
  151. package/dist/components/icons/OwnBagIcon.d.ts +6 -0
  152. package/dist/components/icons/OwnBagIcon.js +20 -0
  153. package/dist/components/icons/PadlockIcon.d.ts +6 -0
  154. package/dist/components/icons/PadlockIcon.js +20 -0
  155. package/dist/components/icons/PencilIcon.js +2 -2
  156. package/dist/components/icons/PhoneIcon.js +2 -2
  157. package/dist/components/icons/PowerIcon.d.ts +6 -0
  158. package/dist/components/icons/PowerIcon.js +20 -0
  159. package/dist/components/icons/SaveFilledIcon.d.ts +6 -0
  160. package/dist/components/icons/SaveFilledIcon.js +20 -0
  161. package/dist/components/icons/SaveIcon.d.ts +6 -0
  162. package/dist/components/icons/SaveIcon.js +20 -0
  163. package/dist/components/icons/ScooterIcon.js +3 -3
  164. package/dist/components/icons/SearchFilledIcon.d.ts +6 -0
  165. package/dist/components/icons/SearchFilledIcon.js +20 -0
  166. package/dist/components/icons/SearchIcon.js +2 -2
  167. package/dist/components/icons/SendIcon.d.ts +6 -0
  168. package/dist/components/icons/SendIcon.js +20 -0
  169. package/dist/components/icons/SpannerIcon.d.ts +6 -0
  170. package/dist/components/icons/SpannerIcon.js +20 -0
  171. package/dist/components/icons/StarFilledIcon.d.ts +6 -0
  172. package/dist/components/icons/StarFilledIcon.js +20 -0
  173. package/dist/components/icons/StarIcon.d.ts +6 -0
  174. package/dist/components/icons/StarIcon.js +20 -0
  175. package/dist/components/icons/TickAltFilledIcon.d.ts +6 -0
  176. package/dist/components/icons/TickAltFilledIcon.js +20 -0
  177. package/dist/components/icons/TickAltIcon.js +2 -2
  178. package/dist/components/icons/TickIcon.js +2 -2
  179. package/dist/components/icons/TruckIcon.d.ts +6 -0
  180. package/dist/components/icons/TruckIcon.js +20 -0
  181. package/dist/components/icons/UserWipeIcon.d.ts +6 -0
  182. package/dist/components/icons/UserWipeIcon.js +20 -0
  183. package/dist/components/icons/VoucherFilledIcon.d.ts +6 -0
  184. package/dist/components/icons/VoucherFilledIcon.js +20 -0
  185. package/dist/components/icons/VoucherIcon.d.ts +6 -0
  186. package/dist/components/icons/VoucherIcon.js +20 -0
  187. package/dist/components/icons/WarningFilledIcon.d.ts +6 -0
  188. package/dist/components/icons/WarningFilledIcon.js +20 -0
  189. package/dist/components/icons/WarningIcon.js +2 -2
  190. package/dist/components/icons/WifiIcon.d.ts +6 -0
  191. package/dist/components/icons/WifiIcon.js +20 -0
  192. package/dist/components/icons/WriteIcon.js +2 -2
  193. package/dist/components/icons/index.d.ts +77 -10
  194. package/dist/components/icons/index.js +77 -10
  195. package/package.json +3 -3
  196. package/src/components/Button/Button.tsx +1 -1
  197. package/src/components/DatePicker/DatePicker.tsx +13 -12
  198. package/src/components/Expandable/Expandable.tsx +1 -6
  199. package/src/components/Searchbox/Searchbox.tsx +2 -2
  200. package/src/components/TextInput/TextInput.tsx +18 -2
  201. package/src/components/icons/AccountCircleFilledIcon.tsx +28 -0
  202. package/src/components/icons/AccountCircleIcon.tsx +28 -0
  203. package/src/components/icons/AccountFilledIcon.tsx +28 -0
  204. package/src/components/icons/AccountIcon.tsx +28 -0
  205. package/src/components/icons/AddIcon.tsx +2 -9
  206. package/src/components/icons/AppsFilledIcon.tsx +28 -0
  207. package/src/components/icons/AppsIcon.tsx +28 -0
  208. package/src/components/icons/ArrowDownIcon.tsx +2 -6
  209. package/src/components/icons/ArrowLeftIcon.tsx +2 -6
  210. package/src/components/icons/ArrowRightIcon.tsx +2 -6
  211. package/src/components/icons/ArrowUpIcon.tsx +2 -6
  212. package/src/components/icons/BackspaceFilledIcon.tsx +28 -0
  213. package/src/components/icons/BackspaceIcon.tsx +28 -0
  214. package/src/components/icons/BasketFilledIcon.tsx +28 -0
  215. package/src/components/icons/BasketIcon.tsx +2 -9
  216. package/src/components/icons/BellFilledIcon.tsx +29 -0
  217. package/src/components/icons/BellIcon.tsx +28 -0
  218. package/src/components/icons/BroomIcon.tsx +28 -0
  219. package/src/components/icons/CalendarFilledIcon.tsx +28 -0
  220. package/src/components/icons/CalendarIcon.tsx +2 -9
  221. package/src/components/icons/CashFilledIcon.tsx +28 -0
  222. package/src/components/icons/CashIcon.tsx +33 -0
  223. package/src/components/icons/ChevronDownIcon.tsx +2 -5
  224. package/src/components/icons/ChevronLeftIcon.tsx +2 -5
  225. package/src/components/icons/ChevronRightIcon.tsx +2 -5
  226. package/src/components/icons/ChevronUpIcon.tsx +2 -5
  227. package/src/components/icons/CircleBurgerFilledIcon.tsx +28 -0
  228. package/src/components/icons/CircleBurgerIcon.tsx +28 -0
  229. package/src/components/icons/ClipboardFilledIcon.tsx +28 -0
  230. package/src/components/icons/ClipboardIcon.tsx +28 -0
  231. package/src/components/icons/{InformationIcon.tsx → ClockFilledIcon.tsx} +6 -9
  232. package/src/components/icons/ClockIcon.tsx +2 -9
  233. package/src/components/icons/CloseAltFilledIcon.tsx +32 -0
  234. package/src/components/icons/CloseAltIcon.tsx +2 -13
  235. package/src/components/icons/CogIcon.tsx +28 -0
  236. package/src/components/icons/CommunityFilledIcon.tsx +28 -0
  237. package/src/components/icons/CommunityIcon.tsx +28 -0
  238. package/src/components/icons/ComputerIcon.tsx +28 -0
  239. package/src/components/icons/ContactFilledIcon.tsx +28 -0
  240. package/src/components/icons/ContactIcon.tsx +28 -0
  241. package/src/components/icons/ContactlessFilledIcon.tsx +28 -0
  242. package/src/components/icons/ContactlessIcon.tsx +28 -0
  243. package/src/components/icons/CoopLiveIcon.tsx +29 -0
  244. package/src/components/icons/CoopLocationFilledIcon.tsx +30 -0
  245. package/src/components/icons/CoopLogoIcon.tsx +28 -0
  246. package/src/components/icons/CoopMembershipCardFilledIcon.tsx +40 -0
  247. package/src/components/icons/CreditCardFilledIcon.tsx +42 -0
  248. package/src/components/icons/CreditCardIcon.tsx +28 -0
  249. package/src/components/icons/{CloseIcon.tsx → CrossIcon.tsx} +4 -11
  250. package/src/components/icons/DocumentIcon.tsx +28 -0
  251. package/src/components/icons/DownloadIcon.tsx +2 -13
  252. package/src/components/icons/EnterStoreIcon.tsx +28 -0
  253. package/src/components/icons/ExitStoreIcon.tsx +28 -0
  254. package/src/components/icons/EyeFilledIcon.tsx +28 -0
  255. package/src/components/icons/EyeIcon.tsx +28 -0
  256. package/src/components/icons/EyeStrikeFilledIcon.tsx +28 -0
  257. package/src/components/icons/EyeStrikeIcon.tsx +28 -0
  258. package/src/components/icons/FeedbackFilledIcon.tsx +35 -0
  259. package/src/components/icons/FeedbackIcon.tsx +28 -0
  260. package/src/components/icons/FilterIcon.tsx +28 -0
  261. package/src/components/icons/GiftCardFilledIcon.tsx +28 -0
  262. package/src/components/icons/GiftCardIcon.tsx +28 -0
  263. package/src/components/icons/GiftFilledIcon.tsx +28 -0
  264. package/src/components/icons/GiftIcon.tsx +28 -0
  265. package/src/components/icons/HelpFilledIcon.tsx +28 -0
  266. package/src/components/icons/HelpIcon.tsx +28 -0
  267. package/src/components/icons/HomeFilledIcon.tsx +28 -0
  268. package/src/components/icons/HomeIcon.tsx +2 -13
  269. package/src/components/icons/HowDoIAssistantIcon.tsx +28 -0
  270. package/src/components/icons/InfoIcon.tsx +28 -0
  271. package/src/components/icons/KebabIcon.tsx +28 -0
  272. package/src/components/icons/LoadingIcon.tsx +3 -6
  273. package/src/components/icons/LocationFilledIcon.tsx +28 -0
  274. package/src/components/icons/LocationIcon.tsx +2 -9
  275. package/src/components/icons/LogoutIcon.tsx +28 -0
  276. package/src/components/icons/MailIcon.tsx +2 -5
  277. package/src/components/icons/MenuIcon.tsx +2 -5
  278. package/src/components/icons/MessageIcon.tsx +2 -5
  279. package/src/components/icons/MinusIcon.tsx +2 -5
  280. package/src/components/icons/NotesFilledIcon.tsx +28 -0
  281. package/src/components/icons/NotesIcon.tsx +28 -0
  282. package/src/components/icons/OpenNewIcon.tsx +3 -9
  283. package/src/components/icons/OwnBagIcon.tsx +28 -0
  284. package/src/components/icons/PadlockIcon.tsx +28 -0
  285. package/src/components/icons/PencilIcon.tsx +2 -5
  286. package/src/components/icons/PhoneIcon.tsx +2 -5
  287. package/src/components/icons/PowerIcon.tsx +28 -0
  288. package/src/components/icons/SaveFilledIcon.tsx +28 -0
  289. package/src/components/icons/SaveIcon.tsx +28 -0
  290. package/src/components/icons/ScooterIcon.tsx +3 -22
  291. package/src/components/icons/SearchFilledIcon.tsx +28 -0
  292. package/src/components/icons/SearchIcon.tsx +9 -9
  293. package/src/components/icons/SendIcon.tsx +28 -0
  294. package/src/components/icons/SpannerIcon.tsx +28 -0
  295. package/src/components/icons/StarFilledIcon.tsx +31 -0
  296. package/src/components/icons/StarIcon.tsx +28 -0
  297. package/src/components/icons/TickAltFilledIcon.tsx +32 -0
  298. package/src/components/icons/TickAltIcon.tsx +2 -9
  299. package/src/components/icons/TickIcon.tsx +2 -5
  300. package/src/components/icons/TruckIcon.tsx +28 -0
  301. package/src/components/icons/UserWipeIcon.tsx +28 -0
  302. package/src/components/icons/VoucherFilledIcon.tsx +28 -0
  303. package/src/components/icons/VoucherIcon.tsx +28 -0
  304. package/src/components/icons/WarningFilledIcon.tsx +28 -0
  305. package/src/components/icons/WarningIcon.tsx +2 -9
  306. package/src/components/icons/WifiIcon.tsx +28 -0
  307. package/src/components/icons/WriteIcon.tsx +5 -17
  308. package/src/components/icons/index.ts +77 -10
  309. package/dist/components/icons/AvatarAltIcon.js +0 -20
  310. package/dist/components/icons/AvatarIcon.js +0 -20
  311. package/dist/components/icons/CloseIcon.js +0 -20
  312. package/dist/components/icons/CoopCardIcon.js +0 -20
  313. package/dist/components/icons/CoopIcon.js +0 -20
  314. package/dist/components/icons/InformationIcon.js +0 -20
  315. package/dist/components/icons/QuestionIcon.js +0 -20
  316. package/dist/components/icons/SettingsIcon.js +0 -20
  317. package/dist/components/icons/VanIcon.js +0 -20
  318. package/src/components/icons/AvatarAltIcon.tsx +0 -39
  319. package/src/components/icons/AvatarIcon.tsx +0 -35
  320. package/src/components/icons/CoopCardIcon.tsx +0 -32
  321. package/src/components/icons/CoopIcon.tsx +0 -32
  322. package/src/components/icons/CoopLocationIcon.tsx +0 -39
  323. package/src/components/icons/QuestionIcon.tsx +0 -35
  324. package/src/components/icons/SettingsIcon.tsx +0 -31
  325. package/src/components/icons/VanIcon.tsx +0 -31
@@ -0,0 +1,20 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+ import { useId } from '../../hooks/useId.js';
4
+
5
+ const WifiIcon = ({ alt, className, fill, id, ref, ...props }) => {
6
+ const uid = useId(id);
7
+ const componentProps = {
8
+ "aria-labelledby": alt ? uid + "-title" : undefined,
9
+ className: clsx("coop-icon", className),
10
+ "data-icon": "wifi",
11
+ fill: fill !== null && fill !== void 0 ? fill : "currentColor",
12
+ id: uid,
13
+ role: alt ? "img" : undefined,
14
+ viewBox: "0 0 32 32",
15
+ ...props,
16
+ };
17
+ return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M16 22a2 2 0 1 1 0 4 2 2 0 0 1 0-4m-7.987-4.836c4.419-4.418 11.583-4.418 16.001 0a1.5 1.5 0 0 1-2.12 2.121 8.316 8.316 0 0 0-11.76 0 1.5 1.5 0 1 1-2.12-2.12m-5.552-5.55c7.485-7.485 19.621-7.485 27.106 0a1.5 1.5 0 0 1-2.122 2.12c-6.314-6.313-16.55-6.313-22.863 0a1.5 1.5 0 0 1-2.121-2.12" })] }));
18
+ };
19
+
20
+ export { WifiIcon };
@@ -8,13 +8,13 @@ const WriteIcon = ({ alt, className, fill, id, ref, ...props }) => {
8
8
  "aria-labelledby": alt ? uid + "-title" : undefined,
9
9
  className: clsx("coop-icon", className),
10
10
  "data-icon": "write",
11
- fill: fill !== null && fill !== void 0 ? fill : "none",
11
+ fill: fill !== null && fill !== void 0 ? fill : "currentColor",
12
12
  id: uid,
13
13
  role: alt ? "img" : undefined,
14
14
  viewBox: "0 0 32 32",
15
15
  ...props,
16
16
  };
17
- return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M19.67 10.13 17.9 11.9H7a1 1 0 0 1 0-2h12a1 1 0 0 1 .67.23M14.9 14.9l-2 2H7a1 1 0 0 1 0-2ZM20 15.9a1 1 0 0 1-1 1h-1.87l2-2a1 1 0 0 1 .82.59.85.85 0 0 1 .05.41M19 21.9H7a1 1 0 0 1 0-2h12a1 1 0 1 1 0 2", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M24.08 10v20h-22V6h21.73l1.54-1.54a1.9 1.9 0 0 0-1-.44H2.07a2 2 0 0 0-2 2V30a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2V8Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M30.62 3.41 28.5 1.29a1 1 0 0 0-1.42 0L22.38 6l-3.9 3.9-5 5-1.33 1.33a1 1 0 0 0-.27.48v.19l-.6 2.57a.8.8 0 0 0 0 .43 1 1 0 0 0 1.19.77l2.74-.67a.64.64 0 0 0 .29-.13.6.6 0 0 0 .19-.14l2.85-2.86 1.4-1.39L30.62 4.82a1 1 0 0 0 0-1.41M15 19.06l-2.75.63.62-2.75 6.82-6.81L23.81 6l1.54-1.54L27.79 2l2.13 2.12Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" }), jsx("path", { d: "M31.33 2.7 29.21.58a2.06 2.06 0 0 0-2.83 0L11.44 15.52a2.1 2.1 0 0 0-.54 1l-.09.41-.54 2.34a2.18 2.18 0 0 0 .54 1.87 2 2 0 0 0 1.4.58 1.8 1.8 0 0 0 .46-.05l2.75-.67a2.1 2.1 0 0 0 1-.54L31.33 5.53a2 2 0 0 0 0-2.83M15 19.06l-2.75.63.62-2.75 6.82-6.81L23.81 6l1.54-1.54L27.79 2l2.13 2.12Z", fill: fill !== null && fill !== void 0 ? fill : "currentColor" })] }));
17
+ return (jsxs("svg", { ...componentProps, ref: ref, children: [alt ? jsx("title", { id: uid + "-title", children: alt }) : null, jsx("path", { d: "M19.67 10.13 17.9 11.9H7a1 1 0 0 1 0-2h12a1 1 0 0 1 .67.23M14.9 14.9l-2 2H7a1 1 0 0 1 0-2ZM20 15.9a1 1 0 0 1-1 1h-1.87l2-2a1 1 0 0 1 .82.59.85.85 0 0 1 .05.41M19 21.9H7a1 1 0 0 1 0-2h12a1 1 0 1 1 0 2" }), jsx("path", { d: "M24.08 10v20h-22V6h21.73l1.54-1.54a1.9 1.9 0 0 0-1-.44H2.07a2 2 0 0 0-2 2V30a2 2 0 0 0 2 2h22a2 2 0 0 0 2-2V8Z" }), jsx("path", { d: "M30.62 3.41 28.5 1.29a1 1 0 0 0-1.42 0L22.38 6l-3.9 3.9-5 5-1.33 1.33a1 1 0 0 0-.27.48v.19l-.6 2.57a.8.8 0 0 0 0 .43 1 1 0 0 0 1.19.77l2.74-.67a.64.64 0 0 0 .29-.13.6.6 0 0 0 .19-.14l2.85-2.86 1.4-1.39L30.62 4.82a1 1 0 0 0 0-1.41M15 19.06l-2.75.63.62-2.75 6.82-6.81L23.81 6l1.54-1.54L27.79 2l2.13 2.12Z" }), jsx("path", { d: "M31.33 2.7 29.21.58a2.06 2.06 0 0 0-2.83 0L11.44 15.52a2.1 2.1 0 0 0-.54 1l-.09.41-.54 2.34a2.18 2.18 0 0 0 .54 1.87 2 2 0 0 0 1.4.58 1.8 1.8 0 0 0 .46-.05l2.75-.67a2.1 2.1 0 0 0 1-.54L31.33 5.53a2 2 0 0 0 0-2.83M15 19.06l-2.75.63.62-2.75 6.82-6.81L23.81 6l1.54-1.54L27.79 2l2.13 2.12Z" })] }));
18
18
  };
19
19
 
20
20
  export { WriteIcon };
@@ -1,40 +1,107 @@
1
+ export { AccountCircleFilledIcon } from "./AccountCircleFilledIcon";
2
+ export { AccountCircleIcon } from "./AccountCircleIcon";
3
+ export { AccountFilledIcon } from "./AccountFilledIcon";
4
+ export { AccountIcon } from "./AccountIcon";
1
5
  export { AddIcon } from "./AddIcon";
6
+ export { AppsFilledIcon } from "./AppsFilledIcon";
7
+ export { AppsIcon } from "./AppsIcon";
2
8
  export { ArrowDownIcon } from "./ArrowDownIcon";
3
9
  export { ArrowLeftIcon } from "./ArrowLeftIcon";
4
10
  export { ArrowRightIcon } from "./ArrowRightIcon";
5
11
  export { ArrowUpIcon } from "./ArrowUpIcon";
6
- export { AvatarAltIcon } from "./AvatarAltIcon";
7
- export { AvatarIcon } from "./AvatarIcon";
12
+ export { BackspaceFilledIcon } from "./BackspaceFilledIcon";
13
+ export { BackspaceIcon } from "./BackspaceIcon";
14
+ export { BasketFilledIcon } from "./BasketFilledIcon";
8
15
  export { BasketIcon } from "./BasketIcon";
16
+ export { BellFilledIcon } from "./BellFilledIcon";
17
+ export { BellIcon } from "./BellIcon";
18
+ export { BroomIcon } from "./BroomIcon";
19
+ export { CalendarFilledIcon } from "./CalendarFilledIcon";
9
20
  export { CalendarIcon } from "./CalendarIcon";
21
+ export { CashFilledIcon } from "./CashFilledIcon";
22
+ export { CashIcon } from "./CashIcon";
10
23
  export { ChevronDownIcon } from "./ChevronDownIcon";
11
24
  export { ChevronLeftIcon } from "./ChevronLeftIcon";
12
25
  export { ChevronRightIcon } from "./ChevronRightIcon";
13
26
  export { ChevronUpIcon } from "./ChevronUpIcon";
27
+ export { CircleBurgerFilledIcon } from "./CircleBurgerFilledIcon";
28
+ export { CircleBurgerIcon } from "./CircleBurgerIcon";
29
+ export { ClipboardFilledIcon } from "./ClipboardFilledIcon";
30
+ export { ClipboardIcon } from "./ClipboardIcon";
31
+ export { ClockFilledIcon } from "./ClockFilledIcon";
14
32
  export { ClockIcon } from "./ClockIcon";
33
+ export { CloseAltFilledIcon } from "./CloseAltFilledIcon";
15
34
  export { CloseAltIcon } from "./CloseAltIcon";
16
- export { CloseIcon } from "./CloseIcon";
17
- export { CoopCardIcon } from "./CoopCardIcon";
18
- export { CoopIcon } from "./CoopIcon";
19
- export { CoopLocationIcon } from "./CoopLocationIcon";
35
+ export { CogIcon } from "./CogIcon";
36
+ export { CommunityFilledIcon } from "./CommunityFilledIcon";
37
+ export { CommunityIcon } from "./CommunityIcon";
38
+ export { ComputerIcon } from "./ComputerIcon";
39
+ export { ContactFilledIcon } from "./ContactFilledIcon";
40
+ export { ContactIcon } from "./ContactIcon";
41
+ export { ContactlessFilledIcon } from "./ContactlessFilledIcon";
42
+ export { ContactlessIcon } from "./ContactlessIcon";
43
+ export { CoopLiveIcon } from "./CoopLiveIcon";
44
+ export { CoopLocationFilledIcon } from "./CoopLocationFilledIcon";
45
+ export { CoopLogoIcon } from "./CoopLogoIcon";
46
+ export { CoopMembershipCardFilledIcon } from "./CoopMembershipCardFilledIcon";
47
+ export { CreditCardFilledIcon } from "./CreditCardFilledIcon";
48
+ export { CreditCardIcon } from "./CreditCardIcon";
49
+ export { CrossIcon } from "./CrossIcon";
50
+ export { DocumentIcon } from "./DocumentIcon";
20
51
  export { DownloadIcon } from "./DownloadIcon";
52
+ export { EnterStoreIcon } from "./EnterStoreIcon";
53
+ export { ExitStoreIcon } from "./ExitStoreIcon";
54
+ export { EyeFilledIcon } from "./EyeFilledIcon";
55
+ export { EyeIcon } from "./EyeIcon";
56
+ export { EyeStrikeFilledIcon } from "./EyeStrikeFilledIcon";
57
+ export { EyeStrikeIcon } from "./EyeStrikeIcon";
58
+ export { FeedbackFilledIcon } from "./FeedbackFilledIcon";
59
+ export { FeedbackIcon } from "./FeedbackIcon";
60
+ export { FilterIcon } from "./FilterIcon";
61
+ export { GiftCardFilledIcon } from "./GiftCardFilledIcon";
62
+ export { GiftCardIcon } from "./GiftCardIcon";
63
+ export { GiftFilledIcon } from "./GiftFilledIcon";
64
+ export { GiftIcon } from "./GiftIcon";
65
+ export { HelpFilledIcon } from "./HelpFilledIcon";
66
+ export { HelpIcon } from "./HelpIcon";
67
+ export { HomeFilledIcon } from "./HomeFilledIcon";
21
68
  export { HomeIcon } from "./HomeIcon";
22
- export { InformationIcon } from "./InformationIcon";
69
+ export { HowDoIAssistantIcon } from "./HowDoIAssistantIcon";
70
+ export { InfoIcon } from "./InfoIcon";
71
+ export { KebabIcon } from "./KebabIcon";
23
72
  export { LoadingIcon } from "./LoadingIcon";
73
+ export { LocationFilledIcon } from "./LocationFilledIcon";
24
74
  export { LocationIcon } from "./LocationIcon";
75
+ export { LogoutIcon } from "./LogoutIcon";
25
76
  export { MailIcon } from "./MailIcon";
26
77
  export { MenuIcon } from "./MenuIcon";
27
78
  export { MessageIcon } from "./MessageIcon";
28
79
  export { MinusIcon } from "./MinusIcon";
80
+ export { NotesFilledIcon } from "./NotesFilledIcon";
81
+ export { NotesIcon } from "./NotesIcon";
29
82
  export { OpenNewIcon } from "./OpenNewIcon";
83
+ export { OwnBagIcon } from "./OwnBagIcon";
84
+ export { PadlockIcon } from "./PadlockIcon";
30
85
  export { PencilIcon } from "./PencilIcon";
31
86
  export { PhoneIcon } from "./PhoneIcon";
32
- export { QuestionIcon } from "./QuestionIcon";
87
+ export { PowerIcon } from "./PowerIcon";
88
+ export { SaveFilledIcon } from "./SaveFilledIcon";
89
+ export { SaveIcon } from "./SaveIcon";
33
90
  export { ScooterIcon } from "./ScooterIcon";
91
+ export { SearchFilledIcon } from "./SearchFilledIcon";
34
92
  export { SearchIcon } from "./SearchIcon";
35
- export { SettingsIcon } from "./SettingsIcon";
93
+ export { SendIcon } from "./SendIcon";
94
+ export { SpannerIcon } from "./SpannerIcon";
95
+ export { StarFilledIcon } from "./StarFilledIcon";
96
+ export { StarIcon } from "./StarIcon";
97
+ export { TickAltFilledIcon } from "./TickAltFilledIcon";
36
98
  export { TickAltIcon } from "./TickAltIcon";
37
99
  export { TickIcon } from "./TickIcon";
38
- export { VanIcon } from "./VanIcon";
100
+ export { TruckIcon } from "./TruckIcon";
101
+ export { UserWipeIcon } from "./UserWipeIcon";
102
+ export { VoucherFilledIcon } from "./VoucherFilledIcon";
103
+ export { VoucherIcon } from "./VoucherIcon";
104
+ export { WarningFilledIcon } from "./WarningFilledIcon";
39
105
  export { WarningIcon } from "./WarningIcon";
106
+ export { WifiIcon } from "./WifiIcon";
40
107
  export { WriteIcon } from "./WriteIcon";
@@ -1,40 +1,107 @@
1
+ export { AccountCircleFilledIcon } from './AccountCircleFilledIcon.js';
2
+ export { AccountCircleIcon } from './AccountCircleIcon.js';
3
+ export { AccountFilledIcon } from './AccountFilledIcon.js';
4
+ export { AccountIcon } from './AccountIcon.js';
1
5
  export { AddIcon } from './AddIcon.js';
6
+ export { AppsFilledIcon } from './AppsFilledIcon.js';
7
+ export { AppsIcon } from './AppsIcon.js';
2
8
  export { ArrowDownIcon } from './ArrowDownIcon.js';
3
9
  export { ArrowLeftIcon } from './ArrowLeftIcon.js';
4
10
  export { ArrowRightIcon } from './ArrowRightIcon.js';
5
11
  export { ArrowUpIcon } from './ArrowUpIcon.js';
6
- export { AvatarAltIcon } from './AvatarAltIcon.js';
7
- export { AvatarIcon } from './AvatarIcon.js';
12
+ export { BackspaceFilledIcon } from './BackspaceFilledIcon.js';
13
+ export { BackspaceIcon } from './BackspaceIcon.js';
14
+ export { BasketFilledIcon } from './BasketFilledIcon.js';
8
15
  export { BasketIcon } from './BasketIcon.js';
16
+ export { BellFilledIcon } from './BellFilledIcon.js';
17
+ export { BellIcon } from './BellIcon.js';
18
+ export { BroomIcon } from './BroomIcon.js';
19
+ export { CalendarFilledIcon } from './CalendarFilledIcon.js';
9
20
  export { CalendarIcon } from './CalendarIcon.js';
21
+ export { CashFilledIcon } from './CashFilledIcon.js';
22
+ export { CashIcon } from './CashIcon.js';
10
23
  export { ChevronDownIcon } from './ChevronDownIcon.js';
11
24
  export { ChevronLeftIcon } from './ChevronLeftIcon.js';
12
25
  export { ChevronRightIcon } from './ChevronRightIcon.js';
13
26
  export { ChevronUpIcon } from './ChevronUpIcon.js';
27
+ export { CircleBurgerFilledIcon } from './CircleBurgerFilledIcon.js';
28
+ export { CircleBurgerIcon } from './CircleBurgerIcon.js';
29
+ export { ClipboardFilledIcon } from './ClipboardFilledIcon.js';
30
+ export { ClipboardIcon } from './ClipboardIcon.js';
31
+ export { ClockFilledIcon } from './ClockFilledIcon.js';
14
32
  export { ClockIcon } from './ClockIcon.js';
33
+ export { CloseAltFilledIcon } from './CloseAltFilledIcon.js';
15
34
  export { CloseAltIcon } from './CloseAltIcon.js';
16
- export { CloseIcon } from './CloseIcon.js';
17
- export { CoopCardIcon } from './CoopCardIcon.js';
18
- export { CoopIcon } from './CoopIcon.js';
19
- export { CoopLocationIcon } from './CoopLocationIcon.js';
35
+ export { CogIcon } from './CogIcon.js';
36
+ export { CommunityFilledIcon } from './CommunityFilledIcon.js';
37
+ export { CommunityIcon } from './CommunityIcon.js';
38
+ export { ComputerIcon } from './ComputerIcon.js';
39
+ export { ContactFilledIcon } from './ContactFilledIcon.js';
40
+ export { ContactIcon } from './ContactIcon.js';
41
+ export { ContactlessFilledIcon } from './ContactlessFilledIcon.js';
42
+ export { ContactlessIcon } from './ContactlessIcon.js';
43
+ export { CoopLiveIcon } from './CoopLiveIcon.js';
44
+ export { CoopLocationFilledIcon } from './CoopLocationFilledIcon.js';
45
+ export { CoopLogoIcon } from './CoopLogoIcon.js';
46
+ export { CoopMembershipCardFilledIcon } from './CoopMembershipCardFilledIcon.js';
47
+ export { CreditCardFilledIcon } from './CreditCardFilledIcon.js';
48
+ export { CreditCardIcon } from './CreditCardIcon.js';
49
+ export { CrossIcon } from './CrossIcon.js';
50
+ export { DocumentIcon } from './DocumentIcon.js';
20
51
  export { DownloadIcon } from './DownloadIcon.js';
52
+ export { EnterStoreIcon } from './EnterStoreIcon.js';
53
+ export { ExitStoreIcon } from './ExitStoreIcon.js';
54
+ export { EyeFilledIcon } from './EyeFilledIcon.js';
55
+ export { EyeIcon } from './EyeIcon.js';
56
+ export { EyeStrikeFilledIcon } from './EyeStrikeFilledIcon.js';
57
+ export { EyeStrikeIcon } from './EyeStrikeIcon.js';
58
+ export { FeedbackFilledIcon } from './FeedbackFilledIcon.js';
59
+ export { FeedbackIcon } from './FeedbackIcon.js';
60
+ export { FilterIcon } from './FilterIcon.js';
61
+ export { GiftCardFilledIcon } from './GiftCardFilledIcon.js';
62
+ export { GiftCardIcon } from './GiftCardIcon.js';
63
+ export { GiftFilledIcon } from './GiftFilledIcon.js';
64
+ export { GiftIcon } from './GiftIcon.js';
65
+ export { HelpFilledIcon } from './HelpFilledIcon.js';
66
+ export { HelpIcon } from './HelpIcon.js';
67
+ export { HomeFilledIcon } from './HomeFilledIcon.js';
21
68
  export { HomeIcon } from './HomeIcon.js';
22
- export { InformationIcon } from './InformationIcon.js';
69
+ export { HowDoIAssistantIcon } from './HowDoIAssistantIcon.js';
70
+ export { InfoIcon } from './InfoIcon.js';
71
+ export { KebabIcon } from './KebabIcon.js';
23
72
  export { LoadingIcon } from './LoadingIcon.js';
73
+ export { LocationFilledIcon } from './LocationFilledIcon.js';
24
74
  export { LocationIcon } from './LocationIcon.js';
75
+ export { LogoutIcon } from './LogoutIcon.js';
25
76
  export { MailIcon } from './MailIcon.js';
26
77
  export { MenuIcon } from './MenuIcon.js';
27
78
  export { MessageIcon } from './MessageIcon.js';
28
79
  export { MinusIcon } from './MinusIcon.js';
80
+ export { NotesFilledIcon } from './NotesFilledIcon.js';
81
+ export { NotesIcon } from './NotesIcon.js';
29
82
  export { OpenNewIcon } from './OpenNewIcon.js';
83
+ export { OwnBagIcon } from './OwnBagIcon.js';
84
+ export { PadlockIcon } from './PadlockIcon.js';
30
85
  export { PencilIcon } from './PencilIcon.js';
31
86
  export { PhoneIcon } from './PhoneIcon.js';
32
- export { QuestionIcon } from './QuestionIcon.js';
87
+ export { PowerIcon } from './PowerIcon.js';
88
+ export { SaveFilledIcon } from './SaveFilledIcon.js';
89
+ export { SaveIcon } from './SaveIcon.js';
33
90
  export { ScooterIcon } from './ScooterIcon.js';
91
+ export { SearchFilledIcon } from './SearchFilledIcon.js';
34
92
  export { SearchIcon } from './SearchIcon.js';
35
- export { SettingsIcon } from './SettingsIcon.js';
93
+ export { SendIcon } from './SendIcon.js';
94
+ export { SpannerIcon } from './SpannerIcon.js';
95
+ export { StarFilledIcon } from './StarFilledIcon.js';
96
+ export { StarIcon } from './StarIcon.js';
97
+ export { TickAltFilledIcon } from './TickAltFilledIcon.js';
36
98
  export { TickAltIcon } from './TickAltIcon.js';
37
99
  export { TickIcon } from './TickIcon.js';
38
- export { VanIcon } from './VanIcon.js';
100
+ export { TruckIcon } from './TruckIcon.js';
101
+ export { UserWipeIcon } from './UserWipeIcon.js';
102
+ export { VoucherFilledIcon } from './VoucherFilledIcon.js';
103
+ export { VoucherIcon } from './VoucherIcon.js';
104
+ export { WarningFilledIcon } from './WarningFilledIcon.js';
39
105
  export { WarningIcon } from './WarningIcon.js';
106
+ export { WifiIcon } from './WifiIcon.js';
40
107
  export { WriteIcon } from './WriteIcon.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopdigital/react",
3
3
  "type": "module",
4
- "version": "0.54.0",
4
+ "version": "0.55.0",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -83,10 +83,10 @@
83
83
  "storybook": "$storybook"
84
84
  },
85
85
  "dependencies": {
86
- "@coopdigital/styles": "^0.45.0",
86
+ "@coopdigital/styles": "^0.46.0",
87
87
  "@radix-ui/react-popover": "^1.1.15",
88
88
  "clsx": "^2.1.1",
89
89
  "react-day-picker": "^9.12.0"
90
90
  },
91
- "gitHead": "d15d7ae0d231bf28986a18a9e097537802f845db"
91
+ "gitHead": "a893acdaff1f6dc817bb01d77988b1bd9dd85ad1"
92
92
  }
@@ -95,7 +95,7 @@ export const Button = ({
95
95
  isPending || isLoading ? (
96
96
  <>
97
97
  {loadingText}
98
- <LoadingIcon />
98
+ <LoadingIcon stroke={"currentColor"} strokeWidth={"1px"} />
99
99
  </>
100
100
  ) : (
101
101
  children
@@ -1,5 +1,5 @@
1
1
  "use client"
2
- import type { FormEvent, InputHTMLAttributes, JSX, Ref } from "react"
2
+ import type { ChangeEvent, InputHTMLAttributes, JSX, Ref } from "react"
3
3
  import type {
4
4
  DayPickerProps,
5
5
  Formatters,
@@ -24,7 +24,7 @@ import type {
24
24
 
25
25
  import { useId } from "../../hooks/useId"
26
26
  import Button from "../Button"
27
- import { CloseIcon, TickIcon } from "../icons"
27
+ import { CalendarIcon, CrossIcon, TickIcon } from "../icons"
28
28
  import Popover from "../Popover"
29
29
  import TextInput from "../TextInput"
30
30
  import {
@@ -74,12 +74,12 @@ export interface DatePickerProps extends Omit<
74
74
  error?: boolean
75
75
  /** **(Optional)** Specify the Date Picker id. Will be auto-generated if not set. */
76
76
  id?: string
77
- /** **(Optional)** Specify the initial month view for the picker.
77
+ /** **(Optional)** Specify the initial month view for the picker. Combine with `initialSelected` to pre-select a date.
78
78
  *
79
79
  * Default: today.
80
80
  */
81
81
  initialDate?: Date | DateRange
82
-
82
+ /** **(Optional)** Specify whether the initial date should be pre-selected. */
83
83
  initialSelected?: boolean
84
84
 
85
85
  /** **(Optional)** Specify the picker mode. */
@@ -230,7 +230,7 @@ export const DatePicker = ({
230
230
  )
231
231
 
232
232
  const updateFromInput = useCallback(
233
- (e: FormEvent<HTMLInputElement>) => {
233
+ (e: ChangeEvent<HTMLInputElement>) => {
234
234
  if (shouldSkipParsing(e.currentTarget.value)) {
235
235
  setState({
236
236
  message: undefined,
@@ -299,17 +299,18 @@ export const DatePicker = ({
299
299
  ref={ref}
300
300
  required={required}
301
301
  size={size}
302
+ suffix={
303
+ <Popover.Trigger aria-label="Choose date" className="coop-datepicker-trigger">
304
+ <CalendarIcon width={24} />
305
+ </Popover.Trigger>
306
+ }
307
+ suffixInline={true}
302
308
  value={state?.[mode]?.input ?? ""}
303
309
  />
304
- <Popover.Trigger asChild>
305
- <Button className="coop-datepicker-button" disabled={disabled} size={size}>
306
- Select
307
- </Button>
308
- </Popover.Trigger>
309
310
  </Popover.Anchor>
310
311
  <Popover.Content
311
312
  aria-label="Date picker"
312
- className="coop-datepicker-calendar"
313
+ className="coop-datepicker-calendar bg-white"
313
314
  collisionPadding={16}
314
315
  sideOffset={4}
315
316
  >
@@ -331,7 +332,7 @@ export const DatePicker = ({
331
332
  />
332
333
  <div className="coop-datepicker-actions">
333
334
  <Button aria-label="Cancel" className="bg-tint-grey" onClick={resetState} size="sm">
334
- Clear <CloseIcon stroke="black" strokeWidth={1} />
335
+ Clear <CrossIcon stroke="black" strokeWidth={1} />
335
336
  </Button>
336
337
  <Popover.Close asChild>
337
338
  <Button aria-label="Accept" size="sm">
@@ -63,12 +63,7 @@ const ExpandableSummary = ({ children, className, ...props }: ExpandableSummaryP
63
63
  return (
64
64
  <summary {...props} className={className}>
65
65
  {children}
66
- <ChevronDownIcon
67
- className="coop-expandable--icon"
68
- stroke="currentColor"
69
- strokeWidth={2}
70
- width="12"
71
- />
66
+ <ChevronDownIcon className="coop-expandable--icon" width="20" />
72
67
  </summary>
73
68
  )
74
69
  }
@@ -30,7 +30,7 @@ export interface SearchboxProps extends FormHTMLAttributes<HTMLFormElement> {
30
30
  /** **(Optional)** Specify the TextInput name, also used as the URL search parameter. Defaults to `query`. */
31
31
  name?: string
32
32
  /** **(Optional)** Callback to run when the form is submitted. If this is an async function, it will be awaited and the Searchbox will be in a pending state until the promise is resolved. */
33
- onSubmit?: React.FormEventHandler<HTMLElement> | undefined
33
+ onSubmit?: React.SubmitEventHandler<HTMLElement> | undefined
34
34
  /** **(Optional)** Specify the TextInput placeholder text Do not use in place of a form label. */
35
35
  placeholder?: string
36
36
  /** **(Optional)** Specify a custom React ref for this component. */
@@ -49,7 +49,7 @@ const componentSlots = {
49
49
  const defaultButtonText = React.createElement(SearchIcon, {
50
50
  alt: "Search",
51
51
  stroke: "currentColor",
52
- strokeWidth: 2,
52
+ width: 24,
53
53
  })
54
54
 
55
55
  export const Searchbox = ({
@@ -23,12 +23,16 @@ export interface TextInputProps extends Omit<
23
23
  placeholder?: string
24
24
  /** **(Optional)** Specify the prefix. It can be any valid JSX or string. */
25
25
  prefix?: React.ReactNode
26
+ /** **(Optional)** Specify whether the prefix should be rendered inside the input. */
27
+ prefixInline?: boolean
26
28
  /** **(Optional)** Specify a custom React ref for this component. */
27
29
  ref?: Ref<HTMLInputElement>
28
30
  /** **(Optional)** Specify the TextInput size. */
29
31
  size?: StandardSizes
30
32
  /** **(Optional)** Specify the suffix. It can be any valid JSX or string. */
31
33
  suffix?: React.ReactNode
34
+ /** **(Optional)** Specify whether the suffix should be rendered inside the input. */
35
+ suffixInline?: boolean
32
36
  /** **(Optional)** Specify the TextInput type. */
33
37
  type?:
34
38
  | "text"
@@ -54,9 +58,11 @@ export const TextInput = ({
54
58
  name,
55
59
  placeholder,
56
60
  prefix,
61
+ prefixInline = false,
57
62
  ref,
58
63
  size = "md",
59
64
  suffix,
65
+ suffixInline = false,
60
66
  type = "text",
61
67
  ...props
62
68
  }: TextInputProps): JSX.Element => {
@@ -74,12 +80,22 @@ export const TextInput = ({
74
80
  type,
75
81
  ...props,
76
82
  }
83
+
84
+ const prefixProps = prefix
85
+ ? { className: "coop-text-input--prefix", "data-inline": prefixInline || undefined }
86
+ : {}
87
+
88
+ const suffixProps = suffix
89
+ ? { className: "coop-text-input--suffix", "data-inline": suffixInline || undefined }
90
+ : {}
91
+
77
92
  //const formItemProps = { "aria-disabled": disabled ? true : undefined }
93
+
78
94
  return (
79
95
  <div className="coop-text-input-wrapper">
80
- {prefix && <span className="coop-text-input--prefix">{prefix}</span>}
96
+ {prefix && <span {...prefixProps}>{prefix}</span>}
81
97
  <input {...componentProps} ref={ref} />
82
- {suffix && <span className="coop-text-input--suffix">{suffix}</span>}
98
+ {suffix && <span {...suffixProps}>{suffix}</span>}
83
99
  </div>
84
100
  )
85
101
  }
@@ -0,0 +1,28 @@
1
+ import clsx from "clsx"
2
+ import { type SVGProps } from "react"
3
+
4
+ import { useId } from "../../hooks/useId"
5
+
6
+ interface IconProps extends SVGProps<SVGSVGElement> {
7
+ alt?: string
8
+ }
9
+
10
+ export const AccountCircleFilledIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
11
+ const uid = useId(id)
12
+ const componentProps = {
13
+ "aria-labelledby": alt ? uid + "-title" : undefined,
14
+ className: clsx("coop-icon", className),
15
+ "data-icon": "account-circle-filled",
16
+ fill: fill ?? "currentColor",
17
+ id: uid,
18
+ role: alt ? "img" : undefined,
19
+ viewBox: "0 0 32 32",
20
+ ...props,
21
+ }
22
+ return (
23
+ <svg {...componentProps} ref={ref}>
24
+ {alt ? <title id={uid + "-title"}>{alt}</title> : null}
25
+ <path d="M16 2c7.732 0 14 6.268 14 14 0 6.34-4.216 11.695-9.997 13.417l-.034.012-.029.008a14 14 0 0 1-3.453.553l-.037.002h-.022q-.211.007-.424.007L16 30 16 29.999V30q-.216 0-.432-.008h-.017l-.042-.003c-1.19-.04-2.34-.229-3.437-.549l-.035-.01-.075-.023a14 14 0 0 1-1.96-.755l-.06-.027-.011-.006C5.238 26.36 2 21.557 2 16 2 8.268 8.268 2 16 2m0 2C9.373 4 4 9.373 4 16a11.95 11.95 0 0 0 2.256 6.997 12.03 12.03 0 0 1 5.92-4.374 6 6 0 1 1 7.648 0 12.03 12.03 0 0 1 5.918 4.374A11.95 11.95 0 0 0 28 16c0-6.627-5.373-12-12-12" />
26
+ </svg>
27
+ )
28
+ }
@@ -0,0 +1,28 @@
1
+ import clsx from "clsx"
2
+ import { type SVGProps } from "react"
3
+
4
+ import { useId } from "../../hooks/useId"
5
+
6
+ interface IconProps extends SVGProps<SVGSVGElement> {
7
+ alt?: string
8
+ }
9
+
10
+ export const AccountCircleIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
11
+ const uid = useId(id)
12
+ const componentProps = {
13
+ "aria-labelledby": alt ? uid + "-title" : undefined,
14
+ className: clsx("coop-icon", className),
15
+ "data-icon": "account-circle",
16
+ fill: fill ?? "currentColor",
17
+ id: uid,
18
+ role: alt ? "img" : undefined,
19
+ viewBox: "0 0 32 32",
20
+ ...props,
21
+ }
22
+ return (
23
+ <svg {...componentProps} ref={ref}>
24
+ {alt ? <title id={uid + "-title"}>{alt}</title> : null}
25
+ <path d="M16 2c7.732 0 14 6.268 14 14 0 6.378-4.265 11.758-10.099 13.447l-.03.01q-.447.127-.904.227l-.038.007q-.126.027-.251.051l-.099.02a14 14 0 0 1-.558.091l-.09.013a13 13 0 0 1-.559.067l-.203.017-.115.01q-.153.011-.306.02l-.033.001a14 14 0 0 1-1.43 0q-.018 0-.034-.002l-.306-.019-.115-.01q-.102-.007-.203-.017l-.225-.025-.087-.01-.245-.03-.093-.014-.236-.037-.1-.016a15 15 0 0 1-.57-.109l-.039-.008a14 14 0 0 1-.903-.227l-.032-.01C6.264 27.757 2 22.377 2 16 2 8.268 8.268 2 16 2m.001 18a9.99 9.99 0 0 0-8.397 4.57A11.95 11.95 0 0 0 16 28c3.27 0 6.23-1.31 8.393-3.43A9.99 9.99 0 0 0 16 20M16 4C9.373 4 4 9.373 4 16a11.95 11.95 0 0 0 2.256 6.997 12.03 12.03 0 0 1 5.92-4.374 6 6 0 1 1 7.648 0 12.03 12.03 0 0 1 5.918 4.374A11.95 11.95 0 0 0 28 16c0-6.627-5.373-12-12-12m0 6a4 4 0 1 0 0 8 4 4 0 0 0 0-8" />
26
+ </svg>
27
+ )
28
+ }
@@ -0,0 +1,28 @@
1
+ import clsx from "clsx"
2
+ import { type SVGProps } from "react"
3
+
4
+ import { useId } from "../../hooks/useId"
5
+
6
+ interface IconProps extends SVGProps<SVGSVGElement> {
7
+ alt?: string
8
+ }
9
+
10
+ export const AccountFilledIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
11
+ const uid = useId(id)
12
+ const componentProps = {
13
+ "aria-labelledby": alt ? uid + "-title" : undefined,
14
+ className: clsx("coop-icon", className),
15
+ "data-icon": "account-filled",
16
+ fill: fill ?? "currentColor",
17
+ id: uid,
18
+ role: alt ? "img" : undefined,
19
+ viewBox: "0 0 32 32",
20
+ ...props,
21
+ }
22
+ return (
23
+ <svg {...componentProps} ref={ref}>
24
+ {alt ? <title id={uid + "-title"}>{alt}</title> : null}
25
+ <path d="M16 2a7 7 0 0 1 4.055 12.703l.075.027a12.03 12.03 0 0 1 7.514 8.36q.063.252.115.51-.117.18-.24.357a14.05 14.05 0 0 1-7.11 5.334A13.9 13.9 0 0 1 16 30c-4.93 0-9.266-2.55-11.76-6.401a12.02 12.02 0 0 1 7.63-8.87l.074-.026A7 7 0 0 1 16 2" />
26
+ </svg>
27
+ )
28
+ }
@@ -0,0 +1,28 @@
1
+ import clsx from "clsx"
2
+ import { type SVGProps } from "react"
3
+
4
+ import { useId } from "../../hooks/useId"
5
+
6
+ interface IconProps extends SVGProps<SVGSVGElement> {
7
+ alt?: string
8
+ }
9
+
10
+ export const AccountIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
11
+ const uid = useId(id)
12
+ const componentProps = {
13
+ "aria-labelledby": alt ? uid + "-title" : undefined,
14
+ className: clsx("coop-icon", className),
15
+ "data-icon": "account",
16
+ fill: fill ?? "currentColor",
17
+ id: uid,
18
+ role: alt ? "img" : undefined,
19
+ viewBox: "0 0 32 32",
20
+ ...props,
21
+ }
22
+ return (
23
+ <svg {...componentProps} ref={ref}>
24
+ {alt ? <title id={uid + "-title"}>{alt}</title> : null}
25
+ <path d="M16 2a7 7 0 0 1 4.055 12.703 12.03 12.03 0 0 1 7.565 8.304l.04.157q.054.216.099.435-.108.166-.22.329l-.075.105-.155.218-.097.13a14 14 0 0 1-.493.623l-.088.101A13.97 13.97 0 0 1 16 30a13.97 13.97 0 0 1-10.565-4.817l-.156-.18q-.085-.103-.169-.207l-.069-.085a13 13 0 0 1-.255-.331l-.097-.13-.155-.218-.074-.105a14 14 0 0 1-.22-.328q.045-.22.098-.436l.04-.157q.041-.165.089-.328.038-.128.078-.254l.066-.21a12 12 0 0 1 .128-.363 12.03 12.03 0 0 1 7.205-7.148A7 7 0 0 1 16 2m0 14c-4.55 0-8.387 3.04-9.598 7.2A11.98 11.98 0 0 0 16 28c3.926 0 7.407-1.887 9.596-4.802C24.385 19.04 20.55 16 16 16m0-12a5 5 0 1 0 0 10 5 5 0 0 0 0-10" />
26
+ </svg>
27
+ )
28
+ }
@@ -13,7 +13,7 @@ export const AddIcon = ({ alt, className, fill, id, ref, ...props }: IconProps)
13
13
  "aria-labelledby": alt ? uid + "-title" : undefined,
14
14
  className: clsx("coop-icon", className),
15
15
  "data-icon": "add",
16
- fill: fill ?? "none",
16
+ fill: fill ?? "currentColor",
17
17
  id: uid,
18
18
  role: alt ? "img" : undefined,
19
19
  viewBox: "0 0 32 32",
@@ -22,14 +22,7 @@ export const AddIcon = ({ alt, className, fill, id, ref, ...props }: IconProps)
22
22
  return (
23
23
  <svg {...componentProps} ref={ref}>
24
24
  {alt ? <title id={uid + "-title"}>{alt}</title> : null}
25
- <path
26
- d="M24.7 16.72a1 1 0 0 1-.7.28H8a1 1 0 1 1 0-2h16a1 1 0 0 1 1 1 1 1 0 0 1-.3.72"
27
- fill={fill ?? "currentColor"}
28
- />
29
- <path
30
- d="M16.72 24.7a1 1 0 0 1-.72.3 1 1 0 0 1-1-1V8a1 1 0 0 1 2 0v16a1 1 0 0 1-.28.7"
31
- fill={fill ?? "currentColor"}
32
- />
25
+ <path d="M15.957 4a1 1 0 0 1 1 1v10H27a1 1 0 1 1 0 2H16.957v10a1 1 0 0 1-2 0V17H5a1 1 0 1 1 0-2h9.957V5a1 1 0 0 1 1-1" />
33
26
  </svg>
34
27
  )
35
28
  }
@@ -0,0 +1,28 @@
1
+ import clsx from "clsx"
2
+ import { type SVGProps } from "react"
3
+
4
+ import { useId } from "../../hooks/useId"
5
+
6
+ interface IconProps extends SVGProps<SVGSVGElement> {
7
+ alt?: string
8
+ }
9
+
10
+ export const AppsFilledIcon = ({ alt, className, fill, id, ref, ...props }: IconProps) => {
11
+ const uid = useId(id)
12
+ const componentProps = {
13
+ "aria-labelledby": alt ? uid + "-title" : undefined,
14
+ className: clsx("coop-icon", className),
15
+ "data-icon": "apps-filled",
16
+ fill: fill ?? "currentColor",
17
+ id: uid,
18
+ role: alt ? "img" : undefined,
19
+ viewBox: "0 0 32 32",
20
+ ...props,
21
+ }
22
+ return (
23
+ <svg {...componentProps} ref={ref}>
24
+ {alt ? <title id={uid + "-title"}>{alt}</title> : null}
25
+ <path d="M13 17a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2zm13.204.01A2 2 0 0 1 28 19v7l-.01.204a2 2 0 0 1-1.786 1.785L26 28h-7a2 2 0 0 1-1.99-1.796L17 26v-7a2 2 0 0 1 2-2h7zM19 26h7v-7h-7zM13 4a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm13 0a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z" />
26
+ </svg>
27
+ )
28
+ }