@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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { createPortal as
|
|
4
|
-
import {
|
|
1
|
+
import { jsx as u, Fragment as T, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as E, useContext as L, createContext as P, useRef as w, useEffect as v, useState as S, useSyncExternalStore as F } from "react";
|
|
3
|
+
import { createPortal as R } from "react-dom";
|
|
4
|
+
import { aw as O } from "./daakia-icons-BpwUOdSO.js";
|
|
5
5
|
const et = {
|
|
6
6
|
/** Standard form controls: text input, select, duration, search, highlighted input */
|
|
7
7
|
input: { xxs: 16, xs: 20, sm: 24, md: 28, lg: 36, xl: 40, xxl: 48, xxxl: 56 },
|
|
@@ -26,7 +26,52 @@ const et = {
|
|
|
26
26
|
xl: 28,
|
|
27
27
|
xxl: 32,
|
|
28
28
|
xxxl: 38
|
|
29
|
+
}, xt = {
|
|
30
|
+
xxs: 18,
|
|
31
|
+
xs: 22,
|
|
32
|
+
sm: 26,
|
|
33
|
+
md: 30,
|
|
34
|
+
lg: 34,
|
|
35
|
+
xl: 38,
|
|
36
|
+
xxl: 44,
|
|
37
|
+
xxxl: 50
|
|
29
38
|
}, rt = {
|
|
39
|
+
xxs: 40,
|
|
40
|
+
xs: 52,
|
|
41
|
+
sm: 64,
|
|
42
|
+
md: 80,
|
|
43
|
+
lg: 100,
|
|
44
|
+
xl: 120,
|
|
45
|
+
xxl: 144,
|
|
46
|
+
xxxl: 168
|
|
47
|
+
}, ot = {
|
|
48
|
+
xxs: 2,
|
|
49
|
+
xs: 3,
|
|
50
|
+
sm: 4,
|
|
51
|
+
md: 5,
|
|
52
|
+
lg: 6,
|
|
53
|
+
xl: 8,
|
|
54
|
+
xxl: 10,
|
|
55
|
+
xxxl: 12
|
|
56
|
+
}, st = {
|
|
57
|
+
xxs: 16,
|
|
58
|
+
xs: 20,
|
|
59
|
+
sm: 24,
|
|
60
|
+
md: 32,
|
|
61
|
+
lg: 40,
|
|
62
|
+
xl: 48,
|
|
63
|
+
xxl: 56,
|
|
64
|
+
xxxl: 72
|
|
65
|
+
}, lt = {
|
|
66
|
+
xxs: 6,
|
|
67
|
+
xs: 7,
|
|
68
|
+
sm: 8,
|
|
69
|
+
md: 10,
|
|
70
|
+
lg: 12,
|
|
71
|
+
xl: 14,
|
|
72
|
+
xxl: 16,
|
|
73
|
+
xxxl: 20
|
|
74
|
+
}, it = {
|
|
30
75
|
xxs: { trackW: 18, trackH: 10, thumb: 8 },
|
|
31
76
|
xs: { trackW: 24, trackH: 14, thumb: 10 },
|
|
32
77
|
sm: { trackW: 28, trackH: 16, thumb: 12 },
|
|
@@ -35,7 +80,7 @@ const et = {
|
|
|
35
80
|
xl: { trackW: 52, trackH: 28, thumb: 24 },
|
|
36
81
|
xxl: { trackW: 60, trackH: 32, thumb: 28 },
|
|
37
82
|
xxxl: { trackW: 68, trackH: 36, thumb: 32 }
|
|
38
|
-
},
|
|
83
|
+
}, ct = {
|
|
39
84
|
xxs: { box: 10, icon: 6 },
|
|
40
85
|
xs: { box: 12, icon: 8 },
|
|
41
86
|
sm: { box: 14, icon: 9 },
|
|
@@ -44,7 +89,7 @@ const et = {
|
|
|
44
89
|
xl: { box: 20, icon: 15 },
|
|
45
90
|
xxl: { box: 22, icon: 17 },
|
|
46
91
|
xxxl: { box: 26, icon: 20 }
|
|
47
|
-
},
|
|
92
|
+
}, at = {
|
|
48
93
|
xxs: 8,
|
|
49
94
|
xs: 10,
|
|
50
95
|
sm: 11,
|
|
@@ -53,7 +98,7 @@ const et = {
|
|
|
53
98
|
xl: 16,
|
|
54
99
|
xxl: 18,
|
|
55
100
|
xxxl: 20
|
|
56
|
-
},
|
|
101
|
+
}, dt = {
|
|
57
102
|
xxs: "8px",
|
|
58
103
|
xs: "9px",
|
|
59
104
|
sm: "10px",
|
|
@@ -62,7 +107,7 @@ const et = {
|
|
|
62
107
|
xl: "13px",
|
|
63
108
|
xxl: "14px",
|
|
64
109
|
xxxl: "16px"
|
|
65
|
-
},
|
|
110
|
+
}, ut = {
|
|
66
111
|
xxs: "2px",
|
|
67
112
|
xs: "3px",
|
|
68
113
|
sm: "4px",
|
|
@@ -71,7 +116,7 @@ const et = {
|
|
|
71
116
|
xl: "9px",
|
|
72
117
|
xxl: "11px",
|
|
73
118
|
xxxl: "14px"
|
|
74
|
-
},
|
|
119
|
+
}, $ = {
|
|
75
120
|
xxs: 10,
|
|
76
121
|
xs: 11,
|
|
77
122
|
sm: 11,
|
|
@@ -80,7 +125,7 @@ const et = {
|
|
|
80
125
|
xl: 14,
|
|
81
126
|
xxl: 15,
|
|
82
127
|
xxxl: 16
|
|
83
|
-
},
|
|
128
|
+
}, pt = {
|
|
84
129
|
xxs: "4px",
|
|
85
130
|
xs: "6px",
|
|
86
131
|
sm: "8px",
|
|
@@ -89,7 +134,7 @@ const et = {
|
|
|
89
134
|
xl: "16px",
|
|
90
135
|
xxl: "20px",
|
|
91
136
|
xxxl: "24px"
|
|
92
|
-
},
|
|
137
|
+
}, ft = {
|
|
93
138
|
xxs: "2px",
|
|
94
139
|
xs: "3px",
|
|
95
140
|
sm: "4px",
|
|
@@ -104,7 +149,7 @@ const et = {
|
|
|
104
149
|
md: "4px",
|
|
105
150
|
lg: "6px",
|
|
106
151
|
full: "999px"
|
|
107
|
-
},
|
|
152
|
+
}, mt = {
|
|
108
153
|
xxs: "2px",
|
|
109
154
|
xs: "3px",
|
|
110
155
|
// DUI_RADIUS_MAP.sm
|
|
@@ -118,7 +163,7 @@ const et = {
|
|
|
118
163
|
// DUI_RADIUS_MAP.lg
|
|
119
164
|
xxl: "8px",
|
|
120
165
|
xxxl: "10px"
|
|
121
|
-
},
|
|
166
|
+
}, N = {
|
|
122
167
|
sm: "80px",
|
|
123
168
|
md: "120px",
|
|
124
169
|
default: "auto",
|
|
@@ -127,38 +172,38 @@ const et = {
|
|
|
127
172
|
maxContent: "max-content",
|
|
128
173
|
fw: "100%",
|
|
129
174
|
mx: "max-content"
|
|
130
|
-
},
|
|
131
|
-
function
|
|
175
|
+
}, B = { size: "md" }, C = P(B);
|
|
176
|
+
function ht({
|
|
132
177
|
size: t = "md",
|
|
133
178
|
width: e,
|
|
134
|
-
borderRadius:
|
|
135
|
-
color:
|
|
179
|
+
borderRadius: x,
|
|
180
|
+
color: r,
|
|
136
181
|
defaultColor: p,
|
|
137
|
-
activeColor:
|
|
182
|
+
activeColor: l,
|
|
138
183
|
fontStyle: a,
|
|
139
|
-
children:
|
|
184
|
+
children: o
|
|
140
185
|
}) {
|
|
141
|
-
const f =
|
|
142
|
-
() => ({ size: t, width: e, borderRadius:
|
|
143
|
-
[t, e,
|
|
186
|
+
const f = E(
|
|
187
|
+
() => ({ size: t, width: e, borderRadius: x, color: r, defaultColor: p, activeColor: l, fontStyle: a }),
|
|
188
|
+
[t, e, x, r, p, l, a]
|
|
144
189
|
);
|
|
145
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ u(C.Provider, { value: f, children: o });
|
|
146
191
|
}
|
|
147
|
-
function
|
|
148
|
-
return
|
|
192
|
+
function U() {
|
|
193
|
+
return L(C);
|
|
149
194
|
}
|
|
150
|
-
function
|
|
195
|
+
function G(t, e) {
|
|
151
196
|
return t === void 0 ? e : typeof t == "number" ? `${t}px` : z[t];
|
|
152
197
|
}
|
|
153
|
-
function
|
|
154
|
-
return t ?
|
|
198
|
+
function Z(t) {
|
|
199
|
+
return t ? N[t] : "auto";
|
|
155
200
|
}
|
|
156
|
-
function
|
|
157
|
-
const e =
|
|
158
|
-
return
|
|
201
|
+
function gt(t) {
|
|
202
|
+
const e = U();
|
|
203
|
+
return E(
|
|
159
204
|
() => ({
|
|
160
|
-
borderRadius:
|
|
161
|
-
width:
|
|
205
|
+
borderRadius: G(e.borderRadius, t),
|
|
206
|
+
width: Z(e.width),
|
|
162
207
|
color: e.color,
|
|
163
208
|
defaultColor: e.defaultColor,
|
|
164
209
|
activeColor: e.activeColor,
|
|
@@ -167,50 +212,50 @@ function dt(t) {
|
|
|
167
212
|
[e, t]
|
|
168
213
|
);
|
|
169
214
|
}
|
|
170
|
-
function
|
|
171
|
-
const
|
|
215
|
+
function bt(t, e = {}) {
|
|
216
|
+
const x = U(), r = t ?? x.size;
|
|
172
217
|
return {
|
|
173
|
-
fontSize:
|
|
218
|
+
fontSize: $[r]
|
|
174
219
|
};
|
|
175
220
|
}
|
|
176
|
-
const
|
|
177
|
-
function
|
|
178
|
-
return !t || t === "auto" ? "max-content" : typeof t == "number" ? `${t}px` :
|
|
221
|
+
const j = { auto: "max-content", sm: "140px", md: "180px", lg: "220px" };
|
|
222
|
+
function q(t) {
|
|
223
|
+
return !t || t === "auto" ? "max-content" : typeof t == "number" ? `${t}px` : j[t] || "max-content";
|
|
179
224
|
}
|
|
180
225
|
function H({
|
|
181
226
|
items: t,
|
|
182
227
|
onClose: e,
|
|
183
|
-
rounded:
|
|
228
|
+
rounded: x
|
|
184
229
|
}) {
|
|
185
|
-
const [
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
|
|
230
|
+
const [r, p] = S(null);
|
|
231
|
+
return /* @__PURE__ */ u(T, { children: t.map((l) => /* @__PURE__ */ u(
|
|
232
|
+
X,
|
|
188
233
|
{
|
|
189
|
-
item:
|
|
234
|
+
item: l,
|
|
190
235
|
onClose: e,
|
|
191
|
-
rounded:
|
|
192
|
-
activeSubId:
|
|
236
|
+
rounded: x,
|
|
237
|
+
activeSubId: r,
|
|
193
238
|
onSubOpen: p
|
|
194
239
|
},
|
|
195
|
-
|
|
240
|
+
l.id
|
|
196
241
|
)) });
|
|
197
242
|
}
|
|
198
|
-
function
|
|
243
|
+
function X({
|
|
199
244
|
item: t,
|
|
200
245
|
onClose: e,
|
|
201
|
-
rounded:
|
|
202
|
-
activeSubId:
|
|
246
|
+
rounded: x,
|
|
247
|
+
activeSubId: r,
|
|
203
248
|
onSubOpen: p
|
|
204
249
|
}) {
|
|
205
|
-
const
|
|
250
|
+
const l = w(null), a = w(null);
|
|
206
251
|
if (t.separator)
|
|
207
|
-
return /* @__PURE__ */
|
|
208
|
-
const
|
|
209
|
-
p(
|
|
210
|
-
},
|
|
252
|
+
return /* @__PURE__ */ u("div", { style: { height: "1px", background: "var(--color-surface-border)", margin: "4px 0" } });
|
|
253
|
+
const o = !!(t.children && t.children.length > 0), f = t.danger, m = o && r === t.id, I = () => {
|
|
254
|
+
p(o ? t.id : null);
|
|
255
|
+
}, d = (n) => {
|
|
211
256
|
var c;
|
|
212
257
|
if (n.stopPropagation(), !t.disabled) {
|
|
213
|
-
if (
|
|
258
|
+
if (o) {
|
|
214
259
|
p(t.id);
|
|
215
260
|
return;
|
|
216
261
|
}
|
|
@@ -218,35 +263,35 @@ function Z({
|
|
|
218
263
|
}
|
|
219
264
|
};
|
|
220
265
|
return v(() => {
|
|
221
|
-
if (!m || !
|
|
266
|
+
if (!m || !l.current || !a.current) return;
|
|
222
267
|
const n = a.current;
|
|
223
268
|
n.style.visibility = "hidden";
|
|
224
269
|
const c = requestAnimationFrame(() => {
|
|
225
|
-
if (!
|
|
226
|
-
const
|
|
227
|
-
n.style.top = `${
|
|
270
|
+
if (!l.current || !a.current) return;
|
|
271
|
+
const i = l.current.getBoundingClientRect();
|
|
272
|
+
n.style.top = `${i.top - 4}px`, n.style.left = `${i.right + 4}px`;
|
|
228
273
|
const s = n.getBoundingClientRect();
|
|
229
|
-
s.right > window.innerWidth - 8 && (n.style.left = `${
|
|
274
|
+
s.right > window.innerWidth - 8 && (n.style.left = `${i.left - s.width - 4}px`), s.bottom > window.innerHeight - 8 && (n.style.top = `${window.innerHeight - s.height - 8}px`), n.style.visibility = "visible";
|
|
230
275
|
});
|
|
231
276
|
return () => cancelAnimationFrame(c);
|
|
232
|
-
}, [m]), /* @__PURE__ */
|
|
277
|
+
}, [m]), /* @__PURE__ */ _(
|
|
233
278
|
"div",
|
|
234
279
|
{
|
|
235
|
-
ref:
|
|
236
|
-
onMouseEnter:
|
|
280
|
+
ref: l,
|
|
281
|
+
onMouseEnter: I,
|
|
237
282
|
style: { position: "relative" },
|
|
238
283
|
children: [
|
|
239
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ _(
|
|
240
285
|
"div",
|
|
241
286
|
{
|
|
242
|
-
onClick:
|
|
287
|
+
onClick: d,
|
|
243
288
|
className: `dui_ctx-menu__item${f ? " dui_ctx-menu__item--danger" : ""}${t.disabled ? " dui_ctx-menu__item--disabled" : ""}`,
|
|
244
289
|
style: {
|
|
245
290
|
display: "flex",
|
|
246
291
|
alignItems: "center",
|
|
247
292
|
gap: "8px",
|
|
248
293
|
padding: "8px 10px",
|
|
249
|
-
borderRadius:
|
|
294
|
+
borderRadius: x ? "5px" : "0px",
|
|
250
295
|
fontSize: "12px",
|
|
251
296
|
fontWeight: 500,
|
|
252
297
|
cursor: t.disabled ? "default" : "pointer",
|
|
@@ -255,15 +300,15 @@ function Z({
|
|
|
255
300
|
userSelect: "none"
|
|
256
301
|
},
|
|
257
302
|
children: [
|
|
258
|
-
t.icon && /* @__PURE__ */
|
|
259
|
-
/* @__PURE__ */
|
|
260
|
-
t.shortcut && !
|
|
261
|
-
|
|
303
|
+
t.icon && /* @__PURE__ */ u("span", { style: { width: "14px", display: "flex", alignItems: "center", flexShrink: 0, color: t.iconColor ?? (f ? "var(--color-error)" : "var(--color-text-muted)") }, children: t.icon }),
|
|
304
|
+
/* @__PURE__ */ u("span", { style: { flex: 1, whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" }, children: t.label }),
|
|
305
|
+
t.shortcut && !o && /* @__PURE__ */ u("span", { style: { fontSize: "10px", color: "var(--color-text-muted)", marginLeft: "12px", flexShrink: 0 }, children: t.shortcut }),
|
|
306
|
+
o && /* @__PURE__ */ u(O, { size: 10, style: { color: "var(--color-text-muted)", flexShrink: 0, marginLeft: "8px" } })
|
|
262
307
|
]
|
|
263
308
|
}
|
|
264
309
|
),
|
|
265
|
-
|
|
266
|
-
/* @__PURE__ */
|
|
310
|
+
o && m && R(
|
|
311
|
+
/* @__PURE__ */ u(
|
|
267
312
|
"div",
|
|
268
313
|
{
|
|
269
314
|
ref: a,
|
|
@@ -274,13 +319,13 @@ function Z({
|
|
|
274
319
|
zIndex: 99999,
|
|
275
320
|
background: "var(--color-elevated, var(--color-surface-bg))",
|
|
276
321
|
border: "1px solid var(--color-surface-border)",
|
|
277
|
-
borderRadius:
|
|
322
|
+
borderRadius: x ? "7px" : "0px",
|
|
278
323
|
padding: "4px",
|
|
279
324
|
minWidth: "200px",
|
|
280
325
|
width: "max-content",
|
|
281
326
|
boxShadow: "0 12px 40px rgba(0,0,0,.35)"
|
|
282
327
|
},
|
|
283
|
-
children: /* @__PURE__ */
|
|
328
|
+
children: /* @__PURE__ */ u(H, { items: t.children, onClose: e, rounded: x })
|
|
284
329
|
}
|
|
285
330
|
),
|
|
286
331
|
document.body
|
|
@@ -289,60 +334,60 @@ function Z({
|
|
|
289
334
|
}
|
|
290
335
|
);
|
|
291
336
|
}
|
|
292
|
-
function
|
|
337
|
+
function K({
|
|
293
338
|
items: t,
|
|
294
339
|
anchorEl: e,
|
|
295
|
-
open:
|
|
296
|
-
onClose:
|
|
340
|
+
open: x,
|
|
341
|
+
onClose: r,
|
|
297
342
|
width: p = "auto",
|
|
298
|
-
rounded:
|
|
343
|
+
rounded: l = !0,
|
|
299
344
|
matchAnchorWidth: a = !1,
|
|
300
|
-
position:
|
|
345
|
+
position: o,
|
|
301
346
|
align: f = "auto"
|
|
302
347
|
}) {
|
|
303
|
-
const m =
|
|
348
|
+
const m = w(null);
|
|
304
349
|
if (v(() => {
|
|
305
|
-
if (!
|
|
306
|
-
const
|
|
307
|
-
var
|
|
350
|
+
if (!x) return;
|
|
351
|
+
const d = (n) => {
|
|
352
|
+
var i, s;
|
|
308
353
|
const c = n.target;
|
|
309
|
-
(
|
|
354
|
+
(i = m.current) != null && i.contains(c) || e != null && e.contains(c) || (s = c.closest) != null && s.call(c, "[data-dui-ctx-menu]") || r();
|
|
310
355
|
};
|
|
311
|
-
return document.addEventListener("mousedown",
|
|
312
|
-
}, [
|
|
313
|
-
if (!
|
|
314
|
-
const
|
|
356
|
+
return document.addEventListener("mousedown", d), () => document.removeEventListener("mousedown", d);
|
|
357
|
+
}, [x, e, r]), v(() => {
|
|
358
|
+
if (!x) return;
|
|
359
|
+
const d = (n) => {
|
|
315
360
|
if (n.key === "Escape") {
|
|
316
|
-
|
|
361
|
+
r();
|
|
317
362
|
return;
|
|
318
363
|
}
|
|
319
|
-
const c = n.key.toUpperCase(),
|
|
320
|
-
|
|
364
|
+
const c = n.key.toUpperCase(), i = t.find((s) => s.disabled || s.separator || !s.shortcut || !s.onClick ? !1 : s.shortcut === "⌫" ? n.key === "Backspace" || n.key === "Delete" : s.shortcut.toUpperCase() === c);
|
|
365
|
+
i && (n.preventDefault(), i.onClick(), r());
|
|
321
366
|
};
|
|
322
|
-
return document.addEventListener("keydown",
|
|
323
|
-
}, [
|
|
324
|
-
if (!
|
|
325
|
-
const
|
|
326
|
-
const
|
|
327
|
-
let h, b,
|
|
328
|
-
if (
|
|
329
|
-
h =
|
|
367
|
+
return document.addEventListener("keydown", d), () => document.removeEventListener("keydown", d);
|
|
368
|
+
}, [x, r, t]), v(() => {
|
|
369
|
+
if (!x || !m.current) return;
|
|
370
|
+
const d = m.current, n = () => {
|
|
371
|
+
const i = d.scrollWidth, s = d.scrollHeight;
|
|
372
|
+
let h, b, y = 0;
|
|
373
|
+
if (o)
|
|
374
|
+
h = o.x, b = o.y, y = o.y;
|
|
330
375
|
else if (e) {
|
|
331
376
|
const g = e.getBoundingClientRect();
|
|
332
|
-
f === "right" ? h = g.right -
|
|
377
|
+
f === "right" ? h = g.right - i : f === "left" ? h = g.left : h = g.left + i <= window.innerWidth - 8 ? g.left : g.right - i, b = g.bottom + 4, y = g.top, a && (d.style.width = g.width + "px");
|
|
333
378
|
} else
|
|
334
379
|
return;
|
|
335
|
-
h +
|
|
380
|
+
h + i > window.innerWidth - 8 && (h = Math.max(8, window.innerWidth - i - 8)), h < 8 && (h = 8), b + s > window.innerHeight - 8 && (b = Math.max(8, y - s - 4)), d.style.left = h + "px", d.style.top = b + "px";
|
|
336
381
|
};
|
|
337
382
|
n();
|
|
338
383
|
const c = requestAnimationFrame(n);
|
|
339
384
|
return window.addEventListener("scroll", n, { passive: !0, capture: !0 }), window.addEventListener("resize", n, { passive: !0 }), () => {
|
|
340
385
|
cancelAnimationFrame(c), window.removeEventListener("scroll", n, { capture: !0 }), window.removeEventListener("resize", n);
|
|
341
386
|
};
|
|
342
|
-
}, [
|
|
343
|
-
const
|
|
344
|
-
return
|
|
345
|
-
/* @__PURE__ */
|
|
387
|
+
}, [x, e, o, a, f]), !x) return null;
|
|
388
|
+
const I = q(p);
|
|
389
|
+
return R(
|
|
390
|
+
/* @__PURE__ */ u(
|
|
346
391
|
"div",
|
|
347
392
|
{
|
|
348
393
|
ref: m,
|
|
@@ -350,78 +395,78 @@ function Y({
|
|
|
350
395
|
style: {
|
|
351
396
|
position: "fixed",
|
|
352
397
|
zIndex: 99998,
|
|
353
|
-
width:
|
|
398
|
+
width: I,
|
|
354
399
|
minWidth: "140px",
|
|
355
400
|
background: "var(--color-elevated, var(--color-surface-bg))",
|
|
356
401
|
border: "1px solid var(--color-surface-border)",
|
|
357
|
-
borderRadius:
|
|
402
|
+
borderRadius: l ? "8px" : "0px",
|
|
358
403
|
padding: "4px",
|
|
359
404
|
boxShadow: "0 12px 40px rgba(0,0,0,.35), 0 0 0 1px var(--color-panel-border, rgba(255,255,255,.04))",
|
|
360
405
|
animation: "dui_menu-in 120ms ease-out"
|
|
361
406
|
},
|
|
362
|
-
children: /* @__PURE__ */
|
|
407
|
+
children: /* @__PURE__ */ u(H, { items: t, onClose: r, rounded: l })
|
|
363
408
|
}
|
|
364
409
|
),
|
|
365
410
|
document.body
|
|
366
411
|
);
|
|
367
412
|
}
|
|
368
|
-
let
|
|
369
|
-
const
|
|
370
|
-
function
|
|
371
|
-
for (const t of
|
|
413
|
+
let W = "idle", M = null, A = null;
|
|
414
|
+
const D = /* @__PURE__ */ new Set();
|
|
415
|
+
function V() {
|
|
416
|
+
for (const t of D) t();
|
|
372
417
|
}
|
|
373
|
-
function
|
|
374
|
-
return
|
|
418
|
+
function k() {
|
|
419
|
+
return W;
|
|
375
420
|
}
|
|
376
|
-
function
|
|
421
|
+
function vt(t) {
|
|
377
422
|
M = t;
|
|
378
423
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
424
|
+
function It(t) {
|
|
425
|
+
A = t;
|
|
381
426
|
}
|
|
382
|
-
function
|
|
427
|
+
function yt() {
|
|
383
428
|
return M;
|
|
384
429
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
430
|
+
function _t() {
|
|
431
|
+
return A;
|
|
387
432
|
}
|
|
388
|
-
function
|
|
389
|
-
|
|
433
|
+
function wt() {
|
|
434
|
+
W = "ready", V();
|
|
390
435
|
}
|
|
391
|
-
function
|
|
392
|
-
return
|
|
393
|
-
(t) => (
|
|
394
|
-
|
|
395
|
-
|
|
436
|
+
function Dt() {
|
|
437
|
+
return F(
|
|
438
|
+
(t) => (D.add(t), () => D.delete(t)),
|
|
439
|
+
k,
|
|
440
|
+
k
|
|
396
441
|
);
|
|
397
442
|
}
|
|
398
|
-
function
|
|
443
|
+
function kt({
|
|
399
444
|
bordered: t,
|
|
400
445
|
containerHeight: e,
|
|
401
|
-
children:
|
|
402
|
-
contextMenuMode:
|
|
446
|
+
children: x,
|
|
447
|
+
contextMenuMode: r = "native",
|
|
403
448
|
contextMenuItems: p,
|
|
404
|
-
accentColor:
|
|
449
|
+
accentColor: l
|
|
405
450
|
}) {
|
|
406
|
-
const [a,
|
|
407
|
-
return /* @__PURE__ */
|
|
451
|
+
const [a, o] = S(null), f = r === "dui";
|
|
452
|
+
return /* @__PURE__ */ _(
|
|
408
453
|
"div",
|
|
409
454
|
{
|
|
410
455
|
className: `dui-editor-shell relative${t ? " rounded border border-[var(--color-surface-border)]" : ""}`,
|
|
411
|
-
style: { height: e, width: "100%", position: "relative", ...
|
|
456
|
+
style: { height: e, width: "100%", position: "relative", ...l ? { "--editor-accent": l } : {} },
|
|
412
457
|
onContextMenu: f ? (m) => {
|
|
413
|
-
m.preventDefault(),
|
|
458
|
+
m.preventDefault(), o({ x: m.clientX, y: m.clientY });
|
|
414
459
|
} : void 0,
|
|
415
460
|
children: [
|
|
416
|
-
|
|
417
|
-
f && p && /* @__PURE__ */
|
|
418
|
-
|
|
461
|
+
x,
|
|
462
|
+
f && p && /* @__PURE__ */ u(
|
|
463
|
+
K,
|
|
419
464
|
{
|
|
420
465
|
open: !!a,
|
|
421
466
|
anchorEl: null,
|
|
422
467
|
position: a ?? void 0,
|
|
423
468
|
items: p,
|
|
424
|
-
onClose: () =>
|
|
469
|
+
onClose: () => o(null)
|
|
425
470
|
}
|
|
426
471
|
)
|
|
427
472
|
]
|
|
@@ -429,32 +474,37 @@ function yt({
|
|
|
429
474
|
);
|
|
430
475
|
}
|
|
431
476
|
export {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
477
|
+
wt as A,
|
|
478
|
+
vt as B,
|
|
479
|
+
K as C,
|
|
480
|
+
mt as D,
|
|
481
|
+
kt as E,
|
|
482
|
+
It as F,
|
|
483
|
+
ft as a,
|
|
484
|
+
pt as b,
|
|
485
|
+
at as c,
|
|
486
|
+
dt as d,
|
|
439
487
|
et as e,
|
|
440
|
-
|
|
488
|
+
G as f,
|
|
441
489
|
nt as g,
|
|
442
490
|
z as h,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
491
|
+
it as i,
|
|
492
|
+
ut as j,
|
|
493
|
+
rt as k,
|
|
494
|
+
xt as l,
|
|
495
|
+
ot as m,
|
|
496
|
+
lt as n,
|
|
497
|
+
st as o,
|
|
498
|
+
ct as p,
|
|
499
|
+
bt as q,
|
|
500
|
+
Z as r,
|
|
501
|
+
Dt as s,
|
|
502
|
+
yt as t,
|
|
503
|
+
U as u,
|
|
504
|
+
_t as v,
|
|
505
|
+
$ as w,
|
|
506
|
+
N as x,
|
|
507
|
+
ht as y,
|
|
508
|
+
gt as z
|
|
459
509
|
};
|
|
460
|
-
//# sourceMappingURL=EditorView.shell-
|
|
510
|
+
//# sourceMappingURL=EditorView.shell-DWGMOgiy.js.map
|