@bitrise/bitkit-v2 0.3.205 → 0.3.207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/atoms/ImageCropper/ImageCropper.d.ts +10 -10
- package/dist/components/BitkitAccordion/BitkitAccordion.js.map +1 -1
- package/dist/components/BitkitCalendar/components/CalendarFooter.js.map +1 -1
- package/dist/components/BitkitCalendar/components/CalendarNextTrigger.js.map +1 -1
- package/dist/components/BitkitCalendar/components/CalendarPrevTrigger.js.map +1 -1
- package/dist/components/BitkitCalendar/components/CalendarSelect.js.map +1 -1
- package/dist/components/BitkitCalendar/components/CalendarTrigger.js.map +1 -1
- package/dist/components/BitkitCodeSnippet/BitkitCodeSnippet.js.map +1 -1
- package/dist/components/BitkitCollapsible/BitkitCollapsible.js.map +1 -1
- package/dist/components/BitkitCombobox/BitkitCombobox.d.ts +11 -1
- package/dist/components/BitkitCombobox/BitkitCombobox.js +4 -7
- package/dist/components/BitkitCombobox/BitkitCombobox.js.map +1 -1
- package/dist/components/BitkitDataWidget/BitkitDataWidget.d.ts +10 -0
- package/dist/components/BitkitDataWidget/BitkitDataWidget.js +45 -0
- package/dist/components/BitkitDataWidget/BitkitDataWidget.js.map +1 -0
- package/dist/components/BitkitDialog/BitkitDialog.d.ts +19 -6
- package/dist/components/BitkitDialog/BitkitDialog.js +22 -5
- package/dist/components/BitkitDialog/BitkitDialog.js.map +1 -1
- package/dist/components/BitkitDialog/BitkitDialogBody.d.ts +1 -1
- package/dist/components/BitkitDialog/BitkitDialogBody.js +15 -4
- package/dist/components/BitkitDialog/BitkitDialogBody.js.map +1 -1
- package/dist/components/BitkitDialog/BitkitDialogContent.d.ts +4 -2
- package/dist/components/BitkitDialog/BitkitDialogContent.js +29 -18
- package/dist/components/BitkitDialog/BitkitDialogContent.js.map +1 -1
- package/dist/components/BitkitDialog/BitkitDialogHeader.d.ts +9 -0
- package/dist/components/BitkitDialog/BitkitDialogHeader.js +8 -0
- package/dist/components/BitkitDialog/BitkitDialogHeader.js.map +1 -0
- package/dist/components/BitkitDialog/BitkitDialogStep.d.ts +11 -0
- package/dist/components/BitkitDialog/BitkitDialogStep.js +26 -0
- package/dist/components/BitkitDialog/BitkitDialogStep.js.map +1 -0
- package/dist/components/BitkitDialog/BitkitDialogStepContext.d.ts +5 -0
- package/dist/components/BitkitDialog/BitkitDialogStepContext.js +7 -0
- package/dist/components/BitkitDialog/BitkitDialogStepContext.js.map +1 -0
- package/dist/components/BitkitDraggableCard/BitkitDraggableCard.js.map +1 -1
- package/dist/components/BitkitExpandableCard/BitkitExpandableCard.js.map +1 -1
- package/dist/components/BitkitGroupHeading/BitkitGroupHeading.js.map +1 -1
- package/dist/components/BitkitInlineLoading/BitkitInlineLoading.js.map +1 -1
- package/dist/components/BitkitLabel/BitkitLabel.js +3 -3
- package/dist/components/BitkitLabel/BitkitLabel.js.map +1 -1
- package/dist/components/BitkitLabeledData/BitkitLabeledData.js +24 -17
- package/dist/components/BitkitLabeledData/BitkitLabeledData.js.map +1 -1
- package/dist/components/BitkitList/BitkitList.d.ts +21 -0
- package/dist/components/BitkitList/BitkitList.js +107 -0
- package/dist/components/BitkitList/BitkitList.js.map +1 -0
- package/dist/components/BitkitList/index.d.ts +2 -0
- package/dist/components/BitkitMarkdown/BitkitMarkdown.js +11 -17
- package/dist/components/BitkitMarkdown/BitkitMarkdown.js.map +1 -1
- package/dist/components/BitkitMarkdownCard/BitkitMarkdownCard.js.map +1 -1
- package/dist/components/BitkitMultiselect/BitkitMultiselect.d.ts +13 -1
- package/dist/components/BitkitMultiselect/BitkitMultiselect.js +3 -6
- package/dist/components/BitkitMultiselect/BitkitMultiselect.js.map +1 -1
- package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.d.ts +5 -1
- package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.js +5 -3
- package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.js.map +1 -1
- package/dist/components/BitkitNativeSelect/BitkitNativeSelect.js.map +1 -1
- package/dist/components/BitkitNoteCard/BitkitNoteCard.js.map +1 -1
- package/dist/components/BitkitOverflowContent/BitkitOverflowContent.js +2 -2
- package/dist/components/BitkitOverflowContent/BitkitOverflowContent.js.map +1 -1
- package/dist/components/BitkitPageFooter/BitkitPageFooter.js.map +1 -1
- package/dist/components/BitkitPagination/BitkitPagination.js.map +1 -1
- package/dist/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.js.map +1 -1
- package/dist/components/BitkitRibbon/BitkitRibbon.js.map +1 -1
- package/dist/components/BitkitSearchInput/BitkitSearchInput.js +2 -1
- package/dist/components/BitkitSearchInput/BitkitSearchInput.js.map +1 -1
- package/dist/components/BitkitSectionHeading/BitkitSectionHeading.js +1 -1
- package/dist/components/BitkitSectionHeading/BitkitSectionHeading.js.map +1 -1
- package/dist/components/BitkitSelect/BitkitSelect.d.ts +12 -1
- package/dist/components/BitkitSelect/BitkitSelect.js +3 -6
- package/dist/components/BitkitSelect/BitkitSelect.js.map +1 -1
- package/dist/components/BitkitSelectMenu/BitkitSelectMenu.d.ts +14 -11
- package/dist/components/BitkitSelectMenu/BitkitSelectMenu.js.map +1 -1
- package/dist/components/BitkitSelectMenu/SelectMenuShell.d.ts +1 -1
- package/dist/components/BitkitSelectMenu/SelectMenuShell.js +13 -13
- package/dist/components/BitkitSelectMenu/SelectMenuShell.js.map +1 -1
- package/dist/components/BitkitSettingsCard/BitkitSettingsCard.js.map +1 -1
- package/dist/components/BitkitSidebar/BitkitSidebar.js.map +1 -1
- package/dist/components/BitkitSplitButton/BitkitSplitButton.js.map +1 -1
- package/dist/components/BitkitSteps/BitkitSteps.js +3 -3
- package/dist/components/BitkitSteps/BitkitSteps.js.map +1 -1
- package/dist/components/BitkitStepsCard/BitkitStepsCard.js.map +1 -1
- package/dist/components/BitkitSwitch/BitkitSwitch.d.ts +3 -0
- package/dist/components/BitkitSwitch/BitkitSwitch.js +105 -0
- package/dist/components/BitkitSwitch/BitkitSwitch.js.map +1 -0
- package/dist/components/BitkitSwitch/BitkitSwitch.types.d.ts +21 -0
- package/dist/components/{BitkitToggle/BitkitToggle.utils.d.ts → BitkitSwitch/BitkitSwitch.utils.d.ts} +1 -1
- package/dist/components/{BitkitToggle/BitkitToggle.utils.js → BitkitSwitch/BitkitSwitch.utils.js} +2 -2
- package/dist/components/{BitkitToggle/BitkitToggle.utils.js.map → BitkitSwitch/BitkitSwitch.utils.js.map} +1 -1
- package/dist/components/BitkitSwitch/components/BitkitSwitchHelperText.d.ts +3 -0
- package/dist/components/{BitkitToggle/components/BitkitToggleHelperText.js → BitkitSwitch/components/BitkitSwitchHelperText.js} +5 -5
- package/dist/components/BitkitSwitch/components/BitkitSwitchHelperText.js.map +1 -0
- package/dist/components/BitkitSwitch/components/BitkitSwitchLabel.d.ts +3 -0
- package/dist/components/{BitkitToggle/components/BitkitToggleLabel.js → BitkitSwitch/components/BitkitSwitchLabel.js} +4 -4
- package/dist/components/BitkitSwitch/components/BitkitSwitchLabel.js.map +1 -0
- package/dist/components/BitkitSwitch/components/BitkitSwitchReadOnly.d.ts +4 -0
- package/dist/components/{BitkitToggle/components/BitkitToggleReadOnly.js → BitkitSwitch/components/BitkitSwitchReadOnly.js} +4 -4
- package/dist/components/{BitkitToggle/components/BitkitToggleReadOnly.js.map → BitkitSwitch/components/BitkitSwitchReadOnly.js.map} +1 -1
- package/dist/components/BitkitSwitch/components/BitkitSwitchValueText.d.ts +3 -0
- package/dist/components/{BitkitToggle/components/BitkitToggleValueText.js → BitkitSwitch/components/BitkitSwitchValueText.js} +7 -7
- package/dist/components/BitkitSwitch/components/BitkitSwitchValueText.js.map +1 -0
- package/dist/components/BitkitSwitch/index.d.ts +2 -0
- package/dist/components/BitkitTag/BitkitTag.js +1 -1
- package/dist/components/BitkitTag/BitkitTag.js.map +1 -1
- package/dist/components/BitkitTagsInput/BitkitTagsInput.d.ts +1 -0
- package/dist/components/BitkitTagsInput/BitkitTagsInput.js +5 -2
- package/dist/components/BitkitTagsInput/BitkitTagsInput.js.map +1 -1
- package/dist/components/BitkitTreeView/BitkitTreeView.js.map +1 -1
- package/dist/components/index.d.ts +5 -4
- package/dist/main.js +8 -7
- package/dist/theme/common/ComboboxAndSelect.common.js +2 -1
- package/dist/theme/common/ComboboxAndSelect.common.js.map +1 -1
- package/dist/theme/common/InputAndTextarea.common.d.ts +7 -0
- package/dist/theme/common/InputAndTextarea.common.js +8 -1
- package/dist/theme/common/InputAndTextarea.common.js.map +1 -1
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/recipes/Button.recipe.js.map +1 -1
- package/dist/theme/recipes/Input.recipe.js +6 -2
- package/dist/theme/recipes/Input.recipe.js.map +1 -1
- package/dist/theme/recipes/SelectableTag.recipe.js +1 -1
- package/dist/theme/recipes/SelectableTag.recipe.js.map +1 -1
- package/dist/theme/recipes/ToggleButton.recipe.js +20 -2
- package/dist/theme/recipes/ToggleButton.recipe.js.map +1 -1
- package/dist/theme/semantic-tokens/semanticColors.js +14 -9
- package/dist/theme/semantic-tokens/semanticColors.js.map +1 -1
- package/dist/theme/slot-recipes/Combobox.recipe.js +14 -4
- package/dist/theme/slot-recipes/Combobox.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/DataWidget.recipe.d.ts +2 -0
- package/dist/theme/slot-recipes/DataWidget.recipe.js +65 -0
- package/dist/theme/slot-recipes/DataWidget.recipe.js.map +1 -0
- package/dist/theme/slot-recipes/Dialog.recipe.d.ts +13 -4
- package/dist/theme/slot-recipes/Dialog.recipe.js +40 -7
- package/dist/theme/slot-recipes/Dialog.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/GroupHeading.recipe.js +1 -1
- package/dist/theme/slot-recipes/GroupHeading.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/MarkdownCard.recipe.d.ts +3 -3
- package/dist/theme/slot-recipes/MarkdownCard.recipe.js +4 -3
- package/dist/theme/slot-recipes/MarkdownCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/NoteCard.recipe.js +14 -4
- package/dist/theme/slot-recipes/NoteCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Select.recipe.js +28 -11
- package/dist/theme/slot-recipes/Select.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/StepCard.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/Switch.recipe.d.ts +3 -3
- package/dist/theme/slot-recipes/Switch.recipe.js +12 -12
- package/dist/theme/slot-recipes/Switch.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/TagsInput.recipe.d.ts +9 -4
- package/dist/theme/slot-recipes/TagsInput.recipe.js +18 -5
- package/dist/theme/slot-recipes/TagsInput.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/TreeView.recipe.d.ts +1 -0
- package/dist/theme/slot-recipes/TreeView.recipe.js +4 -1
- package/dist/theme/slot-recipes/TreeView.recipe.js.map +1 -1
- package/dist/theme/slot-recipes/index.js +2 -0
- package/dist/theme/slot-recipes/index.js.map +1 -1
- package/dist/theme/text-styles.js.map +1 -1
- package/package.json +10 -7
- package/scripts/postinstall.cjs +38 -0
- package/dist/components/BitkitExplainerList/BitkitExplainerList.d.ts +0 -14
- package/dist/components/BitkitExplainerList/BitkitExplainerList.js +0 -54
- package/dist/components/BitkitExplainerList/BitkitExplainerList.js.map +0 -1
- package/dist/components/BitkitOrderedList/BitkitOrderedList.d.ts +0 -13
- package/dist/components/BitkitOrderedList/BitkitOrderedList.js +0 -30
- package/dist/components/BitkitOrderedList/BitkitOrderedList.js.map +0 -1
- package/dist/components/BitkitToggle/BitkitToggle.d.ts +0 -3
- package/dist/components/BitkitToggle/BitkitToggle.js +0 -123
- package/dist/components/BitkitToggle/BitkitToggle.js.map +0 -1
- package/dist/components/BitkitToggle/BitkitToggle.types.d.ts +0 -22
- package/dist/components/BitkitToggle/components/BitkitToggleHelperText.d.ts +0 -3
- package/dist/components/BitkitToggle/components/BitkitToggleHelperText.js.map +0 -1
- package/dist/components/BitkitToggle/components/BitkitToggleLabel.d.ts +0 -3
- package/dist/components/BitkitToggle/components/BitkitToggleLabel.js.map +0 -1
- package/dist/components/BitkitToggle/components/BitkitToggleReadOnly.d.ts +0 -4
- package/dist/components/BitkitToggle/components/BitkitToggleValueText.d.ts +0 -3
- package/dist/components/BitkitToggle/components/BitkitToggleValueText.js.map +0 -1
- package/dist/components/BitkitToggle/index.d.ts +0 -2
- package/dist/components/BitkitUnorderedList/BitkitUnorderedList.d.ts +0 -16
- package/dist/components/BitkitUnorderedList/BitkitUnorderedList.js +0 -52
- package/dist/components/BitkitUnorderedList/BitkitUnorderedList.js.map +0 -1
- package/dist/theme/slot-recipes/Combobox.recipe.d.ts +0 -11
|
@@ -14,7 +14,7 @@ declare const markdownCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefin
|
|
|
14
14
|
iconBar: {
|
|
15
15
|
backgroundColor: "status/success/bg";
|
|
16
16
|
borderColor: "status/success/border";
|
|
17
|
-
color: "
|
|
17
|
+
color: "sys/green/base";
|
|
18
18
|
};
|
|
19
19
|
root: {
|
|
20
20
|
borderColor: "status/success/border";
|
|
@@ -24,7 +24,7 @@ declare const markdownCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefin
|
|
|
24
24
|
iconBar: {
|
|
25
25
|
backgroundColor: "status/warning/bg";
|
|
26
26
|
borderColor: "status/warning/border";
|
|
27
|
-
color: "
|
|
27
|
+
color: "sys/yellow/base";
|
|
28
28
|
};
|
|
29
29
|
root: {
|
|
30
30
|
borderColor: "status/warning/border";
|
|
@@ -34,7 +34,7 @@ declare const markdownCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefin
|
|
|
34
34
|
iconBar: {
|
|
35
35
|
backgroundColor: "status/critical/bg";
|
|
36
36
|
borderColor: "status/critical/border";
|
|
37
|
-
color: "
|
|
37
|
+
color: "sys/red/base";
|
|
38
38
|
};
|
|
39
39
|
root: {
|
|
40
40
|
borderColor: "status/critical/border";
|
|
@@ -43,6 +43,7 @@ var markdownCardSlotRecipe = defineSlotRecipe({
|
|
|
43
43
|
footerButtons: {
|
|
44
44
|
justifyContent: "flex-end",
|
|
45
45
|
paddingBlockEnd: "16",
|
|
46
|
+
paddingBlockStart: "16",
|
|
46
47
|
paddingInlineEnd: "8"
|
|
47
48
|
}
|
|
48
49
|
},
|
|
@@ -59,7 +60,7 @@ var markdownCardSlotRecipe = defineSlotRecipe({
|
|
|
59
60
|
iconBar: {
|
|
60
61
|
backgroundColor: "status/success/bg",
|
|
61
62
|
borderColor: "status/success/border",
|
|
62
|
-
color: "
|
|
63
|
+
color: "sys/green/base"
|
|
63
64
|
},
|
|
64
65
|
root: { borderColor: "status/success/border" }
|
|
65
66
|
},
|
|
@@ -67,7 +68,7 @@ var markdownCardSlotRecipe = defineSlotRecipe({
|
|
|
67
68
|
iconBar: {
|
|
68
69
|
backgroundColor: "status/warning/bg",
|
|
69
70
|
borderColor: "status/warning/border",
|
|
70
|
-
color: "
|
|
71
|
+
color: "sys/yellow/base"
|
|
71
72
|
},
|
|
72
73
|
root: { borderColor: "status/warning/border" }
|
|
73
74
|
},
|
|
@@ -75,7 +76,7 @@ var markdownCardSlotRecipe = defineSlotRecipe({
|
|
|
75
76
|
iconBar: {
|
|
76
77
|
backgroundColor: "status/critical/bg",
|
|
77
78
|
borderColor: "status/critical/border",
|
|
78
|
-
color: "
|
|
79
|
+
color: "sys/red/base"
|
|
79
80
|
},
|
|
80
81
|
root: { borderColor: "status/critical/border" }
|
|
81
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/MarkdownCard.recipe.ts"],"sourcesContent":["import { cardAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst markdownCardSlotRecipe = defineSlotRecipe({\n className: 'markdown-card',\n slots: [...cardAnatomy.keys(), 'iconBar', 'content', 'gradient', 'footerButtons'],\n base: {\n root: {\n backgroundColor: 'background/primary',\n overflow: 'hidden',\n },\n iconBar: {\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'center',\n paddingInline: '8',\n paddingBlock: '12',\n flexShrink: 0,\n borderInlineEnd: '1px solid',\n },\n content: {\n flex: 1,\n paddingInlineStart: '16',\n paddingInlineEnd: '24',\n paddingBlockStart: '24',\n minWidth: 0,\n position: 'relative',\n },\n gradient: {\n background: 'linear-gradient(to top, {colors.background.primary} 12.5%, transparent)',\n bottom: 0,\n height: '128',\n insetInline: 0,\n pointerEvents: 'none',\n position: 'absolute',\n },\n footerButtons: {\n justifyContent: 'flex-end',\n paddingBlockEnd: '16',\n paddingInlineEnd: '8',\n },\n },\n variants: {\n status: {\n info: {\n iconBar: {\n backgroundColor: 'background/secondary',\n borderColor: 'border/regular',\n color: 'icon/secondary',\n },\n root: {\n borderColor: 'border/regular',\n },\n },\n success: {\n iconBar: {\n backgroundColor: 'status/success/bg',\n borderColor: 'status/success/border',\n color: '
|
|
1
|
+
{"version":3,"file":"MarkdownCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/MarkdownCard.recipe.ts"],"sourcesContent":["import { cardAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst markdownCardSlotRecipe = defineSlotRecipe({\n className: 'markdown-card',\n slots: [...cardAnatomy.keys(), 'iconBar', 'content', 'gradient', 'footerButtons'],\n base: {\n root: {\n backgroundColor: 'background/primary',\n overflow: 'hidden',\n },\n iconBar: {\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'center',\n paddingInline: '8',\n paddingBlock: '12',\n flexShrink: 0,\n borderInlineEnd: '1px solid',\n },\n content: {\n flex: 1,\n paddingInlineStart: '16',\n paddingInlineEnd: '24',\n paddingBlockStart: '24',\n minWidth: 0,\n position: 'relative',\n },\n gradient: {\n background: 'linear-gradient(to top, {colors.background.primary} 12.5%, transparent)',\n bottom: 0,\n height: '128',\n insetInline: 0,\n pointerEvents: 'none',\n position: 'absolute',\n },\n footerButtons: {\n justifyContent: 'flex-end',\n paddingBlockEnd: '16',\n paddingBlockStart: '16',\n paddingInlineEnd: '8',\n },\n },\n variants: {\n status: {\n info: {\n iconBar: {\n backgroundColor: 'background/secondary',\n borderColor: 'border/regular',\n color: 'icon/secondary',\n },\n root: {\n borderColor: 'border/regular',\n },\n },\n success: {\n iconBar: {\n backgroundColor: 'status/success/bg',\n borderColor: 'status/success/border',\n color: 'sys/green/base',\n },\n root: {\n borderColor: 'status/success/border',\n },\n },\n warning: {\n iconBar: {\n backgroundColor: 'status/warning/bg',\n borderColor: 'status/warning/border',\n color: 'sys/yellow/base',\n },\n root: {\n borderColor: 'status/warning/border',\n },\n },\n critical: {\n iconBar: {\n backgroundColor: 'status/critical/bg',\n borderColor: 'status/critical/border',\n color: 'sys/red/base',\n },\n root: {\n borderColor: 'status/critical/border',\n },\n },\n },\n },\n defaultVariants: {\n status: 'info',\n },\n});\n\nexport default markdownCardSlotRecipe;\n"],"mappings":";;;AAGA,IAAM,yBAAyB,iBAAiB;CAC9C,WAAW;CACX,OAAO;EAAC,GAAG,YAAY,MAAM;EAAE;EAAW;EAAW;EAAY;EAAgB;CACjF,MAAM;EACJ,MAAM;GACJ,iBAAiB;GACjB,UAAU;GACX;EACD,SAAS;GACP,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,eAAe;GACf,cAAc;GACd,YAAY;GACZ,iBAAiB;GAClB;EACD,SAAS;GACP,MAAM;GACN,oBAAoB;GACpB,kBAAkB;GAClB,mBAAmB;GACnB,UAAU;GACV,UAAU;GACX;EACD,UAAU;GACR,YAAY;GACZ,QAAQ;GACR,QAAQ;GACR,aAAa;GACb,eAAe;GACf,UAAU;GACX;EACD,eAAe;GACb,gBAAgB;GAChB,iBAAiB;GACjB,mBAAmB;GACnB,kBAAkB;GACnB;EACF;CACD,UAAU,EACR,QAAQ;EACN,MAAM;GACJ,SAAS;IACP,iBAAiB;IACjB,aAAa;IACb,OAAO;IACR;GACD,MAAM,EACJ,aAAa,kBACd;GACF;EACD,SAAS;GACP,SAAS;IACP,iBAAiB;IACjB,aAAa;IACb,OAAO;IACR;GACD,MAAM,EACJ,aAAa,yBACd;GACF;EACD,SAAS;GACP,SAAS;IACP,iBAAiB;IACjB,aAAa;IACb,OAAO;IACR;GACD,MAAM,EACJ,aAAa,yBACd;GACF;EACD,UAAU;GACR,SAAS;IACP,iBAAiB;IACjB,aAAa;IACb,OAAO;IACR;GACD,MAAM,EACJ,aAAa,0BACd;GACF;EACF,EACF;CACD,iBAAiB,EACf,QAAQ,QACT;CACF,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import { ICONS_MAP } from "../common/AlertAndToast.common.js";
|
|
2
1
|
import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
|
|
3
2
|
//#region lib/theme/slot-recipes/NoteCard.recipe.ts
|
|
3
|
+
var SIDEBAR_ICON_COLOR_MAP = {
|
|
4
|
+
ai: "sys/indigo/base",
|
|
5
|
+
critical: "sys/red/base",
|
|
6
|
+
info: "sys/blue/base",
|
|
7
|
+
progress: "sys/purple/base",
|
|
8
|
+
success: "sys/green/base",
|
|
9
|
+
warning: "sys/yellow/base"
|
|
10
|
+
};
|
|
4
11
|
var TITLE_COLOR_MAP = {
|
|
5
12
|
ai: "status/ai/text",
|
|
6
13
|
critical: "text/negative",
|
|
@@ -12,7 +19,7 @@ var TITLE_COLOR_MAP = {
|
|
|
12
19
|
var getStatusVariant = (v) => ({
|
|
13
20
|
iconBar: {
|
|
14
21
|
backgroundColor: `status/${v}/bg`,
|
|
15
|
-
color:
|
|
22
|
+
color: SIDEBAR_ICON_COLOR_MAP[v]
|
|
16
23
|
},
|
|
17
24
|
messageSolo: { color: TITLE_COLOR_MAP[v] },
|
|
18
25
|
root: { borderColor: `status/${v}/border` },
|
|
@@ -78,14 +85,17 @@ var noteCardSlotRecipe = defineSlotRecipe({
|
|
|
78
85
|
textStyle: "comp/notification/message",
|
|
79
86
|
color: "text/body"
|
|
80
87
|
},
|
|
81
|
-
messageSolo: {
|
|
88
|
+
messageSolo: {
|
|
89
|
+
paddingBlockStart: "2",
|
|
90
|
+
textStyle: "comp/notification/message"
|
|
91
|
+
},
|
|
82
92
|
actionArea: { flexShrink: 0 }
|
|
83
93
|
},
|
|
84
94
|
variants: { status: {
|
|
85
95
|
ai: {
|
|
86
96
|
iconBar: {
|
|
87
97
|
background: "{colors.ai.background.minimal-vertical}",
|
|
88
|
-
color:
|
|
98
|
+
color: SIDEBAR_ICON_COLOR_MAP.ai
|
|
89
99
|
},
|
|
90
100
|
messageSolo: { color: TITLE_COLOR_MAP.ai },
|
|
91
101
|
root: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoteCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/NoteCard.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport {
|
|
1
|
+
{"version":3,"file":"NoteCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/NoteCard.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { type NotificationVariant } from '../common/AlertAndToast.common';\n\nconst SIDEBAR_ICON_COLOR_MAP: Record<NotificationVariant, string> = {\n ai: 'sys/indigo/base',\n critical: 'sys/red/base',\n info: 'sys/blue/base',\n progress: 'sys/purple/base',\n success: 'sys/green/base',\n warning: 'sys/yellow/base',\n};\n\nconst TITLE_COLOR_MAP: Record<NotificationVariant, string> = {\n ai: 'status/ai/text',\n critical: 'text/negative',\n info: 'text/primary',\n progress: 'text/secondary',\n success: 'text/positive',\n warning: 'text/primary',\n};\n\nconst getStatusVariant = (v: NotificationVariant) => ({\n iconBar: {\n backgroundColor: `status/${v}/bg`,\n color: SIDEBAR_ICON_COLOR_MAP[v],\n },\n messageSolo: { color: TITLE_COLOR_MAP[v] },\n root: { borderColor: `status/${v}/border` },\n title: { color: TITLE_COLOR_MAP[v] },\n});\n\nconst noteCardSlotRecipe = defineSlotRecipe({\n className: 'note-card',\n slots: ['root', 'iconBar', 'iconWrapper', 'content', 'messageBlock', 'title', 'message', 'messageSolo', 'actionArea'],\n base: {\n root: {\n alignItems: 'stretch',\n backgroundColor: 'background/primary',\n border: '1px solid',\n borderRadius: '8',\n display: 'flex',\n overflow: 'hidden',\n },\n iconBar: {\n alignItems: 'flex-start',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n paddingBlock: '12',\n paddingInline: '8',\n },\n iconWrapper: {\n alignItems: 'center',\n display: 'flex',\n height: '24',\n justifyContent: 'center',\n width: '24',\n },\n content: {\n alignItems: 'center',\n display: 'flex',\n flex: 1,\n gap: '24',\n minWidth: 0,\n paddingBlock: '12',\n paddingInlineEnd: '16',\n paddingInlineStart: '12',\n },\n messageBlock: {\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n gap: '4',\n minWidth: 0,\n width: '100%',\n },\n title: {\n textStyle: 'comp/notification/title',\n },\n message: {\n textStyle: 'comp/notification/message',\n color: 'text/body',\n },\n messageSolo: {\n paddingBlockStart: '2',\n textStyle: 'comp/notification/message',\n },\n actionArea: {\n flexShrink: 0,\n },\n },\n variants: {\n status: {\n ai: {\n iconBar: {\n background: '{colors.ai.background.minimal-vertical}',\n color: SIDEBAR_ICON_COLOR_MAP.ai,\n },\n messageSolo: { color: TITLE_COLOR_MAP.ai },\n root: {\n backgroundColor: 'transparent',\n border: '1px solid transparent',\n background:\n 'linear-gradient({colors.background.primary}, {colors.background.primary}) padding-box, {colors.status.ai.border} border-box',\n },\n title: { color: TITLE_COLOR_MAP.ai },\n },\n critical: getStatusVariant('critical'),\n info: getStatusVariant('info'),\n progress: getStatusVariant('progress'),\n success: getStatusVariant('success'),\n warning: getStatusVariant('warning'),\n },\n },\n defaultVariants: {\n status: 'info',\n },\n});\n\nexport default noteCardSlotRecipe;\n"],"mappings":";;AAIA,IAAM,yBAA8D;CAClE,IAAI;CACJ,UAAU;CACV,MAAM;CACN,UAAU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AAO,EAAE,OAAO,gBAAgB,IAAI;GACrC;EACD,UAAU,iBAAiB,WAAW;EACtC,MAAM,iBAAiB,OAAO;EAC9B,UAAU,iBAAiB,WAAW;EACtC,SAAS,iBAAiB,UAAU;EACpC,SAAS,iBAAiB,UAAU;EACrC,EACF;CACD,iBAAiB,EACf,QAAQ,QACT;CACF,CAAC"}
|
|
@@ -140,8 +140,6 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
140
140
|
display: "inline-flex",
|
|
141
141
|
alignItems: "center",
|
|
142
142
|
justifyContent: "center",
|
|
143
|
-
width: "24",
|
|
144
|
-
height: "24",
|
|
145
143
|
flexShrink: 0,
|
|
146
144
|
borderWidth: rem(1),
|
|
147
145
|
borderColor: "border/regular",
|
|
@@ -199,21 +197,23 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
199
197
|
flexShrink: 0,
|
|
200
198
|
_hover: { background: "background/hover" }
|
|
201
199
|
},
|
|
202
|
-
|
|
200
|
+
createItemContainer: {
|
|
203
201
|
borderTop: "1px solid",
|
|
204
202
|
borderColor: "border/minimal",
|
|
203
|
+
paddingBlock: "8",
|
|
204
|
+
flexShrink: 0
|
|
205
|
+
},
|
|
206
|
+
createItem: {
|
|
205
207
|
display: "flex",
|
|
206
208
|
alignItems: "center",
|
|
207
209
|
gap: "12",
|
|
208
210
|
paddingInlineEnd: "24",
|
|
209
211
|
paddingInlineStart: "16",
|
|
210
|
-
paddingBlock: "20",
|
|
211
212
|
color: "text/primary",
|
|
212
|
-
textStyle: "body/lg/regular",
|
|
213
213
|
width: "100%",
|
|
214
214
|
cursor: "pointer",
|
|
215
215
|
textAlign: "start",
|
|
216
|
-
|
|
216
|
+
_icon: { color: "icon/secondary" },
|
|
217
217
|
_hover: {
|
|
218
218
|
background: "button/secondary/bg-hover",
|
|
219
219
|
_active: { background: "button/secondary/bg-active" }
|
|
@@ -225,6 +225,10 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
225
225
|
variants: { size: {
|
|
226
226
|
lg: {
|
|
227
227
|
...variants.size.lg,
|
|
228
|
+
checkbox: {
|
|
229
|
+
width: "24",
|
|
230
|
+
height: "24"
|
|
231
|
+
},
|
|
228
232
|
item: {
|
|
229
233
|
...variants.size.lg.item,
|
|
230
234
|
"&:has([data-slot=\"avatar\"])": {
|
|
@@ -234,6 +238,7 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
234
238
|
gap: "8"
|
|
235
239
|
},
|
|
236
240
|
"&:has([data-slot=\"checkbox\"])": {
|
|
241
|
+
minHeight: "48",
|
|
237
242
|
paddingInlineEnd: "24",
|
|
238
243
|
paddingBlock: "12",
|
|
239
244
|
gap: "12"
|
|
@@ -242,10 +247,16 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
242
247
|
itemList: { maxHeight: rem(280) },
|
|
243
248
|
itemLabel: {
|
|
244
249
|
textStyle: "body/lg/regular",
|
|
245
|
-
lineHeight:
|
|
250
|
+
lineHeight: "normal"
|
|
246
251
|
},
|
|
247
252
|
itemLoadingLabel: { textStyle: "body/lg/regular" },
|
|
248
253
|
emptyState: { paddingBlock: "12" },
|
|
254
|
+
createItem: {
|
|
255
|
+
minHeight: "48",
|
|
256
|
+
paddingBlock: "12",
|
|
257
|
+
textStyle: "body/lg/regular",
|
|
258
|
+
lineHeight: "normal"
|
|
259
|
+
},
|
|
249
260
|
searchInputGroup: {
|
|
250
261
|
height: rem(56),
|
|
251
262
|
paddingBlock: "16"
|
|
@@ -255,6 +266,10 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
255
266
|
},
|
|
256
267
|
md: {
|
|
257
268
|
...variants.size.md,
|
|
269
|
+
checkbox: {
|
|
270
|
+
width: "20",
|
|
271
|
+
height: "20"
|
|
272
|
+
},
|
|
258
273
|
item: {
|
|
259
274
|
...variants.size.md.item,
|
|
260
275
|
"&:has([data-slot=\"avatar\"])": {
|
|
@@ -264,6 +279,7 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
264
279
|
gap: "8"
|
|
265
280
|
},
|
|
266
281
|
"&:has([data-slot=\"checkbox\"])": {
|
|
282
|
+
minHeight: "40",
|
|
267
283
|
paddingInlineEnd: "24",
|
|
268
284
|
paddingBlock: "8",
|
|
269
285
|
gap: "12"
|
|
@@ -272,14 +288,15 @@ var selectSlotRecipe = defineSlotRecipe({
|
|
|
272
288
|
itemList: { maxHeight: rem(236) },
|
|
273
289
|
itemLabel: {
|
|
274
290
|
textStyle: "body/md/regular",
|
|
275
|
-
lineHeight:
|
|
291
|
+
lineHeight: "normal"
|
|
276
292
|
},
|
|
277
293
|
itemLoadingLabel: { textStyle: "body/md/regular" },
|
|
278
294
|
emptyState: { paddingBlock: "8" },
|
|
279
295
|
createItem: {
|
|
280
|
-
|
|
281
|
-
paddingBlock: "
|
|
282
|
-
textStyle: "body/md/regular"
|
|
296
|
+
minHeight: "40",
|
|
297
|
+
paddingBlock: "8",
|
|
298
|
+
textStyle: "body/md/regular",
|
|
299
|
+
lineHeight: "normal"
|
|
283
300
|
},
|
|
284
301
|
trigger: {
|
|
285
302
|
textStyle: "body/md/regular",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Select.recipe.ts"],"sourcesContent":["import { selectAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { base, variants } from '../common/ComboboxAndSelect.common';\nimport { rem } from '../themeUtils';\n\nexport const selectSlotRecipe = defineSlotRecipe({\n className: 'select',\n slots: [\n ...selectAnatomy.keys(),\n 'searchInputGroup',\n 'searchInput',\n 'searchClear',\n 'createItemContainer',\n 'createItem',\n 'checkbox',\n 'checkmark',\n 'itemList',\n 'itemContent',\n 'itemLabel',\n 'itemHelperText',\n 'itemLoading',\n 'itemLoadingLabel',\n 'emptyState',\n ],\n base: {\n trigger: {\n display: 'flex',\n alignItems: 'center',\n borderWidth: rem(1),\n borderColor: 'border/strong',\n background: 'bg.muted',\n color: 'input/text/inputValue',\n gap: '8',\n justifyContent: 'space-between',\n paddingInline: '16',\n paddingBlock: rem(11),\n borderRadius: '4',\n userSelect: 'none',\n textAlign: 'start',\n focusVisibleRing: 'inside',\n width: '100%',\n _placeholderShown: {\n color: 'text/secondary',\n },\n _disabled: {\n color: 'text/disabled',\n background: 'background/disabled',\n },\n _invalid: {\n borderColor: 'border/error',\n },\n _readOnly: {\n background: 'background/disabled',\n },\n },\n indicatorGroup: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n position: 'absolute',\n insetEnd: 0,\n top: 0,\n bottom: 0,\n paddingInline: '16',\n pointerEvents: 'none',\n },\n indicator: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: 'icon/secondary',\n _disabled: {\n color: 'icon/disabled',\n },\n _readOnly: {\n color: 'icon/on-disabled',\n },\n },\n ...base,\n content: {\n ...base.content,\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n },\n item: {\n ...base.item,\n _active: {\n background: 'background/active',\n },\n _selected: {\n background: 'background/selected',\n _highlighted: {\n background: 'background/selected-hover',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n color: 'text/disabled',\n _highlighted: {\n background: 'transparent',\n },\n },\n },\n control: {\n position: 'relative',\n width: '100%',\n },\n itemList: {\n flex: '1 1 auto',\n minHeight: 0,\n overflowY: 'auto',\n paddingBlock: '8',\n },\n itemContent: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n flex: '1 0 0',\n minWidth: 0,\n },\n itemLoading: {\n flexShrink: 0,\n },\n itemLoadingLabel: {\n color: 'text/secondary',\n flex: '1 0 0',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n emptyState: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n paddingInline: '16',\n },\n itemLabel: {\n color: 'text/body',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n itemHelperText: {\n color: 'text/helper',\n textStyle: 'body/sm/regular',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n checkbox: {\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '24',\n height: '24',\n flexShrink: 0,\n borderWidth: rem(1),\n borderColor: 'border/regular',\n borderRadius: '4',\n background: 'background/primary',\n boxShadow: 'inset/field',\n color: 'icon/on-color',\n '[data-state=checked] &': {\n background: 'input/checkbox/selection',\n borderColor: 'input/checkbox/selection',\n boxShadow: 'none',\n },\n '[data-disabled] &': {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n },\n },\n checkmark: {\n opacity: 0,\n color: 'icon/on-color',\n '[data-state=checked] &': {\n opacity: 1,\n },\n },\n searchInputGroup: {\n borderBottom: '1px solid',\n borderColor: 'border/minimal',\n background: 'background/primary',\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineStart: '16',\n paddingInlineEnd: '12',\n overflow: 'hidden',\n flexShrink: 0,\n _hover: {\n background: 'background/secondary',\n },\n _focusWithin: {\n background: 'background/primary',\n },\n },\n searchInput: {\n flex: '1 0 0',\n minWidth: 0,\n border: 'none',\n outline: 'none',\n background: 'transparent',\n color: 'input/text/inputValue',\n paddingInline: 0,\n paddingBlock: 0,\n _placeholder: {\n color: 'input/text/placeholder',\n },\n },\n searchClear: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '4',\n color: 'icon/primary',\n cursor: 'pointer',\n flexShrink: 0,\n _hover: {\n background: 'background/hover',\n },\n },\n createItem: {\n borderTop: '1px solid',\n borderColor: 'border/minimal',\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineEnd: '24',\n paddingInlineStart: '16',\n paddingBlock: '20',\n color: 'text/primary',\n textStyle: 'body/lg/regular',\n width: '100%',\n cursor: 'pointer',\n textAlign: 'start',\n flexShrink: 0,\n _hover: {\n background: 'button/secondary/bg-hover',\n _active: {\n background: 'button/secondary/bg-active',\n },\n },\n _active: {\n background: 'button/secondary/bg-active',\n },\n _focusVisible: {\n outlineOffset: '-3px',\n },\n },\n },\n\n variants: {\n size: {\n lg: {\n ...variants.size.lg,\n item: {\n ...variants.size.lg.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n paddingInlineEnd: '24',\n paddingBlock: '12',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 48px item + 16px paddingBlock\n maxHeight: rem(280),\n },\n itemLabel: {\n textStyle: 'body/lg/regular',\n lineHeight: rem(24),\n },\n itemLoadingLabel: {\n textStyle: 'body/lg/regular',\n },\n emptyState: {\n paddingBlock: '12',\n },\n searchInputGroup: {\n height: rem(56),\n paddingBlock: '16',\n },\n searchInput: {\n textStyle: 'body/lg/regular',\n },\n searchClear: {\n padding: '8',\n },\n },\n md: {\n ...variants.size.md,\n item: {\n ...variants.size.md.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '4',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 40px item (checkbox/avatar row) + 16px paddingBlock\n maxHeight: rem(236),\n },\n itemLabel: {\n textStyle: 'body/md/regular',\n lineHeight: rem(20),\n },\n itemLoadingLabel: {\n textStyle: 'body/md/regular',\n },\n emptyState: {\n paddingBlock: '8',\n },\n createItem: {\n color: 'text/primary',\n paddingBlock: '16',\n textStyle: 'body/md/regular',\n },\n trigger: {\n textStyle: 'body/md/regular',\n paddingBlock: rem(9),\n },\n searchInputGroup: {\n height: '48',\n paddingBlock: '12',\n },\n searchInput: {\n textStyle: 'body/md/regular',\n },\n searchClear: {\n padding: '4',\n },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n"],"mappings":";;;;;AAMA,IAAa,mBAAmB,iBAAiB;CAC/C,WAAW;CACX,OAAO;EACL,GAAG,cAAc,MAAM;EACvB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACD,MAAM;EACJ,SAAS;GACP,SAAS;GACT,YAAY;GACZ,aAAa,IAAI,EAAE;GACnB,aAAa;GACb,YAAY;GACZ,OAAO;GACP,KAAK;GACL,gBAAgB;GAChB,eAAe;GACf,cAAc,IAAI,GAAG;GACrB,cAAc;GACd,YAAY;GACZ,WAAW;GACX,kBAAkB;GAClB,OAAO;GACP,mBAAmB,EACjB,OAAO,kBACR;GACD,WAAW;IACT,OAAO;IACP,YAAY;IACb;GACD,UAAU,EACR,aAAa,gBACd;GACD,WAAW,EACT,YAAY,uBACb;GACF;EACD,gBAAgB;GACd,SAAS;GACT,YAAY;GACZ,KAAK;GACL,UAAU;GACV,UAAU;GACV,KAAK;GACL,QAAQ;GACR,eAAe;GACf,eAAe;GAChB;EACD,WAAW;GACT,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACP,WAAW,EACT,OAAO,iBACR;GACD,WAAW,EACT,OAAO,oBACR;GACF;EACD,GAAG;EACH,SAAS;GACP,GAAG,KAAK;GACR,UAAU;GACV,SAAS;GACT,eAAe;GAChB;EACD,MAAM;GACJ,GAAG,KAAK;GACR,SAAS,EACP,YAAY,qBACb;GACD,WAAW;IACT,YAAY;IACZ,cAAc,EACZ,YAAY,6BACb;IACF;GACD,WAAW;IACT,QAAQ;IACR,OAAO;IACP,cAAc,EACZ,YAAY,eACb;IACF;GACF;EACD,SAAS;GACP,UAAU;GACV,OAAO;GACR;EACD,UAAU;GACR,MAAM;GACN,WAAW;GACX,WAAW;GACX,cAAc;GACf;EACD,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IACP,WAAW;IACX,cAAc,IAAI,EAAE;IACrB;GACD,kBAAkB;IAChB,QAAQ;IACR,cAAc;IACf;GACD,aAAa,EACX,WAAW,mBACZ;GACD,aAAa,EACX,SAAS,KACV;GACF;EACF,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Select.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Select.recipe.ts"],"sourcesContent":["import { selectAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { base, variants } from '../common/ComboboxAndSelect.common';\nimport { rem } from '../themeUtils';\n\nexport const selectSlotRecipe = defineSlotRecipe({\n className: 'select',\n slots: [\n ...selectAnatomy.keys(),\n 'searchInputGroup',\n 'searchInput',\n 'searchClear',\n 'createItemContainer',\n 'createItem',\n 'checkbox',\n 'checkmark',\n 'itemList',\n 'itemContent',\n 'itemLabel',\n 'itemHelperText',\n 'itemLoading',\n 'itemLoadingLabel',\n 'emptyState',\n ],\n base: {\n trigger: {\n display: 'flex',\n alignItems: 'center',\n borderWidth: rem(1),\n borderColor: 'border/strong',\n background: 'bg.muted',\n color: 'input/text/inputValue',\n gap: '8',\n justifyContent: 'space-between',\n paddingInline: '16',\n paddingBlock: rem(11),\n borderRadius: '4',\n userSelect: 'none',\n textAlign: 'start',\n focusVisibleRing: 'inside',\n width: '100%',\n _placeholderShown: {\n color: 'text/secondary',\n },\n _disabled: {\n color: 'text/disabled',\n background: 'background/disabled',\n },\n _invalid: {\n borderColor: 'border/error',\n },\n _readOnly: {\n background: 'background/disabled',\n },\n },\n indicatorGroup: {\n display: 'flex',\n alignItems: 'center',\n gap: '8',\n position: 'absolute',\n insetEnd: 0,\n top: 0,\n bottom: 0,\n paddingInline: '16',\n pointerEvents: 'none',\n },\n indicator: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n color: 'icon/secondary',\n _disabled: {\n color: 'icon/disabled',\n },\n _readOnly: {\n color: 'icon/on-disabled',\n },\n },\n ...base,\n content: {\n ...base.content,\n overflow: 'hidden',\n display: 'flex',\n flexDirection: 'column',\n },\n item: {\n ...base.item,\n _active: {\n background: 'background/active',\n },\n _selected: {\n background: 'background/selected',\n _highlighted: {\n background: 'background/selected-hover',\n },\n },\n _disabled: {\n cursor: 'not-allowed',\n color: 'text/disabled',\n _highlighted: {\n background: 'transparent',\n },\n },\n },\n control: {\n position: 'relative',\n width: '100%',\n },\n itemList: {\n flex: '1 1 auto',\n minHeight: 0,\n overflowY: 'auto',\n paddingBlock: '8',\n },\n itemContent: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n flex: '1 0 0',\n minWidth: 0,\n },\n itemLoading: {\n flexShrink: 0,\n },\n itemLoadingLabel: {\n color: 'text/secondary',\n flex: '1 0 0',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n emptyState: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n paddingInline: '16',\n },\n itemLabel: {\n color: 'text/body',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n itemHelperText: {\n color: 'text/helper',\n textStyle: 'body/sm/regular',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n maxWidth: '100%',\n '[data-disabled] &': {\n color: 'text/disabled',\n },\n },\n checkbox: {\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexShrink: 0,\n borderWidth: rem(1),\n borderColor: 'border/regular',\n borderRadius: '4',\n background: 'background/primary',\n boxShadow: 'inset/field',\n color: 'icon/on-color',\n '[data-state=checked] &': {\n background: 'input/checkbox/selection',\n borderColor: 'input/checkbox/selection',\n boxShadow: 'none',\n },\n '[data-disabled] &': {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n },\n },\n checkmark: {\n opacity: 0,\n color: 'icon/on-color',\n '[data-state=checked] &': {\n opacity: 1,\n },\n },\n searchInputGroup: {\n borderBottom: '1px solid',\n borderColor: 'border/minimal',\n background: 'background/primary',\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineStart: '16',\n paddingInlineEnd: '12',\n overflow: 'hidden',\n flexShrink: 0,\n _hover: {\n background: 'background/secondary',\n },\n _focusWithin: {\n background: 'background/primary',\n },\n },\n searchInput: {\n flex: '1 0 0',\n minWidth: 0,\n border: 'none',\n outline: 'none',\n background: 'transparent',\n color: 'input/text/inputValue',\n paddingInline: 0,\n paddingBlock: 0,\n _placeholder: {\n color: 'input/text/placeholder',\n },\n },\n searchClear: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: '4',\n color: 'icon/primary',\n cursor: 'pointer',\n flexShrink: 0,\n _hover: {\n background: 'background/hover',\n },\n },\n createItemContainer: {\n borderTop: '1px solid',\n borderColor: 'border/minimal',\n paddingBlock: '8',\n flexShrink: 0,\n },\n createItem: {\n display: 'flex',\n alignItems: 'center',\n gap: '12',\n paddingInlineEnd: '24',\n paddingInlineStart: '16',\n color: 'text/primary',\n width: '100%',\n cursor: 'pointer',\n textAlign: 'start',\n _icon: {\n color: 'icon/secondary',\n },\n _hover: {\n background: 'button/secondary/bg-hover',\n _active: {\n background: 'button/secondary/bg-active',\n },\n },\n _active: {\n background: 'button/secondary/bg-active',\n },\n _focusVisible: {\n outlineOffset: '-3px',\n },\n },\n },\n\n variants: {\n size: {\n lg: {\n ...variants.size.lg,\n checkbox: {\n width: '24',\n height: '24',\n },\n item: {\n ...variants.size.lg.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '48',\n paddingInlineEnd: '24',\n paddingBlock: '12',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 48px item + 16px paddingBlock\n maxHeight: rem(280),\n },\n itemLabel: {\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/lg/regular',\n },\n emptyState: {\n paddingBlock: '12',\n },\n createItem: {\n minHeight: '48',\n paddingBlock: '12',\n textStyle: 'body/lg/regular',\n lineHeight: 'normal',\n },\n searchInputGroup: {\n height: rem(56),\n paddingBlock: '16',\n },\n searchInput: {\n textStyle: 'body/lg/regular',\n },\n searchClear: {\n padding: '8',\n },\n },\n md: {\n ...variants.size.md,\n checkbox: {\n width: '20',\n height: '20',\n },\n item: {\n ...variants.size.md.item,\n '&:has([data-slot=\"avatar\"])': {\n paddingInlineStart: '12',\n paddingInlineEnd: '24',\n paddingBlock: '4',\n gap: '8',\n },\n '&:has([data-slot=\"checkbox\"])': {\n minHeight: '40',\n paddingInlineEnd: '24',\n paddingBlock: '8',\n gap: '12',\n },\n },\n itemList: {\n // 5.5 × 40px item (checkbox/avatar row) + 16px paddingBlock\n maxHeight: rem(236),\n },\n itemLabel: {\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n itemLoadingLabel: {\n textStyle: 'body/md/regular',\n },\n emptyState: {\n paddingBlock: '8',\n },\n createItem: {\n minHeight: '40',\n paddingBlock: '8',\n textStyle: 'body/md/regular',\n lineHeight: 'normal',\n },\n trigger: {\n textStyle: 'body/md/regular',\n paddingBlock: rem(9),\n },\n searchInputGroup: {\n height: '48',\n paddingBlock: '12',\n },\n searchInput: {\n textStyle: 'body/md/regular',\n },\n searchClear: {\n padding: '4',\n },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n"],"mappings":";;;;;AAMA,IAAa,mBAAmB,iBAAiB;CAC/C,WAAW;CACX,OAAO;EACL,GAAG,cAAc,MAAM;EACvB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACD,MAAM;EACJ,SAAS;GACP,SAAS;GACT,YAAY;GACZ,aAAa,IAAI,EAAE;GACnB,aAAa;GACb,YAAY;GACZ,OAAO;GACP,KAAK;GACL,gBAAgB;GAChB,eAAe;GACf,cAAc,IAAI,GAAG;GACrB,cAAc;GACd,YAAY;GACZ,WAAW;GACX,kBAAkB;GAClB,OAAO;GACP,mBAAmB,EACjB,OAAO,kBACR;GACD,WAAW;IACT,OAAO;IACP,YAAY;IACb;GACD,UAAU,EACR,aAAa,gBACd;GACD,WAAW,EACT,YAAY,uBACb;GACF;EACD,gBAAgB;GACd,SAAS;GACT,YAAY;GACZ,KAAK;GACL,UAAU;GACV,UAAU;GACV,KAAK;GACL,QAAQ;GACR,eAAe;GACf,eAAe;GAChB;EACD,WAAW;GACT,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,OAAO;GACP,WAAW,EACT,OAAO,iBACR;GACD,WAAW,EACT,OAAO,oBACR;GACF;EACD,GAAG;EACH,SAAS;GACP,GAAG,KAAK;GACR,UAAU;GACV,SAAS;GACT,eAAe;GAChB;EACD,MAAM;GACJ,GAAG,KAAK;GACR,SAAS,EACP,YAAY,qBACb;GACD,WAAW;IACT,YAAY;IACZ,cAAc,EACZ,YAAY,6BACb;IACF;GACD,WAAW;IACT,QAAQ;IACR,OAAO;IACP,cAAc,EACZ,YAAY,eACb;IACF;GACF;EACD,SAAS;GACP,UAAU;GACV,OAAO;GACR;EACD,UAAU;GACR,MAAM;GACN,WAAW;GACX,WAAW;GACX,cAAc;GACf;EACD,aAAa;GACX,SAAS;GACT,eAAe;GACf,YAAY;GACZ,MAAM;GACN,UAAU;GACX;EACD,aAAa,EACX,YAAY,GACb;EACD,kBAAkB;GAChB,OAAO;GACP,MAAM;GACN,UAAU;GACV,UAAU;GACV,cAAc;GACd,YAAY;GACb;EACD,YAAY;GACV,SAAS;GACT,eAAe;GACf,YAAY;GACZ,eAAe;GAChB;EACD,WAAW;GACT,OAAO;GACP,YAAY;GACZ,UAAU;GACV,cAAc;GACd,UAAU;GACV,qBAAqB,EACnB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MAAM,MACP;CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/StepCard.recipe.ts"],"sourcesContent":["import { cardAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst stepsCardAnatomy = cardAnatomy.extendWith('titleGroup');\n\nconst stepCardSlotRecipe = defineSlotRecipe({\n className: 'steps-card',\n slots: stepsCardAnatomy.keys(),\n base: {\n root: {\n backgroundColor: 'background/primary',\n border: '1px solid',\n borderColor: 'border/minimal',\n borderRadius: '8',\n boxShadow: 'elevation/md',\n overflow: 'hidden',\n },\n header: {\n paddingBlockStart: '32',\n paddingInline: '32',\n },\n body: {\n display: 'flex',\n flexDirection: 'column',\n gap: '24',\n paddingBlockEnd: '48',\n paddingBlockStart: '32',\n paddingInline: '32',\n },\n titleGroup: {\n display: 'flex',\n flexDirection: 'column',\n gap: '4',\n },\n title: {\n color: 'text/primary',\n textStyle: 'heading/h3',\n },\n description: {\n color: 'text/secondary',\n textStyle: 'body/md/regular',\n },\n footer: {\n alignItems: 'center',\n borderBlockStart: '1px solid',\n borderColor: 'border/minimal',\n display: 'flex',\n gap: '16',\n justifyContent: 'flex-end',\n padding: '32',\n },\n },\n});\n\nexport default stepCardSlotRecipe;\n"],"mappings":";;;AAKA,IAAM,qBAAqB,iBAAiB;CAC1C,WAAW;CACX,OAJuB,YAAY,WAAW,
|
|
1
|
+
{"version":3,"file":"StepCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/StepCard.recipe.ts"],"sourcesContent":["import { cardAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst stepsCardAnatomy = cardAnatomy.extendWith('titleGroup');\n\nconst stepCardSlotRecipe = defineSlotRecipe({\n className: 'steps-card',\n slots: stepsCardAnatomy.keys(),\n base: {\n root: {\n backgroundColor: 'background/primary',\n border: '1px solid',\n borderColor: 'border/minimal',\n borderRadius: '8',\n boxShadow: 'elevation/md',\n overflow: 'hidden',\n },\n header: {\n paddingBlockStart: '32',\n paddingInline: '32',\n },\n body: {\n display: 'flex',\n flexDirection: 'column',\n gap: '24',\n paddingBlockEnd: '48',\n paddingBlockStart: '32',\n paddingInline: '32',\n },\n titleGroup: {\n display: 'flex',\n flexDirection: 'column',\n gap: '4',\n },\n title: {\n color: 'text/primary',\n textStyle: 'heading/h3',\n },\n description: {\n color: 'text/secondary',\n textStyle: 'body/md/regular',\n },\n footer: {\n alignItems: 'center',\n borderBlockStart: '1px solid',\n borderColor: 'border/minimal',\n display: 'flex',\n gap: '16',\n justifyContent: 'flex-end',\n padding: '32',\n },\n },\n});\n\nexport default stepCardSlotRecipe;\n"],"mappings":";;;AAKA,IAAM,qBAAqB,iBAAiB;CAC1C,WAAW;CACX,OAJuB,YAAY,WAAW,aAIvC,CAAiB,MAAM;CAC9B,MAAM;EACJ,MAAM;GACJ,iBAAiB;GACjB,QAAQ;GACR,aAAa;GACb,cAAc;GACd,WAAW;GACX,UAAU;GACX;EACD,QAAQ;GACN,mBAAmB;GACnB,eAAe;GAChB;EACD,MAAM;GACJ,SAAS;GACT,eAAe;GACf,KAAK;GACL,iBAAiB;GACjB,mBAAmB;GACnB,eAAe;GAChB;EACD,YAAY;GACV,SAAS;GACT,eAAe;GACf,KAAK;GACN;EACD,OAAO;GACL,OAAO;GACP,WAAW;GACZ;EACD,aAAa;GACX,OAAO;GACP,WAAW;GACZ;EACD,QAAQ;GACN,YAAY;GACZ,kBAAkB;GAClB,aAAa;GACb,SAAS;GACT,KAAK;GACL,gBAAgB;GAChB,SAAS;GACV;EACF;CACF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "indicator" | "control" | "thumb", {
|
|
2
2
|
size: {
|
|
3
|
-
|
|
3
|
+
md: {
|
|
4
4
|
root: {
|
|
5
5
|
'--switch-width': string;
|
|
6
6
|
'--switch-height': string;
|
|
@@ -10,10 +10,10 @@ declare const switchSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<
|
|
|
10
10
|
borderRadius: "8";
|
|
11
11
|
};
|
|
12
12
|
label: {
|
|
13
|
-
textStyle: "body/
|
|
13
|
+
textStyle: "body/md/regular";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
lg: {
|
|
17
17
|
root: {
|
|
18
18
|
'--switch-width': string;
|
|
19
19
|
'--switch-height': string;
|
|
@@ -33,15 +33,15 @@ var switchSlotRecipe = defineSlotRecipe({
|
|
|
33
33
|
display: "inline-flex",
|
|
34
34
|
width: "var(--switch-width)",
|
|
35
35
|
height: "var(--switch-height)",
|
|
36
|
-
bg: "input/
|
|
36
|
+
bg: "input/switch/off/track",
|
|
37
37
|
cursor: "pointer",
|
|
38
38
|
transition: "backgrounds",
|
|
39
39
|
_checked: {
|
|
40
|
-
bg: "input/
|
|
41
|
-
_disabled: { bg: "input/
|
|
40
|
+
bg: "input/switch/on/track",
|
|
41
|
+
_disabled: { bg: "input/switch/on/track-disabled" }
|
|
42
42
|
},
|
|
43
43
|
_disabled: {
|
|
44
|
-
bg: "input/
|
|
44
|
+
bg: "input/switch/off/track-disabled",
|
|
45
45
|
cursor: "not-allowed"
|
|
46
46
|
},
|
|
47
47
|
_readOnly: { cursor: "default" },
|
|
@@ -50,33 +50,33 @@ var switchSlotRecipe = defineSlotRecipe({
|
|
|
50
50
|
thumb: {
|
|
51
51
|
width: "var(--switch-height)",
|
|
52
52
|
height: "var(--switch-height)",
|
|
53
|
-
bg: "input/
|
|
53
|
+
bg: "input/switch/off/thumb",
|
|
54
54
|
boxShadow: "elevation/sm",
|
|
55
55
|
scale: "0.8",
|
|
56
56
|
borderRadius: "inherit",
|
|
57
57
|
transitionProperty: "translate",
|
|
58
58
|
transitionDuration: "fast",
|
|
59
59
|
_checked: {
|
|
60
|
-
bg: "input/
|
|
60
|
+
bg: "input/switch/on/thumb",
|
|
61
61
|
translate: "var(--switch-x) 0"
|
|
62
62
|
},
|
|
63
63
|
_disabled: {
|
|
64
|
-
bg: "input/
|
|
65
|
-
_checked: { bg: "input/
|
|
64
|
+
bg: "input/switch/off/thumb-disabled",
|
|
65
|
+
_checked: { bg: "input/switch/on/thumb-disabled" }
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
variants: { size: {
|
|
70
|
-
|
|
70
|
+
md: {
|
|
71
71
|
root: {
|
|
72
72
|
"--switch-width": rem(32),
|
|
73
73
|
"--switch-height": rem(16),
|
|
74
74
|
"--switch-indicator-font-size": rem(12)
|
|
75
75
|
},
|
|
76
76
|
control: { borderRadius: "8" },
|
|
77
|
-
label: { textStyle: "body/
|
|
77
|
+
label: { textStyle: "body/md/regular" }
|
|
78
78
|
},
|
|
79
|
-
|
|
79
|
+
lg: {
|
|
80
80
|
root: {
|
|
81
81
|
"--switch-width": rem(48),
|
|
82
82
|
"--switch-height": rem(24),
|
|
@@ -86,7 +86,7 @@ var switchSlotRecipe = defineSlotRecipe({
|
|
|
86
86
|
label: { textStyle: "body/lg/regular" }
|
|
87
87
|
}
|
|
88
88
|
} },
|
|
89
|
-
defaultVariants: { size: "
|
|
89
|
+
defaultVariants: { size: "lg" }
|
|
90
90
|
});
|
|
91
91
|
//#endregion
|
|
92
92
|
export { switchSlotRecipe as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Switch.recipe.ts"],"sourcesContent":["import { switchAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst switchSlotRecipe = defineSlotRecipe({\n slots: switchAnatomy.keys(),\n className: 'switch',\n base: {\n root: {\n display: 'inline-flex',\n alignItems: 'center',\n gap: '8',\n '--switch-diff': 'calc(var(--switch-width) - var(--switch-height))',\n '--switch-x': {\n base: 'var(--switch-diff)',\n _rtl: 'calc(var(--switch-diff) * -1)',\n },\n },\n\n label: {\n _disabled: {\n color: 'text/disabled',\n },\n },\n\n indicator: {\n color: 'icon/on-color',\n position: 'absolute',\n width: 'var(--switch-height)',\n height: 'var(--switch-height)',\n display: 'grid',\n placeContent: 'center',\n userSelect: 'none',\n insetInlineStart: 'calc(var(--switch-x) - 2px)',\n _checked: {\n insetInlineStart: '2',\n },\n },\n\n control: {\n position: 'relative',\n display: 'inline-flex',\n width: 'var(--switch-width)',\n height: 'var(--switch-height)',\n bg: 'input/
|
|
1
|
+
{"version":3,"file":"Switch.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Switch.recipe.ts"],"sourcesContent":["import { switchAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst switchSlotRecipe = defineSlotRecipe({\n slots: switchAnatomy.keys(),\n className: 'switch',\n base: {\n root: {\n display: 'inline-flex',\n alignItems: 'center',\n gap: '8',\n '--switch-diff': 'calc(var(--switch-width) - var(--switch-height))',\n '--switch-x': {\n base: 'var(--switch-diff)',\n _rtl: 'calc(var(--switch-diff) * -1)',\n },\n },\n\n label: {\n _disabled: {\n color: 'text/disabled',\n },\n },\n\n indicator: {\n color: 'icon/on-color',\n position: 'absolute',\n width: 'var(--switch-height)',\n height: 'var(--switch-height)',\n display: 'grid',\n placeContent: 'center',\n userSelect: 'none',\n insetInlineStart: 'calc(var(--switch-x) - 2px)',\n _checked: {\n insetInlineStart: '2',\n },\n },\n\n control: {\n position: 'relative',\n display: 'inline-flex',\n width: 'var(--switch-width)',\n height: 'var(--switch-height)',\n bg: 'input/switch/off/track',\n cursor: 'pointer',\n transition: 'backgrounds',\n _checked: {\n bg: 'input/switch/on/track',\n _disabled: {\n bg: 'input/switch/on/track-disabled',\n },\n },\n _disabled: {\n bg: 'input/switch/off/track-disabled',\n cursor: 'not-allowed',\n },\n _readOnly: {\n cursor: 'default',\n },\n focusVisibleRing: 'outside',\n },\n\n thumb: {\n width: 'var(--switch-height)',\n height: 'var(--switch-height)',\n bg: 'input/switch/off/thumb',\n boxShadow: 'elevation/sm',\n scale: '0.8',\n borderRadius: 'inherit',\n transitionProperty: 'translate',\n transitionDuration: 'fast',\n _checked: {\n bg: 'input/switch/on/thumb',\n translate: 'var(--switch-x) 0',\n },\n _disabled: {\n bg: 'input/switch/off/thumb-disabled',\n _checked: {\n bg: 'input/switch/on/thumb-disabled',\n },\n },\n },\n },\n\n variants: {\n size: {\n md: {\n root: {\n '--switch-width': rem(32),\n '--switch-height': rem(16),\n '--switch-indicator-font-size': rem(12),\n },\n control: {\n borderRadius: '8',\n },\n label: {\n textStyle: 'body/md/regular',\n },\n },\n lg: {\n root: {\n '--switch-width': rem(48),\n '--switch-height': rem(24),\n '--switch-indicator-font-size': rem(16),\n },\n control: {\n borderRadius: '12',\n },\n label: {\n textStyle: 'body/lg/regular',\n },\n },\n },\n },\n\n defaultVariants: {\n size: 'lg',\n },\n});\n\nexport default switchSlotRecipe;\n"],"mappings":";;;;AAKA,IAAM,mBAAmB,iBAAiB;CACxC,OAAO,cAAc,MAAM;CAC3B,WAAW;CACX,MAAM;EACJ,MAAM;GACJ,SAAS;GACT,YAAY;GACZ,KAAK;GACL,iBAAiB;GACjB,cAAc;IACZ,MAAM;IACN,MAAM;IACP;GACF;EAED,OAAO,EACL,WAAW,EACT,OAAO,iBACR,EACF;EAED,WAAW;GACT,OAAO;GACP,UAAU;GACV,OAAO;GACP,QAAQ;GACR,SAAS;GACT,cAAc;GACd,YAAY;GACZ,kBAAkB;GAClB,UAAU,EACR,kBAAkB,KACnB;GACF;EAED,SAAS;GACP,UAAU;GACV,SAAS;GACT,OAAO;GACP,QAAQ;GACR,IAAI;GACJ,QAAQ;GACR,YAAY;GACZ,UAAU;IACR,IAAI;IACJ,WAAW,EACT,IAAI,kCACL;IACF;GACD,WAAW;IACT,IAAI;IACJ,QAAQ;IACT;GACD,WAAW,EACT,QAAQ,WACT;GACD,kBAAkB;GACnB;EAED,OAAO;GACL,OAAO;GACP,QAAQ;GACR,IAAI;GACJ,WAAW;GACX,OAAO;GACP,cAAc;GACd,oBAAoB;GACpB,oBAAoB;GACpB,UAAU;IACR,IAAI;IACJ,WAAW;IACZ;GACD,WAAW;IACT,IAAI;IACJ,UAAU,EACR,IAAI,kCACL;IACF;GACF;EACF;CAED,UAAU,EACR,MAAM;EACJ,IAAI;GACF,MAAM;IACJ,kBAAkB,IAAI,GAAG;IACzB,mBAAmB,IAAI,GAAG;IAC1B,gCAAgC,IAAI,GAAG;IACxC;GACD,SAAS,EACP,cAAc,KACf;GACD,OAAO,EACL,WAAW,mBACZ;GACF;EACD,IAAI;GACF,MAAM;IACJ,kBAAkB,IAAI,GAAG;IACzB,mBAAmB,IAAI,GAAG;IAC1B,gCAAgC,IAAI,GAAG;IACxC;GACD,SAAS,EACP,cAAc,MACf;GACD,OAAO,EACL,WAAW,mBACZ;GACF;EACF,EACF;CAED,iBAAiB,EACf,MAAM,MACP;CACF,CAAC"}
|
|
@@ -2,7 +2,8 @@ declare const tagsInputSlotRecipe: import('@chakra-ui/react').SlotRecipeDefiniti
|
|
|
2
2
|
size: {
|
|
3
3
|
md: {
|
|
4
4
|
control: {
|
|
5
|
-
|
|
5
|
+
paddingInlineEnd: "12";
|
|
6
|
+
paddingInlineStart: "8";
|
|
6
7
|
};
|
|
7
8
|
tagsBlock: {
|
|
8
9
|
paddingBlock: "8";
|
|
@@ -12,13 +13,15 @@ declare const tagsInputSlotRecipe: import('@chakra-ui/react').SlotRecipeDefiniti
|
|
|
12
13
|
};
|
|
13
14
|
input: {
|
|
14
15
|
height: "24";
|
|
15
|
-
|
|
16
|
+
fontSize: "0.875rem";
|
|
17
|
+
fontWeight: "400";
|
|
18
|
+
lineHeight: "normal";
|
|
16
19
|
};
|
|
17
20
|
};
|
|
18
21
|
lg: {
|
|
19
22
|
control: {
|
|
23
|
+
paddingInlineEnd: "16";
|
|
20
24
|
paddingInlineStart: "12";
|
|
21
|
-
paddingInlineEnd: "8";
|
|
22
25
|
};
|
|
23
26
|
tagsBlock: {
|
|
24
27
|
paddingBlock: "12";
|
|
@@ -27,7 +30,9 @@ declare const tagsInputSlotRecipe: import('@chakra-ui/react').SlotRecipeDefiniti
|
|
|
27
30
|
height: "48";
|
|
28
31
|
};
|
|
29
32
|
input: {
|
|
30
|
-
|
|
33
|
+
fontSize: "1rem";
|
|
34
|
+
fontWeight: "400";
|
|
35
|
+
lineHeight: "normal";
|
|
31
36
|
};
|
|
32
37
|
};
|
|
33
38
|
};
|
|
@@ -8,6 +8,7 @@ var tagsInputSlotRecipe = defineSlotRecipe({
|
|
|
8
8
|
base: {
|
|
9
9
|
root: { width: "full" },
|
|
10
10
|
control: {
|
|
11
|
+
alignItems: "flex-start",
|
|
11
12
|
background: "background/primary",
|
|
12
13
|
borderColor: "border/regular",
|
|
13
14
|
borderRadius: "4",
|
|
@@ -38,6 +39,7 @@ var tagsInputSlotRecipe = defineSlotRecipe({
|
|
|
38
39
|
},
|
|
39
40
|
tagsBlock: {
|
|
40
41
|
alignContent: "flex-start",
|
|
42
|
+
alignItems: "center",
|
|
41
43
|
display: "flex",
|
|
42
44
|
flex: "1",
|
|
43
45
|
flexWrap: "wrap",
|
|
@@ -59,8 +61,10 @@ var tagsInputSlotRecipe = defineSlotRecipe({
|
|
|
59
61
|
background: "transparent",
|
|
60
62
|
color: "input/text/inputValue",
|
|
61
63
|
flex: "1",
|
|
64
|
+
lineHeight: "normal",
|
|
62
65
|
minWidth: rem(80),
|
|
63
66
|
outline: "none",
|
|
67
|
+
paddingInlineStart: "4",
|
|
64
68
|
_placeholder: { color: "input/text/placeholder" },
|
|
65
69
|
_disabled: {
|
|
66
70
|
cursor: "not-allowed",
|
|
@@ -142,22 +146,31 @@ var tagsInputSlotRecipe = defineSlotRecipe({
|
|
|
142
146
|
},
|
|
143
147
|
variants: { size: {
|
|
144
148
|
md: {
|
|
145
|
-
control: {
|
|
149
|
+
control: {
|
|
150
|
+
paddingInlineEnd: "12",
|
|
151
|
+
paddingInlineStart: "8"
|
|
152
|
+
},
|
|
146
153
|
tagsBlock: { paddingBlock: "8" },
|
|
147
154
|
suffixBlock: { height: "40" },
|
|
148
155
|
input: {
|
|
149
156
|
height: "24",
|
|
150
|
-
|
|
157
|
+
fontSize: "0.875rem",
|
|
158
|
+
fontWeight: "400",
|
|
159
|
+
lineHeight: "normal"
|
|
151
160
|
}
|
|
152
161
|
},
|
|
153
162
|
lg: {
|
|
154
163
|
control: {
|
|
155
|
-
|
|
156
|
-
|
|
164
|
+
paddingInlineEnd: "16",
|
|
165
|
+
paddingInlineStart: "12"
|
|
157
166
|
},
|
|
158
167
|
tagsBlock: { paddingBlock: "12" },
|
|
159
168
|
suffixBlock: { height: "48" },
|
|
160
|
-
input: {
|
|
169
|
+
input: {
|
|
170
|
+
fontSize: "1rem",
|
|
171
|
+
fontWeight: "400",
|
|
172
|
+
lineHeight: "normal"
|
|
173
|
+
}
|
|
161
174
|
}
|
|
162
175
|
} },
|
|
163
176
|
defaultVariants: { size: "lg" }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagsInput.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/TagsInput.recipe.ts"],"sourcesContent":["import { tagsInputAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst extendedTagsInputAnatomy = tagsInputAnatomy.extendWith('tagsBlock', 'suffixBlock');\n\nconst tagsInputSlotRecipe = defineSlotRecipe({\n className: 'tags-input',\n slots: extendedTagsInputAnatomy.keys(),\n base: {\n root: {\n width: 'full',\n },\n control: {\n background: 'background/primary',\n borderColor: 'border/regular',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: rem(1),\n boxShadow: 'inset/field',\n display: 'flex',\n height: rem(88),\n overflowY: 'auto',\n transition: 'border-color 200ms',\n _focusWithin: {\n focusRing: 'outside',\n },\n _hover: {\n borderColor: 'border/hover',\n },\n _invalid: {\n borderColor: 'border/error',\n _hover: {\n borderColor: 'border/error',\n },\n },\n _disabled: {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n cursor: 'not-allowed',\n _hover: {\n borderColor: 'border/disabled',\n },\n },\n _readOnly: {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n _hover: {\n borderColor: 'border/disabled',\n },\n },\n },\n tagsBlock: {\n alignContent: 'flex-start',\n display: 'flex',\n flex: '1',\n flexWrap: 'wrap',\n gap: '8',\n minWidth: 0,\n },\n suffixBlock: {\n alignItems: 'center',\n alignSelf: 'flex-start',\n display: 'flex',\n flexShrink: '0',\n gap: '8',\n paddingInline: '4',\n position: 'sticky',\n top: 0,\n '&:has(button)': {\n paddingInline: 0,\n },\n },\n input: {\n background: 'transparent',\n color: 'input/text/inputValue',\n flex: '1',\n minWidth: rem(80),\n outline: 'none',\n _placeholder: {\n color: 'input/text/placeholder',\n },\n _disabled: {\n cursor: 'not-allowed',\n _placeholder: {\n color: 'text/disabled',\n },\n },\n _readOnly: {\n display: 'none',\n },\n },\n item: {\n display: 'flex',\n maxWidth: '100%',\n minWidth: 0,\n },\n itemPreview: {\n alignItems: 'center',\n background: 'sys/neutral/subtle',\n borderColor: 'sys/neutral/muted',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: rem(1),\n color: 'text/primary',\n display: 'flex',\n gap: '4',\n height: '24',\n maxWidth: '100%',\n overflow: 'hidden',\n paddingBlock: '2',\n paddingInlineEnd: '1',\n paddingInlineStart: '8',\n textStyle: 'comp/tag/sm',\n _highlighted: {\n background: 'sys/neutral/moderate',\n },\n _disabled: {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n color: 'text/on-disabled',\n },\n '&:not(:has(button))': {\n paddingInlineEnd: '8',\n },\n },\n itemText: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n itemInput: {\n background: 'transparent',\n height: '24',\n minWidth: '20',\n outline: 'none',\n },\n itemDeleteTrigger: {\n alignItems: 'center',\n borderRadius: '2',\n color: 'icon/secondary',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: '0',\n height: '20',\n justifyContent: 'center',\n width: '20',\n _hover: {\n background: 'sys/neutral/moderate',\n },\n _disabled: {\n cursor: 'not-allowed',\n opacity: '0.5',\n },\n },\n clearTrigger: {\n alignItems: 'center',\n borderRadius: '4',\n color: 'icon/secondary',\n cursor: 'pointer',\n display: 'flex',\n justifyContent: 'center',\n padding: '4',\n _hover: {\n background: 'sys/neutral/moderate',\n },\n _disabled: {\n cursor: 'not-allowed',\n opacity: '0.5',\n },\n },\n },\n variants: {\n size: {\n md: {\n control: {\n
|
|
1
|
+
{"version":3,"file":"TagsInput.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/TagsInput.recipe.ts"],"sourcesContent":["import { tagsInputAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst extendedTagsInputAnatomy = tagsInputAnatomy.extendWith('tagsBlock', 'suffixBlock');\n\nconst tagsInputSlotRecipe = defineSlotRecipe({\n className: 'tags-input',\n slots: extendedTagsInputAnatomy.keys(),\n base: {\n root: {\n width: 'full',\n },\n control: {\n alignItems: 'flex-start',\n background: 'background/primary',\n borderColor: 'border/regular',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: rem(1),\n boxShadow: 'inset/field',\n display: 'flex',\n height: rem(88),\n overflowY: 'auto',\n transition: 'border-color 200ms',\n _focusWithin: {\n focusRing: 'outside',\n },\n _hover: {\n borderColor: 'border/hover',\n },\n _invalid: {\n borderColor: 'border/error',\n _hover: {\n borderColor: 'border/error',\n },\n },\n _disabled: {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n cursor: 'not-allowed',\n _hover: {\n borderColor: 'border/disabled',\n },\n },\n _readOnly: {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n _hover: {\n borderColor: 'border/disabled',\n },\n },\n },\n tagsBlock: {\n alignContent: 'flex-start',\n alignItems: 'center',\n display: 'flex',\n flex: '1',\n flexWrap: 'wrap',\n gap: '8',\n minWidth: 0,\n },\n suffixBlock: {\n alignItems: 'center',\n alignSelf: 'flex-start',\n display: 'flex',\n flexShrink: '0',\n gap: '8',\n paddingInline: '4',\n position: 'sticky',\n top: 0,\n '&:has(button)': {\n paddingInline: 0,\n },\n },\n input: {\n background: 'transparent',\n color: 'input/text/inputValue',\n flex: '1',\n lineHeight: 'normal',\n minWidth: rem(80),\n outline: 'none',\n // Per Figma, the empty-state placeholder is offset 4px further from the control's\n // left edge than a filled-state tag chip. That 4px comes from an \"input\" layer in\n // Figma that wraps the typing area — in our recipe we apply it as a left padding on\n // the typing <input> itself so tag chips (which live alongside but not inside the\n // input) remain flush with the control's padding.\n paddingInlineStart: '4',\n _placeholder: {\n color: 'input/text/placeholder',\n },\n _disabled: {\n cursor: 'not-allowed',\n _placeholder: {\n color: 'text/disabled',\n },\n },\n _readOnly: {\n display: 'none',\n },\n },\n item: {\n display: 'flex',\n maxWidth: '100%',\n minWidth: 0,\n },\n itemPreview: {\n alignItems: 'center',\n background: 'sys/neutral/subtle',\n borderColor: 'sys/neutral/muted',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: rem(1),\n color: 'text/primary',\n display: 'flex',\n gap: '4',\n height: '24',\n maxWidth: '100%',\n overflow: 'hidden',\n paddingBlock: '2',\n paddingInlineEnd: '1',\n paddingInlineStart: '8',\n textStyle: 'comp/tag/sm',\n _highlighted: {\n background: 'sys/neutral/moderate',\n },\n _disabled: {\n background: 'background/disabled',\n borderColor: 'border/disabled',\n color: 'text/on-disabled',\n },\n '&:not(:has(button))': {\n paddingInlineEnd: '8',\n },\n },\n itemText: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n itemInput: {\n background: 'transparent',\n height: '24',\n minWidth: '20',\n outline: 'none',\n },\n itemDeleteTrigger: {\n alignItems: 'center',\n borderRadius: '2',\n color: 'icon/secondary',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: '0',\n height: '20',\n justifyContent: 'center',\n width: '20',\n _hover: {\n background: 'sys/neutral/moderate',\n },\n _disabled: {\n cursor: 'not-allowed',\n opacity: '0.5',\n },\n },\n clearTrigger: {\n alignItems: 'center',\n borderRadius: '4',\n color: 'icon/secondary',\n cursor: 'pointer',\n display: 'flex',\n justifyContent: 'center',\n padding: '4',\n _hover: {\n background: 'sys/neutral/moderate',\n },\n _disabled: {\n cursor: 'not-allowed',\n opacity: '0.5',\n },\n },\n },\n variants: {\n size: {\n // Padding values below match the Figma control + input layer spec exactly\n // (see FRONTEND-572 thread / Figma node 1941:3510 for md, 1941:3487 for lg).\n // The outer control carries the size-specific padding; the inner tagsBlock adds a\n // constant 4px horizontal padding (set in the base) around the content regardless of size.\n md: {\n control: {\n paddingInlineEnd: '12',\n paddingInlineStart: '8',\n },\n // paddingBlock lives on tagsBlock (not control) so the suffixBlock (clear button) sits\n // at the control's inner top and its vertical center lines up with the first tag-row /\n // placeholder center — matches Figma's filled-state layout.\n tagsBlock: {\n paddingBlock: '8',\n },\n suffixBlock: {\n height: '40',\n },\n input: {\n height: '24',\n fontSize: '0.875rem',\n fontWeight: '400',\n lineHeight: 'normal',\n },\n },\n lg: {\n control: {\n paddingInlineEnd: '16',\n paddingInlineStart: '12',\n },\n tagsBlock: {\n paddingBlock: '12',\n },\n suffixBlock: {\n height: '48',\n },\n input: {\n fontSize: '1rem',\n fontWeight: '400',\n lineHeight: 'normal',\n },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n\nexport default tagsInputSlotRecipe;\n"],"mappings":";;;;AAOA,IAAM,sBAAsB,iBAAiB;CAC3C,WAAW;CACX,OAJ+B,iBAAiB,WAAW,aAAa,cAIjE,CAAyB,MAAM;CACtC,MAAM;EACJ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