@salilvnair/dui 1.0.0 → 1.0.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 (336) hide show
  1. package/README.md +221 -38
  2. package/dist/assets/DuiShowcase-C2jk2ySV.js +74705 -0
  3. package/dist/assets/DuiShowcase-CZLjKDpL.css +1 -0
  4. package/dist/assets/abap-DLDM7-KI.js +1 -0
  5. package/dist/assets/apex-DNDY2TF8.js +1 -0
  6. package/dist/assets/azcli-Y6nb8tq_.js +1 -0
  7. package/dist/assets/bat-BwHxbl9M.js +1 -0
  8. package/dist/assets/bicep-CFznDFnq.js +2 -0
  9. package/dist/assets/cameligo-Bf6VGUru.js +1 -0
  10. package/dist/assets/clojure-Dnu-v4kV.js +1 -0
  11. package/dist/assets/codicon-ngg6Pgfi.ttf +0 -0
  12. package/dist/assets/coffee-Bd8akH9Z.js +1 -0
  13. package/dist/assets/cpp-BbWJElDN.js +1 -0
  14. package/dist/assets/csharp-Co3qMtFm.js +1 -0
  15. package/dist/assets/csp-D-4FJmMZ.js +1 -0
  16. package/dist/assets/css-DdJfP1eB.js +3 -0
  17. package/dist/assets/css.worker-B4z49cGk.js +93 -0
  18. package/dist/assets/cssMode-CZYOZ1AO.js +1 -0
  19. package/dist/assets/cypher-cTPe9QuQ.js +1 -0
  20. package/dist/assets/dart-BOtBlQCF.js +1 -0
  21. package/dist/assets/dockerfile-BG73LgW2.js +1 -0
  22. package/dist/assets/ecl-BEgZUVRK.js +1 -0
  23. package/dist/assets/elixir-BkW5O-1t.js +1 -0
  24. package/dist/assets/flow9-BeJ5waoc.js +1 -0
  25. package/dist/assets/freemarker2-CGSa1nHJ.js +3 -0
  26. package/dist/assets/fsharp-PahG7c26.js +1 -0
  27. package/dist/assets/go-acbASCJo.js +1 -0
  28. package/dist/assets/graphql-BxJiqAUM.js +1 -0
  29. package/dist/assets/handlebars-mB8dxbcs.js +1 -0
  30. package/dist/assets/hcl-DtV1sZF8.js +1 -0
  31. package/dist/assets/html-l7YRKuHI.js +1 -0
  32. package/dist/assets/html.worker-DtiGdgqp.js +470 -0
  33. package/dist/assets/htmlMode-CuoiFE2t.js +1 -0
  34. package/dist/assets/index-B12PznEF.js +50 -0
  35. package/dist/assets/index-B_5G6LrJ.css +10 -0
  36. package/dist/assets/ini-Kd9XrMLS.js +1 -0
  37. package/dist/assets/java-CXBNlu9o.js +1 -0
  38. package/dist/assets/javascript-9UYwmKgx.js +1 -0
  39. package/dist/assets/json.worker-leyajbqV.js +58 -0
  40. package/dist/assets/jsonMode-6uegdfHj.js +7 -0
  41. package/dist/assets/julia-cl7-CwDS.js +1 -0
  42. package/dist/assets/kotlin-s7OhZKlX.js +1 -0
  43. package/dist/assets/less-9HpZscsL.js +2 -0
  44. package/dist/assets/lexon-OrD6JF1K.js +1 -0
  45. package/dist/assets/liquid-C8P3CEDc.js +1 -0
  46. package/dist/assets/lspLanguageFeatures-Ju8ugRgx.js +4 -0
  47. package/dist/assets/lua-Cyyb5UIc.js +1 -0
  48. package/dist/assets/m3-B8OfTtLu.js +1 -0
  49. package/dist/assets/markdown-BFxVWTOG.js +1 -0
  50. package/dist/assets/mdx-D4_p5PzA.js +1 -0
  51. package/dist/assets/mips-CiqrrVzr.js +1 -0
  52. package/dist/assets/monaco-editor-CN2OOCze.js +908 -0
  53. package/dist/assets/monaco-editor-qiF_U8vl.css +1 -0
  54. package/dist/assets/msdax-DmeGPVcC.js +1 -0
  55. package/dist/assets/mysql-C_tMU-Nz.js +1 -0
  56. package/dist/assets/objective-c-BDtDVThU.js +1 -0
  57. package/dist/assets/pascal-vHIfCaH5.js +1 -0
  58. package/dist/assets/pascaligo-DtZ0uQbO.js +1 -0
  59. package/dist/assets/perl-Ub6l9XKa.js +1 -0
  60. package/dist/assets/pgsql-BlNEE0v7.js +1 -0
  61. package/dist/assets/php-BBUBE1dy.js +1 -0
  62. package/dist/assets/pla-DSh2-awV.js +1 -0
  63. package/dist/assets/postiats-CocnycG-.js +1 -0
  64. package/dist/assets/powerquery-tScXyioY.js +1 -0
  65. package/dist/assets/powershell-COWaemsV.js +1 -0
  66. package/dist/assets/protobuf-Brw8urJB.js +2 -0
  67. package/dist/assets/pug-8SOpv6rk.js +1 -0
  68. package/dist/assets/python-BDvE0baC.js +1 -0
  69. package/dist/assets/qsharp-Bw9ernYp.js +1 -0
  70. package/dist/assets/r-j7ic8hl3.js +1 -0
  71. package/dist/assets/razor-3AZt1jFw.js +1 -0
  72. package/dist/assets/redis-Bu5POkcn.js +1 -0
  73. package/dist/assets/redshift-Bs9aos_-.js +1 -0
  74. package/dist/assets/restructuredtext-CqXO7rUv.js +1 -0
  75. package/dist/assets/ruby-zBfavPgS.js +1 -0
  76. package/dist/assets/rust-BzKRNQWT.js +1 -0
  77. package/dist/assets/sb-BBc9UKZt.js +1 -0
  78. package/dist/assets/scala-D9hQfWCl.js +1 -0
  79. package/dist/assets/scheme-BPhDTwHR.js +1 -0
  80. package/dist/assets/scss-CBJaRo0y.js +3 -0
  81. package/dist/assets/shell-DiJ1NA_G.js +1 -0
  82. package/dist/assets/solidity-Db0IVjzk.js +1 -0
  83. package/dist/assets/sophia-CnS9iZB_.js +1 -0
  84. package/dist/assets/sparql-CJmd_6j2.js +1 -0
  85. package/dist/assets/sql-ClhHkBeG.js +1 -0
  86. package/dist/assets/st-CHwy0fLd.js +1 -0
  87. package/dist/assets/swift-Bqt4WxQ4.js +3 -0
  88. package/dist/assets/systemverilog-Bs9z6M-B.js +1 -0
  89. package/dist/assets/tcl-Dm6ycUr_.js +1 -0
  90. package/dist/assets/ts.worker-59MjiAqk.js +67731 -0
  91. package/dist/assets/tsMode-2fAJOXuF.js +11 -0
  92. package/dist/assets/twig-Csy3S7wG.js +1 -0
  93. package/dist/assets/typescript-Bv1W4NlY.js +1 -0
  94. package/dist/assets/typespec-Btyra-wh.js +1 -0
  95. package/dist/assets/vb-Db0cS2oM.js +1 -0
  96. package/dist/assets/wgsl-BTesnYfV.js +298 -0
  97. package/dist/assets/xml-CR03X85Q.js +1 -0
  98. package/dist/assets/yaml-Qi3RsNvX.js +1 -0
  99. package/dist/chunks/{EditorView.shell-BGH2VhWM.js → EditorView.shell-DWGMOgiy.js} +215 -165
  100. package/dist/chunks/EditorView.shell-DWGMOgiy.js.map +1 -0
  101. package/dist/chunks/daakia-icons-BpwUOdSO.js +4665 -0
  102. package/dist/chunks/daakia-icons-BpwUOdSO.js.map +1 -0
  103. package/dist/chunks/vis-runtime-DkpA8K_T.js +32 -0
  104. package/dist/chunks/vis-runtime-DkpA8K_T.js.map +1 -0
  105. package/dist/icons/daakia-icons.d.ts +366 -0
  106. package/dist/index.html +15 -0
  107. package/dist/index.js +24569 -13515
  108. package/dist/index.js.map +1 -1
  109. package/dist/lib/components/button/AIButtonView.d.ts +1 -1
  110. package/dist/lib/components/button/BookmarkButtonView.d.ts +10 -0
  111. package/dist/lib/components/button/FabView.d.ts +20 -0
  112. package/dist/lib/components/button/FollowButtonView.d.ts +10 -0
  113. package/dist/lib/components/button/HoldToConfirmView.d.ts +14 -0
  114. package/dist/lib/components/button/IconButtonView.d.ts +1 -1
  115. package/dist/lib/components/button/LikeButtonView.d.ts +11 -0
  116. package/dist/lib/components/button/MorphingIconButtonView.d.ts +14 -0
  117. package/dist/lib/components/button/ThemeToggleView.d.ts +12 -0
  118. package/dist/lib/components/button/VoteWidgetView.d.ts +13 -0
  119. package/dist/lib/components/chips/ChipView.d.ts +5 -2
  120. package/dist/lib/components/chips/CommandChipView.d.ts +28 -0
  121. package/dist/lib/components/display/AIStreamingTextView.d.ts +16 -0
  122. package/dist/lib/components/display/ActivityFeedView.d.ts +19 -0
  123. package/dist/lib/components/display/ApiKeyRowView.d.ts +12 -0
  124. package/dist/lib/components/display/ArticleCardView.d.ts +16 -0
  125. package/dist/lib/components/display/AudioPlayerView.d.ts +10 -0
  126. package/dist/lib/components/display/AudioWaveformView.d.ts +15 -0
  127. package/dist/lib/components/display/AuditLogRowView.d.ts +14 -0
  128. package/dist/lib/components/display/AvatarGroupView.d.ts +17 -0
  129. package/dist/lib/components/display/AvatarView.d.ts +15 -0
  130. package/dist/lib/components/display/BannerView.d.ts +17 -0
  131. package/dist/lib/components/display/BarcodeView.d.ts +11 -0
  132. package/dist/lib/components/display/BreathingLoaderView.d.ts +11 -0
  133. package/dist/lib/components/display/CalloutView.d.ts +10 -0
  134. package/dist/lib/components/display/CarouselView.d.ts +12 -0
  135. package/dist/lib/components/display/ChangelogEntryView.d.ts +16 -0
  136. package/dist/lib/components/display/CodeBlockView.d.ts +15 -1
  137. package/dist/lib/components/display/ColumnVisibilityMenuView.d.ts +26 -0
  138. package/dist/lib/components/display/CommandOrbView.d.ts +15 -0
  139. package/dist/lib/components/display/CommentThreadView.d.ts +20 -0
  140. package/dist/lib/components/display/ComparisonSliderView.d.ts +12 -0
  141. package/dist/lib/components/display/ConfettiBurstView.d.ts +17 -0
  142. package/dist/lib/components/display/ConnectionPulseLineView.d.ts +14 -0
  143. package/dist/lib/components/display/ConstellationLoaderView.d.ts +14 -0
  144. package/dist/lib/components/display/ContactCardView.d.ts +19 -0
  145. package/dist/lib/components/display/CookieConsentBannerView.d.ts +14 -0
  146. package/dist/lib/components/display/CountUpNumberView.d.ts +16 -0
  147. package/dist/lib/components/display/CountdownRingView.d.ts +19 -0
  148. package/dist/lib/components/display/DataGridToolbarView.d.ts +20 -0
  149. package/dist/lib/components/display/DataTableView.d.ts +2 -1
  150. package/dist/lib/components/display/DescriptionsView.d.ts +19 -0
  151. package/dist/lib/components/display/DiffMorphView.d.ts +13 -0
  152. package/dist/lib/components/display/DragHandleView.d.ts +10 -0
  153. package/dist/lib/components/display/EditableCellView.d.ts +13 -0
  154. package/dist/lib/components/display/EmptyInboxView.d.ts +11 -0
  155. package/dist/lib/components/display/EnvironmentBadgeView.d.ts +13 -0
  156. package/dist/lib/components/display/FeatureSpotlightBadgeView.d.ts +11 -0
  157. package/dist/lib/components/display/FileIconView.d.ts +11 -0
  158. package/dist/lib/components/display/FileListView.d.ts +20 -0
  159. package/dist/lib/components/display/FilterBarView.d.ts +17 -0
  160. package/dist/lib/components/display/GaugeView.d.ts +12 -0
  161. package/dist/lib/components/display/GlowBorderView.d.ts +11 -0
  162. package/dist/lib/components/display/GradientTextView.d.ts +13 -0
  163. package/dist/lib/components/display/HeatmapCalendarView.d.ts +14 -0
  164. package/dist/lib/components/display/HoloCardView.d.ts +10 -0
  165. package/dist/lib/components/display/HudView.d.ts +36 -4
  166. package/dist/lib/components/display/ImageCropperView.d.ts +19 -0
  167. package/dist/lib/components/display/ImageGalleryView.d.ts +15 -0
  168. package/dist/lib/components/display/ImageZoomView.d.ts +10 -0
  169. package/dist/lib/components/display/InfoView.d.ts +23 -0
  170. package/dist/lib/components/display/InspectorPanelView.d.ts +29 -0
  171. package/dist/lib/components/display/IntegrationCardView.d.ts +16 -0
  172. package/dist/lib/components/display/KanbanBoardView.d.ts +27 -0
  173. package/dist/lib/components/display/KbdView.d.ts +11 -0
  174. package/dist/lib/components/display/KeyValueListView.d.ts +14 -0
  175. package/dist/lib/components/display/LatencyPulseView.d.ts +16 -0
  176. package/dist/lib/components/display/LicenseBadgeView.d.ts +11 -0
  177. package/dist/lib/components/display/ListView.d.ts +19 -0
  178. package/dist/lib/components/display/LiveCursorPresenceView.d.ts +19 -0
  179. package/dist/lib/components/display/LoaderView.d.ts +12 -1
  180. package/dist/lib/components/display/MagneticButtonView.d.ts +14 -0
  181. package/dist/lib/components/display/MaintenanceBannerView.d.ts +12 -0
  182. package/dist/lib/components/display/MessageBannerView.d.ts +13 -0
  183. package/dist/lib/components/display/MessageBubbleView.d.ts +14 -0
  184. package/dist/lib/components/display/NetworkGraphView.d.ts +59 -0
  185. package/dist/lib/components/display/NetworkGraphView.fallback.d.ts +11 -0
  186. package/dist/lib/components/display/NetworkGraphView.vis.d.ts +2 -0
  187. package/dist/lib/components/display/NetworkWeatherView.d.ts +12 -0
  188. package/dist/lib/components/display/NotificationBadgeView.d.ts +17 -0
  189. package/dist/lib/components/display/ParticleBackgroundView.d.ts +12 -0
  190. package/dist/lib/components/display/PathRevealView.d.ts +16 -0
  191. package/dist/lib/components/display/PdfViewerView.d.ts +11 -0
  192. package/dist/lib/components/display/PermissionMatrixView.d.ts +15 -0
  193. package/dist/lib/components/display/PresenceDotView.d.ts +12 -0
  194. package/dist/lib/components/display/PricingCardView.d.ts +16 -0
  195. package/dist/lib/components/display/ProgressBarView.d.ts +15 -0
  196. package/dist/lib/components/display/ProgressRingView.d.ts +13 -0
  197. package/dist/lib/components/display/PulseDotView.d.ts +10 -0
  198. package/dist/lib/components/display/QRCodeView.d.ts +11 -0
  199. package/dist/lib/components/display/QuoteBlockView.d.ts +14 -0
  200. package/dist/lib/components/display/RateLimitMeterView.d.ts +12 -0
  201. package/dist/lib/components/display/RatingBreakdownView.d.ts +12 -0
  202. package/dist/lib/components/display/RequestFlowView.d.ts +23 -0
  203. package/dist/lib/components/display/ResultView.d.ts +14 -0
  204. package/dist/lib/components/display/RevealOnScrollView.d.ts +14 -0
  205. package/dist/lib/components/display/SchemaBlueprintView.d.ts +23 -0
  206. package/dist/lib/components/display/SegmentedProgressBarView.d.ts +17 -0
  207. package/dist/lib/components/display/ShareSheetView.d.ts +19 -0
  208. package/dist/lib/components/display/SignaturePadView.d.ts +10 -0
  209. package/dist/lib/components/display/SkeletonView.d.ts +14 -0
  210. package/dist/lib/components/display/SnackbarView.d.ts +18 -0
  211. package/dist/lib/components/display/SortableHeaderView.d.ts +14 -0
  212. package/dist/lib/components/display/SparklineView.d.ts +14 -0
  213. package/dist/lib/components/display/StackedSwipeCardView.d.ts +14 -0
  214. package/dist/lib/components/display/StatTrendCardView.d.ts +16 -0
  215. package/dist/lib/components/display/StatisticView.d.ts +18 -0
  216. package/dist/lib/components/display/StatsCardView.d.ts +5 -1
  217. package/dist/lib/components/display/StatusPageRowView.d.ts +13 -0
  218. package/dist/lib/components/display/StickyTableHeaderView.d.ts +21 -0
  219. package/dist/lib/components/display/TablePaginationView.d.ts +16 -0
  220. package/dist/lib/components/display/TagCloudView.d.ts +17 -0
  221. package/dist/lib/components/display/TeamMemberRowView.d.ts +13 -0
  222. package/dist/lib/components/display/TerminalBlockView.d.ts +8 -0
  223. package/dist/lib/components/display/TestimonialCardView.d.ts +13 -0
  224. package/dist/lib/components/display/TiltCardView.d.ts +12 -0
  225. package/dist/lib/components/display/TimelineView.d.ts +20 -0
  226. package/dist/lib/components/display/TrialCountdownBannerView.d.ts +12 -0
  227. package/dist/lib/components/display/TypewriterTextView.d.ts +16 -0
  228. package/dist/lib/components/display/TypingIndicatorView.d.ts +11 -0
  229. package/dist/lib/components/display/UndoRedoTimelineView.d.ts +19 -0
  230. package/dist/lib/components/display/UsageMeterView.d.ts +17 -0
  231. package/dist/lib/components/display/VersionBadgeView.d.ts +13 -0
  232. package/dist/lib/components/display/VideoPlayerView.d.ts +10 -0
  233. package/dist/lib/components/display/VirtualizedListView.d.ts +13 -0
  234. package/dist/lib/components/display/WebhookStatusView.d.ts +15 -0
  235. package/dist/lib/components/input/AvatarUploadView.d.ts +14 -0
  236. package/dist/lib/components/input/CalendarView.d.ts +25 -0
  237. package/dist/lib/components/input/CascaderView.d.ts +23 -0
  238. package/dist/lib/components/input/ChatInputView.d.ts +17 -0
  239. package/dist/lib/components/input/ChecklistView.d.ts +17 -0
  240. package/dist/lib/components/input/ColorPickerView.d.ts +14 -0
  241. package/dist/lib/components/input/ComboBoxView.d.ts +23 -0
  242. package/dist/lib/components/input/DateInputView.d.ts +17 -0
  243. package/dist/lib/components/input/DateRangePickerView.d.ts +26 -0
  244. package/dist/lib/components/input/DateTimeInputView.d.ts +30 -0
  245. package/dist/lib/components/input/DialKnobInputView.d.ts +17 -0
  246. package/dist/lib/components/input/EditorView.d.ts +1 -1
  247. package/dist/lib/components/input/EmojiPickerView.d.ts +14 -0
  248. package/dist/lib/components/input/FeedbackWidgetView.d.ts +16 -0
  249. package/dist/lib/components/input/FileDropzoneView.d.ts +23 -0
  250. package/dist/lib/components/input/FloatingLabelInputView.d.ts +17 -0
  251. package/dist/lib/components/input/GhostTypingPlaceholderView.d.ts +19 -0
  252. package/dist/lib/components/input/HiddenKeyValueItemView.d.ts +1 -1
  253. package/dist/lib/components/input/IconPickerView.d.ts +14 -0
  254. package/dist/lib/components/input/InlineEditTextView.d.ts +30 -0
  255. package/dist/lib/components/input/InviteInputView.d.ts +15 -0
  256. package/dist/lib/components/input/MaskedInputView.d.ts +21 -0
  257. package/dist/lib/components/input/MentionInputView.d.ts +21 -0
  258. package/dist/lib/components/input/MergedInputView.d.ts +1 -0
  259. package/dist/lib/components/input/NpsSurveyView.d.ts +16 -0
  260. package/dist/lib/components/input/OtpInputView.d.ts +17 -0
  261. package/dist/lib/components/input/PhoneInputView.d.ts +25 -0
  262. package/dist/lib/components/input/PickerView.d.ts +38 -0
  263. package/dist/lib/components/input/PriorityPickerView.d.ts +13 -0
  264. package/dist/lib/components/input/RadioCardView.d.ts +22 -0
  265. package/dist/lib/components/input/RadioGroupView.d.ts +21 -0
  266. package/dist/lib/components/input/RangeSliderView.d.ts +18 -0
  267. package/dist/lib/components/input/RatingView.d.ts +16 -0
  268. package/dist/lib/components/input/RichTextToolbarView.d.ts +13 -0
  269. package/dist/lib/components/input/RoleSelectView.d.ts +21 -0
  270. package/dist/lib/components/input/SegmentedControlView.d.ts +15 -8
  271. package/dist/lib/components/input/ShortcutRecorderView.d.ts +15 -0
  272. package/dist/lib/components/input/SpectrumSliderView.d.ts +16 -0
  273. package/dist/lib/components/input/StepperInputView.d.ts +16 -0
  274. package/dist/lib/components/input/SwitchGroupView.d.ts +21 -0
  275. package/dist/lib/components/input/TabView.d.ts +10 -0
  276. package/dist/lib/components/input/TimeTravelSliderView.d.ts +21 -0
  277. package/dist/lib/components/input/TimeWheelView.d.ts +21 -0
  278. package/dist/lib/components/input/TransferListView.d.ts +21 -0
  279. package/dist/lib/components/input/TreeSelectView.d.ts +19 -0
  280. package/dist/lib/components/input/WizardStepperView.d.ts +19 -0
  281. package/dist/lib/components/layout/AccordionGroupView.d.ts +18 -0
  282. package/dist/lib/components/layout/AffixView.d.ts +11 -0
  283. package/dist/lib/components/layout/AnchorView.d.ts +18 -0
  284. package/dist/lib/components/layout/AspectRatioView.d.ts +12 -0
  285. package/dist/lib/components/layout/BackToTopView.d.ts +10 -0
  286. package/dist/lib/components/layout/BreadcrumbView.d.ts +14 -0
  287. package/dist/lib/components/layout/DockView.d.ts +17 -0
  288. package/dist/lib/components/layout/FaqAccordionView.d.ts +16 -0
  289. package/dist/lib/components/layout/HeroView.d.ts +15 -0
  290. package/dist/lib/components/layout/LevelView.d.ts +13 -0
  291. package/dist/lib/components/layout/MasonryGridView.d.ts +11 -0
  292. package/dist/lib/components/layout/MediaObjectView.d.ts +12 -0
  293. package/dist/lib/components/layout/NavbarView.d.ts +19 -0
  294. package/dist/lib/components/layout/OnboardingChecklistView.d.ts +19 -0
  295. package/dist/lib/components/layout/PaginationView.d.ts +12 -0
  296. package/dist/lib/components/layout/PanelListView.d.ts +28 -0
  297. package/dist/lib/components/layout/ScrollAreaView.d.ts +11 -0
  298. package/dist/lib/components/layout/SettingsRowView.d.ts +12 -0
  299. package/dist/lib/components/layout/SettingsSectionView.d.ts +12 -0
  300. package/dist/lib/components/layout/SideNavView.d.ts +3 -1
  301. package/dist/lib/components/layout/StickyHeaderView.d.ts +11 -0
  302. package/dist/lib/components/layout/TileGridView.d.ts +21 -0
  303. package/dist/lib/components/layout/WatermarkView.d.ts +16 -0
  304. package/dist/lib/components/modal/ActionSheetView.d.ts +19 -0
  305. package/dist/lib/components/modal/AlertDialogView.d.ts +15 -0
  306. package/dist/lib/components/modal/BottomSheetView.d.ts +14 -0
  307. package/dist/lib/components/modal/CommandPaletteView.d.ts +21 -0
  308. package/dist/lib/components/modal/DrawerView.d.ts +15 -0
  309. package/dist/lib/components/modal/ModalView.d.ts +11 -2
  310. package/dist/lib/components/modal/NotificationCenterView.d.ts +20 -0
  311. package/dist/lib/components/modal/PopoverView.d.ts +20 -0
  312. package/dist/lib/components/modal/SpotlightTourView.d.ts +18 -0
  313. package/dist/lib/components/modal/StackedToastDeckView.d.ts +17 -0
  314. package/dist/lib/components/modal/TooltipView.d.ts +28 -0
  315. package/dist/lib/components/rearrange/RearrangeView.d.ts +3 -3
  316. package/dist/lib/components/rearrange/SortableView.d.ts +33 -0
  317. package/dist/lib/components/tabs/TabBarView.d.ts +29 -1
  318. package/dist/lib/core/AvatarBase.d.ts +21 -0
  319. package/dist/lib/core/DateBase.d.ts +23 -0
  320. package/dist/lib/core/DuiTokens.d.ts +10 -0
  321. package/dist/lib/core/FeedbackBase.d.ts +27 -0
  322. package/dist/lib/core/LayoutBase.d.ts +21 -0
  323. package/dist/lib/core/MediaBase.d.ts +20 -0
  324. package/dist/lib/index.d.ts +392 -1
  325. package/dist/lib/vis-runtime.d.ts +19 -0
  326. package/dist/monaco-setup.js +348 -343
  327. package/dist/monaco-setup.js.map +1 -1
  328. package/dist/style.css +1 -1
  329. package/dist/theme/editor.js +2 -2
  330. package/dist/vis-setup.d.ts +1 -0
  331. package/dist/vis-setup.js +418 -0
  332. package/dist/vis-setup.js.map +1 -0
  333. package/package.json +36 -2
  334. package/dist/chunks/EditorView.shell-BGH2VhWM.js.map +0 -1
  335. package/dist/chunks/daakia-icons-DxWnX_IQ.js +0 -1726
  336. package/dist/chunks/daakia-icons-DxWnX_IQ.js.map +0 -1
package/README.md CHANGED
@@ -1,8 +1,48 @@
1
1
  # @salilvnair/dui
2
2
 
3
- Daakia UI — a React component library shared across ck8t and daakia. Ships as
4
- a compiled ESM bundle with generated `.d.ts` types; peer dependencies are
5
- `react`, `react-dom`, and `zustand`.
3
+ **Daakia UI** — a React 19 + TypeScript component library shared across
4
+ [daakia](https://github.com/salilvnair) and ck8t. 65+ components, a
5
+ CSS-variable theme system, and a Monaco-backed code editor that's entirely
6
+ optional — install it only if you use it.
7
+
8
+ [![npm version](https://img.shields.io/npm/v/@salilvnair/dui.svg)](https://www.npmjs.com/package/@salilvnair/dui)
9
+ [![license](https://img.shields.io/npm/l/@salilvnair/dui.svg)](https://github.com/salilvnair/dui/blob/main/LICENSE)
10
+
11
+ Repository: **https://github.com/salilvnair/dui**
12
+
13
+ ---
14
+
15
+ ## Table of contents
16
+
17
+ - [Features](#features)
18
+ - [Install](#install)
19
+ - [Quick start](#quick-start)
20
+ - [Component catalog](#component-catalog)
21
+ - [Theming](#theming)
22
+ - [The code editor — Monaco is optional](#the-code-editor--monaco-is-optional)
23
+ - [Extending MarkdownView's language support](#extending-markdownviews-language-support)
24
+ - [TypeScript](#typescript)
25
+ - [Local development](#local-development)
26
+ - [Publishing to npm](#publishing-to-npm)
27
+ - [License](#license)
28
+
29
+ ---
30
+
31
+ ## Features
32
+
33
+ - **65+ components** — inputs, buttons, navigation, display, overlays,
34
+ layout, and a full debug/editor toolkit (see [catalog](#component-catalog))
35
+ - **CSS-variable theming** — every color is a `--color-*` custom property;
36
+ retheme by overriding variables on `:root` or any container, no rebuild
37
+ - **Size system** — one `size` prop (`xxs`–`xxxl`) threaded through every
38
+ component via `<DuiProvider>`, or override per-instance
39
+ - **Optional Monaco editor** — `EditorView`/`DiffEditorView`/`DebugEditorView`
40
+ render a plain-text fallback out of the box; Monaco is a genuinely optional
41
+ peer dependency, not a hard requirement (see below — this is the part of
42
+ the library most worth understanding before you adopt it)
43
+ - **Tree-shakeable ESM** — compiled output, real `.d.ts` types, multi-entry
44
+ build so `import '@salilvnair/dui/monaco-setup'` is the *only* way Monaco
45
+ code ever enters your bundle
6
46
 
7
47
  ## Install
8
48
 
@@ -10,32 +50,148 @@ a compiled ESM bundle with generated `.d.ts` types; peer dependencies are
10
50
  npm install @salilvnair/dui react react-dom zustand
11
51
  ```
12
52
 
13
- Import the stylesheet once in your app's entry point:
53
+ Import the stylesheet once, in your app's entry point:
14
54
 
15
55
  ```ts
16
56
  import '@salilvnair/dui/style.css';
17
57
  ```
18
58
 
19
- ## Usage
59
+ ## Quick start
20
60
 
21
61
  ```tsx
22
- import { ButtonView, TabView, DuiProvider } from '@salilvnair/dui';
62
+ import { DuiProvider, ButtonView, TextInputView, TabView } from '@salilvnair/dui';
63
+ import '@salilvnair/dui/style.css';
23
64
 
24
- function App() {
65
+ export function App() {
25
66
  return (
26
67
  <DuiProvider size="md">
27
- <ButtonView>Click me</ButtonView>
68
+ <TextInputView placeholder="Search…" value={value} onChange={setValue} />
69
+ <ButtonView onClick={handleSubmit}>Submit</ButtonView>
28
70
  </DuiProvider>
29
71
  );
30
72
  }
31
73
  ```
32
74
 
33
- ## Monaco is optional
75
+ `DuiProvider` is optional — every component works standalone with sensible
76
+ defaults. Wrap your app in it when you want a single place to set the
77
+ default `size` or accent color for the whole tree.
78
+
79
+ ## Component catalog
80
+
81
+ <details>
82
+ <summary><b>Inputs</b> (14)</summary>
83
+
84
+ `TextInputView` · `MultilineInputView` · `SelectInputView` ·
85
+ `SelectTextInputView` · `SegmentedControlView` · `TagInputView` ·
86
+ `CheckboxView` · `ToggleSwitchView` · `SliderView` · `DurationInputView` ·
87
+ `HighlightedInputView` · `SearchInputView` · `KeyValueTableView` ·
88
+ `MergedInputView`
89
+
90
+ </details>
91
+
92
+ <details>
93
+ <summary><b>Editor / Debug toolkit</b></summary>
94
+
95
+ `EditorView` · `DebugEditorView` · `DiffEditorView` · `DebugView` — see
96
+ [Monaco is optional](#the-code-editor--monaco-is-optional) before adopting these.
97
+
98
+ </details>
99
+
100
+ <details>
101
+ <summary><b>Buttons</b> (4)</summary>
102
+
103
+ `ButtonView` · `IconButtonView` · `DropDownButtonView` · `SplitButtonView` ·
104
+ `SegmentedView` · `AIButtonView`
105
+
106
+ </details>
107
+
108
+ <details>
109
+ <summary><b>Navigation</b> (5)</summary>
110
+
111
+ `TabView` · `TabBarView` · `PilledTabView` · `ContextMenuView` ·
112
+ `SideNavView` · `SettingsNavView`
113
+
114
+ </details>
115
+
116
+ <details>
117
+ <summary><b>Display</b> (19)</summary>
118
+
119
+ `ChipView` · `StatusIndicatorView` · `LoaderView` · `EmptyStateView` ·
120
+ `ColoredTextView` · `StatsCardView` · `DottedCardView` · `DataTableView` ·
121
+ `CodeBlockView` · `MarkdownView` · `PromptCardView` · `PromptLibraryListView` ·
122
+ `PromptLibraryEditorView` · `StageView` · `HudView` · `JsonTreeView` ·
123
+ `ExpandableLogEntryView` · `CopyButtonView` · `YamlKeyChip` ·
124
+ `FeatureCategoryView`
125
+
126
+ </details>
127
+
128
+ <details>
129
+ <summary><b>Overlays</b> (3)</summary>
130
+
131
+ `ModalView` · `InfoPopupView` · `ToastView`
132
+
133
+ </details>
134
+
135
+ <details>
136
+ <summary><b>Layout</b> (8)</summary>
137
+
138
+ `ResizablePanelView` · `SplitPanelView` · `BottomPanelView` · `FolderView` ·
139
+ `CollapsibleSectionView` · `SpacerView` · `SettingsNavView` · `SideNavView`
140
+
141
+ </details>
142
+
143
+ <details>
144
+ <summary><b>More</b></summary>
34
145
 
35
- `EditorView`, `DiffEditorView`, and `DebugEditorView` render a lightweight
36
- plain-text fallback by default — **`@monaco-editor/react` and `monaco-editor`
37
- are not required dependencies.** If you don't use these three components,
38
- you never need to install them.
146
+ `DuiProvider` (size/theme context) · `LiveColorCustomizer` ·
147
+ `ThemeCardSelectorView` · `FormDataTableView` · `RearrangeView` ·
148
+ `HiddenKeyValueItemView` · full icon set (`@salilvnair/dui` re-exports every
149
+ icon used internally)
150
+
151
+ </details>
152
+
153
+ Every component ships full TypeScript prop types — explore them via your
154
+ editor's autocomplete, or browse `src/lib` in the
155
+ [repo](https://github.com/salilvnair/dui).
156
+
157
+ ## Theming
158
+
159
+ All design tokens are CSS custom properties, defined via Tailwind v4's
160
+ CSS-first `@theme` syntax and shipped in `dist/style.css`:
161
+
162
+ ```css
163
+ :root {
164
+ --color-primary: #6366f1;
165
+ --color-surface: #1e1e1e;
166
+ --color-surface-border: #414141;
167
+ /* … */
168
+ }
169
+ ```
170
+
171
+ Override any subset on `:root` (global) or on a wrapping element (scoped —
172
+ e.g. to theme one panel differently). Programmatic helpers live under the
173
+ `theme/*` subpath exports:
174
+
175
+ ```ts
176
+ import { SCHEMA } from '@salilvnair/dui/theme/core'; // token schema (group/key/cssVar/comment)
177
+ import { generateYaml } from '@salilvnair/dui/theme/utils'; // export current theme as YAML
178
+ import { ThemeVarEditor } from '@salilvnair/dui/theme/editor'; // UI for adding a new theme variable
179
+ ```
180
+
181
+ ## The code editor — Monaco is optional
182
+
183
+ `EditorView`, `DiffEditorView`, and `DebugEditorView` do **not** require
184
+ `@monaco-editor/react` or `monaco-editor` to be installed. Without them,
185
+ these components render a lightweight plain-text fallback (a styled
186
+ `<textarea>` and a small line-diff view) — fully functional for basic
187
+ editing, just without IntelliSense, breakpoints, or Monaco's diff engine.
188
+
189
+ ```tsx
190
+ import { EditorView } from '@salilvnair/dui';
191
+
192
+ // Works immediately, zero extra installs — renders the plain-text fallback.
193
+ <EditorView value={code} onChange={setCode} language="json" />
194
+ ```
39
195
 
40
196
  To get the real Monaco-backed editor:
41
197
 
@@ -44,43 +200,66 @@ npm install @monaco-editor/react monaco-editor
44
200
  ```
45
201
 
46
202
  ```ts
47
- // once, at app bootstrap
203
+ // once, at app bootstrap — before any EditorView renders
48
204
  import '@salilvnair/dui/monaco-setup';
49
205
  ```
50
206
 
51
- This self-hosts Monaco (inline workers, no CDN — works under strict CSP,
52
- e.g. VS Code webviews) and registers the real editor implementation.
53
- Skipping this import is fine; `EditorView` keeps working as a plain textarea.
207
+ That import self-hosts Monaco: inline workers (no CDN — works under a strict
208
+ CSP, e.g. inside a VS Code extension webview), a VS Code–accurate dark/light
209
+ theme, and registration of the real editor implementation. `EditorView`
210
+ automatically starts rendering the Monaco-backed version the moment this
211
+ import has run; skip it and everything still works, just without Monaco.
54
212
 
55
- ### Why not just install Monaco automatically?
213
+ **Why not auto-install Monaco, or fall back to a CDN?** `@monaco-editor/react`
214
+ defaults to lazy-loading Monaco assets from a public CDN when you don't
215
+ self-host — a reasonable default for a plain public web page, but wrong for
216
+ CSP-restricted environments (webviews, offline apps, intranets) where that
217
+ CDN is unreachable. Rather than silently guess, this library requires an
218
+ explicit opt-in (`monaco-setup`) and never attempts the CDN path at all.
56
219
 
57
- `@monaco-editor/react` doesn't depend on `monaco-editor` itself it lazy-loads
58
- Monaco from a public CDN by default. If your environment blocks that CDN (most
59
- VS Code extension webviews, offline apps, strict-CSP deployments do), the only
60
- correct answer is genuine self-hosting via `monaco-setup`, which is why that
61
- import is explicit rather than automatic.
220
+ **Bundle boundary, verified, not assumed:** `dist/index.js` (the main entry
221
+ everything except `EditorView` internals) contains zero references to
222
+ `@monaco-editor/react` or `monaco-editor`. Only `dist/monaco-setup.js`
223
+ does. This is checked as part of the release process, not just documented —
224
+ see [Publishing](#publishing-to-npm).
62
225
 
63
- ### Extending MarkdownView's language support
226
+ ## Extending MarkdownView's language support
64
227
 
65
- `MarkdownView`'s syntax highlighting registers a curated set of languages
228
+ `MarkdownView` ships syntax highlighting for a curated set of ~16 languages
66
229
  (js/ts/json/xml/html/css/bash/yaml/python/sql/ruby/rust/csharp/kotlin/graphql/markdown)
67
- via `highlight.js/lib/core` rather than the full ~190-language `highlight.js`
68
- package, to keep the bundle small. Adding a language currently requires a
69
- change in this repo and a version bump — there's no way to register
70
- additional languages from a consuming app yet.
71
-
72
- ## Theming
230
+ via `highlight.js/lib/core`, rather than highlight.js's full ~190-language
231
+ bundle, to keep the library small. Add more without waiting on a release:
73
232
 
74
233
  ```ts
75
- import { SCHEMA } from '@salilvnair/dui/theme/core';
76
- import { generateYaml } from '@salilvnair/dui/theme/utils';
77
- import { ThemeVarEditor } from '@salilvnair/dui/theme/editor';
234
+ import { registerMarkdownLanguage } from '@salilvnair/dui';
235
+ import lua from 'highlight.js/lib/languages/lua';
236
+
237
+ registerMarkdownLanguage('lua', lua); // once, at app startup
78
238
  ```
79
239
 
80
- All colors are CSS custom properties (`--color-*`) — override them on
81
- `:root` or scope them to a container to retheme without recompiling.
240
+ ## TypeScript
82
241
 
83
- ---
242
+ Full type declarations ship in `dist/`, generated from source — no
243
+ `@types/@salilvnair__dui` needed. `peerDependencies` cover `react`,
244
+ `react-dom`, and `zustand`; `@monaco-editor/react` and `monaco-editor` are
245
+ `peerDependenciesMeta.optional` peers (see above).
246
+
247
+ ## Local development
248
+
249
+ ```bash
250
+ git clone https://github.com/salilvnair/dui.git
251
+ cd dui
252
+ npm install
253
+ npm run dev # showcase app at localhost:5173
254
+ ```
255
+
256
+ Open `http://localhost:5173/#dui` for the component showcase — every
257
+ component has a live playground, examples, and prop docs.
258
+
259
+ ```bash
260
+ npm run build # builds the showcase app (for deploying docs/demo)
261
+ npm run build:lib # builds the publishable library into dist/
262
+ ```
84
263
 
85
264
  ## Publishing to npm
86
265
 
@@ -173,7 +352,7 @@ git push && git push --tags
173
352
 
174
353
  ### Troubleshooting
175
354
 
176
- **Consumer's build fails resolving `@monaco-editor/react`even though they never use `EditorView`**
355
+ **Consumer's build fails resolving `@monaco-editor/react` even though they never use `EditorView`**
177
356
  → Something reintroduced a static import of it into `index.js`. Re-run the
178
357
  Monaco boundary grep in Step 2 — this is the one regression this package
179
358
  must never ship.
@@ -183,3 +362,7 @@ must never ship.
183
362
  `@salilvnair/dui/monaco-setup`. `EditorView` never falls back to the CDN
184
363
  loader on its own — it only ever renders the plain-text fallback or the
185
364
  self-hosted Monaco registered by `monaco-setup`.
365
+
366
+ ## License
367
+
368
+ MIT © [Salil V Nair](https://github.com/salilvnair) — see [LICENSE](./LICENSE).