@bitrise/bitkit-v2 0.3.204 → 0.3.206

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.
Files changed (188) hide show
  1. package/dist/atoms/ImageCropper/ImageCropper.d.ts +10 -10
  2. package/dist/components/BitkitAccordion/BitkitAccordion.js.map +1 -1
  3. package/dist/components/BitkitCalendar/components/CalendarFooter.js.map +1 -1
  4. package/dist/components/BitkitCalendar/components/CalendarNextTrigger.js.map +1 -1
  5. package/dist/components/BitkitCalendar/components/CalendarPrevTrigger.js.map +1 -1
  6. package/dist/components/BitkitCalendar/components/CalendarSelect.js.map +1 -1
  7. package/dist/components/BitkitCalendar/components/CalendarTrigger.js.map +1 -1
  8. package/dist/components/BitkitCodeSnippet/BitkitCodeSnippet.js.map +1 -1
  9. package/dist/components/BitkitCollapsible/BitkitCollapsible.js.map +1 -1
  10. package/dist/components/BitkitCombobox/BitkitCombobox.d.ts +11 -1
  11. package/dist/components/BitkitCombobox/BitkitCombobox.js +4 -7
  12. package/dist/components/BitkitCombobox/BitkitCombobox.js.map +1 -1
  13. package/dist/components/BitkitDataWidget/BitkitDataWidget.d.ts +10 -0
  14. package/dist/components/BitkitDataWidget/BitkitDataWidget.js +45 -0
  15. package/dist/components/BitkitDataWidget/BitkitDataWidget.js.map +1 -0
  16. package/dist/components/BitkitDialog/BitkitDialog.d.ts +19 -6
  17. package/dist/components/BitkitDialog/BitkitDialog.js +22 -5
  18. package/dist/components/BitkitDialog/BitkitDialog.js.map +1 -1
  19. package/dist/components/BitkitDialog/BitkitDialogBody.d.ts +1 -1
  20. package/dist/components/BitkitDialog/BitkitDialogBody.js +15 -4
  21. package/dist/components/BitkitDialog/BitkitDialogBody.js.map +1 -1
  22. package/dist/components/BitkitDialog/BitkitDialogContent.d.ts +4 -2
  23. package/dist/components/BitkitDialog/BitkitDialogContent.js +29 -18
  24. package/dist/components/BitkitDialog/BitkitDialogContent.js.map +1 -1
  25. package/dist/components/BitkitDialog/BitkitDialogHeader.d.ts +9 -0
  26. package/dist/components/BitkitDialog/BitkitDialogHeader.js +8 -0
  27. package/dist/components/BitkitDialog/BitkitDialogHeader.js.map +1 -0
  28. package/dist/components/BitkitDialog/BitkitDialogStep.d.ts +11 -0
  29. package/dist/components/BitkitDialog/BitkitDialogStep.js +26 -0
  30. package/dist/components/BitkitDialog/BitkitDialogStep.js.map +1 -0
  31. package/dist/components/BitkitDialog/BitkitDialogStepContext.d.ts +5 -0
  32. package/dist/components/BitkitDialog/BitkitDialogStepContext.js +7 -0
  33. package/dist/components/BitkitDialog/BitkitDialogStepContext.js.map +1 -0
  34. package/dist/components/BitkitDraggableCard/BitkitDraggableCard.js.map +1 -1
  35. package/dist/components/BitkitExpandableCard/BitkitExpandableCard.js.map +1 -1
  36. package/dist/components/BitkitGroupHeading/BitkitGroupHeading.js.map +1 -1
  37. package/dist/components/BitkitInlineLoading/BitkitInlineLoading.js.map +1 -1
  38. package/dist/components/BitkitLabel/BitkitLabel.js +3 -3
  39. package/dist/components/BitkitLabel/BitkitLabel.js.map +1 -1
  40. package/dist/components/BitkitLabelTooltip/BitkitLabelTooltip.js +1 -1
  41. package/dist/components/BitkitLabelTooltip/BitkitLabelTooltip.js.map +1 -1
  42. package/dist/components/BitkitLabeledData/BitkitLabeledData.js +24 -17
  43. package/dist/components/BitkitLabeledData/BitkitLabeledData.js.map +1 -1
  44. package/dist/components/BitkitList/BitkitList.d.ts +21 -0
  45. package/dist/components/BitkitList/BitkitList.js +107 -0
  46. package/dist/components/BitkitList/BitkitList.js.map +1 -0
  47. package/dist/components/BitkitList/index.d.ts +2 -0
  48. package/dist/components/BitkitMarkdown/BitkitMarkdown.js +11 -17
  49. package/dist/components/BitkitMarkdown/BitkitMarkdown.js.map +1 -1
  50. package/dist/components/BitkitMarkdownCard/BitkitMarkdownCard.js.map +1 -1
  51. package/dist/components/BitkitMultiselect/BitkitMultiselect.d.ts +13 -1
  52. package/dist/components/BitkitMultiselect/BitkitMultiselect.js +3 -6
  53. package/dist/components/BitkitMultiselect/BitkitMultiselect.js.map +1 -1
  54. package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.d.ts +5 -1
  55. package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.js +5 -3
  56. package/dist/components/BitkitMultiselectMenu/BitkitMultiselectMenu.js.map +1 -1
  57. package/dist/components/BitkitNativeSelect/BitkitNativeSelect.js.map +1 -1
  58. package/dist/components/BitkitNoteCard/BitkitNoteCard.js.map +1 -1
  59. package/dist/components/BitkitOverflowContent/BitkitOverflowContent.d.ts +4 -0
  60. package/dist/components/BitkitOverflowContent/BitkitOverflowContent.js +5 -3
  61. package/dist/components/BitkitOverflowContent/BitkitOverflowContent.js.map +1 -1
  62. package/dist/components/BitkitOverflowTooltip/BitkitOverflowTooltip.js +1 -1
  63. package/dist/components/BitkitOverflowTooltip/BitkitOverflowTooltip.js.map +1 -1
  64. package/dist/components/BitkitPageFooter/BitkitPageFooter.js.map +1 -1
  65. package/dist/components/BitkitPagination/BitkitPagination.js.map +1 -1
  66. package/dist/components/BitkitPaginationLoadMore/BitkitPaginationLoadMore.js.map +1 -1
  67. package/dist/components/BitkitRibbon/BitkitRibbon.js.map +1 -1
  68. package/dist/components/BitkitSearchInput/BitkitSearchInput.js +2 -1
  69. package/dist/components/BitkitSearchInput/BitkitSearchInput.js.map +1 -1
  70. package/dist/components/BitkitSectionHeading/BitkitSectionHeading.js +1 -1
  71. package/dist/components/BitkitSectionHeading/BitkitSectionHeading.js.map +1 -1
  72. package/dist/components/BitkitSelect/BitkitSelect.d.ts +12 -1
  73. package/dist/components/BitkitSelect/BitkitSelect.js +3 -6
  74. package/dist/components/BitkitSelect/BitkitSelect.js.map +1 -1
  75. package/dist/components/BitkitSelectMenu/BitkitSelectMenu.d.ts +14 -11
  76. package/dist/components/BitkitSelectMenu/BitkitSelectMenu.js.map +1 -1
  77. package/dist/components/BitkitSelectMenu/SelectMenuShell.d.ts +1 -1
  78. package/dist/components/BitkitSelectMenu/SelectMenuShell.js +13 -13
  79. package/dist/components/BitkitSelectMenu/SelectMenuShell.js.map +1 -1
  80. package/dist/components/BitkitSettingsCard/BitkitSettingsCard.js.map +1 -1
  81. package/dist/components/BitkitSidebar/BitkitSidebar.js.map +1 -1
  82. package/dist/components/BitkitSpinner/BitkitSpinner.d.ts +4 -0
  83. package/dist/components/BitkitSpinner/BitkitSpinner.js +15 -0
  84. package/dist/components/BitkitSpinner/BitkitSpinner.js.map +1 -0
  85. package/dist/components/BitkitSplitButton/BitkitSplitButton.js.map +1 -1
  86. package/dist/components/BitkitSteps/BitkitSteps.js +3 -3
  87. package/dist/components/BitkitSteps/BitkitSteps.js.map +1 -1
  88. package/dist/components/BitkitStepsCard/BitkitStepsCard.js.map +1 -1
  89. package/dist/components/BitkitSwitch/BitkitSwitch.d.ts +3 -0
  90. package/dist/components/BitkitSwitch/BitkitSwitch.js +105 -0
  91. package/dist/components/BitkitSwitch/BitkitSwitch.js.map +1 -0
  92. package/dist/components/BitkitSwitch/BitkitSwitch.types.d.ts +21 -0
  93. package/dist/components/{BitkitToggle/BitkitToggle.utils.d.ts → BitkitSwitch/BitkitSwitch.utils.d.ts} +1 -1
  94. package/dist/components/{BitkitToggle/BitkitToggle.utils.js → BitkitSwitch/BitkitSwitch.utils.js} +2 -2
  95. package/dist/components/{BitkitToggle/BitkitToggle.utils.js.map → BitkitSwitch/BitkitSwitch.utils.js.map} +1 -1
  96. package/dist/components/BitkitSwitch/components/BitkitSwitchHelperText.d.ts +3 -0
  97. package/dist/components/{BitkitToggle/components/BitkitToggleHelperText.js → BitkitSwitch/components/BitkitSwitchHelperText.js} +5 -5
  98. package/dist/components/BitkitSwitch/components/BitkitSwitchHelperText.js.map +1 -0
  99. package/dist/components/BitkitSwitch/components/BitkitSwitchLabel.d.ts +3 -0
  100. package/dist/components/{BitkitToggle/components/BitkitToggleLabel.js → BitkitSwitch/components/BitkitSwitchLabel.js} +4 -4
  101. package/dist/components/BitkitSwitch/components/BitkitSwitchLabel.js.map +1 -0
  102. package/dist/components/BitkitSwitch/components/BitkitSwitchReadOnly.d.ts +4 -0
  103. package/dist/components/{BitkitToggle/components/BitkitToggleReadOnly.js → BitkitSwitch/components/BitkitSwitchReadOnly.js} +4 -4
  104. package/dist/components/{BitkitToggle/components/BitkitToggleReadOnly.js.map → BitkitSwitch/components/BitkitSwitchReadOnly.js.map} +1 -1
  105. package/dist/components/BitkitSwitch/components/BitkitSwitchValueText.d.ts +3 -0
  106. package/dist/components/{BitkitToggle/components/BitkitToggleValueText.js → BitkitSwitch/components/BitkitSwitchValueText.js} +7 -7
  107. package/dist/components/BitkitSwitch/components/BitkitSwitchValueText.js.map +1 -0
  108. package/dist/components/BitkitSwitch/index.d.ts +2 -0
  109. package/dist/components/BitkitTag/BitkitTag.js +1 -1
  110. package/dist/components/BitkitTag/BitkitTag.js.map +1 -1
  111. package/dist/components/BitkitTagsInput/BitkitTagsInput.d.ts +1 -0
  112. package/dist/components/BitkitTagsInput/BitkitTagsInput.js +5 -2
  113. package/dist/components/BitkitTagsInput/BitkitTagsInput.js.map +1 -1
  114. package/dist/components/BitkitTooltip/BitkitTooltip.js +1 -1
  115. package/dist/components/BitkitTooltip/BitkitTooltip.js.map +1 -1
  116. package/dist/components/BitkitTreeView/BitkitTreeView.js.map +1 -1
  117. package/dist/components/index.d.ts +6 -4
  118. package/dist/main.js +9 -7
  119. package/dist/theme/common/ComboboxAndSelect.common.js +2 -1
  120. package/dist/theme/common/ComboboxAndSelect.common.js.map +1 -1
  121. package/dist/theme/common/InputAndTextarea.common.d.ts +7 -0
  122. package/dist/theme/common/InputAndTextarea.common.js +8 -1
  123. package/dist/theme/common/InputAndTextarea.common.js.map +1 -1
  124. package/dist/theme/index.js.map +1 -1
  125. package/dist/theme/recipes/Button.recipe.js.map +1 -1
  126. package/dist/theme/recipes/Input.recipe.js +6 -2
  127. package/dist/theme/recipes/Input.recipe.js.map +1 -1
  128. package/dist/theme/recipes/SelectableTag.recipe.js +1 -1
  129. package/dist/theme/recipes/SelectableTag.recipe.js.map +1 -1
  130. package/dist/theme/recipes/ToggleButton.recipe.js +20 -2
  131. package/dist/theme/recipes/ToggleButton.recipe.js.map +1 -1
  132. package/dist/theme/semantic-tokens/semanticColors.js +14 -9
  133. package/dist/theme/semantic-tokens/semanticColors.js.map +1 -1
  134. package/dist/theme/slot-recipes/Combobox.recipe.js +14 -4
  135. package/dist/theme/slot-recipes/Combobox.recipe.js.map +1 -1
  136. package/dist/theme/slot-recipes/DataWidget.recipe.d.ts +2 -0
  137. package/dist/theme/slot-recipes/DataWidget.recipe.js +65 -0
  138. package/dist/theme/slot-recipes/DataWidget.recipe.js.map +1 -0
  139. package/dist/theme/slot-recipes/Dialog.recipe.d.ts +13 -4
  140. package/dist/theme/slot-recipes/Dialog.recipe.js +40 -7
  141. package/dist/theme/slot-recipes/Dialog.recipe.js.map +1 -1
  142. package/dist/theme/slot-recipes/GroupHeading.recipe.js +1 -1
  143. package/dist/theme/slot-recipes/GroupHeading.recipe.js.map +1 -1
  144. package/dist/theme/slot-recipes/MarkdownCard.recipe.d.ts +3 -3
  145. package/dist/theme/slot-recipes/MarkdownCard.recipe.js +4 -3
  146. package/dist/theme/slot-recipes/MarkdownCard.recipe.js.map +1 -1
  147. package/dist/theme/slot-recipes/NoteCard.recipe.js +14 -4
  148. package/dist/theme/slot-recipes/NoteCard.recipe.js.map +1 -1
  149. package/dist/theme/slot-recipes/Select.recipe.js +28 -11
  150. package/dist/theme/slot-recipes/Select.recipe.js.map +1 -1
  151. package/dist/theme/slot-recipes/StepCard.recipe.js.map +1 -1
  152. package/dist/theme/slot-recipes/Switch.recipe.d.ts +3 -3
  153. package/dist/theme/slot-recipes/Switch.recipe.js +12 -12
  154. package/dist/theme/slot-recipes/Switch.recipe.js.map +1 -1
  155. package/dist/theme/slot-recipes/TagsInput.recipe.d.ts +9 -4
  156. package/dist/theme/slot-recipes/TagsInput.recipe.js +18 -5
  157. package/dist/theme/slot-recipes/TagsInput.recipe.js.map +1 -1
  158. package/dist/theme/slot-recipes/Toast.recipe.js +4 -1
  159. package/dist/theme/slot-recipes/Toast.recipe.js.map +1 -1
  160. package/dist/theme/slot-recipes/TreeView.recipe.d.ts +1 -0
  161. package/dist/theme/slot-recipes/TreeView.recipe.js +4 -1
  162. package/dist/theme/slot-recipes/TreeView.recipe.js.map +1 -1
  163. package/dist/theme/slot-recipes/index.js +2 -0
  164. package/dist/theme/slot-recipes/index.js.map +1 -1
  165. package/dist/theme/text-styles.js.map +1 -1
  166. package/package.json +6 -6
  167. package/dist/components/BitkitExplainerList/BitkitExplainerList.d.ts +0 -14
  168. package/dist/components/BitkitExplainerList/BitkitExplainerList.js +0 -54
  169. package/dist/components/BitkitExplainerList/BitkitExplainerList.js.map +0 -1
  170. package/dist/components/BitkitOrderedList/BitkitOrderedList.d.ts +0 -13
  171. package/dist/components/BitkitOrderedList/BitkitOrderedList.js +0 -30
  172. package/dist/components/BitkitOrderedList/BitkitOrderedList.js.map +0 -1
  173. package/dist/components/BitkitToggle/BitkitToggle.d.ts +0 -3
  174. package/dist/components/BitkitToggle/BitkitToggle.js +0 -123
  175. package/dist/components/BitkitToggle/BitkitToggle.js.map +0 -1
  176. package/dist/components/BitkitToggle/BitkitToggle.types.d.ts +0 -22
  177. package/dist/components/BitkitToggle/components/BitkitToggleHelperText.d.ts +0 -3
  178. package/dist/components/BitkitToggle/components/BitkitToggleHelperText.js.map +0 -1
  179. package/dist/components/BitkitToggle/components/BitkitToggleLabel.d.ts +0 -3
  180. package/dist/components/BitkitToggle/components/BitkitToggleLabel.js.map +0 -1
  181. package/dist/components/BitkitToggle/components/BitkitToggleReadOnly.d.ts +0 -4
  182. package/dist/components/BitkitToggle/components/BitkitToggleValueText.d.ts +0 -3
  183. package/dist/components/BitkitToggle/components/BitkitToggleValueText.js.map +0 -1
  184. package/dist/components/BitkitToggle/index.d.ts +0 -2
  185. package/dist/components/BitkitUnorderedList/BitkitUnorderedList.d.ts +0 -16
  186. package/dist/components/BitkitUnorderedList/BitkitUnorderedList.js +0 -52
  187. package/dist/components/BitkitUnorderedList/BitkitUnorderedList.js.map +0 -1
  188. package/dist/theme/slot-recipes/Combobox.recipe.d.ts +0 -11
@@ -1,4 +1,4 @@
1
- declare const dialogSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "body" | "footer" | "header" | "label" | "title" | "trigger" | "positioner" | "closeTrigger" | "description" | "scrollBody" | "scrollGradient" | "scrollButton" | "backdrop", {
1
+ declare const dialogSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "body" | "footer" | "header" | "label" | "title" | "trigger" | "positioner" | "closeTrigger" | "description" | "stepTitleGroup" | "stepTitle" | "stepDescription" | "scrollBody" | "scrollGradient" | "scrollButton" | "stepHeader" | "backdrop", {
2
2
  scrollBehavior: {
3
3
  inside: {
4
4
  body: {
@@ -17,17 +17,26 @@ declare const dialogSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<
17
17
  size: {
18
18
  lg: {
19
19
  content: {
20
- width: string;
20
+ width: {
21
+ base: "100%";
22
+ tablet: string;
23
+ };
21
24
  };
22
25
  };
23
26
  md: {
24
27
  content: {
25
- width: string;
28
+ width: {
29
+ base: "100%";
30
+ tablet: string;
31
+ };
26
32
  };
27
33
  };
28
34
  sm: {
29
35
  content: {
30
- width: string;
36
+ width: {
37
+ base: "100%";
38
+ tablet: string;
39
+ };
31
40
  };
32
41
  };
33
42
  };
@@ -9,7 +9,11 @@ var dialogSlotRecipe = defineSlotRecipe({
9
9
  "label",
10
10
  "scrollBody",
11
11
  "scrollButton",
12
- "scrollGradient"
12
+ "scrollGradient",
13
+ "stepDescription",
14
+ "stepHeader",
15
+ "stepTitle",
16
+ "stepTitleGroup"
13
17
  ],
14
18
  base: {
15
19
  backdrop: {
@@ -27,7 +31,10 @@ var dialogSlotRecipe = defineSlotRecipe({
27
31
  }
28
32
  },
29
33
  positioner: {
30
- alignItems: "center",
34
+ alignItems: {
35
+ base: "flex-start",
36
+ tablet: "center"
37
+ },
31
38
  display: "flex",
32
39
  height: "100dvh",
33
40
  justifyContent: "center",
@@ -39,7 +46,10 @@ var dialogSlotRecipe = defineSlotRecipe({
39
46
  },
40
47
  content: {
41
48
  background: "background/primary",
42
- borderRadius: "8",
49
+ borderRadius: {
50
+ base: 0,
51
+ tablet: "8"
52
+ },
43
53
  boxShadow: "elevation/lg",
44
54
  display: "flex",
45
55
  flexDirection: "column",
@@ -57,7 +67,7 @@ var dialogSlotRecipe = defineSlotRecipe({
57
67
  header: {
58
68
  display: "flex",
59
69
  flexDirection: "column",
60
- gap: "16",
70
+ gap: "48",
61
71
  paddingBlock: "24",
62
72
  paddingInline: "32",
63
73
  position: "relative"
@@ -120,6 +130,20 @@ var dialogSlotRecipe = defineSlotRecipe({
120
130
  position: "absolute",
121
131
  width: "32"
122
132
  },
133
+ stepDescription: {
134
+ color: "text/secondary",
135
+ textStyle: "body/md/regular"
136
+ },
137
+ stepHeader: { overflowY: "auto" },
138
+ stepTitle: {
139
+ color: "text/primary",
140
+ textStyle: "heading/h3"
141
+ },
142
+ stepTitleGroup: {
143
+ display: "flex",
144
+ flexDirection: "column",
145
+ gap: "4"
146
+ },
123
147
  scrollGradient: {
124
148
  background: "linear-gradient(0deg, {colors.background.primary} 0%, transparent 100%)",
125
149
  bottom: 48,
@@ -144,9 +168,18 @@ var dialogSlotRecipe = defineSlotRecipe({
144
168
  outside: {}
145
169
  },
146
170
  size: {
147
- lg: { content: { width: rem(800) } },
148
- md: { content: { width: rem(640) } },
149
- sm: { content: { width: rem(480) } }
171
+ lg: { content: { width: {
172
+ base: "100%",
173
+ tablet: rem(800)
174
+ } } },
175
+ md: { content: { width: {
176
+ base: "100%",
177
+ tablet: rem(640)
178
+ } } },
179
+ sm: { content: { width: {
180
+ base: "100%",
181
+ tablet: rem(480)
182
+ } } }
150
183
  },
151
184
  variant: { overflowContent: {
152
185
  content: {
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Dialog.recipe.ts"],"sourcesContent":["import { dialogAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst dialogSlotRecipe = defineSlotRecipe({\n className: 'dialog',\n slots: [...dialogAnatomy.keys(), 'label', 'scrollBody', 'scrollButton', 'scrollGradient'] as const,\n base: {\n backdrop: {\n background: 'utilities/overlay',\n position: 'fixed',\n inset: 0,\n zIndex: 'dialogOverlay',\n _open: {\n animationStyle: 'fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationStyle: 'fade-out',\n animationDuration: 'moderate',\n },\n },\n positioner: {\n alignItems: 'center',\n display: 'flex',\n height: '100dvh',\n justifyContent: 'center',\n left: 0,\n position: 'fixed',\n top: 0,\n width: '100dvw',\n zIndex: 'dialog',\n },\n content: {\n background: 'background/primary',\n borderRadius: '8',\n boxShadow: 'elevation/lg',\n display: 'flex',\n flexDirection: 'column',\n outline: 'none',\n position: 'relative',\n _open: {\n animationStyle: 'scale-fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationStyle: 'scale-fade-out',\n animationDuration: 'faster',\n },\n },\n header: {\n display: 'flex',\n flexDirection: 'column',\n gap: '16',\n paddingBlock: '24',\n paddingInline: '32',\n position: 'relative',\n },\n title: {\n color: 'text/primary',\n paddingInlineEnd: '48',\n textStyle: 'comp/dialog/title',\n },\n description: {\n color: 'text/body',\n textStyle: 'body/lg/regular',\n },\n label: {\n color: 'text/secondary',\n textStyle: 'comp/dialog/label',\n },\n body: {\n display: 'flex',\n flex: '1',\n flexDirection: 'column',\n gap: '24',\n paddingInline: '32',\n _last: {\n paddingBlockEnd: '48',\n },\n },\n scrollBody: {\n display: 'flex',\n flexDirection: 'column',\n minHeight: 0,\n position: 'relative',\n _last: {\n paddingBlockEnd: '48',\n },\n },\n footer: {\n alignItems: 'center',\n display: 'flex',\n gap: '16',\n justifyContent: 'flex-end',\n paddingBlockEnd: '32',\n paddingBlockStart: '24',\n paddingInline: '32',\n },\n closeTrigger: {\n insetEnd: '24',\n position: 'absolute',\n top: '24',\n },\n scrollButton: {\n alignItems: 'center',\n alignSelf: 'center',\n background: 'background/primary',\n borderColor: 'border/minimal',\n borderRadius: '100%',\n borderWidth: '1px',\n bottom: '16',\n boxShadow: 'elevation/lg',\n cursor: 'pointer',\n display: 'flex',\n height: '32',\n justifyContent: 'center',\n position: 'absolute',\n width: '32',\n },\n scrollGradient: {\n background: 'linear-gradient(0deg, {colors.background.primary} 0%, transparent 100%)',\n bottom: 48,\n height: '32',\n pointerEvents: 'none',\n position: 'absolute',\n width: '100%',\n },\n },\n variants: {\n scrollBehavior: {\n inside: {\n body: {\n overflowY: 'auto',\n _last: {\n paddingBlockEnd: 0, // override base _last: scrollBody slot handles padding instead\n },\n },\n content: {\n maxHeight: 'calc(100dvh - 96px)',\n overflow: 'hidden',\n },\n },\n outside: {},\n },\n size: {\n lg: {\n content: {\n width: rem(800),\n },\n },\n md: {\n content: {\n width: rem(640),\n },\n },\n sm: {\n content: {\n width: rem(480),\n },\n },\n },\n variant: {\n overflowContent: {\n content: {\n maxHeight: 'calc(100dvh - 48px)',\n overflow: 'hidden',\n },\n header: {\n gap: '8',\n paddingBlockEnd: '8',\n paddingBlockStart: '16',\n paddingInline: '16',\n },\n title: {\n paddingInlineEnd: '32',\n textStyle: 'heading/h4',\n },\n body: {\n overflowY: 'auto',\n paddingBlockEnd: '8',\n paddingInline: '16',\n _last: {\n paddingBlockEnd: 0,\n },\n },\n scrollBody: {\n _last: {\n paddingBlockEnd: '16',\n },\n },\n footer: {\n paddingBlockEnd: '16',\n paddingBlockStart: 0,\n paddingInline: '16',\n },\n closeTrigger: {\n insetEnd: '12',\n top: '12',\n },\n scrollGradient: {\n bottom: '16',\n },\n scrollButton: {\n bottom: '8',\n },\n },\n },\n },\n defaultVariants: {\n scrollBehavior: 'outside',\n size: 'md',\n },\n});\n\nexport default dialogSlotRecip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,QAAQ;GACR,WAAW;GACX,QAAQ;GACR,SAAS;GACT,QAAQ;GACR,gBAAgB;GAChB,UAAU;GACV,OAAO;GACR;EACD,gBAAgB;GACd,YAAY;GACZ,QAAQ;GACR,QAAQ;GACR,eAAe;GACf,UAAU;GACV,OAAO;GACR;EACF;CACD,UAAU;EACR,gBAAgB;GACd,QAAQ;IACN,MAAM;KACJ,WAAW;KACX,OAAO,EACL,iBAAiB,GAClB;KACF;IACD,SAAS;KACP,WAAW;KACX,UAAU;KACX;IACF;GACD,SAAS,EAAE;GACZ;EACD,MAAM;GACJ,IAAI,EACF,SAAS,EACP,OAAO,IAAI,IAAI,EAChB,EACF;GACD,IAAI,EACF,SAAS,EACP,OAAO,IAAI,IAAI,EAChB,EACF;GACD,IAAI,EACF,SAAS,EACP,OAAO,IAAI,IAAI,EAChB,EACF;GACF;EACD,SAAS,EACP,iBAAiB;GACf,SAAS;IACP,WAAW;IACX,UAAU;IACX;GACD,QAAQ;IACN,KAAK;IACL,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;IAChB;GACD,OAAO;IACL,kBAAkB;IAClB,WAAW;IACZ;GACD,MAAM;IACJ,WAAW;IACX,iBAAiB;IACjB,eAAe;IACf,OAAO,EACL,iBAAiB,GAClB;IACF;GACD,YAAY,EACV,OAAO,EACL,iBAAiB,MAClB,EACF;GACD,QAAQ;IACN,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;IAChB;GACD,cAAc;IACZ,UAAU;IACV,KAAK;IACN;GACD,gBAAgB,EACd,QAAQ,MACT;GACD,cAAc,EACZ,QAAQ,KACT;GACF,EACF;EACF;CACD,iBAAiB;EACf,gBAAgB;EAChB,MAAM;EACP;CACF,CAAC"}
1
+ {"version":3,"file":"Dialog.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Dialog.recipe.ts"],"sourcesContent":["import { dialogAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst dialogSlotRecipe = defineSlotRecipe({\n className: 'dialog',\n slots: [\n ...dialogAnatomy.keys(),\n 'label',\n 'scrollBody',\n 'scrollButton',\n 'scrollGradient',\n 'stepDescription',\n 'stepHeader',\n 'stepTitle',\n 'stepTitleGroup',\n ] as const,\n base: {\n backdrop: {\n background: 'utilities/overlay',\n position: 'fixed',\n inset: 0,\n zIndex: 'dialogOverlay',\n _open: {\n animationStyle: 'fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationStyle: 'fade-out',\n animationDuration: 'moderate',\n },\n },\n positioner: {\n alignItems: { base: 'flex-start', tablet: 'center' },\n display: 'flex',\n height: '100dvh',\n justifyContent: 'center',\n left: 0,\n position: 'fixed',\n top: 0,\n width: '100dvw',\n zIndex: 'dialog',\n },\n content: {\n background: 'background/primary',\n borderRadius: { base: 0, tablet: '8' },\n boxShadow: 'elevation/lg',\n display: 'flex',\n flexDirection: 'column',\n outline: 'none',\n position: 'relative',\n _open: {\n animationStyle: 'scale-fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationStyle: 'scale-fade-out',\n animationDuration: 'faster',\n },\n },\n header: {\n display: 'flex',\n flexDirection: 'column',\n gap: '48',\n paddingBlock: '24',\n paddingInline: '32',\n position: 'relative',\n },\n title: {\n color: 'text/primary',\n paddingInlineEnd: '48',\n textStyle: 'comp/dialog/title',\n },\n description: {\n color: 'text/body',\n textStyle: 'body/lg/regular',\n },\n label: {\n color: 'text/secondary',\n textStyle: 'comp/dialog/label',\n },\n body: {\n display: 'flex',\n flex: '1',\n flexDirection: 'column',\n gap: '24',\n paddingInline: '32',\n _last: {\n paddingBlockEnd: '48',\n },\n },\n scrollBody: {\n display: 'flex',\n flexDirection: 'column',\n minHeight: 0,\n position: 'relative',\n _last: {\n paddingBlockEnd: '48',\n },\n },\n footer: {\n alignItems: 'center',\n display: 'flex',\n gap: '16',\n justifyContent: 'flex-end',\n paddingBlockEnd: '32',\n paddingBlockStart: '24',\n paddingInline: '32',\n },\n closeTrigger: {\n insetEnd: '24',\n position: 'absolute',\n top: '24',\n },\n scrollButton: {\n alignItems: 'center',\n alignSelf: 'center',\n background: 'background/primary',\n borderColor: 'border/minimal',\n borderRadius: '100%',\n borderWidth: '1px',\n bottom: '16',\n boxShadow: 'elevation/lg',\n cursor: 'pointer',\n display: 'flex',\n height: '32',\n justifyContent: 'center',\n position: 'absolute',\n width: '32',\n },\n stepDescription: {\n color: 'text/secondary',\n textStyle: 'body/md/regular',\n },\n stepHeader: {\n overflowY: 'auto',\n },\n stepTitle: {\n color: 'text/primary',\n textStyle: 'heading/h3',\n },\n stepTitleGroup: {\n display: 'flex',\n flexDirection: 'column',\n gap: '4',\n },\n scrollGradient: {\n background: 'linear-gradient(0deg, {colors.background.primary} 0%, transparent 100%)',\n bottom: 48,\n height: '32',\n pointerEvents: 'none',\n position: 'absolute',\n width: '100%',\n },\n },\n variants: {\n scrollBehavior: {\n inside: {\n body: {\n overflowY: 'auto',\n _last: {\n paddingBlockEnd: 0, // override base _last: scrollBody slot handles padding instead\n },\n },\n content: {\n maxHeight: 'calc(100dvh - 96px)',\n overflow: 'hidden',\n },\n },\n outside: {},\n },\n size: {\n lg: {\n content: {\n width: { base: '100%', tablet: rem(800) },\n },\n },\n md: {\n content: {\n width: { base: '100%', tablet: rem(640) },\n },\n },\n sm: {\n content: {\n width: { base: '100%', tablet: rem(480) },\n },\n },\n },\n variant: {\n overflowContent: {\n content: {\n maxHeight: 'calc(100dvh - 48px)',\n overflow: 'hidden',\n },\n header: {\n gap: '8',\n paddingBlockEnd: '8',\n paddingBlockStart: '16',\n paddingInline: '16',\n },\n title: {\n paddingInlineEnd: '32',\n textStyle: 'heading/h4',\n },\n body: {\n overflowY: 'auto',\n paddingBlockEnd: '8',\n paddingInline: '16',\n _last: {\n paddingBlockEnd: 0,\n },\n },\n scrollBody: {\n _last: {\n paddingBlockEnd: '16',\n },\n },\n footer: {\n paddingBlockEnd: '16',\n paddingBlockStart: 0,\n paddingInline: '16',\n },\n closeTrigger: {\n insetEnd: '12',\n top: '12',\n },\n scrollGradient: {\n bottom: '16',\n },\n scrollButton: {\n bottom: '8',\n },\n },\n },\n },\n defaultVariants: {\n scrollBehavior: 'outside',\n size: 'md',\n },\n});\n\nexport default dialogSlotRecipe;\n"],"mappings":";;;;AAKA,IAAM,mBAAmB,iBAAiB;CACxC,WAAW;CACX,OAAO;EACL,GAAG,cAAc,MAAM;EACvB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CACD,MAAM;EACJ,UAAU;GACR,YAAY;GACZ,UAAU;GACV,OAAO;GACP,QAAQ;GACR,OAAO;IACL,gBAAgB;IAChB,mBAAmB;IACpB;GACD,SAAS;IACP,gBAAgB;IAChB,mBAAmB;IACpB;GACF;EACD,YAAY;GACV,YAAY;IAAE,MAAM;IAAc,QAAQ;IAAU;GACpD,SAAS;GACT,QAAQ;GACR,gBAAgB;GAChB,MAAM;GACN,UAAU;GACV,KAAK;GACL,OAAO;GACP,QAAQ;GACT;EACD,SAAS;GACP,YAAY;GACZ,cAAc;IAAE,MAAM;IAAG,QAAQ;IAAK;GACtC,WAAW;GACX,SAAS;GACT,eAAe;GACf,SAAS;GACT,UAAU;GACV,OAAO;IACL,gBAAgB;IAChB,mBAAmB;IACpB;GACD,SAAS;IACP,gBAAgB;IAChB,mBAAmB;IACpB;GACF;EACD,QAAQ;GACN,SAAS;GACT,eAAe;GACf,KAAK;GACL,cAAc;GACd,eAAe;GACf,UAAU;GACX;EACD,OAAO;GACL,OAAO;GACP,kBAAkB;GAClB,WAAW;GACZ;EACD,aAAa;GACX,OAAO;GACP,WAAW;GACZ;EACD,OAAO;GACL,OAAO;GACP,WAAW;GACZ;EACD,MAAM;GACJ,SAAS;GACT,MAAM;GACN,eAAe;GACf,KAAK;GACL,eAAe;GACf,OAAO,EACL,iBAAiB,MAClB;GACF;EACD,YAAY;GACV,SAAS;GACT,eAAe;GACf,WAAW;GACX,UAAU;GACV,OAAO,EACL,iBAAiB,MA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,iBAAiB;IACjB,eAAe;IACf,OAAO,EACL,iBAAiB,GAClB;IACF;GACD,YAAY,EACV,OAAO,EACL,iBAAiB,MAClB,EACF;GACD,QAAQ;IACN,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;IAChB;GACD,cAAc;IACZ,UAAU;IACV,KAAK;IACN;GACD,gBAAgB,EACd,QAAQ,MACT;GACD,cAAc,EACZ,QAAQ,KACT;GACF,EACF;EACF;CACD,iBAAiB;EACf,gBAAgB;EAChB,MAAM;EACP;CACF,CAAC"}
@@ -26,7 +26,7 @@ var groupHeadingRecipe = defineSlotRecipe({
26
26
  gap: "4"
27
27
  },
28
28
  icon: {
29
- color: "icon/secondary",
29
+ color: "icon/tertiary",
30
30
  flexShrink: 0
31
31
  },
32
32
  label: {
@@ -1 +1 @@
1
- {"version":3,"file":"GroupHeading.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/GroupHeading.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst groupHeadingRecipe = defineSlotRecipe({\n className: 'group-heading',\n slots: ['root', 'titleBlock', 'icon', 'label', 'separator'],\n base: {\n root: {\n alignItems: 'center',\n display: 'flex',\n gap: '16',\n overflow: 'clip',\n paddingBlockEnd: '4',\n paddingBlockStart: '8',\n paddingInlineEnd: '8',\n },\n titleBlock: {\n alignItems: 'center',\n display: 'flex',\n flexShrink: 0,\n gap: '4',\n },\n icon: {\n color: 'icon/secondary',\n flexShrink: 0,\n },\n label: {\n color: 'text/tertiary',\n flexShrink: 0,\n textStyle: 'heading/h6',\n },\n separator: {\n flex: 1,\n },\n },\n});\n\nexport default groupHeadingRecipe;\n"],"mappings":";;AAEA,IAAM,qBAAqB,iBAAiB;CAC1C,WAAW;CACX,OAAO;EAAC;EAAQ;EAAc;EAAQ;EAAS;EAAY;CAC3D,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,KAAK;GACL,UAAU;GACV,iBAAiB;GACjB,mBAAmB;GACnB,kBAAkB;GACnB;EACD,YAAY;GACV,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GACN;EACD,MAAM;GACJ,OAAO;GACP,YAAY;GACb;EACD,OAAO;GACL,OAAO;GACP,YAAY;GACZ,WAAW;GACZ;EACD,WAAW,EACT,MAAM,GACP;EACF;CACF,CAAC"}
1
+ {"version":3,"file":"GroupHeading.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/GroupHeading.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst groupHeadingRecipe = defineSlotRecipe({\n className: 'group-heading',\n slots: ['root', 'titleBlock', 'icon', 'label', 'separator'],\n base: {\n root: {\n alignItems: 'center',\n display: 'flex',\n gap: '16',\n overflow: 'clip',\n paddingBlockEnd: '4',\n paddingBlockStart: '8',\n paddingInlineEnd: '8',\n },\n titleBlock: {\n alignItems: 'center',\n display: 'flex',\n flexShrink: 0,\n gap: '4',\n },\n icon: {\n color: 'icon/tertiary',\n flexShrink: 0,\n },\n label: {\n color: 'text/tertiary',\n flexShrink: 0,\n textStyle: 'heading/h6',\n },\n separator: {\n flex: 1,\n },\n },\n});\n\nexport default groupHeadingRecipe;\n"],"mappings":";;AAEA,IAAM,qBAAqB,iBAAiB;CAC1C,WAAW;CACX,OAAO;EAAC;EAAQ;EAAc;EAAQ;EAAS;EAAY;CAC3D,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,SAAS;GACT,KAAK;GACL,UAAU;GACV,iBAAiB;GACjB,mBAAmB;GACnB,kBAAkB;GACnB;EACD,YAAY;GACV,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,KAAK;GACN;EACD,MAAM;GACJ,OAAO;GACP,YAAY;GACb;EACD,OAAO;GACL,OAAO;GACP,YAAY;GACZ,WAAW;GACZ;EACD,WAAW,EACT,MAAM,GACP;EACF;CACF,CAAC"}
@@ -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: "status/success/icon";
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: "status/warning/icon";
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: "status/critical/icon";
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: "status/success/icon"
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: "status/warning/icon"
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: "status/critical/icon"
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: 'status/success/icon',\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: 'status/warning/icon',\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: 'status/critical/icon',\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,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
+ {"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: ICONS_MAP[v]
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: { textStyle: "comp/notification/message" },
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: ICONS_MAP.ai
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 { ICONS_MAP, type NotificationVariant } from '../common/AlertAndToast.common';\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: ICONS_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 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: ICONS_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,kBAAuD;CAC3D,IAAI;CACJ,UAAU;CACV,MAAM;CACN,UAAU;CACV,SAAS;CACT,SAAS;CACV;AAED,IAAM,oBAAoB,OAA4B;CACpD,SAAS;EACP,iBAAiB,UAAU,EAAE;EAC7B,OAAO,UAAU;EAClB;CACD,aAAa,EAAE,OAAO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.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;CACV,SAAS;CACT,SAAS;CACV;AAED,IAAM,kBAAuD;CAC3D,IAAI;CACJ,UAAU;CACV,MAAM;CACN,UAAU;CACV,SAAS;CACT,SAAS;CACV;AAED,IAAM,oBAAoB,OAA4B;CACpD,SAAS;EACP,iBAAiB,UAAU,EAAE;EAC7B,OAAO,uBAAuB;EAC/B;CACD,aAAa,EAAE,OAAO,gBAAgB,IAAI;CAC1C,MAAM,EAAE,aAAa,UAAU,EAAE,UAAU;CAC3C,OAAO,EAAE,OAAO,gBAAgB,IAAI;CACrC;AAED,IAAM,qBAAqB,iBAAiB;CAC1C,WAAW;CACX,OAAO;EAAC;EAAQ;EAAW;EAAe;EAAW;EAAgB;EAAS;EAAW;EAAe;EAAa;CACrH,MAAM;EACJ,MAAM;GACJ,YAAY;GACZ,iBAAiB;GACjB,QAAQ;GACR,cAAc;GACd,SAAS;GACT,UAAU;GACX;EACD,SAAS;GACP,YAAY;GACZ,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,cAAc;GACd,eAAe;GAChB;EACD,aAAa;GACX,YAAY;GACZ,SAAS;GACT,QAAQ;GACR,gBAAgB;GAChB,OAAO;GACR;EACD,SAAS;GACP,YAAY;GACZ,SAAS;GACT,MAAM;GACN,KAAK;GACL,UAAU;GACV,cAAc;GACd,kBAAkB;GAClB,oBAAoB;GACrB;EACD,cAAc;GACZ,SAAS;GACT,MAAM;GACN,eAAe;GACf,KAAK;GACL,UAAU;GACV,OAAO;GACR;EACD,OAAO,EACL,WAAW,2BACZ;EACD,SAAS;GACP,WAAW;GACX,OAAO;GACR;EACD,aAAa;GACX,mBAAmB;GACnB,WAAW;GACZ;EACD,YAAY,EACV,YAAY,GACb;EACF;CACD,UAAU,EACR,QAAQ;EACN,IAAI;GACF,SAAS;IACP,YAAY;IACZ,OAAO,uBAAuB;IAC/B;GACD,aAAa,EAAE,OAAO,gBAAgB,IAAI;GAC1C,MAAM;IACJ,iBAAiB;IACjB,QAAQ;IACR,YACE;IACH;GACD,OAAO,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
- createItem: {
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
- flexShrink: 0,
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: rem(24)
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: rem(20)
291
+ lineHeight: "normal"
276
292
  },
277
293
  itemLoadingLabel: { textStyle: "body/md/regular" },
278
294
  emptyState: { paddingBlock: "8" },
279
295
  createItem: {
280
- color: "text/primary",
281
- paddingBlock: "16",
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,aAAa;GACX,SAAS;GACT,eAAe;GACf,YAAY;GACZ,MAAM;GACN,UAAU;GACX;EACD,aAAa,EACX,YAAY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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,OAAO,iBACR;GACF;EACD,gBAAgB;GACd,OAAO;GACP,WAAW;GACX,YAAY;GACZ,UAAU;GACV,cAAc;GACd,UA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AQ;IACT;GACD,MAAM;IACJ,GAAG,SAAS,KAAK,GAAG;IACpB,iCAA+B;KAC7B,oBAAoB;KACpB,kBAAkB;KAClB,cAAc;KACd,KAAK;KACN;IACD,mCAAiC;KAC/B,WAAW;KACX,kBAAkB;KAClB,cAAc;KACd,KAAK;KACN;IACF;GACD,UAAU,EAER,WAAW,IAAI,IAAI,EACpB;GACD,WAAW;IACT,WAAW;IACX,YAAY;IACb;GACD,kBAAkB,EAChB,WAAW,mBACZ;GACD,YAAY,EACV,cAAc,MACf;GACD,YAAY;IACV,WAAW;IACX,cAAc;IACd,WAAW;IACX,YAAY;IACb;GACD,kBAAkB;IAChB,QAAQ,IAAI,GAAG;IACf,cAAc;IACf;GACD,aAAa,EACX,WAAW,mBACZ;GACD,aAAa,EACX,SAAS,KACV;GACF;EACD,IAAI;GACF,GAAG,SAAS,KAAK;GACjB,UAAU;IACR,OAAO;IACP,QAAQ;IACT;GACD,MAAM;IACJ,GAAG,SAAS,KAAK,GAAG;IACpB,iCAA+B;KAC7B,oBAAoB;KACpB,kBAAkB;KAClB,cAAc;KACd,KAAK;KACN;IACD,mCAAiC;KAC/B,WAAW;KACX,kBAAkB;KAClB,cAAc;KACd,KAAK;KACN;IACF;GACD,UAAU,EAER,WAAW,IAAI,IAAI,EACpB;GACD,WAAW;IACT,WAAW;IACX,YAAY;IACb;GACD,kBAAkB,EAChB,WAAW,mBACZ;GACD,YAAY,EACV,cAAc,KACf;GACD,YAAY;IACV,WAAW;IACX,cAAc;IACd,WAAW;IACX,YAAY;IACb;GACD,SAAS;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 +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,aAAa,CAInC,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
+ {"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
- sm: {
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/sm/regular";
13
+ textStyle: "body/md/regular";
14
14
  };
15
15
  };
16
- md: {
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/toggle/frameOff",
36
+ bg: "input/switch/off/track",
37
37
  cursor: "pointer",
38
38
  transition: "backgrounds",
39
39
  _checked: {
40
- bg: "input/toggle/frameOn",
41
- _disabled: { bg: "input/toggle/frameOn-disabled" }
40
+ bg: "input/switch/on/track",
41
+ _disabled: { bg: "input/switch/on/track-disabled" }
42
42
  },
43
43
  _disabled: {
44
- bg: "input/toggle/frameOff-disabled",
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/toggle/slideOff",
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/toggle/slideOn",
60
+ bg: "input/switch/on/thumb",
61
61
  translate: "var(--switch-x) 0"
62
62
  },
63
63
  _disabled: {
64
- bg: "input/toggle/slideOff-disabled",
65
- _checked: { bg: "input/toggle/slideOn-disabled" }
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
- sm: {
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/sm/regular" }
77
+ label: { textStyle: "body/md/regular" }
78
78
  },
79
- md: {
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: "md" }
89
+ defaultVariants: { size: "lg" }
90
90
  });
91
91
  //#endregion
92
92
  export { switchSlotRecipe as default };