@coopdigital/react 0.54.0 → 0.56.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 (595) hide show
  1. package/README.md +2 -2
  2. package/dist/components/Button/Button.js +3 -3
  3. package/dist/components/Card/Card.js +4 -4
  4. package/dist/components/DatePicker/DatePicker.d.ts +2 -1
  5. package/dist/components/DatePicker/DatePicker.js +7 -6
  6. package/dist/components/DatePicker/datepicker-utils.js +1 -5
  7. package/dist/components/Expandable/Expandable.js +1 -1
  8. package/dist/components/Field/Field.d.ts +7 -24
  9. package/dist/components/Field/Field.js +11 -18
  10. package/dist/components/Field/index.js +0 -1
  11. package/dist/components/Fieldset/Fieldset.d.ts +12 -17
  12. package/dist/components/Fieldset/Fieldset.js +6 -8
  13. package/dist/components/Pill/Pill.js +2 -2
  14. package/dist/components/Popover/Popover.js +6 -6
  15. package/dist/components/Searchbox/Searchbox.d.ts +1 -1
  16. package/dist/components/Searchbox/Searchbox.js +5 -5
  17. package/dist/components/Signpost/Signpost.js +2 -2
  18. package/dist/components/Tag/Tag.js +2 -2
  19. package/dist/components/TextInput/TextInput.d.ts +5 -1
  20. package/dist/components/TextInput/TextInput.js +8 -2
  21. package/dist/components/Textarea/Textarea.js +2 -0
  22. package/dist/components/icons/AccountCircleFilledIcon.d.ts +6 -0
  23. package/dist/components/icons/AccountCircleFilledIcon.js +20 -0
  24. package/dist/components/icons/AccountCircleIcon.d.ts +6 -0
  25. package/dist/components/icons/AccountCircleIcon.js +20 -0
  26. package/dist/components/icons/AccountFilledIcon.d.ts +6 -0
  27. package/dist/components/icons/AccountFilledIcon.js +20 -0
  28. package/dist/components/icons/AccountIcon.d.ts +6 -0
  29. package/dist/components/icons/AccountIcon.js +20 -0
  30. package/dist/components/icons/AddIcon.js +2 -2
  31. package/dist/components/icons/AppsFilledIcon.d.ts +6 -0
  32. package/dist/components/icons/AppsFilledIcon.js +20 -0
  33. package/dist/components/icons/{CoopIcon.d.ts → AppsIcon.d.ts} +1 -1
  34. package/dist/components/icons/AppsIcon.js +20 -0
  35. package/dist/components/icons/ArrowDownIcon.js +2 -2
  36. package/dist/components/icons/ArrowLeftIcon.js +2 -2
  37. package/dist/components/icons/ArrowRightIcon.js +2 -2
  38. package/dist/components/icons/ArrowUpIcon.js +2 -2
  39. package/dist/components/icons/BackspaceFilledIcon.d.ts +6 -0
  40. package/dist/components/icons/BackspaceFilledIcon.js +20 -0
  41. package/dist/components/icons/{AvatarAltIcon.d.ts → BackspaceIcon.d.ts} +1 -1
  42. package/dist/components/icons/BackspaceIcon.js +20 -0
  43. package/dist/components/icons/{CoopLocationIcon.d.ts → BasketFilledIcon.d.ts} +1 -1
  44. package/dist/components/icons/BasketFilledIcon.js +20 -0
  45. package/dist/components/icons/BasketIcon.js +2 -2
  46. package/dist/components/icons/BellFilledIcon.d.ts +6 -0
  47. package/dist/components/icons/BellFilledIcon.js +20 -0
  48. package/dist/components/icons/BellIcon.d.ts +6 -0
  49. package/dist/components/icons/BellIcon.js +20 -0
  50. package/dist/components/icons/{CloseIcon.d.ts → BroomIcon.d.ts} +1 -1
  51. package/dist/components/icons/BroomIcon.js +20 -0
  52. package/dist/components/icons/CalendarFilledIcon.d.ts +6 -0
  53. package/dist/components/icons/CalendarFilledIcon.js +20 -0
  54. package/dist/components/icons/CalendarIcon.js +2 -2
  55. package/dist/components/icons/CashFilledIcon.d.ts +6 -0
  56. package/dist/components/icons/CashFilledIcon.js +20 -0
  57. package/dist/components/icons/CashIcon.d.ts +6 -0
  58. package/dist/components/icons/CashIcon.js +20 -0
  59. package/dist/components/icons/ChevronDownIcon.js +2 -2
  60. package/dist/components/icons/ChevronLeftIcon.js +2 -2
  61. package/dist/components/icons/ChevronRightIcon.js +2 -2
  62. package/dist/components/icons/ChevronUpIcon.js +2 -2
  63. package/dist/components/icons/CircleBurgerFilledIcon.d.ts +6 -0
  64. package/dist/components/icons/CircleBurgerFilledIcon.js +20 -0
  65. package/dist/components/icons/CircleBurgerIcon.d.ts +6 -0
  66. package/dist/components/icons/CircleBurgerIcon.js +20 -0
  67. package/dist/components/icons/ClipboardFilledIcon.d.ts +6 -0
  68. package/dist/components/icons/ClipboardFilledIcon.js +20 -0
  69. package/dist/components/icons/ClipboardIcon.d.ts +6 -0
  70. package/dist/components/icons/ClipboardIcon.js +20 -0
  71. package/dist/components/icons/{InformationIcon.d.ts → ClockFilledIcon.d.ts} +1 -1
  72. package/dist/components/icons/ClockFilledIcon.js +20 -0
  73. package/dist/components/icons/ClockIcon.js +2 -2
  74. package/dist/components/icons/CloseAltFilledIcon.d.ts +6 -0
  75. package/dist/components/icons/CloseAltFilledIcon.js +20 -0
  76. package/dist/components/icons/CloseAltIcon.js +2 -2
  77. package/dist/components/icons/{VanIcon.d.ts → CogIcon.d.ts} +1 -1
  78. package/dist/components/icons/CogIcon.js +20 -0
  79. package/dist/components/icons/CommunityFilledIcon.d.ts +6 -0
  80. package/dist/components/icons/CommunityFilledIcon.js +20 -0
  81. package/dist/components/icons/CommunityIcon.d.ts +6 -0
  82. package/dist/components/icons/CommunityIcon.js +20 -0
  83. package/dist/components/icons/{QuestionIcon.d.ts → ComputerIcon.d.ts} +1 -1
  84. package/dist/components/icons/ComputerIcon.js +20 -0
  85. package/dist/components/icons/ContactFilledIcon.d.ts +6 -0
  86. package/dist/components/icons/ContactFilledIcon.js +20 -0
  87. package/dist/components/icons/ContactIcon.d.ts +6 -0
  88. package/dist/components/icons/ContactIcon.js +20 -0
  89. package/dist/components/icons/ContactlessFilledIcon.d.ts +6 -0
  90. package/dist/components/icons/ContactlessFilledIcon.js +20 -0
  91. package/dist/components/icons/ContactlessIcon.d.ts +6 -0
  92. package/dist/components/icons/ContactlessIcon.js +20 -0
  93. package/dist/components/icons/{SettingsIcon.d.ts → CoopLiveIcon.d.ts} +1 -1
  94. package/dist/components/icons/CoopLiveIcon.js +20 -0
  95. package/dist/components/icons/CoopLocationFilledIcon.d.ts +6 -0
  96. package/dist/components/icons/{CoopLocationIcon.js → CoopLocationFilledIcon.js} +5 -5
  97. package/dist/components/icons/{CoopCardIcon.d.ts → CoopLogoIcon.d.ts} +1 -1
  98. package/dist/components/icons/CoopLogoIcon.js +20 -0
  99. package/dist/components/icons/CoopMembershipCardFilledIcon.d.ts +6 -0
  100. package/dist/components/icons/CoopMembershipCardFilledIcon.js +20 -0
  101. package/dist/components/icons/CreditCardFilledIcon.d.ts +6 -0
  102. package/dist/components/icons/CreditCardFilledIcon.js +20 -0
  103. package/dist/components/icons/CreditCardIcon.d.ts +6 -0
  104. package/dist/components/icons/CreditCardIcon.js +20 -0
  105. package/dist/components/icons/CrossIcon.d.ts +6 -0
  106. package/dist/components/icons/CrossIcon.js +20 -0
  107. package/dist/components/icons/DocumentIcon.d.ts +6 -0
  108. package/dist/components/icons/DocumentIcon.js +20 -0
  109. package/dist/components/icons/DownloadIcon.js +2 -2
  110. package/dist/components/icons/EnterStoreIcon.d.ts +6 -0
  111. package/dist/components/icons/EnterStoreIcon.js +20 -0
  112. package/dist/components/icons/ExitStoreIcon.d.ts +6 -0
  113. package/dist/components/icons/ExitStoreIcon.js +20 -0
  114. package/dist/components/icons/EyeFilledIcon.d.ts +6 -0
  115. package/dist/components/icons/EyeFilledIcon.js +20 -0
  116. package/dist/components/icons/EyeIcon.d.ts +6 -0
  117. package/dist/components/icons/EyeIcon.js +20 -0
  118. package/dist/components/icons/EyeStrikeFilledIcon.d.ts +6 -0
  119. package/dist/components/icons/EyeStrikeFilledIcon.js +20 -0
  120. package/dist/components/icons/EyeStrikeIcon.d.ts +6 -0
  121. package/dist/components/icons/EyeStrikeIcon.js +20 -0
  122. package/dist/components/icons/FeedbackFilledIcon.d.ts +6 -0
  123. package/dist/components/icons/FeedbackFilledIcon.js +20 -0
  124. package/dist/components/icons/FeedbackIcon.d.ts +6 -0
  125. package/dist/components/icons/FeedbackIcon.js +20 -0
  126. package/dist/components/icons/{AvatarIcon.d.ts → FilterIcon.d.ts} +1 -1
  127. package/dist/components/icons/FilterIcon.js +20 -0
  128. package/dist/components/icons/GiftCardFilledIcon.d.ts +6 -0
  129. package/dist/components/icons/GiftCardFilledIcon.js +20 -0
  130. package/dist/components/icons/GiftCardIcon.d.ts +6 -0
  131. package/dist/components/icons/GiftCardIcon.js +20 -0
  132. package/dist/components/icons/GiftFilledIcon.d.ts +6 -0
  133. package/dist/components/icons/GiftFilledIcon.js +20 -0
  134. package/dist/components/icons/GiftIcon.d.ts +6 -0
  135. package/dist/components/icons/GiftIcon.js +20 -0
  136. package/dist/components/icons/HelpFilledIcon.d.ts +6 -0
  137. package/dist/components/icons/HelpFilledIcon.js +20 -0
  138. package/dist/components/icons/HelpIcon.d.ts +6 -0
  139. package/dist/components/icons/HelpIcon.js +20 -0
  140. package/dist/components/icons/HomeFilledIcon.d.ts +6 -0
  141. package/dist/components/icons/HomeFilledIcon.js +20 -0
  142. package/dist/components/icons/HomeIcon.js +2 -2
  143. package/dist/components/icons/HowDoIAssistantIcon.d.ts +6 -0
  144. package/dist/components/icons/HowDoIAssistantIcon.js +20 -0
  145. package/dist/components/icons/InfoIcon.d.ts +6 -0
  146. package/dist/components/icons/InfoIcon.js +20 -0
  147. package/dist/components/icons/KebabIcon.d.ts +6 -0
  148. package/dist/components/icons/KebabIcon.js +20 -0
  149. package/dist/components/icons/LoadingIcon.js +3 -3
  150. package/dist/components/icons/LocationFilledIcon.d.ts +6 -0
  151. package/dist/components/icons/LocationFilledIcon.js +20 -0
  152. package/dist/components/icons/LocationIcon.js +2 -2
  153. package/dist/components/icons/LogoutIcon.d.ts +6 -0
  154. package/dist/components/icons/LogoutIcon.js +20 -0
  155. package/dist/components/icons/MailIcon.js +2 -2
  156. package/dist/components/icons/MenuIcon.js +2 -2
  157. package/dist/components/icons/MessageIcon.js +2 -2
  158. package/dist/components/icons/MinusIcon.js +2 -2
  159. package/dist/components/icons/NotesFilledIcon.d.ts +6 -0
  160. package/dist/components/icons/NotesFilledIcon.js +20 -0
  161. package/dist/components/icons/NotesIcon.d.ts +6 -0
  162. package/dist/components/icons/NotesIcon.js +20 -0
  163. package/dist/components/icons/OpenNewIcon.js +2 -2
  164. package/dist/components/icons/OwnBagIcon.d.ts +6 -0
  165. package/dist/components/icons/OwnBagIcon.js +20 -0
  166. package/dist/components/icons/PadlockIcon.d.ts +6 -0
  167. package/dist/components/icons/PadlockIcon.js +20 -0
  168. package/dist/components/icons/PencilIcon.js +2 -2
  169. package/dist/components/icons/PhoneIcon.js +2 -2
  170. package/dist/components/icons/PowerIcon.d.ts +6 -0
  171. package/dist/components/icons/PowerIcon.js +20 -0
  172. package/dist/components/icons/SaveFilledIcon.d.ts +6 -0
  173. package/dist/components/icons/SaveFilledIcon.js +20 -0
  174. package/dist/components/icons/SaveIcon.d.ts +6 -0
  175. package/dist/components/icons/SaveIcon.js +20 -0
  176. package/dist/components/icons/ScooterIcon.js +3 -3
  177. package/dist/components/icons/SearchFilledIcon.d.ts +6 -0
  178. package/dist/components/icons/SearchFilledIcon.js +20 -0
  179. package/dist/components/icons/SearchIcon.js +2 -2
  180. package/dist/components/icons/SendIcon.d.ts +6 -0
  181. package/dist/components/icons/SendIcon.js +20 -0
  182. package/dist/components/icons/SpannerIcon.d.ts +6 -0
  183. package/dist/components/icons/SpannerIcon.js +20 -0
  184. package/dist/components/icons/StarFilledIcon.d.ts +6 -0
  185. package/dist/components/icons/StarFilledIcon.js +20 -0
  186. package/dist/components/icons/StarIcon.d.ts +6 -0
  187. package/dist/components/icons/StarIcon.js +20 -0
  188. package/dist/components/icons/TickAltFilledIcon.d.ts +6 -0
  189. package/dist/components/icons/TickAltFilledIcon.js +20 -0
  190. package/dist/components/icons/TickAltIcon.js +2 -2
  191. package/dist/components/icons/TickIcon.js +2 -2
  192. package/dist/components/icons/TruckIcon.d.ts +6 -0
  193. package/dist/components/icons/TruckIcon.js +20 -0
  194. package/dist/components/icons/UserWipeIcon.d.ts +6 -0
  195. package/dist/components/icons/UserWipeIcon.js +20 -0
  196. package/dist/components/icons/VoucherFilledIcon.d.ts +6 -0
  197. package/dist/components/icons/VoucherFilledIcon.js +20 -0
  198. package/dist/components/icons/VoucherIcon.d.ts +6 -0
  199. package/dist/components/icons/VoucherIcon.js +20 -0
  200. package/dist/components/icons/WarningFilledIcon.d.ts +6 -0
  201. package/dist/components/icons/WarningFilledIcon.js +20 -0
  202. package/dist/components/icons/WarningIcon.js +2 -2
  203. package/dist/components/icons/WifiIcon.d.ts +6 -0
  204. package/dist/components/icons/WifiIcon.js +20 -0
  205. package/dist/components/icons/WriteIcon.js +2 -2
  206. package/dist/components/icons/index.d.ts +77 -10
  207. package/dist/components/icons/index.js +77 -10
  208. package/dist/hooks/useSlots.js +3 -3
  209. package/dist/index.js +2 -2
  210. package/package.json +11 -11
  211. package/src/components/Button/Button.tsx +1 -1
  212. package/src/components/DatePicker/DatePicker.tsx +13 -12
  213. package/src/components/Expandable/Expandable.tsx +1 -6
  214. package/src/components/Field/Field.tsx +5 -29
  215. package/src/components/Fieldset/Fieldset.tsx +6 -8
  216. package/src/components/Searchbox/Searchbox.tsx +2 -2
  217. package/src/components/TextInput/TextInput.tsx +18 -2
  218. package/src/components/Textarea/Textarea.tsx +2 -0
  219. package/src/components/icons/AccountCircleFilledIcon.tsx +28 -0
  220. package/src/components/icons/AccountCircleIcon.tsx +28 -0
  221. package/src/components/icons/AccountFilledIcon.tsx +28 -0
  222. package/src/components/icons/AccountIcon.tsx +28 -0
  223. package/src/components/icons/AddIcon.tsx +2 -9
  224. package/src/components/icons/AppsFilledIcon.tsx +28 -0
  225. package/src/components/icons/AppsIcon.tsx +28 -0
  226. package/src/components/icons/ArrowDownIcon.tsx +2 -6
  227. package/src/components/icons/ArrowLeftIcon.tsx +2 -6
  228. package/src/components/icons/ArrowRightIcon.tsx +2 -6
  229. package/src/components/icons/ArrowUpIcon.tsx +2 -6
  230. package/src/components/icons/BackspaceFilledIcon.tsx +28 -0
  231. package/src/components/icons/BackspaceIcon.tsx +28 -0
  232. package/src/components/icons/BasketFilledIcon.tsx +28 -0
  233. package/src/components/icons/BasketIcon.tsx +2 -9
  234. package/src/components/icons/BellFilledIcon.tsx +29 -0
  235. package/src/components/icons/BellIcon.tsx +28 -0
  236. package/src/components/icons/BroomIcon.tsx +28 -0
  237. package/src/components/icons/CalendarFilledIcon.tsx +28 -0
  238. package/src/components/icons/CalendarIcon.tsx +2 -9
  239. package/src/components/icons/CashFilledIcon.tsx +28 -0
  240. package/src/components/icons/CashIcon.tsx +33 -0
  241. package/src/components/icons/ChevronDownIcon.tsx +2 -5
  242. package/src/components/icons/ChevronLeftIcon.tsx +2 -5
  243. package/src/components/icons/ChevronRightIcon.tsx +2 -5
  244. package/src/components/icons/ChevronUpIcon.tsx +2 -5
  245. package/src/components/icons/CircleBurgerFilledIcon.tsx +28 -0
  246. package/src/components/icons/CircleBurgerIcon.tsx +28 -0
  247. package/src/components/icons/ClipboardFilledIcon.tsx +28 -0
  248. package/src/components/icons/ClipboardIcon.tsx +28 -0
  249. package/src/components/icons/{InformationIcon.tsx → ClockFilledIcon.tsx} +6 -9
  250. package/src/components/icons/ClockIcon.tsx +2 -9
  251. package/src/components/icons/CloseAltFilledIcon.tsx +32 -0
  252. package/src/components/icons/CloseAltIcon.tsx +2 -13
  253. package/src/components/icons/CogIcon.tsx +28 -0
  254. package/src/components/icons/CommunityFilledIcon.tsx +28 -0
  255. package/src/components/icons/CommunityIcon.tsx +28 -0
  256. package/src/components/icons/ComputerIcon.tsx +28 -0
  257. package/src/components/icons/ContactFilledIcon.tsx +28 -0
  258. package/src/components/icons/ContactIcon.tsx +28 -0
  259. package/src/components/icons/ContactlessFilledIcon.tsx +28 -0
  260. package/src/components/icons/ContactlessIcon.tsx +28 -0
  261. package/src/components/icons/CoopLiveIcon.tsx +29 -0
  262. package/src/components/icons/CoopLocationFilledIcon.tsx +30 -0
  263. package/src/components/icons/CoopLogoIcon.tsx +28 -0
  264. package/src/components/icons/CoopMembershipCardFilledIcon.tsx +40 -0
  265. package/src/components/icons/CreditCardFilledIcon.tsx +42 -0
  266. package/src/components/icons/CreditCardIcon.tsx +28 -0
  267. package/src/components/icons/{CloseIcon.tsx → CrossIcon.tsx} +4 -11
  268. package/src/components/icons/DocumentIcon.tsx +28 -0
  269. package/src/components/icons/DownloadIcon.tsx +2 -13
  270. package/src/components/icons/EnterStoreIcon.tsx +28 -0
  271. package/src/components/icons/ExitStoreIcon.tsx +28 -0
  272. package/src/components/icons/EyeFilledIcon.tsx +28 -0
  273. package/src/components/icons/EyeIcon.tsx +28 -0
  274. package/src/components/icons/EyeStrikeFilledIcon.tsx +28 -0
  275. package/src/components/icons/EyeStrikeIcon.tsx +28 -0
  276. package/src/components/icons/FeedbackFilledIcon.tsx +35 -0
  277. package/src/components/icons/FeedbackIcon.tsx +28 -0
  278. package/src/components/icons/FilterIcon.tsx +28 -0
  279. package/src/components/icons/GiftCardFilledIcon.tsx +28 -0
  280. package/src/components/icons/GiftCardIcon.tsx +28 -0
  281. package/src/components/icons/GiftFilledIcon.tsx +28 -0
  282. package/src/components/icons/GiftIcon.tsx +28 -0
  283. package/src/components/icons/HelpFilledIcon.tsx +28 -0
  284. package/src/components/icons/HelpIcon.tsx +28 -0
  285. package/src/components/icons/HomeFilledIcon.tsx +28 -0
  286. package/src/components/icons/HomeIcon.tsx +2 -13
  287. package/src/components/icons/HowDoIAssistantIcon.tsx +28 -0
  288. package/src/components/icons/InfoIcon.tsx +28 -0
  289. package/src/components/icons/KebabIcon.tsx +28 -0
  290. package/src/components/icons/LoadingIcon.tsx +3 -6
  291. package/src/components/icons/LocationFilledIcon.tsx +28 -0
  292. package/src/components/icons/LocationIcon.tsx +2 -9
  293. package/src/components/icons/LogoutIcon.tsx +28 -0
  294. package/src/components/icons/MailIcon.tsx +2 -5
  295. package/src/components/icons/MenuIcon.tsx +2 -5
  296. package/src/components/icons/MessageIcon.tsx +2 -5
  297. package/src/components/icons/MinusIcon.tsx +2 -5
  298. package/src/components/icons/NotesFilledIcon.tsx +28 -0
  299. package/src/components/icons/NotesIcon.tsx +28 -0
  300. package/src/components/icons/OpenNewIcon.tsx +3 -9
  301. package/src/components/icons/OwnBagIcon.tsx +28 -0
  302. package/src/components/icons/PadlockIcon.tsx +28 -0
  303. package/src/components/icons/PencilIcon.tsx +2 -5
  304. package/src/components/icons/PhoneIcon.tsx +2 -5
  305. package/src/components/icons/PowerIcon.tsx +28 -0
  306. package/src/components/icons/SaveFilledIcon.tsx +28 -0
  307. package/src/components/icons/SaveIcon.tsx +28 -0
  308. package/src/components/icons/ScooterIcon.tsx +3 -22
  309. package/src/components/icons/SearchFilledIcon.tsx +28 -0
  310. package/src/components/icons/SearchIcon.tsx +9 -9
  311. package/src/components/icons/SendIcon.tsx +28 -0
  312. package/src/components/icons/SpannerIcon.tsx +28 -0
  313. package/src/components/icons/StarFilledIcon.tsx +31 -0
  314. package/src/components/icons/StarIcon.tsx +28 -0
  315. package/src/components/icons/TickAltFilledIcon.tsx +32 -0
  316. package/src/components/icons/TickAltIcon.tsx +2 -9
  317. package/src/components/icons/TickIcon.tsx +2 -5
  318. package/src/components/icons/TruckIcon.tsx +28 -0
  319. package/src/components/icons/UserWipeIcon.tsx +28 -0
  320. package/src/components/icons/VoucherFilledIcon.tsx +28 -0
  321. package/src/components/icons/VoucherIcon.tsx +28 -0
  322. package/src/components/icons/WarningFilledIcon.tsx +28 -0
  323. package/src/components/icons/WarningIcon.tsx +2 -9
  324. package/src/components/icons/WifiIcon.tsx +28 -0
  325. package/src/components/icons/WriteIcon.tsx +5 -17
  326. package/src/components/icons/index.ts +77 -10
  327. package/dist/components/icons/AvatarAltIcon.js +0 -20
  328. package/dist/components/icons/AvatarIcon.js +0 -20
  329. package/dist/components/icons/CloseIcon.js +0 -20
  330. package/dist/components/icons/CoopCardIcon.js +0 -20
  331. package/dist/components/icons/CoopIcon.js +0 -20
  332. package/dist/components/icons/InformationIcon.js +0 -20
  333. package/dist/components/icons/QuestionIcon.js +0 -20
  334. package/dist/components/icons/SettingsIcon.js +0 -20
  335. package/dist/components/icons/VanIcon.js +0 -20
  336. package/dist/node_modules/@date-fns/tz/date/index.js +0 -83
  337. package/dist/node_modules/@date-fns/tz/date/mini.js +0 -235
  338. package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -39
  339. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -44
  340. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -814
  341. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -751
  342. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -350
  343. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
  344. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -137
  345. package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -11
  346. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -25
  347. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -39
  348. package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -63
  349. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -213
  350. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -31
  351. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -209
  352. package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -15
  353. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -303
  354. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -285
  355. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -19
  356. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -132
  357. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -43
  358. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -89
  359. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -12
  360. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -70
  361. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -18
  362. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -7
  363. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -40
  364. package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -137
  365. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
  366. package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
  367. package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -775
  368. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -94
  369. package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -66
  370. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -31
  371. package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
  372. package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
  373. package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -25
  374. package/dist/node_modules/date-fns/addDays.js +0 -41
  375. package/dist/node_modules/date-fns/addMonths.js +0 -75
  376. package/dist/node_modules/date-fns/addWeeks.js +0 -33
  377. package/dist/node_modules/date-fns/addYears.js +0 -33
  378. package/dist/node_modules/date-fns/constants.js +0 -67
  379. package/dist/node_modules/date-fns/constructFrom.js +0 -49
  380. package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -62
  381. package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -42
  382. package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -65
  383. package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -65
  384. package/dist/node_modules/date-fns/endOfISOWeek.js +0 -35
  385. package/dist/node_modules/date-fns/endOfMonth.js +0 -37
  386. package/dist/node_modules/date-fns/endOfWeek.js +0 -53
  387. package/dist/node_modules/date-fns/endOfYear.js +0 -37
  388. package/dist/node_modules/date-fns/format.js +0 -423
  389. package/dist/node_modules/date-fns/getDayOfYear.js +0 -34
  390. package/dist/node_modules/date-fns/getDaysInMonth.js +0 -36
  391. package/dist/node_modules/date-fns/getDefaultOptions.js +0 -31
  392. package/dist/node_modules/date-fns/getISODay.js +0 -33
  393. package/dist/node_modules/date-fns/getISOWeek.js +0 -40
  394. package/dist/node_modules/date-fns/getISOWeekYear.js +0 -52
  395. package/dist/node_modules/date-fns/getMonth.js +0 -29
  396. package/dist/node_modules/date-fns/getWeek.js +0 -54
  397. package/dist/node_modules/date-fns/getWeekYear.js +0 -75
  398. package/dist/node_modules/date-fns/getYear.js +0 -29
  399. package/dist/node_modules/date-fns/isAfter.js +0 -25
  400. package/dist/node_modules/date-fns/isBefore.js +0 -25
  401. package/dist/node_modules/date-fns/isDate.js +0 -41
  402. package/dist/node_modules/date-fns/isSameDay.js +0 -46
  403. package/dist/node_modules/date-fns/isSameMonth.js +0 -43
  404. package/dist/node_modules/date-fns/isSameYear.js +0 -35
  405. package/dist/node_modules/date-fns/isValid.js +0 -39
  406. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
  407. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -64
  408. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -59
  409. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -22
  410. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -103
  411. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -41
  412. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -13
  413. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -189
  414. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -134
  415. package/dist/node_modules/date-fns/locale/en-US.js +0 -28
  416. package/dist/node_modules/date-fns/max.js +0 -49
  417. package/dist/node_modules/date-fns/min.js +0 -49
  418. package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -27
  419. package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -59
  420. package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -33
  421. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -55
  422. package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -55
  423. package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -59
  424. package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -57
  425. package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -64
  426. package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -56
  427. package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -41
  428. package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -24
  429. package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -21
  430. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -36
  431. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -31
  432. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -32
  433. package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -38
  434. package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -118
  435. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -47
  436. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -47
  437. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -48
  438. package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -44
  439. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -96
  440. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -47
  441. package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -76
  442. package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -31
  443. package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -86
  444. package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -83
  445. package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -31
  446. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -97
  447. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -86
  448. package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -83
  449. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -19
  450. package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -19
  451. package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -62
  452. package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -110
  453. package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -135
  454. package/dist/node_modules/date-fns/parse.js +0 -497
  455. package/dist/node_modules/date-fns/setDay.js +0 -59
  456. package/dist/node_modules/date-fns/setISODay.js +0 -40
  457. package/dist/node_modules/date-fns/setISOWeek.js +0 -39
  458. package/dist/node_modules/date-fns/setMonth.js +0 -46
  459. package/dist/node_modules/date-fns/setWeek.js +0 -53
  460. package/dist/node_modules/date-fns/setYear.js +0 -40
  461. package/dist/node_modules/date-fns/startOfDay.js +0 -35
  462. package/dist/node_modules/date-fns/startOfISOWeek.js +0 -35
  463. package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -42
  464. package/dist/node_modules/date-fns/startOfMonth.js +0 -37
  465. package/dist/node_modules/date-fns/startOfWeek.js +0 -53
  466. package/dist/node_modules/date-fns/startOfWeekYear.js +0 -64
  467. package/dist/node_modules/date-fns/startOfYear.js +0 -36
  468. package/dist/node_modules/date-fns/toDate.js +0 -46
  469. package/dist/node_modules/date-fns/transpose.js +0 -52
  470. package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -8
  471. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -320
  472. package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -122
  473. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -33
  474. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -14
  475. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -13
  476. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -604
  477. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -13
  478. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -13
  479. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -20
  480. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -18
  481. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -19
  482. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -21
  483. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -13
  484. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -13
  485. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -15
  486. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -14
  487. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -13
  488. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -13
  489. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -15
  490. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -31
  491. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -15
  492. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -13
  493. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -15
  494. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -14
  495. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -13
  496. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -14
  497. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -14
  498. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -13
  499. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -13
  500. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -14
  501. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -13
  502. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -15
  503. package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -26
  504. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -26
  505. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -19
  506. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -18
  507. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -21
  508. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -13
  509. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -19
  510. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -23
  511. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -7
  512. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -73
  513. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -95
  514. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -22
  515. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -28
  516. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -33
  517. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -20
  518. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -27
  519. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -59
  520. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -19
  521. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -33
  522. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -24
  523. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -46
  524. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -24
  525. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -27
  526. package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -53
  527. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -33
  528. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -69
  529. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -51
  530. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -40
  531. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -36
  532. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -37
  533. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -27
  534. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -26
  535. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -14
  536. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -36
  537. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -27
  538. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -31
  539. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -11
  540. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -32
  541. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -25
  542. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -22
  543. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -14
  544. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -13
  545. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -16
  546. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -15
  547. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -15
  548. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -14
  549. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -18
  550. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -14
  551. package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -67
  552. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -57
  553. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -45
  554. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -44
  555. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -174
  556. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -113
  557. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -25
  558. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -56
  559. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -31
  560. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -95
  561. package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -57
  562. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -62
  563. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -30
  564. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -74
  565. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -35
  566. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -21
  567. package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -16
  568. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -66
  569. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -9
  570. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -167
  571. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -38
  572. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -21
  573. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -110
  574. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
  575. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
  576. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -56
  577. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -10
  578. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -31
  579. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -19
  580. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -25
  581. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -51
  582. package/dist/node_modules/tslib/tslib.es6.js +0 -56
  583. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -24
  584. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -48
  585. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -42
  586. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -21
  587. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -77
  588. package/src/components/icons/AvatarAltIcon.tsx +0 -39
  589. package/src/components/icons/AvatarIcon.tsx +0 -35
  590. package/src/components/icons/CoopCardIcon.tsx +0 -32
  591. package/src/components/icons/CoopIcon.tsx +0 -32
  592. package/src/components/icons/CoopLocationIcon.tsx +0 -39
  593. package/src/components/icons/QuestionIcon.tsx +0 -35
  594. package/src/components/icons/SettingsIcon.tsx +0 -31
  595. package/src/components/icons/VanIcon.tsx +0 -31
@@ -1,110 +0,0 @@
1
- var alwaysContainsScroll = function (node) {
2
- // textarea will always _contain_ scroll inside self. It only can be hidden
3
- return node.tagName === 'TEXTAREA';
4
- };
5
- var elementCanBeScrolled = function (node, overflow) {
6
- if (!(node instanceof Element)) {
7
- return false;
8
- }
9
- var styles = window.getComputedStyle(node);
10
- return (
11
- // not-not-scrollable
12
- styles[overflow] !== 'hidden' &&
13
- // contains scroll inside self
14
- !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));
15
- };
16
- var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
17
- var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
18
- var locationCouldBeScrolled = function (axis, node) {
19
- var ownerDocument = node.ownerDocument;
20
- var current = node;
21
- do {
22
- // Skip over shadow root
23
- if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {
24
- current = current.host;
25
- }
26
- var isScrollable = elementCouldBeScrolled(axis, current);
27
- if (isScrollable) {
28
- var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];
29
- if (scrollHeight > clientHeight) {
30
- return true;
31
- }
32
- }
33
- current = current.parentNode;
34
- } while (current && current !== ownerDocument.body);
35
- return false;
36
- };
37
- var getVScrollVariables = function (_a) {
38
- var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;
39
- return [
40
- scrollTop,
41
- scrollHeight,
42
- clientHeight,
43
- ];
44
- };
45
- var getHScrollVariables = function (_a) {
46
- var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;
47
- return [
48
- scrollLeft,
49
- scrollWidth,
50
- clientWidth,
51
- ];
52
- };
53
- var elementCouldBeScrolled = function (axis, node) {
54
- return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);
55
- };
56
- var getScrollVariables = function (axis, node) {
57
- return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);
58
- };
59
- var getDirectionFactor = function (axis, direction) {
60
- /**
61
- * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,
62
- * and then increasingly negative as you scroll towards the end of the content.
63
- * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft
64
- */
65
- return axis === 'h' && direction === 'rtl' ? -1 : 1;
66
- };
67
- var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {
68
- var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);
69
- var delta = directionFactor * sourceDelta;
70
- // find scrollable target
71
- var target = event.target;
72
- var targetInLock = endTarget.contains(target);
73
- var shouldCancelScroll = false;
74
- var isDeltaPositive = delta > 0;
75
- var availableScroll = 0;
76
- var availableScrollTop = 0;
77
- do {
78
- if (!target) {
79
- break;
80
- }
81
- var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];
82
- var elementScroll = scroll_1 - capacity - directionFactor * position;
83
- if (position || elementScroll) {
84
- if (elementCouldBeScrolled(axis, target)) {
85
- availableScroll += elementScroll;
86
- availableScrollTop += position;
87
- }
88
- }
89
- var parent_1 = target.parentNode;
90
- // we will "bubble" from ShadowDom in case we are, or just to the parent in normal case
91
- // this is the same logic used in focus-lock
92
- target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);
93
- } while (
94
- // portaled content
95
- (!targetInLock && target !== document.body) ||
96
- // self content
97
- (targetInLock && (endTarget.contains(target) || endTarget === target)));
98
- // handle epsilon around 0 (non standard zoom levels)
99
- if (isDeltaPositive &&
100
- ((Math.abs(availableScroll) < 1) || (false))) {
101
- shouldCancelScroll = true;
102
- }
103
- else if (!isDeltaPositive &&
104
- ((Math.abs(availableScrollTop) < 1) || (false))) {
105
- shouldCancelScroll = true;
106
- }
107
- return shouldCancelScroll;
108
- };
109
-
110
- export { handleScroll, locationCouldBeScrolled };
@@ -1,5 +0,0 @@
1
- import { createSidecarMedium } from '../../../use-sidecar/dist/es2015/medium.js';
2
-
3
- var effectCar = createSidecarMedium();
4
-
5
- export { effectCar };
@@ -1,7 +0,0 @@
1
- import { RemoveScrollSideCar } from './SideEffect.js';
2
- import { effectCar } from './medium.js';
3
- import { exportSidecar } from '../../../use-sidecar/dist/es2015/exports.js';
4
-
5
- var SideCar = exportSidecar(effectCar, RemoveScrollSideCar);
6
-
7
- export { SideCar as default };
@@ -1,56 +0,0 @@
1
- import * as React from 'react';
2
- import { styleSingleton } from '../../../react-style-singleton/dist/es2015/component.js';
3
- import { noScrollbarsClassName, zeroRightClassName, fullWidthClassName, removedBarSizeVariable } from './constants.js';
4
- import { getGapWidth } from './utils.js';
5
-
6
- var Style = styleSingleton();
7
- var lockAttribute = 'data-scroll-locked';
8
- // important tip - once we measure scrollBar width and remove them
9
- // we could not repeat this operation
10
- // thus we are using style-singleton - only the first "yet correct" style will be applied.
11
- var getStyles = function (_a, allowRelative, gapMode, important) {
12
- var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;
13
- if (gapMode === void 0) { gapMode = 'margin'; }
14
- return "\n .".concat(noScrollbarsClassName, " {\n overflow: hidden ").concat(important, ";\n padding-right: ").concat(gap, "px ").concat(important, ";\n }\n body[").concat(lockAttribute, "] {\n overflow: hidden ").concat(important, ";\n overscroll-behavior: contain;\n ").concat([
15
- allowRelative && "position: relative ".concat(important, ";"),
16
- gapMode === 'margin' &&
17
- "\n padding-left: ".concat(left, "px;\n padding-top: ").concat(top, "px;\n padding-right: ").concat(right, "px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(gap, "px ").concat(important, ";\n "),
18
- gapMode === 'padding' && "padding-right: ".concat(gap, "px ").concat(important, ";"),
19
- ]
20
- .filter(Boolean)
21
- .join(''), "\n }\n \n .").concat(zeroRightClassName, " {\n right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " {\n margin-right: ").concat(gap, "px ").concat(important, ";\n }\n \n .").concat(zeroRightClassName, " .").concat(zeroRightClassName, " {\n right: 0 ").concat(important, ";\n }\n \n .").concat(fullWidthClassName, " .").concat(fullWidthClassName, " {\n margin-right: 0 ").concat(important, ";\n }\n \n body[").concat(lockAttribute, "] {\n ").concat(removedBarSizeVariable, ": ").concat(gap, "px;\n }\n");
22
- };
23
- var getCurrentUseCounter = function () {
24
- var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);
25
- return isFinite(counter) ? counter : 0;
26
- };
27
- var useLockAttribute = function () {
28
- React.useEffect(function () {
29
- document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
30
- return function () {
31
- var newCounter = getCurrentUseCounter() - 1;
32
- if (newCounter <= 0) {
33
- document.body.removeAttribute(lockAttribute);
34
- }
35
- else {
36
- document.body.setAttribute(lockAttribute, newCounter.toString());
37
- }
38
- };
39
- }, []);
40
- };
41
- /**
42
- * Removes page scrollbar and blocks page scroll when mounted
43
- */
44
- var RemoveScrollBar = function (_a) {
45
- var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;
46
- useLockAttribute();
47
- /*
48
- gap will be measured on every component mount
49
- however it will be used only by the "first" invocation
50
- due to singleton nature of <Style
51
- */
52
- var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);
53
- return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });
54
- };
55
-
56
- export { RemoveScrollBar, lockAttribute, useLockAttribute };
@@ -1,10 +0,0 @@
1
- var zeroRightClassName = 'right-scroll-bar-position';
2
- var fullWidthClassName = 'width-before-scroll-bar';
3
- var noScrollbarsClassName = 'with-scroll-bars-hidden';
4
- /**
5
- * Name of a CSS variable containing the amount of "hidden" scrollbar
6
- * ! might be undefined ! use will fallback!
7
- */
8
- var removedBarSizeVariable = '--removed-body-scroll-bar-size';
9
-
10
- export { fullWidthClassName, noScrollbarsClassName, removedBarSizeVariable, zeroRightClassName };
@@ -1,31 +0,0 @@
1
- var zeroGap = {
2
- left: 0,
3
- top: 0,
4
- right: 0,
5
- gap: 0,
6
- };
7
- var parse = function (x) { return parseInt(x || '', 10) || 0; };
8
- var getOffset = function (gapMode) {
9
- var cs = window.getComputedStyle(document.body);
10
- var left = cs[gapMode === 'padding' ? 'paddingLeft' : 'marginLeft'];
11
- var top = cs[gapMode === 'padding' ? 'paddingTop' : 'marginTop'];
12
- var right = cs[gapMode === 'padding' ? 'paddingRight' : 'marginRight'];
13
- return [parse(left), parse(top), parse(right)];
14
- };
15
- var getGapWidth = function (gapMode) {
16
- if (gapMode === void 0) { gapMode = 'margin'; }
17
- if (typeof window === 'undefined') {
18
- return zeroGap;
19
- }
20
- var offsets = getOffset(gapMode);
21
- var documentWidth = document.documentElement.clientWidth;
22
- var windowWidth = window.innerWidth;
23
- return {
24
- left: offsets[0],
25
- top: offsets[1],
26
- right: offsets[2],
27
- gap: Math.max(0, windowWidth - documentWidth + offsets[2] - offsets[0]),
28
- };
29
- };
30
-
31
- export { getGapWidth, zeroGap };
@@ -1,19 +0,0 @@
1
- import { styleHookSingleton } from './hook.js';
2
-
3
- /**
4
- * create a Component to add styles on demand
5
- * - styles are added when first instance is mounted
6
- * - styles are removed when the last instance is unmounted
7
- * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior
8
- */
9
- var styleSingleton = function () {
10
- var useStyle = styleHookSingleton();
11
- var Sheet = function (_a) {
12
- var styles = _a.styles, dynamic = _a.dynamic;
13
- useStyle(styles, dynamic);
14
- return null;
15
- };
16
- return Sheet;
17
- };
18
-
19
- export { styleSingleton };
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { stylesheetSingleton } from './singleton.js';
3
-
4
- /**
5
- * creates a hook to control style singleton
6
- * @see {@link styleSingleton} for a safer component version
7
- * @example
8
- * ```tsx
9
- * const useStyle = styleHookSingleton();
10
- * ///
11
- * useStyle('body { overflow: hidden}');
12
- */
13
- var styleHookSingleton = function () {
14
- var sheet = stylesheetSingleton();
15
- return function (styles, isDynamic) {
16
- React.useEffect(function () {
17
- sheet.add(styles);
18
- return function () {
19
- sheet.remove();
20
- };
21
- }, [styles && isDynamic]);
22
- };
23
- };
24
-
25
- export { styleHookSingleton };
@@ -1,51 +0,0 @@
1
- import { getNonce } from '../../../get-nonce/dist/es2015/index.js';
2
-
3
- function makeStyleTag() {
4
- if (!document)
5
- return null;
6
- var tag = document.createElement('style');
7
- tag.type = 'text/css';
8
- var nonce = getNonce();
9
- if (nonce) {
10
- tag.setAttribute('nonce', nonce);
11
- }
12
- return tag;
13
- }
14
- function injectStyles(tag, css) {
15
- // @ts-ignore
16
- if (tag.styleSheet) {
17
- // @ts-ignore
18
- tag.styleSheet.cssText = css;
19
- }
20
- else {
21
- tag.appendChild(document.createTextNode(css));
22
- }
23
- }
24
- function insertStyleTag(tag) {
25
- var head = document.head || document.getElementsByTagName('head')[0];
26
- head.appendChild(tag);
27
- }
28
- var stylesheetSingleton = function () {
29
- var counter = 0;
30
- var stylesheet = null;
31
- return {
32
- add: function (style) {
33
- if (counter == 0) {
34
- if ((stylesheet = makeStyleTag())) {
35
- injectStyles(stylesheet, style);
36
- insertStyleTag(stylesheet);
37
- }
38
- }
39
- counter++;
40
- },
41
- remove: function () {
42
- counter--;
43
- if (!counter && stylesheet) {
44
- stylesheet.parentNode && stylesheet.parentNode.removeChild(stylesheet);
45
- stylesheet = null;
46
- }
47
- },
48
- };
49
- };
50
-
51
- export { stylesheetSingleton };
@@ -1,56 +0,0 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
16
-
17
-
18
- var __assign = function() {
19
- __assign = Object.assign || function __assign(t) {
20
- for (var s, i = 1, n = arguments.length; i < n; i++) {
21
- s = arguments[i];
22
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
-
29
- function __rest(s, e) {
30
- var t = {};
31
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
32
- t[p] = s[p];
33
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
34
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
35
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
36
- t[p[i]] = s[p[i]];
37
- }
38
- return t;
39
- }
40
-
41
- function __spreadArray(to, from, pack) {
42
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
43
- if (ar || !(i in from)) {
44
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
45
- ar[i] = from[i];
46
- }
47
- }
48
- return to.concat(ar || Array.prototype.slice.call(from));
49
- }
50
-
51
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
52
- var e = new Error(message);
53
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
54
- };
55
-
56
- export { __assign, __rest, __spreadArray };
@@ -1,24 +0,0 @@
1
- /**
2
- * Assigns a value for a given ref, no matter of the ref format
3
- * @param {RefObject} ref - a callback function or ref object
4
- * @param value - a new value
5
- *
6
- * @see https://github.com/theKashey/use-callback-ref#assignref
7
- * @example
8
- * const refObject = useRef();
9
- * const refFn = (ref) => {....}
10
- *
11
- * assignRef(refObject, "refValue");
12
- * assignRef(refFn, "refValue");
13
- */
14
- function assignRef(ref, value) {
15
- if (typeof ref === 'function') {
16
- ref(value);
17
- }
18
- else if (ref) {
19
- ref.current = value;
20
- }
21
- return ref;
22
- }
23
-
24
- export { assignRef };
@@ -1,48 +0,0 @@
1
- import * as React from 'react';
2
- import { assignRef } from './assignRef.js';
3
- import { useCallbackRef } from './useRef.js';
4
-
5
- var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
6
- var currentValues = new WeakMap();
7
- /**
8
- * Merges two or more refs together providing a single interface to set their value
9
- * @param {RefObject|Ref} refs
10
- * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
11
- *
12
- * @see {@link mergeRefs} a version without buit-in memoization
13
- * @see https://github.com/theKashey/use-callback-ref#usemergerefs
14
- * @example
15
- * const Component = React.forwardRef((props, ref) => {
16
- * const ownRef = useRef();
17
- * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
18
- * return <div ref={domRef}>...</div>
19
- * }
20
- */
21
- function useMergeRefs(refs, defaultValue) {
22
- var callbackRef = useCallbackRef(null, function (newValue) {
23
- return refs.forEach(function (ref) { return assignRef(ref, newValue); });
24
- });
25
- // handle refs changes - added or removed
26
- useIsomorphicLayoutEffect(function () {
27
- var oldValue = currentValues.get(callbackRef);
28
- if (oldValue) {
29
- var prevRefs_1 = new Set(oldValue);
30
- var nextRefs_1 = new Set(refs);
31
- var current_1 = callbackRef.current;
32
- prevRefs_1.forEach(function (ref) {
33
- if (!nextRefs_1.has(ref)) {
34
- assignRef(ref, null);
35
- }
36
- });
37
- nextRefs_1.forEach(function (ref) {
38
- if (!prevRefs_1.has(ref)) {
39
- assignRef(ref, current_1);
40
- }
41
- });
42
- }
43
- currentValues.set(callbackRef, refs);
44
- }, [refs]);
45
- return callbackRef;
46
- }
47
-
48
- export { useMergeRefs };
@@ -1,42 +0,0 @@
1
- import { useState } from 'react';
2
-
3
- /**
4
- * creates a MutableRef with ref change callback
5
- * @param initialValue - initial ref value
6
- * @param {Function} callback - a callback to run when value changes
7
- *
8
- * @example
9
- * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
10
- * ref.current = 1;
11
- * // prints 0 -> 1
12
- *
13
- * @see https://reactjs.org/docs/hooks-reference.html#useref
14
- * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
15
- * @returns {MutableRefObject}
16
- */
17
- function useCallbackRef(initialValue, callback) {
18
- var ref = useState(function () { return ({
19
- // value
20
- value: initialValue,
21
- // last callback
22
- callback: callback,
23
- // "memoized" public interface
24
- facade: {
25
- get current() {
26
- return ref.value;
27
- },
28
- set current(value) {
29
- var last = ref.value;
30
- if (last !== value) {
31
- ref.value = value;
32
- ref.callback(value, last);
33
- }
34
- },
35
- },
36
- }); })[0];
37
- // update callback
38
- ref.callback = callback;
39
- return ref.facade;
40
- }
41
-
42
- export { useCallbackRef };
@@ -1,21 +0,0 @@
1
- import { __rest, __assign } from '../../../tslib/tslib.es6.js';
2
- import * as React from 'react';
3
-
4
- var SideCar = function (_a) {
5
- var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
6
- if (!sideCar) {
7
- throw new Error('Sidecar: please provide `sideCar` property to import the right car');
8
- }
9
- var Target = sideCar.read();
10
- if (!Target) {
11
- throw new Error('Sidecar medium not found');
12
- }
13
- return React.createElement(Target, __assign({}, rest));
14
- };
15
- SideCar.isSideCarExport = true;
16
- function exportSidecar(medium, exported) {
17
- medium.useMedium(exported);
18
- return SideCar;
19
- }
20
-
21
- export { exportSidecar };
@@ -1,77 +0,0 @@
1
- import { __assign } from '../../../tslib/tslib.es6.js';
2
-
3
- function ItoI(a) {
4
- return a;
5
- }
6
- function innerCreateMedium(defaults, middleware) {
7
- if (middleware === void 0) { middleware = ItoI; }
8
- var buffer = [];
9
- var assigned = false;
10
- var medium = {
11
- read: function () {
12
- if (assigned) {
13
- throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
14
- }
15
- if (buffer.length) {
16
- return buffer[buffer.length - 1];
17
- }
18
- return defaults;
19
- },
20
- useMedium: function (data) {
21
- var item = middleware(data, assigned);
22
- buffer.push(item);
23
- return function () {
24
- buffer = buffer.filter(function (x) { return x !== item; });
25
- };
26
- },
27
- assignSyncMedium: function (cb) {
28
- assigned = true;
29
- while (buffer.length) {
30
- var cbs = buffer;
31
- buffer = [];
32
- cbs.forEach(cb);
33
- }
34
- buffer = {
35
- push: function (x) { return cb(x); },
36
- filter: function () { return buffer; },
37
- };
38
- },
39
- assignMedium: function (cb) {
40
- assigned = true;
41
- var pendingQueue = [];
42
- if (buffer.length) {
43
- var cbs = buffer;
44
- buffer = [];
45
- cbs.forEach(cb);
46
- pendingQueue = buffer;
47
- }
48
- var executeQueue = function () {
49
- var cbs = pendingQueue;
50
- pendingQueue = [];
51
- cbs.forEach(cb);
52
- };
53
- var cycle = function () { return Promise.resolve().then(executeQueue); };
54
- cycle();
55
- buffer = {
56
- push: function (x) {
57
- pendingQueue.push(x);
58
- cycle();
59
- },
60
- filter: function (filter) {
61
- pendingQueue = pendingQueue.filter(filter);
62
- return buffer;
63
- },
64
- };
65
- },
66
- };
67
- return medium;
68
- }
69
- // eslint-disable-next-line @typescript-eslint/ban-types
70
- function createSidecarMedium(options) {
71
- if (options === void 0) { options = {}; }
72
- var medium = innerCreateMedium(null);
73
- medium.options = __assign({ async: true, ssr: false }, options);
74
- return medium;
75
- }
76
-
77
- export { createSidecarMedium };
@@ -1,39 +0,0 @@
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 AvatarAltIcon = ({ 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": "avatar-alt",
16
- fill: fill ?? "none",
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
26
- d="M16 32a16 16 0 1 1 16-16 16 16 0 0 1-16 16m0-30a14 14 0 1 0 14 14A14 14 0 0 0 16 2"
27
- fill={fill ?? "currentColor"}
28
- />
29
- <path
30
- d="M16 8a5 5 0 1 1-5 5 5 5 0 0 1 5-5m0-2a7 7 0 1 0 7 7 7 7 0 0 0-7-7"
31
- fill={fill ?? "currentColor"}
32
- />
33
- <path
34
- d="M5.64 27.85a.7.7 0 0 1-.19 0 1 1 0 0 1-.79-1.17A10.7 10.7 0 0 1 15.16 18h1.68a10.7 10.7 0 0 1 10.5 8.67 1 1 0 0 1-.79 1.17 1 1 0 0 1-1.17-.84 8.72 8.72 0 0 0-8.54-7h-1.68a8.72 8.72 0 0 0-8.54 7 1 1 0 0 1-.98.85"
35
- fill={fill ?? "currentColor"}
36
- />
37
- </svg>
38
- )
39
- }
@@ -1,35 +0,0 @@
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 AvatarIcon = ({ 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": "avatar",
16
- fill: fill ?? "none",
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
26
- d="M16 31a18.24 18.24 0 0 1-12.64-5.1A1.19 1.19 0 0 1 3 24.86a12.31 12.31 0 0 1 12-10h2a12.31 12.31 0 0 1 12 10 1.19 1.19 0 0 1-.34 1.06A18.24 18.24 0 0 1 16 31M5.42 24.68a15.9 15.9 0 0 0 21.16 0A10 10 0 0 0 17 17.17h-2a10 10 0 0 0-9.58 7.51"
27
- fill={fill ?? "currentColor"}
28
- />
29
- <path
30
- d="M15.94 3.33a5.77 5.77 0 1 1-5.72 5.77 5.75 5.75 0 0 1 5.72-5.77m0-2.31a8.08 8.08 0 1 0 8 8.08 8 8 0 0 0-8-8.08"
31
- fill={fill ?? "currentColor"}
32
- />
33
- </svg>
34
- )
35
- }