@vokril/ui-solid 0.29.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 +121 -0
- package/README.md +90 -0
- package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
- package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
- package/dist/Button-CX7mylBT.js +308 -0
- 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-CXGUUhP8.js → HostPortal-De65s6CU.js} +1 -1
- package/dist/HostPortal-Dm4BmY8M.cjs +1 -0
- package/dist/{IconPicker-DYqNi5ud.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-CLnJO6uD.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-7Izs_msz.js → StatusBarNotificationBell-CgsYrrpj.js} +5205 -4850
- package/dist/Stepper-DzI-gtKd.js +586 -0
- package/dist/Stepper-rpu7lpzB.cjs +1 -0
- package/dist/{Textarea-CeAGf08O.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
- package/dist/{Textarea-B5QqqKnI.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 +28 -3
- package/dist/_internal/contract/notification.d.ts +28 -3
- package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
- package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
- package/dist/anchoredLayout-E0mqCWxk.js +233 -0
- package/dist/base.css +3 -3
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/context/DesktopContextMenuContext.d.cts +8 -1
- package/dist/context/DesktopContextMenuContext.d.ts +8 -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 +229 -228
- package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- 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/Input.d.cts +20 -0
- package/dist/forms/Input.d.ts +20 -0
- package/dist/forms/InputMessage.d.cts +19 -0
- package/dist/forms/InputMessage.d.ts +19 -0
- 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 +936 -928
- 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/layout/resizeCarry.d.cts +17 -0
- package/dist/layout/resizeCarry.d.ts +17 -0
- package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
- package/dist/mainRealmDom-DydRT2Us.js +54 -0
- package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
- package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -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/NotificationItem.d.cts +9 -0
- package/dist/notifications/NotificationItem.d.ts +9 -0
- package/dist/notifications/NotificationsCenter.d.cts +18 -0
- package/dist/notifications/NotificationsCenter.d.ts +18 -0
- package/dist/notifications/RunningProgressCards.d.cts +3 -0
- package/dist/notifications/RunningProgressCards.d.ts +3 -0
- package/dist/notifications/fireNotification.d.cts +35 -16
- package/dist/notifications/fireNotification.d.ts +35 -16
- 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.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +55 -52
- package/dist/notifications/nativeEngine.d.cts +38 -5
- package/dist/notifications/nativeEngine.d.ts +38 -5
- package/dist/notifications/notificationEntryList.d.cts +104 -0
- package/dist/notifications/notificationEntryList.d.ts +104 -0
- package/dist/notifications/notificationService.d.cts +23 -2
- package/dist/notifications/notificationService.d.ts +23 -2
- package/dist/notifications/toast.d.cts +3 -0
- package/dist/notifications/toast.d.ts +3 -0
- package/dist/notifications/toastCorner.d.cts +8 -0
- package/dist/notifications/toastCorner.d.ts +8 -0
- package/dist/notifications/toastFilterPolicy.d.cts +33 -1
- package/dist/notifications/toastFilterPolicy.d.ts +33 -1
- package/dist/overlay/Modal.d.cts +19 -0
- package/dist/overlay/Modal.d.ts +19 -0
- package/dist/overlay/backgroundInert.d.cts +6 -2
- package/dist/overlay/backgroundInert.d.ts +6 -2
- package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
- package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
- 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 +80 -75
- 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/overlay/nativeTitleHold.d.cts +24 -0
- package/dist/overlay/nativeTitleHold.d.ts +24 -0
- package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
- package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{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-CXGUUhP8.js → HostPortal-C4xdfRyM.js} +1 -1
- package/dist/server/HostPortal-CwyePpDX.cjs +1 -0
- package/dist/server/{IconPicker-B4aXspLw.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-D8Jt3PXI.js → StatusBarNotificationBell-CJJFE4rf.js} +5043 -4698
- 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-BQf2lL59.cjs → Textarea-BG6F8taO.cjs} +1 -1
- package/dist/server/{Textarea-BTH48NET.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/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
- package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- 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-BImbKlLe.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 +154 -153
- package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- 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-UIjsx3oJ.js → index-CPUZyKo7.js} +3604 -3617
- package/dist/server/index-CVbkasNJ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +656 -649
- 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 +55 -52
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +72 -68
- package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/server/{pageTourState-BcBF8w89.js → 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 -26
- 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 +12 -19
- package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
- package/dist/solid/forms/Button.jsx +18 -23
- 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/Input.jsx +31 -5
- package/dist/solid/forms/Input.module.css.js +1 -0
- package/dist/solid/forms/InputMessage.jsx +87 -0
- 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 +17 -23
- 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 +15 -4
- package/dist/solid/layout/resizeCarry.js +31 -0
- package/dist/solid/navigation/Accordion.jsx +8 -5
- package/dist/solid/navigation/Tabs.jsx +11 -8
- package/dist/solid/notifications/NotificationHost.jsx +5 -18
- package/dist/solid/notifications/NotificationItem.jsx +62 -58
- package/dist/solid/notifications/NotificationPanel.jsx +27 -9
- package/dist/solid/notifications/NotificationsCenter.jsx +72 -12
- package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +12 -6
- package/dist/solid/notifications/catalogAdapter.js +1 -0
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
- package/dist/solid/notifications/fireNotification.js +21 -16
- package/dist/solid/notifications/holdWhileShown.js +30 -0
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/nativeEngine.js +52 -1
- package/dist/solid/notifications/notificationEntryList.js +184 -0
- package/dist/solid/notifications/notificationService.js +20 -4
- package/dist/solid/notifications/toast.js +58 -7
- package/dist/solid/notifications/toastCorner.js +3 -0
- package/dist/solid/notifications/toastFilterPolicy.js +12 -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/Drawer.jsx +2 -1
- 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 +81 -34
- package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
- package/dist/solid/overlay/Tooltip.jsx +5 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +11 -11
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +73 -57
- 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/nativeTitleHold.js +33 -0
- package/dist/solid/overlay/popover/Popover.jsx +17 -11
- package/dist/solid/overlay/tooltipDirective.js +3 -11
- package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
- package/dist/solid/tokens/index.js +1 -0
- package/dist/solid/tokens/palette/index.js +1 -0
- package/dist/solid/tokens/palette/paletteContract.js +27 -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 +4 -3
- package/dist/theme.css +3 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +29 -26
- 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/palette/paletteContract.d.cts +17 -0
- package/dist/tokens/palette/paletteContract.d.ts +17 -0
- package/dist/tokens/tokens.css +3 -2
- 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-CASILa4u.js +0 -320
- package/dist/AttributeGrid-eND8YDby.cjs +0 -1
- package/dist/Button-Bb68ymNP.cjs +0 -1
- package/dist/Button-D-T0tyGF.js +0 -305
- package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
- package/dist/CommandPalette-Cj618AOz.js +0 -4017
- package/dist/CopyButton-B5gS2ft3.cjs +0 -1
- package/dist/CopyButton-g-WSiBDZ.js +0 -63
- package/dist/DateRangePicker-CJD9ADgB.js +0 -550
- package/dist/DateRangePicker-Frc0HVxp.cjs +0 -9
- package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
- package/dist/EmptyState-Dph6HU74.js +0 -50
- package/dist/GuidedTour-B6q7lYhn.cjs +0 -1
- package/dist/GuidedTour-CFCvRJN4.js +0 -483
- package/dist/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/IconPicker-CIbJb1ei.cjs +0 -1
- package/dist/Input-CZruORyy.cjs +0 -1
- package/dist/Input-DkPhsdfk.js +0 -227
- package/dist/Modal-CY6ePolt.cjs +0 -1
- package/dist/Modal-NzZzHSwb.js +0 -559
- package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
- package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
- package/dist/PageSkeleton-BPbb28-H.cjs +0 -30
- package/dist/Popover-CWrR51eG.cjs +0 -1
- package/dist/Popover-Cttb6NYT.js +0 -206
- package/dist/SearchableSelect-BvCm4enQ.js +0 -327
- package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
- package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
- package/dist/Stepper-Ci5JpLbS.cjs +0 -1
- package/dist/Stepper-D9i1Xclm.js +0 -583
- package/dist/TimeSeriesChart-DOwi2lJs.js +0 -441
- package/dist/TimeSeriesChart-huvheefm.cjs +0 -1
- package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
- package/dist/ToggleButton-CFM8P3JY.js +0 -2137
- package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
- package/dist/anchoredLayout-FC-qv8xm.js +0 -250
- package/dist/createDialogShellFocus-B4piXDU4.js +0 -282
- package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
- package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
- package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
- package/dist/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/kitHost-BfJExE1G.cjs +0 -1
- package/dist/kitHost-CVAEi9sF.js +0 -23
- package/dist/mainRealmDom-C12lr9lm.js +0 -171
- package/dist/mainRealmDom-S6teqEr4.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-B7sb3btp.cjs +0 -1
- package/dist/server/AttributeGrid-CMi-UtWb.js +0 -281
- package/dist/server/Button-0AXWRw9Q.cjs +0 -1
- package/dist/server/Button-3yNrnn4P.js +0 -220
- package/dist/server/CommandPalette-CozogFlk.js +0 -3265
- package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
- package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
- package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
- package/dist/server/DateRangePicker-C35q8BTw.js +0 -484
- package/dist/server/DateRangePicker-KLZzyuPJ.cjs +0 -9
- package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
- package/dist/server/GuidedTour-DfV0yzqh.cjs +0 -1
- package/dist/server/GuidedTour-DmLbBttx.js +0 -400
- package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/server/IconPicker-B1soopAp.cjs +0 -1
- package/dist/server/Input-CjvD8w18.cjs +0 -1
- package/dist/server/Input-DaEN2JJd.js +0 -127
- package/dist/server/Modal-BheFQLs1.js +0 -415
- package/dist/server/Modal-BswxV8Pn.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-BsxIKBbl.cjs +0 -1
- package/dist/server/Popover-Cg28aPUZ.js +0 -439
- package/dist/server/SearchableSelect-09ECcDlB.cjs +0 -1
- package/dist/server/SearchableSelect-vjhS4c-H.js +0 -205
- package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
- package/dist/server/Stepper-DxNrskdq.cjs +0 -1
- package/dist/server/Stepper-n5f9r-ye.js +0 -375
- package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
- package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
- package/dist/server/ToggleButton-FywO2CCI.js +0 -1335
- package/dist/server/ToggleButton-TE3Xf2yD.cjs +0 -1
- package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
- package/dist/server/createDialogShellFocus-BFo8awdj.js +0 -369
- package/dist/server/createDialogShellFocus-BiBAZOCI.cjs +0 -1
- package/dist/server/createResizableSidebar-GFgZIj-5.cjs +0 -1
- package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/server/index-2mQPVEDR.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
- package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
- package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { insert as l, createComponent as c, effect as d, className as i, template as k, mergeProps as O, memo as A } from "solid-js/web";
|
|
2
|
+
import { createMemo as f, onMount as M, Show as T, For as H } from "solid-js";
|
|
3
|
+
import { S as x } from "./SearchableSelect-Du12kcI9.js";
|
|
4
|
+
import { B as R } from "./Button-CX7mylBT.js";
|
|
5
|
+
import { t as s } from "./i18n-CBlUGOyu.js";
|
|
6
|
+
import { I as F, P as $ } from "./Input-C3rEQffK.js";
|
|
7
|
+
import { VpClose as N, VpSearch as E, VpCheck as X } from "@vokril/icons";
|
|
8
|
+
import { i as y } from "./iconScale.module-C3O0bxfp.js";
|
|
9
|
+
import { i as J } from "./keys-B2nlkpqc.js";
|
|
10
|
+
import { B as K } from "./bugIndicatingError-h3J5qkL6.js";
|
|
11
|
+
function U(t, r) {
|
|
12
|
+
return t <= 0 ? r : String(t);
|
|
13
|
+
}
|
|
14
|
+
const j = "vk_paginationRow_hg8fj", q = "vk_paginationMeta_rPi8N", D = "vk_paginationActions_gD2Fz", G = "vk_paginationLabel_9x9Ah", Q = "vk_paginationSelect_h5BcT", Y = "vk_paginationPage_CYJRF", B = {
|
|
15
|
+
paginationRow: j,
|
|
16
|
+
paginationMeta: q,
|
|
17
|
+
paginationActions: D,
|
|
18
|
+
paginationLabel: G,
|
|
19
|
+
paginationSelect: Q,
|
|
20
|
+
paginationPage: Y
|
|
21
|
+
};
|
|
22
|
+
var Z = /* @__PURE__ */ k("<div><span></span><div><label></label><span> / ");
|
|
23
|
+
function eo(t) {
|
|
24
|
+
const r = f(() => t.page), e = f(() => t.totalPages), a = () => r()(), b = () => e()(), _ = f(() => {
|
|
25
|
+
const v = s("Unlimited");
|
|
26
|
+
return t.pageSizeOptions.map((g) => ({
|
|
27
|
+
value: String(g),
|
|
28
|
+
label: U(g, v)
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
return (() => {
|
|
32
|
+
var v = Z(), g = v.firstChild, h = g.nextSibling, p = h.firstChild, S = p.nextSibling, L = S.firstChild;
|
|
33
|
+
return l(g, () => s("Showing {shown} of {total} items", {
|
|
34
|
+
shown: t.shownCount(),
|
|
35
|
+
total: t.totalCount()
|
|
36
|
+
})), l(p, () => s("Page size"), null), l(p, c(x, {
|
|
37
|
+
size: "sm",
|
|
38
|
+
get class() {
|
|
39
|
+
return B.paginationSelect;
|
|
40
|
+
},
|
|
41
|
+
get value() {
|
|
42
|
+
return String(t.pageSize());
|
|
43
|
+
},
|
|
44
|
+
get options() {
|
|
45
|
+
return _();
|
|
46
|
+
},
|
|
47
|
+
onChange: (n) => {
|
|
48
|
+
t.onPageSizeChange(Number(n));
|
|
49
|
+
},
|
|
50
|
+
searchable: !1,
|
|
51
|
+
get ariaLabel() {
|
|
52
|
+
return s("Page size");
|
|
53
|
+
}
|
|
54
|
+
}), null), l(h, c(R, {
|
|
55
|
+
size: "sm",
|
|
56
|
+
variant: "secondary",
|
|
57
|
+
get disabled() {
|
|
58
|
+
return a() <= 1;
|
|
59
|
+
},
|
|
60
|
+
onClick: () => t.onPageChange(Math.max(1, a() - 1)),
|
|
61
|
+
get children() {
|
|
62
|
+
return s("Previous");
|
|
63
|
+
}
|
|
64
|
+
}), S), l(S, a, L), l(S, b, null), l(h, c(R, {
|
|
65
|
+
size: "sm",
|
|
66
|
+
variant: "secondary",
|
|
67
|
+
get disabled() {
|
|
68
|
+
return a() >= b();
|
|
69
|
+
},
|
|
70
|
+
onClick: () => t.onPageChange(Math.min(b(), a() + 1)),
|
|
71
|
+
get children() {
|
|
72
|
+
return s("Next");
|
|
73
|
+
}
|
|
74
|
+
}), null), d((n) => {
|
|
75
|
+
var I = B.paginationRow, V = B.paginationMeta, w = B.paginationActions, P = B.paginationLabel, z = B.paginationPage;
|
|
76
|
+
return I !== n.e && i(v, n.e = I), V !== n.t && i(g, n.t = V), w !== n.a && i(h, n.a = w), P !== n.o && i(p, n.o = P), z !== n.i && i(S, n.i = z), n;
|
|
77
|
+
}, {
|
|
78
|
+
e: void 0,
|
|
79
|
+
t: void 0,
|
|
80
|
+
a: void 0,
|
|
81
|
+
o: void 0,
|
|
82
|
+
i: void 0
|
|
83
|
+
}), v;
|
|
84
|
+
})();
|
|
85
|
+
}
|
|
86
|
+
const W = "vk_toolbar_LSRmU", tt = "vk_toolbarHorizontal_qHM-8", ot = "vk_toolbarViewClip_Q893H", et = "vk_toolbarScrollRoot_aYbLg", rt = "vk_toolbarScrollViewport_qBzjd", at = "vk_toolbarScrollTrack_Tp8TN", lt = "vk_segmentedCapsule_k9EBy", nt = "vk_toolbarBtn_CcyXF", it = "vk_toolbarBtnActive_UgTBV", ct = "vk_toolbarBtnIconOnly_BlE-b", st = "vk_toolbarHorizontalBottom_qLzhJ", bt = "vk_toolbarVertical_EjHi2", gt = "vk_toolbarVerticalRight_DBgEa", ut = "vk_toolbarScrollRootVertical_VGLRy", vt = "vk_toolbarScrollViewportVertical_RLF5g", _t = "vk_toolbarScrollTrackVertical_c1rBF", dt = "vk_toolbarSettingsBtn_XXfMz", Bt = "vk_toolbarIcon_0FvlL", St = "vk_toolbarSpacer_N3TbQ", kt = "vk_sortBadgePill_nVrIk", ht = "vk_sortBadgeBtn_Is9PS", pt = "vk_sortBadgeIcon_kw8oa", ft = "vk_sortBadgeLabel_l-p33", mt = "vk_sortBadgeClearBtn_ioOaP", Ct = "vk_sortBadgeClearIcon_0e6Kd", It = "vk_filterInputContainer_kegUv", Vt = "vk_filterSearchIcon_gI0m2", wt = "vk_filterInput_bX9xM", Pt = "vk_filterClearBtn_WerJL", zt = "vk_filterClearIcon_7fuAJ", o = {
|
|
87
|
+
toolbar: W,
|
|
88
|
+
toolbarHorizontal: tt,
|
|
89
|
+
toolbarViewClip: ot,
|
|
90
|
+
toolbarScrollRoot: et,
|
|
91
|
+
toolbarScrollViewport: rt,
|
|
92
|
+
toolbarScrollTrack: at,
|
|
93
|
+
segmentedCapsule: lt,
|
|
94
|
+
toolbarBtn: nt,
|
|
95
|
+
toolbarBtnActive: it,
|
|
96
|
+
toolbarBtnIconOnly: ct,
|
|
97
|
+
toolbarHorizontalBottom: st,
|
|
98
|
+
toolbarVertical: bt,
|
|
99
|
+
toolbarVerticalRight: gt,
|
|
100
|
+
toolbarScrollRootVertical: ut,
|
|
101
|
+
toolbarScrollViewportVertical: vt,
|
|
102
|
+
toolbarScrollTrackVertical: _t,
|
|
103
|
+
toolbarSettingsBtn: dt,
|
|
104
|
+
toolbarIcon: Bt,
|
|
105
|
+
toolbarSpacer: St,
|
|
106
|
+
sortBadgePill: kt,
|
|
107
|
+
sortBadgeBtn: ht,
|
|
108
|
+
sortBadgeIcon: pt,
|
|
109
|
+
sortBadgeLabel: ft,
|
|
110
|
+
sortBadgeClearBtn: mt,
|
|
111
|
+
sortBadgeClearIcon: Ct,
|
|
112
|
+
filterInputContainer: It,
|
|
113
|
+
filterSearchIcon: Vt,
|
|
114
|
+
filterInput: wt,
|
|
115
|
+
filterClearBtn: Pt,
|
|
116
|
+
filterClearIcon: zt
|
|
117
|
+
}, Rt = "vk_searchRow_2pwXX", Tt = "vk_searchInput_PbDtG", $t = "vk_clearBtn_upa-E", m = {
|
|
118
|
+
searchRow: Rt,
|
|
119
|
+
searchInput: Tt,
|
|
120
|
+
clearBtn: $t
|
|
121
|
+
};
|
|
122
|
+
var yt = /* @__PURE__ */ k("<div>");
|
|
123
|
+
function ro(t) {
|
|
124
|
+
return c($, {
|
|
125
|
+
type: "button",
|
|
126
|
+
get class() {
|
|
127
|
+
return `${o.toolbarSettingsBtn} ${t.active ? o.toolbarBtnActive : ""}`;
|
|
128
|
+
},
|
|
129
|
+
get onClick() {
|
|
130
|
+
return t.onToggle;
|
|
131
|
+
},
|
|
132
|
+
get "aria-pressed"() {
|
|
133
|
+
return t.active;
|
|
134
|
+
},
|
|
135
|
+
get "aria-label"() {
|
|
136
|
+
return s("Search");
|
|
137
|
+
},
|
|
138
|
+
get title() {
|
|
139
|
+
return s("Search");
|
|
140
|
+
},
|
|
141
|
+
get children() {
|
|
142
|
+
return c(E, {
|
|
143
|
+
get class() {
|
|
144
|
+
return o.toolbarIcon;
|
|
145
|
+
},
|
|
146
|
+
"aria-hidden": "true"
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function ao(t) {
|
|
152
|
+
let r;
|
|
153
|
+
return M(() => r == null ? void 0 : r.focus()), (() => {
|
|
154
|
+
var e = yt();
|
|
155
|
+
return l(e, c(F, O({
|
|
156
|
+
ref(a) {
|
|
157
|
+
var b = r;
|
|
158
|
+
typeof b == "function" ? b(a) : r = a;
|
|
159
|
+
},
|
|
160
|
+
get class() {
|
|
161
|
+
return m.searchInput;
|
|
162
|
+
},
|
|
163
|
+
type: "search",
|
|
164
|
+
size: "sm",
|
|
165
|
+
get value() {
|
|
166
|
+
return t.value;
|
|
167
|
+
},
|
|
168
|
+
onInput: (a) => t.onInput(a.currentTarget.value),
|
|
169
|
+
onKeyDown: (a) => {
|
|
170
|
+
J(a, "Escape") && t.onClose();
|
|
171
|
+
},
|
|
172
|
+
get placeholder() {
|
|
173
|
+
return t.placeholder ?? s("Search…");
|
|
174
|
+
}
|
|
175
|
+
}, () => t.disabled !== void 0 ? {
|
|
176
|
+
disabled: t.disabled
|
|
177
|
+
} : {})), null), l(e, c(T, {
|
|
178
|
+
get when() {
|
|
179
|
+
return t.value.length > 0;
|
|
180
|
+
},
|
|
181
|
+
get children() {
|
|
182
|
+
return c($, {
|
|
183
|
+
type: "button",
|
|
184
|
+
get class() {
|
|
185
|
+
return m.clearBtn;
|
|
186
|
+
},
|
|
187
|
+
onClick: () => t.onInput(""),
|
|
188
|
+
get "aria-label"() {
|
|
189
|
+
return s("Clear search");
|
|
190
|
+
},
|
|
191
|
+
get title() {
|
|
192
|
+
return s("Clear search");
|
|
193
|
+
},
|
|
194
|
+
get children() {
|
|
195
|
+
return c(N, {
|
|
196
|
+
get class() {
|
|
197
|
+
return y.iconSm;
|
|
198
|
+
},
|
|
199
|
+
"aria-hidden": "true"
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}), null), d(() => i(e, m.searchRow)), e;
|
|
205
|
+
})();
|
|
206
|
+
}
|
|
207
|
+
const lo = Object.freeze({
|
|
208
|
+
toolbar: o.toolbar,
|
|
209
|
+
toolbarHorizontal: o.toolbarHorizontal,
|
|
210
|
+
toolbarHorizontalBottom: o.toolbarHorizontalBottom,
|
|
211
|
+
toolbarVertical: o.toolbarVertical,
|
|
212
|
+
toolbarVerticalRight: o.toolbarVerticalRight,
|
|
213
|
+
toolbarViewClip: o.toolbarViewClip,
|
|
214
|
+
toolbarScrollRoot: o.toolbarScrollRoot,
|
|
215
|
+
toolbarScrollViewport: o.toolbarScrollViewport,
|
|
216
|
+
toolbarScrollTrack: o.toolbarScrollTrack,
|
|
217
|
+
toolbarScrollRootVertical: o.toolbarScrollRootVertical,
|
|
218
|
+
toolbarScrollViewportVertical: o.toolbarScrollViewportVertical,
|
|
219
|
+
toolbarScrollTrackVertical: o.toolbarScrollTrackVertical,
|
|
220
|
+
segmentedCapsule: o.segmentedCapsule,
|
|
221
|
+
toolbarBtn: o.toolbarBtn,
|
|
222
|
+
toolbarBtnActive: o.toolbarBtnActive,
|
|
223
|
+
toolbarBtnIconOnly: o.toolbarBtnIconOnly,
|
|
224
|
+
toolbarIcon: o.toolbarIcon,
|
|
225
|
+
toolbarSpacer: o.toolbarSpacer,
|
|
226
|
+
toolbarSettingsBtn: o.toolbarSettingsBtn,
|
|
227
|
+
sortBadgePill: o.sortBadgePill,
|
|
228
|
+
sortBadgeBtn: o.sortBadgeBtn,
|
|
229
|
+
sortBadgeIcon: o.sortBadgeIcon,
|
|
230
|
+
sortBadgeLabel: o.sortBadgeLabel,
|
|
231
|
+
sortBadgeClearBtn: o.sortBadgeClearBtn,
|
|
232
|
+
sortBadgeClearIcon: o.sortBadgeClearIcon,
|
|
233
|
+
filterInputContainer: o.filterInputContainer,
|
|
234
|
+
filterSearchIcon: o.filterSearchIcon,
|
|
235
|
+
filterInput: o.filterInput,
|
|
236
|
+
filterClearBtn: o.filterClearBtn,
|
|
237
|
+
filterClearIcon: o.filterClearIcon
|
|
238
|
+
});
|
|
239
|
+
function Lt(t, r) {
|
|
240
|
+
const e = `${r}: `;
|
|
241
|
+
throw new K(
|
|
242
|
+
`${e}Non-exhaustive switch: unexpected value ${JSON.stringify(t)}`
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
const Ot = "vk_grid_uK6pm", At = "vk_card_33OV3", Mt = "vk_item_UeZrE", Ht = "vk_label_a-LFz", xt = "vk_value_9ZQBt", Ft = "vk_valueMono_knknq", Nt = "vk_boolOn_5zd-H", Et = "vk_boolOff_-6I4K", Xt = "vk_stacked_2T--a", u = {
|
|
246
|
+
grid: Ot,
|
|
247
|
+
card: At,
|
|
248
|
+
item: Mt,
|
|
249
|
+
label: Ht,
|
|
250
|
+
value: xt,
|
|
251
|
+
valueMono: Ft,
|
|
252
|
+
boolOn: Nt,
|
|
253
|
+
boolOff: Et,
|
|
254
|
+
stacked: Xt
|
|
255
|
+
};
|
|
256
|
+
var C = /* @__PURE__ */ k("<span>"), Jt = /* @__PURE__ */ k("<div>"), Kt = /* @__PURE__ */ k("<div><span>");
|
|
257
|
+
function Ut(t, r) {
|
|
258
|
+
switch (t.kind) {
|
|
259
|
+
case "text":
|
|
260
|
+
return (() => {
|
|
261
|
+
var e = C();
|
|
262
|
+
return l(e, () => t.value(r)), d(() => i(e, u.value)), e;
|
|
263
|
+
})();
|
|
264
|
+
case "mono":
|
|
265
|
+
return (() => {
|
|
266
|
+
var e = C();
|
|
267
|
+
return l(e, () => t.value(r)), d(() => i(e, u.valueMono)), e;
|
|
268
|
+
})();
|
|
269
|
+
case "bool":
|
|
270
|
+
return (() => {
|
|
271
|
+
var e = C();
|
|
272
|
+
return l(e, (() => {
|
|
273
|
+
var a = A(() => !!t.on(r));
|
|
274
|
+
return () => a() ? c(X, {
|
|
275
|
+
get class() {
|
|
276
|
+
return y.iconSm;
|
|
277
|
+
},
|
|
278
|
+
"aria-hidden": "true"
|
|
279
|
+
}) : "—";
|
|
280
|
+
})()), d(() => i(e, `${u.value} ${t.on(r) ? u.boolOn : u.boolOff}`)), e;
|
|
281
|
+
})();
|
|
282
|
+
case "custom":
|
|
283
|
+
return t.render(r);
|
|
284
|
+
default:
|
|
285
|
+
return Lt(t, "AttributeField.kind");
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
function no(t) {
|
|
289
|
+
return c(T, {
|
|
290
|
+
get when() {
|
|
291
|
+
return t.row() != null;
|
|
292
|
+
},
|
|
293
|
+
get children() {
|
|
294
|
+
var r = Jt();
|
|
295
|
+
return l(r, c(H, {
|
|
296
|
+
get each() {
|
|
297
|
+
return t.fields;
|
|
298
|
+
},
|
|
299
|
+
children: (e) => (() => {
|
|
300
|
+
var a = Kt(), b = a.firstChild;
|
|
301
|
+
return l(b, () => e.label), l(a, () => Ut(e, t.row()), null), d((_) => {
|
|
302
|
+
var v = u.item, g = u.label;
|
|
303
|
+
return v !== _.e && i(a, _.e = v), g !== _.t && i(b, _.t = g), _;
|
|
304
|
+
}, {
|
|
305
|
+
e: void 0,
|
|
306
|
+
t: void 0
|
|
307
|
+
}), a;
|
|
308
|
+
})()
|
|
309
|
+
})), d(() => i(r, `${u.grid} ${u[t.variant] ?? ""}`)), r;
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
export {
|
|
314
|
+
no as A,
|
|
315
|
+
eo as P,
|
|
316
|
+
ao as T,
|
|
317
|
+
ro as a,
|
|
318
|
+
U as p,
|
|
319
|
+
lo as r
|
|
320
|
+
};
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { effect as m, className as d, setAttribute as A, template as S, use as ai, spread as li, mergeProps as si, memo as f, insert as l, createComponent as p } from "solid-js/web";
|
|
2
|
+
import { splitProps as di, createUniqueId as ci, createSignal as j, createEffect as w, onCleanup as q, createMemo as X, Show as y } from "solid-js";
|
|
3
|
+
import { t as vi } from "./i18n-CBlUGOyu.js";
|
|
4
|
+
import { t as B, r as ui, h as fi } from "./nativeTitleHold-A9jUISgQ.js";
|
|
5
|
+
const gi = "vk_spinner_s8rMh", pi = "vk_xs_UVj9O", mi = "vk_sm_G7bj9", _i = "vk_lg_SEaSa", O = {
|
|
6
|
+
spinner: gi,
|
|
7
|
+
xs: pi,
|
|
8
|
+
sm: mi,
|
|
9
|
+
lg: _i
|
|
10
|
+
};
|
|
11
|
+
var hi = /* @__PURE__ */ S("<span data-motion-exempt=true>");
|
|
12
|
+
const yi = {
|
|
13
|
+
xs: O.xs,
|
|
14
|
+
sm: O.sm,
|
|
15
|
+
md: "",
|
|
16
|
+
lg: O.lg
|
|
17
|
+
};
|
|
18
|
+
function Z(s) {
|
|
19
|
+
return (() => {
|
|
20
|
+
var i = hi();
|
|
21
|
+
return m((r) => {
|
|
22
|
+
var o = `${O.spinner} ${yi[s.size ?? "md"]} ${s.class ?? ""}`, z = s.decorative ? void 0 : "status", a = s.decorative ? void 0 : s.label ?? vi("Loading…"), x = s.decorative ? "true" : void 0;
|
|
23
|
+
return o !== r.e && d(i, r.e = o), z !== r.t && A(i, "role", r.t = z), a !== r.a && A(i, "aria-label", r.a = a), x !== r.o && A(i, "aria-hidden", r.o = x), r;
|
|
24
|
+
}, {
|
|
25
|
+
e: void 0,
|
|
26
|
+
t: void 0,
|
|
27
|
+
a: void 0,
|
|
28
|
+
o: void 0
|
|
29
|
+
}), i;
|
|
30
|
+
})();
|
|
31
|
+
}
|
|
32
|
+
const bi = "vk_root_Zndmu", ki = "vk_size2xs_kbyEZ", Li = "vk_sizeXs_IUmg-", Si = "vk_sizeSm_s-iaT", zi = "vk_sizeMd_bAI9d", xi = "vk_sizeLg_zhdkf", Ti = "vk_variantPrimary_KTVgG", Di = "vk_variantTonal_tkJNt", Oi = "vk_variantSecondary_MA7xu", Ii = "vk_variantDanger_L30Uq", Pi = "vk_variantDangerSolid_htqc7", $i = "vk_variantPrimarySolid_14Uwi", Ci = "vk_variantLink_3AapU", Wi = "vk_variantGhost_x0-j-", Ai = "vk_variantOutline_xGu8I", wi = "vk_active_QisSI", Bi = "vk_iconOnly_bhObv", Ni = "vk_pill_-qH8n", Ei = "vk_fullWidth_kr6EK", Gi = "vk_icon_h1rmS", Mi = "vk_label_6-wKp", Fi = "vk_responsiveLabel_4Ma2i", Hi = "vk_loading_EWpLB", Ui = "vk_iconHidden_Mlyq3", Vi = "vk_spinnerWrap_F8L1B", ji = "vk_inlineSpinner_uuJuB", qi = "vk_loadingLabelGroup_HO7pg", Xi = "vk_labelText_v7v-A", Zi = "vk_animatedDots_CPxN9", t = {
|
|
33
|
+
root: bi,
|
|
34
|
+
size2xs: ki,
|
|
35
|
+
sizeXs: Li,
|
|
36
|
+
sizeSm: Si,
|
|
37
|
+
sizeMd: zi,
|
|
38
|
+
sizeLg: xi,
|
|
39
|
+
variantPrimary: Ti,
|
|
40
|
+
variantTonal: Di,
|
|
41
|
+
variantSecondary: Oi,
|
|
42
|
+
variantDanger: Ii,
|
|
43
|
+
variantDangerSolid: Pi,
|
|
44
|
+
variantPrimarySolid: $i,
|
|
45
|
+
variantLink: Ci,
|
|
46
|
+
variantGhost: Wi,
|
|
47
|
+
variantOutline: Ai,
|
|
48
|
+
active: wi,
|
|
49
|
+
iconOnly: Bi,
|
|
50
|
+
pill: Ni,
|
|
51
|
+
fullWidth: Ei,
|
|
52
|
+
icon: Gi,
|
|
53
|
+
label: Mi,
|
|
54
|
+
responsiveLabel: Fi,
|
|
55
|
+
loading: Hi,
|
|
56
|
+
iconHidden: Ui,
|
|
57
|
+
spinnerWrap: Vi,
|
|
58
|
+
inlineSpinner: ji,
|
|
59
|
+
loadingLabelGroup: qi,
|
|
60
|
+
labelText: Xi,
|
|
61
|
+
animatedDots: Zi
|
|
62
|
+
};
|
|
63
|
+
var L = /* @__PURE__ */ S("<span aria-hidden=true>"), Ki = /* @__PURE__ */ S("<span>"), Ji = /* @__PURE__ */ S("<button>"), Qi = /* @__PURE__ */ S("<span><span></span><span aria-hidden=true data-testid=button-animated-dots data-animated-dots=true>");
|
|
64
|
+
const Ri = {
|
|
65
|
+
primary: t.variantPrimary,
|
|
66
|
+
primarySolid: t.variantPrimarySolid,
|
|
67
|
+
tonal: t.variantTonal,
|
|
68
|
+
secondary: t.variantSecondary,
|
|
69
|
+
danger: t.variantDanger,
|
|
70
|
+
dangerSolid: t.variantDangerSolid,
|
|
71
|
+
ghost: t.variantGhost,
|
|
72
|
+
outline: t.variantOutline,
|
|
73
|
+
link: t.variantLink
|
|
74
|
+
}, Yi = {
|
|
75
|
+
"2xs": t.size2xs,
|
|
76
|
+
xs: t.sizeXs,
|
|
77
|
+
sm: t.sizeSm,
|
|
78
|
+
md: t.sizeMd,
|
|
79
|
+
lg: t.sizeLg
|
|
80
|
+
};
|
|
81
|
+
function nn(s) {
|
|
82
|
+
let i = s;
|
|
83
|
+
for (; typeof i == "function"; )
|
|
84
|
+
try {
|
|
85
|
+
i = i();
|
|
86
|
+
} catch {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
return typeof i == "string" ? i.replace(/(?:\s*\.{2,}|\s*…)\s*$/, "") : Array.isArray(i) && i.every((r) => typeof r == "string") ? i.join("").replace(/(?:\s*\.{2,}|\s*…)\s*$/, "") : i;
|
|
90
|
+
}
|
|
91
|
+
function an(s) {
|
|
92
|
+
const [i, r] = di(s, ["variant", "size", "iconOnly", "active", "pill", "fullWidth", "responsiveLabel", "loading", "loadingDelay", "minLoadingDuration", "loadingLabel", "type", "leadingIcon", "trailingIcon", "class", "children", "disabled", "tooltip", "tooltipShortcut", "tooltipPlacement", "title", "aria-label", "aria-description", "ref", "onPointerEnter", "onPointerLeave", "onFocusIn", "onFocusOut", "onClick"]);
|
|
93
|
+
let o;
|
|
94
|
+
const z = ci(), [a, x] = j(!1);
|
|
95
|
+
let I = !1, c, v, P = 0, b;
|
|
96
|
+
const N = () => {
|
|
97
|
+
o && o.offsetWidth > 0 && b === void 0 && (b = o.style.minWidth, o.style.minWidth = `${o.offsetWidth}px`);
|
|
98
|
+
}, T = () => {
|
|
99
|
+
o && b !== void 0 && (o.style.minWidth = b, b = void 0);
|
|
100
|
+
}, D = (e) => {
|
|
101
|
+
e && N(), I = e, x(e);
|
|
102
|
+
};
|
|
103
|
+
w(() => {
|
|
104
|
+
const e = !!i.loading, n = typeof i.loadingDelay == "number" && !Number.isNaN(i.loadingDelay) ? i.loadingDelay : 180, g = typeof i.minLoadingDuration == "number" && !Number.isNaN(i.minLoadingDuration) ? i.minLoadingDuration : 350;
|
|
105
|
+
if (e) {
|
|
106
|
+
if (N(), v !== void 0 && (clearTimeout(v), v = void 0), I)
|
|
107
|
+
return;
|
|
108
|
+
n <= 0 ? (P = Date.now(), D(!0)) : c === void 0 && (c = setTimeout(() => {
|
|
109
|
+
c = void 0, P = Date.now(), D(!0);
|
|
110
|
+
}, n));
|
|
111
|
+
} else if (c !== void 0 && (clearTimeout(c), c = void 0), I) {
|
|
112
|
+
const u = Date.now() - P, h = g - u;
|
|
113
|
+
h > 0 ? v === void 0 && (v = setTimeout(() => {
|
|
114
|
+
v = void 0, D(!1), T();
|
|
115
|
+
}, h)) : (D(!1), T());
|
|
116
|
+
} else
|
|
117
|
+
T();
|
|
118
|
+
});
|
|
119
|
+
let k;
|
|
120
|
+
w(() => {
|
|
121
|
+
i.loading || (k = i.children);
|
|
122
|
+
}), q(() => {
|
|
123
|
+
c !== void 0 && (clearTimeout(c), c = void 0), v !== void 0 && (clearTimeout(v), v = void 0), T();
|
|
124
|
+
});
|
|
125
|
+
const $ = () => !!i.loading || a(), E = () => {
|
|
126
|
+
if (i.loadingLabel !== void 0)
|
|
127
|
+
return typeof i.loadingLabel == "function" ? i.loadingLabel() : i.loadingLabel;
|
|
128
|
+
}, K = () => {
|
|
129
|
+
const e = E();
|
|
130
|
+
return e !== void 0 ? e : i.children !== void 0 && i.children !== "" && i.children !== null && i.children !== !1 ? i.children : k !== void 0 ? k : i.children;
|
|
131
|
+
}, J = () => i.size === "2xs" || i.size === "xs" ? "xs" : "sm", Q = () => i.size === "2xs" || i.size === "xs" ? "xs" : i.size === "sm" ? "sm" : "md", R = () => i.tooltip !== void 0 ? typeof i.tooltip == "function" ? i.tooltip() : i.tooltip : i.title, C = X(() => ({
|
|
132
|
+
content: R(),
|
|
133
|
+
shortcut: i.tooltipShortcut,
|
|
134
|
+
placement: i.tooltipPlacement
|
|
135
|
+
})), Y = X(() => !!i.disabled || $()), [G, ii] = j("");
|
|
136
|
+
w(() => {
|
|
137
|
+
var e;
|
|
138
|
+
i.children, i.iconOnly, ii(((e = o == null ? void 0 : o.textContent) == null ? void 0 : e.trim()) ?? "");
|
|
139
|
+
});
|
|
140
|
+
const M = () => !i.iconOnly && G() !== "", ni = () => {
|
|
141
|
+
const e = E();
|
|
142
|
+
if (a() && e)
|
|
143
|
+
return e;
|
|
144
|
+
if (i["aria-label"] !== void 0)
|
|
145
|
+
return i["aria-label"];
|
|
146
|
+
if (!M())
|
|
147
|
+
return C().content;
|
|
148
|
+
}, ei = () => {
|
|
149
|
+
if (i["aria-description"] !== void 0) return i["aria-description"];
|
|
150
|
+
if (i["aria-label"] !== void 0 || !M()) return;
|
|
151
|
+
const e = C().content;
|
|
152
|
+
return e && e !== G() ? e : void 0;
|
|
153
|
+
}, F = () => {
|
|
154
|
+
const {
|
|
155
|
+
content: e,
|
|
156
|
+
shortcut: n,
|
|
157
|
+
placement: g
|
|
158
|
+
} = C();
|
|
159
|
+
!e || !o || (fi(o), B.showTooltip({
|
|
160
|
+
id: z,
|
|
161
|
+
target: o,
|
|
162
|
+
content: e,
|
|
163
|
+
shortcut: n,
|
|
164
|
+
placement: g
|
|
165
|
+
}));
|
|
166
|
+
}, W = () => {
|
|
167
|
+
o && (ui(o), B.hideTooltip(o));
|
|
168
|
+
}, ti = () => {
|
|
169
|
+
o && B.hideTooltip(o);
|
|
170
|
+
};
|
|
171
|
+
q(() => {
|
|
172
|
+
W();
|
|
173
|
+
});
|
|
174
|
+
const oi = () => {
|
|
175
|
+
const e = i.variant ?? "secondary", n = i.size ?? (e === "link" ? void 0 : "md");
|
|
176
|
+
return [t.root, Ri[e], n === void 0 ? void 0 : Yi[n], i.iconOnly ? t.iconOnly : void 0, i.active ? t.active : void 0, i.pill ? t.pill : void 0, i.fullWidth ? t.fullWidth : void 0, i.responsiveLabel ? t.responsiveLabel : void 0, a() ? t.loading : void 0, i.class].filter((u) => !!u).join(" ");
|
|
177
|
+
};
|
|
178
|
+
return (() => {
|
|
179
|
+
var e = Ji();
|
|
180
|
+
return ai((n) => {
|
|
181
|
+
o = n, typeof i.ref == "function" && i.ref(n);
|
|
182
|
+
}, e), li(e, si(r, {
|
|
183
|
+
get type() {
|
|
184
|
+
return i.type ?? "button";
|
|
185
|
+
},
|
|
186
|
+
get class() {
|
|
187
|
+
return oi();
|
|
188
|
+
},
|
|
189
|
+
get disabled() {
|
|
190
|
+
return i.disabled;
|
|
191
|
+
},
|
|
192
|
+
get "aria-disabled"() {
|
|
193
|
+
return $() && !i.disabled ? "true" : void 0;
|
|
194
|
+
},
|
|
195
|
+
get "aria-busy"() {
|
|
196
|
+
return $() ? "true" : "false";
|
|
197
|
+
},
|
|
198
|
+
get "aria-label"() {
|
|
199
|
+
return ni();
|
|
200
|
+
},
|
|
201
|
+
get "aria-description"() {
|
|
202
|
+
return ei();
|
|
203
|
+
},
|
|
204
|
+
get title() {
|
|
205
|
+
return f(() => i.tooltip !== void 0)() ? void 0 : i.title;
|
|
206
|
+
},
|
|
207
|
+
onPointerEnter: (n) => {
|
|
208
|
+
F(), typeof i.onPointerEnter == "function" && i.onPointerEnter(n);
|
|
209
|
+
},
|
|
210
|
+
onPointerLeave: (n) => {
|
|
211
|
+
W(), typeof i.onPointerLeave == "function" && i.onPointerLeave(n);
|
|
212
|
+
},
|
|
213
|
+
onFocusIn: (n) => {
|
|
214
|
+
F(), typeof i.onFocusIn == "function" && i.onFocusIn(n);
|
|
215
|
+
},
|
|
216
|
+
onFocusOut: (n) => {
|
|
217
|
+
W(), typeof i.onFocusOut == "function" && i.onFocusOut(n);
|
|
218
|
+
},
|
|
219
|
+
onClick: (n) => {
|
|
220
|
+
if (Y()) {
|
|
221
|
+
n.preventDefault();
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (ti(), typeof i.onClick == "function")
|
|
225
|
+
i.onClick(n);
|
|
226
|
+
else if (Array.isArray(i.onClick)) {
|
|
227
|
+
const [g, u] = i.onClick;
|
|
228
|
+
g(u, n);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}), !1, !0), l(e, p(y, {
|
|
232
|
+
get when() {
|
|
233
|
+
return f(() => i.leadingIcon !== void 0)() && !a();
|
|
234
|
+
},
|
|
235
|
+
get children() {
|
|
236
|
+
var n = L();
|
|
237
|
+
return l(n, () => i.leadingIcon), m(() => d(n, t.icon)), n;
|
|
238
|
+
}
|
|
239
|
+
}), null), l(e, p(y, {
|
|
240
|
+
get when() {
|
|
241
|
+
return f(() => !i.iconOnly)() && a();
|
|
242
|
+
},
|
|
243
|
+
get children() {
|
|
244
|
+
var n = L();
|
|
245
|
+
return l(n, p(Z, {
|
|
246
|
+
get size() {
|
|
247
|
+
return J();
|
|
248
|
+
},
|
|
249
|
+
decorative: !0
|
|
250
|
+
})), m(() => d(n, t.inlineSpinner)), n;
|
|
251
|
+
}
|
|
252
|
+
}), null), l(e, p(y, {
|
|
253
|
+
get when() {
|
|
254
|
+
return f(() => !!(i.children !== void 0 || a() && i.loadingLabel !== void 0))() && !i.iconOnly;
|
|
255
|
+
},
|
|
256
|
+
get children() {
|
|
257
|
+
var n = Ki();
|
|
258
|
+
return l(n, (() => {
|
|
259
|
+
var g = f(() => !!a());
|
|
260
|
+
return () => g() ? (() => {
|
|
261
|
+
var u = Qi(), h = u.firstChild, ri = h.nextSibling;
|
|
262
|
+
return l(h, () => nn(K())), m((_) => {
|
|
263
|
+
var H = t.loadingLabelGroup, U = t.labelText, V = t.animatedDots;
|
|
264
|
+
return H !== _.e && d(u, _.e = H), U !== _.t && d(h, _.t = U), V !== _.a && d(ri, _.a = V), _;
|
|
265
|
+
}, {
|
|
266
|
+
e: void 0,
|
|
267
|
+
t: void 0,
|
|
268
|
+
a: void 0
|
|
269
|
+
}), u;
|
|
270
|
+
})() : f(() => !!(i.loading && k !== void 0))() ? k : i.children;
|
|
271
|
+
})()), m(() => d(n, t.label)), n;
|
|
272
|
+
}
|
|
273
|
+
}), null), l(e, p(y, {
|
|
274
|
+
get when() {
|
|
275
|
+
return f(() => !!i.iconOnly)() && i.children !== void 0;
|
|
276
|
+
},
|
|
277
|
+
get children() {
|
|
278
|
+
var n = L();
|
|
279
|
+
return l(n, () => i.children), m(() => d(n, `${t.icon} ${a() ? t.iconHidden : ""}`)), n;
|
|
280
|
+
}
|
|
281
|
+
}), null), l(e, p(y, {
|
|
282
|
+
get when() {
|
|
283
|
+
return f(() => i.trailingIcon !== void 0)() && !a();
|
|
284
|
+
},
|
|
285
|
+
get children() {
|
|
286
|
+
var n = L();
|
|
287
|
+
return l(n, () => i.trailingIcon), m(() => d(n, t.icon)), n;
|
|
288
|
+
}
|
|
289
|
+
}), null), l(e, p(y, {
|
|
290
|
+
get when() {
|
|
291
|
+
return f(() => !!i.iconOnly)() && a();
|
|
292
|
+
},
|
|
293
|
+
get children() {
|
|
294
|
+
var n = L();
|
|
295
|
+
return l(n, p(Z, {
|
|
296
|
+
get size() {
|
|
297
|
+
return Q();
|
|
298
|
+
},
|
|
299
|
+
decorative: !0
|
|
300
|
+
})), m(() => d(n, t.spinnerWrap)), n;
|
|
301
|
+
}
|
|
302
|
+
}), null), e;
|
|
303
|
+
})();
|
|
304
|
+
}
|
|
305
|
+
export {
|
|
306
|
+
an as B,
|
|
307
|
+
Z as S
|
|
308
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("solid-js/web"),a=require("solid-js"),K=require("./i18n-D3s-a2a0.cjs"),h=require("./nativeTitleHold-B7Ou-W9b.cjs"),Q="vk_spinner_s8rMh",R="vk_xs_UVj9O",Y="vk_sm_G7bj9",ee="vk_lg_SEaSa",z={spinner:Q,xs:R,sm:Y,lg:ee};var te=t.template("<span data-motion-exempt=true>");const ne={xs:z.xs,sm:z.sm,md:"",lg:z.lg};function w(c){return(()=>{var e=te();return t.effect(l=>{var r=`${z.spinner} ${ne[c.size??"md"]} ${c.class??""}`,b=c.decorative?void 0:"status",s=c.decorative?void 0:c.label??K.t("Loading…"),k=c.decorative?"true":void 0;return r!==l.e&&t.className(e,l.e=r),b!==l.t&&t.setAttribute(e,"role",l.t=b),s!==l.a&&t.setAttribute(e,"aria-label",l.a=s),k!==l.o&&t.setAttribute(e,"aria-hidden",l.o=k),l},{e:void 0,t:void 0,a:void 0,o:void 0}),e})()}const ie="vk_root_Zndmu",oe="vk_size2xs_kbyEZ",re="vk_sizeXs_IUmg-",ae="vk_sizeSm_s-iaT",le="vk_sizeMd_bAI9d",se="vk_sizeLg_zhdkf",ce="vk_variantPrimary_KTVgG",de="vk_variantTonal_tkJNt",ve="vk_variantSecondary_MA7xu",ue="vk_variantDanger_L30Uq",fe="vk_variantDangerSolid_htqc7",me="vk_variantPrimarySolid_14Uwi",pe="vk_variantLink_3AapU",ge="vk_variantGhost_x0-j-",_e="vk_variantOutline_xGu8I",he="vk_active_QisSI",ye="vk_iconOnly_bhObv",be="vk_pill_-qH8n",ke="vk_fullWidth_kr6EK",Se="vk_icon_h1rmS",Le="vk_label_6-wKp",ze="vk_responsiveLabel_4Ma2i",Te="vk_loading_EWpLB",xe="vk_iconHidden_Mlyq3",Ce="vk_spinnerWrap_F8L1B",De="vk_inlineSpinner_uuJuB",Oe="vk_loadingLabelGroup_HO7pg",we="vk_labelText_v7v-A",Ie="vk_animatedDots_CPxN9",o={root:ie,size2xs:oe,sizeXs:re,sizeSm:ae,sizeMd:le,sizeLg:se,variantPrimary:ce,variantTonal:de,variantSecondary:ve,variantDanger:ue,variantDangerSolid:fe,variantPrimarySolid:me,variantLink:pe,variantGhost:ge,variantOutline:_e,active:he,iconOnly:ye,pill:be,fullWidth:ke,icon:Se,label:Le,responsiveLabel:ze,loading:Te,iconHidden:xe,spinnerWrap:Ce,inlineSpinner:De,loadingLabelGroup:Oe,labelText:we,animatedDots:Ie};var y=t.template("<span aria-hidden=true>"),Ne=t.template("<span>"),Pe=t.template("<button>"),$e=t.template("<span><span></span><span aria-hidden=true data-testid=button-animated-dots data-animated-dots=true>");const Ae={primary:o.variantPrimary,primarySolid:o.variantPrimarySolid,tonal:o.variantTonal,secondary:o.variantSecondary,danger:o.variantDanger,dangerSolid:o.variantDangerSolid,ghost:o.variantGhost,outline:o.variantOutline,link:o.variantLink},We={"2xs":o.size2xs,xs:o.sizeXs,sm:o.sizeSm,md:o.sizeMd,lg:o.sizeLg};function Ee(c){let e=c;for(;typeof e=="function";)try{e=e()}catch{break}return typeof e=="string"?e.replace(/(?:\s*\.{2,}|\s*…)\s*$/,""):Array.isArray(e)&&e.every(l=>typeof l=="string")?e.join("").replace(/(?:\s*\.{2,}|\s*…)\s*$/,""):e}function Be(c){const[e,l]=a.splitProps(c,["variant","size","iconOnly","active","pill","fullWidth","responsiveLabel","loading","loadingDelay","minLoadingDuration","loadingLabel","type","leadingIcon","trailingIcon","class","children","disabled","tooltip","tooltipShortcut","tooltipPlacement","title","aria-label","aria-description","ref","onPointerEnter","onPointerLeave","onFocusIn","onFocusOut","onClick"]);let r;const b=a.createUniqueId(),[s,k]=a.createSignal(!1);let T=!1,d,v,x=0,g;const I=()=>{r&&r.offsetWidth>0&&g===void 0&&(g=r.style.minWidth,r.style.minWidth=`${r.offsetWidth}px`)},S=()=>{r&&g!==void 0&&(r.style.minWidth=g,g=void 0)},L=i=>{i&&I(),T=i,k(i)};a.createEffect(()=>{const i=!!e.loading,n=typeof e.loadingDelay=="number"&&!Number.isNaN(e.loadingDelay)?e.loadingDelay:180,f=typeof e.minLoadingDuration=="number"&&!Number.isNaN(e.minLoadingDuration)?e.minLoadingDuration:350;if(i){if(I(),v!==void 0&&(clearTimeout(v),v=void 0),T)return;n<=0?(x=Date.now(),L(!0)):d===void 0&&(d=setTimeout(()=>{d=void 0,x=Date.now(),L(!0)},n))}else if(d!==void 0&&(clearTimeout(d),d=void 0),T){const u=Date.now()-x,p=f-u;p>0?v===void 0&&(v=setTimeout(()=>{v=void 0,L(!1),S()},p)):(L(!1),S())}else S()});let _;a.createEffect(()=>{e.loading||(_=e.children)}),a.onCleanup(()=>{d!==void 0&&(clearTimeout(d),d=void 0),v!==void 0&&(clearTimeout(v),v=void 0),S()});const C=()=>!!e.loading||s(),N=()=>{if(e.loadingLabel!==void 0)return typeof e.loadingLabel=="function"?e.loadingLabel():e.loadingLabel},G=()=>{const i=N();return i!==void 0?i:e.children!==void 0&&e.children!==""&&e.children!==null&&e.children!==!1?e.children:_!==void 0?_:e.children},M=()=>e.size==="2xs"||e.size==="xs"?"xs":"sm",q=()=>e.size==="2xs"||e.size==="xs"?"xs":e.size==="sm"?"sm":"md",F=()=>e.tooltip!==void 0?typeof e.tooltip=="function"?e.tooltip():e.tooltip:e.title,D=a.createMemo(()=>({content:F(),shortcut:e.tooltipShortcut,placement:e.tooltipPlacement})),H=a.createMemo(()=>!!e.disabled||C()),[P,U]=a.createSignal("");a.createEffect(()=>{var i;e.children,e.iconOnly,U(((i=r==null?void 0:r.textContent)==null?void 0:i.trim())??"")});const $=()=>!e.iconOnly&&P()!=="",V=()=>{const i=N();if(s()&&i)return i;if(e["aria-label"]!==void 0)return e["aria-label"];if(!$())return D().content},j=()=>{if(e["aria-description"]!==void 0)return e["aria-description"];if(e["aria-label"]!==void 0||!$())return;const i=D().content;return i&&i!==P()?i:void 0},A=()=>{const{content:i,shortcut:n,placement:f}=D();!i||!r||(h.holdNativeTitle(r),h.tooltipCoordinator.showTooltip({id:b,target:r,content:i,shortcut:n,placement:f}))},O=()=>{r&&(h.releaseNativeTitle(r),h.tooltipCoordinator.hideTooltip(r))},X=()=>{r&&h.tooltipCoordinator.hideTooltip(r)};a.onCleanup(()=>{O()});const Z=()=>{const i=e.variant??"secondary",n=e.size??(i==="link"?void 0:"md");return[o.root,Ae[i],n===void 0?void 0:We[n],e.iconOnly?o.iconOnly:void 0,e.active?o.active:void 0,e.pill?o.pill:void 0,e.fullWidth?o.fullWidth:void 0,e.responsiveLabel?o.responsiveLabel:void 0,s()?o.loading:void 0,e.class].filter(u=>!!u).join(" ")};return(()=>{var i=Pe();return t.use(n=>{r=n,typeof e.ref=="function"&&e.ref(n)},i),t.spread(i,t.mergeProps(l,{get type(){return e.type??"button"},get class(){return Z()},get disabled(){return e.disabled},get"aria-disabled"(){return C()&&!e.disabled?"true":void 0},get"aria-busy"(){return C()?"true":"false"},get"aria-label"(){return V()},get"aria-description"(){return j()},get title(){return t.memo(()=>e.tooltip!==void 0)()?void 0:e.title},onPointerEnter:n=>{A(),typeof e.onPointerEnter=="function"&&e.onPointerEnter(n)},onPointerLeave:n=>{O(),typeof e.onPointerLeave=="function"&&e.onPointerLeave(n)},onFocusIn:n=>{A(),typeof e.onFocusIn=="function"&&e.onFocusIn(n)},onFocusOut:n=>{O(),typeof e.onFocusOut=="function"&&e.onFocusOut(n)},onClick:n=>{if(H()){n.preventDefault();return}if(X(),typeof e.onClick=="function")e.onClick(n);else if(Array.isArray(e.onClick)){const[f,u]=e.onClick;f(u,n)}}}),!1,!0),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>e.leadingIcon!==void 0)()&&!s()},get children(){var n=y();return t.insert(n,()=>e.leadingIcon),t.effect(()=>t.className(n,o.icon)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!e.iconOnly)()&&s()},get children(){var n=y();return t.insert(n,t.createComponent(w,{get size(){return M()},decorative:!0})),t.effect(()=>t.className(n,o.inlineSpinner)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!(e.children!==void 0||s()&&e.loadingLabel!==void 0))()&&!e.iconOnly},get children(){var n=Ne();return t.insert(n,(()=>{var f=t.memo(()=>!!s());return()=>f()?(()=>{var u=$e(),p=u.firstChild,J=p.nextSibling;return t.insert(p,()=>Ee(G())),t.effect(m=>{var W=o.loadingLabelGroup,E=o.labelText,B=o.animatedDots;return W!==m.e&&t.className(u,m.e=W),E!==m.t&&t.className(p,m.t=E),B!==m.a&&t.className(J,m.a=B),m},{e:void 0,t:void 0,a:void 0}),u})():t.memo(()=>!!(e.loading&&_!==void 0))()?_:e.children})()),t.effect(()=>t.className(n,o.label)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!e.iconOnly)()&&e.children!==void 0},get children(){var n=y();return t.insert(n,()=>e.children),t.effect(()=>t.className(n,`${o.icon} ${s()?o.iconHidden:""}`)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>e.trailingIcon!==void 0)()&&!s()},get children(){var n=y();return t.insert(n,()=>e.trailingIcon),t.effect(()=>t.className(n,o.icon)),n}}),null),t.insert(i,t.createComponent(a.Show,{get when(){return t.memo(()=>!!e.iconOnly)()&&s()},get children(){var n=y();return t.insert(n,t.createComponent(w,{get size(){return q()},decorative:!0})),t.effect(()=>t.className(n,o.spinnerWrap)),n}}),null),i})()}exports.Button=Be;exports.Spinner=w;
|