@kvdbil/components 17.12.5 → 17.12.7

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 (246) hide show
  1. package/cjs/ColorCard.js +1 -1
  2. package/cjs/components/Accordion/index.js +1 -1
  3. package/cjs/components/Breadcrumbs/index.js +1 -1
  4. package/cjs/components/Button/index.js +1 -1
  5. package/cjs/components/DayPicker/index.js +1 -1
  6. package/cjs/components/EditRow/index.js +1 -1
  7. package/cjs/components/Flex/index.js +5 -5
  8. package/cjs/components/FocusTrap.js +1 -1
  9. package/cjs/components/Icon/index.js +1 -1
  10. package/cjs/components/Message/index.js +1 -1
  11. package/cjs/components/Modal/index.js +1 -1
  12. package/cjs/components/OffCanvas/index.js +1 -1
  13. package/cjs/components/OffCanvas/useClickOutside.js +1 -1
  14. package/cjs/components/Select/index.js +2 -2
  15. package/cjs/components/Snackbar/index.js +1 -1
  16. package/cjs/components/Stepper/index.js +1 -1
  17. package/cjs/components/StepperAccordion/index.js +1 -1
  18. package/cjs/components/Table/index.js +1 -1
  19. package/cjs/components/Tabs/Tab.js +1 -1
  20. package/cjs/components/Tabs/Tabs.js +1 -1
  21. package/cjs/components/TextArea/index.js +1 -1
  22. package/cjs/components/Textfield/index.js +1 -1
  23. package/cjs/components/TimePicker/index.js +1 -1
  24. package/cjs/components/TimePicker/testHelper.js +1 -1
  25. package/cjs/components/Toggle/index.js +1 -1
  26. package/cjs/hooks/useDynamicScript.js +1 -1
  27. package/cjs/shared/helpers.js +1 -1
  28. package/package.json +5 -6
  29. package/package.json.tmp +5 -6
  30. package/types/ColorCard.d.ts +2 -1
  31. package/types/ElevationCard.d.ts +2 -1
  32. package/types/components/Accordion/index.d.ts +2 -2
  33. package/types/components/Badge/index.d.ts +2 -1
  34. package/types/components/Breadcrumbs/BreadcrumbsItem.d.ts +2 -2
  35. package/types/components/Breadcrumbs/index.d.ts +2 -2
  36. package/types/components/Card/index.d.ts +2 -1
  37. package/types/components/CheckBox/index.d.ts +2 -2
  38. package/types/components/Chip/index.d.ts +1 -1
  39. package/types/components/DayPicker/index.d.ts +2 -1
  40. package/types/components/Dialog/index.d.ts +2 -1
  41. package/types/components/EditRow/index.d.ts +2 -1
  42. package/types/components/ErrorMessage/index.d.ts +2 -1
  43. package/types/components/FieldLabel.d.ts +10 -2
  44. package/types/components/Flex/index.d.ts +2 -2
  45. package/types/components/FocusTrap.d.ts +1 -1
  46. package/types/components/Hero/index.d.ts +2 -1
  47. package/types/components/Icon/index.d.ts +1 -1
  48. package/types/components/IconButton.d.ts +4 -3
  49. package/types/components/Link/index.d.ts +2 -2
  50. package/types/components/ListItem/Bacon.d.ts +2 -1
  51. package/types/components/ListItem/index.d.ts +2 -1
  52. package/types/components/Logo/LogoEn.d.ts +2 -1
  53. package/types/components/Logo/LogoSv.d.ts +2 -1
  54. package/types/components/Logo/index.d.ts +2 -1
  55. package/types/components/MenuItem/index.d.ts +1 -1
  56. package/types/components/Message/index.d.ts +2 -1
  57. package/types/components/Modal/index.d.ts +2 -2
  58. package/types/components/NotificationButton/index.d.ts +2 -1
  59. package/types/components/OffCanvas/Overlay.d.ts +2 -1
  60. package/types/components/OffCanvas/index.d.ts +2 -1
  61. package/types/components/RadioButton/index.d.ts +2 -2
  62. package/types/components/RegistrationPlate/EuFlagIcon.d.ts +1 -1
  63. package/types/components/RegistrationPlate/index.d.ts +2 -1
  64. package/types/components/Select/components/test-icon.d.ts +2 -1
  65. package/types/components/Select/index.d.ts +2 -1
  66. package/types/components/Snackbar/index.d.ts +2 -1
  67. package/types/components/Spacer/index.d.ts +1 -1
  68. package/types/components/Spinner/index.d.ts +2 -1
  69. package/types/components/SpinnerThin/index.d.ts +2 -1
  70. package/types/components/Stack/index.d.ts +2 -1
  71. package/types/components/Stamp/index.d.ts +2 -1
  72. package/types/components/Stepper/index.d.ts +1 -1
  73. package/types/components/StepperAccordion/index.d.ts +2 -2
  74. package/types/components/Switcher/index.d.ts +2 -1
  75. package/types/components/Table/index.d.ts +2 -1
  76. package/types/components/Tabs/Tabs.d.ts +1 -1
  77. package/types/components/TextArea/index.d.ts +2 -2
  78. package/types/components/Textfield/index.d.ts +2 -1
  79. package/types/components/TimePicker/index.d.ts +2 -1
  80. package/types/components/Toggle/index.d.ts +2 -1
  81. package/types/components/ValuationRange/index.d.ts +2 -1
  82. package/types/icons/components/AddIcon.d.ts +2 -1
  83. package/types/icons/components/AlertIcon.d.ts +2 -1
  84. package/types/icons/components/ArrowDownIcon.d.ts +2 -1
  85. package/types/icons/components/ArrowLeftIcon.d.ts +2 -1
  86. package/types/icons/components/ArrowRightIcon.d.ts +2 -1
  87. package/types/icons/components/ArrowUpIcon.d.ts +2 -1
  88. package/types/icons/components/AtvIcon.d.ts +2 -1
  89. package/types/icons/components/AuctionIcon.d.ts +2 -1
  90. package/types/icons/components/BackIcon.d.ts +2 -1
  91. package/types/icons/components/BackToTopIcon.d.ts +2 -1
  92. package/types/icons/components/BankidIcon.d.ts +2 -1
  93. package/types/icons/components/BatteryIcon.d.ts +2 -1
  94. package/types/icons/components/BidIcon.d.ts +2 -1
  95. package/types/icons/components/BodyIcon.d.ts +2 -1
  96. package/types/icons/components/BreaksIcon.d.ts +2 -1
  97. package/types/icons/components/CabIcon.d.ts +2 -1
  98. package/types/icons/components/CalendarIcon.d.ts +2 -1
  99. package/types/icons/components/CameraIcon.d.ts +2 -1
  100. package/types/icons/components/CamperIcon.d.ts +2 -1
  101. package/types/icons/components/CancelCircleIcon.d.ts +2 -1
  102. package/types/icons/components/CancelIcon.d.ts +2 -1
  103. package/types/icons/components/CarIcon.d.ts +2 -1
  104. package/types/icons/components/CarServiceIcon.d.ts +2 -1
  105. package/types/icons/components/CaravanIcon.d.ts +2 -1
  106. package/types/icons/components/CertifiedIcon.d.ts +2 -1
  107. package/types/icons/components/ChatIcon.d.ts +2 -1
  108. package/types/icons/components/CheckCircleIcon.d.ts +2 -1
  109. package/types/icons/components/CheckFilledIcon.d.ts +2 -1
  110. package/types/icons/components/CheckIcon.d.ts +2 -1
  111. package/types/icons/components/CheckmarkIcon.d.ts +2 -1
  112. package/types/icons/components/ClockIcon.d.ts +2 -1
  113. package/types/icons/components/CloseIcon.d.ts +2 -1
  114. package/types/icons/components/CommentFilledIcon.d.ts +2 -1
  115. package/types/icons/components/CommentIcon.d.ts +2 -1
  116. package/types/icons/components/ConditioningIcon.d.ts +2 -1
  117. package/types/icons/components/ContactIcon.d.ts +2 -1
  118. package/types/icons/components/ControlNumberIcon.d.ts +2 -1
  119. package/types/icons/components/CopyIcon.d.ts +2 -1
  120. package/types/icons/components/CountdownIcon.d.ts +2 -1
  121. package/types/icons/components/CoupeIcon.d.ts +2 -1
  122. package/types/icons/components/CraneIcon.d.ts +2 -1
  123. package/types/icons/components/CupIcon.d.ts +2 -1
  124. package/types/icons/components/DeleteIcon.d.ts +2 -1
  125. package/types/icons/components/DenmarkFlagIcon.d.ts +2 -1
  126. package/types/icons/components/DisplayIcon.d.ts +2 -1
  127. package/types/icons/components/DocumentIcon.d.ts +2 -1
  128. package/types/icons/components/DownloadIcon.d.ts +2 -1
  129. package/types/icons/components/DrivetrainIcon.d.ts +2 -1
  130. package/types/icons/components/EcoIcon.d.ts +2 -1
  131. package/types/icons/components/EditIcon.d.ts +2 -1
  132. package/types/icons/components/EngineIcon.d.ts +2 -1
  133. package/types/icons/components/ErrorFilledIcon.d.ts +2 -1
  134. package/types/icons/components/ErrorIcon.d.ts +2 -1
  135. package/types/icons/components/EstoniaFlagIcon.d.ts +2 -1
  136. package/types/icons/components/ExportIcon.d.ts +2 -1
  137. package/types/icons/components/FacebookIcon.d.ts +2 -1
  138. package/types/icons/components/FacilityIcon.d.ts +2 -1
  139. package/types/icons/components/FavouriteFilledIcon.d.ts +2 -1
  140. package/types/icons/components/FavouriteIcon.d.ts +2 -1
  141. package/types/icons/components/FigmaIcon.d.ts +2 -1
  142. package/types/icons/components/FilterIcon.d.ts +2 -1
  143. package/types/icons/components/FinanceIcon.d.ts +2 -1
  144. package/types/icons/components/FinlandFlagIcon.d.ts +2 -1
  145. package/types/icons/components/FirstIcon.d.ts +2 -1
  146. package/types/icons/components/FixedPriceIcon.d.ts +2 -1
  147. package/types/icons/components/FuelIcon.d.ts +2 -1
  148. package/types/icons/components/GearboxIcon.d.ts +2 -1
  149. package/types/icons/components/GermanyFlagIcon.d.ts +2 -1
  150. package/types/icons/components/GetPaidIcon.d.ts +2 -1
  151. package/types/icons/components/GridViewIcon.d.ts +2 -1
  152. package/types/icons/components/HatchbackIcon.d.ts +2 -1
  153. package/types/icons/components/HelpIcon.d.ts +2 -1
  154. package/types/icons/components/HistoryIcon.d.ts +2 -1
  155. package/types/icons/components/HomeDeliveryIcon.d.ts +2 -1
  156. package/types/icons/components/IdIcon.d.ts +2 -1
  157. package/types/icons/components/ImageIcon.d.ts +2 -1
  158. package/types/icons/components/InfoIcon.d.ts +2 -1
  159. package/types/icons/components/InstagramIcon.d.ts +2 -1
  160. package/types/icons/components/InsuranceIcon.d.ts +2 -1
  161. package/types/icons/components/InteriorIcon.d.ts +2 -1
  162. package/types/icons/components/KvdIcon.d.ts +2 -1
  163. package/types/icons/components/KvdTestIcon.d.ts +2 -1
  164. package/types/icons/components/KvdproIcon.d.ts +2 -1
  165. package/types/icons/components/LastIcon.d.ts +2 -1
  166. package/types/icons/components/LeaderIcon.d.ts +2 -1
  167. package/types/icons/components/LinkedinIcon.d.ts +2 -1
  168. package/types/icons/components/ListViewIcon.d.ts +2 -1
  169. package/types/icons/components/LocationIcon.d.ts +2 -1
  170. package/types/icons/components/MailIcon.d.ts +2 -1
  171. package/types/icons/components/MenuIcon.d.ts +2 -1
  172. package/types/icons/components/MileageIcon.d.ts +2 -1
  173. package/types/icons/components/MinivanIcon.d.ts +2 -1
  174. package/types/icons/components/ModelYearIcon.d.ts +2 -1
  175. package/types/icons/components/MoreIcon.d.ts +2 -1
  176. package/types/icons/components/MotorbikeIcon.d.ts +2 -1
  177. package/types/icons/components/NavigationIcon.d.ts +2 -1
  178. package/types/icons/components/NewIcon.d.ts +2 -1
  179. package/types/icons/components/NextFilledIcon.d.ts +2 -1
  180. package/types/icons/components/NextIcon.d.ts +2 -1
  181. package/types/icons/components/NotificationIcon.d.ts +2 -1
  182. package/types/icons/components/OpenInNewIcon.d.ts +2 -1
  183. package/types/icons/components/PayementIcon.d.ts +2 -1
  184. package/types/icons/components/PercentIcon.d.ts +2 -1
  185. package/types/icons/components/PhoneIcon.d.ts +2 -1
  186. package/types/icons/components/PickUpIcon.d.ts +2 -1
  187. package/types/icons/components/Pickup.d.ts +2 -1
  188. package/types/icons/components/PlayIcon.d.ts +2 -1
  189. package/types/icons/components/PlugIcon.d.ts +2 -1
  190. package/types/icons/components/PolandFlagIcon.d.ts +2 -1
  191. package/types/icons/components/PreviousFilledIcon.d.ts +2 -1
  192. package/types/icons/components/PreviousIcon.d.ts +2 -1
  193. package/types/icons/components/PrintIcon.d.ts +2 -1
  194. package/types/icons/components/QuoteIcon.d.ts +2 -1
  195. package/types/icons/components/RatingIcon.d.ts +2 -1
  196. package/types/icons/components/ReleasingIcon.d.ts +2 -1
  197. package/types/icons/components/RemarksIcon.d.ts +2 -1
  198. package/types/icons/components/ReorderIcon.d.ts +2 -1
  199. package/types/icons/components/RestartIcon.d.ts +2 -1
  200. package/types/icons/components/SalesOfferIcon.d.ts +2 -1
  201. package/types/icons/components/SavedSearchIcon.d.ts +2 -1
  202. package/types/icons/components/ScheduleIcon.d.ts +2 -1
  203. package/types/icons/components/SearchIcon.d.ts +2 -1
  204. package/types/icons/components/SedanIcon.d.ts +2 -1
  205. package/types/icons/components/SellFilledIcon.d.ts +2 -1
  206. package/types/icons/components/SellIcon.d.ts +2 -1
  207. package/types/icons/components/SettingsIcon.d.ts +2 -1
  208. package/types/icons/components/ShareIcon.d.ts +2 -1
  209. package/types/icons/components/ShowLessIcon.d.ts +2 -1
  210. package/types/icons/components/ShowMoreIcon.d.ts +2 -1
  211. package/types/icons/components/SignInIcon.d.ts +2 -1
  212. package/types/icons/components/SignOutIcon.d.ts +2 -1
  213. package/types/icons/components/SlackIcon.d.ts +2 -1
  214. package/types/icons/components/SmartphoneIcon.d.ts +2 -1
  215. package/types/icons/components/SmileIcon.d.ts +2 -1
  216. package/types/icons/components/SnowmobileIcon.d.ts +2 -1
  217. package/types/icons/components/SortColumnIcon.d.ts +2 -1
  218. package/types/icons/components/SortIcon.d.ts +2 -1
  219. package/types/icons/components/StarIcon.d.ts +2 -1
  220. package/types/icons/components/StorageIcon.d.ts +2 -1
  221. package/types/icons/components/StoreIcon.d.ts +2 -1
  222. package/types/icons/components/SuvIcon.d.ts +2 -1
  223. package/types/icons/components/SwedishFlagIcon.d.ts +2 -1
  224. package/types/icons/components/ThinCertifiedIcon.d.ts +2 -1
  225. package/types/icons/components/ThinWarningIcon.d.ts +2 -1
  226. package/types/icons/components/ThreeSixtyIcon.d.ts +2 -1
  227. package/types/icons/components/TractorIcon.d.ts +2 -1
  228. package/types/icons/components/TrailerIcon.d.ts +2 -1
  229. package/types/icons/components/TransportIcon.d.ts +2 -1
  230. package/types/icons/components/TruckIcon.d.ts +2 -1
  231. package/types/icons/components/TwitterIcon.d.ts +2 -1
  232. package/types/icons/components/TyresIcon.d.ts +2 -1
  233. package/types/icons/components/UnitedKingdomFlagIcon.d.ts +2 -1
  234. package/types/icons/components/UploadIcon.d.ts +2 -1
  235. package/types/icons/components/UserIcon.d.ts +2 -1
  236. package/types/icons/components/ValuationIcon.d.ts +2 -1
  237. package/types/icons/components/VanIcon.d.ts +2 -1
  238. package/types/icons/components/VersionIcon.d.ts +2 -1
  239. package/types/icons/components/ViewsIcon.d.ts +2 -1
  240. package/types/icons/components/WagonIcon.d.ts +2 -1
  241. package/types/icons/components/WarningIcon.d.ts +2 -1
  242. package/types/icons/components/WarrantyIcon.d.ts +2 -1
  243. package/types/icons/components/YoutubeIcon.d.ts +2 -1
  244. package/types/typography/BodyText/index.d.ts +9 -9
  245. package/types/typography/ButtonText/index.d.ts +4 -4
  246. package/types/typography/Heading/index.d.ts +9 -9
package/cjs/ColorCard.js CHANGED
@@ -22,4 +22,4 @@
22
22
  padding: 0;
23
23
  display: flex;
24
24
  flex-direction: column;
25
- `,c=r=>Object.entries(r).map((([r,l])=>"string"==typeof l?e.jsxs(n,{hex:l,children:[r," (",l,")"]},l):e.jsxs(e.Fragment,{children:[e.jsx(o,{children:r}),e.jsx(a,{children:c(l)})]})));exports.default=({colorName:r,variants:l})=>e.jsxs(d,{children:[e.jsx(o,{children:r}),e.jsx(u,{children:c(l)})]});
25
+ `,c=r=>Object.entries(r).map(([r,l])=>"string"==typeof l?e.jsxs(n,{hex:l,children:[r," (",l,")"]},l):e.jsxs(e.Fragment,{children:[e.jsx(o,{children:r}),e.jsx(a,{children:c(l)})]}));exports.default=({colorName:r,variants:l})=>e.jsxs(d,{children:[e.jsx(o,{children:r}),e.jsx(u,{children:c(l)})]});
@@ -33,4 +33,4 @@
33
33
  margin-bottom: 0;
34
34
  padding-bottom: 0rem;
35
35
  }
36
- `,m=({items:t,...l})=>{const[n,m]=r.useState({}),{id:h}=o.useNameAndId("accordion"),f=e=>{m((r=>({...r,[e]:!r[e]})))},g=e=>()=>{f(e)},j=e=>r=>{("Enter"===r.key||" "===r.key)&&(r.preventDefault(),f(e))};return e.jsx(a,{...l,children:e.jsx(c,{className:"accordionList",children:t.map(((r,t)=>{const o=!!n[t],l=`${h}-${t}-header`,a=`${h}-${t}-content`;return e.jsxs(p,{isOpen:o,className:"accordionItem",children:[e.jsxs(u,{id:l,onClick:g(t),onKeyDown:j(t),className:"accordionItemTitle",role:"button",tabIndex:0,"aria-expanded":o,"aria-controls":a,children:[e.jsx(d.BodyLink,{as:"span",children:r.title}),e.jsx(s.default,{isExpanded:o})]}),e.jsx(i.Collapse,{isOpened:o,children:e.jsx(x,{id:a,"aria-labelledby":l,role:"region",...o?null:{inert:""},children:"string"==typeof r.text?e.jsx(d.BodyText,{children:r.text}):r.text})},t)]},r.title)}))})})};exports.Accordion=m,exports.default=m;
36
+ `,m=({items:t,...l})=>{const[n,m]=r.useState({}),{id:h}=o.useNameAndId("accordion"),f=e=>{m(r=>({...r,[e]:!r[e]}))},g=e=>()=>{f(e)},j=e=>r=>{("Enter"===r.key||" "===r.key)&&(r.preventDefault(),f(e))};return e.jsx(a,{...l,children:e.jsx(c,{className:"accordionList",children:t.map((r,t)=>{const o=!!n[t],l=`${h}-${t}-header`,a=`${h}-${t}-content`;return e.jsxs(p,{isOpen:o,className:"accordionItem",children:[e.jsxs(u,{id:l,onClick:g(t),onKeyDown:j(t),className:"accordionItemTitle",role:"button",tabIndex:0,"aria-expanded":o,"aria-controls":a,children:[e.jsx(d.BodyLink,{as:"span",children:r.title}),e.jsx(s.default,{isExpanded:o})]}),e.jsx(i.Collapse,{isOpened:o,children:e.jsx(x,{id:a,"aria-labelledby":l,role:"region",...o?null:{inert:""},children:"string"==typeof r.text?e.jsx(d.BodyText,{children:r.text}):r.text})},t)]},r.title)})})})};exports.Accordion=m,exports.default=m;
@@ -4,4 +4,4 @@
4
4
  padding: 0;
5
5
  white-space: nowrap;
6
6
  overflow: hidden;
7
- `;exports.default=({links:e,separator:s=r.jsx(t.default,{}),onlyLastTruncated:n=!1})=>{const{id:u}=d.useNameAndId("breadcrumb");return r.jsx("nav",{"aria-label":"Breadcrumb",id:u,children:r.jsx(i,{children:e.map(((t,d)=>r.jsx(a.default,{link:t,separator:s,isLast:d===e.length-1,onlyLastTruncated:n},`${u}-${d}`)))})})};
7
+ `;exports.default=({links:e,separator:s=r.jsx(t.default,{}),onlyLastTruncated:n=!1})=>{const{id:u}=d.useNameAndId("breadcrumb");return r.jsx("nav",{"aria-label":"Breadcrumb",id:u,children:r.jsx(i,{children:e.map((t,d)=>r.jsx(a.default,{link:t,separator:s,isLast:d===e.length-1,onlyLastTruncated:n},`${u}-${d}`))})})};
@@ -43,4 +43,4 @@
43
43
  position: absolute;
44
44
  `,g=d.default.span`
45
45
  opacity: ${({$isLoading:e})=>e?0:1};
46
- `,m={small:1,regular:1.25,large:1.5},y=i.forwardRef((({size:i="regular",color:r,colorShade:s="mainAlt",variant:o="solid",fullWidth:l=!1,isDisabled:a=!1,isLoading:d=!1,children:c,sufixIcon:$,prefixIcon:y,minWidth:x,as:h="button",noRadius:b=!1,...z},S)=>{return e.jsx(u,{...z,as:h,$minWidth:x,$color:r,$colorShade:s,disabled:a||d,$fullWidth:l,theme:t.default,$variant:o,$size:i,$isLoading:d,ref:S,$isIcon:!(!y&&!$),$noRadius:b,"aria-disabled":"button"===h?a||d:void 0,"aria-busy":"button"===h?d:void 0,children:e.jsxs(e.Fragment,{children:[y&&e.jsx(p,{size:i,type:"prefix",isLoading:d,children:y}),(j=c,v=d,"string"==typeof j||"number"==typeof j?e.jsx(g,{$isLoading:v,children:j}):n.default.isValidElement(j)?n.default.cloneElement(j,{style:{...j.props.style,opacity:v?0:1}}):j),$&&e.jsx(p,{size:i,type:"sufix",isLoading:d,children:$}),d&&e.jsx(f,{customColor:t.default.colors.grayscaleToned.light1,size:m[i]})]})});var j,v}));y.displayName="Button",exports.Button=y,exports.default=y;
46
+ `,m={small:1,regular:1.25,large:1.5},y=i.forwardRef(({size:i="regular",color:r,colorShade:s="mainAlt",variant:o="solid",fullWidth:l=!1,isDisabled:a=!1,isLoading:d=!1,children:c,sufixIcon:$,prefixIcon:y,minWidth:x,as:h="button",noRadius:b=!1,...z},S)=>{return e.jsx(u,{...z,as:h,$minWidth:x,$color:r,$colorShade:s,disabled:a||d,$fullWidth:l,theme:t.default,$variant:o,$size:i,$isLoading:d,ref:S,$isIcon:!(!y&&!$),$noRadius:b,"aria-disabled":"button"===h?a||d:void 0,"aria-busy":"button"===h?d:void 0,children:e.jsxs(e.Fragment,{children:[y&&e.jsx(p,{size:i,type:"prefix",isLoading:d,children:y}),(j=c,v=d,"string"==typeof j||"number"==typeof j?e.jsx(g,{$isLoading:v,children:j}):n.default.isValidElement(j)?n.default.cloneElement(j,{style:{...j.props.style,opacity:v?0:1}}):j),$&&e.jsx(p,{size:i,type:"sufix",isLoading:d,children:$}),d&&e.jsx(f,{customColor:t.default.colors.grayscaleToned.light1,size:m[i]})]})});var j,v});y.displayName="Button",exports.Button=y,exports.default=y;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),o=require("../../theme.js"),l=require("react-day-picker"),c=require("date-fns/locale"),a=require("date-fns"),u=require("./style.js");var n,s=(n=t)&&n.__esModule?n:{default:n},i=function(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}(c);const d=s.default.div`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),o=require("../../theme.js"),l=require("react-day-picker"),c=require("date-fns/locale"),a=require("date-fns"),u=require("./style.js");var n,s=(n=t)&&n.__esModule?n:{default:n},i=function(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}(c);const d=s.default.div`
2
2
  ${u.default}
3
3
 
4
4
  .rdp-chevron {
@@ -31,4 +31,4 @@
31
31
  flex-wrap: wrap;
32
32
  `,q=d.default(s.Chip)`
33
33
  margin: 0.5rem;
34
- `;exports.default=({value:r,label:i,onChange:l,onEdit:s,options:o=[],inputProps:a={},isClearable:d=!1,isEditionDisabled:v=!1,editText:b,saveText:C,cancelText:T,noValueText:B,formatterFunc:w,isSingleSelect:S,color:k="secondary",isInitialEditing:E})=>{const[F,D]=t.useState(r),[_,I]=t.useState(r),[L,M]=t.useState(!!E),P="string"==typeof F,$=w&&P?w?.(F):F,A=P?$:F.join(", "),N=F.length>0;t.useEffect((()=>s?.(L)),[s,L]);const O=()=>{L?D(_):I(F),M((e=>!e))};return e.jsxs(u,{children:[!L&&e.jsxs(e.Fragment,{children:[e.jsx(m,{children:i}),N&&e.jsx(p,{children:A}),!N&&e.jsx(g,{children:B}),e.jsx(n.Button,{variant:"flat",color:k,onClick:O,isDisabled:v,children:b})]}),L&&e.jsxs(c,{onSubmit:e=>{e.preventDefault(),l?.(F),M(!1)},children:[e.jsx(m,{children:i}),P&&e.jsx(x,{...a,autoFocus:!0,value:F,label:i,onChange:e=>D(e.target.value)}),!P&&e.jsx(y,{children:o.map((t=>e.jsx(q,{color:k,onClick:e=>{e.preventDefault(),(e=>{if("object"!=typeof F)throw new Error("Cannot toggle chip on other than array");if(S)return F.includes(e)&&d?void D([]):void D([e]);if(F.includes(e)){const t=F.filter((t=>t!==e));D(t)}else D((t=>[...t,e]))})(t)},variant:F.includes(t)?"solid":"outline",children:t},t)))}),e.jsxs(f,{children:[e.jsx(j,{type:"button",variant:"flat",color:"neutral",onClick:O,children:T}),e.jsx(h,{type:"submit",color:k,children:C})]})]})]})};
34
+ `;exports.default=({value:r,label:i,onChange:l,onEdit:s,options:o=[],inputProps:a={},isClearable:d=!1,isEditionDisabled:v=!1,editText:b,saveText:C,cancelText:T,noValueText:B,formatterFunc:w,isSingleSelect:S,color:k="secondary",isInitialEditing:E})=>{const[F,D]=t.useState(r),[_,I]=t.useState(r),[L,M]=t.useState(!!E),P="string"==typeof F,$=w&&P?w?.(F):F,A=P?$:F.join(", "),N=F.length>0;t.useEffect(()=>s?.(L),[s,L]);const O=()=>{L?D(_):I(F),M(e=>!e)};return e.jsxs(u,{children:[!L&&e.jsxs(e.Fragment,{children:[e.jsx(m,{children:i}),N&&e.jsx(p,{children:A}),!N&&e.jsx(g,{children:B}),e.jsx(n.Button,{variant:"flat",color:k,onClick:O,isDisabled:v,children:b})]}),L&&e.jsxs(c,{onSubmit:e=>{e.preventDefault(),l?.(F),M(!1)},children:[e.jsx(m,{children:i}),P&&e.jsx(x,{...a,autoFocus:!0,value:F,label:i,onChange:e=>D(e.target.value)}),!P&&e.jsx(y,{children:o.map(t=>e.jsx(q,{color:k,onClick:e=>{e.preventDefault(),(e=>{if("object"!=typeof F)throw new Error("Cannot toggle chip on other than array");if(S)return F.includes(e)&&d?void D([]):void D([e]);if(F.includes(e)){const t=F.filter(t=>t!==e);return void D(t)}D(t=>[...t,e])})(t)},variant:F.includes(t)?"solid":"outline",children:t},t))}),e.jsxs(f,{children:[e.jsx(j,{type:"button",variant:"flat",color:"neutral",onClick:O,children:T}),e.jsx(h,{type:"submit",color:k,children:C})]})]})]})};
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("styled-components"),i=require("../../shared/media-queries.js");var s,n=(s=r)&&s.__esModule?s:{default:s};const t="center",a=(e,r)=>"gap"!==r&&"row-gap"!==r||"number"!=typeof e?e:`${e}rem`,o=n.default.div((({$direction:e,$justify:s,$align:n,$gap:t,$rowGap:o,$wrap:$,$basis:l,$grow:p,$shrink:u,$inlineChildren:c})=>r.css`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("styled-components"),i=require("../../shared/media-queries.js");var s,n=(s=r)&&s.__esModule?s:{default:s};const t="center",a=(e,r)=>"gap"!==r&&"row-gap"!==r||"number"!=typeof e?e:`${e}rem`,o=n.default.div(({$direction:e,$justify:s,$align:n,$gap:t,$rowGap:o,$wrap:$,$basis:l,$grow:p,$shrink:u,$inlineChildren:c})=>r.css`
2
2
  display: flex;
3
3
 
4
4
  ${e&&["column","column-reverse"].includes(String(e))&&!c&&r.css`
@@ -7,13 +7,13 @@
7
7
  }
8
8
  `}
9
9
 
10
- ${[[e,"flex-direction"],[s,"justify-content"],[n,"align-items"],[t,"gap"],[o,"row-gap"],[o,"row-gap"],[$,"flex-wrap"],[l,"flex-basis"],[p,"flex-grow"],[u,"flex-shrink"]].map((([e,s])=>{if("string"==typeof e||"number"==typeof e)return r.css`
10
+ ${[[e,"flex-direction"],[s,"justify-content"],[n,"align-items"],[t,"gap"],[o,"row-gap"],[o,"row-gap"],[$,"flex-wrap"],[l,"flex-basis"],[p,"flex-grow"],[u,"flex-shrink"]].map(([e,s])=>{if("string"==typeof e||"number"==typeof e)return r.css`
11
11
  ${s}: ${a(e,s)};
12
12
  `;if("object"==typeof e){const n=[],{initial:t,...o}=e;return t&&n.push(r.css`
13
13
  ${s}: ${a(t,s)};
14
- `),Object.entries(o).forEach((([e,t])=>{n.push(r.css`
14
+ `),Object.entries(o).forEach(([e,t])=>{n.push(r.css`
15
15
  ${i.mq(e)} {
16
16
  ${s}: ${a(t,s)};
17
17
  }
18
- `)})),n}return""}))}
19
- `));exports.default=({direction:r,justify:i,align:s,gap:n,rowGap:a,wrap:$,basis:l,grow:p,shrink:u,inlineChildren:c=!1,...f})=>e.jsx(o,{$direction:r??"row",$justify:i??t,$align:s??t,$gap:n??"1rem",$rowGap:a,$wrap:$,$basis:l,$grow:p,$shrink:u,$inlineChildren:c,...f});
18
+ `)}),n}return""})}
19
+ `);exports.default=({direction:r,justify:i,align:s,gap:n,rowGap:a,wrap:$,basis:l,grow:p,shrink:u,inlineChildren:c=!1,...f})=>e.jsx(o,{$direction:r??"row",$justify:i??t,$align:s??t,$gap:n??"1rem",$rowGap:a,$wrap:$,$basis:l,$grow:p,$shrink:u,$inlineChildren:c,...f});
@@ -1,4 +1,4 @@
1
1
  "use strict";var e,t=require("react/jsx-runtime"),r=require("react"),n=require("styled-components");const u=((e=n)&&e.__esModule?e:{default:e}).default.div`
2
2
  width: 100%;
3
3
  height: 100%;
4
- `;exports.FocusTrap=({children:e,pause:n=!1,autoFocusOnOpen:s="firstElem",restoreFocusOnClose:c=!0})=>{const o=r.useRef(null),i=r.useRef([]),l=r.useRef(null),d=r.useRef(null),f=r.useRef(!1);return r.useEffect((()=>{if(n)return void(c&&f.current&&d.current&&d.current.focus());const e=o.current;if(!e)return;c&&(d.current=document.activeElement);const t=["a[href]","button:not([disabled])","textarea:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])",'[tabindex]:not([tabindex="-1"])'],r=()=>{i.current=Array.from(e.querySelectorAll(t.join(",")))},u=e=>{if("Tab"!==e.key)return;const t=i.current;if(0===t.length)return void e.preventDefault();const r=t[0],n=t[t.length-1],u=t.findIndex((e=>e===document.activeElement));e.preventDefault(),e.shiftKey?u<=0?n.focus():t[u-1].focus():-1===u||u===t.length-1?r.focus():t[u+1].focus()};return r(),"firstElem"===s&&i.current.length>0&&i.current[0].focus(),"firstInput"===s&&i.current.find((e=>"INPUT"===e.tagName))?.focus(),e.addEventListener("keydown",u),l.current=new MutationObserver(r),l.current.observe(e,{childList:!0,subtree:!0}),f.current=!0,()=>{e.removeEventListener("keydown",u),l.current?.disconnect(),l.current=null}}),[n,s,c]),t.jsx(u,{ref:o,children:e})};
4
+ `;exports.FocusTrap=({children:e,pause:n=!1,autoFocusOnOpen:s="firstElem",restoreFocusOnClose:c=!0})=>{const o=r.useRef(null),i=r.useRef([]),l=r.useRef(null),d=r.useRef(null),f=r.useRef(!1);return r.useEffect(()=>{if(n)return void(c&&f.current&&d.current&&d.current.focus());const e=o.current;if(!e)return;c&&(d.current=document.activeElement);const t=["a[href]","button:not([disabled])","textarea:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])",'[tabindex]:not([tabindex="-1"])'],r=()=>{i.current=Array.from(e.querySelectorAll(t.join(",")))},u=e=>{if("Tab"!==e.key)return;const t=i.current;if(0===t.length)return void e.preventDefault();const r=t[0],n=t[t.length-1],u=t.findIndex(e=>e===document.activeElement);e.preventDefault(),e.shiftKey?u<=0?n.focus():t[u-1].focus():-1===u||u===t.length-1?r.focus():t[u+1].focus()};return r(),"firstElem"===s&&i.current.length>0&&i.current[0].focus(),"firstInput"===s&&i.current.find(e=>"INPUT"===e.tagName)?.focus(),e.addEventListener("keydown",u),l.current=new MutationObserver(r),l.current.observe(e,{childList:!0,subtree:!0}),f.current=!0,()=>{e.removeEventListener("keydown",u),l.current?.disconnect(),l.current=null}},[n,s,c]),t.jsx(u,{ref:o,children:e})};
@@ -29,4 +29,4 @@
29
29
  `,x=c.default.span`
30
30
  font-size: ${({size:e})=>e};
31
31
  color: ${({color:e})=>e};
32
- `;exports.default=({background:o=t.default.colors.background.light,color:s=t.default.colors.text.dark,icons:i,size:a="2rem"})=>{const[c,g]=r.useState({isOpen:!1,message:"",type:"info",color:"neutral"});return e.jsxs(e.Fragment,{children:[e.jsxs(l,{children:[e.jsx(d,{as:"h2",children:"Click to copy import declaration for icon"}),e.jsx(u,{children:i.map((([r,i],t)=>e.jsxs(p,{background:o,onClick:()=>{(async e=>{const r=`import { ${e} } from 'kvdbil-components';`;if(navigator.clipboard)try{await navigator.clipboard.writeText(r),g((r=>({...r,isOpen:!0,message:`copied import for ${e}`,type:"success",color:"success"})))}catch(e){g((r=>({...r,isOpen:!0,message:`Could not copy text: ${e}`,type:"error",color:"error"})))}})(r)},children:[e.jsx(m,{children:r}),e.jsx(x,{size:a,color:s,children:e.jsx(i,{})})]},t)))})]}),e.jsx(n.Snackbar,{message:c.message,isOpen:c.isOpen,type:c.type,color:c.color,onClose:()=>g((e=>({...e,isOpen:!1})))})]})};
32
+ `;exports.default=({background:o=t.default.colors.background.light,color:s=t.default.colors.text.dark,icons:i,size:a="2rem"})=>{const[c,g]=r.useState({isOpen:!1,message:"",type:"info",color:"neutral"});return e.jsxs(e.Fragment,{children:[e.jsxs(l,{children:[e.jsx(d,{as:"h2",children:"Click to copy import declaration for icon"}),e.jsx(u,{children:i.map(([r,i],t)=>e.jsxs(p,{background:o,onClick:()=>{(async e=>{const r=`import { ${e} } from 'kvdbil-components';`;if(navigator.clipboard)try{await navigator.clipboard.writeText(r),g(r=>({...r,isOpen:!0,message:`copied import for ${e}`,type:"success",color:"success"}))}catch(e){g(r=>({...r,isOpen:!0,message:`Could not copy text: ${e}`,type:"error",color:"error"}))}})(r)},children:[e.jsx(m,{children:r}),e.jsx(x,{size:a,color:s,children:e.jsx(i,{})})]},t))})]}),e.jsx(n.Snackbar,{message:c.message,isOpen:c.isOpen,type:c.type,color:c.color,onClose:()=>g(e=>({...e,isOpen:!1}))})]})};
@@ -38,4 +38,4 @@
38
38
  svg {
39
39
  font-size: 2.5rem;
40
40
  }
41
- `;exports.default=({children:t,type:n,withIcon:s=!1,isDeletable:i=!1,fullWidth:l=!1,inverted:c=!1,textCenter:a=!1,...u})=>{const d=r.useRef(null),[y,b]=r.useState(!1);return e.jsx(g,{isDeleted:y,children:e.jsxs(x,{messageType:n,fullWidth:l,inverted:c,textCenter:a,role:"error"===n||"warning"===n?"alert":void 0,"aria-live":"error"===n||"warning"===n?"assertive":"polite",ref:d,...u,children:[e.jsxs(p,{children:[s&&e.jsx(j,{children:f(n)}),e.jsxs(h,{children:["string"==typeof t&&e.jsx(m,{children:t}),"string"!=typeof t&&t]})]}),i&&e.jsx(v,{onClick:e=>{e.stopPropagation(),b(!0),setTimeout((()=>{d.current&&d.current.remove()}),300)},"aria-label":"Close",type:"button",children:e.jsx(o.default,{})})]})})};
41
+ `;exports.default=({children:t,type:n,withIcon:s=!1,isDeletable:i=!1,fullWidth:l=!1,inverted:c=!1,textCenter:a=!1,...u})=>{const d=r.useRef(null),[y,b]=r.useState(!1);return e.jsx(g,{isDeleted:y,children:e.jsxs(x,{messageType:n,fullWidth:l,inverted:c,textCenter:a,role:"error"===n||"warning"===n?"alert":void 0,"aria-live":"error"===n||"warning"===n?"assertive":"polite",ref:d,...u,children:[e.jsxs(p,{children:[s&&e.jsx(j,{children:f(n)}),e.jsxs(h,{children:["string"==typeof t&&e.jsx(m,{children:t}),"string"!=typeof t&&t]})]}),i&&e.jsx(v,{onClick:e=>{e.stopPropagation(),b(!0),setTimeout(()=>{d.current&&d.current.remove()},300)},"aria-label":"Close",type:"button",children:e.jsx(o.default,{})})]})})};
@@ -78,4 +78,4 @@
78
78
  }
79
79
  `,h=n.createGlobalStyle`
80
80
  ${u}
81
- `,y=({children:n,isOpen:a,contentStyles:d,withPortal:l=!1,withCloseIcon:u=!0,onClose:y,focusTrapProps:f={},...m})=>{t.useEffect((()=>{const e=e=>{"Escape"===e.key&&a&&y()};return a&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[y,a]);const v=!!(typeof window<"u"&&window.document&&window.document.createElement),j=e.jsx(o.CSSTransition,{in:a,mountOnEnter:!0,unmountOnExit:!0,timeout:400,classNames:"backgroundTransition",children:e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsxs(c,{...m,children:[e.jsx(x,{"data-testid":"background",onClick:y}),e.jsx(s.FocusTrap,{pause:!a,...f,children:e.jsx(p,{children:e.jsxs(b,{style:d,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[u&&e.jsx(w,{onClick:y,"data-testid":"close",type:"button","aria-label":"Close dialog",children:e.jsx(r.default,{})}),n]})})}),e.jsx(g,{})]})]})});return l&&v?i.createPortal(j,document.body):j};exports.Modal=y,exports.default=y;
81
+ `,y=({children:n,isOpen:a,contentStyles:d,withPortal:l=!1,withCloseIcon:u=!0,onClose:y,focusTrapProps:f={},...m})=>{t.useEffect(()=>{const e=e=>{"Escape"===e.key&&a&&y()};return a&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[y,a]);const v=!!(typeof window<"u"&&window.document&&window.document.createElement),j=e.jsx(o.CSSTransition,{in:a,mountOnEnter:!0,unmountOnExit:!0,timeout:400,classNames:"backgroundTransition",children:e.jsxs(e.Fragment,{children:[e.jsx(h,{}),e.jsxs(c,{...m,children:[e.jsx(x,{"data-testid":"background",onClick:y}),e.jsx(s.FocusTrap,{pause:!a,...f,children:e.jsx(p,{children:e.jsxs(b,{style:d,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[u&&e.jsx(w,{onClick:y,"data-testid":"close",type:"button","aria-label":"Close dialog",children:e.jsx(r.default,{})}),n]})})}),e.jsx(g,{})]})]})});return l&&v?i.createPortal(j,document.body):j};exports.Modal=y,exports.default=y;
@@ -7,4 +7,4 @@
7
7
  overflow-x: hidden;
8
8
  overflow-y: auto;
9
9
  -webkit-overflow-scrolling: touch;
10
- `,m=({animationName:r="offCanvasAnimation",animationDuration:l=300,backgroundColor:d,backgroundOverlay:m,children:h,from:$="right",isOpen:g,onClickOutside:x,width:p="375px",withPortal:v,transitionProps:w,focusTrapProps:k={}})=>{const O=e.useRef(null);o.useOutsideClick(O,(()=>x?.())),e.useEffect((()=>{const n=n=>{"Escape"===n.key&&g&&x?.()};return g&&window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[x,g]),m&&!x&&console.error("Please provide a clickOutside handler when using backgroundOverlay option in OffCanvas component");const b=`${r}--${$}`,j=n.jsxs(n.Fragment,{children:[m&&n.jsx(i.default,{isOpen:g}),n.jsx(n.Fragment,{children:n.jsx(a.CSSTransition,{in:g,className:`${r} ${b}`,classNames:b,...u,...w,children:n.jsx(s.FocusTrap,{pause:!g,...k,children:n.jsx(c,{ref:O,animationName:r,animationDuration:l,backgroundColor:d,from:$,width:p,role:"dialog","aria-modal":"true","aria-label":"Side panel",children:n.jsx(f,{className:`${r}-content`,children:h})})})})})]});return v?t.createPortal(j,document.body):j};exports.OffCanvas=m,exports.default=m;
10
+ `,m=({animationName:r="offCanvasAnimation",animationDuration:l=300,backgroundColor:d,backgroundOverlay:m,children:h,from:$="right",isOpen:g,onClickOutside:x,width:p="375px",withPortal:v,transitionProps:w,focusTrapProps:k={}})=>{const O=e.useRef(null);o.useOutsideClick(O,()=>x?.()),e.useEffect(()=>{const n=n=>{"Escape"===n.key&&g&&x?.()};return g&&window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}},[x,g]),m&&!x&&console.error("Please provide a clickOutside handler when using backgroundOverlay option in OffCanvas component");const b=`${r}--${$}`,j=n.jsxs(n.Fragment,{children:[m&&n.jsx(i.default,{isOpen:g}),n.jsx(n.Fragment,{children:n.jsx(a.CSSTransition,{in:g,className:`${r} ${b}`,classNames:b,...u,...w,children:n.jsx(s.FocusTrap,{pause:!g,...k,children:n.jsx(c,{ref:O,animationName:r,animationDuration:l,backgroundColor:d,from:$,width:p,role:"dialog","aria-modal":"true","aria-label":"Side panel",children:n.jsx(f,{className:`${r}-content`,children:h})})})})})]});return v?t.createPortal(j,document.body):j};exports.OffCanvas=m,exports.default=m;
@@ -1 +1 @@
1
- "use strict";var e=require("react");exports.useOutsideClick=(t,r)=>{const n=e.useCallback((e=>{t.current&&!t.current.contains(e.target)&&r()}),[r,t]);e.useEffect((()=>(document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)})),[n])};
1
+ "use strict";var e=require("react");exports.useOutsideClick=(t,r)=>{const n=e.useCallback(e=>{t.current&&!t.current.contains(e.target)&&r()},[r,t]);e.useEffect(()=>(document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}),[n])};
@@ -18,7 +18,7 @@
18
18
  display: block;
19
19
  margin-top: 0.25rem;
20
20
  color: ${({hasError:e})=>e?t.default.colors.error.dark:t.default.colors.text.disabled};
21
- `,x=c.default((r=>e.jsxs("svg",{...r,children:[e.jsx("symbol",{id:"icon-arrow",viewBox:"0 0 19 19",children:e.jsx("path",{d:"M2.03039 7.95496L9.80856 15.7331C9.90619 15.8308 10.0645 15.8308 10.1621 15.7331L17.9403 7.95496L19.0009 9.01562L11.2228 16.7938C10.5394 17.4772 9.43132 17.4772 8.7479 16.7938L0.969727 9.01562L2.03039 7.95496Z"})}),e.jsx("use",{xlinkHref:"#icon-arrow"})]})))`
21
+ `,x=c.default(r=>e.jsxs("svg",{...r,children:[e.jsx("symbol",{id:"icon-arrow",viewBox:"0 0 19 19",children:e.jsx("path",{d:"M2.03039 7.95496L9.80856 15.7331C9.90619 15.8308 10.0645 15.8308 10.1621 15.7331L17.9403 7.95496L19.0009 9.01562L11.2228 16.7938C10.5394 17.4772 9.43132 17.4772 8.7479 16.7938L0.969727 9.01562L2.03039 7.95496Z"})}),e.jsx("use",{xlinkHref:"#icon-arrow"})]}))`
22
22
  width: 0.75rem;
23
23
  height: 0.75rem;
24
24
  margin: 0;
@@ -36,4 +36,4 @@
36
36
  transform: ${e=>e.$isMenuOpen?"rotate(-180deg)":"rotate(0deg)"};
37
37
 
38
38
  transform-origin: 50% 60%;
39
- `,b=({selectProps:{menuIsOpen:r=!1},isFocused:o=!1,isDisabled:a})=>e.jsx(x,{$isDisabled:a,$isFocused:o,$isMenuOpen:r,$theme:t.default});function y({className:o,color:a="primary",colorShade:l="mainAlt",forwardRef:i,hasError:d=!1,height:c,helperText:x,isDisabled:y=!1,onBlur:$=(()=>null),onFocus:k=(()=>null),onInputChange:F=(()=>null),placeholder:S="",name:j,...T}){const[v,D]=r.useState(!1),[w,L]=r.useState(""),I=({isSelected:e,isFocused:r,isDisabled:o})=>e?t.default.colors[a][l]:o?t.default.colors.background.light:r?t.default.colors.background.gray:t.default.colors.background.light,C=((e,r)=>r?t.default.colors.error.dark:e?t.default.colors.text.dark:t.default.colors.grayscaleToned.light1)(v,d),q=!T.label;return e.jsxs(u,{className:o,children:[!q&&T.label&&e.jsx(s.Label,{htmlFor:j,height:c,isFocused:v,hasValue:!(!T.value&&!w),disabled:y,theme:t.default,hasError:d,children:e.jsxs(e.Fragment,{children:[T.label,e.jsx("span",{})]})}),T.prefix&&e.jsx(f,{isDisabled:y,isFocused:v,children:T.prefix}),e.jsx(n.default,{...T,id:"react-select",inputId:j,name:j,ref:i,isDisabled:y,onInputChange:(e,r)=>{F(e,r),L(e)},placeholder:S,onFocus:e=>{D(!0),k(e)},onBlur:e=>{D(!1),$(e)},styles:{control:e=>({...e,borderRadius:0,color:t.default.colors.text.dark,fontFamily:t.default.typography.fontBaseFamily,fontSize:"1rem",fontWeight:400,cursor:"pointer",padding:"0.7rem 0.5rem",backgroundColor:t.default.colors.background.light,borderColor:C,boxShadow:"none",minHeight:"3rem","&:hover":{borderColor:"none"},...h(y),...m(d),...p(!!T.prefix)}),input:e=>({...e,height:"auto",margin:0,padding:0}),placeholder:e=>{const r={...e,fontSize:"1rem",lineHeight:"1.5rem",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",margin:0};return q?{...r,color:t.default.colors.text.dark,fontWeight:600}:{...r,display:v?"static":"none"}},menuList:e=>({...e,padding:"0.5rem 0",paddingBottom:"5rem",marginTop:0,border:`1px solid ${C}`,borderTop:"none",display:"flex",flexDirection:"column",gap:"0.5rem"}),menu:e=>({...e,borderRadius:0,boxShadow:"none",zIndex:5,padding:"0",marginTop:"-0.1rem"}),option:(e,{isSelected:r,isFocused:o,isDisabled:a})=>({...e,padding:"0.5rem",lineHeight:"1.5rem",fontSize:"1rem",fontWeight:400,cursor:a?"not-allowed":"pointer","&:hover":{background:I({isSelected:r,isFocused:!0,isDisabled:a})},background:I({isSelected:r,isFocused:o}),...p(!!T.prefix)}),valueContainer:e=>({...e,position:"static",padding:c?c-1+"rem 0 ":0,height:c?"auto":"1.5rem"}),clearIndicator:e=>({...e,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:"0.2rem"})},components:{IndicatorSeparator:()=>null,DropdownIndicator:b,...T.components??{}}}),x&&e.jsx(g,{hasError:d,children:x})]})}exports.Select=y,exports.default=y;
39
+ `,b=({selectProps:{menuIsOpen:r=!1},isFocused:o=!1,isDisabled:a})=>e.jsx(x,{$isDisabled:a,$isFocused:o,$isMenuOpen:r,$theme:t.default});function y({className:o,color:a="primary",colorShade:l="mainAlt",forwardRef:i,hasError:d=!1,height:c,helperText:x,isDisabled:y=!1,onBlur:$=()=>null,onFocus:k=()=>null,onInputChange:F=()=>null,placeholder:S="",name:j,...T}){const[v,D]=r.useState(!1),[w,L]=r.useState(""),I=({isSelected:e,isFocused:r,isDisabled:o})=>e?t.default.colors[a][l]:o?t.default.colors.background.light:r?t.default.colors.background.gray:t.default.colors.background.light,C=((e,r)=>r?t.default.colors.error.dark:e?t.default.colors.text.dark:t.default.colors.grayscaleToned.light1)(v,d),q=!T.label;return e.jsxs(u,{className:o,children:[!q&&T.label&&e.jsx(s.Label,{htmlFor:j,height:c,isFocused:v,hasValue:!(!T.value&&!w),disabled:y,theme:t.default,hasError:d,children:e.jsxs(e.Fragment,{children:[T.label,e.jsx("span",{})]})}),T.prefix&&e.jsx(f,{isDisabled:y,isFocused:v,children:T.prefix}),e.jsx(n.default,{...T,id:"react-select",inputId:j,name:j,ref:i,isDisabled:y,onInputChange:(e,r)=>{F(e,r),L(e)},placeholder:S,onFocus:e=>{D(!0),k(e)},onBlur:e=>{D(!1),$(e)},styles:{control:e=>({...e,borderRadius:0,color:t.default.colors.text.dark,fontFamily:t.default.typography.fontBaseFamily,fontSize:"1rem",fontWeight:400,cursor:"pointer",padding:"0.7rem 0.5rem",backgroundColor:t.default.colors.background.light,borderColor:C,boxShadow:"none",minHeight:"3rem","&:hover":{borderColor:"none"},...h(y),...m(d),...p(!!T.prefix)}),input:e=>({...e,height:"auto",margin:0,padding:0}),placeholder:e=>{const r={...e,fontSize:"1rem",lineHeight:"1.5rem",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",margin:0};return q?{...r,color:t.default.colors.text.dark,fontWeight:600}:{...r,display:v?"static":"none"}},menuList:e=>({...e,padding:"0.5rem 0",paddingBottom:"5rem",marginTop:0,border:`1px solid ${C}`,borderTop:"none",display:"flex",flexDirection:"column",gap:"0.5rem"}),menu:e=>({...e,borderRadius:0,boxShadow:"none",zIndex:5,padding:"0",marginTop:"-0.1rem"}),option:(e,{isSelected:r,isFocused:o,isDisabled:a})=>({...e,padding:"0.5rem",lineHeight:"1.5rem",fontSize:"1rem",fontWeight:400,cursor:a?"not-allowed":"pointer","&:hover":{background:I({isSelected:r,isFocused:!0,isDisabled:a})},background:I({isSelected:r,isFocused:o}),...p(!!T.prefix)}),valueContainer:e=>({...e,position:"static",padding:c?c-1+"rem 0 ":0,height:c?"auto":"1.5rem"}),clearIndicator:e=>({...e,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:"0.2rem"})},components:{IndicatorSeparator:()=>null,DropdownIndicator:b,...T.components??{}}}),x&&e.jsx(g,{hasError:d,children:x})]})}exports.Select=y,exports.default=y;
@@ -80,4 +80,4 @@
80
80
  }
81
81
  `,h=m.default.span`
82
82
  flex: 1;
83
- `,y={error:e.jsx(n.default,{}),success:e.jsx(s.default,{}),info:e.jsx(l.default,{}),text:""},v=({message:r,color:i="none",type:n="info",action:s,isOpen:l,origin:c={},onClose:m=(()=>{}),onExited:u=(()=>{}),autoHideDuration:d=4e3,...v})=>(t.useEffect((()=>{const e=setTimeout(m,d);return()=>clearTimeout(e)}),[d,m]),e.jsx(o.CSSTransition,{in:l,timeout:200,mountOnEnter:!0,unmountOnExit:!0,onExited:u,classNames:p,children:e.jsxs(f,{...v,$color:i,origin:c,role:"error"===n?"alert":void 0,"aria-live":"error"===n?"assertive":"polite",children:[e.jsx(g,{type:n,children:y[n]}),e.jsx(h,{children:r}),s&&s,e.jsx(x,{onClick:m,"aria-label":"Close",type:"button",children:e.jsx(a.default,{})})]})}));exports.Snackbar=v,exports.default=v;
83
+ `,y={error:e.jsx(n.default,{}),success:e.jsx(s.default,{}),info:e.jsx(l.default,{}),text:""},v=({message:r,color:i="none",type:n="info",action:s,isOpen:l,origin:c={},onClose:m=()=>{},onExited:u=()=>{},autoHideDuration:d=4e3,...v})=>(t.useEffect(()=>{const e=setTimeout(m,d);return()=>clearTimeout(e)},[d,m]),e.jsx(o.CSSTransition,{in:l,timeout:200,mountOnEnter:!0,unmountOnExit:!0,onExited:u,classNames:p,children:e.jsxs(f,{...v,$color:i,origin:c,role:"error"===n?"alert":void 0,"aria-live":"error"===n?"assertive":"polite",children:[e.jsx(g,{type:n,children:y[n]}),e.jsx(h,{children:r}),s&&s,e.jsx(x,{onClick:m,"aria-label":"Close",type:"button",children:e.jsx(a.default,{})})]})}));exports.Snackbar=v,exports.default=v;
@@ -50,4 +50,4 @@
50
50
  line-height: 1;
51
51
  `,p=s.default(o.default)`
52
52
  font-size: ${({size:e})=>`calc(${e/2}rem + 6px)`};
53
- `;exports.Stepper=({children:i,orientation:r="vertical",variant:o="solid",color:l="primary",colorShade:s="mainAlt",size:h=2,activeStep:m,ariaLabels:u={},...z})=>{const x=i.length,g="horizontal"===r,{id:f}=t.useNameAndId("stepper");return e.jsx(a,{isHorizontal:g,...z,role:"list","aria-label":u?.list??"Step progress",children:i.map(((i,r)=>{const t=m&&r<m,a=t||"solid"===o;return e.jsxs(n,{$color:l,$colorShade:s,$size:h,stepsNumber:x,isHorizontal:g,role:"listitem","aria-disabled":t?"true":void 0,"aria-current":m===r?"step":void 0,"aria-label":(void 0===m?`${u?.step??"Step %s"}`:`${u?.stepUpcoming??"Upcoming step, step %s"}`).replaceAll("%s",String(r+1)),children:[e.jsx(c,{children:e.jsx(d,{$color:l,$colorShade:s,isFilled:a,size:h,role:"img",children:t?e.jsx(p,{size:h,"aria-hidden":"true"}):e.jsx($,{as:"span",size:h,"aria-hidden":"true",children:r+1})})}),i]},`${f}-${r}`)}))})};
53
+ `;exports.Stepper=({children:i,orientation:r="vertical",variant:o="solid",color:l="primary",colorShade:s="mainAlt",size:h=2,activeStep:m,ariaLabels:u={},...z})=>{const x=i.length,g="horizontal"===r,{id:f}=t.useNameAndId("stepper");return e.jsx(a,{isHorizontal:g,...z,role:"list","aria-label":u?.list??"Step progress",children:i.map((i,r)=>{const t=m&&r<m,a=t||"solid"===o;return e.jsxs(n,{$color:l,$colorShade:s,$size:h,stepsNumber:x,isHorizontal:g,role:"listitem","aria-disabled":t?"true":void 0,"aria-current":m===r?"step":void 0,"aria-label":(void 0===m?`${u?.step??"Step %s"}`:`${u?.stepUpcoming??"Upcoming step, step %s"}`).replaceAll("%s",String(r+1)),children:[e.jsx(c,{children:e.jsx(d,{$color:l,$colorShade:s,isFilled:a,size:h,role:"img",children:t?e.jsx(p,{size:h,"aria-hidden":"true"}):e.jsx($,{as:"span",size:h,"aria-hidden":"true",children:r+1})})}),i]},`${f}-${r}`)})})};
@@ -60,4 +60,4 @@
60
60
 
61
61
  ${e&&`\n border: 2px solid ${s.fadedColor(i.default.colors[r][t],0)};\n background-color: ${s.fadedColor(i.default.colors[r][t],.5)};\n `}
62
62
  `)(e.isComplete,e.$color,e.$colorShade)};
63
- `,b=({step:o,isExpanded:i,isDisabled:t,isComplete:s,onClick:d,color:c,colorShade:u,title:p,children:h,closedChildren:b,...j})=>{const[y,C]=r.useState(i||!1),{id:k}=n.useNameAndId("stepper"),q=r.useCallback((()=>{t||C((e=>!e))}),[t]);r.useEffect((()=>{C(i||!1)}),[t,i]);const v=o||0===o,S=`${k}-header`,D=`${k}-content`;return e.jsxs(f,{children:[e.jsxs(m,{...j,id:S,onClick:e=>{t||(d||q)(e)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&!t&&(e.preventDefault(),q())},$isDisabled:t||!1,role:"button",tabIndex:0,"aria-expanded":y,"aria-controls":D,children:[v&&e.jsx(g,{isComplete:s||!1,isDisabled:t||!1,$color:c||"primary",$colorShade:u||"main",children:s?e.jsx(a.default,{}):e.jsx("span",{children:o})}),e.jsx(x,{children:p}),e.jsx($,{isExpanded:y})]}),e.jsx(l.Collapse,{isOpened:y,children:e.jsx("div",{id:D,role:"region","aria-labelledby":S,children:h})}),b&&b]})};exports.StepperAccordion=b,exports.default=b;
63
+ `,b=({step:o,isExpanded:i,isDisabled:t,isComplete:s,onClick:d,color:c,colorShade:u,title:p,children:h,closedChildren:b,...j})=>{const[y,C]=r.useState(i||!1),{id:k}=n.useNameAndId("stepper"),q=r.useCallback(()=>{t||C(e=>!e)},[t]);r.useEffect(()=>{C(i||!1)},[t,i]);const v=o||0===o,S=`${k}-header`,D=`${k}-content`;return e.jsxs(f,{children:[e.jsxs(m,{...j,id:S,onClick:e=>{t||(d||q)(e)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&!t&&(e.preventDefault(),q())},$isDisabled:t||!1,role:"button",tabIndex:0,"aria-expanded":y,"aria-controls":D,children:[v&&e.jsx(g,{isComplete:s||!1,isDisabled:t||!1,$color:c||"primary",$colorShade:u||"main",children:s?e.jsx(a.default,{}):e.jsx("span",{children:o})}),e.jsx(x,{children:p}),e.jsx($,{isExpanded:y})]}),e.jsx(l.Collapse,{isOpened:y,children:e.jsx("div",{id:D,role:"region","aria-labelledby":S,children:h})}),b&&b]})};exports.StepperAccordion=b,exports.default=b;
@@ -21,4 +21,4 @@
21
21
  border: 1px solid ${t.default.colors.grayscaleToned.light3};
22
22
  padding: 0.5rem 0.75rem;
23
23
  vertical-align: top;
24
- `,f=r=>e.jsx(p,{children:a.Children.toArray(r.map(((a,r)=>e.jsx(c,{scope:"col",children:a},r))))},"RowHead"),m=(a,r)=>r.length?a.map((a=>r?.map((r=>e.jsx(h,{children:a[r]},r))))):a.map((a=>Object.entries(a).map((([a,r])=>e.jsx(h,{children:r},a))))),x=r=>a.Children.toArray(r.map(((r,l)=>e.jsx(p,{children:a.Children.toArray(r)},l))));exports.default=({columns:a,data:r,ariaLabel:l})=>e.jsx(i,{children:e.jsxs(s,{"aria-label":l,children:[a&&e.jsx(n,{children:f(a)}),r&&e.jsx(u,{children:x(m(r,a??[]))})]})});
24
+ `,f=r=>e.jsx(p,{children:a.Children.toArray(r.map((a,r)=>e.jsx(c,{scope:"col",children:a},r)))},"RowHead"),m=(a,r)=>r.length?a.map(a=>r?.map(r=>e.jsx(h,{children:a[r]},r))):a.map(a=>Object.entries(a).map(([a,r])=>e.jsx(h,{children:r},a))),x=r=>a.Children.toArray(r.map((r,l)=>e.jsx(p,{children:a.Children.toArray(r)},l)));exports.default=({columns:a,data:r,ariaLabel:l})=>e.jsx(i,{children:e.jsxs(s,{"aria-label":l,children:[a&&e.jsx(n,{children:f(a)}),r&&e.jsx(u,{children:x(m(r,a??[]))})]})});
@@ -13,4 +13,4 @@
13
13
  ${({theme:e,isActive:r,$activeColor:t,$activeColorShade:o})=>!r&&`background-color: ${i.hexToRGB(e.colors[t][o],.1)};\n `}
14
14
  }
15
15
  }
16
- `,d=o.forwardRef((({label:r,index:t=-1,isActive:o=!1,onClick:i,activeColor:a="secondary",activeColorShade:s="mainAlt",isDisabled:d=!1,onKeyUp:c},u)=>e.jsx(l,{role:"presentation",children:e.jsx(n,{id:`tab-${t}`,role:"tab","aria-selected":o,"aria-controls":`tabpanel-${t}`,tabIndex:o?0:-1,isActive:o,onClick:e=>i&&i(e,t),$activeColor:a,$activeColorShade:s,isDisabled:d,variant:"flat",color:o?a:"neutral",colorShade:s,onKeyUp:e=>c&&c(e,t),ref:u,noRadius:!0,children:r})})));d.displayName="Tab",exports.default=d;
16
+ `,d=o.forwardRef(({label:r,index:t=-1,isActive:o=!1,onClick:i,activeColor:a="secondary",activeColorShade:s="mainAlt",isDisabled:d=!1,onKeyUp:c},u)=>e.jsx(l,{role:"presentation",children:e.jsx(n,{id:`tab-${t}`,role:"tab","aria-selected":o,"aria-controls":`tabpanel-${t}`,tabIndex:o?0:-1,isActive:o,onClick:e=>i&&i(e,t),$activeColor:a,$activeColorShade:s,isDisabled:d,variant:"flat",color:o?a:"neutral",colorShade:s,onKeyUp:e=>c&&c(e,t),ref:u,noRadius:!0,children:r})}));d.displayName="Tab",exports.default=d;
@@ -23,4 +23,4 @@
23
23
  display: flex;
24
24
  `,f=d.default.div`
25
25
  padding: 0.5rem 0;
26
- `,h=d.default.div``,b=({activeColor:t="secondary",activeColorShade:l="mainAlt",justify:o="end",activeIndex:n,initalActive:d,children:b=[],kbNavAutoOpen:x=!0,onTabClick:y,fullWidthBorder:j=!0,borderColor:m="light6",headline:v})=>{const g=r.Children.map(b,(e=>e)),[q,C]=r.useState((()=>d??g.findIndex((e=>!e.props.isDisabled)))),k=r.useRef([]),$=!!g[q]?.props?.children;r.useEffect((()=>{typeof n<"u"&&C(n)}),[n]);const A=(e,r)=>{if(e.preventDefault(),("Enter"===e.key||" "===e.key)&&!x&&C(r),"ArrowLeft"===e.key||"ArrowRight"===e.key){const i=x?q:r,t="ArrowRight"===e.key,l=t?i+1:0,s=t?g.length:i,o=g.slice(l,s);t||o.reverse();const n=o.findIndex((e=>!e.props.isDisabled));if(-1!==n){const e=t?i+(n+1):i-(n+1);x&&C(e),k.current[e].focus()}}};return e.jsx(a,{children:e.jsxs(s.UnmountClosed,{isOpened:!0,children:[e.jsxs(u,{fullWidthBorder:j,justify:v?"space-between":o,role:"tablist",borderColor:m,children:[v&&e.jsx(c,{children:v}),e.jsx(p,{children:g.map(((r,s)=>{if(!r)return null;const o=q===s;return e.jsx(i.default,{label:r.props.label,isDisabled:r.props.isDisabled,index:s,isActive:q===s,activeColor:t,activeColorShade:l,onClick:(e,i)=>{!o&&!r.props.isDisabled&&(r.props.onClick?.(e,i),y?.(e,i),((e,r)=>{e.preventDefault(),C(r)})(e,i))},onKeyUp:A,ref:e=>k.current[s]=e},s)}))})]}),$&&e.jsx(f,{children:g.map(((r,i)=>{const t=r.props.children&&q===i;return e.jsx(h,{id:`tabpanel-${i}`,role:"tabpanel","aria-labelledby":`tab-${i}`,"aria-hidden":t?"false":"true",children:t&&r.props.children},i)}))})]})})};exports.Tabs=b,exports.default=b;
26
+ `,h=d.default.div``,b=({activeColor:t="secondary",activeColorShade:l="mainAlt",justify:o="end",activeIndex:n,initalActive:d,children:b=[],kbNavAutoOpen:x=!0,onTabClick:y,fullWidthBorder:j=!0,borderColor:m="light6",headline:v})=>{const g=r.Children.map(b,e=>e),[q,C]=r.useState(()=>d??g.findIndex(e=>!e.props.isDisabled)),k=r.useRef([]),$=!!g[q]?.props?.children;r.useEffect(()=>{typeof n<"u"&&C(n)},[n]);const A=(e,r)=>{if(e.preventDefault(),("Enter"===e.key||" "===e.key)&&!x&&C(r),"ArrowLeft"===e.key||"ArrowRight"===e.key){const i=x?q:r,t="ArrowRight"===e.key,l=t?i+1:0,s=t?g.length:i,o=g.slice(l,s);t||o.reverse();const n=o.findIndex(e=>!e.props.isDisabled);if(-1!==n){const e=t?i+(n+1):i-(n+1);x&&C(e),k.current[e].focus()}}};return e.jsx(a,{children:e.jsxs(s.UnmountClosed,{isOpened:!0,children:[e.jsxs(u,{fullWidthBorder:j,justify:v?"space-between":o,role:"tablist",borderColor:m,children:[v&&e.jsx(c,{children:v}),e.jsx(p,{children:g.map((r,s)=>{if(!r)return null;const o=q===s;return e.jsx(i.default,{label:r.props.label,isDisabled:r.props.isDisabled,index:s,isActive:q===s,activeColor:t,activeColorShade:l,onClick:(e,i)=>{!o&&!r.props.isDisabled&&(r.props.onClick?.(e,i),y?.(e,i),((e,r)=>{e.preventDefault(),C(r)})(e,i))},onKeyUp:A,ref:e=>k.current[s]=e},s)})})]}),$&&e.jsx(f,{children:g.map((r,i)=>{const t=r.props.children&&q===i;return e.jsx(h,{id:`tabpanel-${i}`,role:"tabpanel","aria-labelledby":`tab-${i}`,"aria-hidden":t?"false":"true",children:t&&r.props.children},i)})})]})})};exports.Tabs=b,exports.default=b;
@@ -51,4 +51,4 @@
51
51
  `,b=i.default.span`
52
52
  display: block;
53
53
  color: ${({theme:e})=>e.colors.error.dark};
54
- `,g=({placeholder:l="",isDisabled:d=!1,centered:t=!1,hasError:i=!1,className:n,helperText:c,label:u="",resize:g=!0,name:y,errors:j,...k})=>{const[v,q]=r.useState(!1),T=!!k.value,{name:F,id:B}=o.useNameAndId("textarea",y),E=j?.map(((e,r)=>`${B}-error-${r}`))??[],z=[c?`${B}-helper`:null,...E].filter(Boolean).join(" ");return e.jsxs(h,{className:n,children:[e.jsxs(x,{isFocused:v,disabled:d,centered:t,hasError:i,hasPlaceholder:!!l,children:[e.jsx(f,{...k,id:B,name:F,"aria-label":u?void 0:F,"aria-describedby":z||void 0,"aria-invalid":!!j?.length,resize:g,onFocus:()=>q(!0),onBlur:()=>q(!1),disabled:d,tabIndex:d?-1:0,theme:a.default,placeholder:u&&!v?"":l}),k.suffix&&e.jsx(p,{children:k.suffix})]}),u&&e.jsx(s.Label,{htmlFor:B,isFocused:v,centered:t,hasError:i,hasValue:T,disabled:d,theme:a.default,children:e.jsxs(e.Fragment,{children:[u,e.jsx("span",{})]})}),(c||j)&&e.jsxs($,{centered:t,children:[c&&e.jsx(m,{id:`${B}-helper`,children:c}),j&&j.map(((r,l)=>e.jsx(b,{id:`${B}-error-${l}`,role:"alert","aria-live":"assertive",children:r},`${B}-error-${l}`)))]})]})};exports.TextArea=g,exports.default=g;
54
+ `,g=({placeholder:l="",isDisabled:d=!1,centered:t=!1,hasError:i=!1,className:n,helperText:c,label:u="",resize:g=!0,name:y,errors:j,...k})=>{const[v,q]=r.useState(!1),T=!!k.value,{name:F,id:B}=o.useNameAndId("textarea",y),E=j?.map((e,r)=>`${B}-error-${r}`)??[],z=[c?`${B}-helper`:null,...E].filter(Boolean).join(" ");return e.jsxs(h,{className:n,children:[e.jsxs(x,{isFocused:v,disabled:d,centered:t,hasError:i,hasPlaceholder:!!l,children:[e.jsx(f,{...k,id:B,name:F,"aria-label":u?void 0:F,"aria-describedby":z||void 0,"aria-invalid":!!j?.length,resize:g,onFocus:()=>q(!0),onBlur:()=>q(!1),disabled:d,tabIndex:d?-1:0,theme:a.default,placeholder:u&&!v?"":l}),k.suffix&&e.jsx(p,{children:k.suffix})]}),u&&e.jsx(s.Label,{htmlFor:B,isFocused:v,centered:t,hasError:i,hasValue:T,disabled:d,theme:a.default,children:e.jsxs(e.Fragment,{children:[u,e.jsx("span",{})]})}),(c||j)&&e.jsxs($,{centered:t,children:[c&&e.jsx(m,{id:`${B}-helper`,children:c}),j&&j.map((r,l)=>e.jsx(b,{id:`${B}-error-${l}`,role:"alert","aria-live":"assertive",children:r},`${B}-error-${l}`))]})]})};exports.TextArea=g,exports.default=g;
@@ -64,4 +64,4 @@
64
64
  `,f=d.default.span`
65
65
  display: block;
66
66
  color: ${({theme:e})=>e.colors.error.dark};
67
- `,$=({placeholder:l="",isDisabled:o=!1,centered:a=!1,hasError:d=!1,className:i,helperText:n,label:c="",onBlur:$=(()=>null),onFocus:g=(()=>null),forwardRef:y,suffix:j,name:v,errors:k,isAutoFocused:F=!1,...q})=>{const[T,w]=r.useState(!1),[B,E]=r.useState(void 0),A=r.useRef(null),N=!!q.value,S=k&&Array.isArray(k)&&k?.length>0,{name:_,id:z}=t.useNameAndId("text-input",v),I=k?.map(((e,r)=>`${z}-error-${r}`))??[],L=[n?`${z}-helper`:null,...I].filter(Boolean).join(" ");return r.useEffect((()=>{A.current&&E(A.current.offsetWidth)}),[A.current]),e.jsxs(u,{className:i,children:[e.jsxs(h,{isFocused:T,disabled:o,centered:a,hasError:d,hasPlaceholder:!!l,children:[e.jsx(m,{...q,id:z,name:_,"aria-labelledby":c?`${z}-label`:void 0,"aria-describedby":L||void 0,"aria-invalid":S||d,ref:y,onFocus:e=>{w(!0),g(e)},onBlur:e=>{w(!1),$(e)},disabled:o,placeholder:c&&!T?"":l,autoFocus:F}),j&&e.jsx(x,{ref:A,children:j})]}),c&&e.jsx(s.Label,{id:`${z}-label`,htmlFor:z,isFocused:T,centered:a,hasError:d,hasValue:N,disabled:o,suffixWidth:B,children:e.jsxs(e.Fragment,{children:[c,e.jsx("span",{})]})}),(n||S)&&e.jsxs(p,{centered:a,children:[n&&e.jsx(b,{id:`${z}-helper`,children:n}),S&&k.map(((r,l)=>e.jsx(f,{id:`${z}-error-${l}`,role:"alert","aria-live":"assertive",children:r},`${z}-error-${l}`)))]})]})};exports.TextField=$,exports.default=$;
67
+ `,$=({placeholder:l="",isDisabled:o=!1,centered:a=!1,hasError:d=!1,className:i,helperText:n,label:c="",onBlur:$=()=>null,onFocus:g=()=>null,forwardRef:y,suffix:j,name:v,errors:k,isAutoFocused:F=!1,...q})=>{const[T,w]=r.useState(!1),[B,E]=r.useState(void 0),A=r.useRef(null),N=!!q.value,S=k&&Array.isArray(k)&&k?.length>0,{name:_,id:z}=t.useNameAndId("text-input",v),I=k?.map((e,r)=>`${z}-error-${r}`)??[],L=[n?`${z}-helper`:null,...I].filter(Boolean).join(" ");return r.useEffect(()=>{A.current&&E(A.current.offsetWidth)},[A.current]),e.jsxs(u,{className:i,children:[e.jsxs(h,{isFocused:T,disabled:o,centered:a,hasError:d,hasPlaceholder:!!l,children:[e.jsx(m,{...q,id:z,name:_,"aria-labelledby":c?`${z}-label`:void 0,"aria-describedby":L||void 0,"aria-invalid":S||d,ref:y,onFocus:e=>{w(!0),g(e)},onBlur:e=>{w(!1),$(e)},disabled:o,placeholder:c&&!T?"":l,autoFocus:F}),j&&e.jsx(x,{ref:A,children:j})]}),c&&e.jsx(s.Label,{id:`${z}-label`,htmlFor:z,isFocused:T,centered:a,hasError:d,hasValue:N,disabled:o,suffixWidth:B,children:e.jsxs(e.Fragment,{children:[c,e.jsx("span",{})]})}),(n||S)&&e.jsxs(p,{centered:a,children:[n&&e.jsx(b,{id:`${z}-helper`,children:n}),S&&k.map((r,l)=>e.jsx(f,{id:`${z}-error-${l}`,role:"alert","aria-live":"assertive",children:r},`${z}-error-${l}`))]})]})};exports.TextField=$,exports.default=$;
@@ -6,4 +6,4 @@
6
6
  flex-wrap: wrap;
7
7
  margin: 0;
8
8
  padding: 0;
9
- `,s=(e,i)=>Array.isArray(i)?!!i.find((i=>i.getTime()===e.getTime())):i?.getTime()===e.getTime(),a=({timeSlots:e,onTimeSlotClick:r,selectedTimes:a,disabledTimes:o,...d})=>i.jsx(l,{role:"listbox","aria-multiselectable":"true",...d,children:e.map((({text:e,date:l})=>{const n=s(l,a),m=s(l,o),u=d.color||"primary";return i.jsx(t.Chip,{role:"option",component:"li","aria-selected":n,"aria-disabled":m,"data-selected":n,"data-disabled":m,variant:n?"solid":"outline",isDisabled:m,color:n?u:"neutralLight",onClick:()=>!n&&!m&&r(l),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&!n&&!m&&(e.preventDefault(),r(l))},children:e},l.getTime())}))});exports.TimePicker=a,exports.default=a;
9
+ `,s=(e,i)=>Array.isArray(i)?!!i.find(i=>i.getTime()===e.getTime()):i?.getTime()===e.getTime(),a=({timeSlots:e,onTimeSlotClick:r,selectedTimes:a,disabledTimes:o,...d})=>i.jsx(l,{role:"listbox","aria-multiselectable":"true",...d,children:e.map(({text:e,date:l})=>{const n=s(l,a),m=s(l,o),u=d.color||"primary";return i.jsx(t.Chip,{role:"option",component:"li","aria-selected":n,"aria-disabled":m,"data-selected":n,"data-disabled":m,variant:n?"solid":"outline",isDisabled:m,color:n?u:"neutralLight",onClick:()=>!n&&!m&&r(l),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&!n&&!m&&(e.preventDefault(),r(l))},children:e},l.getTime())})});exports.TimePicker=a,exports.default=a;
@@ -1 +1 @@
1
- "use strict";exports.generateTimeSlots=e=>{const t=new Date("2020/02/02"),r=new Date(t);return Array.from({length:e},((e,t)=>{const n=new Date(r.setTime(r.getDate()+(e=>60*e*60*1e3)(t)));return{date:n,text:t<9?`0${t+1}:00`:`${t+1}:00`}}))};
1
+ "use strict";exports.generateTimeSlots=e=>{const t=new Date("2020/02/02"),r=new Date(t);return Array.from({length:e},(e,t)=>{const n=new Date(r.setTime(r.getDate()+(e=>60*e*60*1e3)(t)));return{date:n,text:t<9?`0${t+1}:00`:`${t+1}:00`}})};
@@ -34,4 +34,4 @@
34
34
  ${e=>"RIGHT"===e.active&&"\n left: calc(50%);\n "}
35
35
 
36
36
  ${e=>!e.active&&"display: none;"}
37
- `;exports.Toggle=({onChange:t,color:r,colorShade:i="mainAlt",ariaLabel:n,...s})=>{const[d,h]=o.useState(s.active),u=o.useRef(null),f=o.useRef(null);o.useEffect((()=>{h(s.active)}),[s.active]);const p=e=>{h(e),t(e)},g=(e,o)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),p(o)),"ArrowRight"===e.key&&"LEFT"===o?(p("RIGHT"),f.current?.focus()):"ArrowLeft"===e.key&&"RIGHT"===o&&(p("LEFT"),u.current?.focus())};return e.jsxs(l,{role:"radiogroup","aria-label":n??"Toggle options",children:[e.jsx(c,{$color:r,$colorShade:i,active:d}),e.jsx(a,{ref:u,role:"radio","aria-checked":"LEFT"===d,tabIndex:"LEFT"===d?-1:0,onClick:()=>p("LEFT"),onKeyDown:e=>g(e,"LEFT"),isActive:"LEFT"===d,children:s.left}),e.jsx(a,{ref:f,role:"radio","aria-checked":"RIGHT"===d,tabIndex:"RIGHT"===d?-1:0,onClick:()=>p("RIGHT"),onKeyDown:e=>g(e,"RIGHT"),isActive:"RIGHT"===d,children:s.right})]})};
37
+ `;exports.Toggle=({onChange:t,color:r,colorShade:i="mainAlt",ariaLabel:n,...s})=>{const[d,h]=o.useState(s.active),u=o.useRef(null),f=o.useRef(null);o.useEffect(()=>{h(s.active)},[s.active]);const p=e=>{h(e),t(e)},g=(e,o)=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),p(o)),"ArrowRight"===e.key&&"LEFT"===o?(p("RIGHT"),f.current?.focus()):"ArrowLeft"===e.key&&"RIGHT"===o&&(p("LEFT"),u.current?.focus())};return e.jsxs(l,{role:"radiogroup","aria-label":n??"Toggle options",children:[e.jsx(c,{$color:r,$colorShade:i,active:d}),e.jsx(a,{ref:u,role:"radio","aria-checked":"LEFT"===d,tabIndex:"LEFT"===d?-1:0,onClick:()=>p("LEFT"),onKeyDown:e=>g(e,"LEFT"),isActive:"LEFT"===d,children:s.left}),e.jsx(a,{ref:f,role:"radio","aria-checked":"RIGHT"===d,tabIndex:"RIGHT"===d?-1:0,onClick:()=>p("RIGHT"),onKeyDown:e=>g(e,"RIGHT"),isActive:"RIGHT"===d,children:s.right})]})};
@@ -1 +1 @@
1
- "use strict";var t=require("react");exports.useDynamicScript=e=>(t.useEffect((()=>{const t=`dynamic-script-${e}`;if(!document.getElementById(t)){const c=document.createElement("script");c.setAttribute("id",t),c.setAttribute("src",e),document.body.appendChild(c)}}),[e]),null);
1
+ "use strict";var t=require("react");exports.useDynamicScript=e=>(t.useEffect(()=>{const t=`dynamic-script-${e}`;if(!document.getElementById(t)){const c=document.createElement("script");c.setAttribute("id",t),c.setAttribute("src",e),document.body.appendChild(c)}},[e]),null);
@@ -1 +1 @@
1
- "use strict";exports.fadedColor=(e,t)=>{if(!/^#?([0-9A-F]{3}){1,2}$/i.test(e))return e;const r=e.match(e.length<=4?/\w/g:/\w\w/g);if(r){const e=r.map((e=>parseInt(e.length<2?`${e}${e}`:e,16)));if(e.every(Number.isInteger)){const[r,n,s]=e;return`rgba(${r}, ${n}, ${s}, ${t||1})`}}return e},exports.generateNameHash=e=>`${e?`${e}-`:""}${Math.random().toString(36).slice(2,12)}`;
1
+ "use strict";exports.fadedColor=(e,t)=>{if(!/^#?([0-9A-F]{3}){1,2}$/i.test(e))return e;const r=e.match(e.length<=4?/\w/g:/\w\w/g);if(r){const e=r.map(e=>parseInt(e.length<2?`${e}${e}`:e,16));if(e.every(Number.isInteger)){const[r,n,s]=e;return`rgba(${r}, ${n}, ${s}, ${t||1})`}}return e},exports.generateNameHash=e=>`${e?`${e}-`:""}${Math.random().toString(36).slice(2,12)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvdbil/components",
3
- "version": "17.12.5",
3
+ "version": "17.12.7",
4
4
  "sideEffects": false,
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -48,10 +48,9 @@
48
48
  ],
49
49
  "resolutions": {
50
50
  "**/@types/react": "^18.3.12",
51
- "**/minimatch": "^9.0.7",
52
- "**/flatted": "^3.4.2",
53
- "**/serialize-javascript": "^7.0.3",
54
- "**/svgo": "^3.3.3"
51
+ "**/serialize-javascript": "^7.0.6",
52
+ "**/js-yaml": "^4.2.0",
53
+ "**/uuid": "^11.1.1"
55
54
  },
56
55
  "devDependencies": {
57
56
  "@babel/core": "^7.11.6",
@@ -74,7 +73,7 @@
74
73
  "@testing-library/react-hooks": "^8.0.1",
75
74
  "@testing-library/user-event": "^14.5.2",
76
75
  "@types/jest": "^30.0.0",
77
- "@types/node": "24.12.2",
76
+ "@types/node": "24.13.2",
78
77
  "@types/react": "^18.3.8",
79
78
  "@types/react-collapse": "^5.0.4",
80
79
  "@types/react-dom": "^18.3.0",
package/package.json.tmp CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvdbil/components",
3
- "version": "17.12.5",
3
+ "version": "17.12.7",
4
4
  "sideEffects": false,
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -47,10 +47,9 @@
47
47
  ],
48
48
  "resolutions": {
49
49
  "**/@types/react": "^18.3.12",
50
- "**/minimatch": "^9.0.7",
51
- "**/flatted": "^3.4.2",
52
- "**/serialize-javascript": "^7.0.3",
53
- "**/svgo": "^3.3.3"
50
+ "**/serialize-javascript": "^7.0.6",
51
+ "**/js-yaml": "^4.2.0",
52
+ "**/uuid": "^11.1.1"
54
53
  },
55
54
  "devDependencies": {
56
55
  "@babel/core": "^7.11.6",
@@ -73,7 +72,7 @@
73
72
  "@testing-library/react-hooks": "^8.0.1",
74
73
  "@testing-library/user-event": "^14.5.2",
75
74
  "@types/jest": "^30.0.0",
76
- "@types/node": "24.12.2",
75
+ "@types/node": "24.13.2",
77
76
  "@types/react": "^18.3.8",
78
77
  "@types/react-collapse": "^5.0.4",
79
78
  "@types/react-dom": "^18.3.0",
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  type Variants = Record<string, string | Record<string, string>>;
2
3
  interface ColorCardProps {
3
4
  colorName: string;
4
5
  variants: Variants;
5
6
  }
6
- declare const ColorCard: ({ colorName, variants }: ColorCardProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const ColorCard: ({ colorName, variants }: ColorCardProps) => React.JSX.Element;
7
8
  export default ColorCard;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import { ComponentType, ReactNode } from 'react';
2
3
  export interface ElevationProps {
3
4
  value: string;
4
5
  children: ReactNode;
5
6
  as?: ComponentType | keyof JSX.IntrinsicElements;
6
7
  }
7
- export declare const ElevationCard: ({ children, value, as, }: ElevationProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const ElevationCard: ({ children, value, as, }: ElevationProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  interface IItem {
3
3
  title: string;
4
4
  text: ReactNode;
@@ -6,5 +6,5 @@ interface IItem {
6
6
  export interface AccordionProps {
7
7
  items: IItem[];
8
8
  }
9
- export declare const Accordion: ({ items, ...props }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Accordion: ({ items, ...props }: AccordionProps) => React.JSX.Element;
10
10
  export default Accordion;
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  export interface BadgeProps {
2
3
  notificationAmount?: number;
3
4
  withNumber?: boolean;
4
5
  ariaLabel?: string;
5
6
  }
6
- export declare const Badge: ({ notificationAmount, withNumber, ariaLabel, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export declare const Badge: ({ notificationAmount, withNumber, ariaLabel, ...rest }: BadgeProps) => React.JSX.Element | null;
7
8
  export default Badge;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { BreadcrumbLink } from '.';
3
3
  interface Props {
4
4
  link: BreadcrumbLink;
@@ -6,5 +6,5 @@ interface Props {
6
6
  isLast: boolean;
7
7
  onlyLastTruncated: boolean;
8
8
  }
9
- declare const BreadcrumbsItem: ({ link, separator, isLast, onlyLastTruncated, }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ declare const BreadcrumbsItem: ({ link, separator, isLast, onlyLastTruncated, }: Props) => React.JSX.Element;
10
10
  export default BreadcrumbsItem;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export interface BreadcrumbLink {
3
3
  component?: ReactNode;
4
4
  prefixIcon?: ReactNode;
@@ -8,5 +8,5 @@ export interface Props {
8
8
  separator?: ReactNode;
9
9
  onlyLastTruncated?: boolean;
10
10
  }
11
- declare const Breadcrumbs: ({ links, separator, onlyLastTruncated, }: Props) => import("react/jsx-runtime").JSX.Element;
11
+ declare const Breadcrumbs: ({ links, separator, onlyLastTruncated, }: Props) => React.JSX.Element;
12
12
  export default Breadcrumbs;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ReactNode } from 'react';
2
3
  import { Color, ColorShade } from '../../Types';
3
4
  export interface CardProps {
@@ -9,5 +10,5 @@ export interface CardProps {
9
10
  lineBorder?: boolean;
10
11
  as?: keyof JSX.IntrinsicElements;
11
12
  }
12
- export declare const Card: ({ children, topBorder, topBorderColor, topBorderColorShade, noFrame, lineBorder, as: element, }: CardProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const Card: ({ children, topBorder, topBorderColor, topBorderColorShade, noFrame, lineBorder, as: element, }: CardProps) => React.JSX.Element;
13
14
  export default Card;
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
1
+ import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
2
2
  import { CheckboxSize, Color, ColorShade } from '../../Types';
3
3
  type ComponentPropsWithoutSize = Omit<ComponentPropsWithoutRef<'input'>, 'size'>;
4
4
  export interface CheckBoxProps extends ComponentPropsWithoutSize {
@@ -11,5 +11,5 @@ export interface CheckBoxProps extends ComponentPropsWithoutSize {
11
11
  hasError?: boolean;
12
12
  label?: ReactNode;
13
13
  }
14
- export declare const CheckBox: ({ name: nameProp, isDisabled, size, checked, color, colorShade, hasError, label, ...rest }: CheckBoxProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const CheckBox: ({ name: nameProp, isDisabled, size, checked, color, colorShade, hasError, label, ...rest }: CheckBoxProps) => React.JSX.Element;
15
15
  export default CheckBox;
@@ -29,5 +29,5 @@ export interface ItemProps {
29
29
  onClick?: (e: MouseEvent) => void;
30
30
  fullWidth?: boolean;
31
31
  }
32
- export declare const Chip: ({ color, children, component, isDisabled, onClick, size, prefix, onDelete, variant, role, ...props }: ChipProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const Chip: ({ color, children, component, isDisabled, onClick, size, prefix, onDelete, variant, role, ...props }: ChipProps) => React.JSX.Element;
33
33
  export default Chip;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { PropsBase } from 'react-day-picker';
2
3
  import { Locale } from '../../Types';
3
4
  import { Color, ColorShade } from '../../Types';
@@ -7,5 +8,5 @@ export interface DayPickerProps extends Omit<PropsBase, 'locale'> {
7
8
  selectedDay?: Date;
8
9
  colorShade?: ColorShade;
9
10
  }
10
- export declare const DayPicker: ({ locale, color, colorShade, selectedDay, ...props }: DayPickerProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const DayPicker: ({ locale, color, colorShade, selectedDay, ...props }: DayPickerProps) => React.JSX.Element;
11
12
  export default DayPicker;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ReactNode } from 'react';
2
3
  export interface DialogProps {
3
4
  title?: ReactNode;
@@ -8,5 +9,5 @@ export interface DialogProps {
8
9
  withCloseIcon?: boolean;
9
10
  onClose(): void;
10
11
  }
11
- export declare const Dialog: ({ isOpen, title, children, actions, onClose, withPortal, withCloseIcon, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Dialog: ({ isOpen, title, children, actions, onClose, withPortal, withCloseIcon, ...props }: DialogProps) => React.JSX.Element;
12
13
  export default Dialog;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { Color } from '../../Types';
2
3
  import { TextFieldProps } from '../Textfield';
3
4
  export interface EditRowProps<T> {
@@ -18,5 +19,5 @@ export interface EditRowProps<T> {
18
19
  formatterFunc?(value: string): string;
19
20
  isInitialEditing?: boolean;
20
21
  }
21
- declare const EditRow: <T extends string | string[]>({ value: initialValue, label, onChange, onEdit, options, inputProps, isClearable, isEditionDisabled, editText, saveText, cancelText, noValueText, formatterFunc, isSingleSelect, color, isInitialEditing, }: EditRowProps<T>) => import("react/jsx-runtime").JSX.Element;
22
+ declare const EditRow: <T extends string | string[]>({ value: initialValue, label, onChange, onEdit, options, inputProps, isClearable, isEditionDisabled, editText, saveText, cancelText, noValueText, formatterFunc, isSingleSelect, color, isInitialEditing, }: EditRowProps<T>) => React.JSX.Element;
22
23
  export default EditRow;
@@ -1,8 +1,9 @@
1
+ import React from 'react';
1
2
  import { ReactNode, CSSProperties } from 'react';
2
3
  export interface ErrorMessageProps {
3
4
  centered?: boolean;
4
5
  style?: CSSProperties;
5
6
  children: ReactNode;
6
7
  }
7
- export declare const ErrorMessage: ({ children, centered, ...props }: ErrorMessageProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const ErrorMessage: ({ children, centered, ...props }: ErrorMessageProps) => React.JSX.Element;
8
9
  export default ErrorMessage;
@@ -1,4 +1,4 @@
1
- export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
1
+ export declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "disabled" | "height" | "hasError" | "isFocused" | "hasValue" | "centered" | "suffixWidth"> & {
2
2
  isFocused: boolean;
3
3
  hasValue: boolean;
4
4
  disabled: boolean;
@@ -6,4 +6,12 @@ export declare const Label: import("styled-components/dist/types").IStyledCompon
6
6
  hasError: boolean;
7
7
  height?: number;
8
8
  suffixWidth?: number;
9
- }>> & string;
9
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "disabled" | "height" | "hasError" | "isFocused" | "hasValue" | "centered" | "suffixWidth"> & {
10
+ isFocused: boolean;
11
+ hasValue: boolean;
12
+ disabled: boolean;
13
+ centered?: boolean;
14
+ hasError: boolean;
15
+ height?: number;
16
+ suffixWidth?: number;
17
+ }, never>>> & string;
@@ -1,4 +1,4 @@
1
- import { HTMLAttributes, CSSProperties } from 'react';
1
+ import React, { HTMLAttributes, CSSProperties } from 'react';
2
2
  import { SCREEN_SIZE } from '../../shared/media-queries';
3
3
  /**
4
4
  * CSSPropertyWithResponsive is a type that allows a prop to be either:
@@ -24,5 +24,5 @@ export interface FlexProps {
24
24
  inlineChildren?: boolean;
25
25
  }
26
26
  export type Props = FlexProps & HTMLAttributes<HTMLDivElement>;
27
- declare const Flex: ({ direction, justify, align, gap, rowGap, wrap, basis, grow, shrink, inlineChildren, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
27
+ declare const Flex: ({ direction, justify, align, gap, rowGap, wrap, basis, grow, shrink, inlineChildren, ...props }: Props) => React.JSX.Element;
28
28
  export default Flex;
@@ -5,4 +5,4 @@ export interface FocusTrapProps {
5
5
  autoFocusOnOpen?: 'firstElem' | 'firstInput' | 'none';
6
6
  restoreFocusOnClose?: boolean;
7
7
  }
8
- export declare const FocusTrap: ({ children, pause, autoFocusOnOpen, restoreFocusOnClose, }: FocusTrapProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const FocusTrap: ({ children, pause, autoFocusOnOpen, restoreFocusOnClose, }: FocusTrapProps) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ReactNode } from 'react';
2
3
  import { CSSProperties } from 'styled-components';
3
4
  type Justify = Exclude<CSSProperties['justifyContent'], number>;
@@ -49,5 +50,5 @@ export interface HeroProps {
49
50
  elementShadow?: boolean;
50
51
  childrenNoWrapper?: boolean;
51
52
  }
52
- declare const Hero: ({ imageProps, imageElement, videoProps, children, align, direction, justify, contentMaxWidth, heading, headingColor, subheading, button, dynamicGutter, isLoading, contentCentered, containerStyle, elementShadow, childrenNoWrapper, }: HeroProps) => import("react/jsx-runtime").JSX.Element;
53
+ declare const Hero: ({ imageProps, imageElement, videoProps, children, align, direction, justify, contentMaxWidth, heading, headingColor, subheading, button, dynamicGutter, isLoading, contentCentered, containerStyle, elementShadow, childrenNoWrapper, }: HeroProps) => React.JSX.Element;
53
54
  export default Hero;