@worknice/whiteboard 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (564) hide show
  1. package/dist/controls/Action.d.ts +7 -0
  2. package/dist/controls/Action.js +81 -0
  3. package/dist/controls/Button.d.ts +22 -0
  4. package/dist/controls/Button.js +61 -0
  5. package/dist/controls/Button.module.js +9 -0
  6. package/dist/controls/ButtonCard.d.ts +7 -0
  7. package/dist/controls/ButtonCard.js +43 -0
  8. package/dist/controls/ButtonCard.module.js +7 -0
  9. package/dist/controls/ButtonCard_module.css +31 -0
  10. package/dist/controls/ButtonLink.d.ts +15 -0
  11. package/dist/controls/ButtonLink.js +48 -0
  12. package/dist/controls/ButtonLink.module.js +9 -0
  13. package/dist/controls/ButtonLink_module.css +68 -0
  14. package/dist/controls/Button_module.css +86 -0
  15. package/dist/controls/Disclosure.d.ts +7 -0
  16. package/dist/controls/Disclosure.js +27 -0
  17. package/dist/controls/Link.d.ts +14 -0
  18. package/dist/controls/Link.js +35 -0
  19. package/dist/controls/Link.module.js +5 -0
  20. package/dist/controls/LinkCard.d.ts +7 -0
  21. package/dist/controls/LinkCard.js +26 -0
  22. package/dist/controls/LinkCard.module.js +6 -0
  23. package/dist/controls/LinkCard_module.css +22 -0
  24. package/dist/controls/Link_module.css +19 -0
  25. package/dist/controls/MenuButton.d.ts +31 -0
  26. package/dist/controls/MenuButton.js +216 -0
  27. package/dist/controls/MenuButton.module.js +10 -0
  28. package/dist/controls/MenuButton_module.css +78 -0
  29. package/dist/controls/PageTabSet.d.ts +11 -0
  30. package/dist/controls/PageTabSet.js +26 -0
  31. package/dist/controls/PageTabSet.module.js +7 -0
  32. package/dist/controls/PageTabSet_module.css +32 -0
  33. package/dist/controls/Sortable.d.ts +11 -0
  34. package/dist/controls/Sortable.js +27 -0
  35. package/dist/controls/SortableItem.d.ts +8 -0
  36. package/dist/controls/SortableItem.js +42 -0
  37. package/dist/controls/SortableItem.module.js +9 -0
  38. package/dist/controls/SortableItem_module.css +46 -0
  39. package/dist/controls/TabSet.d.ts +12 -0
  40. package/dist/controls/TabSet.js +26 -0
  41. package/dist/controls/TabSet.module.js +7 -0
  42. package/dist/controls/TabSetLink.d.ts +12 -0
  43. package/dist/controls/TabSetLink.js +24 -0
  44. package/dist/controls/TabSetLink.module.js +7 -0
  45. package/dist/controls/TabSetLink_module.css +41 -0
  46. package/dist/controls/TabSet_module.css +39 -0
  47. package/dist/email/EmailBodyText.d.ts +5 -0
  48. package/dist/email/EmailBodyText.js +12 -0
  49. package/dist/email/EmailButton.d.ts +6 -0
  50. package/dist/email/EmailButton.js +19 -0
  51. package/dist/email/EmailFooterText.d.ts +5 -0
  52. package/dist/email/EmailFooterText.js +12 -0
  53. package/dist/email/EmailLayout.d.ts +10 -0
  54. package/dist/email/EmailLayout.js +41 -0
  55. package/dist/fields/BooleanField.d.ts +15 -0
  56. package/dist/fields/BooleanField.js +19 -0
  57. package/dist/fields/ColorPickerField.d.ts +18 -0
  58. package/dist/fields/ColorPickerField.js +18 -0
  59. package/dist/fields/DateField.d.ts +18 -0
  60. package/dist/fields/DateField.js +22 -0
  61. package/dist/fields/DateTimeField.d.ts +16 -0
  62. package/dist/fields/DateTimeField.js +20 -0
  63. package/dist/fields/FileField.d.ts +12 -0
  64. package/dist/fields/FileField.js +18 -0
  65. package/dist/fields/ListBoxField.d.ts +21 -0
  66. package/dist/fields/ListBoxField.js +24 -0
  67. package/dist/fields/MarkdownField.d.ts +17 -0
  68. package/dist/fields/MarkdownField.js +36 -0
  69. package/dist/fields/NumberField.d.ts +12 -0
  70. package/dist/fields/NumberField.js +23 -0
  71. package/dist/fields/PasswordField.d.ts +15 -0
  72. package/dist/fields/PasswordField.js +63 -0
  73. package/dist/fields/PasswordField.module.js +14 -0
  74. package/dist/fields/PasswordField_module.css +47 -0
  75. package/dist/fields/RadioSetField.d.ts +22 -0
  76. package/dist/fields/RadioSetField.js +42 -0
  77. package/dist/fields/RadioSetField.module.js +6 -0
  78. package/dist/fields/RadioSetField_module.css +15 -0
  79. package/dist/fields/SelectField.d.ts +20 -0
  80. package/dist/fields/SelectField.js +24 -0
  81. package/dist/fields/SimpleRadioSetField.d.ts +15 -0
  82. package/dist/fields/SimpleRadioSetField.js +13 -0
  83. package/dist/fields/SingleSelectComboboxField.d.ts +25 -0
  84. package/dist/fields/SingleSelectComboboxField.js +28 -0
  85. package/dist/fields/StringField.d.ts +12 -0
  86. package/dist/fields/StringField.js +25 -0
  87. package/dist/fields/TextField.d.ts +17 -0
  88. package/dist/fields/TextField.js +21 -0
  89. package/dist/fields/TimeField.d.ts +12 -0
  90. package/dist/fields/TimeField.js +21 -0
  91. package/dist/forms/FormButtonSet.d.ts +14 -0
  92. package/dist/forms/FormButtonSet.js +31 -0
  93. package/dist/forms/FormButtonSet.module.js +5 -0
  94. package/dist/forms/FormButtonSet_module.css +12 -0
  95. package/dist/forms/FormError.d.ts +6 -0
  96. package/dist/forms/FormError.js +10 -0
  97. package/dist/forms/FormErrorList.d.ts +8 -0
  98. package/dist/forms/FormErrorList.js +22 -0
  99. package/dist/forms/FormErrorList.module.js +6 -0
  100. package/dist/forms/FormErrorList_module.css +12 -0
  101. package/dist/forms/FormStatusIndicator.d.ts +8 -0
  102. package/dist/forms/FormStatusIndicator.js +40 -0
  103. package/dist/forms/FormStatusIndicator.module.js +8 -0
  104. package/dist/forms/FormStatusIndicator_module.css +18 -0
  105. package/dist/forms/RegularField.d.ts +14 -0
  106. package/dist/forms/RegularField.js +47 -0
  107. package/dist/forms/RegularField.module.js +14 -0
  108. package/dist/forms/RegularField_module.css +47 -0
  109. package/dist/forms/ToggleField.d.ts +12 -0
  110. package/dist/forms/ToggleField.js +38 -0
  111. package/dist/forms/ToggleField.module.js +8 -0
  112. package/dist/forms/ToggleField_module.css +25 -0
  113. package/dist/forms/_types.d.ts +17 -0
  114. package/dist/forms/_types.js +0 -0
  115. package/dist/forms/useForm.d.ts +54 -0
  116. package/dist/forms/useForm.js +107 -0
  117. package/dist/hud/ChevronIcon.d.ts +2 -0
  118. package/dist/hud/ChevronIcon.js +13 -0
  119. package/dist/hud/NavItem.d.ts +10 -0
  120. package/dist/hud/NavItem.js +27 -0
  121. package/dist/hud/NavItem.module.js +7 -0
  122. package/dist/hud/NavItemChild.d.ts +8 -0
  123. package/dist/hud/NavItemChild.js +20 -0
  124. package/dist/hud/NavItemChild.module.js +6 -0
  125. package/dist/hud/NavItemChild_module.css +20 -0
  126. package/dist/hud/NavItem_module.css +26 -0
  127. package/dist/hud/NavSection.d.ts +12 -0
  128. package/dist/hud/NavSection.js +48 -0
  129. package/dist/hud/NavSection.module.js +11 -0
  130. package/dist/hud/NavSection_module.css +44 -0
  131. package/dist/hud/NavTitle.d.ts +8 -0
  132. package/dist/hud/NavTitle.js +43 -0
  133. package/dist/hud/NavTitle.module.js +6 -0
  134. package/dist/hud/NavTitle_module.css +30 -0
  135. package/dist/hud/SidebarIcon.d.ts +2 -0
  136. package/dist/hud/SidebarIcon.js +13 -0
  137. package/dist/hud/ToolbarButton.d.ts +12 -0
  138. package/dist/hud/ToolbarButton.js +23 -0
  139. package/dist/hud/ToolbarButton.module.js +6 -0
  140. package/dist/hud/ToolbarButton_module.css +24 -0
  141. package/dist/icons/AppsIcon.d.ts +3 -0
  142. package/dist/icons/AppsIcon.js +11 -0
  143. package/dist/icons/ArchiveIcon.d.ts +3 -0
  144. package/dist/icons/ArchiveIcon.js +11 -0
  145. package/dist/icons/ArrowLeftIcon.d.ts +3 -0
  146. package/dist/icons/ArrowLeftIcon.js +11 -0
  147. package/dist/icons/ArrowRightIcon.d.ts +3 -0
  148. package/dist/icons/ArrowRightIcon.js +11 -0
  149. package/dist/icons/AssignIcon.d.ts +3 -0
  150. package/dist/icons/AssignIcon.js +13 -0
  151. package/dist/icons/BankAccountIcon.d.ts +3 -0
  152. package/dist/icons/BankAccountIcon.js +11 -0
  153. package/dist/icons/CalendarIcon.d.ts +3 -0
  154. package/dist/icons/CalendarIcon.js +11 -0
  155. package/dist/icons/CancelIcon.d.ts +3 -0
  156. package/dist/icons/CancelIcon.js +11 -0
  157. package/dist/icons/CaratDownIcon.d.ts +3 -0
  158. package/dist/icons/CaratDownIcon.js +11 -0
  159. package/dist/icons/CaratLeftIcon.d.ts +3 -0
  160. package/dist/icons/CaratLeftIcon.js +11 -0
  161. package/dist/icons/CaratRightIcon.d.ts +3 -0
  162. package/dist/icons/CaratRightIcon.js +11 -0
  163. package/dist/icons/CaratUpIcon.d.ts +3 -0
  164. package/dist/icons/CaratUpIcon.js +11 -0
  165. package/dist/icons/CheckmarkIcon.d.ts +3 -0
  166. package/dist/icons/CheckmarkIcon.js +11 -0
  167. package/dist/icons/ChevronDownIcon.d.ts +3 -0
  168. package/dist/icons/ChevronDownIcon.js +11 -0
  169. package/dist/icons/ChevronLeftIcon.d.ts +3 -0
  170. package/dist/icons/ChevronLeftIcon.js +11 -0
  171. package/dist/icons/ChevronRightIcon.d.ts +3 -0
  172. package/dist/icons/ChevronRightIcon.js +11 -0
  173. package/dist/icons/ChevronUpIcon.d.ts +3 -0
  174. package/dist/icons/ChevronUpIcon.js +11 -0
  175. package/dist/icons/CloseIcon.d.ts +3 -0
  176. package/dist/icons/CloseIcon.js +11 -0
  177. package/dist/icons/CopyIcon.d.ts +3 -0
  178. package/dist/icons/CopyIcon.js +14 -0
  179. package/dist/icons/DashIcon.d.ts +3 -0
  180. package/dist/icons/DashIcon.js +11 -0
  181. package/dist/icons/DeleteIcon.d.ts +3 -0
  182. package/dist/icons/DeleteIcon.js +11 -0
  183. package/dist/icons/EditIcon.d.ts +3 -0
  184. package/dist/icons/EditIcon.js +11 -0
  185. package/dist/icons/EmailIcon.d.ts +3 -0
  186. package/dist/icons/EmailIcon.js +11 -0
  187. package/dist/icons/EmergencyContactIcon.d.ts +3 -0
  188. package/dist/icons/EmergencyContactIcon.js +11 -0
  189. package/dist/icons/ExternalIcon.d.ts +3 -0
  190. package/dist/icons/ExternalIcon.js +14 -0
  191. package/dist/icons/GripLinesIcon.d.ts +3 -0
  192. package/dist/icons/GripLinesIcon.js +11 -0
  193. package/dist/icons/HelpIcon.d.ts +3 -0
  194. package/dist/icons/HelpIcon.js +11 -0
  195. package/dist/icons/HiddenIcon.d.ts +3 -0
  196. package/dist/icons/HiddenIcon.js +11 -0
  197. package/dist/icons/InboxIcon.d.ts +3 -0
  198. package/dist/icons/InboxIcon.js +11 -0
  199. package/dist/icons/InsightsIcon.d.ts +3 -0
  200. package/dist/icons/InsightsIcon.js +11 -0
  201. package/dist/icons/JobIcon.d.ts +3 -0
  202. package/dist/icons/JobIcon.js +11 -0
  203. package/dist/icons/LeaveIcon.d.ts +3 -0
  204. package/dist/icons/LeaveIcon.js +11 -0
  205. package/dist/icons/LoadingIcon.d.ts +4 -0
  206. package/dist/icons/LoadingIcon.js +22 -0
  207. package/dist/icons/LogoutIcon.d.ts +3 -0
  208. package/dist/icons/LogoutIcon.js +11 -0
  209. package/dist/icons/MicrosoftIcon.d.ts +3 -0
  210. package/dist/icons/MicrosoftIcon.js +26 -0
  211. package/dist/icons/MinusIcon.d.ts +3 -0
  212. package/dist/icons/MinusIcon.js +11 -0
  213. package/dist/icons/OverflowIcon.d.ts +3 -0
  214. package/dist/icons/OverflowIcon.js +11 -0
  215. package/dist/icons/PaperworkIcon.d.ts +3 -0
  216. package/dist/icons/PaperworkIcon.js +11 -0
  217. package/dist/icons/PeopleIcon.d.ts +3 -0
  218. package/dist/icons/PeopleIcon.js +11 -0
  219. package/dist/icons/PhoneIcon.d.ts +3 -0
  220. package/dist/icons/PhoneIcon.js +11 -0
  221. package/dist/icons/PlusIcon.d.ts +3 -0
  222. package/dist/icons/PlusIcon.js +11 -0
  223. package/dist/icons/PositionsIcon.d.ts +3 -0
  224. package/dist/icons/PositionsIcon.js +11 -0
  225. package/dist/icons/ProfileFemaleIcon.d.ts +3 -0
  226. package/dist/icons/ProfileFemaleIcon.js +11 -0
  227. package/dist/icons/ProfileIcon.d.ts +3 -0
  228. package/dist/icons/ProfileIcon.js +11 -0
  229. package/dist/icons/ProfileMaleIcon.d.ts +3 -0
  230. package/dist/icons/ProfileMaleIcon.js +11 -0
  231. package/dist/icons/RemunerationIcon.d.ts +3 -0
  232. package/dist/icons/RemunerationIcon.js +11 -0
  233. package/dist/icons/RescheduleIcon.d.ts +3 -0
  234. package/dist/icons/RescheduleIcon.js +13 -0
  235. package/dist/icons/RestoreIcon.d.ts +3 -0
  236. package/dist/icons/RestoreIcon.js +13 -0
  237. package/dist/icons/ReviewIcon.d.ts +3 -0
  238. package/dist/icons/ReviewIcon.js +11 -0
  239. package/dist/icons/ScheduleIcon.d.ts +3 -0
  240. package/dist/icons/ScheduleIcon.js +13 -0
  241. package/dist/icons/SettingsIcon.d.ts +3 -0
  242. package/dist/icons/SettingsIcon.js +11 -0
  243. package/dist/icons/SidebarIcon.d.ts +3 -0
  244. package/dist/icons/SidebarIcon.js +11 -0
  245. package/dist/icons/SortAscIcon.d.ts +3 -0
  246. package/dist/icons/SortAscIcon.js +11 -0
  247. package/dist/icons/SortDefaultIcon.d.ts +3 -0
  248. package/dist/icons/SortDefaultIcon.js +11 -0
  249. package/dist/icons/SortDesIcon.d.ts +3 -0
  250. package/dist/icons/SortDesIcon.js +11 -0
  251. package/dist/icons/StepsCompleteIcon.d.ts +3 -0
  252. package/dist/icons/StepsCompleteIcon.js +11 -0
  253. package/dist/icons/StepsCurrentIcon.d.ts +3 -0
  254. package/dist/icons/StepsCurrentIcon.js +11 -0
  255. package/dist/icons/StepsIncompleteIcon.d.ts +3 -0
  256. package/dist/icons/StepsIncompleteIcon.js +11 -0
  257. package/dist/icons/SubmitIcon.d.ts +3 -0
  258. package/dist/icons/SubmitIcon.js +13 -0
  259. package/dist/icons/SuccessIcon.d.ts +3 -0
  260. package/dist/icons/SuccessIcon.js +13 -0
  261. package/dist/icons/SuperFundIcon.d.ts +3 -0
  262. package/dist/icons/SuperFundIcon.js +11 -0
  263. package/dist/icons/SyncIcon.d.ts +3 -0
  264. package/dist/icons/SyncIcon.js +11 -0
  265. package/dist/icons/TaskIcon.d.ts +3 -0
  266. package/dist/icons/TaskIcon.js +11 -0
  267. package/dist/icons/TaxIcon.d.ts +3 -0
  268. package/dist/icons/TaxIcon.js +11 -0
  269. package/dist/icons/TenureIcon.d.ts +3 -0
  270. package/dist/icons/TenureIcon.js +11 -0
  271. package/dist/icons/VisibleIcon.d.ts +3 -0
  272. package/dist/icons/VisibleIcon.js +11 -0
  273. package/dist/icons/WarningIcon.d.ts +3 -0
  274. package/dist/icons/WarningIcon.js +12 -0
  275. package/dist/icons/_types.d.ts +4 -0
  276. package/dist/icons/_types.js +0 -0
  277. package/dist/icons/index.d.ts +67 -0
  278. package/dist/icons/index.js +68 -0
  279. package/dist/index.d.ts +1 -0
  280. package/dist/index.js +0 -0
  281. package/dist/inputs/CheckboxInput.d.ts +12 -0
  282. package/dist/inputs/CheckboxInput.js +48 -0
  283. package/dist/inputs/CheckboxInput.module.js +6 -0
  284. package/dist/inputs/CheckboxInput_module.css +32 -0
  285. package/dist/inputs/ColorPickerInput.d.ts +8 -0
  286. package/dist/inputs/ColorPickerInput.js +36 -0
  287. package/dist/inputs/ColorPickerInput.module.js +15 -0
  288. package/dist/inputs/ColorPickerInput_module.css +99 -0
  289. package/dist/inputs/DateInput.d.ts +19 -0
  290. package/dist/inputs/DateInput.js +43 -0
  291. package/dist/inputs/DateInput.module.js +10 -0
  292. package/dist/inputs/DateInput_module.css +60 -0
  293. package/dist/inputs/DateTimeInput.d.ts +17 -0
  294. package/dist/inputs/DateTimeInput.js +34 -0
  295. package/dist/inputs/DateTimeInput.module.js +5 -0
  296. package/dist/inputs/DateTimeInput_module.css +27 -0
  297. package/dist/inputs/FileInput.d.ts +7 -0
  298. package/dist/inputs/FileInput.js +12 -0
  299. package/dist/inputs/ListBoxInput.d.ts +14 -0
  300. package/dist/inputs/ListBoxInput.js +66 -0
  301. package/dist/inputs/ListBoxInput.module.js +10 -0
  302. package/dist/inputs/ListBoxInput_module.css +44 -0
  303. package/dist/inputs/MarkdownInput.d.ts +11 -0
  304. package/dist/inputs/MarkdownInput.js +35 -0
  305. package/dist/inputs/MarkdownInput.module.js +5 -0
  306. package/dist/inputs/MarkdownInput_module.css +27 -0
  307. package/dist/inputs/NumberInput.d.ts +13 -0
  308. package/dist/inputs/NumberInput.js +44 -0
  309. package/dist/inputs/NumberInput.module.js +10 -0
  310. package/dist/inputs/NumberInput_module.css +59 -0
  311. package/dist/inputs/RadioInput.d.ts +9 -0
  312. package/dist/inputs/RadioInput.js +34 -0
  313. package/dist/inputs/RadioInput.module.js +6 -0
  314. package/dist/inputs/RadioInput_module.css +31 -0
  315. package/dist/inputs/SelectInput.d.ts +14 -0
  316. package/dist/inputs/SelectInput.js +130 -0
  317. package/dist/inputs/SelectInput.module.js +10 -0
  318. package/dist/inputs/SelectInput_module.css +63 -0
  319. package/dist/inputs/SingleSelectComboboxInput.d.ts +19 -0
  320. package/dist/inputs/SingleSelectComboboxInput.js +179 -0
  321. package/dist/inputs/SingleSelectComboboxInput.module.js +12 -0
  322. package/dist/inputs/SingleSelectComboboxInput_module.css +73 -0
  323. package/dist/inputs/StringInput.d.ts +15 -0
  324. package/dist/inputs/StringInput.js +51 -0
  325. package/dist/inputs/StringInput.module.js +10 -0
  326. package/dist/inputs/StringInput_module.css +59 -0
  327. package/dist/inputs/TextInput.d.ts +13 -0
  328. package/dist/inputs/TextInput.js +51 -0
  329. package/dist/inputs/TextInput.module.js +10 -0
  330. package/dist/inputs/TextInput_module.css +59 -0
  331. package/dist/inputs/TimeInput.d.ts +11 -0
  332. package/dist/inputs/TimeInput.js +26 -0
  333. package/dist/inputs/TimeInput.module.js +5 -0
  334. package/dist/inputs/TimeInput_module.css +33 -0
  335. package/dist/layouts/BaseLayout.d.ts +7 -0
  336. package/dist/layouts/BaseLayout.js +15 -0
  337. package/dist/layouts/FullLayout.d.ts +19 -0
  338. package/dist/layouts/FullLayout.js +152 -0
  339. package/dist/layouts/FullLayout.module.js +24 -0
  340. package/dist/layouts/FullLayout_module.css +257 -0
  341. package/dist/layouts/MinimalLayout.d.ts +12 -0
  342. package/dist/layouts/MinimalLayout.js +34 -0
  343. package/dist/layouts/MinimalLayout.module.js +6 -0
  344. package/dist/layouts/MinimalLayout_module.css +25 -0
  345. package/dist/presentation/ActionSet.d.ts +13 -0
  346. package/dist/presentation/ActionSet.js +13 -0
  347. package/dist/presentation/ActionSet.module.js +5 -0
  348. package/dist/presentation/ActionSet_module.css +7 -0
  349. package/dist/presentation/Avatar.d.ts +8 -0
  350. package/dist/presentation/Avatar.js +27 -0
  351. package/dist/presentation/Avatar.module.js +5 -0
  352. package/dist/presentation/Avatar_module.css +10 -0
  353. package/dist/presentation/Badge.d.ts +8 -0
  354. package/dist/presentation/Badge.js +20 -0
  355. package/dist/presentation/Badge.module.js +14 -0
  356. package/dist/presentation/BadgeSet.d.ts +15 -0
  357. package/dist/presentation/BadgeSet.js +18 -0
  358. package/dist/presentation/BadgeSet.module.js +7 -0
  359. package/dist/presentation/BadgeSet_module.css +15 -0
  360. package/dist/presentation/Badge_module.css +53 -0
  361. package/dist/presentation/Banner.d.ts +11 -0
  362. package/dist/presentation/Banner.js +33 -0
  363. package/dist/presentation/Banner.module.js +12 -0
  364. package/dist/presentation/Banner_module.css +54 -0
  365. package/dist/presentation/ButtonSet.d.ts +11 -0
  366. package/dist/presentation/ButtonSet.js +21 -0
  367. package/dist/presentation/ButtonsSet.module.js +6 -0
  368. package/dist/presentation/ButtonsSet_module.css +10 -0
  369. package/dist/presentation/Card.d.ts +17 -0
  370. package/dist/presentation/Card.js +38 -0
  371. package/dist/presentation/Card.module.js +9 -0
  372. package/dist/presentation/CardContent.d.ts +7 -0
  373. package/dist/presentation/CardContent.js +12 -0
  374. package/dist/presentation/CardContent.module.js +5 -0
  375. package/dist/presentation/CardContent_module.css +4 -0
  376. package/dist/presentation/Card_module.css +32 -0
  377. package/dist/presentation/Columns.d.ts +8 -0
  378. package/dist/presentation/Columns.js +16 -0
  379. package/dist/presentation/Columns.module.js +7 -0
  380. package/dist/presentation/Columns_module.css +19 -0
  381. package/dist/presentation/ConfirmationModal.d.ts +13 -0
  382. package/dist/presentation/ConfirmationModal.js +61 -0
  383. package/dist/presentation/DefinitionList.d.ts +10 -0
  384. package/dist/presentation/DefinitionList.js +22 -0
  385. package/dist/presentation/DefinitionList.module.js +6 -0
  386. package/dist/presentation/DefinitionList_module.css +10 -0
  387. package/dist/presentation/Divider.d.ts +5 -0
  388. package/dist/presentation/Divider.js +23 -0
  389. package/dist/presentation/Divider.module.js +6 -0
  390. package/dist/presentation/Divider_module.css +12 -0
  391. package/dist/presentation/File.d.ts +6 -0
  392. package/dist/presentation/File.js +57 -0
  393. package/dist/presentation/Footer.d.ts +12 -0
  394. package/dist/presentation/Footer.js +18 -0
  395. package/dist/presentation/Footer.module.js +5 -0
  396. package/dist/presentation/Footer_module.css +16 -0
  397. package/dist/presentation/HStack.d.ts +10 -0
  398. package/dist/presentation/HStack.js +16 -0
  399. package/dist/presentation/HStack.module.js +5 -0
  400. package/dist/presentation/HStack_module.css +10 -0
  401. package/dist/presentation/Header.d.ts +10 -0
  402. package/dist/presentation/Header.js +20 -0
  403. package/dist/presentation/Header.module.js +6 -0
  404. package/dist/presentation/Header_module.css +17 -0
  405. package/dist/presentation/Heading.d.ts +10 -0
  406. package/dist/presentation/Heading.js +10 -0
  407. package/dist/presentation/HeadlineStatisticCard.d.ts +9 -0
  408. package/dist/presentation/HeadlineStatisticCard.js +35 -0
  409. package/dist/presentation/HoverCard.d.ts +7 -0
  410. package/dist/presentation/HoverCard.js +90 -0
  411. package/dist/presentation/HoverCard.module.js +8 -0
  412. package/dist/presentation/HoverCard_module.css +18 -0
  413. package/dist/presentation/Icon.d.ts +20 -0
  414. package/dist/presentation/Icon.js +27 -0
  415. package/dist/presentation/IconSymbolSet.d.ts +6 -0
  416. package/dist/presentation/IconSymbolSet.js +16 -0
  417. package/dist/presentation/Info.d.ts +10 -0
  418. package/dist/presentation/Info.js +26 -0
  419. package/dist/presentation/Info.module.js +8 -0
  420. package/dist/presentation/Info_module.css +38 -0
  421. package/dist/presentation/Key.d.ts +7 -0
  422. package/dist/presentation/Key.js +13 -0
  423. package/dist/presentation/Key.module.js +5 -0
  424. package/dist/presentation/Key_module.css +15 -0
  425. package/dist/presentation/KeysSet.d.ts +9 -0
  426. package/dist/presentation/KeysSet.js +8 -0
  427. package/dist/presentation/KeysSet.module.js +5 -0
  428. package/dist/presentation/KeysSet_module.css +6 -0
  429. package/dist/presentation/Label.d.ts +10 -0
  430. package/dist/presentation/Label.js +10 -0
  431. package/dist/presentation/Layer.d.ts +9 -0
  432. package/dist/presentation/Layer.js +48 -0
  433. package/dist/presentation/ListCard.d.ts +13 -0
  434. package/dist/presentation/ListCard.js +50 -0
  435. package/dist/presentation/ListCard.module.js +10 -0
  436. package/dist/presentation/ListCard_module.css +78 -0
  437. package/dist/presentation/Markdown.d.ts +19 -0
  438. package/dist/presentation/Markdown.js +33 -0
  439. package/dist/presentation/Modal.d.ts +8 -0
  440. package/dist/presentation/Modal.js +26 -0
  441. package/dist/presentation/Modal.module.js +7 -0
  442. package/dist/presentation/Modal_module.css +17 -0
  443. package/dist/presentation/ObscuredText.d.ts +5 -0
  444. package/dist/presentation/ObscuredText.js +25 -0
  445. package/dist/presentation/ObscuredText.module.js +6 -0
  446. package/dist/presentation/ObscuredText_module.css +26 -0
  447. package/dist/presentation/Overlay.d.ts +7 -0
  448. package/dist/presentation/Overlay.js +29 -0
  449. package/dist/presentation/Overlay.module.js +6 -0
  450. package/dist/presentation/Overlay_module.css +20 -0
  451. package/dist/presentation/PersonAvatar.d.ts +18 -0
  452. package/dist/presentation/PersonAvatar.js +89 -0
  453. package/dist/presentation/PersonCover.d.ts +5 -0
  454. package/dist/presentation/PersonCover.js +21 -0
  455. package/dist/presentation/PersonCover.module.js +6 -0
  456. package/dist/presentation/PersonCover_module.css +22 -0
  457. package/dist/presentation/Placeholder.d.ts +6 -0
  458. package/dist/presentation/Placeholder.js +8 -0
  459. package/dist/presentation/Placeholder.module.js +5 -0
  460. package/dist/presentation/Placeholder_module.css +9 -0
  461. package/dist/presentation/PlainText.d.ts +11 -0
  462. package/dist/presentation/PlainText.js +40 -0
  463. package/dist/presentation/PlainText.module.js +5 -0
  464. package/dist/presentation/PlainText_module.css +6 -0
  465. package/dist/presentation/RichText.d.ts +16 -0
  466. package/dist/presentation/RichText.js +21 -0
  467. package/dist/presentation/RichText.module.js +7 -0
  468. package/dist/presentation/RichText_module.css +177 -0
  469. package/dist/presentation/Sheet.d.ts +23 -0
  470. package/dist/presentation/Sheet.js +22 -0
  471. package/dist/presentation/Sheet.module.js +8 -0
  472. package/dist/presentation/SheetContent.d.ts +6 -0
  473. package/dist/presentation/SheetContent.js +8 -0
  474. package/dist/presentation/SheetContent.module.js +5 -0
  475. package/dist/presentation/SheetContent_module.css +7 -0
  476. package/dist/presentation/SheetFooter.d.ts +7 -0
  477. package/dist/presentation/SheetFooter.js +12 -0
  478. package/dist/presentation/SheetFooter.module.js +5 -0
  479. package/dist/presentation/SheetFooter_module.css +7 -0
  480. package/dist/presentation/SheetHeader.d.ts +8 -0
  481. package/dist/presentation/SheetHeader.js +13 -0
  482. package/dist/presentation/SheetHeader.module.js +5 -0
  483. package/dist/presentation/SheetHeader_module.css +7 -0
  484. package/dist/presentation/Sheet_module.css +24 -0
  485. package/dist/presentation/SimpleList.d.ts +9 -0
  486. package/dist/presentation/SimpleList.js +14 -0
  487. package/dist/presentation/SimpleList.module.js +5 -0
  488. package/dist/presentation/SimpleList_module.css +9 -0
  489. package/dist/presentation/SimpleTable.d.ts +27 -0
  490. package/dist/presentation/SimpleTable.js +67 -0
  491. package/dist/presentation/SimpleTable.module.js +12 -0
  492. package/dist/presentation/SimpleTable_module.css +42 -0
  493. package/dist/presentation/Slot.d.ts +8 -0
  494. package/dist/presentation/Slot.js +26 -0
  495. package/dist/presentation/Slot.module.js +5 -0
  496. package/dist/presentation/Slot_module.css +7 -0
  497. package/dist/presentation/Subheading.d.ts +10 -0
  498. package/dist/presentation/Subheading.js +10 -0
  499. package/dist/presentation/Table.d.ts +71 -0
  500. package/dist/presentation/Table.js +458 -0
  501. package/dist/presentation/Table.module.js +22 -0
  502. package/dist/presentation/Table_module.css +142 -0
  503. package/dist/presentation/Tag.d.ts +9 -0
  504. package/dist/presentation/Tag.js +20 -0
  505. package/dist/presentation/Tag.module.js +14 -0
  506. package/dist/presentation/TagSet.d.ts +15 -0
  507. package/dist/presentation/TagSet.js +18 -0
  508. package/dist/presentation/TagSet.module.js +7 -0
  509. package/dist/presentation/TagSet_module.css +15 -0
  510. package/dist/presentation/Tag_module.css +53 -0
  511. package/dist/presentation/Timeline.d.ts +10 -0
  512. package/dist/presentation/Timeline.js +24 -0
  513. package/dist/presentation/Timeline.module.js +7 -0
  514. package/dist/presentation/Timeline_module.css +32 -0
  515. package/dist/presentation/Title.d.ts +10 -0
  516. package/dist/presentation/Title.js +10 -0
  517. package/dist/presentation/Tooltip.d.ts +7 -0
  518. package/dist/presentation/Tooltip.js +62 -0
  519. package/dist/presentation/Tooltip.module.js +6 -0
  520. package/dist/presentation/Tooltip_module.css +12 -0
  521. package/dist/presentation/VStack.d.ts +13 -0
  522. package/dist/presentation/VStack.js +15 -0
  523. package/dist/presentation/VStack.module.js +5 -0
  524. package/dist/presentation/VStack_module.css +8 -0
  525. package/dist/shared.css +351 -335
  526. package/dist/utils/NextContext.d.ts +10 -0
  527. package/dist/utils/NextContext.js +4 -0
  528. package/dist/utils/TrackingContext.d.ts +20 -0
  529. package/dist/utils/TrackingContext.js +4 -0
  530. package/dist/utils/customProperties.d.ts +5 -0
  531. package/dist/utils/customProperties.js +3 -0
  532. package/dist/utils/encodeCsv.d.ts +5 -0
  533. package/dist/utils/encodeCsv.js +30 -0
  534. package/dist/utils/search.d.ts +4 -0
  535. package/dist/utils/search.js +10 -0
  536. package/dist/utils/useNextContext.d.ts +35 -0
  537. package/dist/utils/useNextContext.js +9 -0
  538. package/dist/validators/isGreaterThan.d.ts +8 -0
  539. package/dist/validators/isGreaterThan.js +11 -0
  540. package/dist/validators/isInteger.d.ts +8 -0
  541. package/dist/validators/isInteger.js +11 -0
  542. package/dist/validators/isLessThan.d.ts +8 -0
  543. package/dist/validators/isLessThan.js +11 -0
  544. package/dist/validators/isNotBlank.d.ts +8 -0
  545. package/dist/validators/isNotBlank.js +11 -0
  546. package/dist/validators/isNotEmpty.d.ts +8 -0
  547. package/dist/validators/isNotEmpty.js +11 -0
  548. package/dist/validators/isNumber.d.ts +8 -0
  549. package/dist/validators/isNumber.js +12 -0
  550. package/dist/validators/isRequired.d.ts +8 -0
  551. package/dist/validators/isRequired.js +11 -0
  552. package/dist/validators/isTrue.d.ts +8 -0
  553. package/dist/validators/isTrue.js +11 -0
  554. package/dist/validators/isValidEmail.d.ts +8 -0
  555. package/dist/validators/isValidEmail.js +12 -0
  556. package/dist/visuals/ProportionVisual.d.ts +11 -0
  557. package/dist/visuals/ProportionVisual.js +41 -0
  558. package/dist/visuals/ProportionVisual.module.js +16 -0
  559. package/dist/visuals/ProportionVisualCompact.d.ts +9 -0
  560. package/dist/visuals/ProportionVisualCompact.js +27 -0
  561. package/dist/visuals/ProportionVisualCompact.module.js +15 -0
  562. package/dist/visuals/ProportionVisualCompact_module.css +48 -0
  563. package/dist/visuals/ProportionVisual_module.css +65 -0
  564. package/package.json +70 -28
@@ -0,0 +1,63 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__ from "./PasswordField.module.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_47529181__ from "../utils/useNextContext.js";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__forms_FormErrorList_js_bc080ab1__ from "../forms/FormErrorList.js";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__inputs_StringInput_js_091f1e06__ from "../inputs/StringInput.js";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__presentation_RichText_js_6d55c30e__ from "../presentation/RichText.js";
8
+ const PasswordField = ({ description, email, errors, includeForgotPassword = false, id, label, labelFont = "label", onChange, value })=>{
9
+ const { Link } = (0, __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_47529181__["default"])();
10
+ const hasErrors = null != errors && errors.length > 0;
11
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
12
+ className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].field, {
13
+ [__WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].hasErrors]: hasErrors
14
+ }),
15
+ id: id,
16
+ children: [
17
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
18
+ className: __WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].head,
19
+ children: [
20
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("label", {
21
+ className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].label, {
22
+ [__WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].heading]: "heading" === labelFont,
23
+ [__WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].subheading]: "subheading" === labelFont,
24
+ [__WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].regularBold]: "regular-bold" === labelFont,
25
+ [__WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].regular]: "regular" === labelFont,
26
+ [__WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].small]: "small" === labelFont
27
+ }),
28
+ htmlFor: id,
29
+ children: label
30
+ }),
31
+ includeForgotPassword ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
32
+ className: __WEBPACK_EXTERNAL_MODULE__PasswordField_module_js_221c9d08__["default"].forgotPassword,
33
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__presentation_RichText_js_6d55c30e__["default"], {
34
+ font: "small",
35
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(Link, {
36
+ href: `/forgot-password?email=${encodeURIComponent(email)}`,
37
+ children: "Forgot your password?"
38
+ })
39
+ })
40
+ }) : null
41
+ ]
42
+ }),
43
+ description ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
44
+ children: description
45
+ }) : null,
46
+ hasErrors ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__forms_FormErrorList_js_bc080ab1__["default"], {
47
+ errors: errors,
48
+ size: "small"
49
+ }) : null,
50
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
51
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__inputs_StringInput_js_091f1e06__["default"], {
52
+ type: "password",
53
+ id: "password",
54
+ value: value,
55
+ onChange: onChange,
56
+ placeholder: "••••••••"
57
+ })
58
+ })
59
+ ]
60
+ });
61
+ };
62
+ const PasswordField_rslib_entry_ = PasswordField;
63
+ export { PasswordField_rslib_entry_ as default };
@@ -0,0 +1,14 @@
1
+ import "./PasswordField_module.css";
2
+ const PasswordField_module_rslib_entry_ = {
3
+ field: "field-YasA00",
4
+ head: "head-XVef4h",
5
+ label: "label-DlGmtW",
6
+ heading: "heading-HWaNkL",
7
+ subheading: "subheading-ivzGt7",
8
+ regularBold: "regularBold-hzy9co",
9
+ regular: "regular-xnEF0Y",
10
+ small: "small-O2026a",
11
+ hasErrors: "hasErrors-djd4wc",
12
+ forgotPassword: "forgotPassword-f5VbQ8"
13
+ };
14
+ export { PasswordField_module_rslib_entry_ as default };
@@ -0,0 +1,47 @@
1
+ .field-YasA00 {
2
+ gap: var(--size-n2);
3
+ display: grid;
4
+ position: relative;
5
+ }
6
+
7
+ .head-XVef4h {
8
+ align-items: baseline;
9
+ gap: var(--size-n3);
10
+ grid-template-columns: 1fr auto;
11
+ display: grid;
12
+ }
13
+
14
+ .head-XVef4h .label-DlGmtW {
15
+ font: var(--font-regular-bold);
16
+ grid-column: 1 / 2;
17
+ }
18
+
19
+ .head-XVef4h .label-DlGmtW.heading-HWaNkL {
20
+ font: var(--font-h2);
21
+ }
22
+
23
+ .head-XVef4h .label-DlGmtW.subheading-ivzGt7 {
24
+ font: var(--font-h3);
25
+ }
26
+
27
+ .head-XVef4h .label-DlGmtW.regularBold-hzy9co {
28
+ font: var(--font-regular-bold);
29
+ }
30
+
31
+ .head-XVef4h .label-DlGmtW.regular-xnEF0Y {
32
+ font: var(--font-regular);
33
+ }
34
+
35
+ .head-XVef4h .label-DlGmtW.small-O2026a {
36
+ font: var(--font-small);
37
+ }
38
+
39
+ .hasErrors-djd4wc .head-XVef4h .label-DlGmtW {
40
+ color: var(--color-red-t03);
41
+ }
42
+
43
+ .head-XVef4h .forgotPassword-f5VbQ8 {
44
+ color: var(--color-grey-t03);
45
+ font: var(--font-small-italic);
46
+ }
47
+
@@ -0,0 +1,22 @@
1
+ import { type Dispatch, type ReactNode } from "react";
2
+ import type { ValidationError } from "../forms/_types";
3
+ type Props<Value, Option extends Value> = {
4
+ autoFocus?: boolean;
5
+ description?: ReactNode;
6
+ disabled?: boolean;
7
+ errors?: Array<ValidationError>;
8
+ id: string;
9
+ includeValueInTracking?: boolean;
10
+ label: ReactNode;
11
+ labelFont?: "heading" | "subheading" | "label" | "regular-bold" | "regular";
12
+ onChange: Dispatch<Option>;
13
+ options: Array<Option>;
14
+ optionToId: (option: Option) => string;
15
+ optionToLabel: (option: Option) => ReactNode;
16
+ required?: boolean;
17
+ value: Value;
18
+ valueToId: (option: Value) => string | undefined;
19
+ orientation?: "rows" | "columns";
20
+ };
21
+ declare const RadioSetField: <Value, Option extends Value>({ autoFocus, description, disabled, errors, id, includeValueInTracking, label, labelFont, onChange, options, optionToId, optionToLabel, required, value, valueToId, orientation, }: Props<Value, Option>) => import("react/jsx-runtime").JSX.Element;
22
+ export default RadioSetField;
@@ -0,0 +1,42 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__ from "../forms/RegularField.js";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__forms_ToggleField_js_961683e7__ from "../forms/ToggleField.js";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__inputs_RadioInput_js_49cc9f35__ from "../inputs/RadioInput.js";
7
+ import * as __WEBPACK_EXTERNAL_MODULE__utils_TrackingContext_js_139012da__ from "../utils/TrackingContext.js";
8
+ import * as __WEBPACK_EXTERNAL_MODULE__RadioSetField_module_js_3470e0f7__ from "./RadioSetField.module.js";
9
+ const RadioSetField = ({ autoFocus = false, description, disabled = false, errors, id, includeValueInTracking, label, labelFont = "label", onChange, options, optionToId, optionToLabel, required = false, value, valueToId, orientation = "rows" })=>{
10
+ const trackingContext = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__utils_TrackingContext_js_139012da__["default"]);
11
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__["default"], {
12
+ description: description,
13
+ errors: errors,
14
+ label: label,
15
+ labelFont: labelFont,
16
+ required: required,
17
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
18
+ className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])([
19
+ "rows" === orientation ? __WEBPACK_EXTERNAL_MODULE__RadioSetField_module_js_3470e0f7__["default"].rowLayout : __WEBPACK_EXTERNAL_MODULE__RadioSetField_module_js_3470e0f7__["default"].columnsLayout
20
+ ]),
21
+ children: options.map((option, index)=>{
22
+ const optionId = optionToId(option);
23
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__forms_ToggleField_js_961683e7__["default"], {
24
+ inputId: `${id}-${optionId}`,
25
+ label: optionToLabel(option),
26
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__inputs_RadioInput_js_49cc9f35__["default"], {
27
+ autoFocus: autoFocus && 0 === index,
28
+ disabled: disabled,
29
+ id: `${id}-${optionId}`,
30
+ value: optionId === valueToId(value),
31
+ onChange: ()=>{
32
+ onChange(option);
33
+ if (trackingContext && id) trackingContext.trackInput(id, includeValueInTracking ? optionToId(option) : void 0);
34
+ }
35
+ })
36
+ }, optionId);
37
+ })
38
+ })
39
+ });
40
+ };
41
+ const RadioSetField_rslib_entry_ = RadioSetField;
42
+ export { RadioSetField_rslib_entry_ as default };
@@ -0,0 +1,6 @@
1
+ import "./RadioSetField_module.css";
2
+ const RadioSetField_module_rslib_entry_ = {
3
+ rowLayout: "rowLayout-Hej4Tb",
4
+ columnsLayout: "columnsLayout-1D2o_h"
5
+ };
6
+ export { RadioSetField_module_rslib_entry_ as default };
@@ -0,0 +1,15 @@
1
+ .rowLayout-Hej4Tb, .columnsLayout-1D2o_h {
2
+ column-gap: var(--size-00);
3
+ row-gap: var(--size-n2);
4
+ display: grid;
5
+ }
6
+
7
+ .rowLayout-Hej4Tb {
8
+ grid-auto-flow: row;
9
+ }
10
+
11
+ .columnsLayout-1D2o_h {
12
+ grid-auto-columns: max-content;
13
+ grid-auto-flow: column;
14
+ }
15
+
@@ -0,0 +1,20 @@
1
+ import type { Dispatch, ReactNode } from "react";
2
+ import type { ValidationError } from "../forms/_types";
3
+ type Props<Option, Value> = {
4
+ autoFocus?: boolean;
5
+ description?: ReactNode;
6
+ disabled?: boolean;
7
+ errors?: Array<ValidationError>;
8
+ id: string;
9
+ includeValueInTracking?: boolean;
10
+ label: ReactNode;
11
+ labelFont?: "heading" | "subheading" | "label" | "regular-bold" | "regular";
12
+ onChange: Dispatch<Option>;
13
+ options: Array<Option>;
14
+ optionToId: (option: Option | Value) => string;
15
+ optionToLabel: (option: Option | Value) => string;
16
+ required?: boolean;
17
+ value: Option | Value;
18
+ };
19
+ declare const SelectField: <Option = any, Value = never>({ autoFocus, description, disabled, errors, id, includeValueInTracking, label, labelFont, onChange, required, options, optionToId, optionToLabel, value, }: Props<Option, Value>) => import("react/jsx-runtime").JSX.Element;
20
+ export default SelectField;
@@ -0,0 +1,24 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__ from "../forms/RegularField.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__inputs_SelectInput_js_d1a6f32e__ from "../inputs/SelectInput.js";
4
+ const SelectField = ({ autoFocus = false, description, disabled = false, errors, id, includeValueInTracking, label, labelFont = "label", onChange, required = false, options, optionToId, optionToLabel, value })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__["default"], {
5
+ description: description,
6
+ errors: errors,
7
+ inputId: id,
8
+ label: label,
9
+ labelFont: labelFont,
10
+ required: required,
11
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__inputs_SelectInput_js_d1a6f32e__["default"], {
12
+ autoFocus: autoFocus,
13
+ disabled: disabled,
14
+ id: id,
15
+ includeValueInTracking: includeValueInTracking,
16
+ onChange: onChange,
17
+ options: options,
18
+ optionToId: optionToId,
19
+ optionToLabel: optionToLabel,
20
+ value: value
21
+ })
22
+ });
23
+ const SelectField_rslib_entry_ = SelectField;
24
+ export { SelectField_rslib_entry_ as default };
@@ -0,0 +1,15 @@
1
+ import type { ComponentProps, Dispatch } from "react";
2
+ import RadioSetField from "./RadioSetField";
3
+ type Props<Option extends {
4
+ id: string;
5
+ label: string;
6
+ }> = Omit<ComponentProps<typeof RadioSetField>, "onChange" | "options" | "optionToId" | "optionToLabel" | "value" | "valueToId"> & {
7
+ onChange: Dispatch<Option["id"]>;
8
+ options: Array<Option>;
9
+ value: Option["id"] | null;
10
+ };
11
+ declare const SimpleRadioSetField: <Option extends {
12
+ id: string;
13
+ label: string;
14
+ }>({ onChange, options, value, ...props }: Props<Option>) => import("react/jsx-runtime").JSX.Element;
15
+ export default SimpleRadioSetField;
@@ -0,0 +1,13 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__RadioSetField_js_890da7fd__ from "./RadioSetField.js";
3
+ const SimpleRadioSetField = ({ onChange, options, value, ...props })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__RadioSetField_js_890da7fd__["default"], {
4
+ onChange: (option)=>onChange(option.id),
5
+ options: options,
6
+ optionToId: (option)=>option.id,
7
+ optionToLabel: (option)=>option.label,
8
+ value: options.find((option)=>option.id === value) ?? null,
9
+ valueToId: (option)=>option?.id,
10
+ ...props
11
+ });
12
+ const SimpleRadioSetField_rslib_entry_ = SimpleRadioSetField;
13
+ export { SimpleRadioSetField_rslib_entry_ as default };
@@ -0,0 +1,25 @@
1
+ import type { Dispatch, ReactNode } from "react";
2
+ import type { ValidationError } from "../forms/_types";
3
+ type Props<Option> = {
4
+ autoFocus?: boolean;
5
+ disabled?: boolean;
6
+ id: string;
7
+ includeValueInTracking?: boolean;
8
+ onChange: Dispatch<Option>;
9
+ options: Array<Option>;
10
+ optionToId: (option: Option) => string;
11
+ optionToLabel: (option: Option) => ReactNode;
12
+ value: Option | null;
13
+ placeholder?: string;
14
+ searchPlaceholder?: string;
15
+ searchFields: Array<keyof Option & string>;
16
+ onCreate?: (onClose: () => void, searchTerm: string) => ReactNode;
17
+ onClear?: () => void;
18
+ description?: ReactNode;
19
+ errors?: Array<ValidationError>;
20
+ label: ReactNode;
21
+ labelFont?: "heading" | "subheading" | "label" | "regular-bold" | "regular";
22
+ required?: boolean;
23
+ };
24
+ declare const SingleSelectComboBoxField: <Option>({ autoFocus, disabled, id, includeValueInTracking, onChange, options, optionToId, optionToLabel, value, placeholder, searchPlaceholder, searchFields, onCreate, onClear, description, errors, label, labelFont, required, }: Props<Option>) => import("react/jsx-runtime").JSX.Element;
25
+ export default SingleSelectComboBoxField;
@@ -0,0 +1,28 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__ from "../forms/RegularField.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__inputs_SingleSelectComboboxInput_js_15b92560__ from "../inputs/SingleSelectComboboxInput.js";
4
+ const SingleSelectComboBoxField = ({ autoFocus = false, disabled = false, id, includeValueInTracking, onChange, options, optionToId, optionToLabel, value, placeholder, searchPlaceholder, searchFields, onCreate, onClear, description, errors, label, labelFont = "label", required = false })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__["default"], {
5
+ description: description,
6
+ errors: errors,
7
+ label: label,
8
+ labelFont: labelFont,
9
+ required: required,
10
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__inputs_SingleSelectComboboxInput_js_15b92560__["default"], {
11
+ autoFocus: autoFocus,
12
+ disabled: disabled,
13
+ id: id,
14
+ includeValueInTracking: includeValueInTracking,
15
+ onChange: onChange,
16
+ options: options,
17
+ optionToId: optionToId,
18
+ optionToLabel: optionToLabel,
19
+ value: value,
20
+ placeholder: placeholder,
21
+ searchPlaceholder: searchPlaceholder,
22
+ searchFields: searchFields,
23
+ onCreate: onCreate,
24
+ onClear: onClear
25
+ })
26
+ });
27
+ const SingleSelectComboboxField_rslib_entry_ = SingleSelectComboBoxField;
28
+ export { SingleSelectComboboxField_rslib_entry_ as default };
@@ -0,0 +1,12 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import type { ValidationError } from "../forms/_types";
3
+ import StringInput from "../inputs/StringInput";
4
+ type Props = ComponentProps<typeof StringInput> & {
5
+ description?: ReactNode;
6
+ errors?: Array<ValidationError>;
7
+ label: ReactNode;
8
+ labelFont?: "heading" | "subheading" | "label" | "regular-bold" | "regular";
9
+ required?: boolean;
10
+ };
11
+ declare const StringField: ({ autoFocus, description, disabled, errors, id, label, labelFont, onChange, placeholder, required, value, type, inputMode, prefix, suffix, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export default StringField;
@@ -0,0 +1,25 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__ from "../forms/RegularField.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__inputs_StringInput_js_091f1e06__ from "../inputs/StringInput.js";
4
+ const StringField = ({ autoFocus = false, description, disabled = false, errors, id, label, labelFont = "label", onChange, placeholder, required = false, value, type, inputMode, prefix, suffix })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__["default"], {
5
+ description: description,
6
+ errors: errors,
7
+ inputId: id,
8
+ label: label,
9
+ labelFont: labelFont,
10
+ required: required,
11
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__inputs_StringInput_js_091f1e06__["default"], {
12
+ autoFocus: autoFocus,
13
+ disabled: disabled,
14
+ id: id,
15
+ value: value,
16
+ onChange: onChange,
17
+ placeholder: placeholder,
18
+ type: type,
19
+ inputMode: inputMode,
20
+ prefix: prefix,
21
+ suffix: suffix
22
+ })
23
+ });
24
+ const StringField_rslib_entry_ = StringField;
25
+ export { StringField_rslib_entry_ as default };
@@ -0,0 +1,17 @@
1
+ import type { Dispatch, ReactNode } from "react";
2
+ import type { ValidationError } from "../forms/_types";
3
+ type Props = {
4
+ autoFocus?: boolean;
5
+ description?: ReactNode;
6
+ disabled?: boolean;
7
+ errors?: Array<ValidationError>;
8
+ id: string;
9
+ label: ReactNode;
10
+ labelFont?: "heading" | "subheading" | "label" | "regular-bold" | "regular";
11
+ onChange: Dispatch<string | null>;
12
+ placeholder?: string;
13
+ required?: boolean;
14
+ value: string | null;
15
+ };
16
+ declare const TextField: ({ autoFocus, description, disabled, errors, id, label, labelFont, onChange, placeholder, required, value, }: Props) => import("react/jsx-runtime").JSX.Element;
17
+ export default TextField;
@@ -0,0 +1,21 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__ from "../forms/RegularField.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__inputs_TextInput_js_07ffb909__ from "../inputs/TextInput.js";
4
+ const TextField = ({ autoFocus = false, description, disabled = false, errors, id, label, labelFont = "label", onChange, placeholder, required = false, value })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__["default"], {
5
+ description: description,
6
+ errors: errors,
7
+ inputId: id,
8
+ label: label,
9
+ labelFont: labelFont,
10
+ required: required,
11
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__inputs_TextInput_js_07ffb909__["default"], {
12
+ autoFocus: autoFocus,
13
+ disabled: disabled,
14
+ id: id,
15
+ value: value,
16
+ onChange: onChange,
17
+ placeholder: placeholder
18
+ })
19
+ });
20
+ const TextField_rslib_entry_ = TextField;
21
+ export { TextField_rslib_entry_ as default };
@@ -0,0 +1,12 @@
1
+ import type { ComponentProps, ReactNode } from "react";
2
+ import type { ValidationError } from "../forms/_types";
3
+ import TimeInput from "../inputs/TimeInput";
4
+ type Props = ComponentProps<typeof TimeInput> & {
5
+ description?: ReactNode;
6
+ errors?: Array<ValidationError>;
7
+ label: ReactNode;
8
+ labelFont?: "heading" | "subheading" | "label" | "regular-bold" | "regular";
9
+ required?: boolean;
10
+ };
11
+ declare const TimeField: ({ autoFocus, description, disabled, errors, id, label, labelFont, onChange, required, value, step, }: Props) => import("react/jsx-runtime").JSX.Element;
12
+ export default TimeField;
@@ -0,0 +1,21 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__ from "../forms/RegularField.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__inputs_TimeInput_js_df3b31b1__ from "../inputs/TimeInput.js";
4
+ const TimeField = ({ autoFocus = false, description, disabled = false, errors, id, label, labelFont = "label", onChange, required = false, value, step })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__forms_RegularField_js_c54537ba__["default"], {
5
+ description: description,
6
+ errors: errors,
7
+ inputId: id,
8
+ label: label,
9
+ labelFont: labelFont,
10
+ required: required,
11
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__inputs_TimeInput_js_df3b31b1__["default"], {
12
+ autoFocus: autoFocus,
13
+ disabled: disabled,
14
+ id: id,
15
+ value: value,
16
+ onChange: onChange,
17
+ step: step
18
+ })
19
+ });
20
+ const TimeField_rslib_entry_ = TimeField;
21
+ export { TimeField_rslib_entry_ as default };
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ import type { FormStatus } from "./_types";
3
+ type ButtonProps = {
4
+ action: (event: React.MouseEvent) => any;
5
+ label: ReactNode;
6
+ };
7
+ type Props = {
8
+ formStatus: FormStatus;
9
+ primary: ButtonProps;
10
+ secondary?: ButtonProps;
11
+ tertiary?: ButtonProps;
12
+ };
13
+ declare const FormButtonSet: ({ formStatus, primary, secondary, tertiary }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export default FormButtonSet;
@@ -0,0 +1,31 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__FormButtonSet_module_js_cf3781de__ from "./FormButtonSet.module.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__controls_Button_js_f591ba2e__ from "../controls/Button.js";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_js_a5a9c915__ from "./FormStatusIndicator.js";
5
+ const FormButtonSet = ({ formStatus, primary, secondary, tertiary })=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
6
+ className: __WEBPACK_EXTERNAL_MODULE__FormButtonSet_module_js_cf3781de__["default"].container,
7
+ children: [
8
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_f591ba2e__["default"], {
9
+ type: "submit",
10
+ onClick: primary.action,
11
+ disabled: "fresh" !== formStatus && "modified" !== formStatus,
12
+ children: "fresh" === formStatus || "modified" === formStatus || "disabled" === formStatus ? primary.label : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__FormStatusIndicator_js_a5a9c915__["default"], {
13
+ status: formStatus
14
+ })
15
+ }),
16
+ secondary ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_f591ba2e__["default"], {
17
+ type: "secondary",
18
+ onClick: secondary.action,
19
+ disabled: "fresh" !== formStatus && "modified" !== formStatus,
20
+ children: secondary.label
21
+ }) : null,
22
+ tertiary ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_f591ba2e__["default"], {
23
+ type: "secondary",
24
+ onClick: tertiary.action,
25
+ disabled: "fresh" !== formStatus && "modified" !== formStatus,
26
+ children: tertiary.label
27
+ }) : null
28
+ ]
29
+ });
30
+ const FormButtonSet_rslib_entry_ = FormButtonSet;
31
+ export { FormButtonSet_rslib_entry_ as default };
@@ -0,0 +1,5 @@
1
+ import "./FormButtonSet_module.css";
2
+ const FormButtonSet_module_rslib_entry_ = {
3
+ container: "container-BRCdQK"
4
+ };
5
+ export { FormButtonSet_module_rslib_entry_ as default };
@@ -0,0 +1,12 @@
1
+ .container-BRCdQK {
2
+ gap: var(--size-n2);
3
+ flex-direction: row-reverse;
4
+ display: flex;
5
+ }
6
+
7
+ @media (max-width: 768px) {
8
+ .container-BRCdQK {
9
+ flex-direction: column;
10
+ }
11
+ }
12
+
@@ -0,0 +1,6 @@
1
+ import type { FormModel, ValidationError } from "./_types";
2
+ declare class FormError<Model extends FormModel> extends Error {
3
+ validationErrors: Array<ValidationError<Model>>;
4
+ constructor(validationErrors: Array<ValidationError<Model>>);
5
+ }
6
+ export default FormError;
@@ -0,0 +1,10 @@
1
+ class FormError extends Error {
2
+ validationErrors;
3
+ constructor(validationErrors){
4
+ super("Form validation failed.");
5
+ this.validationErrors = validationErrors;
6
+ this.name = "FormError";
7
+ }
8
+ }
9
+ const FormError_rslib_entry_ = FormError;
10
+ export { FormError_rslib_entry_ as default };
@@ -0,0 +1,8 @@
1
+ import type { ValidationError } from "../forms/_types";
2
+ type Props = {
3
+ errors: Array<ValidationError>;
4
+ id?: string;
5
+ size?: "regular" | "small";
6
+ };
7
+ declare const FormErrorList: ({ errors, id, size }: Props) => import("react/jsx-runtime").JSX.Element | null;
8
+ export default FormErrorList;
@@ -0,0 +1,22 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__FormErrorList_module_js_e0d23be4__ from "./FormErrorList.module.js";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__presentation_Icon_js_6961aa57__ from "../presentation/Icon.js";
5
+ const FormErrorList = ({ errors, id, size = "regular" })=>errors.length > 0 ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
6
+ className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__FormErrorList_module_js_e0d23be4__["default"].container, {
7
+ [__WEBPACK_EXTERNAL_MODULE__FormErrorList_module_js_e0d23be4__["default"].small]: "small" === size
8
+ }),
9
+ children: [
10
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__presentation_Icon_js_6961aa57__["default"], {
11
+ symbol: "Warning"
12
+ }),
13
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("ul", {
14
+ id: id,
15
+ children: errors.map((error)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
16
+ children: error.message
17
+ }, error.id))
18
+ })
19
+ ]
20
+ }) : null;
21
+ const FormErrorList_rslib_entry_ = FormErrorList;
22
+ export { FormErrorList_rslib_entry_ as default };
@@ -0,0 +1,6 @@
1
+ import "./FormErrorList_module.css";
2
+ const FormErrorList_module_rslib_entry_ = {
3
+ container: "container-fGqEFE",
4
+ small: "small-OeIrDo"
5
+ };
6
+ export { FormErrorList_module_rslib_entry_ as default };
@@ -0,0 +1,12 @@
1
+ .container-fGqEFE {
2
+ color: var(--color-red-t03);
3
+ align-items: center;
4
+ gap: var(--size-n2);
5
+ grid-template-columns: auto 1fr;
6
+ display: grid;
7
+ }
8
+
9
+ .small-OeIrDo {
10
+ font: var(--font-small);
11
+ }
12
+
@@ -0,0 +1,8 @@
1
+ import type { ReactElement } from "react";
2
+ import type { FormStatus } from "./_types";
3
+ type Props = {
4
+ id?: string;
5
+ status: FormStatus;
6
+ };
7
+ declare const FormStatusIndicator: ({ id, status }: Props) => ReactElement | null;
8
+ export default FormStatusIndicator;