@vokril/ui-solid 0.31.0 → 0.32.0
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/CHANGELOG.md +50 -0
- package/README.md +67 -4
- package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
- package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
- package/dist/{Button-4meERfnv.js → Button-CX7mylBT.js} +125 -117
- package/dist/Button-lMUW5P3O.cjs +1 -0
- package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
- package/dist/CommandPalette-DlLcdd4o.js +4029 -0
- package/dist/CopyButton-BVvv5M8g.js +63 -0
- package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
- package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
- package/dist/DateRangePicker-CHmUU4PA.js +552 -0
- package/dist/GuidedTour-9rqvNB_m.js +483 -0
- package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
- package/dist/{HostPortal-Ba3MD9CG.js → HostPortal-De65s6CU.js} +1 -1
- package/dist/{HostPortal-CpWsArs6.cjs → HostPortal-Dm4BmY8M.cjs} +1 -1
- package/dist/{IconPicker-D1G8HK92.js → IconPicker-CsYW8CXe.js} +4 -4
- package/dist/IconPicker-D-GU1mD3.cjs +1 -0
- package/dist/Input-C3rEQffK.js +382 -0
- package/dist/Input-CHtvL4_4.cjs +1 -0
- package/dist/Modal-3L6p7Dwt.js +599 -0
- package/dist/Modal-CtrWEnJ7.cjs +1 -0
- package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
- package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
- package/dist/{PageSkeleton-zNyjLPlk.js → PageSkeleton-BRuqaDzr.js} +372 -371
- package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
- package/dist/Popover-CLTXG8W0.cjs +1 -0
- package/dist/Popover-DkqGvMNy.js +207 -0
- package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
- package/dist/SearchableSelect-Du12kcI9.js +328 -0
- package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +50 -0
- package/dist/{StatusBarNotificationBell-ZTEhZFmJ.js → StatusBarNotificationBell-CgsYrrpj.js} +4868 -4790
- package/dist/Stepper-DzI-gtKd.js +586 -0
- package/dist/Stepper-rpu7lpzB.cjs +1 -0
- package/dist/{Textarea-DASNQNoi.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
- package/dist/{Textarea-szHXQahi.js → Textarea-DOzZCc-O.js} +1 -1
- package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
- package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
- package/dist/ToggleButton-B-hBpdzk.js +2144 -0
- package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
- package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
- package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
- package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
- package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
- package/dist/_internal/contract/notification.d.cts +19 -3
- package/dist/_internal/contract/notification.d.ts +19 -3
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/appThemeDerivation-Be_oKljl.cjs +1 -0
- package/dist/{server/appThemeDerivation-DBAOkGl7.js → appThemeDerivation-CKoSe4KP.js} +231 -260
- package/dist/base.css +1 -1
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
- package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
- package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
- package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +228 -227
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +4 -4
- package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
- package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +1 -0
- package/dist/host/index.d.ts +1 -0
- package/dist/host/index.js +38 -39
- package/dist/host/kitHost.d.cts +8 -0
- package/dist/host/kitHost.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +940 -938
- package/dist/kitHost-BMMWpU4w.js +47 -0
- package/dist/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
- package/dist/mainRealmDom-DydRT2Us.js +54 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notificationCatalog-CRERhjp6.js +168 -0
- package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
- package/dist/notifications/holdWhileShown.d.cts +18 -0
- package/dist/notifications/holdWhileShown.d.ts +18 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/notifications/nativeEngine.d.cts +34 -2
- package/dist/notifications/nativeEngine.d.ts +34 -2
- package/dist/notifications/notificationEntryList.d.cts +18 -5
- package/dist/notifications/notificationEntryList.d.ts +18 -5
- package/dist/overlay/Modal.d.cts +16 -3
- package/dist/overlay/Modal.d.ts +16 -3
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -1
- package/dist/overlay/index.d.ts +2 -1
- package/dist/overlay/index.js +46 -43
- package/dist/overlay/modalDefaults.d.cts +23 -0
- package/dist/overlay/modalDefaults.d.ts +23 -0
- package/dist/overlay/modalViewport.d.cts +16 -2
- package/dist/overlay/modalViewport.d.ts +16 -2
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{server/pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/rowSource-BRGZHclZ.js +1231 -0
- package/dist/rowSource-C3zlzAtR.cjs +1 -0
- package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
- package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
- package/dist/server/Button-DHefmmYz.cjs +1 -0
- package/dist/server/Button-ft_8RNJj.js +226 -0
- package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
- package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
- package/dist/server/CopyButton-CiYcsQcI.js +64 -0
- package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
- package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
- package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
- package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
- package/dist/server/GuidedTour-DYBhprVK.js +400 -0
- package/dist/server/{HostPortal-C4IrAeWN.js → HostPortal-C4xdfRyM.js} +1 -1
- package/dist/server/{HostPortal-D5ECrJvn.cjs → HostPortal-CwyePpDX.cjs} +1 -1
- package/dist/server/{IconPicker-DDWgB7sm.js → IconPicker--Xso9fUf.js} +5 -5
- package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
- package/dist/server/Input-UX0Hk53M.cjs +1 -0
- package/dist/server/Input-V9Szcw6w.js +249 -0
- package/dist/server/Modal-CBnNlaTx.cjs +1 -0
- package/dist/server/Modal-D9CjieKK.js +426 -0
- package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
- package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
- package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
- package/dist/server/Popover-BBDBIpT6.cjs +1 -0
- package/dist/server/Popover-e9JpRh11.js +439 -0
- package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
- package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
- package/dist/server/{StatusBarNotificationBell-DW2l5O9B.js → StatusBarNotificationBell-CJJFE4rf.js} +4468 -4390
- package/dist/server/StatusBarNotificationBell-Cxs_bVKX.cjs +49 -0
- package/dist/server/Stepper-C04rOZcI.cjs +1 -0
- package/dist/server/Stepper-CVAOsf3o.js +381 -0
- package/dist/server/{Textarea-Bh5LVrBn.cjs → Textarea-BG6F8taO.cjs} +1 -1
- package/dist/server/{Textarea-DVkfGkP0.js → Textarea-DM4zpgWo.js} +1 -1
- package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
- package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
- package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
- package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/appThemeDerivation-Be_oKljl.cjs +1 -0
- package/dist/{appThemeDerivation-DBAOkGl7.js → server/appThemeDerivation-CKoSe4KP.js} +231 -260
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
- package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
- package/dist/server/{createResizableSidebar-Dvu7iEk1.js → createResizableSidebar-CIrhLNKW.js} +104 -102
- package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +153 -152
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +4 -4
- package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
- package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +9 -9
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +38 -39
- package/dist/server/{index-BEARfm54.js → index-CPUZyKo7.js} +2 -2
- package/dist/server/{index-C6rYfWCJ.cjs → index-CVbkasNJ.cjs} +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +673 -671
- package/dist/server/kitHost-BMMWpU4w.js +47 -0
- package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
- package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +32 -29
- package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{pageTourState-BcBF8w89.js → server/pageTourState-DsSKdPOu.js} +160 -169
- package/dist/server/rowSource-C1F4l0xZ.cjs +1 -0
- package/dist/server/rowSource-CoeHYNsV.js +1123 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +29 -28
- package/dist/server/tokens/palette/index.cjs +1 -0
- package/dist/server/tokens/palette/index.js +31 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
- package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
- package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
- package/dist/solid/desktop/WindowControls.jsx +6 -3
- package/dist/solid/feedback/Badge.jsx +9 -5
- package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
- package/dist/solid/forms/Button.jsx +15 -9
- package/dist/solid/forms/Checkbox.jsx +5 -4
- package/dist/solid/forms/Combobox.jsx +12 -10
- package/dist/solid/forms/CopyButton.jsx +7 -4
- package/dist/solid/forms/DatePicker.jsx +12 -7
- package/dist/solid/forms/Dropzone.jsx +17 -13
- package/dist/solid/forms/FilePickerButton.jsx +5 -4
- package/dist/solid/forms/HiddenFileInput.jsx +3 -1
- package/dist/solid/forms/InputMessage.jsx +11 -10
- package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
- package/dist/solid/forms/NumberInput.jsx +25 -19
- package/dist/solid/forms/Picker.jsx +8 -6
- package/dist/solid/forms/PressableSurface.jsx +14 -9
- package/dist/solid/forms/RadioGroup.jsx +4 -3
- package/dist/solid/forms/SearchInput.jsx +4 -3
- package/dist/solid/forms/SearchableSelect.jsx +4 -3
- package/dist/solid/forms/SegmentedControl.jsx +4 -3
- package/dist/solid/forms/TagInput.jsx +22 -16
- package/dist/solid/forms/ToggleButton.jsx +4 -3
- package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
- package/dist/solid/grid/Pagination.jsx +7 -3
- package/dist/solid/host/kitHost.jsx +5 -1
- package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
- package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
- package/dist/solid/layout/ResizeHandle.jsx +6 -5
- package/dist/solid/navigation/Accordion.jsx +8 -5
- package/dist/solid/navigation/Tabs.jsx +11 -8
- package/dist/solid/notifications/NotificationItem.jsx +59 -55
- package/dist/solid/notifications/NotificationPanel.jsx +16 -8
- package/dist/solid/notifications/NotificationsCenter.jsx +2 -0
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +4 -3
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
- package/dist/solid/notifications/holdWhileShown.js +30 -0
- package/dist/solid/notifications/nativeEngine.js +52 -1
- package/dist/solid/notifications/notificationEntryList.js +25 -9
- package/dist/solid/notifications/toast.js +4 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
- package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
- package/dist/solid/overlay/Disclosure.jsx +4 -3
- package/dist/solid/overlay/DropdownMenu.jsx +6 -4
- package/dist/solid/overlay/FloatingWindow.jsx +3 -3
- package/dist/solid/overlay/HoverTooltip.jsx +9 -7
- package/dist/solid/overlay/Modal.jsx +44 -35
- package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
- package/dist/solid/overlay/Tooltip.jsx +5 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +7 -7
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +65 -50
- package/dist/solid/overlay/index.js +2 -1
- package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
- package/dist/solid/overlay/modalDefaults.jsx +10 -0
- package/dist/solid/overlay/modalViewport.js +17 -4
- package/dist/solid/overlay/popover/Popover.jsx +17 -11
- package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
- package/dist/solid/tokens/palette/index.js +1 -0
- package/dist/solid/tree/TreeRow.jsx +19 -16
- package/dist/solid/tree/TreeSurface.jsx +15 -14
- package/dist/solid/widgets/SettingsField.jsx +11 -10
- package/dist/style.css +3 -2
- package/dist/theme.css +2 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +29 -28
- package/dist/tokens/palette/index.cjs +1 -0
- package/dist/tokens/palette/index.d.cts +12 -0
- package/dist/tokens/palette/index.d.ts +12 -0
- package/dist/tokens/palette/index.js +31 -0
- package/dist/tokens/tokens.css +2 -1
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +25 -1
- package/dist/AttributeGrid-Ch1k9v5j.cjs +0 -1
- package/dist/AttributeGrid-DqFd4gBm.js +0 -320
- package/dist/Button-OyZHrl-t.cjs +0 -1
- package/dist/CommandPalette-CxYZUJtN.cjs +0 -2
- package/dist/CommandPalette-DwOp8y1-.js +0 -4018
- package/dist/CopyButton-16QNPgz6.cjs +0 -1
- package/dist/CopyButton-BVS49lMS.js +0 -63
- package/dist/DateRangePicker-8QvydugY.js +0 -550
- package/dist/DateRangePicker-DI-06xWY.cjs +0 -9
- package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
- package/dist/EmptyState-Dph6HU74.js +0 -50
- package/dist/GuidedTour-DUQwdW8n.cjs +0 -1
- package/dist/GuidedTour-DXMmHn0o.js +0 -483
- package/dist/IconPicker-Q-ZDtNkd.cjs +0 -1
- package/dist/Input-Brp5EDhg.cjs +0 -1
- package/dist/Input-CZi8KEfm.js +0 -374
- package/dist/Modal-CBi7Wd2V.cjs +0 -1
- package/dist/Modal-iyY1HUtr.js +0 -588
- package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
- package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
- package/dist/PageSkeleton-B_-4fz1q.cjs +0 -30
- package/dist/Popover-DVi179wu.js +0 -207
- package/dist/Popover-DXrczbt9.cjs +0 -1
- package/dist/SearchableSelect-DtHbWJhR.js +0 -328
- package/dist/SearchableSelect-yLVqCGFo.cjs +0 -1
- package/dist/StatusBarNotificationBell-DQs5g1K6.cjs +0 -50
- package/dist/Stepper-CyRgzWlR.js +0 -583
- package/dist/Stepper-u2ZsE5oP.cjs +0 -1
- package/dist/TimeSeriesChart-D7lIqolp.js +0 -441
- package/dist/TimeSeriesChart-DGzM9B--.cjs +0 -1
- package/dist/ToggleButton-B22PsCqo.js +0 -2138
- package/dist/ToggleButton-DWslrIBN.cjs +0 -1
- package/dist/appThemeDerivation-BylmT80v.cjs +0 -1
- package/dist/createDialogShellFocus-CQ0VNC2g.cjs +0 -1
- package/dist/createDialogShellFocus-DbiQmLgb.js +0 -282
- package/dist/createResizableSidebar-COlpGQ7H.cjs +0 -1
- package/dist/createResizableSidebar-cmCKTIg_.js +0 -504
- package/dist/kitHost-BfJExE1G.cjs +0 -1
- package/dist/kitHost-CVAEi9sF.js +0 -23
- package/dist/mainRealmDom-B215swW-.js +0 -166
- package/dist/mainRealmDom-BYGSE-fo.cjs +0 -1
- package/dist/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/rowSource-D__7o4h0.js +0 -1230
- package/dist/rowSource-DiwTu_r8.cjs +0 -1
- package/dist/server/AttributeGrid-Bpjlauuz.js +0 -281
- package/dist/server/AttributeGrid-DNYdKb8J.cjs +0 -1
- package/dist/server/Button-0AXWRw9Q.cjs +0 -1
- package/dist/server/Button-3yNrnn4P.js +0 -220
- package/dist/server/CommandPalette-BuVxnqBG.cjs +0 -1
- package/dist/server/CommandPalette-Dn3NKXPM.js +0 -3291
- package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
- package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
- package/dist/server/DateRangePicker-BFzNjaME.cjs +0 -9
- package/dist/server/DateRangePicker-CnYkTgXX.js +0 -484
- package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
- package/dist/server/GuidedTour-BZardPYW.js +0 -400
- package/dist/server/GuidedTour-yhdZk2SU.cjs +0 -1
- package/dist/server/IconPicker-C5lAN9pX.cjs +0 -1
- package/dist/server/Input-AdF-i0O8.js +0 -245
- package/dist/server/Input-XF9Jr0G9.cjs +0 -1
- package/dist/server/Modal-C5dzgcRW.js +0 -420
- package/dist/server/Modal-nAhBS1L9.cjs +0 -1
- package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
- package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
- package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
- package/dist/server/Popover-C5avmGWz.cjs +0 -1
- package/dist/server/Popover-H3AAYZI0.js +0 -439
- package/dist/server/SearchableSelect-CZrXDKfC.cjs +0 -1
- package/dist/server/SearchableSelect-DMqed5Er.js +0 -205
- package/dist/server/StatusBarNotificationBell-CGcMdT4h.cjs +0 -49
- package/dist/server/Stepper-CpapA_WH.cjs +0 -1
- package/dist/server/Stepper-gGA7JwjV.js +0 -375
- package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
- package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
- package/dist/server/ToggleButton-CA9T-OsI.cjs +0 -1
- package/dist/server/ToggleButton-CBNKajZa.js +0 -1335
- package/dist/server/appThemeDerivation-BylmT80v.cjs +0 -1
- package/dist/server/createDialogShellFocus-CDaLuPg8.cjs +0 -1
- package/dist/server/createDialogShellFocus-LGDBOVnr.js +0 -369
- package/dist/server/createResizableSidebar-v40ZOb-Q.cjs +0 -1
- package/dist/server/kitHost-BfJExE1G.cjs +0 -1
- package/dist/server/kitHost-CVAEi9sF.js +0 -23
- package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
- package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/server/rowSource-D-wcDmFU.js +0 -1122
- package/dist/server/rowSource-DltiY0o3.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createComponent as fn, isDev as ln } from "solid-js/web";
|
|
2
|
-
import { createSignal as
|
|
2
|
+
import { createSignal as _, onCleanup as gn, createMemo as W, createEffect as yn, useContext as mn, createContext as bn } from "solid-js";
|
|
3
3
|
import { B as Z } from "./bugIndicatingError-h3J5qkL6.js";
|
|
4
4
|
const w = [
|
|
5
5
|
{
|
|
@@ -174,208 +174,208 @@ const w = [
|
|
|
174
174
|
}, Fn = "viper-dark", hn = {
|
|
175
175
|
darcula: "viper-dark",
|
|
176
176
|
light: "viper-light"
|
|
177
|
-
},
|
|
177
|
+
}, rn = (n) => hn[n] ?? n;
|
|
178
178
|
let I = "viper";
|
|
179
|
-
function
|
|
179
|
+
function nr(n) {
|
|
180
180
|
if (!Object.prototype.hasOwnProperty.call(nn, n))
|
|
181
181
|
throw new Error(`Unknown theme design: ${String(n)}`);
|
|
182
182
|
I = n;
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function rr() {
|
|
185
185
|
return I;
|
|
186
186
|
}
|
|
187
187
|
function p(n = "dark") {
|
|
188
188
|
return nn[I][n];
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
192
|
-
return
|
|
190
|
+
const v = [];
|
|
191
|
+
function er(n) {
|
|
192
|
+
return v.push(n), {
|
|
193
193
|
dispose: () => {
|
|
194
|
-
const
|
|
195
|
-
|
|
194
|
+
const r = v.indexOf(n);
|
|
195
|
+
r !== -1 && v.splice(r, 1);
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
for (const
|
|
201
|
-
const
|
|
202
|
-
if (
|
|
199
|
+
function en(n) {
|
|
200
|
+
for (const r of v) {
|
|
201
|
+
const e = r.byId(n);
|
|
202
|
+
if (e !== null) return e;
|
|
203
203
|
}
|
|
204
204
|
return null;
|
|
205
205
|
}
|
|
206
|
-
const tn = (n) => n.design === void 0 || n.design === I, S = (n) => w.find((
|
|
207
|
-
function
|
|
208
|
-
const
|
|
209
|
-
return
|
|
206
|
+
const tn = (n) => n.design === void 0 || n.design === I, S = (n) => w.find((r) => r.id === n);
|
|
207
|
+
function E(n) {
|
|
208
|
+
const r = rn(n), e = S(r);
|
|
209
|
+
return e && !tn(e) ? S(p(e.type)) : e ?? en(r) ?? S(p());
|
|
210
210
|
}
|
|
211
211
|
function pn() {
|
|
212
|
-
return [...w.filter(tn), ...
|
|
213
|
-
}
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
return S(
|
|
217
|
-
}
|
|
218
|
-
const D = 4.5,
|
|
219
|
-
function
|
|
220
|
-
const
|
|
221
|
-
return
|
|
222
|
-
r: Number.parseInt(
|
|
223
|
-
g: Number.parseInt(
|
|
224
|
-
b: Number.parseInt(
|
|
212
|
+
return [...w.filter(tn), ...v.flatMap((n) => n.options())];
|
|
213
|
+
}
|
|
214
|
+
function tr(n) {
|
|
215
|
+
const r = rn(n);
|
|
216
|
+
return S(r) !== void 0 || en(r) !== null;
|
|
217
|
+
}
|
|
218
|
+
const D = 4.5, kn = 3;
|
|
219
|
+
function xn(n) {
|
|
220
|
+
const r = n.trim().replace(/^#/, ""), e = r.length === 3 ? r.split("").map((t) => t + t).join("") : r;
|
|
221
|
+
return e.length !== 6 || /[^0-9a-fA-F]/.test(e) ? null : {
|
|
222
|
+
r: Number.parseInt(e.slice(0, 2), 16),
|
|
223
|
+
g: Number.parseInt(e.slice(2, 4), 16),
|
|
224
|
+
b: Number.parseInt(e.slice(4, 6), 16)
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function vn({ r: n, g: r, b: e }) {
|
|
228
228
|
const t = (o) => Math.max(0, Math.min(255, Math.round(o))).toString(16).padStart(2, "0");
|
|
229
|
-
return `#${t(n)}${t(
|
|
229
|
+
return `#${t(n)}${t(r)}${t(e)}`;
|
|
230
230
|
}
|
|
231
231
|
function H(n) {
|
|
232
|
-
const
|
|
233
|
-
if (!
|
|
232
|
+
const r = xn(n);
|
|
233
|
+
if (!r)
|
|
234
234
|
throw new Z(
|
|
235
235
|
`contrast: expected #rgb/#rrggbb, got ${JSON.stringify(n)}. Resolve var()/transparent/color-mix to a literal hex before measuring.`
|
|
236
236
|
);
|
|
237
|
-
return
|
|
237
|
+
return r;
|
|
238
238
|
}
|
|
239
239
|
function L(n) {
|
|
240
|
-
const
|
|
241
|
-
return
|
|
240
|
+
const r = n / 255;
|
|
241
|
+
return r <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
|
|
242
242
|
}
|
|
243
243
|
function A(n) {
|
|
244
|
-
const { r
|
|
245
|
-
return 0.2126 * L(
|
|
244
|
+
const { r, g: e, b: t } = H(n);
|
|
245
|
+
return 0.2126 * L(r) + 0.7152 * L(e) + 0.0722 * L(t);
|
|
246
246
|
}
|
|
247
|
-
function m(n,
|
|
248
|
-
const
|
|
247
|
+
function m(n, r) {
|
|
248
|
+
const e = A(n), t = A(r), [o, s] = e > t ? [e, t] : [t, e];
|
|
249
249
|
return (o + 0.05) / (s + 0.05);
|
|
250
250
|
}
|
|
251
|
-
function An(n,
|
|
252
|
-
const t = H(n), o = H(
|
|
253
|
-
return
|
|
251
|
+
function An(n, r, e) {
|
|
252
|
+
const t = H(n), o = H(r), s = Math.max(0, Math.min(1, e));
|
|
253
|
+
return vn({
|
|
254
254
|
r: t.r + (o.r - t.r) * (1 - s),
|
|
255
255
|
g: t.g + (o.g - t.g) * (1 - s),
|
|
256
256
|
b: t.b + (o.b - t.b) * (1 - s)
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
return n + 1e-9 >=
|
|
259
|
+
function k(n, r) {
|
|
260
|
+
return n + 1e-9 >= r;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
263
|
-
const
|
|
264
|
-
return 116 * (
|
|
262
|
+
function En(n) {
|
|
263
|
+
const r = A(n);
|
|
264
|
+
return 116 * (r > (6 / 29) ** 3 ? Math.cbrt(r) : r / (3 * (6 / 29) ** 2) + 4 / 29) - 16;
|
|
265
265
|
}
|
|
266
266
|
const N = (n) => {
|
|
267
|
-
const
|
|
268
|
-
return
|
|
267
|
+
const r = n / 255;
|
|
268
|
+
return r <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
|
|
269
269
|
}, Tn = (n) => (n <= 31308e-7 ? 12.92 * n : 1.055 * Math.pow(n, 0.4166666666666667) - 0.055) * 255;
|
|
270
270
|
function Cn(n) {
|
|
271
|
-
const
|
|
272
|
-
if (
|
|
271
|
+
const r = n.trim().replace(/^#/, ""), e = r.length === 3 ? r.split("").map((t) => t + t).join("") : r;
|
|
272
|
+
if (e.length !== 6 || /[^0-9a-fA-F]/.test(e))
|
|
273
273
|
throw new Z(
|
|
274
274
|
`oklch: expected #rgb/#rrggbb, got ${JSON.stringify(n)}`
|
|
275
275
|
);
|
|
276
276
|
return {
|
|
277
|
-
r: Number.parseInt(
|
|
278
|
-
g: Number.parseInt(
|
|
279
|
-
b: Number.parseInt(
|
|
277
|
+
r: Number.parseInt(e.slice(0, 2), 16),
|
|
278
|
+
g: Number.parseInt(e.slice(2, 4), 16),
|
|
279
|
+
b: Number.parseInt(e.slice(4, 6), 16)
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
function Sn(n) {
|
|
283
|
-
const { r
|
|
283
|
+
const { r, g: e, b: t } = Cn(n), o = N(r), s = N(e), c = N(t), u = Math.cbrt(0.4122214708 * o + 0.5363325363 * s + 0.0514459929 * c), i = Math.cbrt(0.2119034982 * o + 0.6806995451 * s + 0.1073969566 * c), d = Math.cbrt(0.0883024619 * o + 0.2817188376 * s + 0.6299787005 * c), l = 0.2104542553 * u + 0.793617785 * i - 0.0040720468 * d, y = 1.9779984951 * u - 2.428592205 * i + 0.4505937099 * d, f = 0.0259040371 * u + 0.7827717662 * i - 0.808675766 * d, g = Math.atan2(f, y) * 180 / Math.PI;
|
|
284
284
|
return { l, c: Math.hypot(y, f), h: g < 0 ? g + 360 : g };
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
const t =
|
|
286
|
+
function K({ l: n, c: r, h: e }) {
|
|
287
|
+
const t = e * Math.PI / 180, o = r * Math.cos(t), s = r * Math.sin(t), c = (n + 0.3963377774 * o + 0.2158037573 * s) ** 3, u = (n - 0.1055613458 * o - 0.0638541728 * s) ** 3, i = (n - 0.0894841775 * o - 1.291485548 * s) ** 3;
|
|
288
288
|
return {
|
|
289
289
|
r: 4.0767416621 * c - 3.3077115913 * u + 0.2309699292 * i,
|
|
290
290
|
g: -1.2684380046 * c + 2.6097574011 * u - 0.3413193965 * i,
|
|
291
291
|
b: -0.0041960863 * c - 0.7034186147 * u + 1.707614701 * i
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
|
-
const h = 1e-4,
|
|
295
|
-
function Bn({ l: n, c:
|
|
296
|
-
if (
|
|
297
|
-
let t = 0, o =
|
|
294
|
+
const h = 1e-4, q = ({ r: n, g: r, b: e }) => n >= -h && n <= 1 + h && r >= -h && r <= 1 + h && e >= -h && e <= 1 + h;
|
|
295
|
+
function Bn({ l: n, c: r, h: e }) {
|
|
296
|
+
if (q(K({ l: n, c: r, h: e }))) return r;
|
|
297
|
+
let t = 0, o = r;
|
|
298
298
|
for (let s = 0; s < 24; s++) {
|
|
299
299
|
const c = (t + o) / 2;
|
|
300
|
-
|
|
300
|
+
q(K({ l: n, c, h: e })) ? t = c : o = c;
|
|
301
301
|
}
|
|
302
302
|
return t;
|
|
303
303
|
}
|
|
304
304
|
function O(n) {
|
|
305
|
-
const
|
|
306
|
-
return `#${t(
|
|
305
|
+
const r = Bn(n), e = K({ ...n, c: r }), t = (o) => Math.max(0, Math.min(255, Math.round(Tn(o)))).toString(16).padStart(2, "0");
|
|
306
|
+
return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function U(n, r, e, t) {
|
|
309
309
|
const o = Sn(n), s = t === "lighter" ? 1 : 0, c = O({ ...o, l: s });
|
|
310
|
-
if (!
|
|
310
|
+
if (!k(m(c, r), e)) return c;
|
|
311
311
|
let u = o.l, i = s;
|
|
312
312
|
for (let d = 0; d < 24; d++) {
|
|
313
313
|
const l = (u + i) / 2;
|
|
314
|
-
|
|
314
|
+
k(m(O({ ...o, l }), r), e) ? i = l : u = l;
|
|
315
315
|
}
|
|
316
316
|
return O({ ...o, l: i });
|
|
317
317
|
}
|
|
318
|
-
function $(n,
|
|
319
|
-
if (
|
|
320
|
-
const t = A(n) < A(
|
|
318
|
+
function $(n, r, e) {
|
|
319
|
+
if (k(m(n, r), e)) return n;
|
|
320
|
+
const t = A(n) < A(r), o = U(
|
|
321
321
|
n,
|
|
322
|
-
e,
|
|
323
322
|
r,
|
|
323
|
+
e,
|
|
324
324
|
t ? "darker" : "lighter"
|
|
325
325
|
);
|
|
326
|
-
if (
|
|
327
|
-
const s =
|
|
326
|
+
if (k(m(o, r), e)) return o;
|
|
327
|
+
const s = U(
|
|
328
328
|
n,
|
|
329
|
-
e,
|
|
330
329
|
r,
|
|
330
|
+
e,
|
|
331
331
|
t ? "lighter" : "darker"
|
|
332
332
|
);
|
|
333
|
-
return m(s,
|
|
333
|
+
return m(s, r) > m(o, r) ? s : o;
|
|
334
334
|
}
|
|
335
|
-
function wn(n,
|
|
335
|
+
function wn(n, r, e) {
|
|
336
336
|
let t = n;
|
|
337
337
|
for (let o = 0; o < 8; o++) {
|
|
338
338
|
let s = !1;
|
|
339
|
-
for (const c of
|
|
340
|
-
const u = $(t, c,
|
|
339
|
+
for (const c of r) {
|
|
340
|
+
const u = $(t, c, e);
|
|
341
341
|
u !== t && (t = u, s = !0);
|
|
342
342
|
}
|
|
343
343
|
if (!s) break;
|
|
344
344
|
}
|
|
345
345
|
return t;
|
|
346
346
|
}
|
|
347
|
-
function Dn(n,
|
|
348
|
-
let t =
|
|
349
|
-
for (const s of
|
|
347
|
+
function Dn(n, r, e) {
|
|
348
|
+
let t = r[0] ?? "#ffffff", o = -1;
|
|
349
|
+
for (const s of r) {
|
|
350
350
|
const c = m(s, n);
|
|
351
|
-
if (
|
|
351
|
+
if (k(c, e)) return s;
|
|
352
352
|
c > o && (o = c, t = s);
|
|
353
353
|
}
|
|
354
354
|
return t;
|
|
355
355
|
}
|
|
356
|
-
const In = "#2A2C31",
|
|
357
|
-
function
|
|
358
|
-
return $(n.inputBorder, n.input,
|
|
356
|
+
const In = "#2A2C31", Mn = "#1C1E23", on = 0.25, or = on;
|
|
357
|
+
function _n(n) {
|
|
358
|
+
return $(n.inputBorder, n.input, kn);
|
|
359
359
|
}
|
|
360
|
-
function Ln(n,
|
|
360
|
+
function Ln(n, r, e) {
|
|
361
361
|
const t = [
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
r.surface,
|
|
363
|
+
r.surfaceAlt,
|
|
364
|
+
r.surfaceElevated
|
|
365
365
|
];
|
|
366
|
-
return
|
|
366
|
+
return e === "dark" && t.push(In, Mn), t.flatMap((o) => [
|
|
367
367
|
o,
|
|
368
368
|
An(n, o, on)
|
|
369
369
|
]);
|
|
370
370
|
}
|
|
371
|
-
function Nn(n,
|
|
371
|
+
function Nn(n, r, e) {
|
|
372
372
|
return wn(
|
|
373
373
|
n,
|
|
374
|
-
Ln(n,
|
|
374
|
+
Ln(n, r, e),
|
|
375
375
|
D
|
|
376
376
|
);
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const sr = [
|
|
379
379
|
"error",
|
|
380
380
|
"brand",
|
|
381
381
|
"success",
|
|
@@ -383,16 +383,16 @@ const ie = [
|
|
|
383
383
|
"info"
|
|
384
384
|
], On = 60;
|
|
385
385
|
function T(n) {
|
|
386
|
-
return
|
|
386
|
+
return k(m("#ffffff", n), D) || En(n) >= On ? n : $(n, "#ffffff", D);
|
|
387
387
|
}
|
|
388
|
-
function Hn(n,
|
|
388
|
+
function Hn(n, r) {
|
|
389
389
|
return Dn(
|
|
390
390
|
n,
|
|
391
|
-
["#ffffff",
|
|
391
|
+
["#ffffff", r.surfaceAlt, "#000000"],
|
|
392
392
|
D
|
|
393
393
|
);
|
|
394
394
|
}
|
|
395
|
-
const
|
|
395
|
+
const cr = ["brand", "error", "success", "warning"], Kn = "#D76CB7", Pn = "data-colorblind-safe", P = {
|
|
396
396
|
/** Bluish green. */
|
|
397
397
|
success: "#009e73",
|
|
398
398
|
/** Vermillion. */
|
|
@@ -401,18 +401,18 @@ const ae = ["brand", "error", "success", "warning"], Pn = "#D76CB7", Kn = "data-
|
|
|
401
401
|
warning: "#e69f00",
|
|
402
402
|
/** Sky blue. */
|
|
403
403
|
info: "#56b4e9"
|
|
404
|
-
},
|
|
405
|
-
added:
|
|
406
|
-
deleted:
|
|
404
|
+
}, j = {
|
|
405
|
+
added: P.success,
|
|
406
|
+
deleted: P.error
|
|
407
407
|
};
|
|
408
408
|
function Rn(n) {
|
|
409
|
-
return { ...n, ...
|
|
409
|
+
return { ...n, ...P };
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
return typeof document > "u" ? !1 : document.documentElement.hasAttribute(
|
|
411
|
+
function ir() {
|
|
412
|
+
return typeof document > "u" ? !1 : document.documentElement.hasAttribute(Pn);
|
|
413
413
|
}
|
|
414
|
-
function $n(n,
|
|
415
|
-
const t = (d) => Nn(d, n,
|
|
414
|
+
function $n(n, r, e) {
|
|
415
|
+
const t = (d) => Nn(d, n, r), o = T(n.brand), s = T(n.error), c = T(n.success), u = T(n.warning), i = (d) => Hn(d, n);
|
|
416
416
|
return {
|
|
417
417
|
"--color-surface": n.surface,
|
|
418
418
|
"--color-surface-alt": n.surfaceAlt,
|
|
@@ -428,7 +428,7 @@ function $n(n, e, r) {
|
|
|
428
428
|
// best is 2.52:1), so this cannot be fixed by editing palettes — a theme added tomorrow
|
|
429
429
|
// would bring the same defect back. For a palette that already passes, the derivation is a
|
|
430
430
|
// no-op, and because it moves luminance in OKLCH the border keeps the theme's hue.
|
|
431
|
-
"--color-input-border":
|
|
431
|
+
"--color-input-border": _n(n),
|
|
432
432
|
"--color-success": n.success,
|
|
433
433
|
"--color-error": n.error,
|
|
434
434
|
"--color-warning": n.warning,
|
|
@@ -440,7 +440,7 @@ function $n(n, e, r) {
|
|
|
440
440
|
"--color-brand-text": t(n.brand),
|
|
441
441
|
// `unique` is a constant, not a palette field — but the backgrounds it sits on are, so its
|
|
442
442
|
// text variant is derived per theme as well.
|
|
443
|
-
"--color-unique-text": t(
|
|
443
|
+
"--color-unique-text": t(Kn),
|
|
444
444
|
"--color-brand-surface": o,
|
|
445
445
|
"--color-error-surface": s,
|
|
446
446
|
"--color-success-surface": c,
|
|
@@ -450,8 +450,8 @@ function $n(n, e, r) {
|
|
|
450
450
|
"--color-on-success": i(c),
|
|
451
451
|
"--color-on-warning": i(u),
|
|
452
452
|
// The diff gutter rides on the same signal (added/deleted ≡ success/error).
|
|
453
|
-
"--color-diff-added":
|
|
454
|
-
"--color-diff-deleted":
|
|
453
|
+
"--color-diff-added": e ? j.added : "",
|
|
454
|
+
"--color-diff-deleted": e ? j.deleted : "",
|
|
455
455
|
"--color-syntax-keyword": n.syntaxKeyword,
|
|
456
456
|
"--color-syntax-string": n.syntaxString,
|
|
457
457
|
"--color-syntax-function": n.syntaxFunction,
|
|
@@ -461,52 +461,52 @@ function $n(n, e, r) {
|
|
|
461
461
|
};
|
|
462
462
|
}
|
|
463
463
|
const X = "data-colorblind-safe", Y = "data-design";
|
|
464
|
-
function sn(n,
|
|
465
|
-
return
|
|
464
|
+
function sn(n, r = !1) {
|
|
465
|
+
return E(n === "system" ? p(r ? "light" : "dark") : n === "dark" ? p("dark") : n === "light" ? p("light") : n);
|
|
466
466
|
}
|
|
467
|
-
function Vn(n,
|
|
467
|
+
function Vn(n, r = {}) {
|
|
468
468
|
var u, i;
|
|
469
|
-
const
|
|
470
|
-
if (!t) return
|
|
471
|
-
const o = t.documentElement, s =
|
|
469
|
+
const e = typeof n == "string" ? sn(n) : n, t = r.document ?? (typeof document < "u" ? document : void 0);
|
|
470
|
+
if (!t) return e;
|
|
471
|
+
const o = t.documentElement, s = r.colorVisionSafe ?? !1;
|
|
472
472
|
s ? o.setAttribute(X, "") : o.removeAttribute(X);
|
|
473
|
-
const c = s ? Rn(
|
|
474
|
-
for (const [d, l] of Object.entries($n(c,
|
|
473
|
+
const c = s ? Rn(e.palette) : e.palette;
|
|
474
|
+
for (const [d, l] of Object.entries($n(c, e.type, s)))
|
|
475
475
|
o.style.setProperty(d, l);
|
|
476
|
-
return (u = t.body) == null || u.classList.remove("light", "dark"), (i = t.body) == null || i.classList.add(
|
|
476
|
+
return (u = t.body) == null || u.classList.remove("light", "dark"), (i = t.body) == null || i.classList.add(e.type), o.classList.remove("light", "dark"), o.classList.add(e.type), o.style.colorScheme = e.type, o.setAttribute("data-app-theme", e.id), e.design ? o.setAttribute(Y, e.design) : o.removeAttribute(Y), e;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function ar() {
|
|
479
479
|
return pn();
|
|
480
480
|
}
|
|
481
481
|
const Gn = "vokril-ui-theme", Wn = "(prefers-color-scheme: light)";
|
|
482
|
-
function
|
|
482
|
+
function qn() {
|
|
483
483
|
try {
|
|
484
484
|
return typeof localStorage > "u" ? null : localStorage;
|
|
485
485
|
} catch {
|
|
486
486
|
return null;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
const cn = bn(),
|
|
489
|
+
const cn = bn(), ur = (n) => {
|
|
490
490
|
var V, G;
|
|
491
|
-
const
|
|
492
|
-
if (!
|
|
491
|
+
const r = n.storageKey === void 0 ? Gn : n.storageKey, e = n.storage === void 0 ? qn() : n.storage, t = () => {
|
|
492
|
+
if (!e || !r) return null;
|
|
493
493
|
try {
|
|
494
|
-
return
|
|
494
|
+
return e.getItem(r);
|
|
495
495
|
} catch {
|
|
496
496
|
return null;
|
|
497
497
|
}
|
|
498
|
-
}, o = ((V = n.document) == null ? void 0 : V.defaultView) ?? (typeof window > "u" ? void 0 : window), s = (G = o == null ? void 0 : o.matchMedia) == null ? void 0 : G.call(o, Wn), [c, u] =
|
|
498
|
+
}, o = ((V = n.document) == null ? void 0 : V.defaultView) ?? (typeof window > "u" ? void 0 : window), s = (G = o == null ? void 0 : o.matchMedia) == null ? void 0 : G.call(o, Wn), [c, u] = _(t() ?? n.defaultTheme ?? "dark"), [i, d] = _((s == null ? void 0 : s.matches) ?? !1), [l, y] = _(n.colorVisionSafe ?? !1);
|
|
499
499
|
if (s) {
|
|
500
|
-
const
|
|
501
|
-
s.addEventListener("change",
|
|
500
|
+
const x = (dn) => d(dn.matches);
|
|
501
|
+
s.addEventListener("change", x), gn(() => s.removeEventListener("change", x));
|
|
502
502
|
}
|
|
503
|
-
const f = W(() => sn(c(), i())), g = W(() => f().type), b = (
|
|
504
|
-
if (u(
|
|
503
|
+
const f = W(() => sn(c(), i())), g = W(() => f().type), b = (x) => {
|
|
504
|
+
if (u(x), !(!e || !r))
|
|
505
505
|
try {
|
|
506
|
-
|
|
506
|
+
e.setItem(r, x);
|
|
507
507
|
} catch {
|
|
508
508
|
}
|
|
509
|
-
},
|
|
509
|
+
}, M = () => b(g() === "dark" ? "light" : "dark");
|
|
510
510
|
yn(() => {
|
|
511
511
|
Vn(f(), {
|
|
512
512
|
colorVisionSafe: l(),
|
|
@@ -518,7 +518,7 @@ const cn = bn(), fe = (n) => {
|
|
|
518
518
|
resolvedTheme: g,
|
|
519
519
|
themeId: () => f().id,
|
|
520
520
|
setTheme: b,
|
|
521
|
-
toggleTheme:
|
|
521
|
+
toggleTheme: M,
|
|
522
522
|
colorVisionSafe: l,
|
|
523
523
|
setColorVisionSafe: y
|
|
524
524
|
};
|
|
@@ -530,7 +530,7 @@ const cn = bn(), fe = (n) => {
|
|
|
530
530
|
});
|
|
531
531
|
};
|
|
532
532
|
let z = !1;
|
|
533
|
-
function
|
|
533
|
+
function dr() {
|
|
534
534
|
const n = mn(cn);
|
|
535
535
|
return n || (ln && !z && (z = !0, console.warn("@vokril/ui-solid: useTheme() was called outside <ThemeProvider>; it reports the design's dark theme and ignores setTheme.")), {
|
|
536
536
|
theme: () => "dark",
|
|
@@ -545,113 +545,86 @@ function le() {
|
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
}
|
|
548
|
-
const qn = {
|
|
549
|
-
surface: !0,
|
|
550
|
-
surfaceAlt: !0,
|
|
551
|
-
surfaceElevated: !0,
|
|
552
|
-
brand: !0,
|
|
553
|
-
brandHover: !0,
|
|
554
|
-
content: !0,
|
|
555
|
-
contentSecondary: !0,
|
|
556
|
-
border: !0,
|
|
557
|
-
input: !0,
|
|
558
|
-
inputBorder: !0,
|
|
559
|
-
success: !0,
|
|
560
|
-
error: !0,
|
|
561
|
-
warning: !0,
|
|
562
|
-
info: !0,
|
|
563
|
-
syntaxKeyword: !0,
|
|
564
|
-
syntaxString: !0,
|
|
565
|
-
syntaxFunction: !0,
|
|
566
|
-
syntaxComment: !0,
|
|
567
|
-
syntaxNumber: !0,
|
|
568
|
-
syntaxType: !0
|
|
569
|
-
}, ge = Object.freeze(
|
|
570
|
-
Object.keys(qn)
|
|
571
|
-
), Un = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
572
|
-
function ye(n) {
|
|
573
|
-
return typeof n == "string" && Un.test(n);
|
|
574
|
-
}
|
|
575
548
|
var Q;
|
|
576
549
|
const J = ((Q = w.find((n) => n.id === Fn)) == null ? void 0 : Q.palette) ?? w[0].palette;
|
|
577
|
-
function
|
|
550
|
+
function Un(n) {
|
|
578
551
|
return Math.max(0, Math.min(255, Math.round(n)));
|
|
579
552
|
}
|
|
580
553
|
function R(n) {
|
|
581
|
-
const
|
|
582
|
-
return
|
|
583
|
-
r: Number.parseInt(
|
|
584
|
-
g: Number.parseInt(
|
|
585
|
-
b: Number.parseInt(
|
|
554
|
+
const r = n.trim().replace(/^#/, ""), e = r.length === 3 ? r.split("").map((t) => t + t).join("") : r;
|
|
555
|
+
return e.length !== 6 || /[^0-9a-fA-F]/.test(e) ? null : {
|
|
556
|
+
r: Number.parseInt(e.slice(0, 2), 16),
|
|
557
|
+
g: Number.parseInt(e.slice(2, 4), 16),
|
|
558
|
+
b: Number.parseInt(e.slice(4, 6), 16)
|
|
586
559
|
};
|
|
587
560
|
}
|
|
588
|
-
function B({ r: n, g:
|
|
589
|
-
const t = (o) =>
|
|
590
|
-
return `#${t(n)}${t(
|
|
561
|
+
function B({ r: n, g: r, b: e }) {
|
|
562
|
+
const t = (o) => Un(o).toString(16).padStart(2, "0");
|
|
563
|
+
return `#${t(n)}${t(r)}${t(e)}`;
|
|
591
564
|
}
|
|
592
|
-
function a(n,
|
|
593
|
-
const
|
|
594
|
-
return
|
|
565
|
+
function a(n, r = "#000000") {
|
|
566
|
+
const e = R(n);
|
|
567
|
+
return e ? B(e) : r;
|
|
595
568
|
}
|
|
596
|
-
function F(n,
|
|
597
|
-
const t = R(n), o = R(
|
|
569
|
+
function F(n, r, e) {
|
|
570
|
+
const t = R(n), o = R(r);
|
|
598
571
|
if (!t && !o) return "#000000";
|
|
599
572
|
if (!t) return B(o);
|
|
600
573
|
if (!o) return B(t);
|
|
601
|
-
const s = Math.max(0, Math.min(1,
|
|
574
|
+
const s = Math.max(0, Math.min(1, e));
|
|
602
575
|
return B({
|
|
603
576
|
r: t.r + (o.r - t.r) * s,
|
|
604
577
|
g: t.g + (o.g - t.g) * s,
|
|
605
578
|
b: t.b + (o.b - t.b) * s
|
|
606
579
|
});
|
|
607
580
|
}
|
|
608
|
-
const
|
|
609
|
-
function an(n,
|
|
610
|
-
return F(n,
|
|
581
|
+
const jn = "#ffffff", Xn = "#000000";
|
|
582
|
+
function an(n, r) {
|
|
583
|
+
return F(n, jn, r);
|
|
611
584
|
}
|
|
612
|
-
function
|
|
613
|
-
return F(n,
|
|
585
|
+
function Yn(n, r) {
|
|
586
|
+
return F(n, Xn, r);
|
|
614
587
|
}
|
|
615
|
-
function
|
|
616
|
-
return
|
|
588
|
+
function zn(n, r, e) {
|
|
589
|
+
return r === "dark" ? an(n, e) : Yn(n, e);
|
|
617
590
|
}
|
|
618
|
-
function C(n,
|
|
619
|
-
return `${a(n)}${
|
|
591
|
+
function C(n, r) {
|
|
592
|
+
return `${a(n)}${r}`;
|
|
620
593
|
}
|
|
621
|
-
function
|
|
594
|
+
function fr() {
|
|
622
595
|
if (typeof document > "u") return J;
|
|
623
|
-
const n = getComputedStyle(document.documentElement),
|
|
596
|
+
const n = getComputedStyle(document.documentElement), r = (t, o) => n.getPropertyValue(t).trim() || o, e = J;
|
|
624
597
|
return {
|
|
625
|
-
surface:
|
|
626
|
-
surfaceAlt:
|
|
627
|
-
surfaceElevated:
|
|
628
|
-
brand:
|
|
629
|
-
brandHover:
|
|
630
|
-
content:
|
|
631
|
-
contentSecondary:
|
|
632
|
-
border:
|
|
633
|
-
input:
|
|
634
|
-
inputBorder:
|
|
635
|
-
success:
|
|
636
|
-
error:
|
|
637
|
-
warning:
|
|
638
|
-
info:
|
|
639
|
-
syntaxKeyword:
|
|
640
|
-
syntaxString:
|
|
641
|
-
syntaxFunction:
|
|
642
|
-
syntaxComment:
|
|
643
|
-
syntaxNumber:
|
|
644
|
-
syntaxType:
|
|
598
|
+
surface: r("--color-surface", e.surface),
|
|
599
|
+
surfaceAlt: r("--color-surface-alt", e.surfaceAlt),
|
|
600
|
+
surfaceElevated: r("--color-surface-elevated", e.surfaceElevated),
|
|
601
|
+
brand: r("--color-brand", e.brand),
|
|
602
|
+
brandHover: r("--color-brand-hover", e.brandHover),
|
|
603
|
+
content: r("--color-content", e.content),
|
|
604
|
+
contentSecondary: r("--color-content-secondary", e.contentSecondary),
|
|
605
|
+
border: r("--color-border", e.border),
|
|
606
|
+
input: r("--color-input", e.input),
|
|
607
|
+
inputBorder: r("--color-input-border", e.inputBorder),
|
|
608
|
+
success: r("--color-success", e.success),
|
|
609
|
+
error: r("--color-error", e.error),
|
|
610
|
+
warning: r("--color-warning", e.warning),
|
|
611
|
+
info: r("--color-info", e.info),
|
|
612
|
+
syntaxKeyword: r("--color-syntax-keyword", e.syntaxKeyword),
|
|
613
|
+
syntaxString: r("--color-syntax-string", e.syntaxString),
|
|
614
|
+
syntaxFunction: r("--color-syntax-function", e.syntaxFunction),
|
|
615
|
+
syntaxComment: r("--color-syntax-comment", e.syntaxComment),
|
|
616
|
+
syntaxNumber: r("--color-syntax-number", e.syntaxNumber),
|
|
617
|
+
syntaxType: r("--color-syntax-type", e.syntaxType)
|
|
645
618
|
};
|
|
646
619
|
}
|
|
647
|
-
function
|
|
620
|
+
function lr() {
|
|
648
621
|
return typeof document > "u" ? "dark" : document.body.classList.contains("light") ? "light" : "dark";
|
|
649
622
|
}
|
|
650
|
-
function
|
|
623
|
+
function gr() {
|
|
651
624
|
return typeof document > "u" ? "" : document.documentElement.getAttribute("data-app-theme") ?? "";
|
|
652
625
|
}
|
|
653
|
-
function
|
|
654
|
-
const
|
|
626
|
+
function yr(n, r) {
|
|
627
|
+
const e = a(n.syntaxKeyword), t = a(n.syntaxString), o = a(n.syntaxFunction), s = a(n.syntaxComment), c = a(n.syntaxNumber), u = a(n.syntaxType), i = a(n.content), d = a(n.brand), l = a(n.error), y = [
|
|
655
628
|
{ token: "", foreground: i.slice(1) },
|
|
656
629
|
{ token: "comment", foreground: s.slice(1), fontStyle: "italic" },
|
|
657
630
|
{
|
|
@@ -659,13 +632,13 @@ function he(n, e) {
|
|
|
659
632
|
foreground: s.slice(1),
|
|
660
633
|
fontStyle: "italic"
|
|
661
634
|
},
|
|
662
|
-
{ token: "keyword", foreground:
|
|
663
|
-
{ token: "keyword.sql", foreground:
|
|
664
|
-
{ token: "operator", foreground:
|
|
665
|
-
{ token: "operator.sql", foreground:
|
|
635
|
+
{ token: "keyword", foreground: e.slice(1) },
|
|
636
|
+
{ token: "keyword.sql", foreground: e.slice(1) },
|
|
637
|
+
{ token: "operator", foreground: e.slice(1) },
|
|
638
|
+
{ token: "operator.sql", foreground: e.slice(1) },
|
|
666
639
|
{ token: "string", foreground: t.slice(1) },
|
|
667
640
|
{ token: "string.sql", foreground: t.slice(1) },
|
|
668
|
-
{ token: "string.escape", foreground:
|
|
641
|
+
{ token: "string.escape", foreground: e.slice(1) },
|
|
669
642
|
{ token: "number", foreground: c.slice(1) },
|
|
670
643
|
{ token: "number.float", foreground: c.slice(1) },
|
|
671
644
|
{ token: "number.hex", foreground: c.slice(1) },
|
|
@@ -679,12 +652,12 @@ function he(n, e) {
|
|
|
679
652
|
{ token: "identifier.quote", foreground: t.slice(1) },
|
|
680
653
|
{ token: "variable", foreground: i.slice(1) },
|
|
681
654
|
{ token: "delimiter", foreground: i.slice(1) },
|
|
682
|
-
{ token: "tag", foreground:
|
|
655
|
+
{ token: "tag", foreground: e.slice(1) },
|
|
683
656
|
{ token: "attribute.name", foreground: o.slice(1) },
|
|
684
657
|
{ token: "attribute.value", foreground: t.slice(1) },
|
|
685
658
|
{ token: "annotation", foreground: n.warning.replace(/^#/, "") },
|
|
686
659
|
{ token: "regexp", foreground: l.slice(1) }
|
|
687
|
-
], f = a(n.surfaceAlt), g = a(n.surface), b = a(n.surfaceElevated),
|
|
660
|
+
], f = a(n.surfaceAlt), g = a(n.surface), b = a(n.surfaceElevated), M = {
|
|
688
661
|
"editor.background": f,
|
|
689
662
|
"editor.foreground": i,
|
|
690
663
|
"editorLineNumber.foreground": a(n.contentSecondary),
|
|
@@ -710,14 +683,14 @@ function he(n, e) {
|
|
|
710
683
|
"editor.findRangeHighlightBackground": C(b, "60")
|
|
711
684
|
};
|
|
712
685
|
return {
|
|
713
|
-
base:
|
|
686
|
+
base: r === "dark" ? "vs-dark" : "vs",
|
|
714
687
|
inherit: !0,
|
|
715
688
|
rules: y,
|
|
716
|
-
colors:
|
|
689
|
+
colors: M
|
|
717
690
|
};
|
|
718
691
|
}
|
|
719
|
-
function
|
|
720
|
-
const
|
|
692
|
+
function mr(n, r) {
|
|
693
|
+
const e = a(n.surface), t = a(n.surfaceElevated), o = a(n.content), s = a(n.contentSecondary), c = a(n.brand), u = a(n.error), i = a(n.success), d = a(n.warning), l = a(n.info), y = a(n.syntaxKeyword), f = (b) => zn(b, r, 0.22), g = {
|
|
721
694
|
black: t,
|
|
722
695
|
red: u,
|
|
723
696
|
green: i,
|
|
@@ -733,10 +706,10 @@ function pe(n, e) {
|
|
|
733
706
|
brightBlue: f(c),
|
|
734
707
|
brightMagenta: f(y),
|
|
735
708
|
brightCyan: f(l),
|
|
736
|
-
brightWhite:
|
|
709
|
+
brightWhite: r === "dark" ? an(o, 0.25) : o
|
|
737
710
|
};
|
|
738
711
|
return {
|
|
739
|
-
background:
|
|
712
|
+
background: e,
|
|
740
713
|
foreground: o,
|
|
741
714
|
cursor: c,
|
|
742
715
|
selectionBackground: F(t, c, 0.2),
|
|
@@ -744,42 +717,40 @@ function pe(n, e) {
|
|
|
744
717
|
};
|
|
745
718
|
}
|
|
746
719
|
export {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
Rn as C,
|
|
720
|
+
Rn as A,
|
|
721
|
+
dr as B,
|
|
750
722
|
Fn as D,
|
|
751
|
-
|
|
752
|
-
ae as I,
|
|
723
|
+
cr as I,
|
|
753
724
|
hn as L,
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
725
|
+
or as M,
|
|
726
|
+
j as O,
|
|
727
|
+
sr as T,
|
|
728
|
+
Kn as U,
|
|
729
|
+
Mn as W,
|
|
759
730
|
nn as a,
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
731
|
+
ur as b,
|
|
732
|
+
In as c,
|
|
733
|
+
T as d,
|
|
734
|
+
_n as e,
|
|
735
|
+
Hn as f,
|
|
736
|
+
Nn as g,
|
|
737
|
+
Vn as h,
|
|
738
|
+
$n as i,
|
|
739
|
+
yr as j,
|
|
740
|
+
mr as k,
|
|
741
|
+
p as l,
|
|
742
|
+
E as m,
|
|
743
|
+
rr as n,
|
|
744
|
+
pn as o,
|
|
745
|
+
ar as p,
|
|
746
|
+
ir as q,
|
|
747
|
+
tr as r,
|
|
748
|
+
fr as s,
|
|
749
|
+
gr as t,
|
|
750
|
+
lr as u,
|
|
751
|
+
er as v,
|
|
752
|
+
sn as w,
|
|
753
|
+
nr as x,
|
|
754
|
+
Ln as y,
|
|
755
|
+
w as z
|
|
785
756
|
};
|