@bitrise/bitkit-v2 0.3.432 → 0.3.434

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 (62) hide show
  1. package/dist/components/BitkitActionBar/BitkitActionBar.d.ts +1 -1
  2. package/dist/components/BitkitActionMenu/BitkitActionMenu.d.ts +1 -1
  3. package/dist/components/BitkitAlert/BitkitAlert.d.ts +1 -1
  4. package/dist/components/BitkitBreadcrumb/BitkitBreadcrumb.d.ts +1 -1
  5. package/dist/components/BitkitBreadcrumb/components/OverflowMenu.d.ts +1 -1
  6. package/dist/components/BitkitBreadcrumb/components/OverflowMenuTrigger.d.ts +1 -1
  7. package/dist/components/BitkitCalendar/components/CalendarContent.d.ts +1 -1
  8. package/dist/components/BitkitCalendar/components/CalendarFooter.d.ts +1 -1
  9. package/dist/components/BitkitCalendar/components/CalendarMonth.d.ts +1 -1
  10. package/dist/components/BitkitCalendar/components/CalendarMonthSelect.d.ts +1 -1
  11. package/dist/components/BitkitCalendar/components/CalendarNextTrigger.d.ts +1 -1
  12. package/dist/components/BitkitCalendar/components/CalendarPrevTrigger.d.ts +1 -1
  13. package/dist/components/BitkitCalendar/components/CalendarSelect.d.ts +1 -1
  14. package/dist/components/BitkitCalendar/components/CalendarYearSelect.d.ts +1 -1
  15. package/dist/components/BitkitCombobox/BitkitCombobox.d.ts +1 -1
  16. package/dist/components/BitkitDefinitionTooltip/BitkitDefinitionTooltip.d.ts +1 -1
  17. package/dist/components/BitkitDialog/BitkitDialog.d.ts +1 -1
  18. package/dist/components/BitkitDialog/BitkitStepsDialog.d.ts +2 -2
  19. package/dist/components/BitkitDialog/BitkitStepsDialogStep.d.ts +1 -1
  20. package/dist/components/BitkitDialog/DialogBodyContext.d.ts +1 -1
  21. package/dist/components/BitkitDialog/DialogInner.d.ts +1 -1
  22. package/dist/components/BitkitDialog/DialogShell.d.ts +1 -1
  23. package/dist/components/BitkitEmptyState/BitkitEmptyState.d.ts +1 -1
  24. package/dist/components/BitkitExpandableCard/BitkitExpandableCard.d.ts +1 -0
  25. package/dist/components/BitkitExpandableCard/BitkitExpandableCard.js +13 -6
  26. package/dist/components/BitkitExpandableCard/BitkitExpandableCard.js.map +1 -1
  27. package/dist/components/BitkitLabelTooltip/BitkitLabelTooltip.d.ts +1 -1
  28. package/dist/components/BitkitLightbox/BitkitLightbox.d.ts +1 -1
  29. package/dist/components/BitkitMultiselect/BitkitMultiselect.d.ts +1 -1
  30. package/dist/components/BitkitOverflowTooltip/BitkitOverflowTooltip.d.ts +1 -1
  31. package/dist/components/BitkitPopover/BitkitPopover.d.ts +1 -1
  32. package/dist/components/BitkitPromoBanner/BitkitPromoBanner.d.ts +1 -1
  33. package/dist/components/BitkitSelect/BitkitSelect.d.ts +1 -1
  34. package/dist/components/BitkitSelectMenu/BitkitSelectMenuAction.d.ts +1 -1
  35. package/dist/components/BitkitSelectMenu/SelectMenuShell.d.ts +1 -1
  36. package/dist/components/BitkitStepsCard/BitkitStepsCard.d.ts +1 -1
  37. package/dist/components/BitkitSwitch/components/BitkitSwitchHelperText.d.ts +1 -1
  38. package/dist/components/BitkitSwitch/components/BitkitSwitchLabel.d.ts +1 -1
  39. package/dist/components/BitkitSwitch/components/BitkitSwitchReadOnly.d.ts +1 -1
  40. package/dist/components/BitkitSwitch/components/BitkitSwitchValueText.d.ts +1 -1
  41. package/dist/components/BitkitTag/BitkitTag.d.ts +1 -1
  42. package/dist/components/BitkitToast/BitkitToaster.d.ts +1 -1
  43. package/dist/components/BitkitTooltip/BitkitTooltip.d.ts +1 -1
  44. package/dist/components/BitkitTour/BitkitTour.d.ts +1 -1
  45. package/dist/components/common/NotificationContent.d.ts +1 -1
  46. package/dist/docs/ColorsBase.d.ts +1 -1
  47. package/dist/docs/ColorsComponent.d.ts +1 -1
  48. package/dist/docs/ColorsSystem.d.ts +1 -1
  49. package/dist/docs/Icons.d.ts +1 -1
  50. package/dist/docs/Radii.d.ts +1 -1
  51. package/dist/docs/Shadows.d.ts +1 -1
  52. package/dist/docs/SpacingAndSizes.d.ts +1 -1
  53. package/dist/docs/TextStyles.d.ts +1 -1
  54. package/dist/docs/Typography.d.ts +1 -1
  55. package/dist/docs/shared.d.ts +3 -3
  56. package/dist/hooks/useResponsive.d.ts +1 -1
  57. package/dist/providers/BitkitProvider.d.ts +1 -1
  58. package/dist/theme/slot-recipes/ExpandableCard.recipe.d.ts +9 -1
  59. package/dist/theme/slot-recipes/ExpandableCard.recipe.js +34 -18
  60. package/dist/theme/slot-recipes/ExpandableCard.recipe.js.map +1 -1
  61. package/dist/theme/slot-recipes/index.d.ts +9 -1
  62. package/package.json +7 -7
@@ -5,5 +5,5 @@ export interface BitkitActionBarProps extends ActionBarRootProps {
5
5
  countValue: number;
6
6
  onClose?: () => void;
7
7
  }
8
- declare const BitkitActionBar: (props: BitkitActionBarProps) => import("react").JSX.Element;
8
+ declare const BitkitActionBar: (props: BitkitActionBarProps) => import('react').JSX.Element;
9
9
  export default BitkitActionBar;
@@ -67,7 +67,7 @@ export interface BitkitActionMenuGroupProps extends MenuItemGroupProps {
67
67
  }
68
68
  export type BitkitActionMenuSeparatorProps = MenuSeparatorProps;
69
69
  declare const _default: {
70
- ({ trigger, children, size, ...props }: BitkitActionMenuProps): import("react").JSX.Element;
70
+ ({ trigger, children, size, ...props }: BitkitActionMenuProps): import('react').JSX.Element;
71
71
  displayName: string;
72
72
  } & {
73
73
  Group: import('react').ForwardRefExoticComponent<BitkitActionMenuGroupProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -12,5 +12,5 @@ export interface BitkitAlertProps extends AlertRootProps {
12
12
  titleText?: ReactNode;
13
13
  variant: AlertVariants;
14
14
  }
15
- declare const BitkitAlert: (props: BitkitAlertProps) => import("react").JSX.Element;
15
+ declare const BitkitAlert: (props: BitkitAlertProps) => import('react').JSX.Element;
16
16
  export default BitkitAlert;
@@ -18,7 +18,7 @@ declare const BitkitBreadcrumb: import('react').ForwardRefExoticComponent<Omit<B
18
18
  href: string;
19
19
  } & import('react').RefAttributes<HTMLAnchorElement>>;
20
20
  OverflowMenu: {
21
- ({ children }: OverflowMenuProps): import("react").JSX.Element;
21
+ ({ children }: OverflowMenuProps): import('react').JSX.Element;
22
22
  displayName: string;
23
23
  };
24
24
  OverflowMenuItem: import('react').ForwardRefExoticComponent<Omit<Breadcrumb.LinkProps, "href" | "children"> & {
@@ -3,7 +3,7 @@ export type OverflowMenuProps = {
3
3
  children: ReactNode;
4
4
  };
5
5
  declare const OverflowMenu: {
6
- ({ children }: OverflowMenuProps): import("react").JSX.Element;
6
+ ({ children }: OverflowMenuProps): import('react').JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export default OverflowMenu;
@@ -3,7 +3,7 @@ type OverflowMenuTriggerProps = {
3
3
  children?: ReactNode;
4
4
  };
5
5
  declare const OverflowMenuTrigger: {
6
- ({ children }: OverflowMenuTriggerProps): import("react").JSX.Element;
6
+ ({ children }: OverflowMenuTriggerProps): import('react').JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  export default OverflowMenuTrigger;
@@ -10,5 +10,5 @@ export interface CalendarContentProps {
10
10
  * The styled popover body shared by BitkitCalendar and BitkitDatePicker.
11
11
  * Renders the view controls, month grids and footer inside `DatePicker.Content`.
12
12
  */
13
- declare const CalendarContent: ({ layout, max, min, selectionMode, showSelectedDate }: CalendarContentProps) => import("react").JSX.Element;
13
+ declare const CalendarContent: ({ layout, max, min, selectionMode, showSelectedDate }: CalendarContentProps) => import('react').JSX.Element;
14
14
  export default CalendarContent;
@@ -2,5 +2,5 @@ type CalendarFooterProps = {
2
2
  selectionMode?: 'day' | 'range';
3
3
  showSelectedDate?: boolean;
4
4
  };
5
- declare const CalendarFooter: ({ selectionMode, showSelectedDate }: CalendarFooterProps) => import("react").JSX.Element | null;
5
+ declare const CalendarFooter: ({ selectionMode, showSelectedDate }: CalendarFooterProps) => import('react').JSX.Element | null;
6
6
  export default CalendarFooter;
@@ -1,4 +1,4 @@
1
1
  declare const CalendarMonth: ({ monthsIndex }: {
2
2
  monthsIndex: number;
3
- }) => import("react").JSX.Element;
3
+ }) => import('react').JSX.Element;
4
4
  export default CalendarMonth;
@@ -5,5 +5,5 @@ type CalendarMonthSelectProps = {
5
5
  min?: CalendarDate;
6
6
  max?: CalendarDate;
7
7
  };
8
- declare const CalendarMonthSelect: ({ offset, layout, min, max }: CalendarMonthSelectProps) => import("react").JSX.Element;
8
+ declare const CalendarMonthSelect: ({ offset, layout, min, max }: CalendarMonthSelectProps) => import('react').JSX.Element;
9
9
  export default CalendarMonthSelect;
@@ -1,2 +1,2 @@
1
- declare const CalendarNextTrigger: () => import("react").JSX.Element;
1
+ declare const CalendarNextTrigger: () => import('react').JSX.Element;
2
2
  export default CalendarNextTrigger;
@@ -1,2 +1,2 @@
1
- declare const CalendarPrevTrigger: () => import("react").JSX.Element;
1
+ declare const CalendarPrevTrigger: () => import('react').JSX.Element;
2
2
  export default CalendarPrevTrigger;
@@ -12,7 +12,7 @@ export interface BitkitSelectProps {
12
12
  value?: string[];
13
13
  }
14
14
  declare const CalendarSelect: {
15
- (props: BitkitSelectProps): import("react").JSX.Element;
15
+ (props: BitkitSelectProps): import('react').JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  export default CalendarSelect;
@@ -8,5 +8,5 @@ type CalendarYearSelectProps = {
8
8
  to: number;
9
9
  };
10
10
  };
11
- declare const CalendarYearSelect: ({ monthOffset, max, min, yearsRange }: CalendarYearSelectProps) => import("react").JSX.Element;
11
+ declare const CalendarYearSelect: ({ monthOffset, max, min, yearsRange }: CalendarYearSelectProps) => import('react').JSX.Element;
12
12
  export default CalendarYearSelect;
@@ -41,7 +41,7 @@ declare const _default: import('react').ForwardRefExoticComponent<Omit<BitkitFie
41
41
  value?: string;
42
42
  } & BitkitSelectMenuScrollProps & BitkitSelectMenuEmptyStateProps & import('react').RefAttributes<HTMLDivElement>> & {
43
43
  Action: {
44
- (props: import('..').BitkitSelectMenuActionProps): import("react").JSX.Element;
44
+ (props: import('..').BitkitSelectMenuActionProps): import('react').JSX.Element;
45
45
  displayName: string;
46
46
  };
47
47
  };
@@ -37,7 +37,7 @@ export interface BitkitDefinitionTooltipProps {
37
37
  * `learnMoreUrl` or `button` inside it actually clickable.
38
38
  */
39
39
  declare const BitkitDefinitionTooltip: {
40
- ({ button, children, disablePortal, learnMoreTarget, learnMoreUrl, method, placement, text, textSize, truncate, }: BitkitDefinitionTooltipProps): import("react").JSX.Element;
40
+ ({ button, children, disablePortal, learnMoreTarget, learnMoreUrl, method, placement, text, textSize, truncate, }: BitkitDefinitionTooltipProps): import('react').JSX.Element;
41
41
  displayName: string;
42
42
  };
43
43
  export default BitkitDefinitionTooltip;
@@ -31,7 +31,7 @@ export type BitkitDialogProps = {
31
31
  variant?: 'overflowContent';
32
32
  } & BitkitDataAttributes;
33
33
  declare const _default: {
34
- ({ children, dismissible, footerButtons, footerContent, headerLabel, initialFocusEl, maxHeight, onExitComplete, onOpenChange, open, preventScroll, scrollBehavior, showScrollGradient, size, state, title, trigger, variant, ...dataAttributes }: BitkitDialogProps): import("react").JSX.Element;
34
+ ({ children, dismissible, footerButtons, footerContent, headerLabel, initialFocusEl, maxHeight, onExitComplete, onOpenChange, open, preventScroll, scrollBehavior, showScrollGradient, size, state, title, trigger, variant, ...dataAttributes }: BitkitDialogProps): import('react').JSX.Element;
35
35
  displayName: string;
36
36
  } & {
37
37
  ActionTrigger: import('react').ForwardRefExoticComponent<Dialog.ActionTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -46,12 +46,12 @@ export type BitkitStepsDialogProps = {
46
46
  variant?: 'overflowContent';
47
47
  } & BitkitDataAttributes;
48
48
  declare const _default: {
49
- ({ children, defaultStep, dismissible, initialFocusEl, footerButtons, footerContent, headerLabel, maxHeight, onExitComplete, onOpenChange, onStepChange, open, preventScroll, scrollBehavior, showScrollGradient, size, state, step: stepProp, title, trigger, variant, ...dataAttributes }: BitkitStepsDialogProps): import("react").JSX.Element;
49
+ ({ children, defaultStep, dismissible, initialFocusEl, footerButtons, footerContent, headerLabel, maxHeight, onExitComplete, onOpenChange, onStepChange, open, preventScroll, scrollBehavior, showScrollGradient, size, state, step: stepProp, title, trigger, variant, ...dataAttributes }: BitkitStepsDialogProps): import('react').JSX.Element;
50
50
  displayName: string;
51
51
  } & {
52
52
  ActionTrigger: import('react').ForwardRefExoticComponent<Dialog.ActionTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
53
53
  Step: {
54
- ({ children, description, title }: BitkitStepsDialogStepProps): import("react").JSX.Element;
54
+ ({ children, description, title }: BitkitStepsDialogStepProps): import('react').JSX.Element;
55
55
  displayName: string;
56
56
  };
57
57
  };
@@ -14,7 +14,7 @@ export interface BitkitStepsDialogStepProps {
14
14
  * followed by `children`. The parent only mounts the active step, so this never self-gates.
15
15
  */
16
16
  declare const BitkitStepsDialogStep: {
17
- ({ children, description, title }: BitkitStepsDialogStepProps): import("react").JSX.Element;
17
+ ({ children, description, title }: BitkitStepsDialogStepProps): import('react').JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  export default BitkitStepsDialogStep;
@@ -9,5 +9,5 @@ export declare const resolveScrollBehavior: (variant: "overflowContent" | undefi
9
9
  * Scroll-aware dialog body. Reads {@link DialogBodyContext} to decide whether the body scrolls
10
10
  * internally (`inside` → scroll button + optional gradient) or the whole dialog scrolls (`outside`).
11
11
  */
12
- declare const DialogBody: ({ children, ...rest }: Dialog.BodyProps) => import("react").JSX.Element;
12
+ declare const DialogBody: ({ children, ...rest }: Dialog.BodyProps) => import('react').JSX.Element;
13
13
  export default DialogBody;
@@ -22,5 +22,5 @@ export interface DialogInnerProps {
22
22
  * standard right-aligned button row, which carries the design's 24px gap above the actions; both
23
23
  * render in the same `Dialog.Footer` (content first); if neither is set, no footer renders.
24
24
  */
25
- declare const DialogInner: ({ children, dismissible, footerButtons, footerContent, headerExtra, headerLabel, scrollBehavior: scrollBehaviorProp, showScrollGradient, state, title, variant, }: DialogInnerProps) => import("react").JSX.Element;
25
+ declare const DialogInner: ({ children, dismissible, footerButtons, footerContent, headerExtra, headerLabel, scrollBehavior: scrollBehaviorProp, showScrollGradient, state, title, variant, }: DialogInnerProps) => import('react').JSX.Element;
26
26
  export default DialogInner;
@@ -28,5 +28,5 @@ export interface DialogShellProps {
28
28
  * to block every route out disables that button itself.
29
29
  * The caller passes the `Dialog.Content` (or a `Dialog.Content asChild` wrapper) as children.
30
30
  **/
31
- declare const DialogShell: ({ children, dismissible, initialFocusEl, onExitComplete, onOpenChange, open, preventScroll, scrollBehavior: scrollBehaviorProp, size, state, trigger, variant, }: DialogShellProps) => import("react").JSX.Element;
31
+ declare const DialogShell: ({ children, dismissible, initialFocusEl, onExitComplete, onOpenChange, open, preventScroll, scrollBehavior: scrollBehaviorProp, size, state, trigger, variant, }: DialogShellProps) => import('react').JSX.Element;
32
32
  export default DialogShell;
@@ -7,5 +7,5 @@ export interface BitkitEmptyStateProps extends EmptyStateRootProps {
7
7
  icon: BitkitIconComponent;
8
8
  loading?: boolean;
9
9
  }
10
- declare const BitkitEmptyState: (props: BitkitEmptyStateProps) => import("react").JSX.Element;
10
+ declare const BitkitEmptyState: (props: BitkitEmptyStateProps) => import('react').JSX.Element;
11
11
  export default BitkitEmptyState;
@@ -25,6 +25,7 @@ export type BitkitExpandableCardProps = Omit<BoxProps, 'asChild' | 'children' |
25
25
  footer?: ReactNode;
26
26
  icon?: BitkitIconComponent | ReactElement<BitkitAvatarProps>;
27
27
  iconColor?: string;
28
+ noPadding?: boolean;
28
29
  size?: 'md' | 'lg';
29
30
  subtitle?: ReactNode;
30
31
  suffix?: ReactNode;
@@ -9,8 +9,11 @@ import { Collapsible } from "@chakra-ui/react/collapsible";
9
9
  import { Card } from "@chakra-ui/react/card";
10
10
  //#region lib/components/BitkitExpandableCard/BitkitExpandableCard.tsx
11
11
  var BitkitExpandableCard = forwardRef((props, ref) => {
12
- const { children, collapsedHeight, collapsedWidth, css, defaultExpanded, disabled, elevation = true, expanded, footer, hideMode, icon, iconColor, ids, lazyMount, onChange, onExitComplete, size = "lg", subtitle, suffix, title, unmountOnExit, ...rest } = props;
13
- const styles = useSlotRecipe({ key: "expandableCard" })({ size });
12
+ const { children, collapsedHeight, collapsedWidth, css, defaultExpanded, disabled, elevation = true, expanded, footer, hideMode, icon, iconColor, ids, lazyMount, noPadding = false, onChange, onExitComplete, size = "lg", subtitle, suffix, title, unmountOnExit, ...rest } = props;
13
+ const styles = useSlotRecipe({ key: "expandableCard" })({
14
+ noPadding,
15
+ size
16
+ });
14
17
  const handleOpenChange = onChange ? (details) => onChange(details.open) : void 0;
15
18
  const iconSize = size === "md" ? "16" : "24";
16
19
  let renderedSuffix = suffix;
@@ -44,14 +47,14 @@ var BitkitExpandableCard = forwardRef((props, ref) => {
44
47
  children: [/* @__PURE__ */ jsxs(Box, {
45
48
  display: "flex",
46
49
  alignItems: "center",
50
+ flex: "1",
47
51
  gap: "8",
52
+ minWidth: "0",
48
53
  children: [!!renderedIcon && /* @__PURE__ */ jsx(Box, {
49
54
  css: styles.icon,
50
55
  children: renderedIcon
51
56
  }), /* @__PURE__ */ jsxs(Box, {
52
- display: "flex",
53
- alignItems: "flex-start",
54
- flexDirection: "column",
57
+ css: styles.title,
55
58
  children: [title, !!subtitle && /* @__PURE__ */ jsx(Text, {
56
59
  as: "span",
57
60
  css: styles.subtitle,
@@ -61,6 +64,7 @@ var BitkitExpandableCard = forwardRef((props, ref) => {
61
64
  }), /* @__PURE__ */ jsxs(Box, {
62
65
  display: "flex",
63
66
  alignItems: "center",
67
+ flexShrink: "0",
64
68
  children: [!!renderedSuffix && /* @__PURE__ */ jsx(Text, {
65
69
  as: "span",
66
70
  css: styles.suffix,
@@ -72,7 +76,10 @@ var BitkitExpandableCard = forwardRef((props, ref) => {
72
76
  })]
73
77
  }), /* @__PURE__ */ jsxs(Collapsible.Content, {
74
78
  css: styles.collapsible,
75
- children: [/* @__PURE__ */ jsx(Card.Body, { children }), !!footer && /* @__PURE__ */ jsx(Card.Footer, {
79
+ children: [/* @__PURE__ */ jsx(Card.Body, {
80
+ css: styles.body,
81
+ children
82
+ }), !!footer && /* @__PURE__ */ jsx(Card.Footer, {
76
83
  css: styles.footer,
77
84
  children: footer
78
85
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"BitkitExpandableCard.js","names":[],"sources":["../../../lib/components/BitkitExpandableCard/BitkitExpandableCard.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { Card } from '@chakra-ui/react/card';\nimport { Collapsible, type CollapsibleRootProps } from '@chakra-ui/react/collapsible';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { Text } from '@chakra-ui/react/text';\nimport { cloneElement, forwardRef, isValidElement, type ReactElement, type ReactNode } from 'react';\n\nimport { type BitkitIconComponent } from '../../icons';\nimport AssetSelectChevron from '../../utilities/AssetSelectChevron';\nimport { type BitkitAvatarProps } from '../BitkitAvatar/BitkitAvatar';\nimport BitkitBadge, { type BitkitBadgeProps } from '../BitkitBadge/BitkitBadge';\n\ntype UncontrolledProps = {\n defaultExpanded?: boolean;\n expanded?: never;\n onChange?: never;\n};\n\ntype ControlledProps = {\n defaultExpanded?: never;\n expanded: boolean;\n onChange: (expanded: boolean) => void;\n};\n\n/**\n * Zag/Ark machine props. They drive the inner `Collapsible.Root` and mean nothing on the card\n * element, so they're forwarded by name rather than left in `...rest` — which belongs to the\n * rendered root (`Card.Root`) so consumer style props reach the card itself.\n */\ntype CollapsibleMachineProps = Pick<\n CollapsibleRootProps,\n | 'collapsedHeight'\n | 'collapsedWidth'\n | 'disabled'\n | 'hideMode'\n | 'ids'\n | 'lazyMount'\n | 'onExitComplete'\n | 'unmountOnExit'\n>;\n\nexport type BitkitExpandableCardProps = Omit<BoxProps, 'asChild' | 'children' | 'onChange' | 'title'> &\n CollapsibleMachineProps & {\n children: ReactNode;\n elevation?: boolean;\n footer?: ReactNode;\n icon?: BitkitIconComponent | ReactElement<BitkitAvatarProps>;\n iconColor?: string;\n size?: 'md' | 'lg';\n subtitle?: ReactNode;\n suffix?: ReactNode;\n title: ReactNode;\n } & (UncontrolledProps | ControlledProps);\n\nconst BitkitExpandableCard = forwardRef<HTMLDivElement, BitkitExpandableCardProps>((props, ref) => {\n const {\n children,\n collapsedHeight,\n collapsedWidth,\n css,\n defaultExpanded,\n disabled,\n elevation = true,\n expanded,\n footer,\n hideMode,\n icon,\n iconColor,\n ids,\n lazyMount,\n onChange,\n onExitComplete,\n size = 'lg',\n subtitle,\n suffix,\n title,\n unmountOnExit,\n ...rest\n } = props;\n\n const recipe = useSlotRecipe({ key: 'expandableCard' });\n const styles = recipe({ size });\n\n const handleOpenChange = onChange ? (details: { open: boolean }) => onChange(details.open) : undefined;\n\n // `md` is the tested branch so the default size ('lg') stays on the fallback.\n const iconSize = size === 'md' ? '16' : '24';\n\n // Figma sizes the header badge with the card: xs on md, sm (the badge default) on lg.\n let renderedSuffix: ReactNode = suffix;\n if (isValidElement<BitkitBadgeProps>(suffix) && suffix.type === BitkitBadge) {\n renderedSuffix = cloneElement(suffix, { size: size === 'md' ? 'xs' : 'sm' });\n }\n\n let renderedIcon: ReactNode = null;\n if (isValidElement<BitkitAvatarProps>(icon)) {\n // BitkitAvatar has no '16' size, so avatars stay at '24' even on the md card.\n renderedIcon = cloneElement(icon, { size: '24' });\n } else if (icon) {\n const Icon = icon;\n renderedIcon = <Icon color={iconColor} size={iconSize} />;\n }\n\n return (\n <Card.Root ref={ref} elevation={elevation} paddingSize=\"sm\" css={[styles.root, css]} {...rest}>\n <Collapsible.Root\n collapsedHeight={collapsedHeight}\n collapsedWidth={collapsedWidth}\n defaultOpen={defaultExpanded}\n disabled={disabled}\n hideMode={hideMode}\n ids={ids}\n lazyMount={lazyMount}\n onExitComplete={onExitComplete}\n onOpenChange={handleOpenChange}\n open={expanded}\n unmountOnExit={unmountOnExit}\n >\n <Collapsible.Trigger css={styles.header}>\n <Box display=\"flex\" alignItems=\"center\" gap=\"8\">\n {!!renderedIcon && <Box css={styles.icon}>{renderedIcon}</Box>}\n <Box display=\"flex\" alignItems=\"flex-start\" flexDirection=\"column\">\n {title}\n {!!subtitle && (\n <Text as=\"span\" css={styles.subtitle}>\n {subtitle}\n </Text>\n )}\n </Box>\n </Box>\n <Box display=\"flex\" alignItems=\"center\">\n {!!renderedSuffix && (\n <Text as=\"span\" css={styles.suffix}>\n {renderedSuffix}\n </Text>\n )}\n <Collapsible.Indicator asChild>\n <AssetSelectChevron />\n </Collapsible.Indicator>\n </Box>\n </Collapsible.Trigger>\n <Collapsible.Content css={styles.collapsible}>\n <Card.Body>{children}</Card.Body>\n {!!footer && <Card.Footer css={styles.footer}>{footer}</Card.Footer>}\n </Collapsible.Content>\n </Collapsible.Root>\n </Card.Root>\n );\n});\n\nBitkitExpandableCard.displayName = 'BitkitExpandableCard';\n\nexport default BitkitExpandableCard;\n"],"mappings":";;;;;;;;;;AAsDA,IAAM,uBAAuB,YAAuD,OAAO,QAAQ;CACjG,MAAM,EACJ,UACA,iBACA,gBACA,KACA,iBACA,UACA,YAAY,MACZ,UACA,QACA,UACA,MACA,WACA,KACA,WACA,UACA,gBACA,OAAO,MACP,UACA,QACA,OACA,eACA,GAAG,SACD;CAGJ,MAAM,SADS,cAAc,EAAE,KAAK,iBAAiB,CACtC,CAAA,CAAO,EAAE,KAAK,CAAC;CAE9B,MAAM,mBAAmB,YAAY,YAA+B,SAAS,QAAQ,IAAI,IAAI,KAAA;CAG7F,MAAM,WAAW,SAAS,OAAO,OAAO;CAGxC,IAAI,iBAA4B;CAChC,IAAI,eAAiC,MAAM,KAAK,OAAO,SAAS,aAC9D,iBAAiB,aAAa,QAAQ,EAAE,MAAM,SAAS,OAAO,OAAO,KAAK,CAAC;CAG7E,IAAI,eAA0B;CAC9B,IAAI,eAAkC,IAAI,GAExC,eAAe,aAAa,MAAM,EAAE,MAAM,KAAK,CAAC;MAC3C,IAAI,MAET,eAAe,oBAAC,MAAD;EAAM,OAAO;EAAW,MAAM;CAAW,CAAA;CAG1D,OACE,oBAAC,KAAK,MAAN;EAAgB;EAAgB;EAAW,aAAY;EAAK,KAAK,CAAC,OAAO,MAAM,GAAG;EAAG,GAAI;EACvF,UAAA,qBAAC,YAAY,MAAb;GACmB;GACD;GAChB,aAAa;GACH;GACA;GACL;GACM;GACK;GAChB,cAAc;GACd,MAAM;GACS;GAXjB,UAAA,CAaE,qBAAC,YAAY,SAAb;IAAqB,KAAK,OAAO;IAAjC,UAAA,CACE,qBAAC,KAAD;KAAK,SAAQ;KAAO,YAAW;KAAS,KAAI;KAA5C,UAAA,CACG,CAAC,CAAC,gBAAgB,oBAAC,KAAD;MAAK,KAAK,OAAO;MAAO,UAAA;KAAkB,CAAA,GAC7D,qBAAC,KAAD;MAAK,SAAQ;MAAO,YAAW;MAAa,eAAc;MAA1D,UAAA,CACG,OACA,CAAC,CAAC,YACD,oBAAC,MAAD;OAAM,IAAG;OAAO,KAAK,OAAO;OACzB,UAAA;MACG,CAAA,CAEL;KACF,CAAA,CAAA;IACL,CAAA,GAAA,qBAAC,KAAD;KAAK,SAAQ;KAAO,YAAW;KAA/B,UAAA,CACG,CAAC,CAAC,kBACD,oBAAC,MAAD;MAAM,IAAG;MAAO,KAAK,OAAO;MACzB,UAAA;KACG,CAAA,GAER,oBAAC,YAAY,WAAb;MAAuB,SAAA;MACrB,UAAA,oBAAC,oBAAD,CAAqB,CAAA;KACA,CAAA,CACpB;IACc,CAAA,CAAA;GACrB,CAAA,GAAA,qBAAC,YAAY,SAAb;IAAqB,KAAK,OAAO;IAAjC,UAAA,CACE,oBAAC,KAAK,MAAN,EAAY,SAAoB,CAAA,GAC/B,CAAC,CAAC,UAAU,oBAAC,KAAK,QAAN;KAAa,KAAK,OAAO;KAAS,UAAA;IAAoB,CAAA,CAChD;GACL,CAAA,CAAA;;CACT,CAAA;AAEf,CAAC;AAED,qBAAqB,cAAc"}
1
+ {"version":3,"file":"BitkitExpandableCard.js","names":[],"sources":["../../../lib/components/BitkitExpandableCard/BitkitExpandableCard.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { Card } from '@chakra-ui/react/card';\nimport { Collapsible, type CollapsibleRootProps } from '@chakra-ui/react/collapsible';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { Text } from '@chakra-ui/react/text';\nimport { cloneElement, forwardRef, isValidElement, type ReactElement, type ReactNode } from 'react';\n\nimport { type BitkitIconComponent } from '../../icons';\nimport AssetSelectChevron from '../../utilities/AssetSelectChevron';\nimport { type BitkitAvatarProps } from '../BitkitAvatar/BitkitAvatar';\nimport BitkitBadge, { type BitkitBadgeProps } from '../BitkitBadge/BitkitBadge';\n\ntype UncontrolledProps = {\n defaultExpanded?: boolean;\n expanded?: never;\n onChange?: never;\n};\n\ntype ControlledProps = {\n defaultExpanded?: never;\n expanded: boolean;\n onChange: (expanded: boolean) => void;\n};\n\n/**\n * Zag/Ark machine props. They drive the inner `Collapsible.Root` and mean nothing on the card\n * element, so they're forwarded by name rather than left in `...rest` — which belongs to the\n * rendered root (`Card.Root`) so consumer style props reach the card itself.\n */\ntype CollapsibleMachineProps = Pick<\n CollapsibleRootProps,\n | 'collapsedHeight'\n | 'collapsedWidth'\n | 'disabled'\n | 'hideMode'\n | 'ids'\n | 'lazyMount'\n | 'onExitComplete'\n | 'unmountOnExit'\n>;\n\nexport type BitkitExpandableCardProps = Omit<BoxProps, 'asChild' | 'children' | 'onChange' | 'title'> &\n CollapsibleMachineProps & {\n children: ReactNode;\n elevation?: boolean;\n footer?: ReactNode;\n icon?: BitkitIconComponent | ReactElement<BitkitAvatarProps>;\n iconColor?: string;\n noPadding?: boolean;\n size?: 'md' | 'lg';\n subtitle?: ReactNode;\n suffix?: ReactNode;\n title: ReactNode;\n } & (UncontrolledProps | ControlledProps);\n\nconst BitkitExpandableCard = forwardRef<HTMLDivElement, BitkitExpandableCardProps>((props, ref) => {\n const {\n children,\n collapsedHeight,\n collapsedWidth,\n css,\n defaultExpanded,\n disabled,\n elevation = true,\n expanded,\n footer,\n hideMode,\n icon,\n iconColor,\n ids,\n lazyMount,\n noPadding = false,\n onChange,\n onExitComplete,\n size = 'lg',\n subtitle,\n suffix,\n title,\n unmountOnExit,\n ...rest\n } = props;\n\n const recipe = useSlotRecipe({ key: 'expandableCard' });\n const styles = recipe({ noPadding, size });\n\n const handleOpenChange = onChange ? (details: { open: boolean }) => onChange(details.open) : undefined;\n\n // `md` is the tested branch so the default size ('lg') stays on the fallback.\n const iconSize = size === 'md' ? '16' : '24';\n\n // Figma sizes the header badge with the card: xs on md, sm (the badge default) on lg.\n let renderedSuffix: ReactNode = suffix;\n if (isValidElement<BitkitBadgeProps>(suffix) && suffix.type === BitkitBadge) {\n renderedSuffix = cloneElement(suffix, { size: size === 'md' ? 'xs' : 'sm' });\n }\n\n let renderedIcon: ReactNode = null;\n if (isValidElement<BitkitAvatarProps>(icon)) {\n // BitkitAvatar has no '16' size, so avatars stay at '24' even on the md card.\n renderedIcon = cloneElement(icon, { size: '24' });\n } else if (icon) {\n const Icon = icon;\n renderedIcon = <Icon color={iconColor} size={iconSize} />;\n }\n\n return (\n <Card.Root ref={ref} elevation={elevation} paddingSize=\"sm\" css={[styles.root, css]} {...rest}>\n <Collapsible.Root\n collapsedHeight={collapsedHeight}\n collapsedWidth={collapsedWidth}\n defaultOpen={defaultExpanded}\n disabled={disabled}\n hideMode={hideMode}\n ids={ids}\n lazyMount={lazyMount}\n onExitComplete={onExitComplete}\n onOpenChange={handleOpenChange}\n open={expanded}\n unmountOnExit={unmountOnExit}\n >\n <Collapsible.Trigger css={styles.header}>\n <Box display=\"flex\" alignItems=\"center\" flex=\"1\" gap=\"8\" minWidth=\"0\">\n {!!renderedIcon && <Box css={styles.icon}>{renderedIcon}</Box>}\n <Box css={styles.title}>\n {title}\n {!!subtitle && (\n <Text as=\"span\" css={styles.subtitle}>\n {subtitle}\n </Text>\n )}\n </Box>\n </Box>\n <Box display=\"flex\" alignItems=\"center\" flexShrink=\"0\">\n {!!renderedSuffix && (\n <Text as=\"span\" css={styles.suffix}>\n {renderedSuffix}\n </Text>\n )}\n <Collapsible.Indicator asChild>\n <AssetSelectChevron />\n </Collapsible.Indicator>\n </Box>\n </Collapsible.Trigger>\n <Collapsible.Content css={styles.collapsible}>\n <Card.Body css={styles.body}>{children}</Card.Body>\n {!!footer && <Card.Footer css={styles.footer}>{footer}</Card.Footer>}\n </Collapsible.Content>\n </Collapsible.Root>\n </Card.Root>\n );\n});\n\nBitkitExpandableCard.displayName = 'BitkitExpandableCard';\n\nexport default BitkitExpandableCard;\n"],"mappings":";;;;;;;;;;AAuDA,IAAM,uBAAuB,YAAuD,OAAO,QAAQ;CACjG,MAAM,EACJ,UACA,iBACA,gBACA,KACA,iBACA,UACA,YAAY,MACZ,UACA,QACA,UACA,MACA,WACA,KACA,WACA,YAAY,OACZ,UACA,gBACA,OAAO,MACP,UACA,QACA,OACA,eACA,GAAG,SACD;CAGJ,MAAM,SADS,cAAc,EAAE,KAAK,iBAAiB,CACtC,CAAA,CAAO;EAAE;EAAW;CAAK,CAAC;CAEzC,MAAM,mBAAmB,YAAY,YAA+B,SAAS,QAAQ,IAAI,IAAI,KAAA;CAG7F,MAAM,WAAW,SAAS,OAAO,OAAO;CAGxC,IAAI,iBAA4B;CAChC,IAAI,eAAiC,MAAM,KAAK,OAAO,SAAS,aAC9D,iBAAiB,aAAa,QAAQ,EAAE,MAAM,SAAS,OAAO,OAAO,KAAK,CAAC;CAG7E,IAAI,eAA0B;CAC9B,IAAI,eAAkC,IAAI,GAExC,eAAe,aAAa,MAAM,EAAE,MAAM,KAAK,CAAC;MAC3C,IAAI,MAET,eAAe,oBAAC,MAAD;EAAM,OAAO;EAAW,MAAM;CAAW,CAAA;CAG1D,OACE,oBAAC,KAAK,MAAN;EAAgB;EAAgB;EAAW,aAAY;EAAK,KAAK,CAAC,OAAO,MAAM,GAAG;EAAG,GAAI;EACvF,UAAA,qBAAC,YAAY,MAAb;GACmB;GACD;GAChB,aAAa;GACH;GACA;GACL;GACM;GACK;GAChB,cAAc;GACd,MAAM;GACS;GAXjB,UAAA,CAaE,qBAAC,YAAY,SAAb;IAAqB,KAAK,OAAO;IAAjC,UAAA,CACE,qBAAC,KAAD;KAAK,SAAQ;KAAO,YAAW;KAAS,MAAK;KAAI,KAAI;KAAI,UAAS;KAAlE,UAAA,CACG,CAAC,CAAC,gBAAgB,oBAAC,KAAD;MAAK,KAAK,OAAO;MAAO,UAAA;KAAkB,CAAA,GAC7D,qBAAC,KAAD;MAAK,KAAK,OAAO;MAAjB,UAAA,CACG,OACA,CAAC,CAAC,YACD,oBAAC,MAAD;OAAM,IAAG;OAAO,KAAK,OAAO;OACzB,UAAA;MACG,CAAA,CAEL;KACF,CAAA,CAAA;IACL,CAAA,GAAA,qBAAC,KAAD;KAAK,SAAQ;KAAO,YAAW;KAAS,YAAW;KAAnD,UAAA,CACG,CAAC,CAAC,kBACD,oBAAC,MAAD;MAAM,IAAG;MAAO,KAAK,OAAO;MACzB,UAAA;KACG,CAAA,GAER,oBAAC,YAAY,WAAb;MAAuB,SAAA;MACrB,UAAA,oBAAC,oBAAD,CAAqB,CAAA;KACA,CAAA,CACpB;IACc,CAAA,CAAA;GACrB,CAAA,GAAA,qBAAC,YAAY,SAAb;IAAqB,KAAK,OAAO;IAAjC,UAAA,CACE,oBAAC,KAAK,MAAN;KAAW,KAAK,OAAO;KAAO;IAAoB,CAAA,GACjD,CAAC,CAAC,UAAU,oBAAC,KAAK,QAAN;KAAa,KAAK,OAAO;KAAS,UAAA;IAAoB,CAAA,CAChD;GACL,CAAA,CAAA;;CACT,CAAA;AAEf,CAAC;AAED,qBAAqB,cAAc"}
@@ -26,7 +26,7 @@ export type BitkitLabelTooltipProps = {
26
26
  * Dialogs turn that off through `BitkitPortalContext`; `disablePortal` is the manual override.
27
27
  */
28
28
  declare const BitkitLabelTooltip: {
29
- ({ children, disablePortal, disabled, placement, text, }: BitkitLabelTooltipProps): import("react").JSX.Element;
29
+ ({ children, disablePortal, disabled, placement, text, }: BitkitLabelTooltipProps): import('react').JSX.Element;
30
30
  displayName: string;
31
31
  };
32
32
  export default BitkitLabelTooltip;
@@ -24,7 +24,7 @@ export interface BitkitLightboxProps {
24
24
  * overlay (outside) click both dismiss it — Chakra's `Dialog.Root` default, so it isn't overridden.
25
25
  */
26
26
  declare const BitkitLightbox: {
27
- ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, children, onOpenChange, open, size, trigger, }: BitkitLightboxProps): import("react").JSX.Element;
27
+ ({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, children, onOpenChange, open, size, trigger, }: BitkitLightboxProps): import('react').JSX.Element;
28
28
  displayName: string;
29
29
  };
30
30
  export default BitkitLightbox;
@@ -39,7 +39,7 @@ declare const _default: import('react').ForwardRefExoticComponent<Omit<BitkitFie
39
39
  value?: Array<string>;
40
40
  } & BitkitSelectMenuSearchProps & BitkitSelectMenuScrollProps & BitkitSelectMenuEmptyStateProps & import('react').RefAttributes<HTMLDivElement>> & {
41
41
  Action: {
42
- (props: import('..').BitkitSelectMenuActionProps): import("react").JSX.Element;
42
+ (props: import('..').BitkitSelectMenuActionProps): import('react').JSX.Element;
43
43
  displayName: string;
44
44
  };
45
45
  };
@@ -25,7 +25,7 @@ export type BitkitOverflowTooltipProps = {
25
25
  * `disablePortal` is the manual override.
26
26
  */
27
27
  declare const BitkitOverflowTooltip: {
28
- ({ children, disablePortal, disabled, placement, text, }: BitkitOverflowTooltipProps): import("react").JSX.Element;
28
+ ({ children, disablePortal, disabled, placement, text, }: BitkitOverflowTooltipProps): import('react').JSX.Element;
29
29
  displayName: string;
30
30
  };
31
31
  export default BitkitOverflowTooltip;
@@ -25,7 +25,7 @@ export interface BitkitPopoverProps {
25
25
  * `positioning.getAnchorElement`.
26
26
  */
27
27
  declare const BitkitPopover: {
28
- ({ children, title, footer, trigger, open, defaultOpen, onOpenChange, positioning, persistentElements, }: BitkitPopoverProps): import("react").JSX.Element;
28
+ ({ children, title, footer, trigger, open, defaultOpen, onOpenChange, positioning, persistentElements, }: BitkitPopoverProps): import('react').JSX.Element;
29
29
  displayName: string;
30
30
  };
31
31
  export default BitkitPopover;
@@ -12,7 +12,7 @@ export interface BitkitPromoBannerProps extends Omit<AlertRootProps, 'title' | '
12
12
  title: ReactNode;
13
13
  }
14
14
  declare const BitkitPromoBanner: {
15
- (props: BitkitPromoBannerProps): import("react").JSX.Element;
15
+ (props: BitkitPromoBannerProps): import('react').JSX.Element;
16
16
  displayName: string;
17
17
  };
18
18
  export default BitkitPromoBanner;
@@ -32,7 +32,7 @@ declare const _default: import('react').ForwardRefExoticComponent<Omit<BitkitFie
32
32
  value?: string;
33
33
  } & BitkitSelectMenuSearchProps & BitkitSelectMenuScrollProps & BitkitSelectMenuEmptyStateProps & import('react').RefAttributes<HTMLDivElement>> & {
34
34
  Action: {
35
- (props: import('../index.ts').BitkitSelectMenuActionProps): import("react").JSX.Element;
35
+ (props: import('../index.ts').BitkitSelectMenuActionProps): import('react').JSX.Element;
36
36
  displayName: string;
37
37
  };
38
38
  };
@@ -38,7 +38,7 @@ type SelectMenuShellContext = {
38
38
  declare const SelectMenuShellContextProvider: import('react').Provider<SelectMenuShellContext>;
39
39
  export { SelectMenuShellContextProvider };
40
40
  declare const BitkitSelectMenuAction: {
41
- (props: BitkitSelectMenuActionProps): import("react").JSX.Element;
41
+ (props: BitkitSelectMenuActionProps): import('react').JSX.Element;
42
42
  displayName: string;
43
43
  };
44
44
  export default BitkitSelectMenuAction;
@@ -42,4 +42,4 @@ export type SelectMenuShellProps<T extends {
42
42
  export declare const SelectMenuShell: <T extends {
43
43
  value: string;
44
44
  group?: string;
45
- }>({ NS, children, collection, contentProps, contentRef, emptyHelperText, emptyLabel, iconSize, isLoading, onScrolledToBottom, onSearchChange, renderItem, searchValue, spinnerSize, styles, }: SelectMenuShellProps<T>) => import("react").JSX.Element;
45
+ }>({ NS, children, collection, contentProps, contentRef, emptyHelperText, emptyLabel, iconSize, isLoading, onScrolledToBottom, onSearchChange, renderItem, searchValue, spinnerSize, styles, }: SelectMenuShellProps<T>) => import('react').JSX.Element;
@@ -23,7 +23,7 @@ declare const _default: import('react').ForwardRefExoticComponent<BitkitStepsCar
23
23
  Footer: import('react').ForwardRefExoticComponent<BitkitStepsCardFooterProps & import('react').RefAttributes<HTMLDivElement>>;
24
24
  Header: import('react').ForwardRefExoticComponent<BitkitStepsCardHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
25
25
  Step: {
26
- (props: BitkitStepsCardStepProps): import("react").JSX.Element | null;
26
+ (props: BitkitStepsCardStepProps): import('react').JSX.Element | null;
27
27
  displayName: string;
28
28
  };
29
29
  };
@@ -1,3 +1,3 @@
1
1
  import { BitkitSwitchDynamicTextProps } from '../BitkitSwitch.types';
2
- declare const BitkitSwitchHelperText: ({ state, helperText }: Pick<BitkitSwitchDynamicTextProps, "state" | "helperText">) => import("react").JSX.Element | null;
2
+ declare const BitkitSwitchHelperText: ({ state, helperText }: Pick<BitkitSwitchDynamicTextProps, "state" | "helperText">) => import('react').JSX.Element | null;
3
3
  export default BitkitSwitchHelperText;
@@ -3,5 +3,5 @@ import { BitkitSwitchDynamicTextProps } from '../BitkitSwitch.types';
3
3
  type Props = Pick<BitkitSwitchDynamicTextProps, 'label' | 'state' | 'tooltip' | 'optional'> & {
4
4
  icon?: BitkitIconComponent;
5
5
  };
6
- declare const BitkitSwitchLabel: ({ label, state, tooltip, optional, icon: Icon }: Props) => import("react").JSX.Element | null;
6
+ declare const BitkitSwitchLabel: ({ label, state, tooltip, optional, icon: Icon }: Props) => import('react').JSX.Element | null;
7
7
  export default BitkitSwitchLabel;
@@ -1,4 +1,4 @@
1
1
  import { BitkitSwitchProps } from '../BitkitSwitch.types';
2
2
  type Props = Pick<BitkitSwitchProps, 'state' | 'children'>;
3
- declare const BitkitSwitchReadOnly: ({ state, children }: Props) => string | number | boolean | Iterable<import('react').ReactNode> | import("react").JSX.Element | null | undefined;
3
+ declare const BitkitSwitchReadOnly: ({ state, children }: Props) => string | number | boolean | Iterable<import('react').ReactNode> | import('react').JSX.Element | null | undefined;
4
4
  export default BitkitSwitchReadOnly;
@@ -1,3 +1,3 @@
1
1
  import { BitkitSwitchDynamicTextProps } from '../BitkitSwitch.types';
2
- declare const BitkitSwitchValueText: ({ size, state, valueText, }: Pick<BitkitSwitchDynamicTextProps, "size" | "state" | "valueText">) => import("react").JSX.Element | null;
2
+ declare const BitkitSwitchValueText: ({ size, state, valueText, }: Pick<BitkitSwitchDynamicTextProps, "size" | "state" | "valueText">) => import('react').JSX.Element | null;
3
3
  export default BitkitSwitchValueText;
@@ -6,5 +6,5 @@ export interface BitkitTagProps extends TagRootProps {
6
6
  onRemove?: () => void;
7
7
  state?: 'disabled' | 'skeleton';
8
8
  }
9
- declare const BitkitTag: (props: BitkitTagProps) => import("react").JSX.Element;
9
+ declare const BitkitTag: (props: BitkitTagProps) => import('react').JSX.Element;
10
10
  export default BitkitTag;
@@ -1,2 +1,2 @@
1
- declare const BitkitToaster: () => import("react").JSX.Element;
1
+ declare const BitkitToaster: () => import('react').JSX.Element;
2
2
  export default BitkitToaster;
@@ -77,7 +77,7 @@ export type BitkitTooltipProps = {
77
77
  * the manual override.
78
78
  */
79
79
  declare const BitkitTooltip: {
80
- ({ button, children, closeOnClick, disablePortal, disabled, icon: Icon, learnMoreTarget, learnMoreUrl, onOpenChange, open, openDelay, placement, text, wrapTrigger, }: BitkitTooltipProps): import("react").JSX.Element;
80
+ ({ button, children, closeOnClick, disablePortal, disabled, icon: Icon, learnMoreTarget, learnMoreUrl, onOpenChange, open, openDelay, placement, text, wrapTrigger, }: BitkitTooltipProps): import('react').JSX.Element;
81
81
  displayName: string;
82
82
  };
83
83
  export default BitkitTooltip;
@@ -108,7 +108,7 @@ export declare const useBitkitTour: (options: BitkitTourOptions) => BitkitTourIn
108
108
  * turns the card into the single-feature presentation.
109
109
  */
110
110
  declare const BitkitTour: {
111
- ({ tour }: BitkitTourProps): import("react").JSX.Element;
111
+ ({ tour }: BitkitTourProps): import('react').JSX.Element;
112
112
  displayName: string;
113
113
  };
114
114
  export default BitkitTour;
@@ -11,5 +11,5 @@ export interface NotificationContentProps {
11
11
  stackable?: boolean;
12
12
  titleText?: ReactNode;
13
13
  }
14
- export declare const NotificationContent: ({ action, colorVariant, dismissible, messageText, onClose, stackable, titleText, }: NotificationContentProps) => import("react").JSX.Element;
14
+ export declare const NotificationContent: ({ action, colorVariant, dismissible, messageText, onClose, stackable, titleText, }: NotificationContentProps) => import('react').JSX.Element;
15
15
  export {};
@@ -1,2 +1,2 @@
1
- declare const ColorsBasePage: () => import("react").JSX.Element;
1
+ declare const ColorsBasePage: () => import('react').JSX.Element;
2
2
  export default ColorsBasePage;
@@ -1,2 +1,2 @@
1
- declare const ColorsComponentPage: () => import("react").JSX.Element;
1
+ declare const ColorsComponentPage: () => import('react').JSX.Element;
2
2
  export default ColorsComponentPage;
@@ -1,2 +1,2 @@
1
- declare const ColorsSystemPage: () => import("react").JSX.Element;
1
+ declare const ColorsSystemPage: () => import('react').JSX.Element;
2
2
  export default ColorsSystemPage;
@@ -1 +1 @@
1
- export declare const IconsPage: () => import("react").JSX.Element;
1
+ export declare const IconsPage: () => import('react').JSX.Element;
@@ -1,2 +1,2 @@
1
- declare const RadiiPage: () => import("react").JSX.Element;
1
+ declare const RadiiPage: () => import('react').JSX.Element;
2
2
  export default RadiiPage;
@@ -1,2 +1,2 @@
1
- declare const ShadowsPage: () => import("react").JSX.Element;
1
+ declare const ShadowsPage: () => import('react').JSX.Element;
2
2
  export default ShadowsPage;
@@ -1,2 +1,2 @@
1
- declare const SpacingAndSizesPage: () => import("react").JSX.Element;
1
+ declare const SpacingAndSizesPage: () => import('react').JSX.Element;
2
2
  export default SpacingAndSizesPage;
@@ -1,2 +1,2 @@
1
- declare const TextStylesPage: () => import("react").JSX.Element;
1
+ declare const TextStylesPage: () => import('react').JSX.Element;
2
2
  export default TextStylesPage;
@@ -1,2 +1,2 @@
1
- declare const TypographyPage: () => import("react").JSX.Element;
1
+ declare const TypographyPage: () => import('react').JSX.Element;
2
2
  export default TypographyPage;
@@ -14,12 +14,12 @@ export declare const flattenTokens: (obj: Record<string, unknown>) => {
14
14
  export declare const slugify: (text: string) => string;
15
15
  export declare const ColorPreview: ({ value }: {
16
16
  value: string;
17
- }) => import("react").JSX.Element;
17
+ }) => import('react').JSX.Element;
18
18
  export declare const Section: ({ children, heading, slug }: {
19
19
  children: ReactNode;
20
20
  heading: string;
21
21
  slug?: string;
22
- }) => import("react").JSX.Element;
22
+ }) => import('react').JSX.Element;
23
23
  type TokenTableRow = {
24
24
  preview: ReactNode;
25
25
  token: string;
@@ -27,5 +27,5 @@ type TokenTableRow = {
27
27
  };
28
28
  export declare const TokenTable: ({ rows }: {
29
29
  rows: TokenTableRow[];
30
- }) => import("react").JSX.Element;
30
+ }) => import('react').JSX.Element;
31
31
  export {};
@@ -8,7 +8,7 @@ export interface ResponsiveState {
8
8
  export declare const ResponsiveProvider: {
9
9
  ({ children }: {
10
10
  children: ReactNode;
11
- }): import("react").JSX.Element;
11
+ }): import('react').JSX.Element;
12
12
  displayName: string;
13
13
  };
14
14
  declare const useResponsive: () => ResponsiveState;
@@ -1,3 +1,3 @@
1
1
  import { ChakraProviderProps } from '@chakra-ui/react/styled-system';
2
- declare const Provider: (props: Omit<ChakraProviderProps, "value">) => import("react").JSX.Element;
2
+ declare const Provider: (props: Omit<ChakraProviderProps, "value">) => import('react').JSX.Element;
3
3
  export default Provider;
@@ -1,4 +1,12 @@
1
- declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"footer" | "header" | "title" | "icon" | "collapsible" | "root" | "suffix" | "description" | "subtitle", {
1
+ declare const expandableCardSlotRecipe: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "collapsible" | "root" | "suffix" | "description" | "subtitle", {
2
+ noPadding: {
3
+ false: {};
4
+ true: {
5
+ body: {
6
+ padding: number;
7
+ };
8
+ };
9
+ };
2
10
  size: {
3
11
  md: {
4
12
  header: {
@@ -4,7 +4,7 @@ import { cardAnatomy } from "@chakra-ui/react/anatomy";
4
4
  var expandableCardSlotRecipe = defineSlotRecipe({
5
5
  className: "expandable-card",
6
6
  slots: [
7
- ...cardAnatomy.omit("body").keys(),
7
+ ...cardAnatomy.keys(),
8
8
  "collapsible",
9
9
  "icon",
10
10
  "subtitle",
@@ -13,7 +13,7 @@ var expandableCardSlotRecipe = defineSlotRecipe({
13
13
  base: {
14
14
  root: {
15
15
  backgroundColor: "background/primary",
16
- overflow: "hidden"
16
+ overflow: "clip"
17
17
  },
18
18
  header: {
19
19
  display: "flex",
@@ -32,7 +32,7 @@ var expandableCardSlotRecipe = defineSlotRecipe({
32
32
  }
33
33
  },
34
34
  collapsible: {
35
- overflow: "hidden",
35
+ overflow: "clip",
36
36
  _open: {
37
37
  animationName: "expand-height, fade-in",
38
38
  animationDuration: "moderate"
@@ -57,26 +57,42 @@ var expandableCardSlotRecipe = defineSlotRecipe({
57
57
  color: "text/secondary",
58
58
  mx: "16",
59
59
  textStyle: "body/md/regular"
60
+ },
61
+ title: {
62
+ alignItems: "flex-start",
63
+ display: "flex",
64
+ flexDirection: "column",
65
+ minWidth: 0,
66
+ "& > *": { maxWidth: "100%" }
60
67
  }
61
68
  },
62
- variants: { size: {
63
- md: {
64
- header: {
65
- textStyle: "body/md/regular",
66
- paddingX: "16",
67
- paddingY: "12"
68
- },
69
- subtitle: { textStyle: "body/sm/regular" }
69
+ variants: {
70
+ noPadding: {
71
+ false: {},
72
+ true: { body: { padding: 0 } }
70
73
  },
71
- lg: {
72
- header: {
73
- textStyle: "body/lg/regular",
74
- padding: "16"
74
+ size: {
75
+ md: {
76
+ header: {
77
+ textStyle: "body/md/regular",
78
+ paddingX: "16",
79
+ paddingY: "12"
80
+ },
81
+ subtitle: { textStyle: "body/sm/regular" }
75
82
  },
76
- subtitle: { textStyle: "body/md/regular" }
83
+ lg: {
84
+ header: {
85
+ textStyle: "body/lg/regular",
86
+ padding: "16"
87
+ },
88
+ subtitle: { textStyle: "body/md/regular" }
89
+ }
77
90
  }
78
- } },
79
- defaultVariants: { size: "lg" }
91
+ },
92
+ defaultVariants: {
93
+ noPadding: false,
94
+ size: "lg"
95
+ }
80
96
  });
81
97
  //#endregion
82
98
  export { expandableCardSlotRecipe as default };
@@ -1 +1 @@
1
- {"version":3,"file":"ExpandableCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/ExpandableCard.recipe.ts"],"sourcesContent":["import { cardAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst expandableCardSlotRecipe = defineSlotRecipe({\n className: 'expandable-card',\n slots: [...cardAnatomy.omit('body').keys(), 'collapsible', 'icon', 'subtitle', 'suffix'],\n base: {\n root: {\n backgroundColor: 'background/primary',\n overflow: 'hidden',\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n cursor: 'pointer',\n width: '100%',\n color: 'text/primary',\n '&:active': {\n backgroundColor: 'background/active',\n },\n '&:hover:not(:active)': {\n backgroundColor: 'background/hover',\n },\n _hover: {\n color: 'text/primary',\n },\n _open: {\n backgroundColor: 'background/secondary',\n // Figma draws this stroke inside the 48px header, so as a real border the open header\n // is 49px. Swap for `boxShadow: 'inset 0 -1px 0 {colors.border/minimal}'` if exact\n // 48px parity is ever needed.\n borderBottom: '1px solid',\n borderBottomColor: 'border/minimal',\n },\n },\n collapsible: {\n overflow: 'hidden',\n _open: {\n animationName: 'expand-height, fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationName: 'collapse-height, fade-out',\n animationDuration: 'moderate',\n },\n },\n // Figma's footer content slot is 24px tall in both sizes; with Card's `sm` block\n // padding (8/8) that makes the 40px footer shown in the design.\n footer: {\n alignItems: 'center',\n display: 'flex',\n minHeight: '40',\n },\n // Flex, not the default block: an inline-block svg in a block box picks up the line box's\n // extra leading, which made an lg header with an icon 57.5px instead of Figma's 56px.\n icon: {\n alignItems: 'center',\n color: 'icon/secondary',\n display: 'flex',\n },\n subtitle: {\n color: 'text/secondary',\n },\n suffix: {\n color: 'text/secondary',\n mx: '16',\n textStyle: 'body/md/regular',\n },\n },\n variants: {\n size: {\n md: {\n header: { textStyle: 'body/md/regular', paddingX: '16', paddingY: '12' },\n subtitle: { textStyle: 'body/sm/regular' },\n },\n lg: {\n header: { textStyle: 'body/lg/regular', padding: '16' },\n subtitle: { textStyle: 'body/md/regular' },\n },\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n\nexport default expandableCardSlotRecipe;\n"],"mappings":";;;AAGA,IAAM,2BAA2B,iBAAiB;CAChD,WAAW;CACX,OAAO;EAAC,GAAG,YAAY,KAAK,MAAM,CAAC,CAAC,KAAK;EAAG;EAAe;EAAQ;EAAY;CAAQ;CACvF,MAAM;EACJ,MAAM;GACJ,iBAAiB;GACjB,UAAU;EACZ;EACA,QAAQ;GACN,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,QAAQ;GACR,OAAO;GACP,OAAO;GACP,YAAY,EACV,iBAAiB,oBACnB;GACA,wBAAwB,EACtB,iBAAiB,mBACnB;GACA,QAAQ,EACN,OAAO,eACT;GACA,OAAO;IACL,iBAAiB;IAIjB,cAAc;IACd,mBAAmB;GACrB;EACF;EACA,aAAa;GACX,UAAU;GACV,OAAO;IACL,eAAe;IACf,mBAAmB;GACrB;GACA,SAAS;IACP,eAAe;IACf,mBAAmB;GACrB;EACF;EAGA,QAAQ;GACN,YAAY;GACZ,SAAS;GACT,WAAW;EACb;EAGA,MAAM;GACJ,YAAY;GACZ,OAAO;GACP,SAAS;EACX;EACA,UAAU,EACR,OAAO,iBACT;EACA,QAAQ;GACN,OAAO;GACP,IAAI;GACJ,WAAW;EACb;CACF;CACA,UAAU,EACR,MAAM;EACJ,IAAI;GACF,QAAQ;IAAE,WAAW;IAAmB,UAAU;IAAM,UAAU;GAAK;GACvE,UAAU,EAAE,WAAW,kBAAkB;EAC3C;EACA,IAAI;GACF,QAAQ;IAAE,WAAW;IAAmB,SAAS;GAAK;GACtD,UAAU,EAAE,WAAW,kBAAkB;EAC3C;CACF,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC"}
1
+ {"version":3,"file":"ExpandableCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/ExpandableCard.recipe.ts"],"sourcesContent":["import { cardAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst expandableCardSlotRecipe = defineSlotRecipe({\n className: 'expandable-card',\n slots: [...cardAnatomy.keys(), 'collapsible', 'icon', 'subtitle', 'suffix'],\n base: {\n root: {\n backgroundColor: 'background/primary',\n // `clip` rather than `hidden`: a hidden box is a scroll container, which would make a\n // `position: sticky` element in the body stick to the card instead of the page.\n overflow: 'clip',\n },\n header: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n cursor: 'pointer',\n width: '100%',\n color: 'text/primary',\n '&:active': {\n backgroundColor: 'background/active',\n },\n '&:hover:not(:active)': {\n backgroundColor: 'background/hover',\n },\n _hover: {\n color: 'text/primary',\n },\n _open: {\n backgroundColor: 'background/secondary',\n // Figma draws this stroke inside the 48px header, so as a real border the open header\n // is 49px. Swap for `boxShadow: 'inset 0 -1px 0 {colors.border/minimal}'` if exact\n // 48px parity is ever needed.\n borderBottom: '1px solid',\n borderBottomColor: 'border/minimal',\n },\n },\n collapsible: {\n overflow: 'clip',\n _open: {\n animationName: 'expand-height, fade-in',\n animationDuration: 'moderate',\n },\n _closed: {\n animationName: 'collapse-height, fade-out',\n animationDuration: 'moderate',\n },\n },\n // Figma's footer content slot is 24px tall in both sizes; with Card's `sm` block\n // padding (8/8) that makes the 40px footer shown in the design.\n footer: {\n alignItems: 'center',\n display: 'flex',\n minHeight: '40',\n },\n // Flex, not the default block: an inline-block svg in a block box picks up the line box's\n // extra leading, which made an lg header with an icon 57.5px instead of Figma's 56px.\n icon: {\n alignItems: 'center',\n color: 'icon/secondary',\n display: 'flex',\n },\n subtitle: {\n color: 'text/secondary',\n },\n suffix: {\n color: 'text/secondary',\n mx: '16',\n textStyle: 'body/md/regular',\n },\n title: {\n alignItems: 'flex-start',\n display: 'flex',\n flexDirection: 'column',\n minWidth: 0,\n // Under `flex-start` a nowrap child keeps its full width, so cap it or `truncate` never engages.\n '& > *': {\n maxWidth: '100%',\n },\n },\n },\n variants: {\n noPadding: {\n false: {},\n true: {\n body: { padding: 0 },\n },\n },\n size: {\n md: {\n header: { textStyle: 'body/md/regular', paddingX: '16', paddingY: '12' },\n subtitle: { textStyle: 'body/sm/regular' },\n },\n lg: {\n header: { textStyle: 'body/lg/regular', padding: '16' },\n subtitle: { textStyle: 'body/md/regular' },\n },\n },\n },\n defaultVariants: {\n noPadding: false,\n size: 'lg',\n },\n});\n\nexport default expandableCardSlotRecipe;\n"],"mappings":";;;AAGA,IAAM,2BAA2B,iBAAiB;CAChD,WAAW;CACX,OAAO;EAAC,GAAG,YAAY,KAAK;EAAG;EAAe;EAAQ;EAAY;CAAQ;CAC1E,MAAM;EACJ,MAAM;GACJ,iBAAiB;GAGjB,UAAU;EACZ;EACA,QAAQ;GACN,SAAS;GACT,YAAY;GACZ,gBAAgB;GAChB,QAAQ;GACR,OAAO;GACP,OAAO;GACP,YAAY,EACV,iBAAiB,oBACnB;GACA,wBAAwB,EACtB,iBAAiB,mBACnB;GACA,QAAQ,EACN,OAAO,eACT;GACA,OAAO;IACL,iBAAiB;IAIjB,cAAc;IACd,mBAAmB;GACrB;EACF;EACA,aAAa;GACX,UAAU;GACV,OAAO;IACL,eAAe;IACf,mBAAmB;GACrB;GACA,SAAS;IACP,eAAe;IACf,mBAAmB;GACrB;EACF;EAGA,QAAQ;GACN,YAAY;GACZ,SAAS;GACT,WAAW;EACb;EAGA,MAAM;GACJ,YAAY;GACZ,OAAO;GACP,SAAS;EACX;EACA,UAAU,EACR,OAAO,iBACT;EACA,QAAQ;GACN,OAAO;GACP,IAAI;GACJ,WAAW;EACb;EACA,OAAO;GACL,YAAY;GACZ,SAAS;GACT,eAAe;GACf,UAAU;GAEV,SAAS,EACP,UAAU,OACZ;EACF;CACF;CACA,UAAU;EACR,WAAW;GACT,OAAO,CAAC;GACR,MAAM,EACJ,MAAM,EAAE,SAAS,EAAE,EACrB;EACF;EACA,MAAM;GACJ,IAAI;IACF,QAAQ;KAAE,WAAW;KAAmB,UAAU;KAAM,UAAU;IAAK;IACvE,UAAU,EAAE,WAAW,kBAAkB;GAC3C;GACA,IAAI;IACF,QAAQ;KAAE,WAAW;KAAmB,SAAS;IAAK;IACtD,UAAU,EAAE,WAAW,kBAAkB;GAC3C;EACF;CACF;CACA,iBAAiB;EACf,WAAW;EACX,MAAM;CACR;AACF,CAAC"}
@@ -941,7 +941,15 @@ declare const slotRecipes: {
941
941
  };
942
942
  };
943
943
  }>;
944
- expandableCard: import('@chakra-ui/react').SlotRecipeDefinition<"footer" | "header" | "title" | "icon" | "collapsible" | "root" | "suffix" | "description" | "subtitle", {
944
+ expandableCard: import('@chakra-ui/react').SlotRecipeDefinition<"body" | "footer" | "header" | "title" | "icon" | "collapsible" | "root" | "suffix" | "description" | "subtitle", {
945
+ noPadding: {
946
+ false: {};
947
+ true: {
948
+ body: {
949
+ padding: number;
950
+ };
951
+ };
952
+ };
945
953
  size: {
946
954
  md: {
947
955
  header: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.432",
4
+ "version": "0.3.434",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",
@@ -75,23 +75,23 @@
75
75
  "@figma-export/cli": "^6.4.1",
76
76
  "@figma-export/output-components-as-svg": "^6.4.1",
77
77
  "@figma-export/transform-svg-with-svgo": "^6.4.1",
78
- "@google-cloud/storage": "^8.0.1",
78
+ "@google-cloud/storage": "^8.2.0",
79
79
  "@storybook/addon-docs": "10.6.0",
80
80
  "@storybook/addon-mcp": "10.6.0",
81
81
  "@storybook/react-vite": "10.6.0",
82
82
  "@svgr/plugin-jsx": "^8.1.0",
83
- "@types/node": "^26.5.0",
83
+ "@types/node": "^26.6.2",
84
84
  "@types/react": "^18.3.31",
85
85
  "@types/react-dom": "^18.3.7",
86
86
  "@vitejs/plugin-react": "^6.1.1",
87
87
  "react": "^18.3.1",
88
88
  "react-dom": "^18.3.1",
89
- "release-it": "^21.0.2",
89
+ "release-it": "^21.1.0",
90
90
  "storybook": "10.6.0",
91
- "tsx": "^4.23.13",
91
+ "tsx": "^4.23.15",
92
92
  "typescript": "^6.0.3",
93
- "vite": "^8.2.2",
94
- "vite-plugin-dts": "^5.1.0",
93
+ "vite": "^8.3.0",
94
+ "vite-plugin-dts": "^5.1.1",
95
95
  "vite-plugin-svgr": "^5.2.0"
96
96
  },
97
97
  "dependencies": {