@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.
- package/README.md +221 -38
- package/dist/assets/DuiShowcase-C2jk2ySV.js +74705 -0
- package/dist/assets/DuiShowcase-CZLjKDpL.css +1 -0
- package/dist/assets/abap-DLDM7-KI.js +1 -0
- package/dist/assets/apex-DNDY2TF8.js +1 -0
- package/dist/assets/azcli-Y6nb8tq_.js +1 -0
- package/dist/assets/bat-BwHxbl9M.js +1 -0
- package/dist/assets/bicep-CFznDFnq.js +2 -0
- package/dist/assets/cameligo-Bf6VGUru.js +1 -0
- package/dist/assets/clojure-Dnu-v4kV.js +1 -0
- package/dist/assets/codicon-ngg6Pgfi.ttf +0 -0
- package/dist/assets/coffee-Bd8akH9Z.js +1 -0
- package/dist/assets/cpp-BbWJElDN.js +1 -0
- package/dist/assets/csharp-Co3qMtFm.js +1 -0
- package/dist/assets/csp-D-4FJmMZ.js +1 -0
- package/dist/assets/css-DdJfP1eB.js +3 -0
- package/dist/assets/css.worker-B4z49cGk.js +93 -0
- package/dist/assets/cssMode-CZYOZ1AO.js +1 -0
- package/dist/assets/cypher-cTPe9QuQ.js +1 -0
- package/dist/assets/dart-BOtBlQCF.js +1 -0
- package/dist/assets/dockerfile-BG73LgW2.js +1 -0
- package/dist/assets/ecl-BEgZUVRK.js +1 -0
- package/dist/assets/elixir-BkW5O-1t.js +1 -0
- package/dist/assets/flow9-BeJ5waoc.js +1 -0
- package/dist/assets/freemarker2-CGSa1nHJ.js +3 -0
- package/dist/assets/fsharp-PahG7c26.js +1 -0
- package/dist/assets/go-acbASCJo.js +1 -0
- package/dist/assets/graphql-BxJiqAUM.js +1 -0
- package/dist/assets/handlebars-mB8dxbcs.js +1 -0
- package/dist/assets/hcl-DtV1sZF8.js +1 -0
- package/dist/assets/html-l7YRKuHI.js +1 -0
- package/dist/assets/html.worker-DtiGdgqp.js +470 -0
- package/dist/assets/htmlMode-CuoiFE2t.js +1 -0
- package/dist/assets/index-B12PznEF.js +50 -0
- package/dist/assets/index-B_5G6LrJ.css +10 -0
- package/dist/assets/ini-Kd9XrMLS.js +1 -0
- package/dist/assets/java-CXBNlu9o.js +1 -0
- package/dist/assets/javascript-9UYwmKgx.js +1 -0
- package/dist/assets/json.worker-leyajbqV.js +58 -0
- package/dist/assets/jsonMode-6uegdfHj.js +7 -0
- package/dist/assets/julia-cl7-CwDS.js +1 -0
- package/dist/assets/kotlin-s7OhZKlX.js +1 -0
- package/dist/assets/less-9HpZscsL.js +2 -0
- package/dist/assets/lexon-OrD6JF1K.js +1 -0
- package/dist/assets/liquid-C8P3CEDc.js +1 -0
- package/dist/assets/lspLanguageFeatures-Ju8ugRgx.js +4 -0
- package/dist/assets/lua-Cyyb5UIc.js +1 -0
- package/dist/assets/m3-B8OfTtLu.js +1 -0
- package/dist/assets/markdown-BFxVWTOG.js +1 -0
- package/dist/assets/mdx-D4_p5PzA.js +1 -0
- package/dist/assets/mips-CiqrrVzr.js +1 -0
- package/dist/assets/monaco-editor-CN2OOCze.js +908 -0
- package/dist/assets/monaco-editor-qiF_U8vl.css +1 -0
- package/dist/assets/msdax-DmeGPVcC.js +1 -0
- package/dist/assets/mysql-C_tMU-Nz.js +1 -0
- package/dist/assets/objective-c-BDtDVThU.js +1 -0
- package/dist/assets/pascal-vHIfCaH5.js +1 -0
- package/dist/assets/pascaligo-DtZ0uQbO.js +1 -0
- package/dist/assets/perl-Ub6l9XKa.js +1 -0
- package/dist/assets/pgsql-BlNEE0v7.js +1 -0
- package/dist/assets/php-BBUBE1dy.js +1 -0
- package/dist/assets/pla-DSh2-awV.js +1 -0
- package/dist/assets/postiats-CocnycG-.js +1 -0
- package/dist/assets/powerquery-tScXyioY.js +1 -0
- package/dist/assets/powershell-COWaemsV.js +1 -0
- package/dist/assets/protobuf-Brw8urJB.js +2 -0
- package/dist/assets/pug-8SOpv6rk.js +1 -0
- package/dist/assets/python-BDvE0baC.js +1 -0
- package/dist/assets/qsharp-Bw9ernYp.js +1 -0
- package/dist/assets/r-j7ic8hl3.js +1 -0
- package/dist/assets/razor-3AZt1jFw.js +1 -0
- package/dist/assets/redis-Bu5POkcn.js +1 -0
- package/dist/assets/redshift-Bs9aos_-.js +1 -0
- package/dist/assets/restructuredtext-CqXO7rUv.js +1 -0
- package/dist/assets/ruby-zBfavPgS.js +1 -0
- package/dist/assets/rust-BzKRNQWT.js +1 -0
- package/dist/assets/sb-BBc9UKZt.js +1 -0
- package/dist/assets/scala-D9hQfWCl.js +1 -0
- package/dist/assets/scheme-BPhDTwHR.js +1 -0
- package/dist/assets/scss-CBJaRo0y.js +3 -0
- package/dist/assets/shell-DiJ1NA_G.js +1 -0
- package/dist/assets/solidity-Db0IVjzk.js +1 -0
- package/dist/assets/sophia-CnS9iZB_.js +1 -0
- package/dist/assets/sparql-CJmd_6j2.js +1 -0
- package/dist/assets/sql-ClhHkBeG.js +1 -0
- package/dist/assets/st-CHwy0fLd.js +1 -0
- package/dist/assets/swift-Bqt4WxQ4.js +3 -0
- package/dist/assets/systemverilog-Bs9z6M-B.js +1 -0
- package/dist/assets/tcl-Dm6ycUr_.js +1 -0
- package/dist/assets/ts.worker-59MjiAqk.js +67731 -0
- package/dist/assets/tsMode-2fAJOXuF.js +11 -0
- package/dist/assets/twig-Csy3S7wG.js +1 -0
- package/dist/assets/typescript-Bv1W4NlY.js +1 -0
- package/dist/assets/typespec-Btyra-wh.js +1 -0
- package/dist/assets/vb-Db0cS2oM.js +1 -0
- package/dist/assets/wgsl-BTesnYfV.js +298 -0
- package/dist/assets/xml-CR03X85Q.js +1 -0
- package/dist/assets/yaml-Qi3RsNvX.js +1 -0
- package/dist/chunks/{EditorView.shell-BGH2VhWM.js → EditorView.shell-DWGMOgiy.js} +215 -165
- package/dist/chunks/EditorView.shell-DWGMOgiy.js.map +1 -0
- package/dist/chunks/daakia-icons-BpwUOdSO.js +4665 -0
- package/dist/chunks/daakia-icons-BpwUOdSO.js.map +1 -0
- package/dist/chunks/vis-runtime-DkpA8K_T.js +32 -0
- package/dist/chunks/vis-runtime-DkpA8K_T.js.map +1 -0
- package/dist/icons/daakia-icons.d.ts +366 -0
- package/dist/index.html +15 -0
- package/dist/index.js +24569 -13515
- package/dist/index.js.map +1 -1
- package/dist/lib/components/button/AIButtonView.d.ts +1 -1
- package/dist/lib/components/button/BookmarkButtonView.d.ts +10 -0
- package/dist/lib/components/button/FabView.d.ts +20 -0
- package/dist/lib/components/button/FollowButtonView.d.ts +10 -0
- package/dist/lib/components/button/HoldToConfirmView.d.ts +14 -0
- package/dist/lib/components/button/IconButtonView.d.ts +1 -1
- package/dist/lib/components/button/LikeButtonView.d.ts +11 -0
- package/dist/lib/components/button/MorphingIconButtonView.d.ts +14 -0
- package/dist/lib/components/button/ThemeToggleView.d.ts +12 -0
- package/dist/lib/components/button/VoteWidgetView.d.ts +13 -0
- package/dist/lib/components/chips/ChipView.d.ts +5 -2
- package/dist/lib/components/chips/CommandChipView.d.ts +28 -0
- package/dist/lib/components/display/AIStreamingTextView.d.ts +16 -0
- package/dist/lib/components/display/ActivityFeedView.d.ts +19 -0
- package/dist/lib/components/display/ApiKeyRowView.d.ts +12 -0
- package/dist/lib/components/display/ArticleCardView.d.ts +16 -0
- package/dist/lib/components/display/AudioPlayerView.d.ts +10 -0
- package/dist/lib/components/display/AudioWaveformView.d.ts +15 -0
- package/dist/lib/components/display/AuditLogRowView.d.ts +14 -0
- package/dist/lib/components/display/AvatarGroupView.d.ts +17 -0
- package/dist/lib/components/display/AvatarView.d.ts +15 -0
- package/dist/lib/components/display/BannerView.d.ts +17 -0
- package/dist/lib/components/display/BarcodeView.d.ts +11 -0
- package/dist/lib/components/display/BreathingLoaderView.d.ts +11 -0
- package/dist/lib/components/display/CalloutView.d.ts +10 -0
- package/dist/lib/components/display/CarouselView.d.ts +12 -0
- package/dist/lib/components/display/ChangelogEntryView.d.ts +16 -0
- package/dist/lib/components/display/CodeBlockView.d.ts +15 -1
- package/dist/lib/components/display/ColumnVisibilityMenuView.d.ts +26 -0
- package/dist/lib/components/display/CommandOrbView.d.ts +15 -0
- package/dist/lib/components/display/CommentThreadView.d.ts +20 -0
- package/dist/lib/components/display/ComparisonSliderView.d.ts +12 -0
- package/dist/lib/components/display/ConfettiBurstView.d.ts +17 -0
- package/dist/lib/components/display/ConnectionPulseLineView.d.ts +14 -0
- package/dist/lib/components/display/ConstellationLoaderView.d.ts +14 -0
- package/dist/lib/components/display/ContactCardView.d.ts +19 -0
- package/dist/lib/components/display/CookieConsentBannerView.d.ts +14 -0
- package/dist/lib/components/display/CountUpNumberView.d.ts +16 -0
- package/dist/lib/components/display/CountdownRingView.d.ts +19 -0
- package/dist/lib/components/display/DataGridToolbarView.d.ts +20 -0
- package/dist/lib/components/display/DataTableView.d.ts +2 -1
- package/dist/lib/components/display/DescriptionsView.d.ts +19 -0
- package/dist/lib/components/display/DiffMorphView.d.ts +13 -0
- package/dist/lib/components/display/DragHandleView.d.ts +10 -0
- package/dist/lib/components/display/EditableCellView.d.ts +13 -0
- package/dist/lib/components/display/EmptyInboxView.d.ts +11 -0
- package/dist/lib/components/display/EnvironmentBadgeView.d.ts +13 -0
- package/dist/lib/components/display/FeatureSpotlightBadgeView.d.ts +11 -0
- package/dist/lib/components/display/FileIconView.d.ts +11 -0
- package/dist/lib/components/display/FileListView.d.ts +20 -0
- package/dist/lib/components/display/FilterBarView.d.ts +17 -0
- package/dist/lib/components/display/GaugeView.d.ts +12 -0
- package/dist/lib/components/display/GlowBorderView.d.ts +11 -0
- package/dist/lib/components/display/GradientTextView.d.ts +13 -0
- package/dist/lib/components/display/HeatmapCalendarView.d.ts +14 -0
- package/dist/lib/components/display/HoloCardView.d.ts +10 -0
- package/dist/lib/components/display/HudView.d.ts +36 -4
- package/dist/lib/components/display/ImageCropperView.d.ts +19 -0
- package/dist/lib/components/display/ImageGalleryView.d.ts +15 -0
- package/dist/lib/components/display/ImageZoomView.d.ts +10 -0
- package/dist/lib/components/display/InfoView.d.ts +23 -0
- package/dist/lib/components/display/InspectorPanelView.d.ts +29 -0
- package/dist/lib/components/display/IntegrationCardView.d.ts +16 -0
- package/dist/lib/components/display/KanbanBoardView.d.ts +27 -0
- package/dist/lib/components/display/KbdView.d.ts +11 -0
- package/dist/lib/components/display/KeyValueListView.d.ts +14 -0
- package/dist/lib/components/display/LatencyPulseView.d.ts +16 -0
- package/dist/lib/components/display/LicenseBadgeView.d.ts +11 -0
- package/dist/lib/components/display/ListView.d.ts +19 -0
- package/dist/lib/components/display/LiveCursorPresenceView.d.ts +19 -0
- package/dist/lib/components/display/LoaderView.d.ts +12 -1
- package/dist/lib/components/display/MagneticButtonView.d.ts +14 -0
- package/dist/lib/components/display/MaintenanceBannerView.d.ts +12 -0
- package/dist/lib/components/display/MessageBannerView.d.ts +13 -0
- package/dist/lib/components/display/MessageBubbleView.d.ts +14 -0
- package/dist/lib/components/display/NetworkGraphView.d.ts +59 -0
- package/dist/lib/components/display/NetworkGraphView.fallback.d.ts +11 -0
- package/dist/lib/components/display/NetworkGraphView.vis.d.ts +2 -0
- package/dist/lib/components/display/NetworkWeatherView.d.ts +12 -0
- package/dist/lib/components/display/NotificationBadgeView.d.ts +17 -0
- package/dist/lib/components/display/ParticleBackgroundView.d.ts +12 -0
- package/dist/lib/components/display/PathRevealView.d.ts +16 -0
- package/dist/lib/components/display/PdfViewerView.d.ts +11 -0
- package/dist/lib/components/display/PermissionMatrixView.d.ts +15 -0
- package/dist/lib/components/display/PresenceDotView.d.ts +12 -0
- package/dist/lib/components/display/PricingCardView.d.ts +16 -0
- package/dist/lib/components/display/ProgressBarView.d.ts +15 -0
- package/dist/lib/components/display/ProgressRingView.d.ts +13 -0
- package/dist/lib/components/display/PulseDotView.d.ts +10 -0
- package/dist/lib/components/display/QRCodeView.d.ts +11 -0
- package/dist/lib/components/display/QuoteBlockView.d.ts +14 -0
- package/dist/lib/components/display/RateLimitMeterView.d.ts +12 -0
- package/dist/lib/components/display/RatingBreakdownView.d.ts +12 -0
- package/dist/lib/components/display/RequestFlowView.d.ts +23 -0
- package/dist/lib/components/display/ResultView.d.ts +14 -0
- package/dist/lib/components/display/RevealOnScrollView.d.ts +14 -0
- package/dist/lib/components/display/SchemaBlueprintView.d.ts +23 -0
- package/dist/lib/components/display/SegmentedProgressBarView.d.ts +17 -0
- package/dist/lib/components/display/ShareSheetView.d.ts +19 -0
- package/dist/lib/components/display/SignaturePadView.d.ts +10 -0
- package/dist/lib/components/display/SkeletonView.d.ts +14 -0
- package/dist/lib/components/display/SnackbarView.d.ts +18 -0
- package/dist/lib/components/display/SortableHeaderView.d.ts +14 -0
- package/dist/lib/components/display/SparklineView.d.ts +14 -0
- package/dist/lib/components/display/StackedSwipeCardView.d.ts +14 -0
- package/dist/lib/components/display/StatTrendCardView.d.ts +16 -0
- package/dist/lib/components/display/StatisticView.d.ts +18 -0
- package/dist/lib/components/display/StatsCardView.d.ts +5 -1
- package/dist/lib/components/display/StatusPageRowView.d.ts +13 -0
- package/dist/lib/components/display/StickyTableHeaderView.d.ts +21 -0
- package/dist/lib/components/display/TablePaginationView.d.ts +16 -0
- package/dist/lib/components/display/TagCloudView.d.ts +17 -0
- package/dist/lib/components/display/TeamMemberRowView.d.ts +13 -0
- package/dist/lib/components/display/TerminalBlockView.d.ts +8 -0
- package/dist/lib/components/display/TestimonialCardView.d.ts +13 -0
- package/dist/lib/components/display/TiltCardView.d.ts +12 -0
- package/dist/lib/components/display/TimelineView.d.ts +20 -0
- package/dist/lib/components/display/TrialCountdownBannerView.d.ts +12 -0
- package/dist/lib/components/display/TypewriterTextView.d.ts +16 -0
- package/dist/lib/components/display/TypingIndicatorView.d.ts +11 -0
- package/dist/lib/components/display/UndoRedoTimelineView.d.ts +19 -0
- package/dist/lib/components/display/UsageMeterView.d.ts +17 -0
- package/dist/lib/components/display/VersionBadgeView.d.ts +13 -0
- package/dist/lib/components/display/VideoPlayerView.d.ts +10 -0
- package/dist/lib/components/display/VirtualizedListView.d.ts +13 -0
- package/dist/lib/components/display/WebhookStatusView.d.ts +15 -0
- package/dist/lib/components/input/AvatarUploadView.d.ts +14 -0
- package/dist/lib/components/input/CalendarView.d.ts +25 -0
- package/dist/lib/components/input/CascaderView.d.ts +23 -0
- package/dist/lib/components/input/ChatInputView.d.ts +17 -0
- package/dist/lib/components/input/ChecklistView.d.ts +17 -0
- package/dist/lib/components/input/ColorPickerView.d.ts +14 -0
- package/dist/lib/components/input/ComboBoxView.d.ts +23 -0
- package/dist/lib/components/input/DateInputView.d.ts +17 -0
- package/dist/lib/components/input/DateRangePickerView.d.ts +26 -0
- package/dist/lib/components/input/DateTimeInputView.d.ts +30 -0
- package/dist/lib/components/input/DialKnobInputView.d.ts +17 -0
- package/dist/lib/components/input/EditorView.d.ts +1 -1
- package/dist/lib/components/input/EmojiPickerView.d.ts +14 -0
- package/dist/lib/components/input/FeedbackWidgetView.d.ts +16 -0
- package/dist/lib/components/input/FileDropzoneView.d.ts +23 -0
- package/dist/lib/components/input/FloatingLabelInputView.d.ts +17 -0
- package/dist/lib/components/input/GhostTypingPlaceholderView.d.ts +19 -0
- package/dist/lib/components/input/HiddenKeyValueItemView.d.ts +1 -1
- package/dist/lib/components/input/IconPickerView.d.ts +14 -0
- package/dist/lib/components/input/InlineEditTextView.d.ts +30 -0
- package/dist/lib/components/input/InviteInputView.d.ts +15 -0
- package/dist/lib/components/input/MaskedInputView.d.ts +21 -0
- package/dist/lib/components/input/MentionInputView.d.ts +21 -0
- package/dist/lib/components/input/MergedInputView.d.ts +1 -0
- package/dist/lib/components/input/NpsSurveyView.d.ts +16 -0
- package/dist/lib/components/input/OtpInputView.d.ts +17 -0
- package/dist/lib/components/input/PhoneInputView.d.ts +25 -0
- package/dist/lib/components/input/PickerView.d.ts +38 -0
- package/dist/lib/components/input/PriorityPickerView.d.ts +13 -0
- package/dist/lib/components/input/RadioCardView.d.ts +22 -0
- package/dist/lib/components/input/RadioGroupView.d.ts +21 -0
- package/dist/lib/components/input/RangeSliderView.d.ts +18 -0
- package/dist/lib/components/input/RatingView.d.ts +16 -0
- package/dist/lib/components/input/RichTextToolbarView.d.ts +13 -0
- package/dist/lib/components/input/RoleSelectView.d.ts +21 -0
- package/dist/lib/components/input/SegmentedControlView.d.ts +15 -8
- package/dist/lib/components/input/ShortcutRecorderView.d.ts +15 -0
- package/dist/lib/components/input/SpectrumSliderView.d.ts +16 -0
- package/dist/lib/components/input/StepperInputView.d.ts +16 -0
- package/dist/lib/components/input/SwitchGroupView.d.ts +21 -0
- package/dist/lib/components/input/TabView.d.ts +10 -0
- package/dist/lib/components/input/TimeTravelSliderView.d.ts +21 -0
- package/dist/lib/components/input/TimeWheelView.d.ts +21 -0
- package/dist/lib/components/input/TransferListView.d.ts +21 -0
- package/dist/lib/components/input/TreeSelectView.d.ts +19 -0
- package/dist/lib/components/input/WizardStepperView.d.ts +19 -0
- package/dist/lib/components/layout/AccordionGroupView.d.ts +18 -0
- package/dist/lib/components/layout/AffixView.d.ts +11 -0
- package/dist/lib/components/layout/AnchorView.d.ts +18 -0
- package/dist/lib/components/layout/AspectRatioView.d.ts +12 -0
- package/dist/lib/components/layout/BackToTopView.d.ts +10 -0
- package/dist/lib/components/layout/BreadcrumbView.d.ts +14 -0
- package/dist/lib/components/layout/DockView.d.ts +17 -0
- package/dist/lib/components/layout/FaqAccordionView.d.ts +16 -0
- package/dist/lib/components/layout/HeroView.d.ts +15 -0
- package/dist/lib/components/layout/LevelView.d.ts +13 -0
- package/dist/lib/components/layout/MasonryGridView.d.ts +11 -0
- package/dist/lib/components/layout/MediaObjectView.d.ts +12 -0
- package/dist/lib/components/layout/NavbarView.d.ts +19 -0
- package/dist/lib/components/layout/OnboardingChecklistView.d.ts +19 -0
- package/dist/lib/components/layout/PaginationView.d.ts +12 -0
- package/dist/lib/components/layout/PanelListView.d.ts +28 -0
- package/dist/lib/components/layout/ScrollAreaView.d.ts +11 -0
- package/dist/lib/components/layout/SettingsRowView.d.ts +12 -0
- package/dist/lib/components/layout/SettingsSectionView.d.ts +12 -0
- package/dist/lib/components/layout/SideNavView.d.ts +3 -1
- package/dist/lib/components/layout/StickyHeaderView.d.ts +11 -0
- package/dist/lib/components/layout/TileGridView.d.ts +21 -0
- package/dist/lib/components/layout/WatermarkView.d.ts +16 -0
- package/dist/lib/components/modal/ActionSheetView.d.ts +19 -0
- package/dist/lib/components/modal/AlertDialogView.d.ts +15 -0
- package/dist/lib/components/modal/BottomSheetView.d.ts +14 -0
- package/dist/lib/components/modal/CommandPaletteView.d.ts +21 -0
- package/dist/lib/components/modal/DrawerView.d.ts +15 -0
- package/dist/lib/components/modal/ModalView.d.ts +11 -2
- package/dist/lib/components/modal/NotificationCenterView.d.ts +20 -0
- package/dist/lib/components/modal/PopoverView.d.ts +20 -0
- package/dist/lib/components/modal/SpotlightTourView.d.ts +18 -0
- package/dist/lib/components/modal/StackedToastDeckView.d.ts +17 -0
- package/dist/lib/components/modal/TooltipView.d.ts +28 -0
- package/dist/lib/components/rearrange/RearrangeView.d.ts +3 -3
- package/dist/lib/components/rearrange/SortableView.d.ts +33 -0
- package/dist/lib/components/tabs/TabBarView.d.ts +29 -1
- package/dist/lib/core/AvatarBase.d.ts +21 -0
- package/dist/lib/core/DateBase.d.ts +23 -0
- package/dist/lib/core/DuiTokens.d.ts +10 -0
- package/dist/lib/core/FeedbackBase.d.ts +27 -0
- package/dist/lib/core/LayoutBase.d.ts +21 -0
- package/dist/lib/core/MediaBase.d.ts +20 -0
- package/dist/lib/index.d.ts +392 -1
- package/dist/lib/vis-runtime.d.ts +19 -0
- package/dist/monaco-setup.js +348 -343
- package/dist/monaco-setup.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/editor.js +2 -2
- package/dist/vis-setup.d.ts +1 -0
- package/dist/vis-setup.js +418 -0
- package/dist/vis-setup.js.map +1 -0
- package/package.json +36 -2
- package/dist/chunks/EditorView.shell-BGH2VhWM.js.map +0 -1
- package/dist/chunks/daakia-icons-DxWnX_IQ.js +0 -1726
- 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
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
[](https://www.npmjs.com/package/@salilvnair/dui)
|
|
9
|
+
[](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
|
-
##
|
|
59
|
+
## Quick start
|
|
20
60
|
|
|
21
61
|
```tsx
|
|
22
|
-
import { ButtonView,
|
|
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
|
-
<
|
|
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
|
-
|
|
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
|
-
`
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
52
|
-
e.g. VS Code
|
|
53
|
-
|
|
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
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
226
|
+
## Extending MarkdownView's language support
|
|
64
227
|
|
|
65
|
-
`MarkdownView`
|
|
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
|
|
68
|
-
|
|
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 {
|
|
76
|
-
import
|
|
77
|
-
|
|
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
|
-
|
|
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).
|