@punkbit/cui 0.0.247-rc.2

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 (402) hide show
  1. package/LICENSE +203 -0
  2. package/dist/App.d.ts +2 -0
  3. package/dist/click-ui.bundled.es.js +40872 -0
  4. package/dist/click-ui.bundled.es.js.map +1 -0
  5. package/dist/click-ui.bundled.umd.js +1466 -0
  6. package/dist/click-ui.bundled.umd.js.map +1 -0
  7. package/dist/click-ui.es.js +39632 -0
  8. package/dist/click-ui.es.js.map +1 -0
  9. package/dist/click-ui.umd.js +1407 -0
  10. package/dist/click-ui.umd.js.map +1 -0
  11. package/dist/clickhouse-backs.png +0 -0
  12. package/dist/components/Accordion/Accordion.d.ts +30 -0
  13. package/dist/components/Alert/Alert.d.ts +31 -0
  14. package/dist/components/AutoComplete/AutoComplete.d.ts +67 -0
  15. package/dist/components/AutoComplete/AutoCompleteOptionList.d.ts +8 -0
  16. package/dist/components/AutoComplete/OptionContext.d.ts +10 -0
  17. package/dist/components/AutoComplete/useOption.d.ts +9 -0
  18. package/dist/components/Avatar/Avatar.d.ts +14 -0
  19. package/dist/components/Badge/Badge.d.ts +35 -0
  20. package/dist/components/BigStat/BigStat.d.ts +28 -0
  21. package/dist/components/Button/Button.d.ts +26 -0
  22. package/dist/components/ButtonGroup/ButtonGroup.d.ts +22 -0
  23. package/dist/components/CardHorizontal/CardHorizontal.d.ts +40 -0
  24. package/dist/components/CardPrimary/CardPrimary.d.ts +35 -0
  25. package/dist/components/CardPrimary/CardPrimaryTopBadge.d.ts +4 -0
  26. package/dist/components/CardPrimary/withTopBadge.d.ts +6 -0
  27. package/dist/components/CardPromotion/CardPromotion.d.ts +11 -0
  28. package/dist/components/CardSecondary/CardSecondary.d.ts +31 -0
  29. package/dist/components/Checkbox/Checkbox.d.ts +14 -0
  30. package/dist/components/CodeBlock/CodeBlock.d.ts +14 -0
  31. package/dist/components/CodeBlock/InlineCodeBlock.d.ts +2 -0
  32. package/dist/components/CodeBlock/useColorStyle.d.ts +115 -0
  33. package/dist/components/Collapsible/Collapsible.d.ts +32 -0
  34. package/dist/components/Collapsible/IconWrapper.d.ts +7 -0
  35. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +30 -0
  36. package/dist/components/Container/Container.d.ts +49 -0
  37. package/dist/components/ContextMenu/ContextMenu.d.ts +48 -0
  38. package/dist/components/DateDetails/DateDetails.d.ts +15 -0
  39. package/dist/components/DatePicker/Common.d.ts +32 -0
  40. package/dist/components/DatePicker/DatePicker.d.ts +8 -0
  41. package/dist/components/DatePicker/DateRangePicker.d.ts +13 -0
  42. package/dist/components/DatePicker/utils.d.ts +10 -0
  43. package/dist/components/Dialog/Dialog.d.ts +36 -0
  44. package/dist/components/Dropdown/Dropdown.d.ts +50 -0
  45. package/dist/components/EllipsisContent/EllipsisContent.d.ts +7 -0
  46. package/dist/components/FileTabs/FileTabs.d.ts +55 -0
  47. package/dist/components/FileUpload/FileMultiUpload.d.ts +32 -0
  48. package/dist/components/FileUpload/FileUpload.d.ts +26 -0
  49. package/dist/components/Flyout/Flyout.d.ts +99 -0
  50. package/dist/components/FormContainer/FormContainer.d.ts +12 -0
  51. package/dist/components/GenericLabel/GenericLabel.d.ts +8 -0
  52. package/dist/components/GenericMenu.d.ts +12 -0
  53. package/dist/components/Grid/Cell.d.ts +7 -0
  54. package/dist/components/Grid/ColumnResizer.d.ts +27 -0
  55. package/dist/components/Grid/Grid.d.ts +2 -0
  56. package/dist/components/Grid/Header.d.ts +22 -0
  57. package/dist/components/Grid/RowNumberColumn.d.ts +17 -0
  58. package/dist/components/Grid/StyledCell.d.ts +15 -0
  59. package/dist/components/Grid/copyGridElements.d.ts +13 -0
  60. package/dist/components/Grid/types.d.ts +149 -0
  61. package/dist/components/Grid/useColumns.d.ts +17 -0
  62. package/dist/components/Grid/useResizingState.d.ts +47 -0
  63. package/dist/components/Grid/useSelectionActions.d.ts +31 -0
  64. package/dist/components/GridContainer/GridContainer.d.ts +60 -0
  65. package/dist/components/HoverCard/HoverCard.d.ts +24 -0
  66. package/dist/components/Icon/Icon.d.ts +6 -0
  67. package/dist/components/Icon/IconCommon.d.ts +167 -0
  68. package/dist/components/Icon/types.d.ts +30 -0
  69. package/dist/components/IconButton/IconButton.d.ts +13 -0
  70. package/dist/components/IconWrapper/IconWrapper.d.ts +16 -0
  71. package/dist/components/Input/InputWrapper.d.ts +29 -0
  72. package/dist/components/Input/NumberField.d.ts +17 -0
  73. package/dist/components/Input/PasswordField.d.ts +10 -0
  74. package/dist/components/Input/SearchField.d.ts +5 -0
  75. package/dist/components/Input/TextArea.d.ts +15 -0
  76. package/dist/components/Input/TextField.d.ts +25 -0
  77. package/dist/components/Label/Label.d.ts +10 -0
  78. package/dist/components/Link/Link.d.ts +20 -0
  79. package/dist/components/Link/common.d.ts +6 -0
  80. package/dist/components/Logos/AWSAthena.d.ts +3 -0
  81. package/dist/components/Logos/AWSDark.d.ts +3 -0
  82. package/dist/components/Logos/AWSGlue.d.ts +3 -0
  83. package/dist/components/Logos/AWSKinesis.d.ts +3 -0
  84. package/dist/components/Logos/AWSLight.d.ts +3 -0
  85. package/dist/components/Logos/AWSMsk.d.ts +3 -0
  86. package/dist/components/Logos/AWSRedshift.d.ts +3 -0
  87. package/dist/components/Logos/AWS_S3.d.ts +3 -0
  88. package/dist/components/Logos/Airbyte.d.ts +3 -0
  89. package/dist/components/Logos/Azure.d.ts +3 -0
  90. package/dist/components/Logos/AzureBlobStorage.d.ts +3 -0
  91. package/dist/components/Logos/AzureEventHub.d.ts +3 -0
  92. package/dist/components/Logos/BigQuery.d.ts +3 -0
  93. package/dist/components/Logos/Chash.d.ts +3 -0
  94. package/dist/components/Logos/ClickhouseDark.d.ts +3 -0
  95. package/dist/components/Logos/ClickhouseLight.d.ts +3 -0
  96. package/dist/components/Logos/Cloudflare.d.ts +3 -0
  97. package/dist/components/Logos/Confluent.d.ts +3 -0
  98. package/dist/components/Logos/DataGrip.d.ts +3 -0
  99. package/dist/components/Logos/Databricks.d.ts +3 -0
  100. package/dist/components/Logos/Dbt.d.ts +3 -0
  101. package/dist/components/Logos/Decodeable.d.ts +3 -0
  102. package/dist/components/Logos/DeepNote.d.ts +3 -0
  103. package/dist/components/Logos/DeltaLake.d.ts +3 -0
  104. package/dist/components/Logos/DigitalOcean.d.ts +3 -0
  105. package/dist/components/Logos/FeatureDatabaseDark.d.ts +3 -0
  106. package/dist/components/Logos/FeatureDatabaseLight.d.ts +3 -0
  107. package/dist/components/Logos/FeatureHexagonDark.d.ts +3 -0
  108. package/dist/components/Logos/FeatureHexagonLight.d.ts +3 -0
  109. package/dist/components/Logos/Fivetran.d.ts +3 -0
  110. package/dist/components/Logos/GCS.d.ts +3 -0
  111. package/dist/components/Logos/Gcp.d.ts +3 -0
  112. package/dist/components/Logos/GithubDark.d.ts +3 -0
  113. package/dist/components/Logos/GithubLight.d.ts +3 -0
  114. package/dist/components/Logos/GoLang.d.ts +3 -0
  115. package/dist/components/Logos/Google.d.ts +3 -0
  116. package/dist/components/Logos/Grafana.d.ts +3 -0
  117. package/dist/components/Logos/Hex.d.ts +3 -0
  118. package/dist/components/Logos/Hudi.d.ts +3 -0
  119. package/dist/components/Logos/Iceberg.d.ts +3 -0
  120. package/dist/components/Logos/Jdbc.d.ts +3 -0
  121. package/dist/components/Logos/KafkaDark.d.ts +3 -0
  122. package/dist/components/Logos/KafkaLight.d.ts +3 -0
  123. package/dist/components/Logos/Kubenetes.d.ts +3 -0
  124. package/dist/components/Logos/Logo.d.ts +16 -0
  125. package/dist/components/Logos/LogosDark.d.ts +4 -0
  126. package/dist/components/Logos/LogosLight.d.ts +4 -0
  127. package/dist/components/Logos/MariaDB.d.ts +3 -0
  128. package/dist/components/Logos/Metabase.d.ts +3 -0
  129. package/dist/components/Logos/Microsoft.d.ts +3 -0
  130. package/dist/components/Logos/MongoDb.d.ts +3 -0
  131. package/dist/components/Logos/MySQL.d.ts +3 -0
  132. package/dist/components/Logos/Nessie.d.ts +3 -0
  133. package/dist/components/Logos/NodeJs.d.ts +3 -0
  134. package/dist/components/Logos/OneLake.d.ts +3 -0
  135. package/dist/components/Logos/Postgres.d.ts +3 -0
  136. package/dist/components/Logos/Prequel.d.ts +3 -0
  137. package/dist/components/Logos/Python.d.ts +3 -0
  138. package/dist/components/Logos/Redpanda.d.ts +3 -0
  139. package/dist/components/Logos/RustDark.d.ts +3 -0
  140. package/dist/components/Logos/RustLight.d.ts +3 -0
  141. package/dist/components/Logos/Snowflake.d.ts +3 -0
  142. package/dist/components/Logos/Superset.d.ts +3 -0
  143. package/dist/components/Logos/TableauDark.d.ts +3 -0
  144. package/dist/components/Logos/TableauLight.d.ts +3 -0
  145. package/dist/components/Logos/Upstash.d.ts +3 -0
  146. package/dist/components/Logos/Vector.d.ts +3 -0
  147. package/dist/components/Logos/WarpStream.d.ts +3 -0
  148. package/dist/components/Logos/dBeaver.d.ts +3 -0
  149. package/dist/components/Logos/types.d.ts +1 -0
  150. package/dist/components/MultiAccordion/MultiAccordion.d.ts +48 -0
  151. package/dist/components/MultiAccordion/MultiAccordionDemo.d.ts +3 -0
  152. package/dist/components/Pagination/Pagination.d.ts +31 -0
  153. package/dist/components/Panel/Panel.d.ts +38 -0
  154. package/dist/components/Popover/Popover.d.ts +27 -0
  155. package/dist/components/ProgressBar/ProgressBar.d.ts +40 -0
  156. package/dist/components/RadioGroup/RadioGroup.d.ts +29 -0
  157. package/dist/components/Select/CheckboxMultiSelect.d.ts +10 -0
  158. package/dist/components/Select/MultiSelect.d.ts +15 -0
  159. package/dist/components/Select/MultiSelectValue.d.ts +11 -0
  160. package/dist/components/Select/SingleSelect.d.ts +17 -0
  161. package/dist/components/Select/SingleSelectValue.d.ts +6 -0
  162. package/dist/components/Select/common/InternalSelect.d.ts +14 -0
  163. package/dist/components/Select/common/OptionContext.d.ts +13 -0
  164. package/dist/components/Select/common/SelectStyled.d.ts +30 -0
  165. package/dist/components/Select/common/types.d.ts +92 -0
  166. package/dist/components/Select/common/useOption.d.ts +10 -0
  167. package/dist/components/Select/selectOptions.d.ts +3 -0
  168. package/dist/components/Separator/Separator.d.ts +7 -0
  169. package/dist/components/SidebarCollapsibleItem/SidebarCollapsibleItem.d.ts +26 -0
  170. package/dist/components/SidebarCollapsibleTitle/SidebarCollapsibleTitle.d.ts +21 -0
  171. package/dist/components/SidebarNavigationItem/SidebarNavigationItem.d.ts +25 -0
  172. package/dist/components/SidebarNavigationTitle/SidebarNavigationTitle.d.ts +19 -0
  173. package/dist/components/Spacer/Spacer.d.ts +6 -0
  174. package/dist/components/SplitButton/SplitButton.d.ts +41 -0
  175. package/dist/components/Switch/Switch.d.ts +16 -0
  176. package/dist/components/Table/Table.d.ts +53 -0
  177. package/dist/components/Tabs/Tabs.d.ts +18 -0
  178. package/dist/components/Toast/Toast.d.ts +36 -0
  179. package/dist/components/Toast/toastEmitter.d.ts +4 -0
  180. package/dist/components/Toast/useToast.d.ts +2 -0
  181. package/dist/components/Tooltip/Tooltip.d.ts +24 -0
  182. package/dist/components/Typography/Text/Text.d.ts +25 -0
  183. package/dist/components/Typography/Title/Title.d.ts +20 -0
  184. package/dist/components/VerticalStepper/VerticalStepper.d.ts +24 -0
  185. package/dist/components/commonElement.d.ts +16 -0
  186. package/dist/components/commonTypes.d.ts +2 -0
  187. package/dist/components/cursorOptions.d.ts +1 -0
  188. package/dist/components/icons/Activity.d.ts +3 -0
  189. package/dist/components/icons/Alarm.d.ts +3 -0
  190. package/dist/components/icons/ArrowDirections.d.ts +3 -0
  191. package/dist/components/icons/ArrowDown.d.ts +3 -0
  192. package/dist/components/icons/ArrowLeft.d.ts +3 -0
  193. package/dist/components/icons/ArrowRight.d.ts +3 -0
  194. package/dist/components/icons/ArrowTriangle.d.ts +3 -0
  195. package/dist/components/icons/ArrowUp.d.ts +3 -0
  196. package/dist/components/icons/AuthApp.d.ts +3 -0
  197. package/dist/components/icons/AuthSms.d.ts +3 -0
  198. package/dist/components/icons/Backups.d.ts +3 -0
  199. package/dist/components/icons/BarChart.d.ts +3 -0
  200. package/dist/components/icons/Bell.d.ts +3 -0
  201. package/dist/components/icons/Beta.d.ts +3 -0
  202. package/dist/components/icons/Blog.d.ts +3 -0
  203. package/dist/components/icons/Bold.d.ts +3 -0
  204. package/dist/components/icons/Book.d.ts +3 -0
  205. package/dist/components/icons/Brackets.d.ts +3 -0
  206. package/dist/components/icons/Briefcase.d.ts +3 -0
  207. package/dist/components/icons/Building.d.ts +3 -0
  208. package/dist/components/icons/BurgerMenu.d.ts +3 -0
  209. package/dist/components/icons/Calendar.d.ts +3 -0
  210. package/dist/components/icons/CalendarWithTime.d.ts +3 -0
  211. package/dist/components/icons/Cards.d.ts +3 -0
  212. package/dist/components/icons/CellTower.d.ts +3 -0
  213. package/dist/components/icons/ChartArea.d.ts +3 -0
  214. package/dist/components/icons/ChartBarHorizontal.d.ts +3 -0
  215. package/dist/components/icons/ChartDonut.d.ts +3 -0
  216. package/dist/components/icons/ChartHeatmap.d.ts +3 -0
  217. package/dist/components/icons/ChartScatter.d.ts +3 -0
  218. package/dist/components/icons/ChartStackedHorizontal.d.ts +3 -0
  219. package/dist/components/icons/ChartStackedVertical.d.ts +3 -0
  220. package/dist/components/icons/ChatIcon.d.ts +3 -0
  221. package/dist/components/icons/CheckIcon.d.ts +3 -0
  222. package/dist/components/icons/CheckInCircle.d.ts +3 -0
  223. package/dist/components/icons/ChevronDown.d.ts +2 -0
  224. package/dist/components/icons/ChevronLeft.d.ts +3 -0
  225. package/dist/components/icons/ChevronRight.d.ts +2 -0
  226. package/dist/components/icons/ChevronUp.d.ts +3 -0
  227. package/dist/components/icons/Circle.d.ts +3 -0
  228. package/dist/components/icons/Clock.d.ts +3 -0
  229. package/dist/components/icons/Cloud.d.ts +3 -0
  230. package/dist/components/icons/CloudKeys.d.ts +3 -0
  231. package/dist/components/icons/Code.d.ts +3 -0
  232. package/dist/components/icons/CodeInSquare.d.ts +3 -0
  233. package/dist/components/icons/Connect.d.ts +3 -0
  234. package/dist/components/icons/ConnectAlt.d.ts +3 -0
  235. package/dist/components/icons/Console.d.ts +3 -0
  236. package/dist/components/icons/Copy.d.ts +3 -0
  237. package/dist/components/icons/Cpu.d.ts +3 -0
  238. package/dist/components/icons/CreditCard.d.ts +3 -0
  239. package/dist/components/icons/CrossIcon.d.ts +3 -0
  240. package/dist/components/icons/Data.d.ts +3 -0
  241. package/dist/components/icons/DataLakes.d.ts +3 -0
  242. package/dist/components/icons/DatabaseIcon.d.ts +3 -0
  243. package/dist/components/icons/Disk.d.ts +3 -0
  244. package/dist/components/icons/Display.d.ts +3 -0
  245. package/dist/components/icons/Document.d.ts +3 -0
  246. package/dist/components/icons/Dot.d.ts +3 -0
  247. package/dist/components/icons/DotsHorizontal.d.ts +3 -0
  248. package/dist/components/icons/DotsTriangle.d.ts +3 -0
  249. package/dist/components/icons/DotsVertical.d.ts +3 -0
  250. package/dist/components/icons/DotsVerticalDouble.d.ts +3 -0
  251. package/dist/components/icons/DoubleCheckIcon.d.ts +3 -0
  252. package/dist/components/icons/Download.d.ts +3 -0
  253. package/dist/components/icons/DownloadInCircle.d.ts +3 -0
  254. package/dist/components/icons/Email.d.ts +3 -0
  255. package/dist/components/icons/Empty.d.ts +3 -0
  256. package/dist/components/icons/Enter.d.ts +3 -0
  257. package/dist/components/icons/Eye.d.ts +3 -0
  258. package/dist/components/icons/EyeClosed.d.ts +3 -0
  259. package/dist/components/icons/FilterIcon.d.ts +3 -0
  260. package/dist/components/icons/Fire.d.ts +3 -0
  261. package/dist/components/icons/Flag.d.ts +3 -0
  262. package/dist/components/icons/Flags/Australia.d.ts +3 -0
  263. package/dist/components/icons/Flags/Brazil.d.ts +3 -0
  264. package/dist/components/icons/Flags/Canada.d.ts +3 -0
  265. package/dist/components/icons/Flags/EuropeanUnion.d.ts +3 -0
  266. package/dist/components/icons/Flags/Germany.d.ts +3 -0
  267. package/dist/components/icons/Flags/GreatBritain.d.ts +2 -0
  268. package/dist/components/icons/Flags/HongKong.d.ts +3 -0
  269. package/dist/components/icons/Flags/India.d.ts +3 -0
  270. package/dist/components/icons/Flags/Indonesia.d.ts +3 -0
  271. package/dist/components/icons/Flags/Ireland.d.ts +3 -0
  272. package/dist/components/icons/Flags/Israel.d.ts +3 -0
  273. package/dist/components/icons/Flags/Japan.d.ts +3 -0
  274. package/dist/components/icons/Flags/Netherlands.d.ts +3 -0
  275. package/dist/components/icons/Flags/Singapore.d.ts +3 -0
  276. package/dist/components/icons/Flags/SouthAfrica.d.ts +3 -0
  277. package/dist/components/icons/Flags/SouthKorea.d.ts +3 -0
  278. package/dist/components/icons/Flags/Sweden.d.ts +3 -0
  279. package/dist/components/icons/Flags/Switzerland.d.ts +3 -0
  280. package/dist/components/icons/Flags/UnitedArabEmirates.d.ts +3 -0
  281. package/dist/components/icons/Flags/UnitedKingdom.d.ts +3 -0
  282. package/dist/components/icons/Flags/UnitedStates.d.ts +3 -0
  283. package/dist/components/icons/Flags/index.d.ts +32 -0
  284. package/dist/components/icons/Flash.d.ts +3 -0
  285. package/dist/components/icons/Flask.d.ts +3 -0
  286. package/dist/components/icons/FolderClosed.d.ts +3 -0
  287. package/dist/components/icons/FolderOpen.d.ts +3 -0
  288. package/dist/components/icons/Gear.d.ts +3 -0
  289. package/dist/components/icons/Gift.d.ts +3 -0
  290. package/dist/components/icons/GitMerge.d.ts +3 -0
  291. package/dist/components/icons/Globe.d.ts +3 -0
  292. package/dist/components/icons/Hexagon.d.ts +3 -0
  293. package/dist/components/icons/HistoryIcon.d.ts +3 -0
  294. package/dist/components/icons/Home.d.ts +3 -0
  295. package/dist/components/icons/HorizontalLoading.d.ts +2 -0
  296. package/dist/components/icons/Http.d.ts +3 -0
  297. package/dist/components/icons/HttpMonitoring.d.ts +3 -0
  298. package/dist/components/icons/InfoInCircleIcon.d.ts +3 -0
  299. package/dist/components/icons/InformationIcon.d.ts +3 -0
  300. package/dist/components/icons/InsertRowIcon.d.ts +3 -0
  301. package/dist/components/icons/Integrations.d.ts +3 -0
  302. package/dist/components/icons/Italic.d.ts +3 -0
  303. package/dist/components/icons/Key.d.ts +3 -0
  304. package/dist/components/icons/Keys.d.ts +3 -0
  305. package/dist/components/icons/Lifebuoy.d.ts +3 -0
  306. package/dist/components/icons/LightBulb.d.ts +3 -0
  307. package/dist/components/icons/LightBulbOn.d.ts +3 -0
  308. package/dist/components/icons/Lightening.d.ts +3 -0
  309. package/dist/components/icons/LineInCircle.d.ts +3 -0
  310. package/dist/components/icons/ListBulleted.d.ts +3 -0
  311. package/dist/components/icons/ListNumbered.d.ts +3 -0
  312. package/dist/components/icons/Loading.d.ts +3 -0
  313. package/dist/components/icons/LoadingAnimated.d.ts +2 -0
  314. package/dist/components/icons/Lock.d.ts +3 -0
  315. package/dist/components/icons/MapPin.d.ts +3 -0
  316. package/dist/components/icons/Mcp.d.ts +3 -0
  317. package/dist/components/icons/Metrics.d.ts +3 -0
  318. package/dist/components/icons/MetricsAlt.d.ts +3 -0
  319. package/dist/components/icons/Minus.d.ts +3 -0
  320. package/dist/components/icons/Moon.d.ts +3 -0
  321. package/dist/components/icons/NoCloud.d.ts +3 -0
  322. package/dist/components/icons/Pause.d.ts +3 -0
  323. package/dist/components/icons/Payment.d.ts +3 -0
  324. package/dist/components/icons/Payments/Amex.d.ts +3 -0
  325. package/dist/components/icons/Payments/MasterCard.d.ts +3 -0
  326. package/dist/components/icons/Payments/Paypal.d.ts +3 -0
  327. package/dist/components/icons/Payments/Visa.d.ts +3 -0
  328. package/dist/components/icons/Payments/index.d.ts +15 -0
  329. package/dist/components/icons/Pencil.d.ts +3 -0
  330. package/dist/components/icons/PieChart.d.ts +3 -0
  331. package/dist/components/icons/Pipe.d.ts +3 -0
  332. package/dist/components/icons/Play.d.ts +3 -0
  333. package/dist/components/icons/PlayInCircle.d.ts +3 -0
  334. package/dist/components/icons/Plug.d.ts +3 -0
  335. package/dist/components/icons/Plus.d.ts +3 -0
  336. package/dist/components/icons/Popout.d.ts +3 -0
  337. package/dist/components/icons/PopoverArrow.d.ts +3 -0
  338. package/dist/components/icons/PuzzlePiece.d.ts +3 -0
  339. package/dist/components/icons/Query.d.ts +3 -0
  340. package/dist/components/icons/Question.d.ts +3 -0
  341. package/dist/components/icons/Refresh.d.ts +3 -0
  342. package/dist/components/icons/ResizeArrowsHorizontal.d.ts +3 -0
  343. package/dist/components/icons/ResizeArrowsVertical.d.ts +3 -0
  344. package/dist/components/icons/Rocket.d.ts +3 -0
  345. package/dist/components/icons/SandGlass.d.ts +3 -0
  346. package/dist/components/icons/Search.d.ts +3 -0
  347. package/dist/components/icons/Secure.d.ts +3 -0
  348. package/dist/components/icons/Server.d.ts +3 -0
  349. package/dist/components/icons/Services.d.ts +3 -0
  350. package/dist/components/icons/Settings.d.ts +3 -0
  351. package/dist/components/icons/Share.d.ts +3 -0
  352. package/dist/components/icons/ShareArrow.d.ts +3 -0
  353. package/dist/components/icons/ShareNetwork.d.ts +3 -0
  354. package/dist/components/icons/Sleep.d.ts +3 -0
  355. package/dist/components/icons/SlideIn.d.ts +3 -0
  356. package/dist/components/icons/SlideOut.d.ts +3 -0
  357. package/dist/components/icons/SortAltIcon.d.ts +3 -0
  358. package/dist/components/icons/SortIcon.d.ts +3 -0
  359. package/dist/components/icons/Sparkle.d.ts +3 -0
  360. package/dist/components/icons/Speaker.d.ts +3 -0
  361. package/dist/components/icons/Speed.d.ts +3 -0
  362. package/dist/components/icons/Square.d.ts +3 -0
  363. package/dist/components/icons/Star.d.ts +3 -0
  364. package/dist/components/icons/Stop.d.ts +3 -0
  365. package/dist/components/icons/Support.d.ts +3 -0
  366. package/dist/components/icons/Table.d.ts +3 -0
  367. package/dist/components/icons/Taxi.d.ts +3 -0
  368. package/dist/components/icons/TextSlash.d.ts +3 -0
  369. package/dist/components/icons/ThumbsDown.d.ts +3 -0
  370. package/dist/components/icons/ThumbsUp.d.ts +3 -0
  371. package/dist/components/icons/Trash.d.ts +3 -0
  372. package/dist/components/icons/TreeStructure.d.ts +3 -0
  373. package/dist/components/icons/Underline.d.ts +3 -0
  374. package/dist/components/icons/Upgrade.d.ts +3 -0
  375. package/dist/components/icons/Upload.d.ts +3 -0
  376. package/dist/components/icons/Url.d.ts +3 -0
  377. package/dist/components/icons/UserIcon.d.ts +2 -0
  378. package/dist/components/icons/UsersIcon.d.ts +2 -0
  379. package/dist/components/icons/WarningIcon.d.ts +3 -0
  380. package/dist/components/icons/Waves.d.ts +3 -0
  381. package/dist/components/index.d.ts +75 -0
  382. package/dist/components/types.d.ts +92 -0
  383. package/dist/examples/GridExample.d.ts +2 -0
  384. package/dist/favicon.ico +0 -0
  385. package/dist/hooks/index.d.ts +1 -0
  386. package/dist/hooks/useUpdateEffect.d.ts +2 -0
  387. package/dist/index.d.ts +2 -0
  388. package/dist/lib/EventEmitter.d.ts +13 -0
  389. package/dist/lib/getTextFromNodes.d.ts +2 -0
  390. package/dist/logo.svg +17 -0
  391. package/dist/main.d.ts +0 -0
  392. package/dist/theme/ClickUIProvider/ClickUIProvider.d.ts +14 -0
  393. package/dist/theme/ClickUIProvider/index.d.ts +2 -0
  394. package/dist/theme/index.d.ts +22 -0
  395. package/dist/theme/theme.d.ts +6 -0
  396. package/dist/theme/tokens/types.d.ts +24 -0
  397. package/dist/theme/tokens/variables.dark.d.ts +3810 -0
  398. package/dist/theme/tokens/variables.light.d.ts +3795 -0
  399. package/dist/utils/mergeRefs.d.ts +1 -0
  400. package/dist/utils/test-utils.d.ts +58 -0
  401. package/dist/utils/truncate.d.ts +13 -0
  402. package/package.json +130 -0
Binary file
@@ -0,0 +1,30 @@
1
+ import { IconSize } from '../Icon/types';
2
+ import { IconName } from '..';
3
+ import { ReactNode } from 'react';
4
+ import * as RadixAccordion from "@radix-ui/react-accordion";
5
+ type Size = "sm" | "md" | "lg";
6
+ type Gap = "sm" | "md" | "lg";
7
+ type Color = "default" | "link";
8
+ export interface AccordionProps extends SizeProp, Omit<RadixAccordion.AccordionSingleProps, "type" | "collapsible" | "title"> {
9
+ /** The title text or element displayed in the accordion header */
10
+ title: ReactNode;
11
+ /** The color variant of the accordion */
12
+ color?: Color;
13
+ /** Optional icon to display next to the title */
14
+ icon?: IconName;
15
+ /** Size of the optional icon */
16
+ iconSize?: IconSize;
17
+ /** Gap size between the header and content */
18
+ gap?: Gap;
19
+ /** The content to display when the accordion is expanded */
20
+ children: React.ReactNode;
21
+ /** Whether the accordion should fill the full width of its container */
22
+ fillWidth?: boolean;
23
+ }
24
+ interface SizeProp {
25
+ /** The size variant of the accordion */
26
+ size?: Size;
27
+ }
28
+ declare const SidebarAccordion: import('styled-components').StyledComponent<({ title, size, color, icon, iconSize, gap, children, fillWidth, ...delegated }: AccordionProps) => import("react/jsx-runtime").JSX.Element, import('styled-components').DefaultTheme, {}, never>;
29
+ declare const AccordionToExport: import('styled-components').StyledComponent<({ title, size, color, icon, iconSize, gap, children, fillWidth, ...delegated }: AccordionProps) => import("react/jsx-runtime").JSX.Element, import('styled-components').DefaultTheme, {}, never>;
30
+ export { AccordionToExport as Accordion, SidebarAccordion };
@@ -0,0 +1,31 @@
1
+ import { IconName } from '../Icon/types';
2
+ import { ReactNode } from 'react';
3
+ type AlertType = "default" | "banner";
4
+ type AlertSize = "small" | "medium";
5
+ type AlertState = "neutral" | "success" | "warning" | "danger" | "info";
6
+ export type AlertProps = {
7
+ /** The visual state/severity of the alert */
8
+ state?: AlertState;
9
+ /** Optional title displayed above the text */
10
+ title?: ReactNode;
11
+ /** The main message text of the alert */
12
+ text: ReactNode;
13
+ /** The size variant of the alert */
14
+ size?: AlertSize;
15
+ /** The type of alert (default or banner) */
16
+ type?: AlertType;
17
+ /** Whether to show the state icon */
18
+ showIcon?: boolean;
19
+ /** Custom icon to display instead of the default state icon */
20
+ customIcon?: IconName;
21
+ /** Whether the alert can be dismissed */
22
+ dismissible?: boolean;
23
+ /** Callback when the alert is dismissed (requires dismissible=true) */
24
+ onDismiss?: () => void;
25
+ };
26
+ declare const Alert: ({ text, title, size, state, type, showIcon, dismissible, onDismiss, customIcon, ...delegated }: AlertProps) => import("react/jsx-runtime").JSX.Element | null;
27
+ declare const DangerAlert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
28
+ declare const InfoAlert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
29
+ declare const SuccessAlert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
30
+ declare const WarningAlert: (props: AlertProps) => import("react/jsx-runtime").JSX.Element;
31
+ export { Alert, DangerAlert, InfoAlert, SuccessAlert, WarningAlert };
@@ -0,0 +1,67 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { PopoverProps } from '@radix-ui/react-popover';
3
+ import { HorizontalDirection, IconName } from '..';
4
+ type DivProps = HTMLAttributes<HTMLDivElement>;
5
+ interface SelectItemComponentProps extends Omit<DivProps, "disabled" | "onSelect" | "value" | "children"> {
6
+ separator?: boolean;
7
+ disabled?: boolean;
8
+ onSelect?: (value: string) => void;
9
+ value: string;
10
+ icon?: IconName;
11
+ iconDir?: HorizontalDirection;
12
+ }
13
+ type SelectItemChildren = {
14
+ children: ReactNode;
15
+ label?: never;
16
+ };
17
+ type SelectItemLabel = {
18
+ children?: never;
19
+ label: ReactNode;
20
+ };
21
+ export interface SelectGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "heading"> {
22
+ heading: ReactNode;
23
+ value?: never;
24
+ onSelect?: never;
25
+ }
26
+ export interface SelectOptionItem extends Omit<SelectItemProps, "children" | "label"> {
27
+ heading?: never;
28
+ label: ReactNode;
29
+ [key: `data-${string}`]: string;
30
+ }
31
+ interface SelectGroupOptionItem extends Omit<SelectGroupProps, "children" | "label"> {
32
+ options: Array<SelectOptionItem>;
33
+ label?: never;
34
+ [key: `data-${string}`]: string;
35
+ }
36
+ export type AutoCompleteOptionListItem = SelectGroupOptionItem | SelectOptionItem;
37
+ export type SelectItemProps = SelectItemComponentProps & (SelectItemChildren | SelectItemLabel);
38
+ type SelectOptionType = {
39
+ options: Array<AutoCompleteOptionListItem>;
40
+ children?: never;
41
+ };
42
+ type SelectChildrenType = {
43
+ children: ReactNode;
44
+ options?: never;
45
+ };
46
+ interface Props extends PopoverProps, Omit<DivProps, "onChange" | "dir" | "onSelect" | "children"> {
47
+ onSelect?: (value: string) => void;
48
+ value?: string;
49
+ placeholder?: string;
50
+ onOpenChange?: (open: boolean) => void;
51
+ label?: ReactNode;
52
+ error?: ReactNode;
53
+ disabled?: boolean;
54
+ dir?: "start" | "end";
55
+ orientation?: "horizontal" | "vertical";
56
+ allowCreateOption?: boolean;
57
+ }
58
+ export type AutoCompleteProps = (SelectOptionType & Props) | (SelectChildrenType & Props);
59
+ export declare const SelectPopoverRoot: import('styled-components').StyledComponent<import('react').FC<PopoverProps>, import('styled-components').DefaultTheme, {}, never>;
60
+ export declare const AutoComplete: {
61
+ ({ onSelect: onSelectProp, options, children, onOpenChange: onOpenChangeProp, disabled, value, placeholder, ...props }: AutoCompleteProps): import("react/jsx-runtime").JSX.Element;
62
+ Group: import('react').ForwardRefExoticComponent<SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
63
+ Item: import('react').ForwardRefExoticComponent<SelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
64
+ };
65
+ export declare const Group: import('react').ForwardRefExoticComponent<SelectGroupProps & import('react').RefAttributes<HTMLDivElement>>;
66
+ export declare const Item: import('react').ForwardRefExoticComponent<SelectItemProps & import('react').RefAttributes<HTMLDivElement>>;
67
+ export {};
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { AutoCompleteOptionListItem } from './AutoComplete';
3
+ interface Props {
4
+ options: Array<AutoCompleteOptionListItem>;
5
+ id: string;
6
+ }
7
+ declare const AutoCompleteOptionList: ({ options, id }: Props) => ReactNode;
8
+ export default AutoCompleteOptionList;
@@ -0,0 +1,10 @@
1
+ type OptionContextProps = {
2
+ search: string;
3
+ highlighted?: string;
4
+ updateHighlighted: (value: string) => void;
5
+ isHidden: (value?: string) => boolean;
6
+ selectedValue: string;
7
+ onSelect: (value: string) => void;
8
+ };
9
+ export declare const OptionContext: import('react').Context<OptionContextProps>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const useOption: () => {
2
+ search: string;
3
+ highlighted?: string;
4
+ updateHighlighted: (value: string) => void;
5
+ isHidden: (value?: string) => boolean;
6
+ selectedValue: string;
7
+ onSelect: (value: string) => void;
8
+ };
9
+ export declare const useSearch: () => string;
@@ -0,0 +1,14 @@
1
+ import { AvatarProps as RadixAvatarProps } from '@radix-ui/react-avatar';
2
+ type TextSize = "md" | "sm";
3
+ export interface AvatarProps extends RadixAvatarProps {
4
+ /** The text to display as initials in the avatar fallback */
5
+ text: string;
6
+ /** The font size of the text */
7
+ textSize?: TextSize;
8
+ /** The image source URL */
9
+ src?: string;
10
+ /** The image srcSet for responsive images */
11
+ srcSet?: string;
12
+ }
13
+ declare const Avatar: ({ text, textSize, src, srcSet, ...delegated }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
14
+ export { Avatar };
@@ -0,0 +1,35 @@
1
+ import { HorizontalDirection } from '..';
2
+ import { HTMLAttributes, MouseEvent, ReactNode } from 'react';
3
+ import { ImageName } from '../Icon/types';
4
+ export type BadgeState = "default" | "success" | "neutral" | "danger" | "disabled" | "warning" | "info";
5
+ export type BadgeSize = "sm" | "md";
6
+ export type BadgeType = "opaque" | "solid";
7
+ export interface CommonBadgeProps extends HTMLAttributes<HTMLDivElement> {
8
+ /** The text content to display in the badge */
9
+ text: ReactNode;
10
+ /** The visual state of the badge */
11
+ state?: BadgeState;
12
+ /** The size of the badge */
13
+ size?: BadgeSize;
14
+ /** The type/style of the badge - opaque has a lighter background, solid has a filled background */
15
+ type?: BadgeType;
16
+ /** Optional icon to display alongside the text */
17
+ icon?: ImageName;
18
+ /** The direction of the icon relative to the text */
19
+ iconDir?: HorizontalDirection;
20
+ /** Whether to truncate content with ellipsis when it overflows */
21
+ ellipsisContent?: boolean;
22
+ }
23
+ export interface DismissibleBadge extends CommonBadgeProps {
24
+ /** When true, displays a close button on the badge */
25
+ dismissible: true;
26
+ /** Callback function when the close button is clicked */
27
+ onClose: (e: MouseEvent<HTMLOrSVGElement>) => void;
28
+ }
29
+ export interface NonDismissibleBadge extends CommonBadgeProps {
30
+ /** When false or undefined, the close button is hidden */
31
+ dismissible?: never;
32
+ onClose?: never;
33
+ }
34
+ export type BadgeProps = NonDismissibleBadge | DismissibleBadge;
35
+ export declare const Badge: ({ icon, iconDir, text, state, size, type, dismissible, onClose, ellipsisContent, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type bigStatOrder = "titleTop" | "titleBottom";
3
+ export type bigStatSize = "sm" | "lg";
4
+ export type bigStatSpacing = "sm" | "lg";
5
+ export type bigStatState = "default" | "muted";
6
+ export interface BigStatProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
7
+ /** Whether the component should fill the full width of its container */
8
+ fillWidth?: boolean;
9
+ /** Maximum width of the component */
10
+ maxWidth?: string;
11
+ /** Height of the component */
12
+ height?: string;
13
+ /** The label text displayed below or above the title */
14
+ label: React.ReactNode;
15
+ /** The order of title and label - titleTop shows title first, titleBottom shows label first */
16
+ order?: bigStatOrder;
17
+ /** The size variant of the component */
18
+ size?: bigStatSize;
19
+ /** The spacing between title and label */
20
+ spacing?: bigStatSpacing;
21
+ /** The visual state of the component */
22
+ state?: bigStatState;
23
+ /** The main title/value to display */
24
+ title: React.ReactNode;
25
+ /** Whether to show an error state with danger border */
26
+ error?: boolean;
27
+ }
28
+ export declare const BigStat: ({ fillWidth, maxWidth, height, label, order, size, spacing, state, title, error, ...props }: BigStatProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import { IconName } from '..';
2
+ import { default as React } from 'react';
3
+ export type ButtonType = "primary" | "secondary" | "empty" | "danger";
4
+ type Alignment = "center" | "left";
5
+ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
6
+ /** The visual style variant of the button */
7
+ type?: ButtonType;
8
+ /** Whether the button is disabled */
9
+ disabled?: boolean;
10
+ /** The text label to display in the button */
11
+ label?: string;
12
+ /** Icon to display on the left side of the label */
13
+ iconLeft?: IconName;
14
+ /** Icon to display on the right side of the label */
15
+ iconRight?: IconName;
16
+ /** Alignment of the button content */
17
+ align?: Alignment;
18
+ /** Whether the button should fill the full width of its container */
19
+ fillWidth?: boolean;
20
+ /** Whether to show a loading state */
21
+ loading?: boolean;
22
+ /** Whether the button should be focused on mount */
23
+ autoFocus?: boolean;
24
+ }
25
+ export declare const Button: ({ type, iconLeft, iconRight, align, children, fillWidth, label, loading, disabled, ...delegated }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -0,0 +1,22 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ type ButtonGroupType = "default" | "borderless";
3
+ export interface ButtonGroupElementProps extends Omit<HTMLAttributes<HTMLButtonElement>, "children"> {
4
+ /** The unique value for this button */
5
+ value: string;
6
+ /** The label text to display */
7
+ label?: ReactNode;
8
+ }
9
+ export interface ButtonGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onClick"> {
10
+ /** Array of button options to display */
11
+ options: Array<ButtonGroupElementProps>;
12
+ /** The currently selected button value */
13
+ selected?: string;
14
+ /** Callback when a button is clicked */
15
+ onClick?: (value: string) => void;
16
+ /** Whether the button group should fill the full width */
17
+ fillWidth?: boolean;
18
+ /** The style type of the button group */
19
+ type?: ButtonGroupType;
20
+ }
21
+ export declare const ButtonGroup: ({ options, selected, fillWidth, onClick, type, ...props }: ButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,40 @@
1
+ import { HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
2
+ import { BadgeState, HorizontalDirection, IconName } from '..';
3
+ type CardColor = "default" | "muted";
4
+ export type CardSize = "sm" | "md";
5
+ export interface CardHorizontalProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
6
+ /** The title text displayed in the card */
7
+ title?: ReactNode;
8
+ /** Icon to display in the card */
9
+ icon?: IconName;
10
+ /** Whether the card is disabled */
11
+ disabled?: boolean;
12
+ /** The description content of the card */
13
+ description?: ReactNode;
14
+ /** URL to navigate to when clicked */
15
+ infoUrl?: string;
16
+ /** Text for the action button (shows/hides the button) */
17
+ infoText?: string;
18
+ /** Whether the card is in a selected state */
19
+ isSelected?: boolean;
20
+ /** Whether the card can be selected */
21
+ isSelectable?: boolean;
22
+ /** Additional content to display in the card */
23
+ children?: ReactNode;
24
+ /** Color variant of the card */
25
+ color?: CardColor;
26
+ /** Size variant of the card */
27
+ size?: CardSize;
28
+ /** Text for the badge (shows/hides the badge) */
29
+ badgeText?: string;
30
+ /** State/color variant of the badge */
31
+ badgeState?: BadgeState;
32
+ /** Icon to display in the badge */
33
+ badgeIcon?: IconName;
34
+ /** Direction of the badge icon */
35
+ badgeIconDir?: HorizontalDirection;
36
+ /** Callback when the card button is clicked */
37
+ onButtonClick?: MouseEventHandler<HTMLElement>;
38
+ }
39
+ export declare const CardHorizontal: ({ title, icon, description, disabled, infoText, infoUrl, isSelected, isSelectable, children, color, size, badgeText, badgeState, badgeIcon, badgeIconDir, onButtonClick, ...props }: CardHorizontalProps) => import("react/jsx-runtime").JSX.Element;
40
+ export {};
@@ -0,0 +1,35 @@
1
+ import { IconName } from '..';
2
+ import { HTMLAttributes, MouseEventHandler, ReactNode } from 'react';
3
+ import { WithTopBadgeProps } from './withTopBadge';
4
+ export type CardPrimarySize = "sm" | "md";
5
+ type ContentAlignment = "start" | "center" | "end";
6
+ export interface CardPrimaryProps extends HTMLAttributes<HTMLDivElement>, WithTopBadgeProps {
7
+ /** The title text displayed in the card */
8
+ title?: string;
9
+ /** Icon name to display in the card header */
10
+ icon?: IconName;
11
+ /** URL to a custom icon image */
12
+ iconUrl?: string;
13
+ /** Whether to show a shadow on the card */
14
+ hasShadow?: boolean;
15
+ /** Whether the card is disabled */
16
+ disabled?: boolean;
17
+ /** The description content of the card */
18
+ description?: ReactNode;
19
+ /** URL to navigate to when clicked */
20
+ infoUrl?: string;
21
+ /** Text to display on the action button */
22
+ infoText?: string;
23
+ /** The size variant of the card */
24
+ size?: CardPrimarySize;
25
+ /** Whether the card is in a selected state */
26
+ isSelected?: boolean;
27
+ /** Additional content to display in the card */
28
+ children?: ReactNode;
29
+ /** Content alignment within the card */
30
+ alignContent?: ContentAlignment;
31
+ /** Callback when the card button is clicked */
32
+ onButtonClick?: MouseEventHandler<HTMLElement>;
33
+ }
34
+ export declare const CardPrimary: import('react').FC<CardPrimaryProps & WithTopBadgeProps>;
35
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const TopBadgeWrapper: import('styled-components').StyledComponent<(<T extends import('react').ElementType = "div">(props: Omit<import('react').ComponentProps<T>, keyof T> & import('../Container/Container').ContainerProps<T>) => import('react').ReactNode), import('styled-components').DefaultTheme, {}, never>;
2
+ export declare const CardPrimaryTopBadge: import('styled-components').StyledComponent<({ icon, iconDir, text, state, size, type, dismissible, onClose, ellipsisContent, ...props }: import('../Badge/Badge').BadgeProps) => import("react/jsx-runtime").JSX.Element, import('styled-components').DefaultTheme, {
3
+ $isSelected?: boolean;
4
+ }, never>;
@@ -0,0 +1,6 @@
1
+ import { ComponentType, FC } from 'react';
2
+ export interface WithTopBadgeProps {
3
+ topBadgeText?: string;
4
+ isSelected?: boolean;
5
+ }
6
+ export declare const withTopBadge: <P extends object>(Component: ComponentType<P>) => FC<P & WithTopBadgeProps>;
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { IconName } from '..';
3
+ export interface CardPromotionProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** The text label displayed in the promotion card */
5
+ label: string;
6
+ /** The icon to display */
7
+ icon: IconName;
8
+ /** Whether the card can be dismissed/closed */
9
+ dismissible?: boolean;
10
+ }
11
+ export declare const CardPromotion: ({ label, icon, dismissible, ...props }: CardPromotionProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,31 @@
1
+ import { IconName } from '..';
2
+ import { IconSize } from '../Icon/types';
3
+ import { HTMLAttributes, ReactNode } from 'react';
4
+ export type BadgeState = "default" | "success" | "neutral" | "danger" | "disabled" | "warning" | "info";
5
+ export interface CardSecondaryProps extends HTMLAttributes<HTMLDivElement> {
6
+ /** The title text displayed in the card header */
7
+ title: string;
8
+ /** Icon name to display in the header */
9
+ icon?: IconName;
10
+ /** URL to a custom icon image */
11
+ iconUrl?: string;
12
+ /** The visual state of the badge */
13
+ badgeState?: BadgeState;
14
+ /** Whether to show a shadow on the card */
15
+ hasShadow?: boolean;
16
+ /** Whether the card is disabled */
17
+ disabled?: boolean;
18
+ /** Text to display in the badge */
19
+ badgeText?: string;
20
+ /** The description content of the card */
21
+ description: ReactNode;
22
+ /** URL for the info link */
23
+ infoUrl?: string;
24
+ /** Text to display in the info link */
25
+ infoText?: string;
26
+ /** Icon to display in the info link */
27
+ infoIcon?: IconName;
28
+ /** Size of the info link icon */
29
+ infoIconSize?: IconSize;
30
+ }
31
+ export declare const CardSecondary: ({ title, icon, iconUrl, badgeState, badgeText, hasShadow, disabled, description, infoUrl, infoText, infoIcon, infoIconSize, ...props }: CardSecondaryProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { ReactNode } from 'react';
2
+ import * as RadixCheckbox from "@radix-ui/react-checkbox";
3
+ export type CheckboxVariants = "default" | "var1" | "var2" | "var3" | "var4" | "var5" | "var6";
4
+ export interface CheckboxProps extends RadixCheckbox.CheckboxProps {
5
+ /** The label text displayed next to the checkbox */
6
+ label?: ReactNode;
7
+ /** The orientation of the label relative to the checkbox */
8
+ orientation?: "vertical" | "horizontal";
9
+ /** The color variant of the checkbox */
10
+ variant?: CheckboxVariants;
11
+ /** The direction/position of the label - start places label before, end places label after */
12
+ dir?: "start" | "end";
13
+ }
14
+ export declare const Checkbox: ({ id, label, variant, disabled, orientation, dir, checked, ...delegated }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export type CodeThemeType = "light" | "dark";
3
+ interface Props extends Omit<HTMLAttributes<HTMLDivElement>, "children" | "onCopy"> {
4
+ language?: string;
5
+ children: string;
6
+ theme?: CodeThemeType;
7
+ showLineNumbers?: boolean;
8
+ showWrapButton?: boolean;
9
+ wrapLines?: boolean;
10
+ onCopy?: (value: string) => void | Promise<void>;
11
+ onCopyError?: (error: string) => void | Promise<void>;
12
+ }
13
+ export declare const CodeBlock: ({ children, language, theme, showLineNumbers, showWrapButton, wrapLines, onCopy, onCopyError, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,2 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export declare const InlineCodeBlock: (props: HTMLAttributes<HTMLSpanElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,115 @@
1
+ import { CodeThemeType } from './CodeBlock';
2
+ declare const useColorStyle: (defaultTheme?: CodeThemeType) => {
3
+ hljs: {
4
+ display: string;
5
+ overflowX: string;
6
+ padding: string;
7
+ color: any;
8
+ background: any;
9
+ borderRadius: any;
10
+ font: any;
11
+ };
12
+ "hljs-comment": {
13
+ color: string;
14
+ };
15
+ "hljs-keyword": {
16
+ color: string;
17
+ };
18
+ "hljs-selector-tag": {
19
+ color: string;
20
+ };
21
+ "hljs-meta-keyword": {
22
+ color: string;
23
+ };
24
+ "hljs-doctag": {
25
+ color: string;
26
+ };
27
+ "hljs-section": {
28
+ color: string;
29
+ };
30
+ "hljs-selector-class": {
31
+ color: string;
32
+ };
33
+ "hljs-meta": {
34
+ color: string;
35
+ };
36
+ "hljs-selector-pseudo": {
37
+ color: string;
38
+ };
39
+ "hljs-attr": {
40
+ color: string;
41
+ };
42
+ "hljs-attribute": {
43
+ color: string;
44
+ };
45
+ "hljs-name": {
46
+ color: string;
47
+ };
48
+ "hljs-type": {
49
+ color: string;
50
+ };
51
+ "hljs-number": {
52
+ color: string;
53
+ };
54
+ "hljs-selector-id": {
55
+ color: string;
56
+ };
57
+ "hljs-quote": {
58
+ color: string;
59
+ };
60
+ "hljs-template-tag": {
61
+ color: string;
62
+ };
63
+ "hljs-built_in": {
64
+ color: string;
65
+ };
66
+ "hljs-title": {
67
+ color: string;
68
+ };
69
+ "hljs-literal": {
70
+ color: string;
71
+ };
72
+ "hljs-string": {
73
+ color: string;
74
+ };
75
+ "hljs-regexp": {
76
+ color: string;
77
+ };
78
+ "hljs-symbol": {
79
+ color: string;
80
+ };
81
+ "hljs-variable": {
82
+ color: string;
83
+ };
84
+ "hljs-template-variable": {
85
+ color: string;
86
+ };
87
+ "hljs-link": {
88
+ color: string;
89
+ };
90
+ "hljs-selector-attr": {
91
+ color: string;
92
+ };
93
+ "hljs-meta-string": {
94
+ color: string;
95
+ };
96
+ "hljs-bullet": {
97
+ color: string;
98
+ };
99
+ "hljs-code": {
100
+ color: string;
101
+ };
102
+ "hljs-deletion": {
103
+ color: string;
104
+ };
105
+ "hljs-addition": {
106
+ color: string;
107
+ };
108
+ "hljs-emphasis": {
109
+ fontStyle: string;
110
+ };
111
+ "hljs-strong": {
112
+ fontWeight: string;
113
+ };
114
+ };
115
+ export default useColorStyle;
@@ -0,0 +1,32 @@
1
+ import { HTMLAttributes } from 'react';
2
+ import { HorizontalDirection, IconName } from '..';
3
+ export interface CollapsibleProps extends HTMLAttributes<HTMLDivElement> {
4
+ open?: boolean;
5
+ onOpenChange?: (value: boolean) => void;
6
+ }
7
+ export declare const Collapsible: {
8
+ ({ open: openProp, onOpenChange: onOpenChangeProp, children, ...props }: CollapsibleProps): import("react/jsx-runtime").JSX.Element;
9
+ Header: import('react').ForwardRefExoticComponent<CollapsipleHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
10
+ Trigger: {
11
+ ({ onClick: onClickProp, children, indicatorDir, icon, iconDir, ...props }: CollapsipleTriggerProps): import("react/jsx-runtime").JSX.Element;
12
+ displayName: string;
13
+ };
14
+ Content: {
15
+ ({ indicatorDir, ...props }: HTMLAttributes<HTMLDivElement> & {
16
+ indicatorDir?: HorizontalDirection;
17
+ }): import("react/jsx-runtime").JSX.Element | undefined;
18
+ displayName: string;
19
+ };
20
+ };
21
+ interface CollapsipleHeaderProps extends HTMLAttributes<HTMLDivElement> {
22
+ icon?: IconName;
23
+ iconDir?: HorizontalDirection;
24
+ indicatorDir?: HorizontalDirection;
25
+ wrapInTrigger?: boolean;
26
+ }
27
+ interface CollapsipleTriggerProps extends HTMLAttributes<HTMLButtonElement> {
28
+ icon?: IconName;
29
+ iconDir?: HorizontalDirection;
30
+ indicatorDir?: HorizontalDirection;
31
+ }
32
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { HorizontalDirection, IconName } from '..';
3
+ export declare const IconWrapper: ({ icon, iconDir, children, }: {
4
+ icon?: IconName;
5
+ iconDir?: HorizontalDirection;
6
+ children: ReactNode;
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { HTMLAttributes, ReactElement, ReactNode } from 'react';
2
+ type DialogPrimaryAction = "primary" | "danger";
3
+ export interface ConfirmationDialogProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** Custom content to display instead of the message */
5
+ children?: ReactNode;
6
+ /** Whether the confirm button is disabled */
7
+ disabled?: boolean;
8
+ /** Whether the confirm button shows a loading state */
9
+ loading?: boolean;
10
+ /** The message text to display in the dialog */
11
+ message?: string;
12
+ /** Callback when the dialog is cancelled */
13
+ onCancel?: () => void;
14
+ /** Callback when the confirm button is clicked */
15
+ onConfirm?: (() => void) | (() => Promise<void>);
16
+ /** Whether the dialog is open */
17
+ open?: boolean;
18
+ /** Label for the primary action button */
19
+ primaryActionLabel?: string;
20
+ /** Type of the primary action button */
21
+ primaryActionType?: DialogPrimaryAction;
22
+ /** Label for the secondary (cancel) action button */
23
+ secondaryActionLabel?: string;
24
+ /** Whether to show the close button */
25
+ showClose?: boolean;
26
+ /** The title text displayed in the dialog header */
27
+ title: string;
28
+ }
29
+ export declare const ConfirmationDialog: ({ children, disabled, loading, message, onCancel, onConfirm, open, primaryActionLabel, primaryActionType, secondaryActionLabel, showClose, title, ...props }: ConfirmationDialogProps) => ReactElement;
30
+ export {};