@bitrise/bitkit 12.83.0 → 12.84.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/package.json +4 -4
- package/src/Components/Accordion/Accordion.tsx +1 -1
- package/src/Components/Accordion/AccordionItem.tsx +4 -4
- package/src/Components/AccordionLegacy/Accordion.theme.ts +59 -59
- package/src/Components/AccordionLegacy/LegacyAccordion.tsx +3 -3
- package/src/Components/AccordionLegacy/LegacyAccordionItem.tsx +4 -4
- package/src/Components/Badge/Badge.theme.ts +5 -5
- package/src/Components/Badge/Badge.tsx +1 -1
- package/src/Components/Breadcrumb/Breadcrumb.theme.ts +10 -10
- package/src/Components/Breadcrumb/Breadcrumb.tsx +1 -1
- package/src/Components/Button/Button.theme.ts +72 -72
- package/src/Components/Card/Card.theme.ts +7 -7
- package/src/Components/CloseButton/CloseButton.theme.ts +10 -10
- package/src/Components/CloseButton/CloseButton.tsx +1 -1
- package/src/Components/CodeBlock/CodeBlock.theme.ts +7 -7
- package/src/Components/CodeBlock/CodeBlock.tsx +4 -4
- package/src/Components/CodeSnippet/CodeSnippet.theme.ts +8 -8
- package/src/Components/CodeSnippet/CodeSnippet.tsx +2 -2
- package/src/Components/ColorButton/ColorButton.theme.ts +27 -27
- package/src/Components/ColorButton/ColorButton.tsx +2 -2
- package/src/Components/DatePicker/DatePicker.tsx +9 -9
- package/src/Components/DatePicker/DatePickerDay.theme.ts +31 -31
- package/src/Components/DatePicker/DatePickerDay.tsx +17 -17
- package/src/Components/DatePicker/DatePickerFooter.tsx +13 -13
- package/src/Components/DatePicker/DatePickerGrid.tsx +1 -1
- package/src/Components/DatePicker/DatePickerHeader.tsx +19 -19
- package/src/Components/DatePicker/DatePickerMonth.tsx +15 -15
- package/src/Components/DatePicker/DatePickerMonthSelector.tsx +25 -25
- package/src/Components/DefinitionTooltip/DefinitionTooltip.theme.ts +5 -5
- package/src/Components/DefinitionTooltip/DefinitionTooltip.tsx +1 -1
- package/src/Components/Dialog/Dialog.theme.ts +51 -51
- package/src/Components/Dialog/Dialog.tsx +5 -5
- package/src/Components/Dot/Dot.tsx +1 -1
- package/src/Components/Drawer/Drawer.theme.ts +20 -20
- package/src/Components/Drawer/Drawer.tsx +5 -5
- package/src/Components/Dropdown/Dropdown.context.tsx +2 -2
- package/src/Components/Dropdown/Dropdown.theme.ts +55 -55
- package/src/Components/Dropdown/Dropdown.tsx +52 -52
- package/src/Components/Dropdown/DropdownButton.tsx +5 -5
- package/src/Components/Dropdown/DropdownOption.tsx +12 -12
- package/src/Components/Dropdown/hooks/useAutoScroll.ts +3 -3
- package/src/Components/Dropdown/hooks/useFloatingDropdown.ts +39 -39
- package/src/Components/Dropdown/hooks/useSimpleSearch.tsx +1 -1
- package/src/Components/EmptyState/EmptyState.theme.ts +11 -11
- package/src/Components/EmptyState/EmptyState.tsx +1 -1
- package/src/Components/ExpandableCard/ExpandableCard.theme.ts +14 -14
- package/src/Components/ExpandableCard/ExpandableCard.tsx +3 -3
- package/src/Components/Filter/Filter.storyData.ts +44 -44
- package/src/Components/Filter/Filter.theme.ts +82 -82
- package/src/Components/Filter/Filter.tsx +6 -6
- package/src/Components/Filter/FilterAdd/FilterAdd.tsx +3 -3
- package/src/Components/Filter/FilterDate/FilterDate.tsx +4 -4
- package/src/Components/Filter/FilterForm/FilterForm.tsx +4 -5
- package/src/Components/Filter/FilterItem/FilterItem.tsx +4 -4
- package/src/Components/Filter/FilterSearch/FilterSearch.tsx +2 -2
- package/src/Components/Filter/FilterSwitch/FilterSwitch.theme.ts +29 -29
- package/src/Components/Filter/FilterSwitch/FilterSwitch.tsx +6 -6
- package/src/Components/Form/Checkbox/Checkbox.theme.ts +25 -25
- package/src/Components/Form/DateInput/DateInput.tsx +8 -8
- package/src/Components/Form/FileInput/FileInput.theme.ts +26 -26
- package/src/Components/Form/FileInput/FileInput.tsx +11 -11
- package/src/Components/Form/Form.theme.ts +5 -5
- package/src/Components/Form/Input/Input.theme.ts +24 -24
- package/src/Components/Form/Input/Input.tsx +17 -17
- package/src/Components/Form/Radio/Radio.theme.ts +26 -26
- package/src/Components/Form/Radio/Radio.tsx +1 -1
- package/src/Components/Form/Textarea/Textarea.tsx +9 -9
- package/src/Components/Icon/Icon.tsx +1 -1
- package/src/Components/IconButton/IconButton.tsx +1 -1
- package/src/Components/Icons/16x16/Addons.tsx +3 -3
- package/src/Components/Icons/16x16/AddonsTuorqouise.tsx +7 -7
- package/src/Components/Icons/16x16/AddonsViolet.tsx +7 -7
- package/src/Components/Icons/16x16/AddonsWhite.tsx +7 -7
- package/src/Components/Icons/16x16/Agent.tsx +3 -3
- package/src/Components/Icons/16x16/Anchor.tsx +3 -3
- package/src/Components/Icons/16x16/Android.tsx +3 -3
- package/src/Components/Icons/16x16/App.tsx +3 -3
- package/src/Components/Icons/16x16/Apple.tsx +3 -3
- package/src/Components/Icons/16x16/AppleFill.tsx +2 -2
- package/src/Components/Icons/16x16/ArrowDown.tsx +2 -2
- package/src/Components/Icons/16x16/ArrowLeft.tsx +3 -3
- package/src/Components/Icons/16x16/ArrowMoveDown.tsx +2 -2
- package/src/Components/Icons/16x16/ArrowMoveLeft.tsx +3 -3
- package/src/Components/Icons/16x16/ArrowMoveRight.tsx +3 -3
- package/src/Components/Icons/16x16/ArrowMoveUp.tsx +3 -3
- package/src/Components/Icons/16x16/ArrowQuit.tsx +2 -2
- package/src/Components/Icons/16x16/ArrowRight.tsx +2 -2
- package/src/Components/Icons/16x16/ArrowUp.tsx +2 -2
- package/src/Components/Icons/16x16/Badge3rdParty.tsx +4 -4
- package/src/Components/Icons/16x16/BadgeBitrise.tsx +4 -4
- package/src/Components/Icons/16x16/Bazel.tsx +8 -8
- package/src/Components/Icons/16x16/Bell.tsx +3 -3
- package/src/Components/Icons/16x16/Bitbot.tsx +4 -4
- package/src/Components/Icons/16x16/BitbotError.tsx +4 -4
- package/src/Components/Icons/16x16/BitbucketBlue.tsx +4 -4
- package/src/Components/Icons/16x16/BitbucketPlain.tsx +3 -3
- package/src/Components/Icons/16x16/BitbucketShadedWhite.tsx +6 -6
- package/src/Components/Icons/16x16/Book.tsx +3 -3
- package/src/Components/Icons/16x16/BoxWithArrowDown.tsx +2 -2
- package/src/Components/Icons/16x16/BoxWithDot.tsx +3 -3
- package/src/Components/Icons/16x16/Branch.tsx +3 -3
- package/src/Components/Icons/16x16/Bug.tsx +3 -3
- package/src/Components/Icons/16x16/Build.tsx +4 -4
- package/src/Components/Icons/16x16/BuildCache.tsx +2 -2
- package/src/Components/Icons/16x16/BuildCacheSolid.tsx +3 -3
- package/src/Components/Icons/16x16/BuildTest.tsx +2 -2
- package/src/Components/Icons/16x16/BuildTestSolid.tsx +2 -2
- package/src/Components/Icons/16x16/BuildstatusAborted.tsx +5 -5
- package/src/Components/Icons/16x16/BuildstatusAbortedSolid.tsx +2 -2
- package/src/Components/Icons/16x16/BuildstatusFailed.tsx +3 -3
- package/src/Components/Icons/16x16/BuildstatusFailedSolid.tsx +2 -2
- package/src/Components/Icons/16x16/BuildstatusLoading.tsx +5 -5
- package/src/Components/Icons/16x16/BuildstatusLoadingAnimated.tsx +11 -11
- package/src/Components/Icons/16x16/BuildstatusNeverbuilt.tsx +3 -3
- package/src/Components/Icons/16x16/BuildstatusProgressEggplant.tsx +7 -7
- package/src/Components/Icons/16x16/BuildstatusProgressWhite.tsx +5 -5
- package/src/Components/Icons/16x16/BuildstatusSuccessful.tsx +5 -5
- package/src/Components/Icons/16x16/BuildstatusSuccessfulSolid.tsx +2 -2
- package/src/Components/Icons/16x16/Bulletpoint.tsx +2 -2
- package/src/Components/Icons/16x16/Cache.tsx +4 -4
- package/src/Components/Icons/16x16/Calendar.tsx +3 -3
- package/src/Components/Icons/16x16/ChangePlan.tsx +3 -3
- package/src/Components/Icons/16x16/Chat.tsx +4 -4
- package/src/Components/Icons/16x16/ChatMessage.tsx +3 -3
- package/src/Components/Icons/16x16/CheckCircle.tsx +2 -2
- package/src/Components/Icons/16x16/ChevronDown.tsx +3 -3
- package/src/Components/Icons/16x16/ChevronLeft.tsx +3 -3
- package/src/Components/Icons/16x16/ChevronRight.tsx +3 -3
- package/src/Components/Icons/16x16/ChevronUp.tsx +3 -3
- package/src/Components/Icons/16x16/Clock.tsx +3 -3
- package/src/Components/Icons/16x16/CloseSmall.tsx +3 -3
- package/src/Components/Icons/16x16/Code.tsx +3 -3
- package/src/Components/Icons/16x16/CodeSigning.tsx +4 -4
- package/src/Components/Icons/16x16/Coffee.tsx +3 -3
- package/src/Components/Icons/16x16/Commit.tsx +2 -2
- package/src/Components/Icons/16x16/Conference.tsx +5 -5
- package/src/Components/Icons/16x16/ConnectedAccounts.tsx +2 -2
- package/src/Components/Icons/16x16/Cordova.tsx +3 -3
- package/src/Components/Icons/16x16/Cpu.tsx +4 -4
- package/src/Components/Icons/16x16/Creditcard.tsx +4 -4
- package/src/Components/Icons/16x16/Credits.tsx +5 -5
- package/src/Components/Icons/16x16/Cycle.tsx +3 -3
- package/src/Components/Icons/16x16/DeleteNope.tsx +3 -3
- package/src/Components/Icons/16x16/Deployment.tsx +5 -5
- package/src/Components/Icons/16x16/Details.tsx +2 -2
- package/src/Components/Icons/16x16/Doc.tsx +3 -3
- package/src/Components/Icons/16x16/Dollars.tsx +3 -3
- package/src/Components/Icons/16x16/Download.tsx +3 -3
- package/src/Components/Icons/16x16/DropdownArrows.tsx +3 -3
- package/src/Components/Icons/16x16/Dudes.tsx +3 -3
- package/src/Components/Icons/16x16/Duplicate.tsx +3 -3
- package/src/Components/Icons/16x16/Enterprise.tsx +4 -4
- package/src/Components/Icons/16x16/ErrorGeneral.tsx +4 -4
- package/src/Components/Icons/16x16/Expand.tsx +2 -2
- package/src/Components/Icons/16x16/Fastlane.tsx +3 -3
- package/src/Components/Icons/16x16/FileDoc.tsx +3 -3
- package/src/Components/Icons/16x16/FilePdf.tsx +3 -3
- package/src/Components/Icons/16x16/FilePlist.tsx +5 -5
- package/src/Components/Icons/16x16/FileZip.tsx +5 -5
- package/src/Components/Icons/16x16/Filter.tsx +1 -1
- package/src/Components/Icons/16x16/Flag.tsx +3 -3
- package/src/Components/Icons/16x16/Flutter.tsx +2 -2
- package/src/Components/Icons/16x16/Folder.tsx +3 -3
- package/src/Components/Icons/16x16/Fullscreen.tsx +2 -2
- package/src/Components/Icons/16x16/FullscreenExit.tsx +2 -2
- package/src/Components/Icons/16x16/Gauge.tsx +2 -2
- package/src/Components/Icons/16x16/Github.tsx +3 -3
- package/src/Components/Icons/16x16/GitlabColor.tsx +9 -9
- package/src/Components/Icons/16x16/GitlabPlain.tsx +3 -3
- package/src/Components/Icons/16x16/GitlabShadedWhite.tsx +14 -14
- package/src/Components/Icons/16x16/Globe.tsx +3 -3
- package/src/Components/Icons/16x16/Go.tsx +8 -8
- package/src/Components/Icons/16x16/GoogleColor.tsx +6 -6
- package/src/Components/Icons/16x16/Gradle.tsx +2 -2
- package/src/Components/Icons/16x16/Group.tsx +3 -3
- package/src/Components/Icons/16x16/Heart.tsx +3 -3
- package/src/Components/Icons/16x16/HidePassword.tsx +4 -4
- package/src/Components/Icons/16x16/History.tsx +2 -2
- package/src/Components/Icons/16x16/Image.tsx +3 -3
- package/src/Components/Icons/16x16/Info.tsx +3 -3
- package/src/Components/Icons/16x16/Insights.tsx +2 -2
- package/src/Components/Icons/16x16/InsightsSolid.tsx +2 -2
- package/src/Components/Icons/16x16/Interaction.tsx +4 -4
- package/src/Components/Icons/16x16/Invoice.tsx +3 -3
- package/src/Components/Icons/16x16/Ionic.tsx +3 -3
- package/src/Components/Icons/16x16/Japanese.tsx +3 -3
- package/src/Components/Icons/16x16/Key.tsx +3 -3
- package/src/Components/Icons/16x16/Laptop.tsx +3 -3
- package/src/Components/Icons/16x16/LaunchDarkly.tsx +1 -1
- package/src/Components/Icons/16x16/Lightbulb.tsx +3 -3
- package/src/Components/Icons/16x16/Link.tsx +2 -2
- package/src/Components/Icons/16x16/Lock.tsx +3 -3
- package/src/Components/Icons/16x16/LockOpen.tsx +2 -2
- package/src/Components/Icons/16x16/Login.tsx +3 -3
- package/src/Components/Icons/16x16/Logout.tsx +3 -3
- package/src/Components/Icons/16x16/Macos.tsx +3 -3
- package/src/Components/Icons/16x16/Magnifier.tsx +3 -3
- package/src/Components/Icons/16x16/Mail.tsx +3 -3
- package/src/Components/Icons/16x16/MenuGrid.tsx +3 -3
- package/src/Components/Icons/16x16/MenuHamburger.tsx +3 -3
- package/src/Components/Icons/16x16/Message.tsx +3 -3
- package/src/Components/Icons/16x16/MinusClose.tsx +2 -2
- package/src/Components/Icons/16x16/MinusRemove.tsx +3 -3
- package/src/Components/Icons/16x16/Mobile.tsx +3 -3
- package/src/Components/Icons/16x16/MonitorChart.tsx +2 -2
- package/src/Components/Icons/16x16/MoreHorizontal.tsx +3 -3
- package/src/Components/Icons/16x16/MoreVertical.tsx +3 -3
- package/src/Components/Icons/16x16/News.tsx +4 -4
- package/src/Components/Icons/16x16/NoTie.tsx +3 -3
- package/src/Components/Icons/16x16/Nodejs.tsx +3 -3
- package/src/Components/Icons/16x16/Numero.tsx +3 -3
- package/src/Components/Icons/16x16/OpenInBrowser.tsx +3 -3
- package/src/Components/Icons/16x16/Other.tsx +5 -5
- package/src/Components/Icons/16x16/OverflowingLines.tsx +3 -3
- package/src/Components/Icons/16x16/Overview.tsx +3 -3
- package/src/Components/Icons/16x16/Owner.tsx +4 -4
- package/src/Components/Icons/16x16/Pause.tsx +3 -3
- package/src/Components/Icons/16x16/Pencil.tsx +5 -5
- package/src/Components/Icons/16x16/Percent.tsx +3 -3
- package/src/Components/Icons/16x16/Person.tsx +3 -3
- package/src/Components/Icons/16x16/Play.tsx +3 -3
- package/src/Components/Icons/16x16/PlusAdd.tsx +3 -3
- package/src/Components/Icons/16x16/PlusOpen.tsx +3 -3
- package/src/Components/Icons/16x16/Podcast.tsx +4 -4
- package/src/Components/Icons/16x16/Power.tsx +3 -3
- package/src/Components/Icons/16x16/ProgressEggplant.tsx +5 -5
- package/src/Components/Icons/16x16/ProgressViolet.tsx +5 -5
- package/src/Components/Icons/16x16/ProgressWhite.tsx +5 -5
- package/src/Components/Icons/16x16/Pull.tsx +3 -3
- package/src/Components/Icons/16x16/Push.tsx +3 -3
- package/src/Components/Icons/16x16/ReactIcon.tsx +3 -3
- package/src/Components/Icons/16x16/Refresh.tsx +2 -2
- package/src/Components/Icons/16x16/Release.tsx +2 -2
- package/src/Components/Icons/16x16/ReleaseSolid.tsx +2 -2
- package/src/Components/Icons/16x16/Replace.tsx +2 -2
- package/src/Components/Icons/16x16/Request.tsx +2 -2
- package/src/Components/Icons/16x16/Responsiveness.tsx +3 -3
- package/src/Components/Icons/16x16/Save.tsx +4 -4
- package/src/Components/Icons/16x16/Screenshare.tsx +4 -4
- package/src/Components/Icons/16x16/SecurityShield.tsx +3 -3
- package/src/Components/Icons/16x16/Settings.tsx +3 -3
- package/src/Components/Icons/16x16/SettingsSolid.tsx +2 -2
- package/src/Components/Icons/16x16/Ship.tsx +4 -4
- package/src/Components/Icons/16x16/ShowPassword.tsx +4 -4
- package/src/Components/Icons/16x16/Shuffle.tsx +3 -3
- package/src/Components/Icons/16x16/Siren.tsx +1 -1
- package/src/Components/Icons/16x16/Sort.tsx +2 -2
- package/src/Components/Icons/16x16/SortArrows.tsx +2 -2
- package/src/Components/Icons/16x16/Stability.tsx +4 -4
- package/src/Components/Icons/16x16/Stack.tsx +3 -3
- package/src/Components/Icons/16x16/StageCurrent.tsx +2 -2
- package/src/Components/Icons/16x16/StageIncomplete.tsx +2 -2
- package/src/Components/Icons/16x16/Star.tsx +3 -3
- package/src/Components/Icons/16x16/Status.tsx +5 -5
- package/src/Components/Icons/16x16/StepUpgrade.tsx +3 -3
- package/src/Components/Icons/16x16/StepVersionOk.tsx +3 -3
- package/src/Components/Icons/16x16/Steps.tsx +3 -3
- package/src/Components/Icons/16x16/StepsTuorqouise.tsx +7 -7
- package/src/Components/Icons/16x16/StepsViolet.tsx +7 -7
- package/src/Components/Icons/16x16/StepsWhite.tsx +7 -7
- package/src/Components/Icons/16x16/StepstatusSkip.tsx +5 -5
- package/src/Components/Icons/16x16/StepstatusWarning.tsx +4 -4
- package/src/Components/Icons/16x16/Stopwatch.tsx +5 -5
- package/src/Components/Icons/16x16/Support.tsx +3 -3
- package/src/Components/Icons/16x16/Swag.tsx +2 -2
- package/src/Components/Icons/16x16/Tag.tsx +4 -4
- package/src/Components/Icons/16x16/TestFailed.tsx +4 -4
- package/src/Components/Icons/16x16/TestInconclusive.tsx +4 -4
- package/src/Components/Icons/16x16/TestInfo.tsx +4 -4
- package/src/Components/Icons/16x16/TestInprogress.tsx +3 -3
- package/src/Components/Icons/16x16/TestSkipped.tsx +5 -5
- package/src/Components/Icons/16x16/TestSuccess.tsx +4 -4
- package/src/Components/Icons/16x16/TestWarning.tsx +4 -4
- package/src/Components/Icons/16x16/Testing.tsx +4 -4
- package/src/Components/Icons/16x16/Tick.tsx +3 -3
- package/src/Components/Icons/16x16/Time.tsx +3 -3
- package/src/Components/Icons/16x16/Tools.tsx +3 -3
- package/src/Components/Icons/16x16/Trace.tsx +2 -2
- package/src/Components/Icons/16x16/Trash.tsx +3 -3
- package/src/Components/Icons/16x16/Trigger.tsx +3 -3
- package/src/Components/Icons/16x16/Twitter.tsx +3 -3
- package/src/Components/Icons/16x16/Upload.tsx +1 -1
- package/src/Components/Icons/16x16/ValidateShield.tsx +3 -3
- package/src/Components/Icons/16x16/Video.tsx +5 -5
- package/src/Components/Icons/16x16/Warning.tsx +3 -3
- package/src/Components/Icons/16x16/WarningColored.tsx +2 -2
- package/src/Components/Icons/16x16/WebUi.tsx +5 -5
- package/src/Components/Icons/16x16/Webhooks.tsx +4 -4
- package/src/Components/Icons/16x16/Webinar.tsx +3 -3
- package/src/Components/Icons/16x16/Window.tsx +4 -4
- package/src/Components/Icons/16x16/Workflow.tsx +3 -3
- package/src/Components/Icons/16x16/WorkflowFlow.tsx +3 -3
- package/src/Components/Icons/16x16/Wow.tsx +3 -3
- package/src/Components/Icons/16x16/WrappedLines.tsx +3 -3
- package/src/Components/Icons/16x16/Xamarin.tsx +4 -4
- package/src/Components/Icons/24x24/Addons.tsx +2 -2
- package/src/Components/Icons/24x24/AddonsTuorqouise.tsx +6 -6
- package/src/Components/Icons/24x24/AddonsViolet.tsx +6 -6
- package/src/Components/Icons/24x24/AddonsWhite.tsx +6 -6
- package/src/Components/Icons/24x24/Agent.tsx +3 -3
- package/src/Components/Icons/24x24/Anchor.tsx +2 -2
- package/src/Components/Icons/24x24/Android.tsx +2 -2
- package/src/Components/Icons/24x24/App.tsx +2 -2
- package/src/Components/Icons/24x24/Apple.tsx +2 -2
- package/src/Components/Icons/24x24/AppleFill.tsx +1 -1
- package/src/Components/Icons/24x24/ArrowDown.tsx +2 -2
- package/src/Components/Icons/24x24/ArrowLeft.tsx +2 -2
- package/src/Components/Icons/24x24/ArrowMoveDown.tsx +1 -1
- package/src/Components/Icons/24x24/ArrowMoveLeft.tsx +2 -2
- package/src/Components/Icons/24x24/ArrowMoveRight.tsx +2 -2
- package/src/Components/Icons/24x24/ArrowMoveUp.tsx +2 -2
- package/src/Components/Icons/24x24/ArrowQuit.tsx +1 -1
- package/src/Components/Icons/24x24/ArrowRight.tsx +2 -2
- package/src/Components/Icons/24x24/ArrowUp.tsx +2 -2
- package/src/Components/Icons/24x24/Badge3rdParty.tsx +2 -2
- package/src/Components/Icons/24x24/BadgeBitrise.tsx +2 -2
- package/src/Components/Icons/24x24/Bazel.tsx +8 -8
- package/src/Components/Icons/24x24/Bell.tsx +2 -2
- package/src/Components/Icons/24x24/Bitbot.tsx +2 -2
- package/src/Components/Icons/24x24/BitbotError.tsx +2 -2
- package/src/Components/Icons/24x24/BitbucketBlue.tsx +3 -3
- package/src/Components/Icons/24x24/BitbucketPlain.tsx +2 -2
- package/src/Components/Icons/24x24/BitbucketShadedWhite.tsx +9 -9
- package/src/Components/Icons/24x24/Book.tsx +2 -2
- package/src/Components/Icons/24x24/BoxWithArrowDown.tsx +2 -2
- package/src/Components/Icons/24x24/BoxWithDot.tsx +2 -2
- package/src/Components/Icons/24x24/Branch.tsx +3 -3
- package/src/Components/Icons/24x24/Bug.tsx +2 -2
- package/src/Components/Icons/24x24/Build.tsx +2 -2
- package/src/Components/Icons/24x24/BuildCache.tsx +2 -2
- package/src/Components/Icons/24x24/BuildCacheSolid.tsx +3 -3
- package/src/Components/Icons/24x24/BuildTest.tsx +2 -2
- package/src/Components/Icons/24x24/BuildTestSolid.tsx +2 -2
- package/src/Components/Icons/24x24/BuildstatusAborted.tsx +3 -3
- package/src/Components/Icons/24x24/BuildstatusAbortedSolid.tsx +2 -2
- package/src/Components/Icons/24x24/BuildstatusFailed.tsx +2 -2
- package/src/Components/Icons/24x24/BuildstatusFailedSolid.tsx +2 -2
- package/src/Components/Icons/24x24/BuildstatusLoading.tsx +3 -3
- package/src/Components/Icons/24x24/BuildstatusLoadingAnimated.tsx +11 -11
- package/src/Components/Icons/24x24/BuildstatusNeverbuilt.tsx +2 -2
- package/src/Components/Icons/24x24/BuildstatusProgressEggplant.tsx +6 -6
- package/src/Components/Icons/24x24/BuildstatusProgressWhite.tsx +3 -3
- package/src/Components/Icons/24x24/BuildstatusSuccessful.tsx +3 -3
- package/src/Components/Icons/24x24/BuildstatusSuccessfulSolid.tsx +2 -2
- package/src/Components/Icons/24x24/Bulletpoint.tsx +2 -2
- package/src/Components/Icons/24x24/Cache.tsx +2 -2
- package/src/Components/Icons/24x24/Calendar.tsx +2 -2
- package/src/Components/Icons/24x24/ChangePlan.tsx +1 -1
- package/src/Components/Icons/24x24/Chat.tsx +2 -2
- package/src/Components/Icons/24x24/ChatMessage.tsx +2 -2
- package/src/Components/Icons/24x24/CheckCircle.tsx +2 -2
- package/src/Components/Icons/24x24/ChevronDown.tsx +2 -2
- package/src/Components/Icons/24x24/ChevronLeft.tsx +2 -2
- package/src/Components/Icons/24x24/ChevronRight.tsx +2 -2
- package/src/Components/Icons/24x24/ChevronUp.tsx +2 -2
- package/src/Components/Icons/24x24/Clock.tsx +2 -2
- package/src/Components/Icons/24x24/CloseSmall.tsx +2 -2
- package/src/Components/Icons/24x24/Code.tsx +1 -1
- package/src/Components/Icons/24x24/CodeSigning.tsx +2 -2
- package/src/Components/Icons/24x24/Coffee.tsx +2 -2
- package/src/Components/Icons/24x24/Commit.tsx +2 -2
- package/src/Components/Icons/24x24/Conference.tsx +2 -2
- package/src/Components/Icons/24x24/ConnectedAccounts.tsx +2 -2
- package/src/Components/Icons/24x24/Cordova.tsx +2 -2
- package/src/Components/Icons/24x24/Cpu.tsx +2 -2
- package/src/Components/Icons/24x24/Creditcard.tsx +2 -2
- package/src/Components/Icons/24x24/Credits.tsx +3 -3
- package/src/Components/Icons/24x24/Cycle.tsx +2 -2
- package/src/Components/Icons/24x24/DeleteNope.tsx +2 -2
- package/src/Components/Icons/24x24/Deployment.tsx +2 -2
- package/src/Components/Icons/24x24/Details.tsx +2 -2
- package/src/Components/Icons/24x24/Doc.tsx +2 -2
- package/src/Components/Icons/24x24/Dollars.tsx +2 -2
- package/src/Components/Icons/24x24/Download.tsx +2 -2
- package/src/Components/Icons/24x24/DropdownArrows.tsx +2 -2
- package/src/Components/Icons/24x24/Dudes.tsx +2 -2
- package/src/Components/Icons/24x24/Duplicate.tsx +2 -2
- package/src/Components/Icons/24x24/Enterprise.tsx +2 -2
- package/src/Components/Icons/24x24/ErrorGeneral.tsx +2 -2
- package/src/Components/Icons/24x24/Expand.tsx +1 -1
- package/src/Components/Icons/24x24/Fastlane.tsx +2 -2
- package/src/Components/Icons/24x24/FileDoc.tsx +2 -2
- package/src/Components/Icons/24x24/FilePdf.tsx +2 -2
- package/src/Components/Icons/24x24/FilePlist.tsx +2 -2
- package/src/Components/Icons/24x24/FileZip.tsx +2 -2
- package/src/Components/Icons/24x24/Filter.tsx +1 -1
- package/src/Components/Icons/24x24/Flag.tsx +2 -2
- package/src/Components/Icons/24x24/Flutter.tsx +1 -1
- package/src/Components/Icons/24x24/Folder.tsx +2 -2
- package/src/Components/Icons/24x24/Fullscreen.tsx +1 -1
- package/src/Components/Icons/24x24/FullscreenExit.tsx +1 -1
- package/src/Components/Icons/24x24/Gauge.tsx +2 -2
- package/src/Components/Icons/24x24/Github.tsx +2 -2
- package/src/Components/Icons/24x24/GitlabColor.tsx +1 -1
- package/src/Components/Icons/24x24/GitlabPlain.tsx +2 -2
- package/src/Components/Icons/24x24/GitlabShadedWhite.tsx +7 -7
- package/src/Components/Icons/24x24/Globe.tsx +2 -2
- package/src/Components/Icons/24x24/Go.tsx +4 -4
- package/src/Components/Icons/24x24/GoogleColor.tsx +6 -6
- package/src/Components/Icons/24x24/Gradle.tsx +3 -3
- package/src/Components/Icons/24x24/Group.tsx +2 -2
- package/src/Components/Icons/24x24/Heart.tsx +2 -2
- package/src/Components/Icons/24x24/HidePassword.tsx +2 -2
- package/src/Components/Icons/24x24/History.tsx +2 -2
- package/src/Components/Icons/24x24/Image.tsx +2 -2
- package/src/Components/Icons/24x24/Info.tsx +2 -2
- package/src/Components/Icons/24x24/Insights.tsx +2 -2
- package/src/Components/Icons/24x24/InsightsSolid.tsx +2 -2
- package/src/Components/Icons/24x24/Interaction.tsx +2 -2
- package/src/Components/Icons/24x24/Invoice.tsx +2 -2
- package/src/Components/Icons/24x24/Ionic.tsx +2 -2
- package/src/Components/Icons/24x24/Japanese.tsx +2 -2
- package/src/Components/Icons/24x24/Key.tsx +2 -2
- package/src/Components/Icons/24x24/Laptop.tsx +2 -2
- package/src/Components/Icons/24x24/LaunchDarkly.tsx +1 -1
- package/src/Components/Icons/24x24/Lightbulb.tsx +2 -2
- package/src/Components/Icons/24x24/Link.tsx +1 -1
- package/src/Components/Icons/24x24/Lock.tsx +2 -2
- package/src/Components/Icons/24x24/LockOpen.tsx +2 -2
- package/src/Components/Icons/24x24/Login.tsx +2 -2
- package/src/Components/Icons/24x24/Logout.tsx +2 -2
- package/src/Components/Icons/24x24/Macos.tsx +2 -2
- package/src/Components/Icons/24x24/Magnifier.tsx +2 -2
- package/src/Components/Icons/24x24/Mail.tsx +2 -2
- package/src/Components/Icons/24x24/MenuGrid.tsx +2 -2
- package/src/Components/Icons/24x24/MenuHamburger.tsx +2 -2
- package/src/Components/Icons/24x24/Message.tsx +2 -2
- package/src/Components/Icons/24x24/MinusClose.tsx +2 -2
- package/src/Components/Icons/24x24/MinusRemove.tsx +2 -2
- package/src/Components/Icons/24x24/Mobile.tsx +2 -2
- package/src/Components/Icons/24x24/MonitorChart.tsx +2 -2
- package/src/Components/Icons/24x24/MoreHorizontal.tsx +2 -2
- package/src/Components/Icons/24x24/MoreVertical.tsx +2 -2
- package/src/Components/Icons/24x24/News.tsx +2 -2
- package/src/Components/Icons/24x24/NoTie.tsx +2 -2
- package/src/Components/Icons/24x24/Nodejs.tsx +2 -2
- package/src/Components/Icons/24x24/Numero.tsx +2 -2
- package/src/Components/Icons/24x24/OpenInBrowser.tsx +2 -2
- package/src/Components/Icons/24x24/Other.tsx +3 -3
- package/src/Components/Icons/24x24/OverflowingLines.tsx +3 -3
- package/src/Components/Icons/24x24/Overview.tsx +2 -2
- package/src/Components/Icons/24x24/Owner.tsx +2 -2
- package/src/Components/Icons/24x24/Pause.tsx +2 -2
- package/src/Components/Icons/24x24/Pencil.tsx +2 -2
- package/src/Components/Icons/24x24/Percent.tsx +2 -2
- package/src/Components/Icons/24x24/Person.tsx +2 -2
- package/src/Components/Icons/24x24/Play.tsx +2 -2
- package/src/Components/Icons/24x24/PlusAdd.tsx +2 -2
- package/src/Components/Icons/24x24/PlusOpen.tsx +2 -2
- package/src/Components/Icons/24x24/Podcast.tsx +2 -2
- package/src/Components/Icons/24x24/Power.tsx +1 -1
- package/src/Components/Icons/24x24/ProgressEggplant.tsx +5 -5
- package/src/Components/Icons/24x24/ProgressViolet.tsx +5 -5
- package/src/Components/Icons/24x24/ProgressWhite.tsx +5 -5
- package/src/Components/Icons/24x24/Pull.tsx +2 -2
- package/src/Components/Icons/24x24/Push.tsx +3 -3
- package/src/Components/Icons/24x24/ReactIcon.tsx +2 -2
- package/src/Components/Icons/24x24/Refresh.tsx +1 -1
- package/src/Components/Icons/24x24/Release.tsx +2 -2
- package/src/Components/Icons/24x24/ReleaseSolid.tsx +2 -2
- package/src/Components/Icons/24x24/Replace.tsx +2 -2
- package/src/Components/Icons/24x24/Request.tsx +1 -1
- package/src/Components/Icons/24x24/Responsiveness.tsx +1 -1
- package/src/Components/Icons/24x24/Save.tsx +2 -2
- package/src/Components/Icons/24x24/Screenshare.tsx +2 -2
- package/src/Components/Icons/24x24/SecurityShield.tsx +2 -2
- package/src/Components/Icons/24x24/Settings.tsx +2 -2
- package/src/Components/Icons/24x24/SettingsSolid.tsx +2 -2
- package/src/Components/Icons/24x24/Ship.tsx +2 -2
- package/src/Components/Icons/24x24/ShowPassword.tsx +2 -2
- package/src/Components/Icons/24x24/Shuffle.tsx +2 -2
- package/src/Components/Icons/24x24/Siren.tsx +1 -1
- package/src/Components/Icons/24x24/Sort.tsx +2 -2
- package/src/Components/Icons/24x24/SortArrows.tsx +2 -2
- package/src/Components/Icons/24x24/Stability.tsx +2 -2
- package/src/Components/Icons/24x24/Stack.tsx +2 -2
- package/src/Components/Icons/24x24/StageCurrent.tsx +2 -2
- package/src/Components/Icons/24x24/StageIncomplete.tsx +2 -2
- package/src/Components/Icons/24x24/Star.tsx +2 -2
- package/src/Components/Icons/24x24/Status.tsx +3 -3
- package/src/Components/Icons/24x24/StepUpgrade.tsx +2 -2
- package/src/Components/Icons/24x24/StepVersionOk.tsx +2 -2
- package/src/Components/Icons/24x24/Steps.tsx +2 -2
- package/src/Components/Icons/24x24/StepsTuorqouise.tsx +6 -6
- package/src/Components/Icons/24x24/StepsViolet.tsx +6 -6
- package/src/Components/Icons/24x24/StepsWhite.tsx +6 -6
- package/src/Components/Icons/24x24/StepstatusSkip.tsx +2 -2
- package/src/Components/Icons/24x24/StepstatusWarning.tsx +2 -2
- package/src/Components/Icons/24x24/Stopwatch.tsx +2 -2
- package/src/Components/Icons/24x24/Support.tsx +2 -2
- package/src/Components/Icons/24x24/Swag.tsx +1 -1
- package/src/Components/Icons/24x24/Tag.tsx +2 -2
- package/src/Components/Icons/24x24/TestFailed.tsx +2 -2
- package/src/Components/Icons/24x24/TestInconclusive.tsx +2 -2
- package/src/Components/Icons/24x24/TestInfo.tsx +2 -2
- package/src/Components/Icons/24x24/TestInprogress.tsx +2 -2
- package/src/Components/Icons/24x24/TestSkipped.tsx +2 -2
- package/src/Components/Icons/24x24/TestSuccess.tsx +2 -2
- package/src/Components/Icons/24x24/TestWarning.tsx +2 -2
- package/src/Components/Icons/24x24/Testing.tsx +2 -2
- package/src/Components/Icons/24x24/Tick.tsx +2 -2
- package/src/Components/Icons/24x24/Time.tsx +2 -2
- package/src/Components/Icons/24x24/Tools.tsx +1 -1
- package/src/Components/Icons/24x24/Trace.tsx +1 -1
- package/src/Components/Icons/24x24/Trash.tsx +2 -2
- package/src/Components/Icons/24x24/Trigger.tsx +2 -2
- package/src/Components/Icons/24x24/Twitter.tsx +2 -2
- package/src/Components/Icons/24x24/Upload.tsx +1 -1
- package/src/Components/Icons/24x24/ValidateShield.tsx +2 -2
- package/src/Components/Icons/24x24/Video.tsx +3 -3
- package/src/Components/Icons/24x24/Warning.tsx +2 -2
- package/src/Components/Icons/24x24/WarningColored.tsx +2 -2
- package/src/Components/Icons/24x24/WebUi.tsx +2 -2
- package/src/Components/Icons/24x24/Webhooks.tsx +1 -1
- package/src/Components/Icons/24x24/Webinar.tsx +2 -2
- package/src/Components/Icons/24x24/Window.tsx +2 -2
- package/src/Components/Icons/24x24/Workflow.tsx +2 -2
- package/src/Components/Icons/24x24/WorkflowFlow.tsx +2 -2
- package/src/Components/Icons/24x24/Wow.tsx +2 -2
- package/src/Components/Icons/24x24/WrappedLines.tsx +3 -3
- package/src/Components/Icons/24x24/Xamarin.tsx +2 -2
- package/src/Components/Image/Image.tsx +1 -1
- package/src/Components/LightBox/LightBox.tsx +3 -3
- package/src/Components/Link/Link.theme.ts +4 -4
- package/src/Components/Link/Link.tsx +1 -1
- package/src/Components/LinkBox/LinkBox.tsx +1 -1
- package/src/Components/LinkOverlay/LinkOverlay.tsx +1 -1
- package/src/Components/List/List.theme.ts +1 -1
- package/src/Components/List/List.tsx +1 -1
- package/src/Components/List/ListItem.tsx +1 -1
- package/src/Components/Menu/Menu.theme.ts +27 -27
- package/src/Components/Menu/MenuButton.tsx +1 -1
- package/src/Components/Menu/MenuItem.tsx +6 -6
- package/src/Components/Menu/MenuList.tsx +1 -1
- package/src/Components/Note/Note.theme.ts +47 -47
- package/src/Components/Note/Note.tsx +3 -3
- package/src/Components/Note/NoteMarkdownContent.tsx +17 -17
- package/src/Components/Notification/Notification.tsx +10 -10
- package/src/Components/NumberInput/NumberInput.theme.ts +14 -14
- package/src/Components/Popover/Popover.theme.ts +3 -3
- package/src/Components/Popover/Popover.tsx +1 -1
- package/src/Components/Popover/PopoverArrow.tsx +1 -1
- package/src/Components/ProgressBitbot/ProgressBitbot.tsx +2 -2
- package/src/Components/ProgressIndicator/ProgressIndicator.theme.ts +24 -24
- package/src/Components/ProgressIndicator/ProgressIndicator.tsx +13 -13
- package/src/Components/ProgressSpinner/ProgressSpinner.tsx +2 -2
- package/src/Components/Provider/Provider.tsx +1 -1
- package/src/Components/Ribbon/Ribbon.tsx +10 -10
- package/src/Components/SearchInput/SearchInput.tsx +2 -2
- package/src/Components/SegmentedControl/SegmentedControl.theme.ts +26 -26
- package/src/Components/SegmentedControl/SegmentedControl.tsx +3 -3
- package/src/Components/SegmentedControl/SegmentedControlItem.tsx +1 -1
- package/src/Components/Select/Select.theme.ts +20 -20
- package/src/Components/Select/Select.tsx +7 -7
- package/src/Components/Sidebar/Sidebar.tsx +6 -6
- package/src/Components/Sidebar/SidebarItem.theme.ts +30 -30
- package/src/Components/Sidebar/SidebarItem.tsx +11 -11
- package/src/Components/Skeleton/Skeleton.theme.ts +9 -9
- package/src/Components/Skeleton/Skeleton.tsx +3 -3
- package/src/Components/Slider/Slider.theme.ts +27 -27
- package/src/Components/Table/CheckableRow.tsx +3 -3
- package/src/Components/Table/SelectableRow.tsx +3 -3
- package/src/Components/Table/Table.theme.ts +63 -61
- package/src/Components/Table/Table.tsx +2 -2
- package/src/Components/Table/TableCaption.tsx +2 -2
- package/src/Components/Table/TableContainer.tsx +1 -1
- package/src/Components/Table/TableIconButton.tsx +5 -5
- package/src/Components/Table/TablePagination.tsx +16 -16
- package/src/Components/Table/Tbody.tsx +1 -1
- package/src/Components/Table/Td.tsx +1 -1
- package/src/Components/Table/Th.tsx +4 -4
- package/src/Components/Table/Thead.tsx +1 -1
- package/src/Components/Table/Tr.tsx +6 -6
- package/src/Components/Tabs/ContainedTab.tsx +1 -1
- package/src/Components/Tabs/Tab.tsx +1 -1
- package/src/Components/Tabs/TabList.tsx +1 -1
- package/src/Components/Tabs/TabPanel.tsx +1 -1
- package/src/Components/Tabs/TabPanels.tsx +1 -1
- package/src/Components/Tabs/Tabs.theme.ts +56 -56
- package/src/Components/Tabs/Tabs.tsx +2 -2
- package/src/Components/Tag/Tag.theme.ts +41 -41
- package/src/Components/Tag/Tag.tsx +2 -2
- package/src/Components/Text/Text.tsx +2 -2
- package/src/Components/Toast/Toast.tsx +4 -4
- package/src/Components/Toggle/Toggle.theme.ts +57 -57
- package/src/Components/Toggle/Toggle.tsx +2 -2
- package/src/Components/Toggletip/Toggletip.theme.ts +2 -2
- package/src/Components/Toggletip/Toggletip.tsx +3 -3
- package/src/Components/Tooltip/Tooltip.theme.ts +2 -2
- package/src/Components/Tooltip/Tooltip.tsx +5 -5
- package/src/Foundations/Breakpoints/Breakpoints.ts +1 -1
- package/src/Foundations/Colors/Colors.tsx +2 -2
- package/src/Foundations/Colors/CommonTokens.tsx +2 -2
- package/src/Foundations/Colors/SystemTokens.tsx +2 -2
- package/src/Foundations/Icons/figmaIcons.ts +239 -239
- package/src/Foundations/Shadows/Shadows.ts +5 -5
- package/src/Foundations/Themes/Alert.theme.ts +12 -12
- package/src/Foundations/Typography/Typography.ts +2 -2
- package/src/Foundations/Zindex/Zindex.ts +5 -5
- package/src/Foundations/docComponents/TokenTable.tsx +1 -1
- package/src/hooks/useResponsive.ts +1 -1
- package/src/theme.ts +54 -54
- package/src/tokens/tokens.ts +4 -4
- package/src/utils/utils.ts +1 -1
|
@@ -7,53 +7,53 @@ const ProgressIndicatorTheme = itemHelpers.defineMultiStyleConfig({
|
|
|
7
7
|
container: {
|
|
8
8
|
display: 'flex',
|
|
9
9
|
},
|
|
10
|
-
stage: {
|
|
11
|
-
display: 'flex',
|
|
12
|
-
gap: '1rem',
|
|
13
|
-
},
|
|
14
10
|
iconWithLine: {
|
|
15
11
|
display: 'flex',
|
|
16
12
|
},
|
|
13
|
+
label: {
|
|
14
|
+
alignSelf: 'flex-start',
|
|
15
|
+
lineHeight: '1.5rem',
|
|
16
|
+
maxWidth: 'max(8rem, calc(100% - 1rem))',
|
|
17
|
+
overflow: 'hidden',
|
|
18
|
+
textOverflow: 'ellipsis',
|
|
19
|
+
whiteSpace: 'nowrap',
|
|
20
|
+
},
|
|
17
21
|
line: {
|
|
18
22
|
flexGrow: '1',
|
|
19
23
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
overflow: 'hidden',
|
|
24
|
-
maxWidth: 'max(8rem, calc(100% - 1rem))',
|
|
25
|
-
lineHeight: '1.5rem',
|
|
26
|
-
alignSelf: 'flex-start',
|
|
24
|
+
stage: {
|
|
25
|
+
display: 'flex',
|
|
26
|
+
gap: '1rem',
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
variants: {
|
|
30
|
-
|
|
30
|
+
horizontal: {
|
|
31
31
|
container: {
|
|
32
|
-
flexDir: 'column',
|
|
33
|
-
},
|
|
34
|
-
stage: {
|
|
35
32
|
flexDir: 'row',
|
|
36
33
|
},
|
|
37
34
|
iconWithLine: {
|
|
38
|
-
flexDir: '
|
|
35
|
+
flexDir: 'row',
|
|
39
36
|
},
|
|
40
37
|
line: {
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
marginY: 'calc(.75rem - 1px)',
|
|
39
|
+
},
|
|
40
|
+
stage: {
|
|
41
|
+
flexDir: 'column',
|
|
43
42
|
},
|
|
44
43
|
},
|
|
45
|
-
|
|
44
|
+
vertical: {
|
|
46
45
|
container: {
|
|
47
|
-
flexDir: 'row',
|
|
48
|
-
},
|
|
49
|
-
stage: {
|
|
50
46
|
flexDir: 'column',
|
|
51
47
|
},
|
|
52
48
|
iconWithLine: {
|
|
53
|
-
flexDir: '
|
|
49
|
+
flexDir: 'column',
|
|
54
50
|
},
|
|
55
51
|
line: {
|
|
56
|
-
|
|
52
|
+
height: '1.5rem',
|
|
53
|
+
marginX: 'calc(.75rem - 1px)',
|
|
54
|
+
},
|
|
55
|
+
stage: {
|
|
56
|
+
flexDir: 'row',
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
},
|
|
@@ -21,12 +21,12 @@ export type ProgressIndicatorProps = {
|
|
|
21
21
|
variant: 'horizontal' | 'vertical';
|
|
22
22
|
};
|
|
23
23
|
|
|
24
|
-
const ProgressIndicator = ({
|
|
24
|
+
const ProgressIndicator = ({ activeStageIndex, stages, variant }: ProgressIndicatorProps): JSX.Element => {
|
|
25
25
|
const style = useMultiStyleConfig('ProgressIndicator', { variant });
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
28
|
<Box sx={style.container}>
|
|
29
|
-
{stages.map(({
|
|
29
|
+
{stages.map(({ action, isDisabled, isInvalid, label }, index, array) => {
|
|
30
30
|
let iconName: IconProps['name'];
|
|
31
31
|
let iconColor: IconProps['color'] = 'purple.50';
|
|
32
32
|
|
|
@@ -61,37 +61,37 @@ const ProgressIndicator = ({ stages, activeStageIndex, variant }: ProgressIndica
|
|
|
61
61
|
|
|
62
62
|
return (
|
|
63
63
|
<Box
|
|
64
|
-
sx={style.stage}
|
|
65
|
-
flexGrow={lastBlock ? undefined : '1'}
|
|
66
|
-
flexBasis={lastBlock ? undefined : `${100 / array.length}%`}
|
|
67
64
|
// eslint-disable-next-line react/no-array-index-key
|
|
68
65
|
key={index}
|
|
66
|
+
flexBasis={lastBlock ? undefined : `${100 / array.length}%`}
|
|
67
|
+
flexGrow={lastBlock ? undefined : '1'}
|
|
68
|
+
sx={style.stage}
|
|
69
69
|
>
|
|
70
70
|
<Box sx={style.iconWithLine}>
|
|
71
|
-
<Icon
|
|
71
|
+
<Icon color={iconColor} name={iconName} />
|
|
72
72
|
{!lastBlock && (
|
|
73
73
|
<Divider
|
|
74
|
-
sx={style.line}
|
|
75
|
-
size="2"
|
|
76
74
|
orientation={variant === 'horizontal' ? 'horizontal' : 'vertical'}
|
|
75
|
+
size="2"
|
|
76
|
+
sx={style.line}
|
|
77
77
|
{...dividerProps}
|
|
78
78
|
/>
|
|
79
79
|
)}
|
|
80
80
|
</Box>
|
|
81
81
|
{action && !isDisabled ? (
|
|
82
82
|
<Link
|
|
83
|
-
sx={style.label}
|
|
84
|
-
size="2"
|
|
85
|
-
colorScheme="purple"
|
|
86
83
|
as={action.href ? 'a' : 'button'}
|
|
84
|
+
colorScheme="purple"
|
|
87
85
|
href={action.href}
|
|
88
|
-
onClick={action.onClick}
|
|
89
86
|
isExternal={action.isExternal}
|
|
87
|
+
onClick={action.onClick}
|
|
88
|
+
size="2"
|
|
89
|
+
sx={style.label}
|
|
90
90
|
>
|
|
91
91
|
{label}
|
|
92
92
|
</Link>
|
|
93
93
|
) : (
|
|
94
|
-
<Text
|
|
94
|
+
<Text color={isDisabled ? 'neutral.80' : 'neutral.10'} size="2" sx={style.label}>
|
|
95
95
|
{label}
|
|
96
96
|
</Text>
|
|
97
97
|
)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Spinner as ChakraSpinner, SpinnerProps
|
|
1
|
+
import { forwardRef, Spinner as ChakraSpinner, SpinnerProps } from '@chakra-ui/react';
|
|
2
2
|
|
|
3
3
|
export interface ProgressSpinnerProps extends Omit<SpinnerProps, 'size'> {
|
|
4
4
|
size?: SpinnerProps['width'];
|
|
@@ -9,7 +9,7 @@ export interface ProgressSpinnerProps extends Omit<SpinnerProps, 'size'> {
|
|
|
9
9
|
*/
|
|
10
10
|
const Progresspinner = forwardRef<ProgressSpinnerProps, 'div'>((props, ref) => {
|
|
11
11
|
const { size = '24', ...rest } = props;
|
|
12
|
-
return <ChakraSpinner
|
|
12
|
+
return <ChakraSpinner height={size} width={size} {...rest} ref={ref} />;
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
export default Progresspinner;
|
|
@@ -18,8 +18,8 @@ const Provider = ({ children, toastOptions }: ProviderProps) => {
|
|
|
18
18
|
toastOptions={{
|
|
19
19
|
defaultOptions: {
|
|
20
20
|
containerStyle: {
|
|
21
|
-
transform: toastOptions?.offsetTop && `translateY(${toastOptions.offsetTop})`,
|
|
22
21
|
marginRight: toastOptions?.offsetRight,
|
|
22
|
+
transform: toastOptions?.offsetTop && `translateY(${toastOptions.offsetTop})`,
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
portalProps: {
|
|
@@ -22,15 +22,15 @@ const ActionContext = createContext<{
|
|
|
22
22
|
colorScheme: ColorButtonProps['colorScheme'];
|
|
23
23
|
}>({ colorScheme: 'blue' });
|
|
24
24
|
|
|
25
|
-
const RibbonAction = ({
|
|
25
|
+
const RibbonAction = ({ href, label, ...rest }: ActionProps) => {
|
|
26
26
|
const actionContext = useContext(ActionContext);
|
|
27
27
|
return (
|
|
28
28
|
<ColorButton
|
|
29
|
+
as={(href ? 'a' : 'button') as any}
|
|
29
30
|
flexGrow={0}
|
|
30
31
|
flexShrink={0}
|
|
31
|
-
as={(href ? 'a' : 'button') as any}
|
|
32
|
-
marginY={-4}
|
|
33
32
|
href={href}
|
|
33
|
+
marginY={-4}
|
|
34
34
|
{...actionContext}
|
|
35
35
|
{...rest}
|
|
36
36
|
>
|
|
@@ -40,7 +40,7 @@ const RibbonAction = ({ label, href, ...rest }: ActionProps) => {
|
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
const Ribbon = forwardRef<RibbonProps, 'div'>((props, ref) => {
|
|
43
|
-
const { action, children,
|
|
43
|
+
const { action, children, colorScheme, onClose, ...rest } = props;
|
|
44
44
|
const actionContext = useMemo(() => ({ colorScheme }), [colorScheme]);
|
|
45
45
|
let actionButton;
|
|
46
46
|
if (action) {
|
|
@@ -50,22 +50,22 @@ const Ribbon = forwardRef<RibbonProps, 'div'>((props, ref) => {
|
|
|
50
50
|
return (
|
|
51
51
|
<ChakraAlert
|
|
52
52
|
ref={ref}
|
|
53
|
-
colorScheme={colorScheme}
|
|
54
|
-
justifyContent="center"
|
|
55
53
|
alignItems="center"
|
|
56
|
-
gap={16}
|
|
57
|
-
borderRadius={0}
|
|
58
54
|
borderLeftWidth={0}
|
|
55
|
+
borderRadius={0}
|
|
59
56
|
borderRightWidth={0}
|
|
57
|
+
colorScheme={colorScheme}
|
|
58
|
+
gap={16}
|
|
59
|
+
justifyContent="center"
|
|
60
60
|
{...rest}
|
|
61
61
|
>
|
|
62
62
|
<ActionContext.Provider value={actionContext}>
|
|
63
|
-
{onClose && <Box display={['none', 'block']}
|
|
63
|
+
{onClose && <Box display={['none', 'block']} height={24} marginEnd="auto" width={24} />}
|
|
64
64
|
<Box display="flex" flexDirection={['column', 'row']} gap={['12', '16']}>
|
|
65
65
|
{children}
|
|
66
66
|
{actionButton}
|
|
67
67
|
</Box>
|
|
68
|
-
{onClose && <CloseButton
|
|
68
|
+
{onClose && <CloseButton colorScheme={colorScheme} flexShrink={0} marginStart="auto" onClick={onClose} />}
|
|
69
69
|
</ActionContext.Provider>
|
|
70
70
|
</ChakraAlert>
|
|
71
71
|
);
|
|
@@ -20,12 +20,12 @@ const SearchInput = (props: SearchInputProps) => {
|
|
|
20
20
|
|
|
21
21
|
const rightButton = (
|
|
22
22
|
<IconButton
|
|
23
|
+
_active={{ background: 'transparent' }}
|
|
24
|
+
_hover={{ background: 'transparent' }}
|
|
23
25
|
aria-label="Clear"
|
|
24
26
|
iconName="CloseSmall"
|
|
25
27
|
onClick={onClearClick}
|
|
26
28
|
variant="tertiary"
|
|
27
|
-
_active={{ background: 'transparent' }}
|
|
28
|
-
_hover={{ background: 'transparent' }}
|
|
29
29
|
/>
|
|
30
30
|
);
|
|
31
31
|
const inputProps: InputProps = {
|
|
@@ -5,55 +5,55 @@ const itemHelpers = createMultiStyleConfigHelpers(['container', 'item']);
|
|
|
5
5
|
const SegmentedControlTheme = itemHelpers.defineMultiStyleConfig({
|
|
6
6
|
baseStyle: {
|
|
7
7
|
container: {
|
|
8
|
-
display: 'flex',
|
|
9
|
-
width: '100%',
|
|
10
8
|
backgroundColor: 'neutral.95',
|
|
11
|
-
gap: '4',
|
|
12
9
|
borderRadius: '8',
|
|
10
|
+
display: 'flex',
|
|
11
|
+
gap: '4',
|
|
13
12
|
padding: '4',
|
|
13
|
+
width: '100%',
|
|
14
14
|
},
|
|
15
15
|
item: {
|
|
16
|
-
flexGrow: 1,
|
|
17
|
-
paddingX: '0.375rem',
|
|
18
|
-
cursor: 'pointer',
|
|
19
|
-
fontSize: '3',
|
|
20
|
-
lineHeight: '2.375rem',
|
|
21
|
-
color: 'neutral.40',
|
|
22
|
-
textAlign: 'center',
|
|
23
|
-
fontWeight: 'demiBold',
|
|
24
|
-
border: '1px solid',
|
|
25
|
-
borderColor: 'transparent',
|
|
26
|
-
borderRadius: '4',
|
|
27
16
|
_checked: {
|
|
28
|
-
color: 'purple.10',
|
|
29
|
-
backgroundColor: 'neutral.100',
|
|
30
|
-
borderColor: 'separator.primary',
|
|
31
17
|
_hover: {
|
|
32
|
-
backgroundColor: 'neutral.100',
|
|
33
|
-
borderColor: 'separator.primary',
|
|
34
18
|
_disabled: {
|
|
35
19
|
backgroundColor: 'neutral.100',
|
|
36
20
|
borderColor: 'separator.primary',
|
|
37
21
|
},
|
|
22
|
+
backgroundColor: 'neutral.100',
|
|
23
|
+
borderColor: 'separator.primary',
|
|
38
24
|
},
|
|
25
|
+
backgroundColor: 'neutral.100',
|
|
26
|
+
borderColor: 'separator.primary',
|
|
27
|
+
color: 'purple.10',
|
|
28
|
+
},
|
|
29
|
+
_disabled: {
|
|
30
|
+
color: 'neutral.70',
|
|
31
|
+
cursor: 'not-allowed',
|
|
39
32
|
},
|
|
40
33
|
_focus: {
|
|
41
34
|
boxShadow: 'outline',
|
|
42
35
|
},
|
|
43
36
|
_hover: {
|
|
44
|
-
backgroundColor: 'neutral.93',
|
|
45
|
-
borderColor: 'neutral.93',
|
|
46
|
-
color: 'neutral.10',
|
|
47
37
|
_disabled: {
|
|
48
38
|
backgroundColor: 'transparent',
|
|
49
39
|
borderColor: 'transparent',
|
|
50
40
|
color: 'neutral.70',
|
|
51
41
|
},
|
|
42
|
+
backgroundColor: 'neutral.93',
|
|
43
|
+
borderColor: 'neutral.93',
|
|
44
|
+
color: 'neutral.10',
|
|
52
45
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
46
|
+
border: '1px solid',
|
|
47
|
+
borderColor: 'transparent',
|
|
48
|
+
borderRadius: '4',
|
|
49
|
+
color: 'neutral.40',
|
|
50
|
+
cursor: 'pointer',
|
|
51
|
+
flexGrow: 1,
|
|
52
|
+
fontSize: '3',
|
|
53
|
+
fontWeight: 'demiBold',
|
|
54
|
+
lineHeight: '2.375rem',
|
|
55
|
+
paddingX: '0.375rem',
|
|
56
|
+
textAlign: 'center',
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
59
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { useMultiStyleConfig, useRadioGroup, UseRadioGroupProps
|
|
2
|
+
import { forwardRef, useMultiStyleConfig, useRadioGroup, UseRadioGroupProps } from '@chakra-ui/react';
|
|
3
3
|
import Box, { BoxProps } from '../Box/Box';
|
|
4
4
|
import { SegmentedControlContext, SegmentedControlContextType } from './SegmentedControl.context';
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@ export type SegmentedControlProps = Omit<BoxProps, 'onChange'> & UseRadioGroupPr
|
|
|
11
11
|
const SegmentedControl = forwardRef<SegmentedControlProps, 'div'>((props, ref) => {
|
|
12
12
|
const { defaultValue, isDisabled, name, onChange, value, ...rest } = props;
|
|
13
13
|
|
|
14
|
-
const {
|
|
14
|
+
const { getRadioProps, getRootProps } = useRadioGroup({
|
|
15
15
|
defaultValue,
|
|
16
16
|
isDisabled,
|
|
17
17
|
name,
|
|
@@ -33,7 +33,7 @@ const SegmentedControl = forwardRef<SegmentedControlProps, 'div'>((props, ref) =
|
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<SegmentedControlContext value={ctx}>
|
|
36
|
-
<Box __css={theme.container}
|
|
36
|
+
<Box ref={ref} __css={theme.container} {...group} {...rest} />
|
|
37
37
|
</SegmentedControlContext>
|
|
38
38
|
);
|
|
39
39
|
});
|
|
@@ -24,7 +24,7 @@ const SegmentedControlItem = (props: SegmentedControlItemProps) => {
|
|
|
24
24
|
delete radioProps['aria-hidden'];
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
|
-
<Box
|
|
27
|
+
<Box __css={theme.item} as="label" {...radioProps}>
|
|
28
28
|
<input {...getInputProps()} />
|
|
29
29
|
{children}
|
|
30
30
|
</Box>
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
const SelectTheme = {
|
|
2
2
|
baseStyle: {
|
|
3
3
|
field: {
|
|
4
|
-
appearance: 'none',
|
|
5
|
-
bgGradient: 'linear(to-b, neutral.100, neutral.93)',
|
|
6
|
-
border: '0.0625rem solid',
|
|
7
|
-
borderColor: 'neutral.90',
|
|
8
|
-
borderRadius: '4',
|
|
9
|
-
color: 'purple.10',
|
|
10
|
-
position: 'relative',
|
|
11
|
-
width: '100%',
|
|
12
|
-
_hover: {
|
|
13
|
-
bgGradient: 'linear(to-b, neutral.93, neutral.93)',
|
|
14
|
-
},
|
|
15
4
|
_active: {
|
|
16
5
|
bgGradient: 'linear(to-b, neutral.90, neutral.90)',
|
|
17
6
|
borderColor: 'neutral.80',
|
|
@@ -20,23 +9,26 @@ const SelectTheme = {
|
|
|
20
9
|
color: 'neutral.70',
|
|
21
10
|
pointerEvents: 'none',
|
|
22
11
|
},
|
|
12
|
+
_hover: {
|
|
13
|
+
bgGradient: 'linear(to-b, neutral.93, neutral.93)',
|
|
14
|
+
},
|
|
15
|
+
appearance: 'none',
|
|
16
|
+
bgGradient: 'linear(to-b, neutral.100, neutral.93)',
|
|
17
|
+
border: '0.0625rem solid',
|
|
18
|
+
borderColor: 'neutral.90',
|
|
19
|
+
borderRadius: '4',
|
|
20
|
+
color: 'purple.10',
|
|
21
|
+
position: 'relative',
|
|
22
|
+
width: '100%',
|
|
23
23
|
},
|
|
24
24
|
icon: {
|
|
25
|
-
right: '8',
|
|
26
25
|
_disabled: {
|
|
27
26
|
opacity: '0.2',
|
|
28
27
|
},
|
|
28
|
+
right: '8',
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
31
|
sizes: {
|
|
32
|
-
small: {
|
|
33
|
-
field: {
|
|
34
|
-
fontSize: '2',
|
|
35
|
-
height: '32',
|
|
36
|
-
paddingLeft: '12',
|
|
37
|
-
paddingRight: '32',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
32
|
medium: {
|
|
41
33
|
field: {
|
|
42
34
|
fontSize: '3',
|
|
@@ -45,6 +37,14 @@ const SelectTheme = {
|
|
|
45
37
|
paddingRight: '32',
|
|
46
38
|
},
|
|
47
39
|
},
|
|
40
|
+
small: {
|
|
41
|
+
field: {
|
|
42
|
+
fontSize: '2',
|
|
43
|
+
height: '32',
|
|
44
|
+
paddingLeft: '12',
|
|
45
|
+
paddingRight: '32',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
48
|
},
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -31,6 +31,7 @@ const Select = forwardRef<SelectProps, 'div'>((props, ref) => {
|
|
|
31
31
|
const {
|
|
32
32
|
children,
|
|
33
33
|
'data-testid': dataTestid,
|
|
34
|
+
defaultValue,
|
|
34
35
|
errorText,
|
|
35
36
|
helperText,
|
|
36
37
|
isDisabled,
|
|
@@ -43,7 +44,6 @@ const Select = forwardRef<SelectProps, 'div'>((props, ref) => {
|
|
|
43
44
|
placeholder,
|
|
44
45
|
size,
|
|
45
46
|
value,
|
|
46
|
-
defaultValue,
|
|
47
47
|
...rest
|
|
48
48
|
} = props;
|
|
49
49
|
const iconSize = size === 'medium' ? '24' : '16';
|
|
@@ -53,17 +53,17 @@ const Select = forwardRef<SelectProps, 'div'>((props, ref) => {
|
|
|
53
53
|
...rest,
|
|
54
54
|
};
|
|
55
55
|
const selectProperties: ChakraSelectProps = {
|
|
56
|
+
defaultValue,
|
|
56
57
|
icon: isLoading ? (
|
|
57
|
-
<ProgressSpinner size={iconSize}
|
|
58
|
+
<ProgressSpinner marginEnd="4" size={iconSize} />
|
|
58
59
|
) : (
|
|
59
|
-
<Icon name="DropdownArrows"
|
|
60
|
+
<Icon fontSize={iconSize} name="DropdownArrows" size={iconSize} />
|
|
60
61
|
),
|
|
61
62
|
name,
|
|
62
63
|
onBlur,
|
|
63
64
|
onChange,
|
|
64
65
|
size,
|
|
65
66
|
value,
|
|
66
|
-
defaultValue,
|
|
67
67
|
variant: 'select',
|
|
68
68
|
};
|
|
69
69
|
if (placeholder) {
|
|
@@ -78,17 +78,17 @@ const Select = forwardRef<SelectProps, 'div'>((props, ref) => {
|
|
|
78
78
|
<FormControl {...formControlProps}>
|
|
79
79
|
{label && (
|
|
80
80
|
<FormLabel
|
|
81
|
-
requiredIndicator={null as any}
|
|
82
81
|
optionalIndicator={
|
|
83
|
-
<Text as="span"
|
|
82
|
+
<Text as="span" color="neutral.40" fontSize="2" fontWeight="normal" marginLeft="4px">
|
|
84
83
|
(Optional)
|
|
85
84
|
</Text>
|
|
86
85
|
}
|
|
86
|
+
requiredIndicator={null as any}
|
|
87
87
|
>
|
|
88
88
|
{label}
|
|
89
89
|
</FormLabel>
|
|
90
90
|
)}
|
|
91
|
-
<ChakraSelect data-testid={dataTestid}
|
|
91
|
+
<ChakraSelect ref={ref} data-testid={dataTestid} {...selectProperties}>
|
|
92
92
|
{placeholder && (
|
|
93
93
|
<option disabled value="">
|
|
94
94
|
{placeholder}
|
|
@@ -17,7 +17,7 @@ const SidebarHeader = ({ title }: { title?: string }) => {
|
|
|
17
17
|
return <Box h="24" w="100%" />;
|
|
18
18
|
}
|
|
19
19
|
return (
|
|
20
|
-
<Text
|
|
20
|
+
<Text fontWeight="bold" px="32" py="1.375rem" size={['6', '4']}>
|
|
21
21
|
{title}
|
|
22
22
|
</Text>
|
|
23
23
|
);
|
|
@@ -33,11 +33,11 @@ const SidebarDivider = () => {
|
|
|
33
33
|
|
|
34
34
|
const SidebarGroupHeader = ({ label }: { label: string }) => {
|
|
35
35
|
return (
|
|
36
|
-
<Box
|
|
37
|
-
<Text
|
|
36
|
+
<Box alignItems="center" display="flex" gap="16" marginBottom="12" marginTop="24" mx="32">
|
|
37
|
+
<Text fontWeight="bold" size="1" textColor="neutral.60">
|
|
38
38
|
{label}
|
|
39
39
|
</Text>
|
|
40
|
-
<Divider
|
|
40
|
+
<Divider flexGrow="1" w="auto" />
|
|
41
41
|
</Box>
|
|
42
42
|
);
|
|
43
43
|
};
|
|
@@ -71,8 +71,8 @@ const Sidebar = ({ children, title, ...boxProps }: SidebarProps) => {
|
|
|
71
71
|
|
|
72
72
|
const SidebarButton = ({ onClick, title }: Pick<BoxProps, 'onClick'> & { title: string }) => {
|
|
73
73
|
return (
|
|
74
|
-
<Box
|
|
75
|
-
<Icon
|
|
74
|
+
<Box alignItems="center" as="button" display="flex" gap="4" h="56" onClick={onClick} paddingLeft="16">
|
|
75
|
+
<Icon name="ChevronLeft" size="24" />
|
|
76
76
|
<Text as="span" lineHeight="var(--space-24)">
|
|
77
77
|
{title}
|
|
78
78
|
</Text>
|
|
@@ -4,58 +4,58 @@ const itemHelpers = createMultiStyleConfigHelpers(['icon', 'link']);
|
|
|
4
4
|
|
|
5
5
|
const SidebarItemTheme = itemHelpers.defineMultiStyleConfig({
|
|
6
6
|
baseStyle: {
|
|
7
|
+
icon: {
|
|
8
|
+
marginLeft: '32',
|
|
9
|
+
marginRight: '16',
|
|
10
|
+
},
|
|
7
11
|
link: {
|
|
8
|
-
userSelect: 'none',
|
|
9
|
-
color: 'purple.10',
|
|
10
|
-
display: 'flex',
|
|
11
|
-
flexShrink: '0',
|
|
12
|
-
alignItems: 'center',
|
|
13
|
-
_hover: {
|
|
14
|
-
bg: 'neutral.95',
|
|
15
|
-
},
|
|
16
12
|
_active: {
|
|
17
13
|
bg: 'neutral.93',
|
|
18
14
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
_hover: {
|
|
16
|
+
bg: 'neutral.95',
|
|
17
|
+
},
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
color: 'purple.10',
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexShrink: '0',
|
|
22
|
+
userSelect: 'none',
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
25
|
variants: {
|
|
26
26
|
disabled: {
|
|
27
27
|
link: {
|
|
28
|
-
color: 'neutral.80',
|
|
29
|
-
_hover: { bg: 'unset' },
|
|
30
28
|
_active: { bg: 'unset' },
|
|
29
|
+
_hover: { bg: 'unset' },
|
|
30
|
+
color: 'neutral.80',
|
|
31
31
|
cursor: 'not-allowed',
|
|
32
32
|
},
|
|
33
33
|
},
|
|
34
34
|
selected: {
|
|
35
|
+
icon: {
|
|
36
|
+
color: 'purple.50',
|
|
37
|
+
},
|
|
35
38
|
link: {
|
|
36
|
-
fontWeight: 'demiBold',
|
|
37
|
-
bg: 'purple.95',
|
|
38
|
-
_hover: {
|
|
39
|
-
bg: 'purple.93',
|
|
40
|
-
},
|
|
41
|
-
_active: {
|
|
42
|
-
bg: 'purple.93',
|
|
43
|
-
},
|
|
44
39
|
'&::after': {
|
|
45
|
-
|
|
40
|
+
background: 'purple.50',
|
|
41
|
+
borderRadius: '0px 2px 2px 0px',
|
|
46
42
|
content: "''",
|
|
47
|
-
|
|
43
|
+
display: 'block',
|
|
48
44
|
height: '100%',
|
|
49
|
-
right: '0px',
|
|
50
45
|
position: 'absolute',
|
|
46
|
+
right: '0px',
|
|
51
47
|
top: 'calc(50% - var(--sizes-48)/2)',
|
|
52
|
-
background: 'purple.50',
|
|
53
|
-
borderRadius: '0px 2px 2px 0px',
|
|
54
48
|
transform: 'matrix(-1, 0, 0, 1, 0, 0)',
|
|
49
|
+
width: '2px',
|
|
55
50
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
_active: {
|
|
52
|
+
bg: 'purple.93',
|
|
53
|
+
},
|
|
54
|
+
_hover: {
|
|
55
|
+
bg: 'purple.93',
|
|
56
|
+
},
|
|
57
|
+
bg: 'purple.95',
|
|
58
|
+
fontWeight: 'demiBold',
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
},
|
|
@@ -14,7 +14,7 @@ type SidebarItemProps = {
|
|
|
14
14
|
|
|
15
15
|
const [SidebarItemStyleProvider, useSidebarItemStyle] = createStylesContext('SidebarItem');
|
|
16
16
|
|
|
17
|
-
const sidebarVariant = ({
|
|
17
|
+
const sidebarVariant = ({ disabled, selected }: { selected?: boolean; disabled?: boolean }) => {
|
|
18
18
|
if (disabled) {
|
|
19
19
|
return 'disabled';
|
|
20
20
|
}
|
|
@@ -26,17 +26,17 @@ const sidebarVariant = ({ selected, disabled }: { selected?: boolean; disabled?:
|
|
|
26
26
|
|
|
27
27
|
const SidebarItem = forwardRef(
|
|
28
28
|
(
|
|
29
|
-
{ children, disabled,
|
|
29
|
+
{ children, disabled, href, onClick, selected }: SidebarItemProps,
|
|
30
30
|
ref: React.Ref<HTMLButtonElement & HTMLAnchorElement>,
|
|
31
31
|
) => {
|
|
32
32
|
const style = useMultiStyleConfig('SidebarItem', { variant: sidebarVariant({ disabled, selected }) });
|
|
33
33
|
const shared = {
|
|
34
|
+
children: <SidebarItemStyleProvider value={style}>{children}</SidebarItemStyleProvider>,
|
|
35
|
+
height: '48',
|
|
36
|
+
href,
|
|
34
37
|
onClick,
|
|
35
38
|
position: 'relative',
|
|
36
|
-
href,
|
|
37
|
-
children: <SidebarItemStyleProvider value={style}>{children}</SidebarItemStyleProvider>,
|
|
38
39
|
sx: style.link,
|
|
39
|
-
height: '48',
|
|
40
40
|
} as ChakraProps;
|
|
41
41
|
if (onClick || disabled) {
|
|
42
42
|
return <chakra.button ref={ref} disabled={disabled} {...shared} />;
|
|
@@ -47,11 +47,11 @@ const SidebarItem = forwardRef(
|
|
|
47
47
|
|
|
48
48
|
const SidebarItemIcon = ({ name, ...iconProps }: { name: TypeIconName } & Omit<IconProps, 'sx'>) => {
|
|
49
49
|
const { icon } = useSidebarItemStyle();
|
|
50
|
-
return <Icon
|
|
50
|
+
return <Icon name={name} size="24" sx={icon} {...iconProps} />;
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
const SidebarItemLabel = ({ children }: { children: ReactNode }) => (
|
|
54
|
-
<Text as="span"
|
|
54
|
+
<Text as="span" flexGrow="1" textAlign="left">
|
|
55
55
|
{children}
|
|
56
56
|
</Text>
|
|
57
57
|
);
|
|
@@ -61,13 +61,13 @@ const SidebarItemDateExtra = ({ date }: { date: Date | DateTime }) => {
|
|
|
61
61
|
return (
|
|
62
62
|
<Text
|
|
63
63
|
as="time"
|
|
64
|
-
minWidth="5rem"
|
|
65
64
|
dateTime={dateTime.toFormat('yyyy-LL-dd')}
|
|
66
|
-
textAlign="left"
|
|
67
|
-
whiteSpace="nowrap"
|
|
68
65
|
fontWeight="normal"
|
|
69
|
-
|
|
66
|
+
minWidth="5rem"
|
|
70
67
|
paddingEnd="24"
|
|
68
|
+
textAlign="left"
|
|
69
|
+
textColor="text.secondary"
|
|
70
|
+
whiteSpace="nowrap"
|
|
71
71
|
>
|
|
72
72
|
{dateTime.toFormat('LLL d')}
|
|
73
73
|
</Text>
|