@bitrise/bitkit-v2 0.3.481-beta.3059 → 0.3.481-beta.3061

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 (136) hide show
  1. package/dist/components/BitkitCalendar/BitkitCalendar.d.ts +0 -12
  2. package/dist/components/BitkitCalendar/BitkitCalendar.js +1 -7
  3. package/dist/components/BitkitCalendar/BitkitCalendar.js.map +1 -1
  4. package/dist/components/BitkitCalendar/components/CalendarContent.d.ts +1 -5
  5. package/dist/components/BitkitCalendar/components/CalendarContent.js +43 -60
  6. package/dist/components/BitkitCalendar/components/CalendarContent.js.map +1 -1
  7. package/dist/components/BitkitCalendar/components/CalendarMonth.d.ts +2 -4
  8. package/dist/components/BitkitCalendar/components/CalendarMonth.js +5 -15
  9. package/dist/components/BitkitCalendar/components/CalendarMonth.js.map +1 -1
  10. package/dist/components/BitkitCalendar/components/CalendarMonthSelect.d.ts +1 -2
  11. package/dist/components/BitkitCalendar/components/CalendarMonthSelect.js +2 -3
  12. package/dist/components/BitkitCalendar/components/CalendarMonthSelect.js.map +1 -1
  13. package/dist/components/BitkitCalendar/components/CalendarNextTrigger.d.ts +1 -3
  14. package/dist/components/BitkitCalendar/components/CalendarNextTrigger.js +3 -3
  15. package/dist/components/BitkitCalendar/components/CalendarNextTrigger.js.map +1 -1
  16. package/dist/components/BitkitCalendar/components/CalendarPrevTrigger.d.ts +1 -3
  17. package/dist/components/BitkitCalendar/components/CalendarPrevTrigger.js +3 -3
  18. package/dist/components/BitkitCalendar/components/CalendarPrevTrigger.js.map +1 -1
  19. package/dist/components/BitkitCalendar/components/CalendarSelect.d.ts +0 -1
  20. package/dist/components/BitkitCalendar/components/CalendarSelect.js +3 -5
  21. package/dist/components/BitkitCalendar/components/CalendarSelect.js.map +1 -1
  22. package/dist/components/BitkitCalendar/components/CalendarTrigger.js +0 -1
  23. package/dist/components/BitkitCalendar/components/CalendarTrigger.js.map +1 -1
  24. package/dist/components/BitkitCalendar/components/CalendarYearSelect.d.ts +1 -2
  25. package/dist/components/BitkitCalendar/components/CalendarYearSelect.js +2 -3
  26. package/dist/components/BitkitCalendar/components/CalendarYearSelect.js.map +1 -1
  27. package/dist/components/BitkitDatePicker/BitkitDatePicker.d.ts +0 -2
  28. package/dist/components/BitkitDatePicker/BitkitDatePicker.js +1 -2
  29. package/dist/components/BitkitDatePicker/BitkitDatePicker.js.map +1 -1
  30. package/dist/components/BitkitLabelTooltip/BitkitLabelTooltip.d.ts +3 -4
  31. package/dist/components/BitkitLabelTooltip/BitkitLabelTooltip.js +2 -3
  32. package/dist/components/BitkitLabelTooltip/BitkitLabelTooltip.js.map +1 -1
  33. package/dist/components/BitkitMarkdown/BitkitMarkdown.js +1 -1
  34. package/dist/components/BitkitNoteCard/BitkitNoteCard.js +1 -1
  35. package/dist/components/BitkitPageSidebar/BitkitPageSidebar.js +1 -1
  36. package/dist/components/BitkitUIHeader/BitkitUIHeader.d.ts +37 -0
  37. package/dist/components/BitkitUIHeader/BitkitUIHeader.js +112 -0
  38. package/dist/components/BitkitUIHeader/BitkitUIHeader.js.map +1 -0
  39. package/dist/components/BitkitUIHeader/BitriseLogo.d.ts +10 -0
  40. package/dist/components/BitkitUIHeader/BitriseLogo.js +86 -0
  41. package/dist/components/BitkitUIHeader/BitriseLogo.js.map +1 -0
  42. package/dist/components/BitkitUIHeader/UIHeaderAccount.d.ts +23 -0
  43. package/dist/components/BitkitUIHeader/UIHeaderAccount.js +40 -0
  44. package/dist/components/BitkitUIHeader/UIHeaderAccount.js.map +1 -0
  45. package/dist/components/BitkitUIHeader/UIHeaderButton.d.ts +32 -0
  46. package/dist/components/BitkitUIHeader/UIHeaderButton.js +41 -0
  47. package/dist/components/BitkitUIHeader/UIHeaderButton.js.map +1 -0
  48. package/dist/components/BitkitUIHeader/UIHeaderContext.d.ts +13 -0
  49. package/dist/components/BitkitUIHeader/UIHeaderContext.js +11 -0
  50. package/dist/components/BitkitUIHeader/UIHeaderContext.js.map +1 -0
  51. package/dist/components/BitkitUIHeader/UIHeaderControl.d.ts +65 -0
  52. package/dist/components/BitkitUIHeader/UIHeaderControl.js +71 -0
  53. package/dist/components/BitkitUIHeader/UIHeaderControl.js.map +1 -0
  54. package/dist/components/BitkitUIHeader/UIHeaderNavButton.d.ts +20 -0
  55. package/dist/components/BitkitUIHeader/UIHeaderNavButton.js +46 -0
  56. package/dist/components/BitkitUIHeader/UIHeaderNavButton.js.map +1 -0
  57. package/dist/components/BitkitUIHeader/UIHeaderSearch.d.ts +32 -0
  58. package/dist/components/BitkitUIHeader/UIHeaderSearch.js +116 -0
  59. package/dist/components/BitkitUIHeader/UIHeaderSearch.js.map +1 -0
  60. package/dist/components/BitkitUIHeader/uiHeaderPart.d.ts +9 -0
  61. package/dist/components/BitkitUIHeader/uiHeaderPart.js +13 -0
  62. package/dist/components/BitkitUIHeader/uiHeaderPart.js.map +1 -0
  63. package/dist/components/index.d.ts +1 -6
  64. package/dist/main.js +9 -8
  65. package/dist/theme/recipes/UIHeaderButton.recipe.js +103 -0
  66. package/dist/theme/recipes/UIHeaderButton.recipe.js.map +1 -0
  67. package/dist/theme/recipes/index.js +3 -1
  68. package/dist/theme/recipes/index.js.map +1 -1
  69. package/dist/theme/slot-recipes/DatePicker.recipe.d.ts +0 -15
  70. package/dist/theme/slot-recipes/DatePicker.recipe.js +22 -72
  71. package/dist/theme/slot-recipes/DatePicker.recipe.js.map +1 -1
  72. package/dist/theme/slot-recipes/DatePickerSelect.recipe.d.ts +0 -85
  73. package/dist/theme/slot-recipes/DatePickerSelect.recipe.js +10 -35
  74. package/dist/theme/slot-recipes/DatePickerSelect.recipe.js.map +1 -1
  75. package/dist/theme/slot-recipes/Menu.recipe.js +1 -6
  76. package/dist/theme/slot-recipes/Menu.recipe.js.map +1 -1
  77. package/dist/theme/slot-recipes/Tag.recipe.d.ts +1 -1
  78. package/dist/theme/slot-recipes/UIHeader.recipe.d.ts +4 -0
  79. package/dist/theme/slot-recipes/UIHeader.recipe.js +241 -0
  80. package/dist/theme/slot-recipes/UIHeader.recipe.js.map +1 -0
  81. package/dist/theme/slot-recipes/index.d.ts +2 -158
  82. package/dist/theme/slot-recipes/index.js +2 -4
  83. package/dist/theme/slot-recipes/index.js.map +1 -1
  84. package/dist/theme/themeUtils.d.ts +6 -0
  85. package/dist/theme/themeUtils.js +7 -1
  86. package/dist/theme/themeUtils.js.map +1 -1
  87. package/dist/utilities/BitkitPortalContext.js +2 -3
  88. package/dist/utilities/BitkitPortalContext.js.map +1 -1
  89. package/docs/v1-to-v2-migration-guide.md +1 -48
  90. package/package.json +1 -1
  91. package/dist/components/BitkitFilter/BitkitFilter.context.d.ts +0 -65
  92. package/dist/components/BitkitFilter/BitkitFilter.context.js +0 -82
  93. package/dist/components/BitkitFilter/BitkitFilter.context.js.map +0 -1
  94. package/dist/components/BitkitFilter/BitkitFilter.d.ts +0 -55
  95. package/dist/components/BitkitFilter/BitkitFilter.js +0 -247
  96. package/dist/components/BitkitFilter/BitkitFilter.js.map +0 -1
  97. package/dist/components/BitkitFilter/BitkitFilter.utils.d.ts +0 -18
  98. package/dist/components/BitkitFilter/BitkitFilter.utils.js +0 -42
  99. package/dist/components/BitkitFilter/BitkitFilter.utils.js.map +0 -1
  100. package/dist/components/BitkitFilter/BitkitFilterAdd.d.ts +0 -18
  101. package/dist/components/BitkitFilter/BitkitFilterAdd.js +0 -200
  102. package/dist/components/BitkitFilter/BitkitFilterAdd.js.map +0 -1
  103. package/dist/components/BitkitFilter/BitkitFilterDateRange.d.ts +0 -26
  104. package/dist/components/BitkitFilter/BitkitFilterDateRange.js +0 -118
  105. package/dist/components/BitkitFilter/BitkitFilterDateRange.js.map +0 -1
  106. package/dist/components/BitkitFilter/BitkitFilterSearch.d.ts +0 -23
  107. package/dist/components/BitkitFilter/BitkitFilterSearch.js +0 -72
  108. package/dist/components/BitkitFilter/BitkitFilterSearch.js.map +0 -1
  109. package/dist/components/BitkitFilter/BitkitFilterSelect.d.ts +0 -61
  110. package/dist/components/BitkitFilter/BitkitFilterSelect.js +0 -149
  111. package/dist/components/BitkitFilter/BitkitFilterSelect.js.map +0 -1
  112. package/dist/components/BitkitFilter/BitkitFilterSwitch.d.ts +0 -28
  113. package/dist/components/BitkitFilter/BitkitFilterSwitch.js +0 -87
  114. package/dist/components/BitkitFilter/BitkitFilterSwitch.js.map +0 -1
  115. package/dist/components/BitkitFilter/components/FilterChip.d.ts +0 -23
  116. package/dist/components/BitkitFilter/components/FilterChip.js +0 -66
  117. package/dist/components/BitkitFilter/components/FilterChip.js.map +0 -1
  118. package/dist/components/BitkitFilter/components/FilterField.d.ts +0 -15
  119. package/dist/components/BitkitFilter/components/FilterField.js +0 -60
  120. package/dist/components/BitkitFilter/components/FilterField.js.map +0 -1
  121. package/dist/components/BitkitFilter/components/FilterPanel.d.ts +0 -42
  122. package/dist/components/BitkitFilter/components/FilterPanel.js +0 -126
  123. package/dist/components/BitkitFilter/components/FilterPanel.js.map +0 -1
  124. package/dist/components/BitkitFilter/components/FilterSearchInput.d.ts +0 -15
  125. package/dist/components/BitkitFilter/components/FilterSearchInput.js +0 -42
  126. package/dist/components/BitkitFilter/components/FilterSearchInput.js.map +0 -1
  127. package/dist/components/BitkitFilter/components/FilterSelectForm.d.ts +0 -45
  128. package/dist/components/BitkitFilter/components/FilterSelectForm.js +0 -328
  129. package/dist/components/BitkitFilter/components/FilterSelectForm.js.map +0 -1
  130. package/dist/theme/recipes/index.d.ts +0 -525
  131. package/dist/theme/slot-recipes/Filter.recipe.d.ts +0 -37
  132. package/dist/theme/slot-recipes/Filter.recipe.js +0 -654
  133. package/dist/theme/slot-recipes/Filter.recipe.js.map +0 -1
  134. package/dist/theme/slot-recipes/Listbox.recipe.d.ts +0 -22
  135. package/dist/theme/slot-recipes/Listbox.recipe.js +0 -96
  136. package/dist/theme/slot-recipes/Listbox.recipe.js.map +0 -1
@@ -0,0 +1,4 @@
1
+ export declare const uiHeaderHeightPx = 48;
2
+ export declare const uiHeaderHeight: `${number}rem`;
3
+ declare const uiHeaderSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"search" | "badge" | "banner" | "bar" | "root" | "indicator" | "spacer" | "control" | "searchInput" | "searchClear" | "actions" | "navButton" | "accountAvatar" | "accountIcon" | "navButtonBadge" | "navButtonIcon" | "searchButton" | "searchField" | "searchIcon" | "leading" | "logoBlock" | "logoLink", import('@chakra-ui/react').SlotRecipeVariantRecord<"search" | "badge" | "banner" | "bar" | "root" | "indicator" | "spacer" | "control" | "searchInput" | "searchClear" | "actions" | "navButton" | "accountAvatar" | "accountIcon" | "navButtonBadge" | "navButtonIcon" | "searchButton" | "searchField" | "searchIcon" | "leading" | "logoBlock" | "logoLink">>;
4
+ export default uiHeaderSlotRecipe;
@@ -0,0 +1,241 @@
1
+ import { colorVar, rem } from "../themeUtils.js";
2
+ import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
3
+ var uiHeaderHeight = rem(48);
4
+ var SEARCH_FIELD_WIDTH = rem(240);
5
+ var SEARCH_FIELD_TINT = colorVar("color/white/20");
6
+ var controlBase = {
7
+ background: "sys/ui/header/control/bg",
8
+ _hover: {
9
+ background: "sys/ui/header/control/bg-hover",
10
+ _active: { background: "sys/ui/header/control/bg-active" }
11
+ },
12
+ _active: { background: "sys/ui/header/control/bg-active" },
13
+ _selected: {
14
+ background: "sys/ui/header/control/bg-selected",
15
+ _hover: {
16
+ background: "sys/ui/header/control/bg-selected-hover",
17
+ _active: { background: "sys/ui/header/control/bg-active" }
18
+ },
19
+ _active: { background: "sys/ui/header/control/bg-active" }
20
+ },
21
+ alignItems: "center",
22
+ borderRadius: 0,
23
+ color: "icon/on-color",
24
+ cursor: "pointer",
25
+ display: "flex",
26
+ flexShrink: 0,
27
+ height: uiHeaderHeight,
28
+ justifyContent: "center",
29
+ position: "relative",
30
+ textDecoration: "none",
31
+ _focusVisible: { outlineOffset: "calc(var(--focus-ring-width) * -1)" }
32
+ };
33
+ var uiHeaderSlotRecipe = defineSlotRecipe({
34
+ className: "ui-header",
35
+ slots: [
36
+ "accountAvatar",
37
+ "accountIcon",
38
+ "actions",
39
+ "badge",
40
+ "banner",
41
+ "bar",
42
+ "control",
43
+ "indicator",
44
+ "leading",
45
+ "logoBlock",
46
+ "logoLink",
47
+ "navButton",
48
+ "navButtonBadge",
49
+ "navButtonIcon",
50
+ "root",
51
+ "search",
52
+ "searchButton",
53
+ "searchClear",
54
+ "searchField",
55
+ "searchIcon",
56
+ "searchInput",
57
+ "spacer"
58
+ ],
59
+ base: {
60
+ root: {
61
+ background: "sys/ui/header/bg",
62
+ color: "text/on-color",
63
+ display: "flex",
64
+ flexDirection: "column",
65
+ width: "full"
66
+ },
67
+ bar: {
68
+ alignItems: "center",
69
+ display: "flex",
70
+ flexShrink: 0,
71
+ height: uiHeaderHeight,
72
+ position: "relative",
73
+ tablet: { paddingInlineStart: "20" }
74
+ },
75
+ leading: {
76
+ display: "flex",
77
+ flexShrink: 0,
78
+ tablet: { display: "none" }
79
+ },
80
+ spacer: {
81
+ flexShrink: 1,
82
+ width: "48",
83
+ tablet: { display: "none" }
84
+ },
85
+ logoBlock: {
86
+ alignItems: "center",
87
+ display: "flex",
88
+ flex: 1,
89
+ justifyContent: "center",
90
+ minWidth: 0,
91
+ tablet: { flex: "none" }
92
+ },
93
+ logoLink: {
94
+ borderRadius: "4",
95
+ color: "text/on-color",
96
+ display: "flex",
97
+ marginBlockEnd: rem(3)
98
+ },
99
+ actions: {
100
+ alignItems: "center",
101
+ display: "flex",
102
+ flexShrink: 0,
103
+ marginInlineStart: "auto",
104
+ tablet: { paddingInlineEnd: "32" }
105
+ },
106
+ banner: { width: "full" },
107
+ control: {
108
+ ...controlBase,
109
+ width: "48"
110
+ },
111
+ accountAvatar: {
112
+ borderRadius: "full",
113
+ display: "none",
114
+ overflow: "hidden",
115
+ tablet: { display: "inline-flex" }
116
+ },
117
+ accountIcon: {
118
+ display: "block",
119
+ tablet: { display: "none" }
120
+ },
121
+ navButton: {
122
+ ...controlBase,
123
+ paddingBlock: "8",
124
+ paddingInlineEnd: "8",
125
+ paddingInlineStart: "12"
126
+ },
127
+ navButtonBadge: {
128
+ alignItems: "flex-start",
129
+ background: "sys/ui/header/bg",
130
+ borderStartStartRadius: "2",
131
+ color: "icon/on-color",
132
+ display: "flex",
133
+ height: "12",
134
+ insetBlockEnd: "8",
135
+ insetInlineEnd: "8",
136
+ overflow: "hidden",
137
+ pointerEvents: "none",
138
+ position: "absolute",
139
+ width: "16"
140
+ },
141
+ navButtonIcon: {
142
+ flexShrink: 0,
143
+ marginBlockStart: rem(-1),
144
+ marginInlineStart: "1"
145
+ },
146
+ badge: {
147
+ background: "sys/ui/header/badge/red",
148
+ borderRadius: "full",
149
+ height: "8",
150
+ insetBlockStart: "12",
151
+ insetInlineStart: rem(28),
152
+ pointerEvents: "none",
153
+ position: "absolute",
154
+ width: "8",
155
+ "&[data-pulse]": { _after: {
156
+ animation: "ping",
157
+ background: "sys/ui/header/badge/red",
158
+ borderRadius: "full",
159
+ content: "\"\"",
160
+ inset: 0,
161
+ opacity: .5,
162
+ position: "absolute",
163
+ _motionReduce: { animation: "none" }
164
+ } }
165
+ },
166
+ indicator: {
167
+ background: "sys/ui/header/control/indicator",
168
+ height: "4",
169
+ insetBlockEnd: 0,
170
+ insetInline: 0,
171
+ pointerEvents: "none",
172
+ position: "absolute"
173
+ },
174
+ search: {
175
+ display: "flex",
176
+ flexShrink: 0,
177
+ position: "relative"
178
+ },
179
+ searchField: {
180
+ alignItems: "center",
181
+ backgroundColor: "sys/ui/header/bg",
182
+ backgroundImage: `linear-gradient(0deg, ${SEARCH_FIELD_TINT} 0%, ${SEARCH_FIELD_TINT} 100%)`,
183
+ borderColor: "border/strong",
184
+ borderRadius: "4",
185
+ borderStyle: "solid",
186
+ borderWidth: "1",
187
+ display: "none",
188
+ gap: "8",
189
+ height: "40",
190
+ insetBlockStart: "4",
191
+ insetInlineEnd: 0,
192
+ opacity: 0,
193
+ paddingInlineEnd: "12",
194
+ paddingInlineStart: "8",
195
+ position: "absolute",
196
+ transitionDuration: "fast",
197
+ transitionProperty: "opacity, visibility",
198
+ transitionTimingFunction: "ease-out",
199
+ visibility: "hidden",
200
+ width: SEARCH_FIELD_WIDTH,
201
+ "&:has(input:focus-visible)": { boxShadow: "0 0 0 var(--focus-ring-width) var(--focus-ring-color) inset" },
202
+ _open: {
203
+ opacity: 1,
204
+ visibility: "visible"
205
+ },
206
+ _motionReduce: { transitionProperty: "none" },
207
+ tablet: { display: "flex" }
208
+ },
209
+ searchButton: { tablet: { _open: { visibility: "hidden" } } },
210
+ searchClear: {
211
+ color: "icon/on-color",
212
+ flexShrink: 0
213
+ },
214
+ searchIcon: {
215
+ color: "icon/on-color",
216
+ flexShrink: 0
217
+ },
218
+ searchInput: {
219
+ background: "transparent",
220
+ borderWidth: 0,
221
+ color: "text/on-color",
222
+ flex: 1,
223
+ minWidth: 0,
224
+ padding: 0,
225
+ textStyle: "body/lg/regular",
226
+ "&::-webkit-search-cancel-button": { display: "none" },
227
+ _focusVisible: {
228
+ outline: "none",
229
+ outlineWidth: 0
230
+ },
231
+ _placeholder: {
232
+ color: "text/on-color",
233
+ opacity: .6
234
+ }
235
+ }
236
+ }
237
+ });
238
+ //#endregion
239
+ export { uiHeaderSlotRecipe as default, uiHeaderHeight };
240
+
241
+ //# sourceMappingURL=UIHeader.recipe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UIHeader.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/UIHeader.recipe.ts"],"sourcesContent":["import { defineSlotRecipe, type SystemStyleObject } from '@chakra-ui/react/styled-system';\n\nimport { colorVar, rem } from '../themeUtils';\n\nexport const uiHeaderHeightPx = 48;\nexport const uiHeaderHeight = rem(uiHeaderHeightPx);\n\nconst SEARCH_FIELD_WIDTH = rem(240);\n\nconst SEARCH_FIELD_TINT = colorVar('color/white/20');\n\nconst controlStates: SystemStyleObject = {\n background: 'sys/ui/header/control/bg',\n _hover: {\n background: 'sys/ui/header/control/bg-hover',\n _active: {\n background: 'sys/ui/header/control/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/header/control/bg-active',\n },\n _selected: {\n background: 'sys/ui/header/control/bg-selected',\n _hover: {\n background: 'sys/ui/header/control/bg-selected-hover',\n _active: {\n background: 'sys/ui/header/control/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/header/control/bg-active',\n },\n },\n};\n\nconst controlBase: SystemStyleObject = {\n ...controlStates,\n alignItems: 'center',\n borderRadius: 0,\n color: 'icon/on-color',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n height: uiHeaderHeight,\n justifyContent: 'center',\n position: 'relative',\n textDecoration: 'none',\n _focusVisible: {\n outlineOffset: 'calc(var(--focus-ring-width) * -1)',\n },\n};\n\nconst uiHeaderSlotRecipe = defineSlotRecipe({\n className: 'ui-header',\n slots: [\n 'accountAvatar',\n 'accountIcon',\n 'actions',\n 'badge',\n 'banner',\n 'bar',\n 'control',\n 'indicator',\n 'leading',\n 'logoBlock',\n 'logoLink',\n 'navButton',\n 'navButtonBadge',\n 'navButtonIcon',\n 'root',\n 'search',\n 'searchButton',\n 'searchClear',\n 'searchField',\n 'searchIcon',\n 'searchInput',\n 'spacer',\n ],\n base: {\n root: {\n background: 'sys/ui/header/bg',\n color: 'text/on-color',\n display: 'flex',\n flexDirection: 'column',\n width: 'full',\n },\n bar: {\n alignItems: 'center',\n display: 'flex',\n flexShrink: 0,\n height: uiHeaderHeight,\n position: 'relative',\n tablet: {\n paddingInlineStart: '20',\n },\n },\n leading: {\n display: 'flex',\n flexShrink: 0,\n tablet: {\n display: 'none',\n },\n },\n spacer: {\n flexShrink: 1,\n width: '48',\n tablet: {\n display: 'none',\n },\n },\n logoBlock: {\n alignItems: 'center',\n display: 'flex',\n flex: 1,\n justifyContent: 'center',\n minWidth: 0,\n tablet: {\n flex: 'none',\n },\n },\n logoLink: {\n borderRadius: '4',\n color: 'text/on-color',\n display: 'flex',\n marginBlockEnd: rem(3),\n },\n actions: {\n alignItems: 'center',\n display: 'flex',\n flexShrink: 0,\n marginInlineStart: 'auto',\n tablet: {\n paddingInlineEnd: '32',\n },\n },\n banner: {\n width: 'full',\n },\n control: {\n ...controlBase,\n width: '48',\n },\n accountAvatar: {\n borderRadius: 'full',\n display: 'none',\n overflow: 'hidden',\n tablet: {\n display: 'inline-flex',\n },\n },\n accountIcon: {\n display: 'block',\n tablet: {\n display: 'none',\n },\n },\n navButton: {\n ...controlBase,\n paddingBlock: '8',\n paddingInlineEnd: '8',\n paddingInlineStart: '12',\n },\n navButtonBadge: {\n alignItems: 'flex-start',\n background: 'sys/ui/header/bg',\n borderStartStartRadius: '2',\n color: 'icon/on-color',\n display: 'flex',\n height: '12',\n insetBlockEnd: '8',\n insetInlineEnd: '8',\n overflow: 'hidden',\n pointerEvents: 'none',\n position: 'absolute',\n width: '16',\n },\n navButtonIcon: {\n flexShrink: 0,\n marginBlockStart: rem(-1),\n marginInlineStart: '1',\n },\n badge: {\n background: 'sys/ui/header/badge/red',\n borderRadius: 'full',\n height: '8',\n insetBlockStart: '12',\n insetInlineStart: rem(28),\n pointerEvents: 'none',\n position: 'absolute',\n width: '8',\n '&[data-pulse]': {\n _after: {\n animation: 'ping',\n background: 'sys/ui/header/badge/red',\n borderRadius: 'full',\n content: '\"\"',\n inset: 0,\n opacity: 0.5,\n position: 'absolute',\n _motionReduce: {\n animation: 'none',\n },\n },\n },\n },\n indicator: {\n background: 'sys/ui/header/control/indicator',\n height: '4',\n insetBlockEnd: 0,\n insetInline: 0,\n pointerEvents: 'none',\n position: 'absolute',\n },\n search: {\n display: 'flex',\n flexShrink: 0,\n position: 'relative',\n },\n searchField: {\n alignItems: 'center',\n backgroundColor: 'sys/ui/header/bg',\n backgroundImage: `linear-gradient(0deg, ${SEARCH_FIELD_TINT} 0%, ${SEARCH_FIELD_TINT} 100%)`,\n borderColor: 'border/strong',\n borderRadius: '4',\n borderStyle: 'solid',\n borderWidth: '1',\n display: 'none',\n gap: '8',\n height: '40',\n insetBlockStart: '4',\n insetInlineEnd: 0,\n opacity: 0,\n paddingInlineEnd: '12',\n paddingInlineStart: '8',\n position: 'absolute',\n transitionDuration: 'fast',\n // `visibility` is what takes the closed field out of hit-testing, the tab order and the\n // accessibility tree in one go. Transitioning it keeps the field visible for the whole fade\n // and flips it at the end, which `opacity` alone could not do.\n transitionProperty: 'opacity, visibility',\n transitionTimingFunction: 'ease-out',\n visibility: 'hidden',\n width: SEARCH_FIELD_WIDTH,\n '&:has(input:focus-visible)': {\n boxShadow: '0 0 0 var(--focus-ring-width) var(--focus-ring-color) inset',\n },\n _open: {\n opacity: 1,\n visibility: 'visible',\n },\n _motionReduce: {\n transitionProperty: 'none',\n },\n tablet: {\n display: 'flex',\n },\n },\n searchButton: {\n tablet: {\n _open: {\n visibility: 'hidden',\n },\n },\n },\n searchClear: {\n color: 'icon/on-color',\n flexShrink: 0,\n },\n searchIcon: {\n color: 'icon/on-color',\n flexShrink: 0,\n },\n searchInput: {\n background: 'transparent',\n borderWidth: 0,\n color: 'text/on-color',\n flex: 1,\n minWidth: 0,\n padding: 0,\n textStyle: 'body/lg/regular',\n '&::-webkit-search-cancel-button': { display: 'none' },\n _focusVisible: {\n outline: 'none',\n outlineWidth: 0,\n },\n _placeholder: {\n color: 'text/on-color',\n opacity: 0.6,\n },\n },\n },\n});\n\nexport default uiHeaderSlotRecipe;\n"],"mappings":"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"}
@@ -609,25 +609,10 @@ declare const slotRecipes: {
609
609
  device: {
610
610
  mobile: {
611
611
  content: {
612
- minWidth: number;
613
612
  boxShadow: "none";
614
613
  paddingBlock: "16";
615
614
  paddingInline: "16";
616
615
  };
617
- view: {
618
- gap: "16";
619
- };
620
- tableHeader: {
621
- height: "40";
622
- maxWidth: "none";
623
- minWidth: number;
624
- textStyle: "body/lg/regular";
625
- width: "auto";
626
- };
627
- tableCellTrigger: {
628
- height: "40";
629
- textStyle: "body/lg/regular";
630
- };
631
616
  };
632
617
  };
633
618
  }>;
@@ -718,91 +703,6 @@ declare const slotRecipes: {
718
703
  height: "16";
719
704
  } | undefined;
720
705
  };
721
- lg: {
722
- trigger: {
723
- height: "40";
724
- paddingBlock: "8";
725
- paddingInlineEnd: `${number}rem`;
726
- paddingInlineStart: "8";
727
- textStyle: "body/lg/regular";
728
- '&:has([data-slot="avatar"])'?: {
729
- paddingBlock: `${number}rem`;
730
- paddingInlineStart: `${number}rem`;
731
- } | undefined;
732
- };
733
- indicatorGroup: {
734
- paddingInlineEnd: "4";
735
- };
736
- indicator: {
737
- _icon: {
738
- width: "16";
739
- height: "16";
740
- };
741
- };
742
- checkbox?: {
743
- width: "24";
744
- height: "24";
745
- } | undefined;
746
- item?: {
747
- '&:has([data-slot="avatar"])': {
748
- paddingInlineStart: "12";
749
- paddingInlineEnd: "24";
750
- paddingBlock: "8";
751
- gap: "8";
752
- };
753
- '&:has([data-slot="checkbox"])': {
754
- minHeight: "48";
755
- paddingInlineEnd: "24";
756
- paddingBlock: "12";
757
- gap: "12";
758
- };
759
- paddingInline: "16";
760
- paddingBlock: "12";
761
- textStyle: "body/lg/regular";
762
- _selected: {
763
- textStyle: "body/lg/semibold";
764
- };
765
- } | undefined;
766
- content?: {
767
- '--select-menu-list-max-height': `${number}rem`;
768
- } | undefined;
769
- itemLabel?: {
770
- textStyle: "body/lg/regular";
771
- lineHeight: "normal";
772
- } | undefined;
773
- itemLoadingLabel?: {
774
- textStyle: "body/lg/regular";
775
- } | undefined;
776
- emptyState?: {
777
- paddingBlock: "12";
778
- } | undefined;
779
- errorState?: {
780
- paddingBlock: "8";
781
- } | undefined;
782
- errorLabel?: {
783
- textStyle: "body/lg/regular";
784
- } | undefined;
785
- action?: {
786
- minHeight: "48";
787
- paddingBlock: "12";
788
- textStyle: "body/lg/regular";
789
- lineHeight: "normal";
790
- } | undefined;
791
- searchInputGroup?: {
792
- height: `${number}rem`;
793
- paddingBlock: "16";
794
- } | undefined;
795
- searchInput?: {
796
- textStyle: "body/lg/regular";
797
- } | undefined;
798
- searchClear?: {
799
- padding: "8";
800
- } | undefined;
801
- itemIndicator?: {
802
- width: "24";
803
- height: "24";
804
- } | undefined;
805
- };
806
706
  };
807
707
  }>;
808
708
  dialog: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "body" | "footer" | "header" | "label" | "title" | "trigger" | "positioner" | "closeTrigger" | "description" | "scrollBody" | "scrollArea" | "scrollGradient" | "scrollButton" | "stepHeader" | "backdrop" | "stepDescription" | "stepTitle" | "stepTitleGroup", {
@@ -1184,42 +1084,6 @@ declare const slotRecipes: {
1184
1084
  };
1185
1085
  };
1186
1086
  }>;
1187
- filter: import('@chakra-ui/react').SlotRecipeDefinition<"search" | "content" | "pattern" | "switch" | "icon" | "field" | "root" | "loading" | "items" | "searchInput" | "addSheetBackdrop" | "addSheetPositioner" | "addSheet" | "addMenu" | "addMenuLabel" | "addSheetItem" | "addMenuItem" | "addMenuIcon" | "addSheetItemReason" | "chip" | "chipLabel" | "chipTrigger" | "chipRemove" | "chipIcon" | "chipValue" | "chipChevron" | "fieldLabel" | "fieldControl" | "fieldTrigger" | "fieldRemove" | "fieldIcon" | "fieldValue" | "fieldChevron" | "mobilePanelHeader" | "popoverFooter" | "mobileFooter" | "popoverFooterStart" | "mobilePanelOverline" | "mobilePanelTitle" | "popoverContent" | "calendarFooter" | "mobileSearch" | "mobileSearchInput" | "popoverBody" | "checkboxList" | "popoverSearch" | "listHelperText" | "mobileListCheckbox" | "mobileListCheck" | "patternResults" | "patternResultsLabel" | "switchItem" | "switchItemText" | "filters" | "searchBlock" | "mobileBar" | "mobileTrigger" | "mobileHeader" | "mobileTitle" | "mobileBody", {
1188
- pageLayout: {
1189
- capped: {
1190
- root: {
1191
- borderBlockEndWidth: "1";
1192
- borderColor: "border/regular";
1193
- paddingInline: {
1194
- base: "16";
1195
- tablet: "32";
1196
- };
1197
- };
1198
- };
1199
- full: {
1200
- root: {
1201
- borderBlockEndWidth: "1";
1202
- borderColor: "border/regular";
1203
- paddingInlineEnd: {
1204
- base: "16";
1205
- tablet: "32";
1206
- };
1207
- paddingInlineStart: {
1208
- base: "16";
1209
- tablet: "24";
1210
- };
1211
- };
1212
- };
1213
- };
1214
- contentAlign: {
1215
- center: {};
1216
- start: {
1217
- root: {
1218
- justifyContent: "flex-start";
1219
- };
1220
- };
1221
- };
1222
- }>;
1223
1087
  imageCropper: import('@chakra-ui/react').SlotRecipeDefinition<"grid" | "image" | "root" | "handle" | "viewport" | "selection", import('@chakra-ui/react').SlotRecipeVariantRecord<"grid" | "image" | "root" | "handle" | "viewport" | "selection">>;
1224
1088
  inlineLoading: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root", {
1225
1089
  size: {
@@ -1280,27 +1144,6 @@ declare const slotRecipes: {
1280
1144
  };
1281
1145
  };
1282
1146
  }>;
1283
- listbox: import('@chakra-ui/react').SlotRecipeDefinition<"content" | "input" | "label" | "root" | "item" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "itemText" | "valueText" | "empty", {
1284
- size: {
1285
- md: {};
1286
- lg: {
1287
- content: {
1288
- maxHeight: "none";
1289
- paddingBlock: "8";
1290
- };
1291
- item: {
1292
- minHeight: "48";
1293
- textStyle: "body/lg/regular";
1294
- _selected: {
1295
- textStyle: "body/lg/regular";
1296
- };
1297
- };
1298
- empty: {
1299
- textStyle: "body/lg/regular";
1300
- };
1301
- };
1302
- };
1303
- }>;
1304
1147
  markdown: import('@chakra-ui/react').SlotRecipeDefinition<"blockquote" | "root", {
1305
1148
  size: {
1306
1149
  sm: {
@@ -3267,7 +3110,7 @@ declare const slotRecipes: {
3267
3110
  md: {};
3268
3111
  };
3269
3112
  }>;
3270
- tag: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "closeTrigger" | "endElement" | "startElement", {
3113
+ tag: import('@chakra-ui/react').SlotRecipeDefinition<"label" | "root" | "closeTrigger" | "startElement" | "endElement", {
3271
3114
  colorVariant: {
3272
3115
  neutral: {
3273
3116
  root: {
@@ -3761,6 +3604,7 @@ declare const slotRecipes: {
3761
3604
  };
3762
3605
  };
3763
3606
  }>;
3607
+ uiHeader: import('@chakra-ui/react').SlotRecipeDefinition<"search" | "badge" | "banner" | "bar" | "root" | "indicator" | "spacer" | "control" | "searchInput" | "searchClear" | "actions" | "navButton" | "accountAvatar" | "accountIcon" | "navButtonBadge" | "navButtonIcon" | "searchButton" | "searchField" | "searchIcon" | "leading" | "logoBlock" | "logoLink", import('@chakra-ui/react').SlotRecipeVariantRecord<"search" | "badge" | "banner" | "bar" | "root" | "indicator" | "spacer" | "control" | "searchInput" | "searchClear" | "actions" | "navButton" | "accountAvatar" | "accountIcon" | "navButtonBadge" | "navButtonIcon" | "searchButton" | "searchField" | "searchIcon" | "leading" | "logoBlock" | "logoLink">>;
3764
3608
  uiSideNav: import('@chakra-ui/react').SlotRecipeDefinition<"link" | "content" | "body" | "footer" | "closeButton" | "root" | "item" | "itemIndicator" | "positioner" | "itemLabel" | "itemIcon" | "backdrop" | "footerSeparator" | "footerHeading" | "linkIconBlock" | "linkTextBlock" | "linkIcon" | "linkStatusDot" | "linkLabel" | "linkSecondaryText" | "workspaceRoot" | "workspaceControl" | "workspace" | "workspaceTextBlock" | "workspaceChevron" | "workspaceMenu" | "workspaceLabel" | "workspaceValue", {
3765
3609
  layout: {
3766
3610
  rail: {
@@ -1,5 +1,6 @@
1
1
  import avatarSlotRecipe from "./Avatar.recipe.js";
2
2
  import numberInputSlotRecipe from "./NumberInput.recipe.js";
3
+ import uiHeaderSlotRecipe from "./UIHeader.recipe.js";
3
4
  import uiSideNavSlotRecipe from "./UISideNav.recipe.js";
4
5
  import accordionSlotRecipe from "./Accordion.recipe.js";
5
6
  import actionBarSlotRecipe from "./ActionBar.recipe.js";
@@ -22,13 +23,11 @@ import expandableCardSlotRecipe from "./ExpandableCard.recipe.js";
22
23
  import fieldSlotRecipe from "./Field.recipe.js";
23
24
  import fieldsetSlotRecipe from "./Fieldset.recipe.js";
24
25
  import fileUploadSlotRecipe from "./FileUpload.recipe.js";
25
- import filterSlotRecipe from "./Filter.recipe.js";
26
26
  import groupHeadingRecipe from "./GroupHeading.recipe.js";
27
27
  import imageCropperSlotRecipe from "./ImageCropper.recipe.js";
28
28
  import inlineLoadingRecipe from "./InlineLoading.recipe.js";
29
29
  import labeledDataSlotRecipe from "./LabeledData.recipe.js";
30
30
  import listSlotRecipe from "./List.recipe.js";
31
- import listboxSlotRecipe from "./Listbox.recipe.js";
32
31
  import markdownSlotRecipe from "./Markdown.recipe.js";
33
32
  import markdownCardSlotRecipe from "./MarkdownCard.recipe.js";
34
33
  import menuSlotRecipe from "./Menu.recipe.js";
@@ -89,11 +88,9 @@ var slotRecipes = {
89
88
  groupHeading: groupHeadingRecipe,
90
89
  fieldset: fieldsetSlotRecipe,
91
90
  fileUpload: fileUploadSlotRecipe,
92
- filter: filterSlotRecipe,
93
91
  imageCropper: imageCropperSlotRecipe,
94
92
  inlineLoading: inlineLoadingRecipe,
95
93
  list: listSlotRecipe,
96
- listbox: listboxSlotRecipe,
97
94
  markdown: markdownSlotRecipe,
98
95
  markdownCard: markdownCardSlotRecipe,
99
96
  menu: menuSlotRecipe,
@@ -133,6 +130,7 @@ var slotRecipes = {
133
130
  tooltip: tooltipSlotRecipe,
134
131
  tour: tourSlotRecipe,
135
132
  treeView: treeViewSlotRecipe,
133
+ uiHeader: uiHeaderSlotRecipe,
136
134
  uiSideNav: uiSideNavSlotRecipe
137
135
  };
138
136
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["groupHeadingSlotRecipe","inlineLoadingSlotRecipe","paginationLoadMoreSlotRecipe","sectionHeadingSlotRecipe"],"sources":["../../../lib/theme/slot-recipes/index.ts"],"sourcesContent":["import accordionSlotRecipe from './Accordion.recipe.ts';\nimport actionBarSlotRecipe from './ActionBar.recipe.ts';\nimport alertSlotRecipe from './Alert.recipe.ts';\nimport avatarSlotRecipe from './Avatar.recipe.ts';\nimport breadcrumbSlotRecipe from './Breadcrumb.recipe.ts';\nimport cardSlotRecipe from './Card.recipe';\nimport checkboxSlotRecipe from './Checkbox.recipe';\nimport codeSnippetSlotRecipe from './CodeSnippet.recipe.ts';\nimport collapsibleSlotRecipe from './Collapsible.recipe.ts';\nimport comboboxSlotRecipe from './Combobox.recipe.ts';\nimport dataWidgetSlotRecipe from './DataWidget.recipe.ts';\nimport datePickerSlotRecipe from './DatePicker.recipe.ts';\nimport datePickerSelectSlotRecipe from './DatePickerSelect.recipe.ts';\nimport dialogSlotRecipe from './Dialog.recipe.ts';\nimport draggableCardSlotRecipe from './DraggableCard.recipe.ts';\nimport drawerSlotRecipe from './Drawer.recipe.ts';\nimport emptyStateSlotRecipe from './EmptyState.recipe';\nimport expandableCardSlotRecipe from './ExpandableCard.recipe.ts';\nimport fieldSlotRecipe from './Field.recipe';\nimport fieldsetSlotRecipe from './Fieldset.recipe.ts';\nimport fileUploadSlotRecipe from './FileUpload.recipe.ts';\nimport filterSlotRecipe from './Filter.recipe.ts';\nimport groupHeadingSlotRecipe from './GroupHeading.recipe.ts';\nimport imageCropperSlotRecipe from './ImageCropper.recipe.ts';\nimport inlineLoadingSlotRecipe from './InlineLoading.recipe.ts';\nimport labeledDataSlotRecipe from './LabeledData.recipe.ts';\nimport listSlotRecipe from './List.recipe.ts';\nimport listboxSlotRecipe from './Listbox.recipe.ts';\nimport markdownSlotRecipe from './Markdown.recipe.ts';\nimport markdownCardSlotRecipe from './MarkdownCard.recipe.ts';\nimport menuSlotRecipe from './Menu.recipe.ts';\nimport multiselectSlotRecipe from './Multiselect.recipe.ts';\nimport nativeSelectSlotRecipe from './NativeSelect.recipe.ts';\nimport noteCardSlotRecipe from './NoteCard.recipe.ts';\nimport numberInputSlotRecipe from './NumberInput.recipe';\nimport overflowContentSlotRecipe from './OverflowContent.recipe.ts';\nimport pageFooterSlotRecipe from './PageFooter.recipe.ts';\nimport pageHeaderSlotRecipe from './PageHeader.recipe.ts';\nimport pageSidebarSlotRecipe from './PageSidebar.recipe.ts';\nimport paginationSlotRecipe from './Pagination.recipe.ts';\nimport paginationLoadMoreSlotRecipe from './PaginationLoadMore.recipe.ts';\nimport popoverSlotRecipe from './Popover.recipe.ts';\nimport progressSlotRecipe from './Progress.recipe.ts';\nimport qrCodeSlotRecipe from './QrCode.recipe.ts';\nimport radioGroupSlotRecipe from './RadioGroup.recipe.ts';\nimport ribbonSlotRecipe from './Ribbon.recipe.ts';\nimport sectionHeadingSlotRecipe from './SectionHeading.recipe.ts';\nimport segmentGroupSlotRecipe from './SegmentGroup.recipe.ts';\nimport { selectSlotRecipe } from './Select.recipe.ts';\nimport settingsCardSlotRecipe from './SettingsCard.recipe.ts';\nimport splitButtonSlotRecipe from './SplitButton.recipe.ts';\nimport statSlotRecipe from './Stat.recipe.ts';\nimport stepCardSlotRecipe from './StepCard.recipe.ts';\nimport stepsSlotRecipe from './Steps.recipe.ts';\nimport switchSlotRecipe from './Switch.recipe';\nimport tableSlotRecipe from './Table.recipe.ts';\nimport tableCardSlotRecipe from './TableCard.recipe.ts';\nimport tabsSlotRecipe from './Tabs.recipe';\nimport tagSlotRecipe from './Tag.recipe.ts';\nimport tagsInputSlotRecipe from './TagsInput.recipe.ts';\nimport textInputSlotRecipe from './TextInput.recipe.ts';\nimport toastSlotRecipe from './Toast.recipe';\nimport toggletipSlotRecipe from './Toggletip.recipe';\nimport tooltipSlotRecipe from './Tooltip.recipe';\nimport tourSlotRecipe from './Tour.recipe.ts';\nimport treeViewSlotRecipe from './TreeView.recipe.ts';\nimport uiSideNavSlotRecipe from './UISideNav.recipe.ts';\n\nconst slotRecipes = {\n accordion: accordionSlotRecipe,\n actionBar: actionBarSlotRecipe,\n alert: alertSlotRecipe,\n avatar: avatarSlotRecipe,\n breadcrumb: breadcrumbSlotRecipe,\n card: cardSlotRecipe,\n checkbox: checkboxSlotRecipe,\n codeSnippet: codeSnippetSlotRecipe,\n collapsible: collapsibleSlotRecipe,\n combobox: comboboxSlotRecipe,\n dataWidget: dataWidgetSlotRecipe,\n datePicker: datePickerSlotRecipe,\n datePickerSelect: datePickerSelectSlotRecipe,\n dialog: dialogSlotRecipe,\n draggableCard: draggableCardSlotRecipe,\n drawer: drawerSlotRecipe,\n emptyState: emptyStateSlotRecipe,\n expandableCard: expandableCardSlotRecipe,\n field: fieldSlotRecipe,\n groupHeading: groupHeadingSlotRecipe,\n fieldset: fieldsetSlotRecipe,\n fileUpload: fileUploadSlotRecipe,\n filter: filterSlotRecipe,\n imageCropper: imageCropperSlotRecipe,\n inlineLoading: inlineLoadingSlotRecipe,\n list: listSlotRecipe,\n listbox: listboxSlotRecipe,\n markdown: markdownSlotRecipe,\n markdownCard: markdownCardSlotRecipe,\n menu: menuSlotRecipe,\n multiselect: multiselectSlotRecipe,\n noteCard: noteCardSlotRecipe,\n nativeSelect: nativeSelectSlotRecipe,\n numberInput: numberInputSlotRecipe,\n overflowContent: overflowContentSlotRecipe,\n pageFooter: pageFooterSlotRecipe,\n pageHeader: pageHeaderSlotRecipe,\n pageSidebar: pageSidebarSlotRecipe,\n pagination: paginationSlotRecipe,\n paginationLoadMore: paginationLoadMoreSlotRecipe,\n popover: popoverSlotRecipe,\n progress: progressSlotRecipe,\n qrCode: qrCodeSlotRecipe,\n radioGroup: radioGroupSlotRecipe,\n ribbon: ribbonSlotRecipe,\n sectionHeading: sectionHeadingSlotRecipe,\n labeledData: labeledDataSlotRecipe,\n segmentGroup: segmentGroupSlotRecipe,\n select: selectSlotRecipe,\n settingsCard: settingsCardSlotRecipe,\n splitButton: splitButtonSlotRecipe,\n stat: statSlotRecipe,\n stepsCard: stepCardSlotRecipe,\n steps: stepsSlotRecipe,\n switch: switchSlotRecipe,\n table: tableSlotRecipe,\n tableCard: tableCardSlotRecipe,\n tabs: tabsSlotRecipe,\n tag: tagSlotRecipe,\n tagsInput: tagsInputSlotRecipe,\n textInput: textInputSlotRecipe,\n toast: toastSlotRecipe,\n toggletip: toggletipSlotRecipe,\n tooltip: tooltipSlotRecipe,\n tour: tourSlotRecipe,\n treeView: treeViewSlotRecipe,\n uiSideNav: uiSideNavSlotRecipe,\n};\n\nexport default slotRecipes;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,IAAM,cAAc;CAClB,WAAW;CACX,WAAW;CACX,OAAO;CACP,QAAQ;CACR,YAAY;CACZ,MAAM;CACN,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,YAAY;CACZ,YAAY;CACZ,kBAAkB;CAClB,QAAQ;CACR,eAAe;CACf,QAAQ;CACR,YAAY;CACZ,gBAAgB;CAChB,OAAO;CACP,cAAcA;CACd,UAAU;CACV,YAAY;CACZ,QAAQ;CACR,cAAc;CACd,eAAeC;CACf,MAAM;CACN,SAAS;CACT,UAAU;CACV,cAAc;CACd,MAAM;CACN,aAAa;CACb,UAAU;CACV,cAAc;CACd,aAAa;CACb,iBAAiB;CACjB,YAAY;CACZ,YAAY;CACZ,aAAa;CACb,YAAY;CACZ,oBAAoBC;CACpB,SAAS;CACT,UAAU;CACV,QAAQ;CACR,YAAY;CACZ,QAAQ;CACR,gBAAgBC;CAChB,aAAa;CACb,cAAc;CACd,QAAQ;CACR,cAAc;CACd,aAAa;CACb,MAAM;CACN,WAAW;CACX,OAAO;CACP,QAAQ;CACR,OAAO;CACP,WAAW;CACX,MAAM;CACN,KAAK;CACL,WAAW;CACX,WAAW;CACX,OAAO;CACP,WAAW;CACX,SAAS;CACT,MAAM;CACN,UAAU;CACV,WAAW;AACb"}
1
+ {"version":3,"file":"index.js","names":["groupHeadingSlotRecipe","inlineLoadingSlotRecipe","paginationLoadMoreSlotRecipe","sectionHeadingSlotRecipe"],"sources":["../../../lib/theme/slot-recipes/index.ts"],"sourcesContent":["import accordionSlotRecipe from './Accordion.recipe.ts';\nimport actionBarSlotRecipe from './ActionBar.recipe.ts';\nimport alertSlotRecipe from './Alert.recipe.ts';\nimport avatarSlotRecipe from './Avatar.recipe.ts';\nimport breadcrumbSlotRecipe from './Breadcrumb.recipe.ts';\nimport cardSlotRecipe from './Card.recipe';\nimport checkboxSlotRecipe from './Checkbox.recipe';\nimport codeSnippetSlotRecipe from './CodeSnippet.recipe.ts';\nimport collapsibleSlotRecipe from './Collapsible.recipe.ts';\nimport comboboxSlotRecipe from './Combobox.recipe.ts';\nimport dataWidgetSlotRecipe from './DataWidget.recipe.ts';\nimport datePickerSlotRecipe from './DatePicker.recipe.ts';\nimport datePickerSelectSlotRecipe from './DatePickerSelect.recipe.ts';\nimport dialogSlotRecipe from './Dialog.recipe.ts';\nimport draggableCardSlotRecipe from './DraggableCard.recipe.ts';\nimport drawerSlotRecipe from './Drawer.recipe.ts';\nimport emptyStateSlotRecipe from './EmptyState.recipe';\nimport expandableCardSlotRecipe from './ExpandableCard.recipe.ts';\nimport fieldSlotRecipe from './Field.recipe';\nimport fieldsetSlotRecipe from './Fieldset.recipe.ts';\nimport fileUploadSlotRecipe from './FileUpload.recipe.ts';\nimport groupHeadingSlotRecipe from './GroupHeading.recipe.ts';\nimport imageCropperSlotRecipe from './ImageCropper.recipe.ts';\nimport inlineLoadingSlotRecipe from './InlineLoading.recipe.ts';\nimport labeledDataSlotRecipe from './LabeledData.recipe.ts';\nimport listSlotRecipe from './List.recipe.ts';\nimport markdownSlotRecipe from './Markdown.recipe.ts';\nimport markdownCardSlotRecipe from './MarkdownCard.recipe.ts';\nimport menuSlotRecipe from './Menu.recipe.ts';\nimport multiselectSlotRecipe from './Multiselect.recipe.ts';\nimport nativeSelectSlotRecipe from './NativeSelect.recipe.ts';\nimport noteCardSlotRecipe from './NoteCard.recipe.ts';\nimport numberInputSlotRecipe from './NumberInput.recipe';\nimport overflowContentSlotRecipe from './OverflowContent.recipe.ts';\nimport pageFooterSlotRecipe from './PageFooter.recipe.ts';\nimport pageHeaderSlotRecipe from './PageHeader.recipe.ts';\nimport pageSidebarSlotRecipe from './PageSidebar.recipe.ts';\nimport paginationSlotRecipe from './Pagination.recipe.ts';\nimport paginationLoadMoreSlotRecipe from './PaginationLoadMore.recipe.ts';\nimport popoverSlotRecipe from './Popover.recipe.ts';\nimport progressSlotRecipe from './Progress.recipe.ts';\nimport qrCodeSlotRecipe from './QrCode.recipe.ts';\nimport radioGroupSlotRecipe from './RadioGroup.recipe.ts';\nimport ribbonSlotRecipe from './Ribbon.recipe.ts';\nimport sectionHeadingSlotRecipe from './SectionHeading.recipe.ts';\nimport segmentGroupSlotRecipe from './SegmentGroup.recipe.ts';\nimport { selectSlotRecipe } from './Select.recipe.ts';\nimport settingsCardSlotRecipe from './SettingsCard.recipe.ts';\nimport splitButtonSlotRecipe from './SplitButton.recipe.ts';\nimport statSlotRecipe from './Stat.recipe.ts';\nimport stepCardSlotRecipe from './StepCard.recipe.ts';\nimport stepsSlotRecipe from './Steps.recipe.ts';\nimport switchSlotRecipe from './Switch.recipe';\nimport tableSlotRecipe from './Table.recipe.ts';\nimport tableCardSlotRecipe from './TableCard.recipe.ts';\nimport tabsSlotRecipe from './Tabs.recipe';\nimport tagSlotRecipe from './Tag.recipe.ts';\nimport tagsInputSlotRecipe from './TagsInput.recipe.ts';\nimport textInputSlotRecipe from './TextInput.recipe.ts';\nimport toastSlotRecipe from './Toast.recipe';\nimport toggletipSlotRecipe from './Toggletip.recipe';\nimport tooltipSlotRecipe from './Tooltip.recipe';\nimport tourSlotRecipe from './Tour.recipe.ts';\nimport treeViewSlotRecipe from './TreeView.recipe.ts';\nimport uiHeaderSlotRecipe from './UIHeader.recipe';\nimport uiSideNavSlotRecipe from './UISideNav.recipe.ts';\n\nconst slotRecipes = {\n accordion: accordionSlotRecipe,\n actionBar: actionBarSlotRecipe,\n alert: alertSlotRecipe,\n avatar: avatarSlotRecipe,\n breadcrumb: breadcrumbSlotRecipe,\n card: cardSlotRecipe,\n checkbox: checkboxSlotRecipe,\n codeSnippet: codeSnippetSlotRecipe,\n collapsible: collapsibleSlotRecipe,\n combobox: comboboxSlotRecipe,\n dataWidget: dataWidgetSlotRecipe,\n datePicker: datePickerSlotRecipe,\n datePickerSelect: datePickerSelectSlotRecipe,\n dialog: dialogSlotRecipe,\n draggableCard: draggableCardSlotRecipe,\n drawer: drawerSlotRecipe,\n emptyState: emptyStateSlotRecipe,\n expandableCard: expandableCardSlotRecipe,\n field: fieldSlotRecipe,\n groupHeading: groupHeadingSlotRecipe,\n fieldset: fieldsetSlotRecipe,\n fileUpload: fileUploadSlotRecipe,\n imageCropper: imageCropperSlotRecipe,\n inlineLoading: inlineLoadingSlotRecipe,\n list: listSlotRecipe,\n markdown: markdownSlotRecipe,\n markdownCard: markdownCardSlotRecipe,\n menu: menuSlotRecipe,\n multiselect: multiselectSlotRecipe,\n noteCard: noteCardSlotRecipe,\n nativeSelect: nativeSelectSlotRecipe,\n numberInput: numberInputSlotRecipe,\n overflowContent: overflowContentSlotRecipe,\n pageFooter: pageFooterSlotRecipe,\n pageHeader: pageHeaderSlotRecipe,\n pageSidebar: pageSidebarSlotRecipe,\n pagination: paginationSlotRecipe,\n paginationLoadMore: paginationLoadMoreSlotRecipe,\n popover: popoverSlotRecipe,\n progress: progressSlotRecipe,\n qrCode: qrCodeSlotRecipe,\n radioGroup: radioGroupSlotRecipe,\n ribbon: ribbonSlotRecipe,\n sectionHeading: sectionHeadingSlotRecipe,\n labeledData: labeledDataSlotRecipe,\n segmentGroup: segmentGroupSlotRecipe,\n select: selectSlotRecipe,\n settingsCard: settingsCardSlotRecipe,\n splitButton: splitButtonSlotRecipe,\n stat: statSlotRecipe,\n stepsCard: stepCardSlotRecipe,\n steps: stepsSlotRecipe,\n switch: switchSlotRecipe,\n table: tableSlotRecipe,\n tableCard: tableCardSlotRecipe,\n tabs: tabsSlotRecipe,\n tag: tagSlotRecipe,\n tagsInput: tagsInputSlotRecipe,\n textInput: textInputSlotRecipe,\n toast: toastSlotRecipe,\n toggletip: toggletipSlotRecipe,\n tooltip: tooltipSlotRecipe,\n tour: tourSlotRecipe,\n treeView: treeViewSlotRecipe,\n uiHeader: uiHeaderSlotRecipe,\n uiSideNav: uiSideNavSlotRecipe,\n};\n\nexport default slotRecipes;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEA,IAAM,cAAc;CAClB,WAAW;CACX,WAAW;CACX,OAAO;CACP,QAAQ;CACR,YAAY;CACZ,MAAM;CACN,UAAU;CACV,aAAa;CACb,aAAa;CACb,UAAU;CACV,YAAY;CACZ,YAAY;CACZ,kBAAkB;CAClB,QAAQ;CACR,eAAe;CACf,QAAQ;CACR,YAAY;CACZ,gBAAgB;CAChB,OAAO;CACP,cAAcA;CACd,UAAU;CACV,YAAY;CACZ,cAAc;CACd,eAAeC;CACf,MAAM;CACN,UAAU;CACV,cAAc;CACd,MAAM;CACN,aAAa;CACb,UAAU;CACV,cAAc;CACd,aAAa;CACb,iBAAiB;CACjB,YAAY;CACZ,YAAY;CACZ,aAAa;CACb,YAAY;CACZ,oBAAoBC;CACpB,SAAS;CACT,UAAU;CACV,QAAQ;CACR,YAAY;CACZ,QAAQ;CACR,gBAAgBC;CAChB,aAAa;CACb,cAAc;CACd,QAAQ;CACR,cAAc;CACd,aAAa;CACb,MAAM;CACN,WAAW;CACX,OAAO;CACP,QAAQ;CACR,OAAO;CACP,WAAW;CACX,MAAM;CACN,KAAK;CACL,WAAW;CACX,WAAW;CACX,OAAO;CACP,WAAW;CACX,SAAS;CACT,MAAM;CACN,UAAU;CACV,UAAU;CACV,WAAW;AACb"}
@@ -8,6 +8,12 @@ export declare function withSlashes(object: Record<string, any>): Record<string,
8
8
  * @returns Value in rems, typed precisely enough to satisfy props that take a `${number}rem`
9
9
  */
10
10
  export declare const rem: (input: number) => `${number}rem`;
11
+ /**
12
+ * A colour token as the raw CSS variable Chakra compiles it to, for the places a `{colors.…}`
13
+ * reference cannot go: inside a compound value like a gradient, Chakra reads the token's first `/`
14
+ * as its colour-mix opacity modifier, so the slashes have to be escaped by hand instead.
15
+ */
16
+ export declare const colorVar: (token: string) => string;
11
17
  /**
12
18
  * The colour tokens under the given prefixes, for props that must take a semantic token.
13
19
  *
@@ -29,7 +29,13 @@ function withSlashes(object) {
29
29
  var rem = (input) => {
30
30
  return `${input / 16}rem`;
31
31
  };
32
+ /**
33
+ * A colour token as the raw CSS variable Chakra compiles it to, for the places a `{colors.…}`
34
+ * reference cannot go: inside a compound value like a gradient, Chakra reads the token's first `/`
35
+ * as its colour-mix opacity modifier, so the slashes have to be escaped by hand instead.
36
+ */
37
+ var colorVar = (token) => `var(--colors-${token.replace(/\//g, "\\/")})`;
32
38
  //#endregion
33
- export { flattenTokens, rem, withSlashes };
39
+ export { colorVar, flattenTokens, rem, withSlashes };
34
40
 
35
41
  //# sourceMappingURL=themeUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"themeUtils.js","names":[],"sources":["../../lib/theme/themeUtils.ts"],"sourcesContent":["import { type Tokens } from '@chakra-ui/react/styled-system';\nimport { type TextProps } from '@chakra-ui/react/text';\nimport { isPlainObject } from 'es-toolkit';\n\n// Based on https://github.com/toss/es-toolkit/blob/main/src/object/flattenObject.ts\nexport const flattenTokens = (object: object, prefix: string = ''): Record<string, any> => {\n const result: Record<string, any> = {};\n const keys = Object.keys(object);\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const value = (object as any)[key];\n\n const prefixedKey = prefix ? `${prefix}/${key}` : key;\n\n if (isPlainObject(value) && Object.keys(value).length > 0 && Object.keys(value)[0] !== 'value') {\n Object.assign(result, flattenTokens(value, prefixedKey));\n continue;\n }\n\n result[prefixedKey] = value;\n }\n\n return result;\n};\n\nexport function withSlashes(object: Record<string, any>): Record<string, any> {\n return {\n ...object,\n ...flattenTokens(object),\n };\n}\n\n/**\n *\n * @param input Value in pixels\n * @returns Value in rems, typed precisely enough to satisfy props that take a `${number}rem`\n */\nexport const rem = (input: number): `${number}rem` => {\n return `${input / 16}rem`;\n};\n\n/**\n * The colour tokens under the given prefixes, for props that must take a semantic token.\n *\n * `Tokens` is generated in the consumer's own project by `chakra typegen`, which\n * `scripts/postinstall.cjs` runs and which exits 0 with a warning when it cannot. Where it did not\n * run, `Tokens['colors']` is Chakra's stock union, the `Extract` has nothing to match and collapses\n * to `never` -- which would make every prop using it a type error pointing at the wrong thing. So it\n * falls back to `string`: the narrowing is a guard where the types are real, not a tripwire where\n * they are not.\n */\nexport type BitkitColorToken<Prefix extends string> = [Extract<Tokens['colors'], `${Prefix}/${string}`>] extends [never]\n ? string\n : Extract<Tokens['colors'], `${Prefix}/${string}`>;\n\nexport const getTextStyle = (as: TextProps['as']) => {\n if (['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(as as string)) {\n return `heading/${as}`;\n }\n return undefined;\n};\n"],"mappings":";;AAKA,IAAa,iBAAiB,QAAgB,SAAiB,OAA4B;CACzF,MAAM,SAA8B,CAAC;CACrC,MAAM,OAAO,OAAO,KAAK,MAAM;CAE/B,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;EACpC,MAAM,MAAM,KAAK;EACjB,MAAM,QAAS,OAAe;EAE9B,MAAM,cAAc,SAAS,GAAG,OAAO,GAAG,QAAQ;EAElD,IAAI,cAAc,KAAK,KAAK,OAAO,KAAK,KAAK,CAAC,CAAC,SAAS,KAAK,OAAO,KAAK,KAAK,CAAC,CAAC,OAAO,SAAS;GAC9F,OAAO,OAAO,QAAQ,cAAc,OAAO,WAAW,CAAC;GACvD;EACF;EAEA,OAAO,eAAe;CACxB;CAEA,OAAO;AACT;AAEA,SAAgB,YAAY,QAAkD;CAC5E,OAAO;EACL,GAAG;EACH,GAAG,cAAc,MAAM;CACzB;AACF;;;;;;AAOA,IAAa,OAAO,UAAkC;CACpD,OAAO,GAAG,QAAQ,GAAG;AACvB"}
1
+ {"version":3,"file":"themeUtils.js","names":[],"sources":["../../lib/theme/themeUtils.ts"],"sourcesContent":["import { type Tokens } from '@chakra-ui/react/styled-system';\nimport { type TextProps } from '@chakra-ui/react/text';\nimport { isPlainObject } from 'es-toolkit';\n\n// Based on https://github.com/toss/es-toolkit/blob/main/src/object/flattenObject.ts\nexport const flattenTokens = (object: object, prefix: string = ''): Record<string, any> => {\n const result: Record<string, any> = {};\n const keys = Object.keys(object);\n\n for (let i = 0; i < keys.length; i++) {\n const key = keys[i];\n const value = (object as any)[key];\n\n const prefixedKey = prefix ? `${prefix}/${key}` : key;\n\n if (isPlainObject(value) && Object.keys(value).length > 0 && Object.keys(value)[0] !== 'value') {\n Object.assign(result, flattenTokens(value, prefixedKey));\n continue;\n }\n\n result[prefixedKey] = value;\n }\n\n return result;\n};\n\nexport function withSlashes(object: Record<string, any>): Record<string, any> {\n return {\n ...object,\n ...flattenTokens(object),\n };\n}\n\n/**\n *\n * @param input Value in pixels\n * @returns Value in rems, typed precisely enough to satisfy props that take a `${number}rem`\n */\nexport const rem = (input: number): `${number}rem` => {\n return `${input / 16}rem`;\n};\n\n/**\n * A colour token as the raw CSS variable Chakra compiles it to, for the places a `{colors.…}`\n * reference cannot go: inside a compound value like a gradient, Chakra reads the token's first `/`\n * as its colour-mix opacity modifier, so the slashes have to be escaped by hand instead.\n */\nexport const colorVar = (token: string): string => `var(--colors-${token.replace(/\\//g, '\\\\/')})`;\n\n/**\n * The colour tokens under the given prefixes, for props that must take a semantic token.\n *\n * `Tokens` is generated in the consumer's own project by `chakra typegen`, which\n * `scripts/postinstall.cjs` runs and which exits 0 with a warning when it cannot. Where it did not\n * run, `Tokens['colors']` is Chakra's stock union, the `Extract` has nothing to match and collapses\n * to `never` -- which would make every prop using it a type error pointing at the wrong thing. So it\n * falls back to `string`: the narrowing is a guard where the types are real, not a tripwire where\n * they are not.\n */\nexport type BitkitColorToken<Prefix extends string> = [Extract<Tokens['colors'], `${Prefix}/${string}`>] extends [never]\n ? string\n : Extract<Tokens['colors'], `${Prefix}/${string}`>;\n\nexport const getTextStyle = (as: TextProps['as']) => {\n if (['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(as as string)) {\n return `heading/${as}`;\n }\n return undefined;\n};\n"],"mappings":";;AAKA,IAAa,iBAAiB,QAAgB,SAAiB,OAA4B;CACzF,MAAM,SAA8B,CAAC;CACrC,MAAM,OAAO,OAAO,KAAK,MAAM;CAE/B,KAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;EACpC,MAAM,MAAM,KAAK;EACjB,MAAM,QAAS,OAAe;EAE9B,MAAM,cAAc,SAAS,GAAG,OAAO,GAAG,QAAQ;EAElD,IAAI,cAAc,KAAK,KAAK,OAAO,KAAK,KAAK,CAAC,CAAC,SAAS,KAAK,OAAO,KAAK,KAAK,CAAC,CAAC,OAAO,SAAS;GAC9F,OAAO,OAAO,QAAQ,cAAc,OAAO,WAAW,CAAC;GACvD;EACF;EAEA,OAAO,eAAe;CACxB;CAEA,OAAO;AACT;AAEA,SAAgB,YAAY,QAAkD;CAC5E,OAAO;EACL,GAAG;EACH,GAAG,cAAc,MAAM;CACzB;AACF;;;;;;AAOA,IAAa,OAAO,UAAkC;CACpD,OAAO,GAAG,QAAQ,GAAG;AACvB;;;;;;AAOA,IAAa,YAAY,UAA0B,gBAAgB,MAAM,QAAQ,OAAO,KAAK,EAAE"}
@@ -1,8 +1,7 @@
1
- import { createContext, useContext } from "react";
1
+ import { createContext } from "react";
2
2
  //#region lib/utilities/BitkitPortalContext.ts
3
3
  var BitkitPortalContext = createContext({ disablePortal: false });
4
- var usePortalContext = () => useContext(BitkitPortalContext);
5
4
  //#endregion
6
- export { BitkitPortalContext as default, usePortalContext };
5
+ export { BitkitPortalContext as default };
7
6
 
8
7
  //# sourceMappingURL=BitkitPortalContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BitkitPortalContext.js","names":[],"sources":["../../lib/utilities/BitkitPortalContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nconst BitkitPortalContext = createContext({ disablePortal: false });\n\nexport const usePortalContext = () => useContext(BitkitPortalContext);\n\nexport default BitkitPortalContext;\n"],"mappings":";;AAEA,IAAM,sBAAsB,cAAc,EAAE,eAAe,MAAM,CAAC;AAElE,IAAa,yBAAyB,WAAW,mBAAmB"}
1
+ {"version":3,"file":"BitkitPortalContext.js","names":[],"sources":["../../lib/utilities/BitkitPortalContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\nconst BitkitPortalContext = createContext({ disablePortal: false });\n\nexport const usePortalContext = () => useContext(BitkitPortalContext);\n\nexport default BitkitPortalContext;\n"],"mappings":";;AAEA,IAAM,sBAAsB,cAAc,EAAE,eAAe,MAAM,CAAC"}