@cjlapao/ui-kit-vue 0.2.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/README.md +61 -0
- package/dist/index.cjs +33 -0
- package/dist/index.css +21952 -0
- package/dist/index.js +23520 -0
- package/dist/types/common/theme/ButtonTypes.d.ts +4 -0
- package/dist/types/common/theme/Theme.d.ts +162 -0
- package/dist/types/common/theme/glass.d.ts +59 -0
- package/dist/types/common/theme/randomThemeColor.d.ts +38 -0
- package/dist/types/common/types/App.d.ts +18 -0
- package/dist/types/common/types/CapsuleBlueprint.d.ts +25 -0
- package/dist/types/common/types/Variables.d.ts +11 -0
- package/dist/types/common/utils/bytesUtils.d.ts +50 -0
- package/dist/types/common/utils/dependencyUtils.d.ts +35 -0
- package/dist/types/common/utils/durationUtils.d.ts +49 -0
- package/dist/types/common/utils/focusUtils.d.ts +27 -0
- package/dist/types/common/utils/gravatar.d.ts +11 -0
- package/dist/types/common/utils/iconUtils.d.ts +4 -0
- package/dist/types/common/utils/smartVariables.d.ts +23 -0
- package/dist/types/common/utils/stringUtils.d.ts +7 -0
- package/dist/types/react/src/components/TreeView/toneColors.d.ts +14 -0
- package/dist/types/react/src/theme/Theme.d.ts +1 -0
- package/dist/types/vue/src/components/AccessMatrix.vue.d.ts +38 -0
- package/dist/types/vue/src/components/Accordion.vue.d.ts +63 -0
- package/dist/types/vue/src/components/Alert.vue.d.ts +31 -0
- package/dist/types/vue/src/components/ApiErrorState.vue.d.ts +27 -0
- package/dist/types/vue/src/components/AppDivider.vue.d.ts +10 -0
- package/dist/types/vue/src/components/Badge.vue.d.ts +27 -0
- package/dist/types/vue/src/components/BadgeIcon.vue.d.ts +52 -0
- package/dist/types/vue/src/components/Button.test.d.ts +1 -0
- package/dist/types/vue/src/components/Button.vue.d.ts +65 -0
- package/dist/types/vue/src/components/ButtonSelector.vue.d.ts +44 -0
- package/dist/types/vue/src/components/Checkbox.vue.d.ts +71 -0
- package/dist/types/vue/src/components/CollapsibleHelpText.vue.d.ts +29 -0
- package/dist/types/vue/src/components/CollapsiblePanel.vue.d.ts +50 -0
- package/dist/types/vue/src/components/Combobox.vue.d.ts +23 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlow.vue.d.ts +27 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowColumn.vue.d.ts +45 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowConnector.vue.d.ts +103 -0
- package/dist/types/vue/src/components/ConnectionFlow/ConnectionFlowParallelGroup.vue.d.ts +17 -0
- package/dist/types/vue/src/components/ConnectionFlow/index.d.ts +5 -0
- package/dist/types/vue/src/components/ConnectionFlow/types.d.ts +220 -0
- package/dist/types/vue/src/components/CustomIcon.vue.d.ts +24 -0
- package/dist/types/vue/src/components/DetailItemCard.vue.d.ts +25 -0
- package/dist/types/vue/src/components/DropdownButton.vue.d.ts +45 -0
- package/dist/types/vue/src/components/DropdownMenu.vue.d.ts +33 -0
- package/dist/types/vue/src/components/DynamicFormField.vue.d.ts +16 -0
- package/dist/types/vue/src/components/DynamicImg.vue.d.ts +11 -0
- package/dist/types/vue/src/components/EmptyState.vue.d.ts +53 -0
- package/dist/types/vue/src/components/FormField.vue.d.ts +43 -0
- package/dist/types/vue/src/components/FormLayout.vue.d.ts +20 -0
- package/dist/types/vue/src/components/FormSection.vue.d.ts +23 -0
- package/dist/types/vue/src/components/GlassBackground.vue.d.ts +51 -0
- package/dist/types/vue/src/components/GlassPanel.vue.d.ts +24 -0
- package/dist/types/vue/src/components/HeaderGroup.vue.d.ts +11 -0
- package/dist/types/vue/src/components/HelpButton.vue.d.ts +44 -0
- package/dist/types/vue/src/components/Hero.vue.d.ts +51 -0
- package/dist/types/vue/src/components/IconButton.test.d.ts +1 -0
- package/dist/types/vue/src/components/IconButton.vue.d.ts +51 -0
- package/dist/types/vue/src/components/InfiniteScrollPanel.vue.d.ts +41 -0
- package/dist/types/vue/src/components/InfoRow.vue.d.ts +113 -0
- package/dist/types/vue/src/components/InlinePanel.vue.d.ts +269 -0
- package/dist/types/vue/src/components/Input.vue.d.ts +39 -0
- package/dist/types/vue/src/components/InputGroup.vue.d.ts +27 -0
- package/dist/types/vue/src/components/KeyValueArrayField.vue.d.ts +21 -0
- package/dist/types/vue/src/components/Loader.vue.d.ts +39 -0
- package/dist/types/vue/src/components/MarkdownEditor.vue.d.ts +39 -0
- package/dist/types/vue/src/components/MetricBar.vue.d.ts +14 -0
- package/dist/types/vue/src/components/Modal.vue.d.ts +369 -0
- package/dist/types/vue/src/components/MultiProgressBar.vue.d.ts +30 -0
- package/dist/types/vue/src/components/MultiSelectPills.vue.d.ts +85 -0
- package/dist/types/vue/src/components/MultiToggle.vue.d.ts +49 -0
- package/dist/types/vue/src/components/NotificationModal.vue.d.ts +29 -0
- package/dist/types/vue/src/components/PagedPanel.vue.d.ts +41 -0
- package/dist/types/vue/src/components/Panel.vue.d.ts +151 -0
- package/dist/types/vue/src/components/PasswordInput.vue.d.ts +6 -0
- package/dist/types/vue/src/components/Picker.vue.d.ts +84 -0
- package/dist/types/vue/src/components/Pill.vue.d.ts +30 -0
- package/dist/types/vue/src/components/Progress.vue.d.ts +29 -0
- package/dist/types/vue/src/components/SearchBar.vue.d.ts +51 -0
- package/dist/types/vue/src/components/Section.vue.d.ts +72 -0
- package/dist/types/vue/src/components/SectionCard.vue.d.ts +35 -0
- package/dist/types/vue/src/components/Select.vue.d.ts +41 -0
- package/dist/types/vue/src/components/SideMenu.vue.d.ts +119 -0
- package/dist/types/vue/src/components/SideMenuLayout.vue.d.ts +31 -0
- package/dist/types/vue/src/components/SidePanel.vue.d.ts +56 -0
- package/dist/types/vue/src/components/SmartGridLayout.vue.d.ts +69 -0
- package/dist/types/vue/src/components/SmartInput.vue.d.ts +26 -0
- package/dist/types/vue/src/components/SmartValue.vue.d.ts +20 -0
- package/dist/types/vue/src/components/Spinner.vue.d.ts +21 -0
- package/dist/types/vue/src/components/SplitView.vue.d.ts +224 -0
- package/dist/types/vue/src/components/StartupStageStepper.vue.d.ts +25 -0
- package/dist/types/vue/src/components/StatChartTile.vue.d.ts +28 -0
- package/dist/types/vue/src/components/StatCountTile.vue.d.ts +44 -0
- package/dist/types/vue/src/components/StatGoalTile.vue.d.ts +25 -0
- package/dist/types/vue/src/components/StatGraphTile.vue.d.ts +52 -0
- package/dist/types/vue/src/components/StatTile.vue.d.ts +69 -0
- package/dist/types/vue/src/components/StatusSpinner.vue.d.ts +17 -0
- package/dist/types/vue/src/components/Stepper.vue.d.ts +84 -0
- package/dist/types/vue/src/components/Table.vue.d.ts +245 -0
- package/dist/types/vue/src/components/Tabs.vue.d.ts +74 -0
- package/dist/types/vue/src/components/TagPanel.vue.d.ts +61 -0
- package/dist/types/vue/src/components/TagPicker.vue.d.ts +93 -0
- package/dist/types/vue/src/components/Textarea.vue.d.ts +26 -0
- package/dist/types/vue/src/components/TimelinePanel/TimelinePanel.vue.d.ts +23 -0
- package/dist/types/vue/src/components/TimelinePanel/index.d.ts +2 -0
- package/dist/types/vue/src/components/TimelinePanel/types.d.ts +83 -0
- package/dist/types/vue/src/components/Toggle.test.d.ts +1 -0
- package/dist/types/vue/src/components/Toggle.vue.d.ts +68 -0
- package/dist/types/vue/src/components/Tooltip.vue.d.ts +25 -0
- package/dist/types/vue/src/components/TooltipWrapper.vue.d.ts +14 -0
- package/dist/types/vue/src/components/TreeView/TreeFlowSvg.vue.d.ts +23 -0
- package/dist/types/vue/src/components/TreeView/TreeItemCard.vue.d.ts +44 -0
- package/dist/types/vue/src/components/TreeView/TreeItemRow.vue.d.ts +27 -0
- package/dist/types/vue/src/components/TreeView/TreeLevel.vue.d.ts +16 -0
- package/dist/types/vue/src/components/TreeView/TreeView.vue.d.ts +39 -0
- package/dist/types/vue/src/components/TreeView/index.d.ts +5 -0
- package/dist/types/vue/src/components/TreeView/toneColors.d.ts +1 -0
- package/dist/types/vue/src/components/TreeView/types.d.ts +135 -0
- package/dist/types/vue/src/components/TruncatedText.vue.d.ts +24 -0
- package/dist/types/vue/src/components/UserAvatar.vue.d.ts +16 -0
- package/dist/types/vue/src/components/VariablePicker.vue.d.ts +14 -0
- package/dist/types/vue/src/components/index.d.ts +79 -0
- package/dist/types/vue/src/components/internal/VNodeRenderer.d.ts +21 -0
- package/dist/types/vue/src/composables/index.d.ts +4 -0
- package/dist/types/vue/src/composables/useAccordion.d.ts +21 -0
- package/dist/types/vue/src/composables/useResizable.d.ts +34 -0
- package/dist/types/vue/src/composables/useStepper.d.ts +29 -0
- package/dist/types/vue/src/composables/useTheme.d.ts +24 -0
- package/dist/types/vue/src/contexts/BottomSheetContext.d.ts +15 -0
- package/dist/types/vue/src/contexts/IconContext.d.ts +33 -0
- package/dist/types/vue/src/contexts/SideMenuActionsContext.d.ts +46 -0
- package/dist/types/vue/src/contexts/index.d.ts +2 -0
- package/dist/types/vue/src/icons/components/Add.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Apple.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ArrowChevronLeft.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ArrowChevronRight.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ArrowDown.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ArrowLeft.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ArrowRight.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ArrowUp.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Artifactory.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Attached.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Attachment.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Aws.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Azure.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Back.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Blueprint.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Bug.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Cache.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Calendar.d.ts +3 -0
- package/dist/types/vue/src/icons/components/CatalogManifest.d.ts +3 -0
- package/dist/types/vue/src/icons/components/CatalogVersion.d.ts +3 -0
- package/dist/types/vue/src/icons/components/CentOS.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Chat.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Check.d.ts +3 -0
- package/dist/types/vue/src/icons/components/CheckCircle.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ChevronLeft.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ChevronRight.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Claim.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Claims.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Clean.d.ts +3 -0
- package/dist/types/vue/src/icons/components/CleanBrush.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Clone.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Close.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Close1.d.ts +3 -0
- package/dist/types/vue/src/icons/components/CloudOff.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Cog.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Complete.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Container.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Copy.d.ts +3 -0
- package/dist/types/vue/src/icons/components/CopyClipboard.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Dashboard.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Database.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Debian.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Details.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Docker.d.ts +3 -0
- package/dist/types/vue/src/icons/components/DockerCopy.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Dots.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Download.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Drag.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Edit.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Equal.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Error.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Export.d.ts +3 -0
- package/dist/types/vue/src/icons/components/EyeClosed.d.ts +3 -0
- package/dist/types/vue/src/icons/components/EyeOpen.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Fedora.d.ts +3 -0
- package/dist/types/vue/src/icons/components/File.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Folder.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Globe.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Group.d.ts +3 -0
- package/dist/types/vue/src/icons/components/HealthCheck.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Help.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Host.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Idea.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Image.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Info.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Jobs.d.ts +3 -0
- package/dist/types/vue/src/icons/components/KaliLinux.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Key.d.ts +3 -0
- package/dist/types/vue/src/icons/components/KeyManagement.d.ts +3 -0
- package/dist/types/vue/src/icons/components/LXC.d.ts +3 -0
- package/dist/types/vue/src/icons/components/LXCOld.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Library.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Live.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Log.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Login.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Logout.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Minio.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Moon.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Notification.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Official.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Offline.d.ts +3 -0
- package/dist/types/vue/src/icons/components/OpenApp.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Orchestrator.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Parameter.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Pause.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Pin.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Podman.d.ts +3 -0
- package/dist/types/vue/src/icons/components/PodmanDesktop.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Praise.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Pull.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Push.d.ts +3 -0
- package/dist/types/vue/src/icons/components/RedHat.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Refresh.d.ts +3 -0
- package/dist/types/vue/src/icons/components/RemoteHost.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReportFeedback.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Reset.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Restart.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxy.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyCORS.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyFrom.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyHTTP.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyHeadersRequest.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyHeadersResponse.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyRoutes.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyTCP.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyTLS.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxyTo.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ReverseProxy_Old.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Revert.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Revoke.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Rocket.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Role.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Roles.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Run.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Save.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Scale.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Script.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Search.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Send.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Settings.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Shop.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Snapshot.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Star.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Stop.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Sun.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Suspend.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Taint.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ThemeAuto.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ThemeDark.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ThemeLight.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Trash.d.ts +3 -0
- package/dist/types/vue/src/icons/components/UX.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Ubuntu.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Unlock.d.ts +3 -0
- package/dist/types/vue/src/icons/components/User.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Users.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Verified.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ViewGrid.d.ts +3 -0
- package/dist/types/vue/src/icons/components/ViewRows.d.ts +3 -0
- package/dist/types/vue/src/icons/components/VirtualMachine.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Warning.d.ts +3 -0
- package/dist/types/vue/src/icons/components/Windows.d.ts +3 -0
- package/dist/types/vue/src/icons/index.d.ts +140 -0
- package/dist/types/vue/src/icons/registry.d.ts +3 -0
- package/dist/types/vue/src/index.d.ts +16 -0
- package/dist/types/vue/src/test-setup.d.ts +0 -0
- package/dist/types/vue/src/theme/ButtonTypes.d.ts +1 -0
- package/dist/types/vue/src/theme/Theme.d.ts +1 -0
- package/dist/types/vue/src/theme/glass.d.ts +1 -0
- package/dist/types/vue/src/theme/index.d.ts +3 -0
- package/dist/types/vue/src/theme/randomThemeColor.d.ts +1 -0
- package/dist/types/vue/src/types/App.d.ts +1 -0
- package/dist/types/vue/src/types/BottomSheetContext.d.ts +22 -0
- package/dist/types/vue/src/types/CapsuleBlueprint.d.ts +1 -0
- package/dist/types/vue/src/types/Icon.d.ts +15 -0
- package/dist/types/vue/src/types/Toast.d.ts +38 -0
- package/dist/types/vue/src/types/Variables.d.ts +1 -0
- package/dist/types/vue/src/types/index.d.ts +6 -0
- package/dist/types/vue/src/utils/attrsUtils.d.ts +15 -0
- package/dist/types/vue/src/utils/bytesUtils.d.ts +1 -0
- package/dist/types/vue/src/utils/dependencyUtils.d.ts +1 -0
- package/dist/types/vue/src/utils/durationUtils.d.ts +1 -0
- package/dist/types/vue/src/utils/focusUtils.d.ts +1 -0
- package/dist/types/vue/src/utils/gravatar.d.ts +1 -0
- package/dist/types/vue/src/utils/iconUtils.d.ts +1 -0
- package/dist/types/vue/src/utils/index.d.ts +10 -0
- package/dist/types/vue/src/utils/renderIcon.d.ts +2 -0
- package/dist/types/vue/src/utils/smartVariables.d.ts +1 -0
- package/dist/types/vue/src/utils/stringUtils.d.ts +1 -0
- package/dist/types/vue/src/utils/toastUtils.d.ts +2 -0
- package/dist/ui-kit-vue.css +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
export type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "link" | "clear" | "icon" | "glass";
|
|
2
|
+
/**
|
|
3
|
+
* TrueColor is the only valid color type in the ui-kit theme system.
|
|
4
|
+
* It comprises 21 Tailwind palette color names (red through stone, including fuchsia and rose).
|
|
5
|
+
* All components, tokens, and utilities must use TrueColor exclusively.
|
|
6
|
+
*/
|
|
7
|
+
export type TrueColor = "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "rose" | "slate" | "gray" | "zinc" | "neutral" | "stone";
|
|
8
|
+
/**
|
|
9
|
+
* Shared size type used across all frameworks and components.
|
|
10
|
+
* Replaces both the old ThemeSize (dead code) and ModalSize.
|
|
11
|
+
*/
|
|
12
|
+
export type Size = "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl" | "2xl" | "3xl" | "full";
|
|
13
|
+
type ButtonTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
14
|
+
type ButtonHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
15
|
+
type ButtonActiveTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
16
|
+
type ButtonActiveHoverTheme = Record<ButtonVariant, Record<TrueColor, string>>;
|
|
17
|
+
type ToggleTheme = Record<TrueColor, string>;
|
|
18
|
+
type CheckboxTheme = Record<TrueColor, string>;
|
|
19
|
+
type SpinnerTheme = Record<TrueColor, [string, string, string, string]>;
|
|
20
|
+
type LoaderTheme = Record<TrueColor, {
|
|
21
|
+
track: string;
|
|
22
|
+
bar: string;
|
|
23
|
+
}>;
|
|
24
|
+
type MultiToggleTheme = Record<TrueColor, {
|
|
25
|
+
active: string;
|
|
26
|
+
activeText: string;
|
|
27
|
+
indicator: string;
|
|
28
|
+
hover: string;
|
|
29
|
+
}>;
|
|
30
|
+
type MultiToggleVariantTokens = {
|
|
31
|
+
softIndicator: string;
|
|
32
|
+
activeText: string;
|
|
33
|
+
hover: string;
|
|
34
|
+
};
|
|
35
|
+
type MultiToggleVariantTheme = Record<TrueColor, MultiToggleVariantTokens>;
|
|
36
|
+
type TabsColorTokens = {
|
|
37
|
+
hoverText: string;
|
|
38
|
+
activeText: string;
|
|
39
|
+
onAccentText: string;
|
|
40
|
+
focusRing: string;
|
|
41
|
+
accentBg: string;
|
|
42
|
+
subtleBg: string;
|
|
43
|
+
subtleHoverBg: string;
|
|
44
|
+
segmentedContainer: string;
|
|
45
|
+
badgeSubtle: string;
|
|
46
|
+
badgeStrong: string;
|
|
47
|
+
badgeOnAccent: string;
|
|
48
|
+
underlineActive: string;
|
|
49
|
+
};
|
|
50
|
+
type TabsTheme = Record<TrueColor, TabsColorTokens>;
|
|
51
|
+
type PanelToneConfig = {
|
|
52
|
+
border: string;
|
|
53
|
+
heading: string;
|
|
54
|
+
muted: string;
|
|
55
|
+
badge: string;
|
|
56
|
+
subtleBg: string;
|
|
57
|
+
tonalBg: string;
|
|
58
|
+
glassBg: string;
|
|
59
|
+
glassBorder: string;
|
|
60
|
+
liquidBg: string;
|
|
61
|
+
liquidBorder: string;
|
|
62
|
+
liquidShadow: string;
|
|
63
|
+
liquidHeading: string;
|
|
64
|
+
overlayGradient: string;
|
|
65
|
+
decorationShape: string;
|
|
66
|
+
decorationGradient: string;
|
|
67
|
+
};
|
|
68
|
+
type PanelTheme = Record<TrueColor, PanelToneConfig>;
|
|
69
|
+
type StepperToneConfig = {
|
|
70
|
+
activeBg: string;
|
|
71
|
+
activeText: string;
|
|
72
|
+
completedBg: string;
|
|
73
|
+
completedText: string;
|
|
74
|
+
pendingBorder: string;
|
|
75
|
+
pendingText: string;
|
|
76
|
+
underlineBase: string;
|
|
77
|
+
};
|
|
78
|
+
type StepperTheme = Record<TrueColor, StepperToneConfig>;
|
|
79
|
+
type BadgeTheme = Record<TrueColor, string>;
|
|
80
|
+
type PillTheme = Record<TrueColor, Record<"solid" | "soft" | "outline", {
|
|
81
|
+
base: string;
|
|
82
|
+
border?: string;
|
|
83
|
+
}>>;
|
|
84
|
+
type AlertTheme = Record<TrueColor, {
|
|
85
|
+
subtle: string;
|
|
86
|
+
solid: string;
|
|
87
|
+
outline: string;
|
|
88
|
+
icon: string;
|
|
89
|
+
text: string;
|
|
90
|
+
border: string;
|
|
91
|
+
dismiss: string;
|
|
92
|
+
}>;
|
|
93
|
+
type StatTileTheme = Record<TrueColor, {
|
|
94
|
+
decorationBg: string;
|
|
95
|
+
iconColor: string;
|
|
96
|
+
divider: string;
|
|
97
|
+
}>;
|
|
98
|
+
type ButtonSelectorColorTokens = {
|
|
99
|
+
selectedBorder: string;
|
|
100
|
+
selectedBg: string;
|
|
101
|
+
selectedIcon: string;
|
|
102
|
+
selectedLabel: string;
|
|
103
|
+
selectedIndicatorBg: string;
|
|
104
|
+
selectedIndicatorBorder: string;
|
|
105
|
+
selectedIndicatorDot: string;
|
|
106
|
+
};
|
|
107
|
+
type ButtonSelectorTheme = Record<TrueColor, ButtonSelectorColorTokens>;
|
|
108
|
+
interface ThemeDefinition {
|
|
109
|
+
button: ButtonTheme;
|
|
110
|
+
buttonHover: ButtonHoverTheme;
|
|
111
|
+
buttonActive: ButtonActiveTheme;
|
|
112
|
+
buttonActiveHover: ButtonActiveHoverTheme;
|
|
113
|
+
toggle: ToggleTheme;
|
|
114
|
+
checkbox: CheckboxTheme;
|
|
115
|
+
spinner: SpinnerTheme;
|
|
116
|
+
loader: LoaderTheme;
|
|
117
|
+
multiToggle: MultiToggleTheme;
|
|
118
|
+
multiToggleVariant: MultiToggleVariantTheme;
|
|
119
|
+
tabs: TabsTheme;
|
|
120
|
+
panel: PanelTheme;
|
|
121
|
+
stepper: StepperTheme;
|
|
122
|
+
badge: BadgeTheme;
|
|
123
|
+
pill: PillTheme;
|
|
124
|
+
alert: AlertTheme;
|
|
125
|
+
statTile: StatTileTheme;
|
|
126
|
+
buttonSelector: ButtonSelectorTheme;
|
|
127
|
+
}
|
|
128
|
+
type DeepPartial<T> = {
|
|
129
|
+
[K in keyof T]?: T[K] extends Record<string, unknown> ? DeepPartial<T[K]> : T[K];
|
|
130
|
+
};
|
|
131
|
+
export declare const configureTheme: (overrides: DeepPartial<ThemeDefinition>) => void;
|
|
132
|
+
export declare const resetTheme: () => void;
|
|
133
|
+
export declare const getButtonColorClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
134
|
+
export declare const getButtonHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
135
|
+
export declare const getButtonActiveClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
136
|
+
export declare const getButtonActiveHoverClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
137
|
+
export declare const getButtonBaseClasses: (variant: ButtonVariant, color: TrueColor) => string;
|
|
138
|
+
export declare const getToggleColorClasses: (color: TrueColor) => string;
|
|
139
|
+
export declare const getCheckboxColorClasses: (color: TrueColor) => string;
|
|
140
|
+
export declare const getSpinnerColorTokens: (color: TrueColor) => [string, string, string, string];
|
|
141
|
+
export declare const getLoaderProgressColors: (color: TrueColor) => {
|
|
142
|
+
track: string;
|
|
143
|
+
bar: string;
|
|
144
|
+
};
|
|
145
|
+
export declare const getMultiToggleColorTokens: (color: TrueColor) => {
|
|
146
|
+
active: string;
|
|
147
|
+
activeText: string;
|
|
148
|
+
indicator: string;
|
|
149
|
+
hover: string;
|
|
150
|
+
};
|
|
151
|
+
export declare const getMultiToggleVariantTokens: (color: TrueColor) => MultiToggleVariantTokens;
|
|
152
|
+
export declare const getTabsColorTokens: (color: TrueColor) => TabsColorTokens;
|
|
153
|
+
export declare const getPanelToneStyles: (tone: TrueColor) => PanelToneConfig;
|
|
154
|
+
export declare const getStepperTonePalette: (tone: TrueColor) => StepperToneConfig;
|
|
155
|
+
export declare const getBadgeColorClasses: (color: TrueColor) => string;
|
|
156
|
+
export declare const getPillColorClasses: (color: TrueColor, variant: "solid" | "soft" | "outline") => {
|
|
157
|
+
base: string;
|
|
158
|
+
border?: string;
|
|
159
|
+
};
|
|
160
|
+
export declare const getAlertColorClasses: (color: TrueColor) => AlertTheme[TrueColor];
|
|
161
|
+
export declare const getStatTileColorClasses: (color: TrueColor) => StatTileTheme[TrueColor];
|
|
162
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* common/theme/glass.ts — Framework-agnostic glass utility module.
|
|
3
|
+
*
|
|
4
|
+
* Extracts all glass logic from Panel into reusable functions and types
|
|
5
|
+
* so that any control (Button, IconButton, DropdownButton, etc.) can
|
|
6
|
+
* compose glass styling without duplicating the Panel implementation.
|
|
7
|
+
*
|
|
8
|
+
* This file is pure TypeScript — no React, Vue, or DOM imports.
|
|
9
|
+
*/
|
|
10
|
+
import type { TrueColor } from "./Theme";
|
|
11
|
+
/**
|
|
12
|
+
* Backdrop vibrancy level for glass surfaces.
|
|
13
|
+
* - `"low"` → 1.0× saturation
|
|
14
|
+
* - `"medium"` → 1.2× saturation (default)
|
|
15
|
+
* - `"high"` → 1.4× saturation
|
|
16
|
+
* - `number` → arbitrary multiplier (0 – 2 recommended)
|
|
17
|
+
*/
|
|
18
|
+
export type GlassVibrancy = "low" | "medium" | "high" | number;
|
|
19
|
+
/**
|
|
20
|
+
* Glass fill transparency level.
|
|
21
|
+
* - `"frosted"` → 45 % light / 15 % dark (default)
|
|
22
|
+
* - `"light"` → 70 % light / 25 % dark
|
|
23
|
+
* - `"clear"` → 20 % light / 5 % dark
|
|
24
|
+
* - `number` → 0–1 fraction; light = round(frac × 100), dark = min(round(frac × 30), 30)
|
|
25
|
+
*/
|
|
26
|
+
export type GlassOpacity = "frosted" | "light" | "clear" | number;
|
|
27
|
+
/**
|
|
28
|
+
* Specular highlight mode for glass surfaces.
|
|
29
|
+
* - `"none"` → no specular overlay
|
|
30
|
+
* - `"classic"` → single hairline gradient at top edge
|
|
31
|
+
* - `"halo"` → corner caps + diffuse band + bottom darken
|
|
32
|
+
*/
|
|
33
|
+
export type SpecularMode = "none" | "classic" | "halo";
|
|
34
|
+
/**
|
|
35
|
+
* Compute the Tailwind fill classes for a glass surface.
|
|
36
|
+
*
|
|
37
|
+
* Returns a string like `"bg-blue-100/55 hover:bg-blue-100/65 dark:bg-blue-600/25 dark:hover:bg-blue-600/35"`.
|
|
38
|
+
*
|
|
39
|
+
* @param color - TrueColor token (e.g. `"blue"`, `"red"`, `"fuchsia"`)
|
|
40
|
+
* @param opacity - Glass opacity preset or numeric fraction (0–1)
|
|
41
|
+
*/
|
|
42
|
+
export declare const getGlassFillClass: (color: TrueColor, opacity: GlassOpacity) => string;
|
|
43
|
+
/**
|
|
44
|
+
* Map a vibrancy setting to a Tailwind backdrop-saturate class.
|
|
45
|
+
*
|
|
46
|
+
* @param vibrancy - Low / medium / high preset or arbitrary multiplier
|
|
47
|
+
* @returns e.g. `"backdrop-saturate-[1.2]"`
|
|
48
|
+
*/
|
|
49
|
+
export declare const getGlassVibrancyClass: (vibrancy: GlassVibrancy) => string;
|
|
50
|
+
/**
|
|
51
|
+
* Build Tailwind classes for a specular highlight overlay.
|
|
52
|
+
*
|
|
53
|
+
* - `"none"` → `null` (no overlay)
|
|
54
|
+
* - `"classic"` → soft top-edge hairline reflection
|
|
55
|
+
* - `"halo"` → corner caps + diffuse top glow
|
|
56
|
+
*
|
|
57
|
+
* @returns class string or `null`
|
|
58
|
+
*/
|
|
59
|
+
export declare const getSpecularClasses: (mode: SpecularMode) => string | null;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { TrueColor } from "./Theme";
|
|
2
|
+
type RandomIntensity = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
3
|
+
export interface RandomThemeColorValue {
|
|
4
|
+
color: string;
|
|
5
|
+
intensity: RandomIntensity;
|
|
6
|
+
token: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Returns a random Tailwind color token based on the ui-kit theme palette,
|
|
10
|
+
* like `blue-500` or `emerald-300`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const getRandomThemeColorValue: () => RandomThemeColorValue;
|
|
13
|
+
/**
|
|
14
|
+
* Returns a random Tailwind utility class for a theme color token.
|
|
15
|
+
* Example: `getRandomThemeColorClass('bg')` -> `bg-blue-500`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const getRandomThemeColorClass: (prefix?: "bg" | "text" | "border") => string;
|
|
18
|
+
/**
|
|
19
|
+
* Returns an array of `count` Tailwind color utility classes.
|
|
20
|
+
* Uses TrueColor values in order (at intensity 500) for the first N items,
|
|
21
|
+
* then falls back to `getRandomThemeColorClass` for any overflow.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* getColorPalette(5) // ['bg-red-500', 'bg-orange-500', ...]
|
|
25
|
+
* getColorPalette(5, 'text') // ['text-red-500', 'text-orange-500', ...]
|
|
26
|
+
*/
|
|
27
|
+
export declare const getColorPalette: (count: number, prefix?: "bg" | "text" | "border") => string[];
|
|
28
|
+
/**
|
|
29
|
+
* Returns an array of `count` TrueColor names (e.g. `'red'`, `'orange'`, `'blue'`).
|
|
30
|
+
* Uses TrueColor values in order for the first N items,
|
|
31
|
+
* then falls back to random colors from RANDOM_THEME_COLORS for overflow.
|
|
32
|
+
* Useful when components construct their own Tailwind class strings via template literals.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* getColorPaletteNames(3) // ['red', 'orange', 'amber']
|
|
36
|
+
*/
|
|
37
|
+
export declare const getColorPaletteNames: (count: number) => TrueColor[];
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface StartupStage {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
title: string;
|
|
5
|
+
status: StartupStageStatus;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
errorType?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
statusMessage?: string;
|
|
10
|
+
retryCount?: number;
|
|
11
|
+
maxRetryCount?: number;
|
|
12
|
+
progress?: {
|
|
13
|
+
percentage: number;
|
|
14
|
+
currentMessage?: string;
|
|
15
|
+
details?: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export type StartupStageStatus = "pending" | "in-progress" | "has-error" | "is-ok";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare enum CapsuleBlueprintValueType {
|
|
2
|
+
String = "string",
|
|
3
|
+
Int = "int",
|
|
4
|
+
Boolean = "boolean",
|
|
5
|
+
Select = "select",
|
|
6
|
+
List = "list",
|
|
7
|
+
Map = "map"
|
|
8
|
+
}
|
|
9
|
+
export interface CapsuleBlueprintParameter {
|
|
10
|
+
name: string;
|
|
11
|
+
key: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
value_type?: CapsuleBlueprintValueType;
|
|
15
|
+
default?: any;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
is_required?: boolean;
|
|
18
|
+
is_secret?: boolean;
|
|
19
|
+
options?: any;
|
|
20
|
+
hint?: string;
|
|
21
|
+
help?: string;
|
|
22
|
+
service_name?: string;
|
|
23
|
+
depends_on?: string[];
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type SmartVariableType = "var" | "env";
|
|
2
|
+
export type SmartVariableSource = "global" | "system" | "service";
|
|
3
|
+
export interface SmartVariable {
|
|
4
|
+
fullToken: string;
|
|
5
|
+
type: SmartVariableType;
|
|
6
|
+
source: SmartVariableSource;
|
|
7
|
+
name: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const SYSTEM_VARIABLES: SmartVariable[];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Byte / data-size formatting utilities.
|
|
3
|
+
*
|
|
4
|
+
* All functions that accept a unit parameter use `DataSizeUnit` which maps
|
|
5
|
+
* directly to the `action_value_unit` field returned by the API.
|
|
6
|
+
*/
|
|
7
|
+
export type DataSizeUnit = "B" | "KB" | "MB" | "GB" | "TB";
|
|
8
|
+
/**
|
|
9
|
+
* Normalize a raw unit string from the API (e.g. `"bytes"`, `"MB"`, `"Gigabytes"`)
|
|
10
|
+
* to a canonical `DataSizeUnit`. Falls back to `'B'` for unknown values.
|
|
11
|
+
*/
|
|
12
|
+
export declare function normalizeDataSizeUnit(raw: string | undefined): DataSizeUnit;
|
|
13
|
+
/**
|
|
14
|
+
* Pick the largest unit in which `referenceBytes` is >= 1.
|
|
15
|
+
* Falls back to 'B' when the value is 0 or less.
|
|
16
|
+
*/
|
|
17
|
+
export declare function pickBestUnit(referenceBytes: number): DataSizeUnit;
|
|
18
|
+
/**
|
|
19
|
+
* Format a raw byte value using the given display unit, up to `decimals`
|
|
20
|
+
* significant decimal places (trailing zeros are stripped).
|
|
21
|
+
*/
|
|
22
|
+
export declare function formatBytesAs(bytes: number, unit: DataSizeUnit, decimals?: number): string;
|
|
23
|
+
/**
|
|
24
|
+
* Format `value` and `total` — both expressed in `inputUnit` — using the
|
|
25
|
+
* same human-friendly display unit derived from `total`.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* // total = 1.5 GB → picks GB
|
|
29
|
+
* formatProgressBytes(0.45, 1.5, 'GB')
|
|
30
|
+
* // → { valueLabel: '0.45', totalLabel: '1.5', unit: 'GB', line: '0.45 / 1.5 GB' }
|
|
31
|
+
*
|
|
32
|
+
* // total = 1_500_000_000 bytes → picks GB
|
|
33
|
+
* formatProgressBytes(450_000_000, 1_500_000_000, 'B')
|
|
34
|
+
* // → { valueLabel: '0.42', totalLabel: '1.4', unit: 'GB', line: '0.42 / 1.4 GB' }
|
|
35
|
+
*/
|
|
36
|
+
export declare function formatProgressBytes(value: number, total: number, inputUnit?: DataSizeUnit, decimals?: number): {
|
|
37
|
+
valueLabel: string;
|
|
38
|
+
totalLabel: string;
|
|
39
|
+
unit: DataSizeUnit;
|
|
40
|
+
line: string;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Format a single byte value to the most appropriate unit, with up to
|
|
44
|
+
* `decimals` decimal places.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* formatBytes(1_500_000) // "1.43 MB"
|
|
48
|
+
* formatBytes(2_684_354_560) // "2.5 GB"
|
|
49
|
+
*/
|
|
50
|
+
export declare function formatBytes(bytes: number, decimals?: number): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface DependencyCondition {
|
|
2
|
+
field_name: string;
|
|
3
|
+
field_value: string;
|
|
4
|
+
operator: string;
|
|
5
|
+
condition?: "and" | "or";
|
|
6
|
+
}
|
|
7
|
+
export interface FileUploadData {
|
|
8
|
+
files: File | File[];
|
|
9
|
+
names: string;
|
|
10
|
+
count: number;
|
|
11
|
+
}
|
|
12
|
+
export interface FormData {
|
|
13
|
+
[key: string]: string | boolean | Array<{
|
|
14
|
+
key: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}> | string[] | FileUploadData;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Evaluates if a field should be visible based on its dependencies
|
|
20
|
+
* @param fieldName - The name of the field being evaluated
|
|
21
|
+
* @param dependencies - Array of dependency conditions
|
|
22
|
+
* @param formData - Current form data
|
|
23
|
+
* @returns boolean indicating if the field should be visible
|
|
24
|
+
*/
|
|
25
|
+
export declare function evaluateFieldVisibility(_fieldName: string, dependencies: DependencyCondition[], formData: FormData): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Evaluates visibility for all fields in a form
|
|
28
|
+
* @param parameters - Array of parameters with dependencies
|
|
29
|
+
* @param formData - Current form data
|
|
30
|
+
* @returns Object mapping field names to visibility states
|
|
31
|
+
*/
|
|
32
|
+
export declare function evaluateAllFieldVisibility(parameters: Array<{
|
|
33
|
+
key: string;
|
|
34
|
+
dependencies?: DependencyCondition[];
|
|
35
|
+
}>, formData: FormData): Record<string, boolean>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Duration formatting utilities.
|
|
3
|
+
* All functions operate on whole minutes as the base unit.
|
|
4
|
+
*/
|
|
5
|
+
export interface FormatDurationOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Maximum number of unit parts to include in the output.
|
|
8
|
+
* e.g. maxParts=2 → "1 day and 5 hours" (minutes dropped)
|
|
9
|
+
* Defaults to 3.
|
|
10
|
+
*/
|
|
11
|
+
maxParts?: number;
|
|
12
|
+
/**
|
|
13
|
+
* String to return when the input is zero or negative.
|
|
14
|
+
* Defaults to "0 minutes".
|
|
15
|
+
*/
|
|
16
|
+
zeroLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Converts a number of minutes into a human-readable duration string.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* formatDuration(1) // "1 minute"
|
|
23
|
+
* formatDuration(45) // "45 minutes"
|
|
24
|
+
* formatDuration(60) // "1 hour"
|
|
25
|
+
* formatDuration(85) // "1 hour and 25 minutes"
|
|
26
|
+
* formatDuration(1440) // "1 day"
|
|
27
|
+
* formatDuration(1525) // "1 day and 25 minutes"
|
|
28
|
+
* formatDuration(1860) // "1 day and 7 hours" (maxParts=2 default trims minutes)
|
|
29
|
+
* formatDuration(7785) // "5 days, 9 hours and 45 minutes"
|
|
30
|
+
* formatDuration(46080) // "1 month and 2 days"
|
|
31
|
+
* formatDuration(530985) // "1 year, 1 month and 2 days"
|
|
32
|
+
* formatDuration(0) // "0 minutes"
|
|
33
|
+
* formatDuration(-5) // "0 minutes"
|
|
34
|
+
*/
|
|
35
|
+
export declare function formatDuration(totalMinutes: number, options?: FormatDurationOptions): string;
|
|
36
|
+
/**
|
|
37
|
+
* Like `formatDuration` but accepts seconds instead of minutes.
|
|
38
|
+
* Values under 60 seconds are shown as "less than a minute" by default.
|
|
39
|
+
*/
|
|
40
|
+
export declare function formatDurationFromSeconds(totalSeconds: number, options?: FormatDurationOptions & {
|
|
41
|
+
subMinuteLabel?: string;
|
|
42
|
+
}): string;
|
|
43
|
+
/**
|
|
44
|
+
* Like `formatDuration` but accepts milliseconds instead of minutes.
|
|
45
|
+
* Values under 60 000 ms are shown as "less than a minute" by default.
|
|
46
|
+
*/
|
|
47
|
+
export declare function formatDurationFromMs(totalMs: number, options?: FormatDurationOptions & {
|
|
48
|
+
subMinuteLabel?: string;
|
|
49
|
+
}): string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for handling focus events with intelligent reconnection logic
|
|
3
|
+
*/
|
|
4
|
+
export interface FocusHandlerOptions {
|
|
5
|
+
debounceMs?: number;
|
|
6
|
+
checkConnection?: () => boolean;
|
|
7
|
+
onReconnect?: () => void;
|
|
8
|
+
onSkip?: () => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Creates a debounced focus handler that only triggers reconnection when necessary
|
|
12
|
+
* @param options Configuration options for the focus handler
|
|
13
|
+
* @returns A function that can be used as an event listener
|
|
14
|
+
*/
|
|
15
|
+
export declare function createIntelligentFocusHandler(options?: FocusHandlerOptions): () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Cleanup function for focus handlers
|
|
18
|
+
* @param handler The focus handler function
|
|
19
|
+
* @param timeoutRef Reference to the timeout
|
|
20
|
+
*/
|
|
21
|
+
export declare function cleanupFocusHandler(handler: () => void, timeoutRef: ReturnType<typeof setTimeout> | null): void;
|
|
22
|
+
/**
|
|
23
|
+
* Hook for managing focus events with intelligent reconnection
|
|
24
|
+
* @param options Configuration options
|
|
25
|
+
* @returns Cleanup function
|
|
26
|
+
*/
|
|
27
|
+
export declare function useIntelligentFocusHandler(options?: FocusHandlerOptions): () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a Gravatar URL for the given email.
|
|
3
|
+
*
|
|
4
|
+
* @param email - The user's email address.
|
|
5
|
+
* @param size - Image size in pixels (default 200).
|
|
6
|
+
* @param defaultImage - Gravatar fallback when no image exists.
|
|
7
|
+
* Common values: `'404'` (return HTTP 404), `'mp'` (mystery-person silhouette),
|
|
8
|
+
* `'identicon'` (geometric pattern), `'retro'` (8-bit style).
|
|
9
|
+
* Defaults to `'mp'` so a valid image is always returned.
|
|
10
|
+
*/
|
|
11
|
+
export declare const getGravatarUrl: (email: string, size?: number, defaultImage?: string) => string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type SmartVariable, type SmartVariableType, type SmartVariableSource } from "../types/Variables";
|
|
2
|
+
export declare const SMART_VAR_REGEX: RegExp;
|
|
3
|
+
export declare const parseSmartVariable: (token: string) => SmartVariable | null;
|
|
4
|
+
export declare const createSmartToken: (type: SmartVariableType, source: SmartVariableSource, name: string) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Extracts all unique variables from a given text string.
|
|
7
|
+
*/
|
|
8
|
+
export declare const extractVariables: (text: string) => SmartVariable[];
|
|
9
|
+
import { type CapsuleBlueprintParameter } from "../types/CapsuleBlueprint";
|
|
10
|
+
interface VariableContext {
|
|
11
|
+
globalParameters?: CapsuleBlueprintParameter[];
|
|
12
|
+
serviceNames?: string[];
|
|
13
|
+
context?: {
|
|
14
|
+
slug?: string;
|
|
15
|
+
enable_https?: boolean;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare const resolveVariable: (value: string, ctx: VariableContext) => {
|
|
19
|
+
value: string;
|
|
20
|
+
isResolved: boolean;
|
|
21
|
+
isRuntime: boolean;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function toBoolean(value: string | undefined): boolean;
|
|
2
|
+
export declare function normalizeString(subject: string): string;
|
|
3
|
+
export declare function normalizeStringToUpper(name: string): string;
|
|
4
|
+
export declare function isDevelopment(environment: string): boolean;
|
|
5
|
+
export declare function formatDate(iso?: string | null): string;
|
|
6
|
+
export declare function formatLogTime(iso: string): string;
|
|
7
|
+
export declare function formatMB(mb?: number): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TrueColor } from "../../theme/Theme";
|
|
2
|
+
export interface TreeColorTokens {
|
|
3
|
+
bg: string;
|
|
4
|
+
pulseBg: string;
|
|
5
|
+
border: string;
|
|
6
|
+
headerText: string;
|
|
7
|
+
labelText: string;
|
|
8
|
+
trunk: readonly [string, string];
|
|
9
|
+
connFill: readonly [string, string];
|
|
10
|
+
connBorder: readonly [string, string];
|
|
11
|
+
connDot: readonly [string, string];
|
|
12
|
+
}
|
|
13
|
+
export declare const NEUTRAL_TOKENS: TreeColorTokens;
|
|
14
|
+
export declare function getTreeColorTokens(tone: TrueColor | undefined): TreeColorTokens;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../common/theme/Theme";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { TableVariant } from "./Table.vue";
|
|
2
|
+
import type { PanelTone } from "./Panel.vue";
|
|
3
|
+
export interface AccessMatrixPermission {
|
|
4
|
+
group: string;
|
|
5
|
+
resource: string;
|
|
6
|
+
action: string;
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface AccessMatrixProps {
|
|
10
|
+
permissions: AccessMatrixPermission[];
|
|
11
|
+
/** Number of groups visible before the "Show more" button appears. Defaults to 5. */
|
|
12
|
+
limit?: number;
|
|
13
|
+
variant?: TableVariant;
|
|
14
|
+
tone?: PanelTone;
|
|
15
|
+
striped?: boolean;
|
|
16
|
+
/** Forwards to Table: remove inner row borders/dividers. */
|
|
17
|
+
noBorders?: boolean;
|
|
18
|
+
/** Forwards to Table: make the table fill parent height and scroll internally. */
|
|
19
|
+
fullHeight?: boolean;
|
|
20
|
+
hoverable?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Background Tailwind class(es) applied to the sticky Resource column cells so they remain
|
|
23
|
+
* opaque over scrolled action columns. Defaults to `'bg-white dark:bg-neutral-900'`.
|
|
24
|
+
* Pass `'bg-transparent'` when the table sits inside a container whose background should
|
|
25
|
+
* show through (e.g. a tinted panel or card).
|
|
26
|
+
*/
|
|
27
|
+
stickyBackground?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const _default: import("vue").DefineComponent<AccessMatrixProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<AccessMatrixProps> & Readonly<{}>, {
|
|
30
|
+
tone: PanelTone;
|
|
31
|
+
variant: TableVariant;
|
|
32
|
+
fullHeight: boolean;
|
|
33
|
+
hoverable: boolean;
|
|
34
|
+
striped: boolean;
|
|
35
|
+
noBorders: boolean;
|
|
36
|
+
limit: number;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { VNode } from "vue";
|
|
2
|
+
import type { LoaderProps } from "./Loader.vue";
|
|
3
|
+
import type { PanelTone } from "./Panel.vue";
|
|
4
|
+
export type AccordionVariant = "default" | "bordered" | "minimal" | "tonal" | "ghost";
|
|
5
|
+
export type AccordionSize = "sm" | "md" | "lg";
|
|
6
|
+
export type AccordionIndicator = "chevron" | "plus-minus" | "caret" | "none";
|
|
7
|
+
export type AccordionChevronPlacement = "left" | "right";
|
|
8
|
+
export interface AccordionItem {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string | VNode;
|
|
11
|
+
subtitle?: string | VNode;
|
|
12
|
+
description?: string | VNode;
|
|
13
|
+
icon?: string | VNode;
|
|
14
|
+
badge?: string | VNode;
|
|
15
|
+
actions?: string | VNode;
|
|
16
|
+
content: string | VNode;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface AccordionProps {
|
|
21
|
+
items: AccordionItem[];
|
|
22
|
+
variant?: AccordionVariant;
|
|
23
|
+
tone?: PanelTone;
|
|
24
|
+
size?: AccordionSize;
|
|
25
|
+
indicator?: AccordionIndicator;
|
|
26
|
+
chevronPlacement?: AccordionChevronPlacement;
|
|
27
|
+
divider?: boolean;
|
|
28
|
+
animated?: boolean;
|
|
29
|
+
transitionMs?: number;
|
|
30
|
+
iconClassName?: string;
|
|
31
|
+
itemClassName?: string;
|
|
32
|
+
headerClassName?: string;
|
|
33
|
+
contentClassName?: string;
|
|
34
|
+
ariaLabel?: string;
|
|
35
|
+
loading?: boolean;
|
|
36
|
+
loaderTitle?: string;
|
|
37
|
+
loaderMessage?: string;
|
|
38
|
+
loaderType?: LoaderProps["variant"];
|
|
39
|
+
loaderProgress?: number;
|
|
40
|
+
loaderColor?: LoaderProps["color"];
|
|
41
|
+
defaultOpenIds?: string[];
|
|
42
|
+
openIds?: string[];
|
|
43
|
+
multiple?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare const _default: import("vue").DefineComponent<AccordionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
46
|
+
change: (openIds: string[]) => any;
|
|
47
|
+
itemToggle: (id: string, isOpen: boolean) => any;
|
|
48
|
+
}, string, import("vue").PublicProps, Readonly<AccordionProps> & Readonly<{
|
|
49
|
+
onChange?: ((openIds: string[]) => any) | undefined;
|
|
50
|
+
onItemToggle?: ((id: string, isOpen: boolean) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
tone: PanelTone;
|
|
53
|
+
variant: AccordionVariant;
|
|
54
|
+
size: AccordionSize;
|
|
55
|
+
loading: boolean;
|
|
56
|
+
animated: boolean;
|
|
57
|
+
loaderType: "spinner" | "progress";
|
|
58
|
+
indicator: AccordionIndicator;
|
|
59
|
+
chevronPlacement: AccordionChevronPlacement;
|
|
60
|
+
divider: boolean;
|
|
61
|
+
transitionMs: number;
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
export default _default;
|