@bitrise/bitkit-v2 0.3.405-beta.2627 → 0.3.405

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.
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
3
3
  export interface BitkitTableCardProps extends Omit<CardRootProps, 'children'> {
4
4
  /** Trailing action in the header, e.g. a `BitkitButton`. Omit it and the header is title-only. */
5
5
  action?: ReactNode;
6
- /** The table filling the card. Use `<Table.Root variant="card">` so it matches the card's frame. */
6
+ /** The table filling the card. Use `<BitkitTable.Root variant="card">` so it matches the card's frame. */
7
7
  children: ReactNode;
8
8
  /** Quieter second line under the title. */
9
9
  secondaryText?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"BitkitTableCard.js","names":[],"sources":["../../../lib/components/BitkitTableCard/BitkitTableCard.tsx"],"sourcesContent":["import { Box } from '@chakra-ui/react/box';\nimport { Card, type CardRootProps } from '@chakra-ui/react/card';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { forwardRef, type ReactNode } from 'react';\n\nexport interface BitkitTableCardProps extends Omit<CardRootProps, 'children'> {\n /** Trailing action in the header, e.g. a `BitkitButton`. Omit it and the header is title-only. */\n action?: ReactNode;\n /** The table filling the card. Use `<Table.Root variant=\"card\">` so it matches the card's frame. */\n children: ReactNode;\n /** Quieter second line under the title. */\n secondaryText?: ReactNode;\n /** The card's heading. Named like `BitkitAlert`'s so the native `title` attribute stays free. */\n titleText: ReactNode;\n}\n\nconst BitkitTableCard = forwardRef<HTMLDivElement, BitkitTableCardProps>((props, ref) => {\n const { action, children, secondaryText, titleText, ...rest } = props;\n\n const recipe = useSlotRecipe({ key: 'tableCard' });\n const styles = recipe();\n\n return (\n <Card.Root ref={ref} css={styles.root} elevation={false} {...rest}>\n <Card.Header css={styles.header}>\n <Box css={styles.contentBlock}>\n <Box css={styles.titleBlock}>\n <Card.Title css={styles.title}>{titleText}</Card.Title>\n {secondaryText && <Card.Description css={styles.description}>{secondaryText}</Card.Description>}\n </Box>\n {action}\n </Box>\n </Card.Header>\n <Card.Body css={styles.body}>{children}</Card.Body>\n </Card.Root>\n );\n});\n\nBitkitTableCard.displayName = 'BitkitTableCard';\n\nexport default BitkitTableCard;\n"],"mappings":";;;;;;AAgBA,IAAM,kBAAkB,YAAkD,OAAO,QAAQ;CACvF,MAAM,EAAE,QAAQ,UAAU,eAAe,WAAW,GAAG,SAAS;CAGhE,MAAM,SADS,cAAc,EAAE,KAAK,YAAY,CACjC,CAAA,CAAO;CAEtB,OACE,qBAAC,KAAK,MAAN;EAAgB;EAAK,KAAK,OAAO;EAAM,WAAW;EAAO,GAAI;EAA7D,UAAA,CACE,oBAAC,KAAK,QAAN;GAAa,KAAK,OAAO;GACvB,UAAA,qBAAC,KAAD;IAAK,KAAK,OAAO;IAAjB,UAAA,CACE,qBAAC,KAAD;KAAK,KAAK,OAAO;KAAjB,UAAA,CACE,oBAAC,KAAK,OAAN;MAAY,KAAK,OAAO;MAAQ,UAAA;KAAsB,CAAA,GACrD,iBAAiB,oBAAC,KAAK,aAAN;MAAkB,KAAK,OAAO;MAAc,UAAA;KAAgC,CAAA,CAC3F;IACJ,CAAA,GAAA,MACE;;EACM,CAAA,GACb,oBAAC,KAAK,MAAN;GAAW,KAAK,OAAO;GAAO;EAAoB,CAAA,CACzC;;AAEf,CAAC;AAED,gBAAgB,cAAc"}
1
+ {"version":3,"file":"BitkitTableCard.js","names":[],"sources":["../../../lib/components/BitkitTableCard/BitkitTableCard.tsx"],"sourcesContent":["import { Box } from '@chakra-ui/react/box';\nimport { Card, type CardRootProps } from '@chakra-ui/react/card';\nimport { useSlotRecipe } from '@chakra-ui/react/styled-system';\nimport { forwardRef, type ReactNode } from 'react';\n\nexport interface BitkitTableCardProps extends Omit<CardRootProps, 'children'> {\n /** Trailing action in the header, e.g. a `BitkitButton`. Omit it and the header is title-only. */\n action?: ReactNode;\n /** The table filling the card. Use `<BitkitTable.Root variant=\"card\">` so it matches the card's frame. */\n children: ReactNode;\n /** Quieter second line under the title. */\n secondaryText?: ReactNode;\n /** The card's heading. Named like `BitkitAlert`'s so the native `title` attribute stays free. */\n titleText: ReactNode;\n}\n\nconst BitkitTableCard = forwardRef<HTMLDivElement, BitkitTableCardProps>((props, ref) => {\n const { action, children, secondaryText, titleText, ...rest } = props;\n\n const recipe = useSlotRecipe({ key: 'tableCard' });\n const styles = recipe();\n\n return (\n <Card.Root ref={ref} css={styles.root} elevation={false} {...rest}>\n <Card.Header css={styles.header}>\n <Box css={styles.contentBlock}>\n <Box css={styles.titleBlock}>\n <Card.Title css={styles.title}>{titleText}</Card.Title>\n {secondaryText && <Card.Description css={styles.description}>{secondaryText}</Card.Description>}\n </Box>\n {action}\n </Box>\n </Card.Header>\n <Card.Body css={styles.body}>{children}</Card.Body>\n </Card.Root>\n );\n});\n\nBitkitTableCard.displayName = 'BitkitTableCard';\n\nexport default BitkitTableCard;\n"],"mappings":";;;;;;AAgBA,IAAM,kBAAkB,YAAkD,OAAO,QAAQ;CACvF,MAAM,EAAE,QAAQ,UAAU,eAAe,WAAW,GAAG,SAAS;CAGhE,MAAM,SADS,cAAc,EAAE,KAAK,YAAY,CACjC,CAAA,CAAO;CAEtB,OACE,qBAAC,KAAK,MAAN;EAAgB;EAAK,KAAK,OAAO;EAAM,WAAW;EAAO,GAAI;EAA7D,UAAA,CACE,oBAAC,KAAK,QAAN;GAAa,KAAK,OAAO;GACvB,UAAA,qBAAC,KAAD;IAAK,KAAK,OAAO;IAAjB,UAAA,CACE,qBAAC,KAAD;KAAK,KAAK,OAAO;KAAjB,UAAA,CACE,oBAAC,KAAK,OAAN;MAAY,KAAK,OAAO;MAAQ,UAAA;KAAsB,CAAA,GACrD,iBAAiB,oBAAC,KAAK,aAAN;MAAkB,KAAK,OAAO;MAAc,UAAA;KAAgC,CAAA,CAC3F;IACJ,CAAA,GAAA,MACE;;EACM,CAAA,GACb,oBAAC,KAAK,MAAN;GAAW,KAAK,OAAO;GAAO;EAAoB,CAAA,CACzC;;AAEf,CAAC;AAED,gBAAgB,cAAc"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitrise/bitkit-v2",
3
3
  "private": false,
4
- "version": "0.3.405-beta.2627",
4
+ "version": "0.3.405",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",