@bitrise/bitkit-v2 0.3.186 → 0.3.188
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/dist/components/BitkitDraggableCard/BitkitDraggableCard.d.ts +37 -0
- package/dist/components/BitkitDraggableCard/BitkitDraggableCard.js +62 -0
- package/dist/components/BitkitDraggableCard/BitkitDraggableCard.js.map +1 -0
- package/dist/components/BitkitLabeledData/BitkitLabeledData.d.ts +16 -0
- package/dist/components/BitkitLabeledData/BitkitLabeledData.js +112 -0
- package/dist/components/BitkitLabeledData/BitkitLabeledData.js.map +1 -0
- package/dist/components/BitkitStat/BitkitStat.d.ts +19 -0
- package/dist/components/BitkitStat/BitkitStat.js +166 -0
- package/dist/components/BitkitStat/BitkitStat.js.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/icons/IconDragHandle.d.ts +8 -0
- package/dist/icons/IconDragHandle.js +97 -0
- package/dist/icons/IconDragHandle.js.map +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/main.js +5 -1
- package/dist/theme/recipes/DefinitionTooltip.recipe.js +4 -3
- package/dist/theme/recipes/DefinitionTooltip.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/DraggableCard.recipe.d.ts +83 -0
- package/dist/theme/slot-recipes/DraggableCard.recipe.js +133 -0
- package/dist/theme/slot-recipes/DraggableCard.recipe.js.map +1 -0
- package/dist/theme/slot-recipes/ImageCropper.recipe.d.ts +1 -1
- package/dist/theme/slot-recipes/LabeledData.recipe.d.ts +38 -0
- package/dist/theme/slot-recipes/LabeledData.recipe.js +64 -0
- package/dist/theme/slot-recipes/LabeledData.recipe.js.map +1 -0
- package/dist/theme/slot-recipes/Stat.recipe.d.ts +44 -0
- package/dist/theme/slot-recipes/Stat.recipe.js +73 -0
- package/dist/theme/slot-recipes/Stat.recipe.js.map +1 -0
- package/dist/theme/slot-recipes/index.d.ts +163 -1
- package/dist/theme/slot-recipes/index.js +6 -0
- package/dist/theme/slot-recipes/index.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -103,6 +103,7 @@ import IconDotnetText from "./icons/IconDotnetText.js";
|
|
|
103
103
|
import IconDotnetTextColor from "./icons/IconDotnetTextColor.js";
|
|
104
104
|
import IconDoubleCircle from "./icons/IconDoubleCircle.js";
|
|
105
105
|
import IconDownload from "./icons/IconDownload.js";
|
|
106
|
+
import IconDragHandle from "./icons/IconDragHandle.js";
|
|
106
107
|
import IconEc2Ami from "./icons/IconEc2Ami.js";
|
|
107
108
|
import IconEnterprise from "./icons/IconEnterprise.js";
|
|
108
109
|
import IconErrorCircle from "./icons/IconErrorCircle.js";
|
|
@@ -303,6 +304,7 @@ import BitkitDialogBody from "./components/BitkitDialog/BitkitDialogBody.js";
|
|
|
303
304
|
import BitkitDialogContent from "./components/BitkitDialog/BitkitDialogContent.js";
|
|
304
305
|
import BitkitDialogRoot from "./components/BitkitDialog/BitkitDialogRoot.js";
|
|
305
306
|
import BitkitDialog from "./components/BitkitDialog/BitkitDialog.js";
|
|
307
|
+
import BitkitDraggableCard from "./components/BitkitDraggableCard/BitkitDraggableCard.js";
|
|
306
308
|
import BitkitEmptyState from "./components/BitkitEmptyState/BitkitEmptyState.js";
|
|
307
309
|
import BitkitExpandableCard from "./components/BitkitExpandableCard/BitkitExpandableCard.js";
|
|
308
310
|
import BitkitExplainerList_default from "./components/BitkitExplainerList/BitkitExplainerList.js";
|
|
@@ -310,6 +312,7 @@ import BitkitFileInput from "./components/BitkitFileInput/BitkitFileInput.js";
|
|
|
310
312
|
import BitkitGroupHeading from "./components/BitkitGroupHeading/BitkitGroupHeading.js";
|
|
311
313
|
import BitkitIconButton from "./components/BitkitIconButton/BitkitIconButton.js";
|
|
312
314
|
import BitkitInlineLoading from "./components/BitkitInlineLoading/BitkitInlineLoading.js";
|
|
315
|
+
import BitkitLabeledData from "./components/BitkitLabeledData/BitkitLabeledData.js";
|
|
313
316
|
import BitkitLink from "./components/BitkitLink/BitkitLink.js";
|
|
314
317
|
import BitkitLinkButton from "./components/BitkitLinkButton/BitkitLinkButton.js";
|
|
315
318
|
import BitkitOrderedList_default from "./components/BitkitOrderedList/BitkitOrderedList.js";
|
|
@@ -330,6 +333,7 @@ import BitkitSegmentedControl_default from "./components/BitkitSegmentedControl/
|
|
|
330
333
|
import BitkitSelect from "./components/BitkitSelect/BitkitSelect.js";
|
|
331
334
|
import BitkitSelectableTag_default from "./components/BitkitSelectableTag/BitkitSelectableTag.js";
|
|
332
335
|
import BitkitSplitButton_default from "./components/BitkitSplitButton/BitkitSplitButton.js";
|
|
336
|
+
import BitkitStat from "./components/BitkitStat/BitkitStat.js";
|
|
333
337
|
import BitkitTabs from "./components/BitkitTabs/BitkitTabs.js";
|
|
334
338
|
import BitkitTag from "./components/BitkitTag/BitkitTag.js";
|
|
335
339
|
import BitkitTagsInput from "./components/BitkitTagsInput/BitkitTagsInput.js";
|
|
@@ -339,4 +343,4 @@ import BitkitToggle from "./components/BitkitToggle/BitkitToggle.js";
|
|
|
339
343
|
import BitkitToggleButton from "./components/BitkitToggleButton/BitkitToggleButton.js";
|
|
340
344
|
import bitkitTheme from "./theme/index.js";
|
|
341
345
|
import Provider from "./providers/BitkitProvider.js";
|
|
342
|
-
export { BitkitAccordion, BitkitActionBar, BitkitAlert, BitkitAvatar, BitkitBadge, BitkitButton, BitkitCalendar, BitkitCard, BitkitCheckbox, BitkitCheckboxGroup, BitkitCloseButton, BitkitCodeSnippet, BitkitCollapsible, BitkitColorButton, BitkitCombobox, BitkitControlButton, BitkitDefinitionTooltip, BitkitDialog, BitkitDialogBody, BitkitDialogContent, BitkitDialogRoot, BitkitEmptyState, BitkitExpandableCard, BitkitExplainerList_default as BitkitExplainerList, BitkitField, BitkitFileInput, BitkitGroupHeading, BitkitIconButton, BitkitInlineLoading, BitkitLabel, BitkitLabelTooltip, BitkitLink, BitkitLinkButton, BitkitMarkdown, BitkitMarkdownCard, BitkitNativeSelect, BitkitNoteCard, BitkitNumberInput, BitkitOrderedList_default as BitkitOrderedList, BitkitOverflowTooltip, BitkitPaginationLoadMore, Provider as BitkitProvider, BitkitRadio, BitkitRadioGroup, BitkitRibbon, BitkitSearchInput, BitkitSectionHeading, BitkitSegmentedControl_default as BitkitSegmentedControl, BitkitSelect, BitkitSelectMenu, BitkitSelectableTag_default as BitkitSelectableTag, BitkitSplitButton_default as BitkitSplitButton, BitkitTabs, BitkitTag, BitkitTagsInput, BitkitTextInput, BitkitToggle, BitkitToggleButton, BitkitTooltip, BitkitUnorderedList_default as BitkitUnorderedList, IconAbortCircle, IconAbortCircleFilled, IconAddons, IconAgent, IconAnchor, IconAndroid, IconApp, IconAppSettings, IconAppStore, IconAppStoreColor, IconApple, IconArchive, IconArchiveDelete, IconArchiveRestore, IconArrowBackAndDown, IconArrowBackAndUp, IconArrowDown, IconArrowForwardAndDown, IconArrowForwardAndUp, IconArrowLeft, IconArrowNortheast, IconArrowNorthwest, IconArrowRight, IconArrowUp, IconArrowsHorizontal, IconArrowsVertical, IconAutomation, IconAws, IconAwsColor, IconBadge3RdParty, IconBadgeBitrise, IconBadgeUpgrade, IconBadgeVersionOk, IconBazel, IconBell, IconBitbot, IconBitbotError, IconBitbucket, IconBitbucketColor, IconBitbucketNeutral, IconBitbucketWhite, IconBlockCircle, IconBook, IconBoxArrowDown, IconBoxDot, IconBoxLinesOverflow, IconBoxLinesWrap, IconBranch, IconBrowserstackColor, IconBug, IconBuild, IconBuildCache, IconBuildCacheFilled, IconBuildEnvSetup, IconCalendar, IconChangePlan, IconChat, IconCheck, IconCheckCircle, IconCheckCircleFilled, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCi, IconCiFilled, IconCircle, IconCircleDashed, IconCircleHalfFilled, IconClaude, IconClaudeColor, IconClock, IconCode, IconCodePush, IconCodeSigning, IconCoffee, IconCommit, IconConfigure, IconConnectedAccounts, IconContainer, IconCopy, IconCordova, IconCpu, IconCreditcard, IconCredits, IconCross, IconCrossCircle, IconCrossCircleFilled, IconCrown, IconCycle, IconDashboard, IconDashboardFilled, IconDeployment, IconDetails, IconDoc, IconDollar, IconDot, IconDotnet, IconDotnetColor, IconDotnetText, IconDotnetTextColor, IconDoubleCircle, IconDownload, IconEc2Ami, IconEnterprise, IconErrorCircle, IconErrorCircleFilled, IconExpand, IconExtraBuildCapacity, IconEye, IconEyeSlash, IconFastlane, IconFileDoc, IconFilePdf, IconFilePlist, IconFileZip, IconFilter, IconFlag, IconFlutter, IconFolder, IconFullscreen, IconFullscreenExit, IconGauge, IconGit, IconGithub, IconGitlab, IconGitlabColor, IconGitlabWhite, IconGlobe, IconGo, IconGoogleColor, IconGooglePlay, IconGooglePlayColor, IconGradle, IconGroup, IconHashtag, IconHeadset, IconHeart, IconHistory, IconHourglass, IconImage, IconInfoCircle, IconInfoCircleFilled, IconInsights, IconInsightsFilled, IconInstall, IconInteraction, IconInvoice, IconIonic, IconJapanese, IconJava, IconJavaColor, IconJavaDuke, IconJavaDukeColor, IconKey, IconKotlin, IconKotlinColor, IconKotlinWhite, IconLaptop, IconLaunchdarkly, IconLegacyApp, IconLightbulb, IconLink, IconLinux, IconLock, IconLockOpen, IconLogin, IconLogout, IconMacos, IconMagicWand, IconMagnifier, IconMail, IconMedal, IconMemory, IconMenuGrid, IconMenuHamburger, IconMessage, IconMessageAlert, IconMessageQuestion, IconMicrophone, IconMinus, IconMinusCircle, IconMinusCircleFilled, IconMobile, IconMobileLandscape, IconMonitorChart, IconMoreHorizontal, IconMoreVertical, IconNews, IconNextjs, IconNodejs, IconOpenInNew, IconOther, IconOutsideContributor, IconOverview, IconPause, IconPencil, IconPeople, IconPercent, IconPerson, IconPersonWithDesk, IconPlay, IconPlus, IconPlusCircle, IconPlusCircleFilled, IconPower, IconProject, IconProjectSettings, IconPull, IconPush, IconPuzzle, IconPython, IconPythonColor, IconQuestionCircle, IconQuestionCircleFilled, IconReact, IconRefresh, IconRegex, IconRelease, IconReleaseFilled, IconRemoteAccess, IconReplace, IconResponsiveness, IconReviewerApproved, IconReviewerAssigned, IconReviewerRejected, IconRuby, IconRubyColor, IconSave, IconSecurityShield, IconSettings, IconSettingsFilled, IconShuffle, IconSiren, IconSkipCircle, IconSkipCircleFilled, IconSlack, IconSlackColor, IconSparkle, IconSparkleFilled, IconSpinnerOnDisabled, IconSpinnerPurple, IconSpinnerPurpleDouble, IconSpinnerWhite, IconStability, IconStack, IconStar, IconStep, IconStop, IconStopwatch, IconTag, IconTasks, IconTeams, IconTeamsColor, IconTemplateCode, IconTerminal, IconTestQuarantine, IconThemeDarkToggle, IconThumbDown, IconThumbUp, IconTools, IconTrash, IconTrigger, IconUbuntu, IconUbuntuColor, IconUnity3D, IconUpload, IconValidateShield, IconVideo, IconWarning, IconWarningYellow, IconWebUi, IconWebhooks, IconWorkflow, IconWorkflowFlow, IconXTwitter, IconXamarin, IconXcode, bitkitIcon, bitkitTheme as bitriseTheme, createBitkitToast };
|
|
346
|
+
export { BitkitAccordion, BitkitActionBar, BitkitAlert, BitkitAvatar, BitkitBadge, BitkitButton, BitkitCalendar, BitkitCard, BitkitCheckbox, BitkitCheckboxGroup, BitkitCloseButton, BitkitCodeSnippet, BitkitCollapsible, BitkitColorButton, BitkitCombobox, BitkitControlButton, BitkitDefinitionTooltip, BitkitDialog, BitkitDialogBody, BitkitDialogContent, BitkitDialogRoot, BitkitDraggableCard, BitkitEmptyState, BitkitExpandableCard, BitkitExplainerList_default as BitkitExplainerList, BitkitField, BitkitFileInput, BitkitGroupHeading, BitkitIconButton, BitkitInlineLoading, BitkitLabel, BitkitLabelTooltip, BitkitLabeledData, BitkitLink, BitkitLinkButton, BitkitMarkdown, BitkitMarkdownCard, BitkitNativeSelect, BitkitNoteCard, BitkitNumberInput, BitkitOrderedList_default as BitkitOrderedList, BitkitOverflowTooltip, BitkitPaginationLoadMore, Provider as BitkitProvider, BitkitRadio, BitkitRadioGroup, BitkitRibbon, BitkitSearchInput, BitkitSectionHeading, BitkitSegmentedControl_default as BitkitSegmentedControl, BitkitSelect, BitkitSelectMenu, BitkitSelectableTag_default as BitkitSelectableTag, BitkitSplitButton_default as BitkitSplitButton, BitkitStat, BitkitTabs, BitkitTag, BitkitTagsInput, BitkitTextInput, BitkitToggle, BitkitToggleButton, BitkitTooltip, BitkitUnorderedList_default as BitkitUnorderedList, IconAbortCircle, IconAbortCircleFilled, IconAddons, IconAgent, IconAnchor, IconAndroid, IconApp, IconAppSettings, IconAppStore, IconAppStoreColor, IconApple, IconArchive, IconArchiveDelete, IconArchiveRestore, IconArrowBackAndDown, IconArrowBackAndUp, IconArrowDown, IconArrowForwardAndDown, IconArrowForwardAndUp, IconArrowLeft, IconArrowNortheast, IconArrowNorthwest, IconArrowRight, IconArrowUp, IconArrowsHorizontal, IconArrowsVertical, IconAutomation, IconAws, IconAwsColor, IconBadge3RdParty, IconBadgeBitrise, IconBadgeUpgrade, IconBadgeVersionOk, IconBazel, IconBell, IconBitbot, IconBitbotError, IconBitbucket, IconBitbucketColor, IconBitbucketNeutral, IconBitbucketWhite, IconBlockCircle, IconBook, IconBoxArrowDown, IconBoxDot, IconBoxLinesOverflow, IconBoxLinesWrap, IconBranch, IconBrowserstackColor, IconBug, IconBuild, IconBuildCache, IconBuildCacheFilled, IconBuildEnvSetup, IconCalendar, IconChangePlan, IconChat, IconCheck, IconCheckCircle, IconCheckCircleFilled, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconCi, IconCiFilled, IconCircle, IconCircleDashed, IconCircleHalfFilled, IconClaude, IconClaudeColor, IconClock, IconCode, IconCodePush, IconCodeSigning, IconCoffee, IconCommit, IconConfigure, IconConnectedAccounts, IconContainer, IconCopy, IconCordova, IconCpu, IconCreditcard, IconCredits, IconCross, IconCrossCircle, IconCrossCircleFilled, IconCrown, IconCycle, IconDashboard, IconDashboardFilled, IconDeployment, IconDetails, IconDoc, IconDollar, IconDot, IconDotnet, IconDotnetColor, IconDotnetText, IconDotnetTextColor, IconDoubleCircle, IconDownload, IconDragHandle, IconEc2Ami, IconEnterprise, IconErrorCircle, IconErrorCircleFilled, IconExpand, IconExtraBuildCapacity, IconEye, IconEyeSlash, IconFastlane, IconFileDoc, IconFilePdf, IconFilePlist, IconFileZip, IconFilter, IconFlag, IconFlutter, IconFolder, IconFullscreen, IconFullscreenExit, IconGauge, IconGit, IconGithub, IconGitlab, IconGitlabColor, IconGitlabWhite, IconGlobe, IconGo, IconGoogleColor, IconGooglePlay, IconGooglePlayColor, IconGradle, IconGroup, IconHashtag, IconHeadset, IconHeart, IconHistory, IconHourglass, IconImage, IconInfoCircle, IconInfoCircleFilled, IconInsights, IconInsightsFilled, IconInstall, IconInteraction, IconInvoice, IconIonic, IconJapanese, IconJava, IconJavaColor, IconJavaDuke, IconJavaDukeColor, IconKey, IconKotlin, IconKotlinColor, IconKotlinWhite, IconLaptop, IconLaunchdarkly, IconLegacyApp, IconLightbulb, IconLink, IconLinux, IconLock, IconLockOpen, IconLogin, IconLogout, IconMacos, IconMagicWand, IconMagnifier, IconMail, IconMedal, IconMemory, IconMenuGrid, IconMenuHamburger, IconMessage, IconMessageAlert, IconMessageQuestion, IconMicrophone, IconMinus, IconMinusCircle, IconMinusCircleFilled, IconMobile, IconMobileLandscape, IconMonitorChart, IconMoreHorizontal, IconMoreVertical, IconNews, IconNextjs, IconNodejs, IconOpenInNew, IconOther, IconOutsideContributor, IconOverview, IconPause, IconPencil, IconPeople, IconPercent, IconPerson, IconPersonWithDesk, IconPlay, IconPlus, IconPlusCircle, IconPlusCircleFilled, IconPower, IconProject, IconProjectSettings, IconPull, IconPush, IconPuzzle, IconPython, IconPythonColor, IconQuestionCircle, IconQuestionCircleFilled, IconReact, IconRefresh, IconRegex, IconRelease, IconReleaseFilled, IconRemoteAccess, IconReplace, IconResponsiveness, IconReviewerApproved, IconReviewerAssigned, IconReviewerRejected, IconRuby, IconRubyColor, IconSave, IconSecurityShield, IconSettings, IconSettingsFilled, IconShuffle, IconSiren, IconSkipCircle, IconSkipCircleFilled, IconSlack, IconSlackColor, IconSparkle, IconSparkleFilled, IconSpinnerOnDisabled, IconSpinnerPurple, IconSpinnerPurpleDouble, IconSpinnerWhite, IconStability, IconStack, IconStar, IconStep, IconStop, IconStopwatch, IconTag, IconTasks, IconTeams, IconTeamsColor, IconTemplateCode, IconTerminal, IconTestQuarantine, IconThemeDarkToggle, IconThumbDown, IconThumbUp, IconTools, IconTrash, IconTrigger, IconUbuntu, IconUbuntuColor, IconUnity3D, IconUpload, IconValidateShield, IconVideo, IconWarning, IconWarningYellow, IconWebUi, IconWebhooks, IconWorkflow, IconWorkflowFlow, IconXTwitter, IconXamarin, IconXcode, bitkitIcon, bitkitTheme as bitriseTheme, createBitkitToast };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { rem } from "../themeUtils.js";
|
|
2
1
|
import { defineRecipe } from "@chakra-ui/react/styled-system";
|
|
3
2
|
//#region lib/theme/recipes/DefinitionTooltip.recipe.ts
|
|
4
3
|
var definitionTooltipRecipe = defineRecipe({
|
|
5
4
|
className: "definition-tooltip",
|
|
6
5
|
base: {
|
|
7
|
-
|
|
6
|
+
color: "inherit",
|
|
7
|
+
font: "inherit",
|
|
8
|
+
letterSpacing: "inherit",
|
|
8
9
|
textDecoration: "underline dotted",
|
|
9
10
|
textDecorationColor: "sys/neutral/bold",
|
|
10
|
-
textUnderlineOffset:
|
|
11
|
+
textUnderlineOffset: "0.375em",
|
|
11
12
|
"&:hover": { textDecorationColor: "sys/purple/base" }
|
|
12
13
|
},
|
|
13
14
|
variants: { method: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefinitionTooltip.recipe.js","names":[],"sources":["../../../lib/theme/recipes/DefinitionTooltip.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\
|
|
1
|
+
{"version":3,"file":"DefinitionTooltip.recipe.js","names":[],"sources":["../../../lib/theme/recipes/DefinitionTooltip.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst definitionTooltipRecipe = defineRecipe({\n className: 'definition-tooltip',\n base: {\n color: 'inherit',\n font: 'inherit',\n letterSpacing: 'inherit',\n textDecoration: 'underline dotted',\n textDecorationColor: 'sys/neutral/bold',\n textUnderlineOffset: '0.375em',\n '&:hover': {\n textDecorationColor: 'sys/purple/base',\n },\n },\n variants: {\n method: {\n click: {\n cursor: 'pointer',\n },\n hover: {\n cursor: 'default',\n },\n },\n },\n});\n\nexport default definitionTooltipRecipe;\n"],"mappings":";;AAEA,IAAM,0BAA0B,aAAa;CAC3C,WAAW;CACX,MAAM;EACJ,OAAO;EACP,MAAM;EACN,eAAe;EACf,gBAAgB;EAChB,qBAAqB;EACrB,qBAAqB;EACrB,WAAW,EACT,qBAAqB,mBACtB;EACF;CACD,UAAU,EACR,QAAQ;EACN,OAAO,EACL,QAAQ,WACT;EACD,OAAO,EACL,QAAQ,WACT;EACF,EACF;CACF,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
declare const draggableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "root" | "handle", {
|
|
2
|
+
isDragging: {
|
|
3
|
+
true: {
|
|
4
|
+
root: {
|
|
5
|
+
borderColor: "border/strong";
|
|
6
|
+
boxShadow: "elevation/lg";
|
|
7
|
+
cursor: "grabbing";
|
|
8
|
+
};
|
|
9
|
+
handle: {
|
|
10
|
+
color: "icon/secondary";
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
isDropTarget: {
|
|
15
|
+
true: {
|
|
16
|
+
root: {
|
|
17
|
+
background: "background/secondary";
|
|
18
|
+
borderColor: "border/strong";
|
|
19
|
+
borderStyle: "dashed";
|
|
20
|
+
boxShadow: "none";
|
|
21
|
+
};
|
|
22
|
+
handle: {
|
|
23
|
+
visibility: "hidden";
|
|
24
|
+
};
|
|
25
|
+
content: {
|
|
26
|
+
visibility: "hidden";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
isFullCardDrag: {
|
|
31
|
+
true: {
|
|
32
|
+
root: {
|
|
33
|
+
cursor: "grab";
|
|
34
|
+
_hover: {
|
|
35
|
+
borderColor: "border/regular";
|
|
36
|
+
_active: {
|
|
37
|
+
borderColor: "border/strong";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
_active: {
|
|
41
|
+
borderColor: "border/strong";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
handle: {
|
|
45
|
+
pointerEvents: "none";
|
|
46
|
+
};
|
|
47
|
+
content: {
|
|
48
|
+
paddingInlineStart: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
false: {
|
|
52
|
+
root: {
|
|
53
|
+
_hover: {
|
|
54
|
+
borderColor: "border/regular";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
handle: {
|
|
58
|
+
appearance: "none";
|
|
59
|
+
background: "transparent";
|
|
60
|
+
border: "none";
|
|
61
|
+
cursor: "grab";
|
|
62
|
+
focusVisibleRing: "none";
|
|
63
|
+
_focusVisible: {
|
|
64
|
+
boxShadow: "inset 0 0 0 var(--focus-ring-width) var(--focus-ring-color)";
|
|
65
|
+
};
|
|
66
|
+
_hover: {
|
|
67
|
+
background: "background/hover";
|
|
68
|
+
color: "icon/secondary";
|
|
69
|
+
_active: {
|
|
70
|
+
background: "background/active";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
_active: {
|
|
74
|
+
background: "background/active";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
content: {
|
|
78
|
+
paddingInlineStart: "8";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
export default draggableCardSlotRecipe;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
2
|
+
//#region lib/theme/slot-recipes/DraggableCard.recipe.ts
|
|
3
|
+
var draggableCardSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: "draggable-card",
|
|
5
|
+
slots: [
|
|
6
|
+
"root",
|
|
7
|
+
"handle",
|
|
8
|
+
"content"
|
|
9
|
+
],
|
|
10
|
+
base: {
|
|
11
|
+
root: {
|
|
12
|
+
alignItems: "stretch",
|
|
13
|
+
backgroundColor: "background/primary",
|
|
14
|
+
border: "1px solid",
|
|
15
|
+
borderColor: "border/minimal",
|
|
16
|
+
borderRadius: "8",
|
|
17
|
+
boxShadow: "elevation/sm",
|
|
18
|
+
display: "flex",
|
|
19
|
+
overflow: "hidden"
|
|
20
|
+
},
|
|
21
|
+
handle: {
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
color: "icon/tertiary",
|
|
24
|
+
display: "flex",
|
|
25
|
+
flexShrink: 0,
|
|
26
|
+
justifyContent: "center",
|
|
27
|
+
width: "24"
|
|
28
|
+
},
|
|
29
|
+
content: {
|
|
30
|
+
flex: 1,
|
|
31
|
+
minWidth: 0,
|
|
32
|
+
overflow: "hidden",
|
|
33
|
+
paddingBlock: "16",
|
|
34
|
+
paddingInlineEnd: "16"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
variants: {
|
|
38
|
+
isDragging: { true: {
|
|
39
|
+
root: {
|
|
40
|
+
borderColor: "border/strong",
|
|
41
|
+
boxShadow: "elevation/lg",
|
|
42
|
+
cursor: "grabbing"
|
|
43
|
+
},
|
|
44
|
+
handle: { color: "icon/secondary" }
|
|
45
|
+
} },
|
|
46
|
+
isDropTarget: { true: {
|
|
47
|
+
root: {
|
|
48
|
+
background: "background/secondary",
|
|
49
|
+
borderColor: "border/strong",
|
|
50
|
+
borderStyle: "dashed",
|
|
51
|
+
boxShadow: "none"
|
|
52
|
+
},
|
|
53
|
+
handle: { visibility: "hidden" },
|
|
54
|
+
content: { visibility: "hidden" }
|
|
55
|
+
} },
|
|
56
|
+
isFullCardDrag: {
|
|
57
|
+
true: {
|
|
58
|
+
root: {
|
|
59
|
+
cursor: "grab",
|
|
60
|
+
_hover: {
|
|
61
|
+
borderColor: "border/regular",
|
|
62
|
+
_active: { borderColor: "border/strong" }
|
|
63
|
+
},
|
|
64
|
+
_active: { borderColor: "border/strong" }
|
|
65
|
+
},
|
|
66
|
+
handle: { pointerEvents: "none" },
|
|
67
|
+
content: { paddingInlineStart: 0 }
|
|
68
|
+
},
|
|
69
|
+
false: {
|
|
70
|
+
root: { _hover: { borderColor: "border/regular" } },
|
|
71
|
+
handle: {
|
|
72
|
+
appearance: "none",
|
|
73
|
+
background: "transparent",
|
|
74
|
+
border: "none",
|
|
75
|
+
cursor: "grab",
|
|
76
|
+
focusVisibleRing: "none",
|
|
77
|
+
_focusVisible: { boxShadow: "inset 0 0 0 var(--focus-ring-width) var(--focus-ring-color)" },
|
|
78
|
+
_hover: {
|
|
79
|
+
background: "background/hover",
|
|
80
|
+
color: "icon/secondary",
|
|
81
|
+
_active: { background: "background/active" }
|
|
82
|
+
},
|
|
83
|
+
_active: { background: "background/active" }
|
|
84
|
+
},
|
|
85
|
+
content: { paddingInlineStart: "8" }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
compoundVariants: [
|
|
90
|
+
{
|
|
91
|
+
isDragging: true,
|
|
92
|
+
isFullCardDrag: true,
|
|
93
|
+
css: { root: {
|
|
94
|
+
cursor: "grabbing",
|
|
95
|
+
_hover: { borderColor: "border/strong" }
|
|
96
|
+
} }
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
isDragging: true,
|
|
100
|
+
isFullCardDrag: false,
|
|
101
|
+
css: {
|
|
102
|
+
root: { _hover: { borderColor: "border/strong" } },
|
|
103
|
+
handle: {
|
|
104
|
+
background: "background/active",
|
|
105
|
+
cursor: "grabbing",
|
|
106
|
+
_hover: { background: "background/active" }
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
isDropTarget: true,
|
|
112
|
+
isFullCardDrag: true,
|
|
113
|
+
css: { root: {
|
|
114
|
+
cursor: "default",
|
|
115
|
+
_hover: { borderColor: "border/strong" }
|
|
116
|
+
} }
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
isDropTarget: true,
|
|
120
|
+
isFullCardDrag: false,
|
|
121
|
+
css: { root: { _hover: { borderColor: "border/strong" } } }
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
defaultVariants: {
|
|
125
|
+
isDragging: false,
|
|
126
|
+
isDropTarget: false,
|
|
127
|
+
isFullCardDrag: true
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
//#endregion
|
|
131
|
+
export { draggableCardSlotRecipe as default };
|
|
132
|
+
|
|
133
|
+
//# sourceMappingURL=DraggableCard.recipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DraggableCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/DraggableCard.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst draggableCardSlotRecipe = defineSlotRecipe({\n className: 'draggable-card',\n slots: ['root', 'handle', 'content'],\n base: {\n root: {\n alignItems: 'stretch',\n backgroundColor: 'background/primary',\n border: '1px solid',\n borderColor: 'border/minimal',\n borderRadius: '8',\n boxShadow: 'elevation/sm',\n display: 'flex',\n overflow: 'hidden',\n },\n handle: {\n alignItems: 'center',\n color: 'icon/tertiary',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n width: '24',\n },\n content: {\n flex: 1,\n minWidth: 0,\n overflow: 'hidden',\n paddingBlock: '16',\n paddingInlineEnd: '16',\n },\n },\n variants: {\n isDragging: {\n true: {\n root: {\n borderColor: 'border/strong',\n boxShadow: 'elevation/lg',\n cursor: 'grabbing',\n },\n handle: {\n color: 'icon/secondary',\n },\n },\n },\n isDropTarget: {\n true: {\n root: {\n background: 'background/secondary',\n borderColor: 'border/strong',\n borderStyle: 'dashed',\n boxShadow: 'none',\n },\n handle: {\n visibility: 'hidden',\n },\n content: {\n visibility: 'hidden',\n },\n },\n },\n isFullCardDrag: {\n true: {\n root: {\n cursor: 'grab',\n _hover: {\n borderColor: 'border/regular',\n _active: {\n borderColor: 'border/strong',\n },\n },\n _active: {\n borderColor: 'border/strong',\n },\n },\n handle: {\n pointerEvents: 'none',\n },\n content: {\n paddingInlineStart: 0,\n },\n },\n false: {\n root: {\n _hover: {\n borderColor: 'border/regular',\n },\n },\n handle: {\n appearance: 'none',\n background: 'transparent',\n border: 'none',\n cursor: 'grab',\n focusVisibleRing: 'none',\n _focusVisible: {\n boxShadow: 'inset 0 0 0 var(--focus-ring-width) var(--focus-ring-color)',\n },\n _hover: {\n background: 'background/hover',\n color: 'icon/secondary',\n _active: {\n background: 'background/active',\n },\n },\n _active: {\n background: 'background/active',\n },\n },\n content: {\n paddingInlineStart: '8',\n },\n },\n },\n },\n compoundVariants: [\n {\n isDragging: true,\n isFullCardDrag: true,\n css: {\n root: {\n cursor: 'grabbing',\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n {\n isDragging: true,\n isFullCardDrag: false,\n css: {\n root: {\n _hover: {\n borderColor: 'border/strong',\n },\n },\n handle: {\n background: 'background/active',\n cursor: 'grabbing',\n _hover: {\n background: 'background/active',\n },\n },\n },\n },\n {\n isDropTarget: true,\n isFullCardDrag: true,\n css: {\n root: {\n cursor: 'default',\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n {\n isDropTarget: true,\n isFullCardDrag: false,\n css: {\n root: {\n _hover: {\n borderColor: 'border/strong',\n },\n },\n },\n },\n ],\n defaultVariants: {\n isDragging: false,\n isDropTarget: false,\n isFullCardDrag: true,\n },\n});\n\nexport default draggableCardSlotRecipe;\n"],"mappings":";;AAEA,IAAM,0BAA0B,iBAAiB;CAC/C,WAAW;CACX,OAAO;EAAC;EAAQ;EAAU;EAAU;CACpC,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,iBAAiB;GACjB,QAAQ;GACR,aAAa;GACb,cAAc;GACd,WAAW;GACX,SAAS;GACT,UAAU;GACX;EACD,QAAQ;GACN,YAAY;GACZ,OAAO;GACP,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACR;EACD,SAAS;GACP,MAAM;GACN,UAAU;GACV,UAAU;GACV,cAAc;GACd,kBAAkB;GACnB;EACF;CACD,UAAU;EACR,YAAY,EACV,MAAM;GACJ,MAAM;IACJ,aAAa;IACb,WAAW;IACX,QAAQ;IACT;GACD,QAAQ,EACN,OAAO,kBACR;GACF,EACF;EACD,cAAc,EACZ,MAAM;GACJ,MAAM;IACJ,YAAY;IACZ,aAAa;IACb,aAAa;IACb,WAAW;IACZ;GACD,QAAQ,EACN,YAAY,UACb;GACD,SAAS,EACP,YAAY,UACb;GACF,EACF;EACD,gBAAgB;GACd,MAAM;IACJ,MAAM;KACJ,QAAQ;KACR,QAAQ;MACN,aAAa;MACb,SAAS,EACP,aAAa,iBACd;MACF;KACD,SAAS,EACP,aAAa,iBACd;KACF;IACD,QAAQ,EACN,eAAe,QAChB;IACD,SAAS,EACP,oBAAoB,GACrB;IACF;GACD,OAAO;IACL,MAAM,EACJ,QAAQ,EACN,aAAa,kBACd,EACF;IACD,QAAQ;KACN,YAAY;KACZ,YAAY;KACZ,QAAQ;KACR,QAAQ;KACR,kBAAkB;KAClB,eAAe,EACb,WAAW,+DACZ;KACD,QAAQ;MACN,YAAY;MACZ,OAAO;MACP,SAAS,EACP,YAAY,qBACb;MACF;KACD,SAAS,EACP,YAAY,qBACb;KACF;IACD,SAAS,EACP,oBAAoB,KACrB;IACF;GACF;EACF;CACD,kBAAkB;EAChB;GACE,YAAY;GACZ,gBAAgB;GAChB,KAAK,EACH,MAAM;IACJ,QAAQ;IACR,QAAQ,EACN,aAAa,iBACd;IACF,EACF;GACF;EACD;GACE,YAAY;GACZ,gBAAgB;GAChB,KAAK;IACH,MAAM,EACJ,QAAQ,EACN,aAAa,iBACd,EACF;IACD,QAAQ;KACN,YAAY;KACZ,QAAQ;KACR,QAAQ,EACN,YAAY,qBACb;KACF;IACF;GACF;EACD;GACE,cAAc;GACd,gBAAgB;GAChB,KAAK,EACH,MAAM;IACJ,QAAQ;IACR,QAAQ,EACN,aAAa,iBACd;IACF,EACF;GACF;EACD;GACE,cAAc;GACd,gBAAgB;GAChB,KAAK,EACH,MAAM,EACJ,QAAQ,EACN,aAAa,iBACd,EACF,EACF;GACF;EACF;CACD,iBAAiB;EACf,YAAY;EACZ,cAAc;EACd,gBAAgB;EACjB;CACF,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const imageCropperSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"grid" | "image" | "root" | "
|
|
1
|
+
declare const imageCropperSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"grid" | "image" | "root" | "handle" | "viewport" | "selection", import('@chakra-ui/react').SlotRecipeVariantRecord<"grid" | "image" | "root" | "handle" | "viewport" | "selection">>;
|
|
2
2
|
export default imageCropperSlotRecipe;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const labeledDataSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "value" | "root" | "limit" | "helpText", {
|
|
2
|
+
size: {
|
|
3
|
+
lg: {
|
|
4
|
+
label: {
|
|
5
|
+
color: "text/primary";
|
|
6
|
+
};
|
|
7
|
+
value: {
|
|
8
|
+
textStyle: "comp/data/sm";
|
|
9
|
+
};
|
|
10
|
+
limit: {
|
|
11
|
+
textStyle: "body/md/regular";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
'2xl': {
|
|
15
|
+
label: {
|
|
16
|
+
color: "text/secondary";
|
|
17
|
+
};
|
|
18
|
+
value: {
|
|
19
|
+
textStyle: "comp/data/md";
|
|
20
|
+
};
|
|
21
|
+
limit: {
|
|
22
|
+
textStyle: "body/xl/regular";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
'3xl': {
|
|
26
|
+
label: {
|
|
27
|
+
color: "text/secondary";
|
|
28
|
+
};
|
|
29
|
+
value: {
|
|
30
|
+
textStyle: "comp/data/lg";
|
|
31
|
+
};
|
|
32
|
+
limit: {
|
|
33
|
+
textStyle: "body/2xl/regular";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
38
|
+
export default labeledDataSlotRecipe;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
2
|
+
//#region lib/theme/slot-recipes/LabeledData.recipe.ts
|
|
3
|
+
var labeledDataSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: "labeled-data",
|
|
5
|
+
slots: [
|
|
6
|
+
"root",
|
|
7
|
+
"label",
|
|
8
|
+
"value",
|
|
9
|
+
"limit",
|
|
10
|
+
"helpText"
|
|
11
|
+
],
|
|
12
|
+
base: {
|
|
13
|
+
root: {
|
|
14
|
+
display: "flex",
|
|
15
|
+
flexDirection: "column",
|
|
16
|
+
gap: "4"
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
display: "inline-flex",
|
|
20
|
+
gap: "4",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
textStyle: "body/md/semibold"
|
|
23
|
+
},
|
|
24
|
+
value: {
|
|
25
|
+
display: "inline-flex",
|
|
26
|
+
alignItems: "baseline",
|
|
27
|
+
gap: "2",
|
|
28
|
+
fontFeatureSettings: "pnum",
|
|
29
|
+
fontVariantNumeric: "proportional-nums",
|
|
30
|
+
color: "text/body"
|
|
31
|
+
},
|
|
32
|
+
limit: {
|
|
33
|
+
color: "text/secondary",
|
|
34
|
+
fontWeight: "initial",
|
|
35
|
+
letterSpacing: "initial"
|
|
36
|
+
},
|
|
37
|
+
helpText: {
|
|
38
|
+
textStyle: "body/md/regular",
|
|
39
|
+
color: "text/tertiary"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
variants: { size: {
|
|
43
|
+
lg: {
|
|
44
|
+
label: { color: "text/primary" },
|
|
45
|
+
value: { textStyle: "comp/data/sm" },
|
|
46
|
+
limit: { textStyle: "body/md/regular" }
|
|
47
|
+
},
|
|
48
|
+
"2xl": {
|
|
49
|
+
label: { color: "text/secondary" },
|
|
50
|
+
value: { textStyle: "comp/data/md" },
|
|
51
|
+
limit: { textStyle: "body/xl/regular" }
|
|
52
|
+
},
|
|
53
|
+
"3xl": {
|
|
54
|
+
label: { color: "text/secondary" },
|
|
55
|
+
value: { textStyle: "comp/data/lg" },
|
|
56
|
+
limit: { textStyle: "body/2xl/regular" }
|
|
57
|
+
}
|
|
58
|
+
} },
|
|
59
|
+
defaultVariants: { size: "lg" }
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { labeledDataSlotRecipe as default };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=LabeledData.recipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabeledData.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/LabeledData.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst labeledDataSlotRecipe = defineSlotRecipe({\n className: 'labeled-data',\n slots: ['root', 'label', 'value', 'limit', 'helpText'],\n base: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: '4',\n },\n label: {\n display: 'inline-flex',\n gap: '4',\n alignItems: 'center',\n textStyle: 'body/md/semibold',\n },\n value: {\n display: 'inline-flex',\n alignItems: 'baseline',\n gap: '2',\n fontFeatureSettings: 'pnum',\n fontVariantNumeric: 'proportional-nums',\n color: 'text/body',\n },\n limit: {\n color: 'text/secondary',\n fontWeight: 'initial',\n letterSpacing: 'initial',\n },\n helpText: {\n textStyle: 'body/md/regular',\n color: 'text/tertiary',\n },\n },\n variants: {\n size: {\n lg: {\n label: { color: 'text/primary' },\n value: { textStyle: 'comp/data/sm' },\n limit: { textStyle: 'body/md/regular' },\n },\n '2xl': {\n label: { color: 'text/secondary' },\n value: { textStyle: 'comp/data/md' },\n limit: { textStyle: 'body/xl/regular' },\n },\n '3xl': {\n label: { color: 'text/secondary' },\n value: { textStyle: 'comp/data/lg' },\n limit: { textStyle: 'body/2xl/regular' },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n\nexport default labeledDataSlotRecipe;\n"],"mappings":";;AAEA,IAAM,wBAAwB,iBAAiB;CAC7C,WAAW;CACX,OAAO;EAAC;EAAQ;EAAS;EAAS;EAAS;EAAW;CACtD,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,KAAK;GACN;EACD,OAAO;GACL,SAAS;GACT,KAAK;GACL,YAAY;GACZ,WAAW;GACZ;EACD,OAAO;GACL,SAAS;GACT,YAAY;GACZ,KAAK;GACL,qBAAqB;GACrB,oBAAoB;GACpB,OAAO;GACR;EACD,OAAO;GACL,OAAO;GACP,YAAY;GACZ,eAAe;GAChB;EACD,UAAU;GACR,WAAW;GACX,OAAO;GACR;EACF;CACD,UAAU,EACR,MAAM;EACJ,IAAI;GACF,OAAO,EAAE,OAAO,gBAAgB;GAChC,OAAO,EAAE,WAAW,gBAAgB;GACpC,OAAO,EAAE,WAAW,mBAAmB;GACxC;EACD,OAAO;GACL,OAAO,EAAE,OAAO,kBAAkB;GAClC,OAAO,EAAE,WAAW,gBAAgB;GACpC,OAAO,EAAE,WAAW,mBAAmB;GACxC;EACD,OAAO;GACL,OAAO,EAAE,OAAO,kBAAkB;GAClC,OAAO,EAAE,WAAW,gBAAgB;GACpC,OAAO,EAAE,WAAW,oBAAoB;GACzC;EACF,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
declare const statSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "value" | "root" | "helpText", {
|
|
2
|
+
size: {
|
|
3
|
+
lg: {
|
|
4
|
+
label: {
|
|
5
|
+
color: "text/primary";
|
|
6
|
+
};
|
|
7
|
+
value: {
|
|
8
|
+
textStyle: "comp/data/sm";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
'2xl': {
|
|
12
|
+
label: {
|
|
13
|
+
color: "text/secondary";
|
|
14
|
+
};
|
|
15
|
+
value: {
|
|
16
|
+
textStyle: "comp/data/md";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
'3xl': {
|
|
20
|
+
label: {
|
|
21
|
+
color: "text/secondary";
|
|
22
|
+
};
|
|
23
|
+
value: {
|
|
24
|
+
textStyle: "comp/data/lg";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
variant: {
|
|
29
|
+
default: {};
|
|
30
|
+
compact: {
|
|
31
|
+
root: {
|
|
32
|
+
display: "inline-flex";
|
|
33
|
+
alignItems: "flex-end";
|
|
34
|
+
};
|
|
35
|
+
value: {
|
|
36
|
+
textStyle: "body/md/regular";
|
|
37
|
+
};
|
|
38
|
+
helpText: {
|
|
39
|
+
textStyle: "body/sm/regular";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
44
|
+
export default statSlotRecipe;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
2
|
+
//#region lib/theme/slot-recipes/Stat.recipe.ts
|
|
3
|
+
var statSlotRecipe = defineSlotRecipe({
|
|
4
|
+
className: "stat",
|
|
5
|
+
slots: [
|
|
6
|
+
"root",
|
|
7
|
+
"label",
|
|
8
|
+
"value",
|
|
9
|
+
"helpText"
|
|
10
|
+
],
|
|
11
|
+
base: {
|
|
12
|
+
root: {
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
gap: "4"
|
|
16
|
+
},
|
|
17
|
+
label: {
|
|
18
|
+
display: "inline-flex",
|
|
19
|
+
gap: "4",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
textStyle: "body/md/semibold"
|
|
22
|
+
},
|
|
23
|
+
value: {
|
|
24
|
+
display: "inline-flex",
|
|
25
|
+
gap: "4",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
fontFeatureSettings: "pnum",
|
|
28
|
+
fontVariantNumeric: "proportional-nums",
|
|
29
|
+
color: "text/body"
|
|
30
|
+
},
|
|
31
|
+
helpText: {
|
|
32
|
+
display: "inline-flex",
|
|
33
|
+
flexWrap: "wrap",
|
|
34
|
+
gap: "4",
|
|
35
|
+
textStyle: "body/md/regular"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
variants: {
|
|
39
|
+
size: {
|
|
40
|
+
lg: {
|
|
41
|
+
label: { color: "text/primary" },
|
|
42
|
+
value: { textStyle: "comp/data/sm" }
|
|
43
|
+
},
|
|
44
|
+
"2xl": {
|
|
45
|
+
label: { color: "text/secondary" },
|
|
46
|
+
value: { textStyle: "comp/data/md" }
|
|
47
|
+
},
|
|
48
|
+
"3xl": {
|
|
49
|
+
label: { color: "text/secondary" },
|
|
50
|
+
value: { textStyle: "comp/data/lg" }
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
variant: {
|
|
54
|
+
default: {},
|
|
55
|
+
compact: {
|
|
56
|
+
root: {
|
|
57
|
+
display: "inline-flex",
|
|
58
|
+
alignItems: "flex-end"
|
|
59
|
+
},
|
|
60
|
+
value: { textStyle: "body/md/regular" },
|
|
61
|
+
helpText: { textStyle: "body/sm/regular" }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
size: "lg",
|
|
67
|
+
variant: "default"
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { statSlotRecipe as default };
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=Stat.recipe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stat.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Stat.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst statSlotRecipe = defineSlotRecipe({\n className: 'stat',\n slots: ['root', 'label', 'value', 'helpText'],\n base: {\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: '4',\n },\n label: {\n display: 'inline-flex',\n gap: '4',\n alignItems: 'center',\n textStyle: 'body/md/semibold',\n },\n value: {\n display: 'inline-flex',\n gap: '4',\n alignItems: 'center',\n fontFeatureSettings: 'pnum',\n fontVariantNumeric: 'proportional-nums',\n color: 'text/body',\n },\n helpText: {\n display: 'inline-flex',\n flexWrap: 'wrap',\n gap: '4',\n textStyle: 'body/md/regular',\n },\n },\n variants: {\n size: {\n lg: {\n label: { color: 'text/primary' },\n value: { textStyle: 'comp/data/sm' },\n },\n '2xl': {\n label: { color: 'text/secondary' },\n value: { textStyle: 'comp/data/md' },\n },\n '3xl': {\n label: { color: 'text/secondary' },\n value: { textStyle: 'comp/data/lg' },\n },\n },\n variant: {\n default: {},\n compact: {\n root: {\n display: 'inline-flex',\n alignItems: 'flex-end',\n },\n value: {\n textStyle: 'body/md/regular',\n },\n helpText: {\n textStyle: 'body/sm/regular',\n },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n variant: 'default',\n },\n});\n\nexport default statSlotRecipe;\n"],"mappings":";;AAEA,IAAM,iBAAiB,iBAAiB;CACtC,WAAW;CACX,OAAO;EAAC;EAAQ;EAAS;EAAS;EAAW;CAC7C,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,KAAK;GACN;EACD,OAAO;GACL,SAAS;GACT,KAAK;GACL,YAAY;GACZ,WAAW;GACZ;EACD,OAAO;GACL,SAAS;GACT,KAAK;GACL,YAAY;GACZ,qBAAqB;GACrB,oBAAoB;GACpB,OAAO;GACR;EACD,UAAU;GACR,SAAS;GACT,UAAU;GACV,KAAK;GACL,WAAW;GACZ;EACF;CACD,UAAU;EACR,MAAM;GACJ,IAAI;IACF,OAAO,EAAE,OAAO,gBAAgB;IAChC,OAAO,EAAE,WAAW,gBAAgB;IACrC;GACD,OAAO;IACL,OAAO,EAAE,OAAO,kBAAkB;IAClC,OAAO,EAAE,WAAW,gBAAgB;IACrC;GACD,OAAO;IACL,OAAO,EAAE,OAAO,kBAAkB;IAClC,OAAO,EAAE,WAAW,gBAAgB;IACrC;GACF;EACD,SAAS;GACP,SAAS,EAAE;GACX,SAAS;IACP,MAAM;KACJ,SAAS;KACT,YAAY;KACb;IACD,OAAO,EACL,WAAW,mBACZ;IACD,UAAU,EACR,WAAW,mBACZ;IACF;GACF;EACF;CACD,iBAAiB;EACf,MAAM;EACN,SAAS;EACV;CACF,CAAC"}
|