@fortanix/baklava 1.0.0-beta-20241114

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 (454) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/LICENSE +373 -0
  3. package/README.md +43 -0
  4. package/app/Demo.tsx +33 -0
  5. package/app/index.html +12 -0
  6. package/app/lib.ts +54 -0
  7. package/app/main.tsx +32 -0
  8. package/dist/baklava.d.ts +752 -0
  9. package/dist/baklava.js +4962 -0
  10. package/dist/lib.css +1 -0
  11. package/package.json +102 -0
  12. package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-100.woff2 +0 -0
  13. package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-200.woff2 +0 -0
  14. package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-300.woff2 +0 -0
  15. package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-500.woff2 +0 -0
  16. package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-600.woff2 +0 -0
  17. package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-700.woff2 +0 -0
  18. package/src/assets/fonts/montserrat/montserrat-v25-latin_latin-ext-regular.woff2 +0 -0
  19. package/src/assets/fonts/open-sans/open-sans-v23-latin-600.woff2 +0 -0
  20. package/src/assets/fonts/open-sans/open-sans-v23-latin-700.woff2 +0 -0
  21. package/src/assets/fonts/open-sans/open-sans-v23-latin-regular.woff2 +0 -0
  22. package/src/assets/fonts/source-code-pro/source-code-pro-v14-latin-regular.woff2 +0 -0
  23. package/src/assets/icons/_icons.ts +58 -0
  24. package/src/assets/icons/accounts.svg +11 -0
  25. package/src/assets/icons/alert.svg +3 -0
  26. package/src/assets/icons/apache.svg +3 -0
  27. package/src/assets/icons/apps.svg +5 -0
  28. package/src/assets/icons/assessment.svg +11 -0
  29. package/src/assets/icons/audit-log.svg +12 -0
  30. package/src/assets/icons/authentication.svg +12 -0
  31. package/src/assets/icons/calendar.svg +10 -0
  32. package/src/assets/icons/caret-down.svg +3 -0
  33. package/src/assets/icons/check.svg +3 -0
  34. package/src/assets/icons/cloud-accounts.svg +15 -0
  35. package/src/assets/icons/copy.svg +4 -0
  36. package/src/assets/icons/cross.svg +4 -0
  37. package/src/assets/icons/dashboard.svg +12 -0
  38. package/src/assets/icons/dataverse.svg +12 -0
  39. package/src/assets/icons/delete.svg +5 -0
  40. package/src/assets/icons/docs.svg +10 -0
  41. package/src/assets/icons/download.svg +11 -0
  42. package/src/assets/icons/edit-params.svg +3 -0
  43. package/src/assets/icons/edit.svg +10 -0
  44. package/src/assets/icons/email.svg +3 -0
  45. package/src/assets/icons/eye.svg +11 -0
  46. package/src/assets/icons/file-error.svg +17 -0
  47. package/src/assets/icons/file.svg +15 -0
  48. package/src/assets/icons/folder.svg +14 -0
  49. package/src/assets/icons/fortanix-ki.svg +13 -0
  50. package/src/assets/icons/graph.svg +9 -0
  51. package/src/assets/icons/groups.svg +10 -0
  52. package/src/assets/icons/hide.svg +3 -0
  53. package/src/assets/icons/home.svg +11 -0
  54. package/src/assets/icons/iam.svg +11 -0
  55. package/src/assets/icons/info.svg +4 -0
  56. package/src/assets/icons/infrastructure.svg +5 -0
  57. package/src/assets/icons/integrations.svg +3 -0
  58. package/src/assets/icons/key-link.svg +12 -0
  59. package/src/assets/icons/key.svg +4 -0
  60. package/src/assets/icons/no-login.svg +10 -0
  61. package/src/assets/icons/page-forward.svg +4 -0
  62. package/src/assets/icons/plugins.svg +4 -0
  63. package/src/assets/icons/policy.svg +13 -0
  64. package/src/assets/icons/print.svg +11 -0
  65. package/src/assets/icons/scripts.svg +4 -0
  66. package/src/assets/icons/search.svg +3 -0
  67. package/src/assets/icons/security-object.svg +5 -0
  68. package/src/assets/icons/services.svg +10 -0
  69. package/src/assets/icons/settings.svg +12 -0
  70. package/src/assets/icons/solutions.svg +3 -0
  71. package/src/assets/icons/success.svg +3 -0
  72. package/src/assets/icons/tasks.svg +10 -0
  73. package/src/assets/icons/user-profile.svg +3 -0
  74. package/src/assets/icons/user.svg +10 -0
  75. package/src/assets/icons/warning.svg +3 -0
  76. package/src/assets/icons/workflows.svg +11 -0
  77. package/src/assets/icons_new/Accounts.svg +11 -0
  78. package/src/assets/icons_new/Alert.svg +3 -0
  79. package/src/assets/icons_new/Apache.svg +3 -0
  80. package/src/assets/icons_new/Apps.svg +5 -0
  81. package/src/assets/icons_new/Assessment.svg +11 -0
  82. package/src/assets/icons_new/Audit Log.svg +12 -0
  83. package/src/assets/icons_new/Authentication.svg +12 -0
  84. package/src/assets/icons_new/Calendar.svg +10 -0
  85. package/src/assets/icons_new/Carrot Down.svg +3 -0
  86. package/src/assets/icons_new/Cloud Accounts.svg +15 -0
  87. package/src/assets/icons_new/Copy.svg +4 -0
  88. package/src/assets/icons_new/Dashboard.svg +12 -0
  89. package/src/assets/icons_new/Dataverse.svg +12 -0
  90. package/src/assets/icons_new/Delete.svg +5 -0
  91. package/src/assets/icons_new/Docs.svg +10 -0
  92. package/src/assets/icons_new/Download.svg +11 -0
  93. package/src/assets/icons_new/Edit Params.svg +3 -0
  94. package/src/assets/icons_new/Edit.svg +10 -0
  95. package/src/assets/icons_new/Email.svg +3 -0
  96. package/src/assets/icons_new/Eye.svg +11 -0
  97. package/src/assets/icons_new/Groups.svg +10 -0
  98. package/src/assets/icons_new/Hide.svg +3 -0
  99. package/src/assets/icons_new/Home.svg +11 -0
  100. package/src/assets/icons_new/IAM.svg +11 -0
  101. package/src/assets/icons_new/Info.svg +4 -0
  102. package/src/assets/icons_new/Infrastructure.svg +5 -0
  103. package/src/assets/icons_new/Integrations.svg +3 -0
  104. package/src/assets/icons_new/KI.svg +13 -0
  105. package/src/assets/icons_new/Key Link.svg +12 -0
  106. package/src/assets/icons_new/Key.svg +4 -0
  107. package/src/assets/icons_new/No Login.svg +10 -0
  108. package/src/assets/icons_new/Page FWD.svg +4 -0
  109. package/src/assets/icons_new/Plugins.svg +4 -0
  110. package/src/assets/icons_new/Policy.svg +13 -0
  111. package/src/assets/icons_new/Print.svg +11 -0
  112. package/src/assets/icons_new/Scripts.svg +4 -0
  113. package/src/assets/icons_new/Search.svg +3 -0
  114. package/src/assets/icons_new/Security Objects.svg +5 -0
  115. package/src/assets/icons_new/Services.svg +10 -0
  116. package/src/assets/icons_new/Settings.svg +12 -0
  117. package/src/assets/icons_new/Solutions.svg +3 -0
  118. package/src/assets/icons_new/Tasks.svg +10 -0
  119. package/src/assets/icons_new/User Account.svg +3 -0
  120. package/src/assets/icons_new/Users.svg +10 -0
  121. package/src/assets/icons_new/Workflows.svg +11 -0
  122. package/src/assets/icons_old/_icons.ts +172 -0
  123. package/src/assets/icons_old/account.svg +4 -0
  124. package/src/assets/icons_old/accounts.svg +4 -0
  125. package/src/assets/icons_old/add.svg +4 -0
  126. package/src/assets/icons_old/alert.svg +4 -0
  127. package/src/assets/icons_old/app.svg +4 -0
  128. package/src/assets/icons_old/arrow-drop-down.svg +4 -0
  129. package/src/assets/icons_old/arrow-drop-up.svg +4 -0
  130. package/src/assets/icons_old/arrow-expand.svg +4 -0
  131. package/src/assets/icons_old/arrow-left.svg +5 -0
  132. package/src/assets/icons_old/arrow-right.svg +4 -0
  133. package/src/assets/icons_old/audit-log.svg +4 -0
  134. package/src/assets/icons_old/bell.svg +4 -0
  135. package/src/assets/icons_old/billing.svg +4 -0
  136. package/src/assets/icons_old/bug.svg +4 -0
  137. package/src/assets/icons_old/builds.svg +4 -0
  138. package/src/assets/icons_old/calendar.svg +4 -0
  139. package/src/assets/icons_old/certificate.svg +4 -0
  140. package/src/assets/icons_old/check.svg +4 -0
  141. package/src/assets/icons_old/checkbox-checked.svg +4 -0
  142. package/src/assets/icons_old/checkbox-disabled.svg +4 -0
  143. package/src/assets/icons_old/checkbox-unchecked.svg +4 -0
  144. package/src/assets/icons_old/chevron-left.svg +4 -0
  145. package/src/assets/icons_old/chevron-right.svg +4 -0
  146. package/src/assets/icons_old/clear-all.svg +4 -0
  147. package/src/assets/icons_old/color-picker.svg +10 -0
  148. package/src/assets/icons_old/connection.svg +4 -0
  149. package/src/assets/icons_old/copy.svg +4 -0
  150. package/src/assets/icons_old/cross-thin.svg +4 -0
  151. package/src/assets/icons_old/cross.svg +4 -0
  152. package/src/assets/icons_old/crypto-policy.svg +4 -0
  153. package/src/assets/icons_old/customers.svg +4 -0
  154. package/src/assets/icons_old/dashboard.svg +4 -0
  155. package/src/assets/icons_old/data-center.svg +4 -0
  156. package/src/assets/icons_old/data-connector-read.svg +6 -0
  157. package/src/assets/icons_old/data-connector-write.svg +6 -0
  158. package/src/assets/icons_old/dataset.svg +3 -0
  159. package/src/assets/icons_old/dataverse.svg +6 -0
  160. package/src/assets/icons_old/delete.svg +4 -0
  161. package/src/assets/icons_old/deployment-deployed.svg +4 -0
  162. package/src/assets/icons_old/deployment-none.svg +4 -0
  163. package/src/assets/icons_old/derive.svg +4 -0
  164. package/src/assets/icons_old/docs.svg +4 -0
  165. package/src/assets/icons_old/document-blank.svg +4 -0
  166. package/src/assets/icons_old/domain.svg +4 -0
  167. package/src/assets/icons_old/download-cloud.svg +4 -0
  168. package/src/assets/icons_old/download.svg +4 -0
  169. package/src/assets/icons_old/edit-params.svg +4 -0
  170. package/src/assets/icons_old/edit.svg +4 -0
  171. package/src/assets/icons_old/em-app.svg +4 -0
  172. package/src/assets/icons_old/em-dashboard.svg +4 -0
  173. package/src/assets/icons_old/email.svg +4 -0
  174. package/src/assets/icons_old/empty-credential.svg +4 -0
  175. package/src/assets/icons_old/enterprise-badge.svg +6 -0
  176. package/src/assets/icons_old/environment-production.svg +4 -0
  177. package/src/assets/icons_old/environment-test.svg +4 -0
  178. package/src/assets/icons_old/event-critical.svg +4 -0
  179. package/src/assets/icons_old/event-error.svg +4 -0
  180. package/src/assets/icons_old/event-success.svg +4 -0
  181. package/src/assets/icons_old/event-warning.svg +4 -0
  182. package/src/assets/icons_old/expiration.svg +4 -0
  183. package/src/assets/icons_old/export.svg +4 -0
  184. package/src/assets/icons_old/external.svg +4 -0
  185. package/src/assets/icons_old/eye-closed.svg +4 -0
  186. package/src/assets/icons_old/eye.svg +4 -0
  187. package/src/assets/icons_old/file.svg +7 -0
  188. package/src/assets/icons_old/flag.svg +4 -0
  189. package/src/assets/icons_old/forbid.svg +4 -0
  190. package/src/assets/icons_old/fortanix-app-aci.svg +6 -0
  191. package/src/assets/icons_old/fortanix-app-edp.svg +4 -0
  192. package/src/assets/icons_old/fortanix-app-enclave-os.svg +4 -0
  193. package/src/assets/icons_old/frame-expand.svg +4 -0
  194. package/src/assets/icons_old/fresh.svg +4 -0
  195. package/src/assets/icons_old/generated.svg +4 -0
  196. package/src/assets/icons_old/gift.svg +4 -0
  197. package/src/assets/icons_old/global.svg +4 -0
  198. package/src/assets/icons_old/group.svg +4 -0
  199. package/src/assets/icons_old/help.svg +4 -0
  200. package/src/assets/icons_old/home-info.svg +5 -0
  201. package/src/assets/icons_old/home.svg +4 -0
  202. package/src/assets/icons_old/horizontal-collapse.svg +5 -0
  203. package/src/assets/icons_old/horizontal-expand.svg +5 -0
  204. package/src/assets/icons_old/hsm.svg +4 -0
  205. package/src/assets/icons_old/info.svg +4 -0
  206. package/src/assets/icons_old/install.svg +4 -0
  207. package/src/assets/icons_old/integration.svg +7 -0
  208. package/src/assets/icons_old/key-clone.svg +4 -0
  209. package/src/assets/icons_old/key-custodian-policy.svg +10 -0
  210. package/src/assets/icons_old/key-destroy.svg +4 -0
  211. package/src/assets/icons_old/key-download.svg +4 -0
  212. package/src/assets/icons_old/key-justification-policy.svg +5 -0
  213. package/src/assets/icons_old/key-link.svg +4 -0
  214. package/src/assets/icons_old/key-metadata-policy.svg +5 -0
  215. package/src/assets/icons_old/key-primary.svg +11 -0
  216. package/src/assets/icons_old/key-remove.svg +4 -0
  217. package/src/assets/icons_old/key-rotation.svg +4 -0
  218. package/src/assets/icons_old/key-undo-policy.svg +10 -0
  219. package/src/assets/icons_old/key-wrapping.svg +6 -0
  220. package/src/assets/icons_old/key.svg +4 -0
  221. package/src/assets/icons_old/leave-account.svg +4 -0
  222. package/src/assets/icons_old/link.svg +4 -0
  223. package/src/assets/icons_old/lock-closed.svg +4 -0
  224. package/src/assets/icons_old/lock.svg +4 -0
  225. package/src/assets/icons_old/locked-user.svg +4 -0
  226. package/src/assets/icons_old/marketplace.svg +4 -0
  227. package/src/assets/icons_old/minus.svg +4 -0
  228. package/src/assets/icons_old/monitoring.svg +4 -0
  229. package/src/assets/icons_old/no-logging.svg +4 -0
  230. package/src/assets/icons_old/node-cluster.svg +4 -0
  231. package/src/assets/icons_old/node.svg +4 -0
  232. package/src/assets/icons_old/operations.svg +13 -0
  233. package/src/assets/icons_old/options.svg +4 -0
  234. package/src/assets/icons_old/play.svg +4 -0
  235. package/src/assets/icons_old/plug.svg +4 -0
  236. package/src/assets/icons_old/plugin-clone.svg +4 -0
  237. package/src/assets/icons_old/plugin.svg +4 -0
  238. package/src/assets/icons_old/plugins.svg +4 -0
  239. package/src/assets/icons_old/pod.svg +4 -0
  240. package/src/assets/icons_old/print.svg +4 -0
  241. package/src/assets/icons_old/projects.svg +11 -0
  242. package/src/assets/icons_old/python.svg +4 -0
  243. package/src/assets/icons_old/quorum.svg +4 -0
  244. package/src/assets/icons_old/refresh.svg +4 -0
  245. package/src/assets/icons_old/regenerate.svg +4 -0
  246. package/src/assets/icons_old/region.svg +4 -0
  247. package/src/assets/icons_old/reports.svg +3 -0
  248. package/src/assets/icons_old/request-approve.svg +4 -0
  249. package/src/assets/icons_old/request-decline.svg +4 -0
  250. package/src/assets/icons_old/reseller.svg +4 -0
  251. package/src/assets/icons_old/script.svg +7 -0
  252. package/src/assets/icons_old/search.svg +4 -0
  253. package/src/assets/icons_old/service-account.svg +4 -0
  254. package/src/assets/icons_old/settings.svg +4 -0
  255. package/src/assets/icons_old/sidebar-closed.svg +8 -0
  256. package/src/assets/icons_old/sidebar-open.svg +8 -0
  257. package/src/assets/icons_old/sign-out.svg +4 -0
  258. package/src/assets/icons_old/sign.svg +4 -0
  259. package/src/assets/icons_old/software.svg +4 -0
  260. package/src/assets/icons_old/sql-aggregate.svg +7 -0
  261. package/src/assets/icons_old/sql.svg +7 -0
  262. package/src/assets/icons_old/stack.svg +4 -0
  263. package/src/assets/icons_old/star-empty.svg +4 -0
  264. package/src/assets/icons_old/star-fill.svg +4 -0
  265. package/src/assets/icons_old/subscription.svg +5 -0
  266. package/src/assets/icons_old/support.svg +11 -0
  267. package/src/assets/icons_old/switcher.svg +4 -0
  268. package/src/assets/icons_old/sysadmin.svg +4 -0
  269. package/src/assets/icons_old/tag.svg +4 -0
  270. package/src/assets/icons_old/target.svg +4 -0
  271. package/src/assets/icons_old/tasks.svg +4 -0
  272. package/src/assets/icons_old/tfa-user.svg +4 -0
  273. package/src/assets/icons_old/tfa.svg +4 -0
  274. package/src/assets/icons_old/tokenization.svg +4 -0
  275. package/src/assets/icons_old/tools.svg +4 -0
  276. package/src/assets/icons_old/transition-from.svg +4 -0
  277. package/src/assets/icons_old/transition-to.svg +4 -0
  278. package/src/assets/icons_old/upload.svg +4 -0
  279. package/src/assets/icons_old/user-remove.svg +3 -0
  280. package/src/assets/icons_old/user.svg +4 -0
  281. package/src/assets/icons_old/view-type-cards.svg +4 -0
  282. package/src/assets/icons_old/view-type-list.svg +4 -0
  283. package/src/assets/icons_old/view-type-table.svg +4 -0
  284. package/src/assets/icons_old/warning.svg +4 -0
  285. package/src/assets/icons_old/workflow.svg +3 -0
  286. package/src/assets/icons_old/wrap.svg +4 -0
  287. package/src/assets/icons_old/wrench.svg +4 -0
  288. package/src/assets/images/fortanix_logo_icon.svg +20 -0
  289. package/src/components/actions/Button/Button.module.scss +81 -0
  290. package/src/components/actions/Button/Button.stories.tsx +262 -0
  291. package/src/components/actions/Button/Button.tsx +133 -0
  292. package/src/components/actions/ButtonAsLink/ButtonAsLink.module.scss +13 -0
  293. package/src/components/actions/ButtonAsLink/ButtonAsLink.stories.tsx +49 -0
  294. package/src/components/actions/ButtonAsLink/ButtonAsLink.tsx +56 -0
  295. package/src/components/actions/Link/Link.module.scss +38 -0
  296. package/src/components/actions/Link/Link.stories.tsx +54 -0
  297. package/src/components/actions/Link/Link.tsx +59 -0
  298. package/src/components/actions/LinkAsButton/LinkAsButton.stories.tsx +70 -0
  299. package/src/components/actions/LinkAsButton/LinkAsButton.tsx +59 -0
  300. package/src/components/containers/Alert/Alert.module.scss +41 -0
  301. package/src/components/containers/Alert/Alert.stories.tsx +47 -0
  302. package/src/components/containers/Alert/Alert.tsx +65 -0
  303. package/src/components/containers/Banner/Banner.module.scss +100 -0
  304. package/src/components/containers/Banner/Banner.stories.tsx +198 -0
  305. package/src/components/containers/Banner/Banner.tsx +121 -0
  306. package/src/components/containers/Card/Card.module.scss +32 -0
  307. package/src/components/containers/Card/Card.stories.tsx +67 -0
  308. package/src/components/containers/Card/Card.tsx +48 -0
  309. package/src/components/containers/Dialog/Dialog.module.scss +166 -0
  310. package/src/components/containers/Dialog/Dialog.stories.tsx +32 -0
  311. package/src/components/containers/Dialog/Dialog.tsx +130 -0
  312. package/src/components/containers/Panel/Panel.module.scss +32 -0
  313. package/src/components/containers/Panel/Panel.stories.tsx +46 -0
  314. package/src/components/containers/Panel/Panel.tsx +48 -0
  315. package/src/components/forms/context/Form/Form.module.scss +11 -0
  316. package/src/components/forms/context/Form/Form.stories.tsx +99 -0
  317. package/src/components/forms/context/Form/Form.tsx +106 -0
  318. package/src/components/forms/context/Form/FormOptics.tsx +109 -0
  319. package/src/components/forms/context/SubmitButton/SubmitButton.module.scss +9 -0
  320. package/src/components/forms/context/SubmitButton/SubmitButton.stories.tsx +132 -0
  321. package/src/components/forms/context/SubmitButton/SubmitButton.tsx +98 -0
  322. package/src/components/forms/controls/Checkbox/Checkbox.module.scss +67 -0
  323. package/src/components/forms/controls/Checkbox/Checkbox.stories.tsx +119 -0
  324. package/src/components/forms/controls/Checkbox/Checkbox.tsx +53 -0
  325. package/src/components/forms/controls/Input/Input.module.scss +40 -0
  326. package/src/components/forms/controls/Input/Input.stories.tsx +55 -0
  327. package/src/components/forms/controls/Input/Input.tsx +44 -0
  328. package/src/components/forms/controls/SegmentedControl/SegmentedControl.module.scss +76 -0
  329. package/src/components/forms/controls/SegmentedControl/SegmentedControl.stories.tsx +92 -0
  330. package/src/components/forms/controls/SegmentedControl/SegmentedControl.tsx +103 -0
  331. package/src/components/forms/controls/Select/Select.module.scss +105 -0
  332. package/src/components/forms/controls/Select/Select.stories.tsx +43 -0
  333. package/src/components/forms/controls/Select/Select.tsx +166 -0
  334. package/src/components/forms/controls/Switch/Switch.module.scss +63 -0
  335. package/src/components/forms/controls/Switch/Switch.stories.tsx +50 -0
  336. package/src/components/forms/controls/Switch/Switch.tsx +46 -0
  337. package/src/components/forms/fields/CheckboxField/CheckboxField.module.scss +46 -0
  338. package/src/components/forms/fields/CheckboxField/CheckboxField.stories.tsx +74 -0
  339. package/src/components/forms/fields/CheckboxField/CheckboxField.tsx +118 -0
  340. package/src/components/forms/fields/CheckboxGroup/CheckboxGroup.module.scss +22 -0
  341. package/src/components/forms/fields/CheckboxGroup/CheckboxGroup.stories.tsx +36 -0
  342. package/src/components/forms/fields/CheckboxGroup/CheckboxGroup.tsx +37 -0
  343. package/src/components/forms/fields/InputField/InputField.module.scss +24 -0
  344. package/src/components/forms/fields/InputField/InputField.stories.tsx +57 -0
  345. package/src/components/forms/fields/InputField/InputField.tsx +72 -0
  346. package/src/components/graphics/Icon/Icon.module.scss +42 -0
  347. package/src/components/graphics/Icon/Icon.stories.tsx +67 -0
  348. package/src/components/graphics/Icon/Icon.tsx +50 -0
  349. package/src/components/graphics/PlaceholderEmpty/PlaceholderEmpty.module.scss +76 -0
  350. package/src/components/graphics/PlaceholderEmpty/PlaceholderEmpty.stories.tsx +101 -0
  351. package/src/components/graphics/PlaceholderEmpty/PlaceholderEmpty.tsx +91 -0
  352. package/src/components/graphics/ProgressBar/ProgressBar.module.scss +43 -0
  353. package/src/components/graphics/ProgressBar/ProgressBar.stories.tsx +70 -0
  354. package/src/components/graphics/ProgressBar/ProgressBar.tsx +58 -0
  355. package/src/components/graphics/Spinner/Spinner.module.scss +61 -0
  356. package/src/components/graphics/Spinner/Spinner.stories.tsx +56 -0
  357. package/src/components/graphics/Spinner/Spinner.tsx +41 -0
  358. package/src/components/lists/PropertyList/PropertyList.module.scss +33 -0
  359. package/src/components/lists/PropertyList/PropertyList.stories.tsx +45 -0
  360. package/src/components/lists/PropertyList/PropertyList.tsx +60 -0
  361. package/src/components/navigations/Stepper/Stepper.module.scss +88 -0
  362. package/src/components/navigations/Stepper/Stepper.stories.tsx +68 -0
  363. package/src/components/navigations/Stepper/Stepper.tsx +95 -0
  364. package/src/components/navigations/Tabs/Tabs.module.scss +71 -0
  365. package/src/components/navigations/Tabs/Tabs.stories.tsx +106 -0
  366. package/src/components/navigations/Tabs/Tabs.tsx +121 -0
  367. package/src/components/overlays/DropdownMenu/DropdownMenu.module.scss +113 -0
  368. package/src/components/overlays/DropdownMenu/DropdownMenu.stories.tsx +91 -0
  369. package/src/components/overlays/DropdownMenu/DropdownMenu.tsx +155 -0
  370. package/src/components/overlays/DropdownMenu/DropdownMenuProvider.module.scss +105 -0
  371. package/src/components/overlays/DropdownMenu/DropdownMenuProvider.stories.tsx +71 -0
  372. package/src/components/overlays/DropdownMenu/DropdownMenuProvider.tsx +168 -0
  373. package/src/components/overlays/Modal/Modal.module.scss +185 -0
  374. package/src/components/overlays/Modal/Modal.stories.tsx +144 -0
  375. package/src/components/overlays/Modal/Modal.tsx +202 -0
  376. package/src/components/overlays/Toast/Toast.module.scss +123 -0
  377. package/src/components/overlays/Toast/Toast.stories.tsx +219 -0
  378. package/src/components/overlays/Toast/Toast.tsx +233 -0
  379. package/src/components/overlays/Toast/ToastyOverride.scss +27 -0
  380. package/src/components/overlays/Tooltip/Tooltip.module.scss +162 -0
  381. package/src/components/overlays/Tooltip/Tooltip.stories.tsx +115 -0
  382. package/src/components/overlays/Tooltip/Tooltip.tsx +75 -0
  383. package/src/components/overlays/Tooltip/TooltipProvider.stories.tsx +169 -0
  384. package/src/components/overlays/Tooltip/TooltipProvider.tsx +164 -0
  385. package/src/components/util/Clipboard/Clipboard.tsx +11 -0
  386. package/src/components/util/Popover/Popover.tsx +219 -0
  387. package/src/docs/Changelog.mdx +7 -0
  388. package/src/docs/Colors.mdx +113 -0
  389. package/src/docs/Colors.module.scss +56 -0
  390. package/src/docs/Iconography.mdx +70 -0
  391. package/src/docs/Iconography.module.scss +37 -0
  392. package/src/docs/Introduction.mdx +26 -0
  393. package/src/docs/Typography.mdx +109 -0
  394. package/src/docs/Typography.module.scss +22 -0
  395. package/src/layouts/AppLayout/AppLayout.module.scss +110 -0
  396. package/src/layouts/AppLayout/AppLayout.stories.tsx +112 -0
  397. package/src/layouts/AppLayout/AppLayout.tsx +31 -0
  398. package/src/layouts/AppLayout/Breadcrumbs/Breadcrumbs.module.scss +47 -0
  399. package/src/layouts/AppLayout/Breadcrumbs/Breadcrumbs.stories.tsx +66 -0
  400. package/src/layouts/AppLayout/Breadcrumbs/Breadcrumbs.tsx +63 -0
  401. package/src/layouts/AppLayout/Header/AccountSelector.module.scss +24 -0
  402. package/src/layouts/AppLayout/Header/AccountSelector.stories.tsx +31 -0
  403. package/src/layouts/AppLayout/Header/AccountSelector.tsx +51 -0
  404. package/src/layouts/AppLayout/Header/Header.module.scss +74 -0
  405. package/src/layouts/AppLayout/Header/Header.stories.tsx +30 -0
  406. package/src/layouts/AppLayout/Header/Header.tsx +31 -0
  407. package/src/layouts/AppLayout/Header/SolutionSelector.module.scss +24 -0
  408. package/src/layouts/AppLayout/Header/SolutionSelector.stories.tsx +31 -0
  409. package/src/layouts/AppLayout/Header/SolutionSelector.tsx +50 -0
  410. package/src/layouts/AppLayout/Header/UserMenu.module.scss +31 -0
  411. package/src/layouts/AppLayout/Header/UserMenu.stories.tsx +32 -0
  412. package/src/layouts/AppLayout/Header/UserMenu.tsx +67 -0
  413. package/src/layouts/AppLayout/Logo/Logo.module.scss +78 -0
  414. package/src/layouts/AppLayout/Logo/Logo.tsx +38 -0
  415. package/src/layouts/AppLayout/Nav/Nav.module.scss +73 -0
  416. package/src/layouts/AppLayout/Nav/Nav.stories.tsx +32 -0
  417. package/src/layouts/AppLayout/Nav/Nav.tsx +75 -0
  418. package/src/layouts/AppLayout/Sidebar/Sidebar.module.scss +46 -0
  419. package/src/layouts/AppLayout/Sidebar/Sidebar.stories.tsx +30 -0
  420. package/src/layouts/AppLayout/Sidebar/Sidebar.tsx +33 -0
  421. package/src/layouts/FormLayout/FormLayout.module.scss +19 -0
  422. package/src/layouts/FormLayout/FormLayout.stories.tsx +64 -0
  423. package/src/layouts/FormLayout/FormLayout.tsx +32 -0
  424. package/src/styling/accessibility.css +24 -0
  425. package/src/styling/context/theming.scss +26 -0
  426. package/src/styling/context/theming_mixins.scss +79 -0
  427. package/src/styling/defs.scss +60 -0
  428. package/src/styling/fonts.css +126 -0
  429. package/src/styling/fonts_mixins.scss +16 -0
  430. package/src/styling/global.scss +49 -0
  431. package/src/styling/lib/normalize.css +78 -0
  432. package/src/styling/lib/reset-custom.css +58 -0
  433. package/src/styling/lib/reset.css +115 -0
  434. package/src/styling/main.scss +29 -0
  435. package/src/styling/variables.css +18 -0
  436. package/src/styling/variables.scss +928 -0
  437. package/src/styling/variables.ts +64 -0
  438. package/src/types/globals.d.ts +14 -0
  439. package/src/types/vite-env.d.ts +1 -0
  440. package/src/typography/BodyText/BodyText.mixins.scss +224 -0
  441. package/src/typography/BodyText/BodyText.module.scss +28 -0
  442. package/src/typography/BodyText/BodyText.stories.tsx +109 -0
  443. package/src/typography/BodyText/BodyText.tsx +30 -0
  444. package/src/typography/Heading/Heading.mixins.scss +42 -0
  445. package/src/typography/Heading/Heading.module.scss +15 -0
  446. package/src/typography/Heading/Heading.stories.tsx +112 -0
  447. package/src/typography/Heading/Heading.tsx +57 -0
  448. package/src/util/componentUtil.ts +19 -0
  449. package/src/util/drag.ts +197 -0
  450. package/src/util/reactUtil.ts +40 -0
  451. package/src/util/storybook/OverflowTester.css +13 -0
  452. package/src/util/storybook/OverflowTester.tsx +30 -0
  453. package/src/util/time.ts +12 -0
  454. package/src/util/types.ts +8 -0
@@ -0,0 +1,752 @@
1
+ import { Argument } from 'classnames';
2
+ import * as React_2 from 'react';
3
+ import { ToastContainerProps } from 'react-toastify';
4
+ import { ToastContent } from 'react-toastify';
5
+ import { ToastOptions as ToastOptions_2 } from 'react-toastify';
6
+
7
+ export declare const AccountSelector: (props: AccountSelectorProps) => React_2.JSX.Element;
8
+
9
+ declare type AccountSelectorProps = Omit<ComponentProps<typeof Button>, 'label'> & {
10
+ /** Whether this component should be unstyled. */
11
+ unstyled?: undefined | boolean;
12
+ };
13
+
14
+ declare type ActionProps = React_2.PropsWithChildren<ComponentProps<typeof Button> & {
15
+ /** A unique identifier for this action. */
16
+ itemKey: OptionKey_2;
17
+ /** The human-readable label to be shown. */
18
+ label: string;
19
+ /** The icon to be displayed (if any). */
20
+ icon?: undefined | IconName;
21
+ /** The event handler for when the user activates this action. */
22
+ onActivate: (context: DropdownMenuContext) => void;
23
+ }>;
24
+
25
+ /**
26
+ * Alert component.
27
+ */
28
+ export declare const Alert: (props: AlertProps) => React_2.JSX.Element;
29
+
30
+ declare type AlertProps = React_2.PropsWithChildren<ComponentProps<typeof Panel> & {
31
+ /** Whether this component should be unstyled. */
32
+ unstyled?: undefined | boolean;
33
+ kind: 'info' | 'warning' | 'error' | 'success';
34
+ }>;
35
+
36
+ /**
37
+ * AppLayout component.
38
+ */
39
+ export declare const AppLayout: (props: AppLayoutProps) => React_2.JSX.Element;
40
+
41
+ declare type AppLayoutProps = React_2.PropsWithChildren<ComponentProps<'div'> & {
42
+ /** Whether this component should be unstyled. */
43
+ unstyled?: undefined | boolean;
44
+ }>;
45
+
46
+ /**
47
+ * A banner component, similar to a toast.
48
+ */
49
+ export declare const Banner: (props: BannerProps) => React_2.JSX.Element | null;
50
+
51
+ declare type BannerProps = React_2.PropsWithChildren<ComponentProps<'div'> & {
52
+ /**
53
+ * Whether the component should include the default styling. Defaults to false.
54
+ */
55
+ unstyled?: undefined | boolean;
56
+ /**
57
+ * Which variant to display, which changes the color and left icon. Defaults to "informational".
58
+ */
59
+ variant?: undefined | 'informational' | 'success' | 'warning' | 'alert';
60
+ /**
61
+ * The message to displayed on the banner. Mandatory.
62
+ */
63
+ title: string;
64
+ /**
65
+ * A sub message to be displayed next to the title. Optional.
66
+ */
67
+ subtitle?: undefined | string;
68
+ /**
69
+ * Whether the banner can be closed. Optional. Defaults to false.
70
+ */
71
+ closeButton?: boolean;
72
+ /**
73
+ * Any additional actions to be shown in the banner, such as a button.
74
+ */
75
+ actions?: undefined | React_2.ReactNode;
76
+ }>;
77
+
78
+ declare type BreadcrumbItem = ComponentProps<'li'> & {
79
+ title: string;
80
+ href: string;
81
+ };
82
+
83
+ /**
84
+ * A breadcrumbs component
85
+ */
86
+ export declare const Breadcrumbs: (props: BreadcrumbsProps) => React_2.JSX.Element;
87
+
88
+ declare type BreadcrumbsProps = React_2.PropsWithChildren<ComponentProps<'nav'> & {
89
+ /** Whether this component should be unstyled. */
90
+ unstyled?: undefined | boolean;
91
+ /** The routing informations */
92
+ items: BreadcrumbItem[];
93
+ /** Whether the last breadcrumb item has slash or not. */
94
+ hasTrailingSlash?: boolean;
95
+ }>;
96
+
97
+ /**
98
+ * Button component.
99
+ */
100
+ export declare const Button: (props: ButtonProps) => React_2.JSX.Element;
101
+
102
+ /**
103
+ * Button, but with the appearance of a link.
104
+ */
105
+ export declare const ButtonAsLink: (props: ButtonAsLinkProps) => React_2.JSX.Element;
106
+
107
+ declare type ButtonAsLinkProps = React_2.PropsWithChildren<ComponentProps<'button'> & {
108
+ /** Whether this component should be unstyled. */
109
+ unstyled?: undefined | boolean;
110
+ size?: NonNullable<LinkProps['size']>;
111
+ label?: NonNullable<LinkProps['label']>;
112
+ onPress?: NonNullable<ButtonProps['onPress']>;
113
+ }>;
114
+
115
+ declare type ButtonProps = React_2.PropsWithChildren<Omit<ComponentProps<'button'>, 'type'> & {
116
+ /** Whether this component should be unstyled. */
117
+ unstyled?: undefined | boolean;
118
+ /**
119
+ * The label of the button. Additional UI elements may be added, e.g. a loading indicator. If full control over
120
+ * the button content is desired, use `children` instead, this overrides the `label`.
121
+ */
122
+ label?: undefined | string;
123
+ /** What variant the button is, from higher prominance to lower. */
124
+ variant?: undefined | 'primary' | 'secondary' | 'tertiary';
125
+ /**
126
+ * Whether the button is in "nonactive" state. This is a variant of `disabled`, but instead of completely graying
127
+ * out the button, it only becomes a muted variation of the button's appearance. When true, also implies `disabled`.
128
+ */
129
+ nonactive?: undefined | boolean;
130
+ /** Time (in ms) after which async actions will trigger a failure */
131
+ asyncTimeout?: number;
132
+ /** Event handler for button press events. */
133
+ onPress?: undefined | (() => void | Promise<void>);
134
+ }>;
135
+
136
+ /**
137
+ * Card component, a container similar to a panel but smaller and usually used in a list or grid.
138
+ */
139
+ export declare const Card: ((props: CardProps) => React_2.JSX.Element) & {
140
+ Heading: (props: CardHeadingProps) => React_2.JSX.Element;
141
+ };
142
+
143
+ declare type CardHeadingProps = React_2.PropsWithChildren<ComponentProps<typeof H5>>;
144
+
145
+ declare type CardProps = React_2.PropsWithChildren<ComponentProps<'section'> & {
146
+ /** Whether this component should be unstyled. */
147
+ unstyled?: undefined | boolean;
148
+ }>;
149
+
150
+ /**
151
+ * A simple Checkbox control, just the &lt;input type="checkbox"&gt; and nothing else..
152
+ */
153
+ export declare const Checkbox: (props: CheckboxProps) => React_2.JSX.Element;
154
+
155
+ declare type CheckboxProps = ComponentProps<'input'> & {
156
+ /** Whether this component should be unstyled. */
157
+ unstyled?: undefined | boolean;
158
+ /** Whether the checkbox is in indeterminate state (minus sign) */
159
+ indeterminate?: undefined | boolean;
160
+ };
161
+
162
+ declare type ComponentProps<T extends React.ElementType> = Omit<React.ComponentPropsWithRef<T>, 'className'> & {
163
+ className?: undefined | Argument;
164
+ };
165
+
166
+ declare type Decoration = ({
167
+ type: 'background-circle';
168
+ });
169
+
170
+ /**
171
+ * Dialog component.
172
+ */
173
+ export declare const Dialog: ({ children, unstyled, className, active, onClose }: DialogProps) => React_2.JSX.Element;
174
+
175
+ declare type DialogProps = React_2.PropsWithChildren<{
176
+ unstyled?: boolean;
177
+ active: boolean;
178
+ className?: Argument;
179
+ onClose: () => void;
180
+ }>;
181
+
182
+ /**
183
+ * Dropdown menu with a list of selectable options.
184
+ */
185
+ export declare const DropdownMenu: ((props: DropdownMenuProps) => React_2.JSX.Element) & {
186
+ Action: (props: ActionProps) => React_2.JSX.Element;
187
+ Option: (props: OptionProps_2) => React_2.JSX.Element;
188
+ };
189
+
190
+ declare type DropdownMenuContext = {
191
+ optionProps?: undefined | ((optionState: OptionState) => Record<string, unknown>);
192
+ selectedOption: null | OptionKey_2;
193
+ selectOption: (option: OptionDef) => void;
194
+ close: () => void;
195
+ };
196
+
197
+ declare const DropdownMenuContext: React_2.Context<DropdownMenuContext | null>;
198
+
199
+ declare type DropdownMenuProps = React_2.PropsWithChildren<ComponentProps<'ul'> & {
200
+ /** Whether this component should be unstyled. */
201
+ unstyled?: undefined | boolean;
202
+ }>;
203
+
204
+ /**
205
+ * Top-level form wrapper component.
206
+ */
207
+ export declare const Form: (props: FormProps) => React_2.JSX.Element;
208
+
209
+ /**
210
+ * Standard vertical form layout.
211
+ */
212
+ export declare const FormLayout: (props: FormLayoutProps) => React_2.JSX.Element;
213
+
214
+ declare type FormLayoutProps = React_2.PropsWithChildren<ComponentProps<'div'> & {
215
+ /** Whether this component should be unstyled. */
216
+ unstyled?: undefined | boolean;
217
+ }>;
218
+
219
+ declare type FormProps = React_2.PropsWithChildren<ComponentProps<'form'> & {
220
+ /** Whether this component should be unstyled. */
221
+ unstyled?: undefined | boolean;
222
+ /** Whether this form should be nestable (i.e. can contain other `<form>` elements). */
223
+ nestable?: undefined | boolean;
224
+ }>;
225
+
226
+ declare type GetReferenceProps = (userProps?: undefined | React_2.HTMLProps<Element>) => Record<string, unknown>;
227
+
228
+ declare const H4: ({ unstyled, ...props }: H4Props) => React_2.JSX.Element;
229
+
230
+ declare type H4Props = React_2.PropsWithChildren<ComponentProps<'h4'> & {
231
+ /** Whether this component should be unstyled. */
232
+ unstyled?: undefined | boolean;
233
+ }>;
234
+
235
+ declare const H5: ({ unstyled, ...props }: H5Props) => React_2.JSX.Element;
236
+
237
+ declare type H5Props = React_2.PropsWithChildren<ComponentProps<'h5'> & {
238
+ /** Whether this component should be unstyled. */
239
+ unstyled?: undefined | boolean;
240
+ }>;
241
+
242
+ /**
243
+ * Header component (for app layout).
244
+ */
245
+ export declare const Header: ({ children, unstyled, ...propsRest }: HeaderProps) => React_2.JSX.Element;
246
+
247
+ declare type HeaderProps = React_2.PropsWithChildren<ComponentProps<'header'> & {
248
+ /** Whether this component should be unstyled. */
249
+ unstyled?: undefined | boolean;
250
+ }>;
251
+
252
+ export declare const Icon: ({ unstyled, icon, color, decoration, ...props }: IconProps) => React_2.JSX.Element;
253
+
254
+ declare type IconName = keyof typeof icons;
255
+
256
+ declare type IconProps = React_2.PropsWithChildren<ComponentProps<'svg'> & {
257
+ /** Whether this component should be unstyled. */
258
+ unstyled?: boolean;
259
+ /** The name of the icon to display */
260
+ icon: IconName;
261
+ /** The color to apply to the icon */
262
+ color?: undefined | string;
263
+ /** Visual decoration to apply */
264
+ decoration?: undefined | Decoration;
265
+ }>;
266
+
267
+ declare const icons: {
268
+ readonly accounts: {};
269
+ readonly alert: {};
270
+ readonly apps: {};
271
+ readonly assessment: {};
272
+ readonly 'audit-log': {};
273
+ readonly authentication: {};
274
+ readonly calendar: {};
275
+ readonly 'caret-down': {};
276
+ readonly check: {};
277
+ readonly 'cloud-accounts': {};
278
+ readonly copy: {};
279
+ readonly cross: {};
280
+ readonly dashboard: {};
281
+ readonly dataverse: {};
282
+ readonly delete: {};
283
+ readonly docs: {};
284
+ readonly download: {};
285
+ readonly 'edit-params': {};
286
+ readonly edit: {};
287
+ readonly email: {};
288
+ readonly eye: {};
289
+ readonly file: {};
290
+ readonly 'file-error': {};
291
+ readonly 'fortanix-ki': {};
292
+ readonly folder: {};
293
+ readonly graph: {};
294
+ readonly groups: {};
295
+ readonly hide: {};
296
+ readonly home: {};
297
+ readonly iam: {};
298
+ readonly info: {};
299
+ readonly infrastructure: {};
300
+ readonly integrations: {};
301
+ readonly 'key-link': {};
302
+ readonly key: {};
303
+ readonly 'no-login': {};
304
+ readonly 'page-forward': {};
305
+ readonly plugins: {};
306
+ readonly policy: {};
307
+ readonly print: {};
308
+ readonly scripts: {};
309
+ readonly search: {};
310
+ readonly 'security-object': {};
311
+ readonly services: {};
312
+ readonly settings: {};
313
+ readonly solutions: {};
314
+ readonly success: {};
315
+ readonly tasks: {};
316
+ readonly 'user-profile': {};
317
+ readonly user: {};
318
+ readonly warning: {};
319
+ readonly workflows: {};
320
+ };
321
+
322
+ /**
323
+ * Input control.
324
+ */
325
+ export declare const Input: ({ unstyled, type, ...propsRest }: InputProps) => React_2.JSX.Element;
326
+
327
+ /**
328
+ * Input field.
329
+ */
330
+ export declare const InputField: (props: InputFieldProps) => React_2.JSX.Element;
331
+
332
+ declare type InputFieldProps = ComponentProps<'input'> & {
333
+ /** Whether this component should be unstyled. */
334
+ unstyled?: undefined | boolean;
335
+ /** Label for the input. */
336
+ label?: undefined | React_2.ReactNode;
337
+ /** Props for the `<label>` element, if `label` is defined. */
338
+ labelProps?: undefined | ComponentProps<'label'>;
339
+ /** Props for the wrapper element. */
340
+ wrapperProps?: undefined | ComponentProps<'div'>;
341
+ };
342
+
343
+ declare type InputProps = Omit<ComponentProps<'input'>, 'type'> & {
344
+ /** Whether this component should be unstyled. */
345
+ unstyled?: undefined | boolean;
346
+ /** The type of the input. */
347
+ type?: undefined | Exclude<ComponentProps<'input'>['type'], 'button' | 'submit' | 'reset'>;
348
+ };
349
+
350
+ /**
351
+ * Link component.
352
+ */
353
+ export declare const Link: (props: LinkProps) => React_2.JSX.Element;
354
+
355
+ /**
356
+ * Link component, but with the appearance of a button.
357
+ */
358
+ export declare const LinkAsButton: (props: LinkAsButtonProps) => React_2.JSX.Element;
359
+
360
+ /**
361
+ * A link, but with the visual appearance of a button.
362
+ */
363
+ declare type LinkAsButtonProps = React_2.PropsWithChildren<ComponentProps<'a'> & {
364
+ /** Whether this component should be unstyled. */
365
+ unstyled?: undefined | boolean;
366
+ label?: NonNullable<LinkProps['label']>;
367
+ variant?: NonNullable<ButtonProps['variant']>;
368
+ nonactive?: NonNullable<ButtonProps['nonactive']>;
369
+ disabled?: NonNullable<ButtonProps['disabled']>;
370
+ }>;
371
+
372
+ declare type LinkProps = React_2.PropsWithChildren<ComponentProps<'a'> & {
373
+ /** Whether this component should be unstyled. */
374
+ unstyled?: undefined | boolean;
375
+ size?: 'small' | 'medium';
376
+ /**
377
+ * The label of the link. Additional UI elements may be added, e.g. a loading indicator. If full control over
378
+ * the link content is desired, use `children` instead, this overrides the `label`.
379
+ */
380
+ label?: undefined | string;
381
+ }>;
382
+
383
+ /**
384
+ * Logo component.
385
+ */
386
+ export declare const Logo: ({ ...propsRest }: LogoProps) => React_2.JSX.Element;
387
+
388
+ declare type LogoProps = React_2.PropsWithChildren<ComponentProps<'figure'>>;
389
+
390
+ /**
391
+ * Modal component.
392
+ */
393
+ export declare const Modal: {
394
+ ({ children, unstyled, className, size, closeable, active, onClose, }: ModalProps): React_2.JSX.Element;
395
+ Content: ({ children, unstyled, className }: ModalContentProps) => React_2.JSX.Element;
396
+ Header: ({ children, unstyled, className }: ModalHeaderProps) => React_2.JSX.Element;
397
+ Footer: ({ children, unstyled, className }: ModalFooterProps) => React_2.JSX.Element;
398
+ };
399
+
400
+ declare type ModalContentProps = React_2.PropsWithChildren<{
401
+ unstyled?: boolean;
402
+ className?: Argument;
403
+ }>;
404
+
405
+ declare type ModalFooterProps = React_2.PropsWithChildren<{
406
+ unstyled?: boolean;
407
+ className?: Argument;
408
+ }>;
409
+
410
+ declare type ModalHeaderProps = React_2.PropsWithChildren<{
411
+ unstyled?: boolean;
412
+ className?: Argument;
413
+ }>;
414
+
415
+ declare type ModalProps = React_2.PropsWithChildren<{
416
+ unstyled?: boolean;
417
+ size?: 'small' | 'medium' | 'large' | 'x-large' | 'fullscreen';
418
+ active: boolean;
419
+ className?: Argument;
420
+ onClose: () => void;
421
+ closeable?: boolean;
422
+ }>;
423
+
424
+ /**
425
+ * Nav component.
426
+ */
427
+ export declare const Nav: (({ unstyled, children, className, ...propsRest }: NavProps) => React_2.JSX.Element) & {
428
+ NavItem: (props: NavItemProps) => React_2.JSX.Element;
429
+ };
430
+
431
+ declare type NavItemProps = React_2.PropsWithChildren<ComponentProps<'li'> & {
432
+ /** Whether this component should be unstyled. */
433
+ unstyled?: undefined | boolean;
434
+ href?: undefined | string;
435
+ icon?: undefined | IconName;
436
+ label?: undefined | string;
437
+ active?: undefined | boolean;
438
+ }>;
439
+
440
+ declare type NavProps = React_2.PropsWithChildren<ComponentProps<'nav'> & {
441
+ /** Whether this component should be unstyled. */
442
+ unstyled?: undefined | boolean;
443
+ }>;
444
+
445
+ declare type NotifyProps = {
446
+ /** A title of this component. */
447
+ title: string | React_2.ReactNode;
448
+ /** A message of this component. */
449
+ message?: ToastContent;
450
+ /** Options of this component. */
451
+ options?: ToastOptions;
452
+ };
453
+
454
+ /**
455
+ * Form control to select an item from a list of options through a dropdown.
456
+ */
457
+ declare const Option_2: (props: OptionProps) => React_2.JSX.Element;
458
+
459
+ declare type OptionDef = {
460
+ optionKey: OptionKey_2;
461
+ label: string;
462
+ };
463
+
464
+ declare type OptionKey = string;
465
+
466
+ declare type OptionKey_2 = string;
467
+
468
+ declare type OptionProps = React_2.PropsWithChildren<ComponentProps<typeof Button> & {
469
+ /** A unique identifier for this option. */
470
+ optionKey: OptionKey;
471
+ /** The human-readable label to be shown. */
472
+ label: string;
473
+ }>;
474
+
475
+ declare type OptionProps_2 = React_2.PropsWithChildren<ComponentProps<typeof Button> & {
476
+ /** A unique identifier for this option. */
477
+ optionKey: OptionKey_2;
478
+ /** The human-readable label to be shown. */
479
+ label: string;
480
+ /** The icon to be displayed (if any) */
481
+ icon?: undefined | IconName;
482
+ }>;
483
+
484
+ declare type OptionState = {
485
+ option: OptionDef;
486
+ selected: boolean;
487
+ };
488
+
489
+ /**
490
+ * Panel component.
491
+ */
492
+ export declare const Panel: ((props: PanelProps) => React_2.JSX.Element) & {
493
+ Heading: (props: PanelHeadingProps) => React_2.JSX.Element;
494
+ };
495
+
496
+ declare type PanelHeadingProps = React_2.PropsWithChildren<ComponentProps<typeof H4>>;
497
+
498
+ declare type PanelProps = React_2.PropsWithChildren<ComponentProps<'section'> & {
499
+ /** Whether this component should be unstyled. */
500
+ unstyled?: undefined | boolean;
501
+ }>;
502
+
503
+ /**
504
+ * A way to display progress to complete a task or the time remaining.
505
+ */
506
+ export declare const ProgressBar: (props: ProgressBarProps) => React_2.JSX.Element;
507
+
508
+ declare type ProgressBarProps = React_2.PropsWithChildren<ComponentProps<'progress'> & {
509
+ /** Whether this component should be unstyled. */
510
+ unstyled?: undefined | boolean;
511
+ /** The progress it should be displaying as in percent, ranging from 0 to 100. */
512
+ progress: number;
513
+ /** An optional label, displayed as the progress bar title. */
514
+ label?: undefined | string;
515
+ /** An optional hint text, displayed after the progress bar. */
516
+ hintText?: undefined | string;
517
+ }>;
518
+
519
+ export declare const PropertyList: (({ unstyled, ...propsRest }: PropertyListProps) => React_2.JSX.Element) & {
520
+ Property: ({ unstyled, label, value, fullWidth, ...propsRest }: PropertyProps) => React_2.JSX.Element;
521
+ };
522
+
523
+ declare type PropertyListProps = React_2.PropsWithChildren<ComponentProps<'dl'> & {
524
+ /** Whether this component should be unstyled. */
525
+ unstyled?: undefined | boolean;
526
+ }>;
527
+
528
+ declare type PropertyProps = ComponentProps<'div'> & {
529
+ /** Whether this component should be unstyled. */
530
+ unstyled?: undefined | boolean;
531
+ /** The label of the property */
532
+ label: React_2.ReactNode;
533
+ /** The value of the property */
534
+ value: React_2.ReactNode;
535
+ /** Whether this property should take up all available space */
536
+ fullWidth?: boolean;
537
+ };
538
+
539
+ /**
540
+ * Set of buttons to switch between various options.
541
+ */
542
+ export declare const SegmentedControl: (props: SegmentedControlProps) => React_2.JSX.Element;
543
+
544
+ declare type SegmentedControlProps = React_2.PropsWithChildren<ComponentProps<'ul'> & {
545
+ /** Whether this component should be unstyled. */
546
+ unstyled?: undefined | boolean;
547
+ /** What options segmented control has */
548
+ options: Array<string> | Array<SegmentedOption>;
549
+ /** What default option segmented control has */
550
+ defaultValue: string;
551
+ /** Whether segmented control is disabled or not */
552
+ disabled?: boolean;
553
+ /** Event handler for segmented-control button change events. */
554
+ onChange?: (option: string) => void;
555
+ }>;
556
+
557
+ declare type SegmentedOption = {
558
+ label: string;
559
+ value: string;
560
+ className?: string;
561
+ };
562
+
563
+ /**
564
+ * Form control to select an item from a dropdown of options.
565
+ */
566
+ export declare const Select: ((props: SelectProps) => React_2.JSX.Element) & {
567
+ Option: (props: OptionProps) => React_2.JSX.Element;
568
+ };
569
+
570
+ declare type SelectProps = ComponentProps<typeof Button> & {
571
+ children: React_2.ReactElement<typeof Option_2> | Array<React_2.ReactElement<typeof Option_2>>;
572
+ /** Whether this component should be unstyled. */
573
+ unstyled?: undefined | boolean;
574
+ /** Whether the select control can be searched by typing in the input. */
575
+ searchable?: undefined | boolean;
576
+ };
577
+
578
+ /**
579
+ * Sidebar component (for app layout).
580
+ */
581
+ export declare const Sidebar: ({ children, unstyled, ...propsRest }: SidebarProps) => React_2.JSX.Element;
582
+
583
+ declare type SidebarProps = React_2.PropsWithChildren<ComponentProps<'aside'> & {
584
+ /** Whether this component should be unstyled. */
585
+ unstyled?: undefined | boolean;
586
+ }>;
587
+
588
+ export declare const SolutionSelector: (props: SolutionSelectorProps) => React_2.JSX.Element;
589
+
590
+ declare type SolutionSelectorProps = Omit<ComponentProps<typeof Button>, 'label'> & {
591
+ /** Whether this component should be unstyled. */
592
+ unstyled?: undefined | boolean;
593
+ };
594
+
595
+ export declare const Spinner: ({ inline, size, ...props }: SpinnerProps) => React_2.JSX.Element;
596
+
597
+ declare type SpinnerProps = React_2.PropsWithChildren<ComponentProps<'div'> & {
598
+ /**
599
+ * If the spinner should be inline. Optional parameter. Defaults to false.
600
+ */
601
+ inline?: undefined | boolean;
602
+ /**
603
+ * The size of spinner. Optional parameter. Can be "small", "medium" or "large". Defaults to "small".
604
+ */
605
+ size?: undefined | 'large' | 'medium' | 'small';
606
+ }>;
607
+
608
+ declare type Step = {
609
+ stepKey: string;
610
+ title: React_2.ReactNode;
611
+ className?: Argument;
612
+ hide?: boolean;
613
+ isOptional?: boolean;
614
+ };
615
+
616
+ /**
617
+ * A stepper component
618
+ */
619
+ export declare const Stepper: (props: StepperProps) => React_2.JSX.Element;
620
+
621
+ declare type StepperDirection = 'vertical' | 'horizontal';
622
+
623
+ declare type StepperKey = Step['stepKey'];
624
+
625
+ declare type StepperProps = React_2.PropsWithChildren<ComponentProps<'ul'> & {
626
+ /** Whether this component should be unstyled. */
627
+ unstyled?: undefined | boolean;
628
+ /** Step items. */
629
+ steps: Step[];
630
+ /** Active key of step. */
631
+ activeKey?: string;
632
+ /** Whether this component should be displayed vertically or horizontally. */
633
+ direction?: StepperDirection;
634
+ /** Callback executed when active step is changed. */
635
+ onSwitch: (stepKey: StepperKey) => void;
636
+ }>;
637
+
638
+ /**
639
+ * Button to submit the current form.
640
+ */
641
+ export declare const SubmitButton: (props: SubmitButtonProps) => React_2.JSX.Element;
642
+
643
+ declare type SubmitButtonProps = ComponentProps<typeof Button> & {
644
+ /** Time (in ms) after which async actions will trigger a failure */
645
+ asyncTimeout?: number;
646
+ /** Event handler for button press events. */
647
+ onPress?: undefined | (() => void | Promise<void>);
648
+ };
649
+
650
+ export declare const Tab: ({ children }: TabProps) => React_2.ReactElement;
651
+
652
+ declare type TabKey = string;
653
+
654
+ declare type TabProps = ComponentProps<'div'> & {
655
+ children?: undefined | React_2.ReactNode;
656
+ tabKey: string;
657
+ title: React_2.ReactNode;
658
+ hide?: boolean;
659
+ render?: () => React_2.ReactNode;
660
+ };
661
+
662
+ /**
663
+ * A tab component
664
+ */
665
+ export declare const Tabs: (props: TabsProps) => React_2.JSX.Element;
666
+
667
+ declare type TabsProps = React_2.PropsWithChildren<ComponentProps<'div'> & {
668
+ /** Whether this component should be unstyled. */
669
+ unstyled?: undefined | boolean;
670
+ /** Active key of tab. */
671
+ activeKey?: string;
672
+ /** Callback executed when active tab is changed. */
673
+ onSwitch: (tabKey: TabKey) => void;
674
+ }>;
675
+
676
+ export { ToastContent }
677
+
678
+ export declare const ToastMessage: (props: NotifyProps) => React_2.ReactElement;
679
+
680
+ declare type ToastOptions = Omit<ToastOptions_2, 'bodyClassName'> & {
681
+ className?: Argument;
682
+ bodyClassName?: Argument;
683
+ actions?: React_2.ReactElement;
684
+ };
685
+
686
+ export declare const ToastProvider: (props: ToastProviderProps) => React_2.JSX.Element;
687
+
688
+ declare type ToastProviderProps = Omit<ToastContainerProps, 'className'> & {
689
+ /** Whether this component should be unstyled. */
690
+ unstyled?: undefined | boolean;
691
+ /** A classname of this component. */
692
+ className?: Argument;
693
+ /** Whether this component should have a close button. */
694
+ hasCloseButton?: boolean;
695
+ /** Whether this component should display progress bar. */
696
+ showProgressBar?: boolean;
697
+ /** Components or elements to be rendered within the Provider. */
698
+ children: React_2.ReactNode;
699
+ };
700
+
701
+ /**
702
+ * A tooltip. Used by `TooltipProvider` to display a tooltip popover.
703
+ */
704
+ export declare const Tooltip: ({ unstyled, size, ...propsRest }: TooltipProps) => React_2.JSX.Element;
705
+
706
+ declare type TooltipProps = React_2.PropsWithChildren<ComponentProps<'div'> & {
707
+ /** Whether this component should be unstyled. */
708
+ unstyled?: undefined | boolean;
709
+ /** Whether you want the component to have a fixed width. If unset, it will have dynamic size. */
710
+ size?: undefined | TooltipSize;
711
+ }>;
712
+
713
+ /**
714
+ * Provider around an anchor element to attach a tooltip popover.
715
+ */
716
+ export declare const TooltipProvider: (props: TooltipProviderProps) => React_2.JSX.Element;
717
+
718
+ declare type TooltipProviderProps = Omit<TooltipProps, 'children'> & {
719
+ /**
720
+ * The content to render, which should contain the anchor. This should be a render prop which takes props to
721
+ * apply on the anchor element. Alternatively, a single element can be provided to which the props are applied.
722
+ */
723
+ children?: ((getReferenceProps: GetReferenceProps) => React_2.ReactNode) | React_2.ReactNode;
724
+ /**
725
+ * The tooltip message. If nullish, the tooltip will not be shown at all. This is useful in case the tooltip should
726
+ * be shown conditionally.
727
+ */
728
+ tooltip?: null | React_2.ReactNode;
729
+ /** Where to show the tooltip relative to the anchor. */
730
+ placement?: undefined | 'top' | 'bottom' | 'left' | 'right';
731
+ /** Enable more precise tracking of the anchor, at the cost of performance. */
732
+ enablePreciseTracking?: undefined | boolean;
733
+ /** A custom boundary to use to determine overflow of the tooltip. */
734
+ boundary?: undefined | Element;
735
+ /** Callback that is invoked when the tooltip gets activated. */
736
+ onTooltipActivated?: () => void;
737
+ /** Callback that is invoked when the tooltip gets deactivated. */
738
+ onTooltipDeactivated?: () => void;
739
+ };
740
+
741
+ declare type TooltipSize = 'small' | 'medium' | 'large';
742
+
743
+ export declare const UserMenu: (props: UserMenuProps) => React_2.JSX.Element;
744
+
745
+ declare type UserMenuProps = Omit<ComponentProps<typeof Button>, 'label'> & {
746
+ /** Whether this component should be unstyled. */
747
+ unstyled?: undefined | boolean;
748
+ /** The user's name */
749
+ userName?: undefined | string;
750
+ };
751
+
752
+ export { }