@bitrise/bitkit-v2 0.3.460-beta.2893 → 0.3.460-beta.2908

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 (28) hide show
  1. package/dist/components/BitkitCombobox/BitkitCombobox.d.ts +3 -3
  2. package/dist/components/BitkitCombobox/BitkitCombobox.js +6 -2
  3. package/dist/components/BitkitCombobox/BitkitCombobox.js.map +1 -1
  4. package/dist/components/BitkitMultiselect/BitkitMultiselect.d.ts +3 -3
  5. package/dist/components/BitkitMultiselect/BitkitMultiselect.js +4 -1
  6. package/dist/components/BitkitMultiselect/BitkitMultiselect.js.map +1 -1
  7. package/dist/components/BitkitSelect/BitkitSelect.d.ts +3 -3
  8. package/dist/components/BitkitSelect/BitkitSelect.js +4 -1
  9. package/dist/components/BitkitSelect/BitkitSelect.js.map +1 -1
  10. package/dist/components/BitkitSelectMenu/SelectMenuShell.js +1 -2
  11. package/dist/components/BitkitSelectMenu/SelectMenuShell.js.map +1 -1
  12. package/dist/components/BitkitUISideNav/BitkitUISideNav.js +29 -9
  13. package/dist/components/BitkitUISideNav/BitkitUISideNav.js.map +1 -1
  14. package/dist/components/BitkitUISideNav/UISideNavItem.js.map +1 -1
  15. package/dist/components/BitkitUISideNav/UISideNavLink.js +17 -19
  16. package/dist/components/BitkitUISideNav/UISideNavLink.js.map +1 -1
  17. package/dist/components/BitkitUISideNav/UISideNavWorkspaceSelector.d.ts +2 -2
  18. package/dist/components/BitkitUISideNav/UISideNavWorkspaceSelector.js +32 -18
  19. package/dist/components/BitkitUISideNav/UISideNavWorkspaceSelector.js.map +1 -1
  20. package/dist/theme/slot-recipes/DatePickerSelect.recipe.d.ts +2 -2
  21. package/dist/theme/slot-recipes/Select.recipe.d.ts +4 -4
  22. package/dist/theme/slot-recipes/Select.recipe.js +5 -6
  23. package/dist/theme/slot-recipes/Select.recipe.js.map +1 -1
  24. package/dist/theme/slot-recipes/UISideNav.recipe.d.ts +6 -9
  25. package/dist/theme/slot-recipes/UISideNav.recipe.js +24 -59
  26. package/dist/theme/slot-recipes/UISideNav.recipe.js.map +1 -1
  27. package/dist/theme/slot-recipes/index.d.ts +11 -13
  28. package/package.json +1 -1
@@ -1,31 +1,22 @@
1
1
  import { rem } from "../themeUtils.js";
2
2
  import { defineSlotRecipe } from "@chakra-ui/react/styled-system";
3
3
  //#region lib/theme/slot-recipes/UISideNav.recipe.ts
4
- /**
5
- * The rail's two widths. The collapsed rail is exactly wide enough for the 24px icon at its
6
- * 24px inline-start padding, which centres the icon and puts the label's first pixel on the
7
- * rail's trailing edge — so the expanded row and the collapsed row are the same row, clipped.
8
- */
9
4
  var RAIL_WIDTH_COLLAPSED = rem(72);
10
5
  /**
11
6
  * The footprint the rail keeps in the page. The expanded rail overlays the content rather than
12
- * pushing it, so this is the gutter a layout reserves beside the navigation — exported so a
13
- * consumer does not have to hardcode the number and drift from it.
7
+ * pushing it, so this is the gutter a layout reserves beside the navigation.
14
8
  */
15
9
  var uiSideNavRailWidth = RAIL_WIDTH_COLLAPSED;
16
10
  var RAIL_WIDTH_EXPANDED = rem(256);
17
11
  var DRAWER_WIDTH = rem(320);
18
- /**
19
- * The workspace menu is wider than the rail it hangs off, so a long workspace name has somewhere
20
- * to go. The drawer leaves it alone and lets the menu take the panel's width instead.
21
- */
22
12
  var WORKSPACE_MENU_WIDTH = rem(360);
23
- /**
24
- * Every row is laid out at the expanded width and clipped by the root, rather than reflowing
25
- * between the two states. Without it the label would be handed a 72px row, ellipsis itself, and
26
- * re-wrap on every hover.
27
- */
28
13
  var railRow = { minWidth: RAIL_WIDTH_EXPANDED };
14
+ var hairline = {
15
+ background: "border/inverse",
16
+ content: "\"\"",
17
+ height: "1",
18
+ opacity: .2
19
+ };
29
20
  var uiSideNavSlotRecipe = defineSlotRecipe({
30
21
  className: "ui-side-nav",
31
22
  slots: [
@@ -71,7 +62,6 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
71
62
  alignItems: "center",
72
63
  background: "sys/ui/sidenav/item/bg",
73
64
  borderRadius: 0,
74
- borderWidth: 0,
75
65
  color: "text/on-color",
76
66
  cursor: "pointer",
77
67
  display: "flex",
@@ -83,12 +73,9 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
83
73
  textAlign: "start",
84
74
  width: "full",
85
75
  _after: {
86
- background: "border/inverse",
87
- content: "\"\"",
88
- height: "1",
76
+ ...hairline,
89
77
  insetBlockEnd: 0,
90
78
  insetInline: 0,
91
- opacity: .2,
92
79
  position: "absolute"
93
80
  },
94
81
  _hover: {
@@ -97,12 +84,6 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
97
84
  },
98
85
  _active: { background: "sys/ui/sidenav/item/bg-active" }
99
86
  },
100
- /**
101
- * The Select's own wrapper. It sizes to its content by default, which would leave the
102
- * workspace cell narrower than the panel in the drawer, where no minimum width props it out.
103
- */
104
- workspaceControl: { width: "full" },
105
- /** The element the Select mounts on, which is what the drawer's header sticks to. */
106
87
  workspaceRoot: {
107
88
  flexShrink: 0,
108
89
  width: "full"
@@ -120,14 +101,14 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
120
101
  },
121
102
  workspaceValue: {
122
103
  opacity: .8,
123
- overflow: "hidden",
124
- textOverflow: "ellipsis",
125
- textStyle: "body/lg/regular"
104
+ textStyle: "body/lg/regular",
105
+ truncate: true
126
106
  },
127
107
  workspaceChevron: {
108
+ color: "text/on-color",
128
109
  flexShrink: 0,
129
110
  transition: "rotate 150ms ease-out",
130
- "&[data-state=\"open\"]": { rotate: "180deg" },
111
+ _open: { rotate: "180deg" },
131
112
  _motionReduce: { transition: "none" }
132
113
  },
133
114
  body: {
@@ -158,7 +139,7 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
158
139
  background: "sys/ui/sidenav/item/bg-active",
159
140
  color: "sys/ui/sidenav/item/fg-active"
160
141
  },
161
- "&[data-selected]": {
142
+ _selected: {
162
143
  background: "sys/ui/sidenav/item/bg-selected",
163
144
  color: "sys/ui/sidenav/item/fg-active",
164
145
  _hover: {
@@ -173,9 +154,8 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
173
154
  itemLabel: {
174
155
  flex: 1,
175
156
  minWidth: 0,
176
- overflow: "hidden",
177
- textOverflow: "ellipsis",
178
- textStyle: "body/lg/semibold"
157
+ textStyle: "body/lg/semibold",
158
+ truncate: true
179
159
  },
180
160
  itemIndicator: {
181
161
  background: "sys/ui/sidenav/item/indicator",
@@ -190,20 +170,13 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
190
170
  flexShrink: 0,
191
171
  marginBlockStart: "auto"
192
172
  },
193
- /**
194
- * The rule above the footer, drawn as its own band rather than a border on the footer: the
195
- * design insets the line from both edges and gives it breathing room, which a border cannot do.
196
- */
197
173
  footerSeparator: {
198
174
  flexShrink: 0,
199
175
  paddingBlock: "8",
200
176
  paddingInline: "12",
201
177
  _before: {
202
- background: "border/inverse",
203
- content: "\"\"",
178
+ ...hairline,
204
179
  display: "block",
205
- height: "1",
206
- opacity: .2,
207
180
  width: "full"
208
181
  }
209
182
  },
@@ -215,8 +188,6 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
215
188
  textStyle: "heading/h6",
216
189
  textTransform: "uppercase"
217
190
  },
218
- /** Shared by both of the footer row's elements: an anchor for a destination, a button for a
219
- * row that opens something in place. The reset keeps the two indistinguishable. */
220
191
  link: {
221
192
  alignItems: "center",
222
193
  background: "sys/ui/sidenav/item/bg",
@@ -256,21 +227,18 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
256
227
  linkLabel: {
257
228
  flex: 1,
258
229
  minWidth: 0,
259
- overflow: "hidden",
260
- textOverflow: "ellipsis",
261
230
  textStyle: "body/lg/regular",
231
+ truncate: true,
262
232
  "[data-with-secondary] &": {
263
233
  flex: "none",
264
234
  textStyle: "body/md/semibold"
265
235
  }
266
236
  },
267
237
  linkSecondaryText: {
268
- overflow: "hidden",
269
- textOverflow: "ellipsis",
270
- textStyle: "body/sm/regular"
238
+ textStyle: "body/sm/regular",
239
+ truncate: true
271
240
  },
272
241
  linkIcon: { flexShrink: 0 },
273
- /** Wraps the icon so the status dot can hang off its trailing bottom corner. */
274
242
  linkIconBlock: {
275
243
  display: "flex",
276
244
  flexShrink: 0,
@@ -279,8 +247,8 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
279
247
  linkStatusDot: {
280
248
  borderRadius: "full",
281
249
  height: "8",
282
- insetBlockEnd: "-2px",
283
- insetInlineEnd: "-4px",
250
+ insetBlockEnd: "-2",
251
+ insetInlineEnd: "-4",
284
252
  position: "absolute",
285
253
  width: "8",
286
254
  "&[data-status=\"neutral\"]": { background: "sys/ui/sidenav/badge/neutral" },
@@ -316,8 +284,8 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
316
284
  display: "flex",
317
285
  flexDirection: "column",
318
286
  maxHeight: "100dvh",
319
- overflow: "visible",
320
287
  outline: "none",
288
+ overflow: "visible",
321
289
  position: "relative",
322
290
  width: DRAWER_WIDTH,
323
291
  maxWidth: "calc(100vw - 55px)",
@@ -413,12 +381,9 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
413
381
  paddingBlockStart: "24",
414
382
  position: "relative",
415
383
  _before: {
416
- background: "border/inverse",
417
- content: "\"\"",
418
- height: "1",
384
+ ...hairline,
419
385
  insetBlockStart: 0,
420
386
  insetInline: 0,
421
- opacity: .2,
422
387
  position: "absolute"
423
388
  }
424
389
  }
@@ -432,7 +397,7 @@ var uiSideNavSlotRecipe = defineSlotRecipe({
432
397
  },
433
398
  workspaceMenu: {
434
399
  maxHeight: "var(--available-height)",
435
- "& [data-slot=\"item-list\"]": { maxHeight: "none" }
400
+ "--select-menu-list-max-height": "none"
436
401
  },
437
402
  body: {
438
403
  flex: "1 0 auto",
@@ -1 +1 @@
1
- {"version":3,"file":"UISideNav.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/UISideNav.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\n/**\n * The rail's two widths. The collapsed rail is exactly wide enough for the 24px icon at its\n * 24px inline-start padding, which centres the icon and puts the label's first pixel on the\n * rail's trailing edge — so the expanded row and the collapsed row are the same row, clipped.\n */\nconst RAIL_WIDTH_COLLAPSED = rem(72);\n\n/**\n * The footprint the rail keeps in the page. The expanded rail overlays the content rather than\n * pushing it, so this is the gutter a layout reserves beside the navigation — exported so a\n * consumer does not have to hardcode the number and drift from it.\n */\nexport const uiSideNavRailWidth = RAIL_WIDTH_COLLAPSED;\nconst RAIL_WIDTH_EXPANDED = rem(256);\nconst DRAWER_WIDTH = rem(320);\n\n/**\n * The workspace menu is wider than the rail it hangs off, so a long workspace name has somewhere\n * to go. The drawer leaves it alone and lets the menu take the panel's width instead.\n */\nconst WORKSPACE_MENU_WIDTH = rem(360);\n\n/**\n * Every row is laid out at the expanded width and clipped by the root, rather than reflowing\n * between the two states. Without it the label would be handed a 72px row, ellipsis itself, and\n * re-wrap on every hover.\n */\nconst railRow = { minWidth: RAIL_WIDTH_EXPANDED };\n\nconst uiSideNavSlotRecipe = defineSlotRecipe({\n className: 'ui-side-nav',\n slots: [\n 'backdrop',\n 'body',\n 'closeButton',\n 'content',\n 'footer',\n 'footerHeading',\n 'footerSeparator',\n 'item',\n 'itemIcon',\n 'itemIndicator',\n 'itemLabel',\n 'link',\n 'linkIcon',\n 'linkIconBlock',\n 'linkLabel',\n 'linkSecondaryText',\n 'linkStatusDot',\n 'linkTextBlock',\n 'positioner',\n 'root',\n 'workspace',\n 'workspaceChevron',\n 'workspaceControl',\n 'workspaceLabel',\n 'workspaceMenu',\n 'workspaceRoot',\n 'workspaceTextBlock',\n 'workspaceValue',\n ],\n base: {\n root: {\n background: 'sys/ui/sidenav/bg',\n display: 'flex',\n flexDirection: 'column',\n // The consumer owns the positioning: the website fixes it below a 48px header and feeds it\n // a dynamic margin for the Intercom banner. Filling the height given is all this does.\n height: 'full',\n // What makes the rail a rail. Every row is laid out at the expanded width, so this is the\n // only thing hiding the labels.\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n },\n workspace: {\n alignItems: 'center',\n background: 'sys/ui/sidenav/item/bg',\n // The Select recipe styles the trigger as a form control. This slot has to undo that\n // before it can be a navigation cell.\n borderRadius: 0,\n borderWidth: 0,\n color: 'text/on-color',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n gap: '16',\n height: rem(72),\n minHeight: rem(72),\n position: 'relative',\n textAlign: 'start',\n width: 'full',\n // The 1px rule under the cell. A pseudo-element rather than a border so it cannot add to\n // the 72px height the avatar and its padding already fill exactly.\n _after: {\n background: 'border/inverse',\n content: '\"\"',\n height: '1',\n insetBlockEnd: 0,\n insetInline: 0,\n opacity: 0.2,\n position: 'absolute',\n },\n _hover: {\n background: 'sys/ui/sidenav/item/bg-hover',\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n /**\n * The Select's own wrapper. It sizes to its content by default, which would leave the\n * workspace cell narrower than the panel in the drawer, where no minimum width props it out.\n */\n workspaceControl: {\n width: 'full',\n },\n /** The element the Select mounts on, which is what the drawer's header sticks to. */\n workspaceRoot: {\n flexShrink: 0,\n width: 'full',\n },\n workspaceTextBlock: {\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n minWidth: 0,\n },\n workspaceLabel: {\n // The design draws this at 60% of the on-colour white. There is no sidenav token for it,\n // so it is the opacity Figma itself applies, not an invented colour.\n opacity: 0.6,\n textStyle: 'heading/h6',\n textTransform: 'uppercase',\n },\n workspaceValue: {\n opacity: 0.8,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textStyle: 'body/lg/regular',\n },\n workspaceChevron: {\n flexShrink: 0,\n transition: 'rotate 150ms ease-out',\n // The design draws a chevron-up when the menu is open. It is the same glyph turned over,\n // so it is a rotation rather than a second icon.\n '&[data-state=\"open\"]': {\n rotate: '180deg',\n },\n _motionReduce: {\n transition: 'none',\n },\n },\n body: {\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n minHeight: 0,\n },\n item: {\n alignItems: 'center',\n background: 'sys/ui/sidenav/item/bg',\n // Both the icon and the label take their colour from the row, which is how one token pair\n // drives the whole 80%-to-100% shift the design asks for.\n color: 'sys/ui/sidenav/item/fg',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n overflow: 'hidden',\n paddingInlineEnd: '8',\n paddingInlineStart: '24',\n position: 'relative',\n textDecoration: 'none',\n width: 'full',\n _hover: {\n background: 'sys/ui/sidenav/item/bg-hover',\n color: 'sys/ui/sidenav/item/fg-hover',\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n color: 'sys/ui/sidenav/item/fg-active',\n },\n // The selected row is dimmer on hover than at rest. That reads backwards, but it is what\n // the component set draws: bg-selected at rest, bg-hover under the pointer.\n '&[data-selected]': {\n background: 'sys/ui/sidenav/item/bg-selected',\n color: 'sys/ui/sidenav/item/fg-active',\n _hover: {\n background: 'sys/ui/sidenav/item/bg-hover',\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n // `focusVisibleRing: 'inside'` still resolves to a zero offset, which draws the ring on the\n // border box. The row is full-bleed, so that would be clipped by the rail — pull it in.\n _focusVisible: {\n outlineOffset: 'calc(var(--focus-ring-width) * -1)',\n },\n },\n itemIcon: {\n flexShrink: 0,\n },\n itemLabel: {\n flex: 1,\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textStyle: 'body/lg/semibold',\n },\n itemIndicator: {\n background: 'sys/ui/sidenav/item/indicator',\n insetBlock: 0,\n insetInlineStart: 0,\n position: 'absolute',\n width: '4',\n },\n footer: {\n display: 'flex',\n flexDirection: 'column',\n flexShrink: 0,\n // Holds the footer at the bottom however short the navigation is.\n marginBlockStart: 'auto',\n },\n /**\n * The rule above the footer, drawn as its own band rather than a border on the footer: the\n * design insets the line from both edges and gives it breathing room, which a border cannot do.\n */\n footerSeparator: {\n flexShrink: 0,\n paddingBlock: '8',\n // The collapsed inset. Unlike the rows, the rule follows the rail's own width rather than\n // being laid out at 256 and clipped, so it needs a narrower inset while the rail is narrow.\n paddingInline: '12',\n _before: {\n background: 'border/inverse',\n content: '\"\"',\n display: 'block',\n height: '1',\n opacity: 0.2,\n width: 'full',\n },\n },\n footerHeading: {\n color: 'text/on-color',\n opacity: 0.6,\n paddingBlockEnd: '12',\n paddingInline: '24',\n textStyle: 'heading/h6',\n textTransform: 'uppercase',\n },\n /** Shared by both of the footer row's elements: an anchor for a destination, a button for a\n * row that opens something in place. The reset keeps the two indistinguishable. */\n link: {\n alignItems: 'center',\n background: 'sys/ui/sidenav/item/bg',\n borderWidth: 0,\n color: 'sys/ui/sidenav/item/fg',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n overflow: 'hidden',\n paddingBlock: '12',\n paddingInline: '24',\n textAlign: 'start',\n textDecoration: 'none',\n width: 'full',\n _hover: {\n background: 'sys/ui/sidenav/item/bg-hover',\n color: 'sys/ui/sidenav/item/fg-hover',\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n color: 'sys/ui/sidenav/item/fg-active',\n },\n _focusVisible: {\n outlineOffset: 'calc(var(--focus-ring-width) * -1)',\n },\n // A row carrying a second line is the status row, which the design draws one step taller and\n // on a tighter type scale. Its own height rather than padding, because 12 above and below a\n // 36px text block would overshoot the 56 the design fixes it at.\n '&[data-with-secondary]': {\n height: rem(56),\n paddingBlock: 0,\n },\n },\n linkTextBlock: {\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n justifyContent: 'center',\n minWidth: 0,\n },\n linkLabel: {\n flex: 1,\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textStyle: 'body/lg/regular',\n '[data-with-secondary] &': {\n flex: 'none',\n textStyle: 'body/md/semibold',\n },\n },\n linkSecondaryText: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n textStyle: 'body/sm/regular',\n },\n linkIcon: {\n flexShrink: 0,\n },\n /** Wraps the icon so the status dot can hang off its trailing bottom corner. */\n linkIconBlock: {\n display: 'flex',\n flexShrink: 0,\n position: 'relative',\n },\n linkStatusDot: {\n borderRadius: 'full',\n height: '8',\n // Clear of the icon's corner by the 4 and 2 the design offsets it.\n insetBlockEnd: '-2px',\n insetInlineEnd: '-4px',\n position: 'absolute',\n width: '8',\n '&[data-status=\"neutral\"]': {\n background: 'sys/ui/sidenav/badge/neutral',\n },\n '&[data-status=\"success\"]': {\n background: 'sys/ui/sidenav/badge/green',\n },\n '&[data-status=\"critical\"]': {\n background: 'sys/ui/sidenav/badge/red',\n },\n },\n backdrop: {\n background: 'utilities/overlay',\n inset: 0,\n position: 'fixed',\n zIndex: 'calc({zIndex.dialogOverlay} + var(--layer-index, 0))',\n _open: {\n animationDuration: 'slow',\n animationName: 'fade-in',\n },\n _closed: {\n animationDuration: 'moderate',\n animationName: 'fade-out',\n },\n },\n positioner: {\n alignItems: 'stretch',\n display: 'flex',\n inset: 0,\n // The drawer comes in from the leading edge, unlike every other drawer in the library.\n justifyContent: 'flex-start',\n overscrollBehaviorY: 'none',\n position: 'fixed',\n zIndex: 'calc({zIndex.dialog} + var(--layer-index, 0))',\n },\n content: {\n background: 'sys/ui/sidenav/bg',\n boxShadow: 'elevation/lg',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100dvh',\n // The close button hangs off the trailing edge, so this must not clip.\n overflow: 'visible',\n outline: 'none',\n position: 'relative',\n width: DRAWER_WIDTH,\n // 320 for the panel plus the 55 the close button column occupies, which is the 375 the\n // design frame is drawn at. Narrower phones give the panel up, not the button.\n maxWidth: 'calc(100vw - 55px)',\n _open: {\n animationDuration: 'slowest',\n animationName: {\n base: 'slide-from-left-full, fade-in',\n _rtl: 'slide-from-right-full, fade-in',\n },\n animationTimingFunction: 'ease-in-smooth',\n },\n _closed: {\n animationDuration: 'slower',\n animationName: {\n base: 'slide-to-left-full, fade-out',\n _rtl: 'slide-to-right-full, fade-out',\n },\n animationTimingFunction: 'ease-in-smooth',\n },\n },\n closeButton: {\n alignItems: 'center',\n display: 'flex',\n height: rem(72),\n insetBlockStart: 0,\n // Sits outside the panel but stays a child of the drawer content, so the dialog's focus\n // trap still reaches it.\n insetInlineStart: '100%',\n paddingInlineStart: '8',\n position: 'absolute',\n },\n },\n\n variants: {\n layout: {\n rail: {\n root: {\n paddingBlockEnd: '12',\n // Opening is slower to reach than closing, so a pointer crossing the rail on its way\n // somewhere else does not drag it open.\n transition: 'width 100ms ease-out',\n transitionDelay: '50ms',\n width: RAIL_WIDTH_COLLAPSED,\n _motionReduce: {\n transition: 'none',\n },\n '&[data-expanded]': {\n transitionDelay: '100ms',\n width: RAIL_WIDTH_EXPANDED,\n },\n },\n workspace: { ...railRow, paddingInline: '16' },\n workspaceControl: railRow,\n workspaceMenu: { width: WORKSPACE_MENU_WIDTH },\n item: { ...railRow, gap: '24', paddingBlock: '12' },\n link: { ...railRow, gap: '24' },\n footerSeparator: {\n '[data-expanded] &': {\n paddingInline: '16',\n },\n },\n footerHeading: railRow,\n },\n drawer: {\n root: {\n // Everything below the workspace cell scrolls together rather than the navigation\n // scrolling inside a footer that stays put — the panel is one column, not two panes.\n overflowX: 'hidden',\n overflowY: 'auto',\n width: 'full',\n },\n workspaceRoot: {\n // Opaque, because the rows pass underneath it rather than beside it.\n background: 'sys/ui/sidenav/bg',\n insetBlockStart: 0,\n position: 'sticky',\n zIndex: 1,\n },\n workspace: {\n paddingBlock: '16',\n paddingInlineEnd: '24',\n paddingInlineStart: '16',\n },\n item: { gap: '12', paddingBlock: '16' },\n link: { gap: '12' },\n footer: {\n paddingBlockEnd: '16',\n paddingBlockStart: '12',\n position: 'relative',\n },\n // A heading starts a new section inside the footer, so it carries the same rule the\n // footer draws at its own top — laid over the gap above it rather than taking a row.\n footerHeading: {\n // A `label` sits right under the footer's own rule, so it only needs the rest of the\n // 24 the design leaves above a heading.\n paddingBlockStart: '12',\n // A section heading opens a block of its own further down, so it carries the same rule\n // — laid over the gap above it rather than taking a row of its own.\n '&[data-section]': {\n marginBlockStart: '12',\n paddingBlockStart: '24',\n position: 'relative',\n _before: {\n background: 'border/inverse',\n content: '\"\"',\n height: '1',\n insetBlockStart: 0,\n insetInline: 0,\n opacity: 0.2,\n position: 'absolute',\n },\n },\n },\n // Full bleed, and laid over the block's leading edge rather than in the flow: in the flow\n // the rule's own pixel would push every block below it down by one.\n footerSeparator: {\n insetBlockStart: 0,\n insetInline: 0,\n paddingBlock: 0,\n paddingInline: 0,\n position: 'absolute',\n },\n workspaceMenu: {\n // The panel is the whole screen, so the menu takes the height it can get rather than\n // the desktop cap — which would leave a short list floating in a tall drawer.\n maxHeight: 'var(--available-height)',\n '& [data-slot=\"item-list\"]': { maxHeight: 'none' },\n },\n // The panel no longer clips, so a list too long for a short phone has to scroll inside\n // its own box rather than spilling over the footer below it.\n // Grows into the free space when the list is short, and keeps its full height when it is\n // not — the panel scrolls instead of the rows being squeezed.\n body: { flex: '1 0 auto', paddingBlock: '8' },\n },\n },\n },\n\n defaultVariants: {\n layout: 'rail',\n },\n});\n\nexport default uiSideNavSlotRecipe;\n"],"mappings":";;;;;;;;AASA,IAAM,uBAAuB,IAAI,EAAE;;;;;;AAOnC,IAAa,qBAAqB;AAClC,IAAM,sBAAsB,IAAI,GAAG;AACnC,IAAM,eAAe,IAAI,GAAG;;;;;AAM5B,IAAM,uBAAuB,IAAI,GAAG;;;;;;AAOpC,IAAM,UAAU,EAAE,UAAU,oBAAoB;AAEhD,IAAM,sBAAsB,iBAAiB;CAC3C,WAAW;CACX,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,MAAM;EACJ,MAAM;GACJ,YA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ACF;GACA,eAAe;EACjB;EACA,QAAQ;GACN,MAAM;IAGJ,WAAW;IACX,WAAW;IACX,OAAO;GACT;GACA,eAAe;IAEb,YAAY;IACZ,iBAAiB;IACjB,UAAU;IACV,QAAQ;GACV;GACA,WAAW;IACT,cAAc;IACd,kBAAkB;IAClB,oBAAoB;GACtB;GACA,MAAM;IAAE,KAAK;IAAM,cAAc;GAAK;GACtC,MAAM,EAAE,KAAK,KAAK;GAClB,QAAQ;IACN,iBAAiB;IACjB,mBAAmB;IACnB,UAAU;GACZ;GAGA,eAAe;IAGb,mBAAmB;IAGnB,mBAAmB;KACjB,kBAAkB;KAClB,mBAAmB;KACnB,UAAU;KACV,SAAS;MACP,YAAY;MACZ,SAAS;MACT,QAAQ;MACR,iBAAiB;MACjB,aAAa;MACb,SAAS;MACT,UAAU;KACZ;IACF;GACF;GAGA,iBAAiB;IACf,iBAAiB;IACjB,aAAa;IACb,cAAc;IACd,eAAe;IACf,UAAU;GACZ;GACA,eAAe;IAGb,WAAW;IACX,+BAA6B,EAAE,WAAW,OAAO;GACnD;GAKA,MAAM;IAAE,MAAM;IAAY,cAAc;GAAI;EAC9C;CACF,EACF;CAEA,iBAAiB,EACf,QAAQ,OACV;AACF,CAAC"}
1
+ {"version":3,"file":"UISideNav.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/UISideNav.recipe.ts"],"sourcesContent":["import { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nimport { rem } from '../themeUtils';\n\nconst RAIL_WIDTH_COLLAPSED = rem(72);\n\n/**\n * The footprint the rail keeps in the page. The expanded rail overlays the content rather than\n * pushing it, so this is the gutter a layout reserves beside the navigation.\n */\nexport const uiSideNavRailWidth = RAIL_WIDTH_COLLAPSED;\n\nconst RAIL_WIDTH_EXPANDED = rem(256);\nconst DRAWER_WIDTH = rem(320);\nconst WORKSPACE_MENU_WIDTH = rem(360);\n\nconst railRow = { minWidth: RAIL_WIDTH_EXPANDED };\n\nconst hairline = {\n background: 'border/inverse',\n content: '\"\"',\n height: '1',\n opacity: 0.2,\n} as const;\n\nconst uiSideNavSlotRecipe = defineSlotRecipe({\n className: 'ui-side-nav',\n slots: [\n 'backdrop',\n 'body',\n 'closeButton',\n 'content',\n 'footer',\n 'footerHeading',\n 'footerSeparator',\n 'item',\n 'itemIcon',\n 'itemIndicator',\n 'itemLabel',\n 'link',\n 'linkIcon',\n 'linkIconBlock',\n 'linkLabel',\n 'linkSecondaryText',\n 'linkStatusDot',\n 'linkTextBlock',\n 'positioner',\n 'root',\n 'workspace',\n 'workspaceChevron',\n 'workspaceControl',\n 'workspaceLabel',\n 'workspaceMenu',\n 'workspaceRoot',\n 'workspaceTextBlock',\n 'workspaceValue',\n ],\n base: {\n root: {\n background: 'sys/ui/sidenav/bg',\n display: 'flex',\n flexDirection: 'column',\n height: 'full',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n },\n workspace: {\n alignItems: 'center',\n background: 'sys/ui/sidenav/item/bg',\n // Preflight zeroes every border width but not the radius a native button can still draw.\n borderRadius: 0,\n color: 'text/on-color',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n gap: '16',\n height: rem(72),\n minHeight: rem(72),\n position: 'relative',\n textAlign: 'start',\n width: 'full',\n _after: {\n ...hairline,\n insetBlockEnd: 0,\n insetInline: 0,\n position: 'absolute',\n },\n _hover: {\n background: 'sys/ui/sidenav/item/bg-hover',\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n workspaceRoot: {\n flexShrink: 0,\n width: 'full',\n },\n workspaceTextBlock: {\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n minWidth: 0,\n },\n workspaceLabel: {\n opacity: 0.6,\n textStyle: 'heading/h6',\n textTransform: 'uppercase',\n },\n workspaceValue: {\n opacity: 0.8,\n textStyle: 'body/lg/regular',\n truncate: true,\n },\n workspaceChevron: {\n color: 'text/on-color',\n flexShrink: 0,\n transition: 'rotate 150ms ease-out',\n _open: {\n rotate: '180deg',\n },\n _motionReduce: {\n transition: 'none',\n },\n },\n body: {\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n minHeight: 0,\n },\n item: {\n alignItems: 'center',\n background: 'sys/ui/sidenav/item/bg',\n color: 'sys/ui/sidenav/item/fg',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n overflow: 'hidden',\n paddingInlineEnd: '8',\n paddingInlineStart: '24',\n position: 'relative',\n textDecoration: 'none',\n width: 'full',\n _hover: {\n background: 'sys/ui/sidenav/item/bg-hover',\n color: 'sys/ui/sidenav/item/fg-hover',\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n color: 'sys/ui/sidenav/item/fg-active',\n },\n _selected: {\n background: 'sys/ui/sidenav/item/bg-selected',\n color: 'sys/ui/sidenav/item/fg-active',\n _hover: {\n background: 'sys/ui/sidenav/item/bg-hover',\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _focusVisible: {\n outlineOffset: 'calc(var(--focus-ring-width) * -1)',\n },\n },\n itemIcon: {\n flexShrink: 0,\n },\n itemLabel: {\n flex: 1,\n minWidth: 0,\n textStyle: 'body/lg/semibold',\n truncate: true,\n },\n itemIndicator: {\n background: 'sys/ui/sidenav/item/indicator',\n insetBlock: 0,\n insetInlineStart: 0,\n position: 'absolute',\n width: '4',\n },\n footer: {\n display: 'flex',\n flexDirection: 'column',\n flexShrink: 0,\n marginBlockStart: 'auto',\n },\n footerSeparator: {\n flexShrink: 0,\n paddingBlock: '8',\n paddingInline: '12',\n _before: {\n ...hairline,\n display: 'block',\n width: 'full',\n },\n },\n footerHeading: {\n color: 'text/on-color',\n opacity: 0.6,\n paddingBlockEnd: '12',\n paddingInline: '24',\n textStyle: 'heading/h6',\n textTransform: 'uppercase',\n },\n link: {\n alignItems: 'center',\n background: 'sys/ui/sidenav/item/bg',\n borderWidth: 0,\n color: 'sys/ui/sidenav/item/fg',\n cursor: 'pointer',\n display: 'flex',\n flexShrink: 0,\n overflow: 'hidden',\n paddingBlock: '12',\n paddingInline: '24',\n textAlign: 'start',\n textDecoration: 'none',\n width: 'full',\n _hover: {\n background: 'sys/ui/sidenav/item/bg-hover',\n color: 'sys/ui/sidenav/item/fg-hover',\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n },\n },\n _active: {\n background: 'sys/ui/sidenav/item/bg-active',\n color: 'sys/ui/sidenav/item/fg-active',\n },\n _focusVisible: {\n outlineOffset: 'calc(var(--focus-ring-width) * -1)',\n },\n '&[data-with-secondary]': {\n height: rem(56),\n paddingBlock: 0,\n },\n },\n linkTextBlock: {\n display: 'flex',\n flex: 1,\n flexDirection: 'column',\n justifyContent: 'center',\n minWidth: 0,\n },\n linkLabel: {\n flex: 1,\n minWidth: 0,\n textStyle: 'body/lg/regular',\n truncate: true,\n '[data-with-secondary] &': {\n flex: 'none',\n textStyle: 'body/md/semibold',\n },\n },\n linkSecondaryText: {\n textStyle: 'body/sm/regular',\n truncate: true,\n },\n linkIcon: {\n flexShrink: 0,\n },\n linkIconBlock: {\n display: 'flex',\n flexShrink: 0,\n position: 'relative',\n },\n linkStatusDot: {\n borderRadius: 'full',\n height: '8',\n insetBlockEnd: '-2',\n insetInlineEnd: '-4',\n position: 'absolute',\n width: '8',\n '&[data-status=\"neutral\"]': {\n background: 'sys/ui/sidenav/badge/neutral',\n },\n '&[data-status=\"success\"]': {\n background: 'sys/ui/sidenav/badge/green',\n },\n '&[data-status=\"critical\"]': {\n background: 'sys/ui/sidenav/badge/red',\n },\n },\n backdrop: {\n background: 'utilities/overlay',\n inset: 0,\n position: 'fixed',\n zIndex: 'calc({zIndex.dialogOverlay} + var(--layer-index, 0))',\n _open: {\n animationDuration: 'slow',\n animationName: 'fade-in',\n },\n _closed: {\n animationDuration: 'moderate',\n animationName: 'fade-out',\n },\n },\n positioner: {\n alignItems: 'stretch',\n display: 'flex',\n inset: 0,\n // The drawer comes in from the leading edge, unlike every other drawer in the library.\n justifyContent: 'flex-start',\n overscrollBehaviorY: 'none',\n position: 'fixed',\n zIndex: 'calc({zIndex.dialog} + var(--layer-index, 0))',\n },\n content: {\n background: 'sys/ui/sidenav/bg',\n boxShadow: 'elevation/lg',\n display: 'flex',\n flexDirection: 'column',\n maxHeight: '100dvh',\n outline: 'none',\n // The close button hangs off the trailing edge, so the panel must not clip it.\n overflow: 'visible',\n position: 'relative',\n width: DRAWER_WIDTH,\n // 320 for the panel plus the 55 the close button column occupies, which is the 375 the\n // design frame is drawn at. Narrower phones give the panel up, not the button.\n maxWidth: 'calc(100vw - 55px)',\n _open: {\n animationDuration: 'slowest',\n animationName: {\n base: 'slide-from-left-full, fade-in',\n _rtl: 'slide-from-right-full, fade-in',\n },\n animationTimingFunction: 'ease-in-smooth',\n },\n _closed: {\n animationDuration: 'slower',\n animationName: {\n base: 'slide-to-left-full, fade-out',\n _rtl: 'slide-to-right-full, fade-out',\n },\n animationTimingFunction: 'ease-in-smooth',\n },\n },\n closeButton: {\n alignItems: 'center',\n display: 'flex',\n height: rem(72),\n insetBlockStart: 0,\n insetInlineStart: '100%',\n paddingInlineStart: '8',\n position: 'absolute',\n },\n },\n\n variants: {\n layout: {\n rail: {\n root: {\n paddingBlockEnd: '12',\n // Opening is slower to reach than closing, so a pointer crossing the rail on its way\n // somewhere else does not drag it open.\n transition: 'width 100ms ease-out',\n transitionDelay: '50ms',\n width: RAIL_WIDTH_COLLAPSED,\n _motionReduce: {\n transition: 'none',\n },\n '&[data-expanded]': {\n transitionDelay: '100ms',\n width: RAIL_WIDTH_EXPANDED,\n },\n },\n workspace: { ...railRow, paddingInline: '16' },\n workspaceControl: railRow,\n workspaceMenu: { width: WORKSPACE_MENU_WIDTH },\n item: { ...railRow, gap: '24', paddingBlock: '12' },\n link: { ...railRow, gap: '24' },\n footerSeparator: {\n '[data-expanded] &': {\n paddingInline: '16',\n },\n },\n footerHeading: railRow,\n },\n drawer: {\n root: {\n overflowX: 'hidden',\n overflowY: 'auto',\n width: 'full',\n },\n workspaceRoot: {\n background: 'sys/ui/sidenav/bg',\n insetBlockStart: 0,\n position: 'sticky',\n zIndex: 1,\n },\n workspace: {\n paddingBlock: '16',\n paddingInlineEnd: '24',\n paddingInlineStart: '16',\n },\n item: { gap: '12', paddingBlock: '16' },\n link: { gap: '12' },\n footer: {\n paddingBlockEnd: '16',\n paddingBlockStart: '12',\n position: 'relative',\n },\n footerHeading: {\n paddingBlockStart: '12',\n '&[data-section]': {\n marginBlockStart: '12',\n paddingBlockStart: '24',\n position: 'relative',\n _before: {\n ...hairline,\n insetBlockStart: 0,\n insetInline: 0,\n position: 'absolute',\n },\n },\n },\n footerSeparator: {\n insetBlockStart: 0,\n insetInline: 0,\n paddingBlock: 0,\n paddingInline: 0,\n position: 'absolute',\n },\n workspaceMenu: {\n // The panel is the whole screen, so the menu takes the height it can get rather than\n // the desktop cap, which would leave a short list floating in a tall drawer.\n maxHeight: 'var(--available-height)',\n '--select-menu-list-max-height': 'none',\n },\n body: { flex: '1 0 auto', paddingBlock: '8' },\n },\n },\n },\n\n defaultVariants: {\n layout: 'rail',\n },\n});\n\nexport default uiSideNavSlotRecipe;\n"],"mappings":";;;AAIA,IAAM,uBAAuB,IAAI,EAAE;;;;;AAMnC,IAAa,qBAAqB;AAElC,IAAM,sBAAsB,IAAI,GAAG;AACnC,IAAM,eAAe,IAAI,GAAG;AAC5B,IAAM,uBAAuB,IAAI,GAAG;AAEpC,IAAM,UAAU,EAAE,UAAU,oBAAoB;AAEhD,IAAM,WAAW;CACf,YAAY;CACZ,SAAS;CACT,QAAQ;CACR,SAAS;AACX;AAEA,IAAM,sBAAsB,iBAAiB;CAC3C,WAAW;CACX,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAC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AAU;IACV,QAAQ;GACV;GACA,WAAW;IACT,cAAc;IACd,kBAAkB;IAClB,oBAAoB;GACtB;GACA,MAAM;IAAE,KAAK;IAAM,cAAc;GAAK;GACtC,MAAM,EAAE,KAAK,KAAK;GAClB,QAAQ;IACN,iBAAiB;IACjB,mBAAmB;IACnB,UAAU;GACZ;GACA,eAAe;IACb,mBAAmB;IACnB,mBAAmB;KACjB,kBAAkB;KAClB,mBAAmB;KACnB,UAAU;KACV,SAAS;MACP,GAAG;MACH,iBAAiB;MACjB,aAAa;MACb,UAAU;KACZ;IACF;GACF;GACA,iBAAiB;IACf,iBAAiB;IACjB,aAAa;IACb,cAAc;IACd,eAAe;IACf,UAAU;GACZ;GACA,eAAe;IAGb,WAAW;IACX,iCAAiC;GACnC;GACA,MAAM;IAAE,MAAM;IAAY,cAAc;GAAI;EAC9C;CACF,EACF;CAEA,iBAAiB,EACf,QAAQ,OACV;AACF,CAAC"}
@@ -657,8 +657,8 @@ declare const slotRecipes: {
657
657
  textStyle: "body/md/semibold";
658
658
  };
659
659
  } | undefined;
660
- itemList?: {
661
- maxHeight: `${number}rem`;
660
+ content?: {
661
+ '--select-menu-list-max-height': `${number}rem`;
662
662
  } | undefined;
663
663
  itemLabel?: {
664
664
  textStyle: "body/md/regular";
@@ -2195,8 +2195,8 @@ declare const slotRecipes: {
2195
2195
  textStyle: "body/lg/semibold";
2196
2196
  };
2197
2197
  };
2198
- itemList: {
2199
- maxHeight: `${number}rem`;
2198
+ content: {
2199
+ '--select-menu-list-max-height': `${number}rem`;
2200
2200
  };
2201
2201
  itemLabel: {
2202
2202
  textStyle: "body/lg/regular";
@@ -2260,8 +2260,8 @@ declare const slotRecipes: {
2260
2260
  textStyle: "body/md/semibold";
2261
2261
  };
2262
2262
  };
2263
- itemList: {
2264
- maxHeight: `${number}rem`;
2263
+ content: {
2264
+ '--select-menu-list-max-height': `${number}rem`;
2265
2265
  };
2266
2266
  itemLabel: {
2267
2267
  textStyle: "body/md/regular";
@@ -3506,13 +3506,13 @@ declare const slotRecipes: {
3506
3506
  paddingBlockStart: "24";
3507
3507
  position: "relative";
3508
3508
  _before: {
3509
- background: "border/inverse";
3510
- content: "\"\"";
3511
- height: "1";
3512
3509
  insetBlockStart: number;
3513
3510
  insetInline: number;
3514
- opacity: number;
3515
3511
  position: "absolute";
3512
+ background: "border/inverse";
3513
+ content: "\"\"";
3514
+ height: "1";
3515
+ opacity: 0.2;
3516
3516
  };
3517
3517
  };
3518
3518
  };
@@ -3525,9 +3525,7 @@ declare const slotRecipes: {
3525
3525
  };
3526
3526
  workspaceMenu: {
3527
3527
  maxHeight: "var(--available-height)";
3528
- '& [data-slot="item-list"]': {
3529
- maxHeight: "none";
3530
- };
3528
+ '--select-menu-list-max-height': "none";
3531
3529
  };
3532
3530
  body: {
3533
3531
  flex: "1 0 auto";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.460-beta.2893",
4
+ "version": "0.3.460-beta.2908",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",