@bitrise/bitkit-v2 0.3.536 → 0.3.537

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.
@@ -69,6 +69,7 @@ var linkCardSlotRecipe = defineSlotRecipe({
69
69
  title: {
70
70
  color: "text/primary",
71
71
  textStyle: "body/xl/semibold",
72
+ textWrap: "pretty",
72
73
  _groupHover: textActive,
73
74
  _groupFocusVisible: textActive
74
75
  },
@@ -1 +1 @@
1
- {"version":3,"file":"LinkCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/LinkCard.recipe.ts"],"sourcesContent":["import { cardAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\n// BitkitLinkCard is a `Card` (elevation off, `sm` padding below tablet and `lg` from tablet up):\n// background, border, body padding and the footer's divider come from the card recipe. This recipe\n// only adds what the link card does differently: a larger radius, an inset divider, the hover state\n// and its own content.\n//\n// The whole card is one link, so hover and keyboard focus read the same: the root reacts with\n// `_hover` / `_focusVisible`, and its parts follow through the `group` class on the root.\n//\n// `variant` is a layout variant: the icon and product cards differ in their visual and, from tablet\n// up, in the size of the body text.\nconst linkCardAnatomy = cardAnatomy.extendWith('iconTile', 'textBlock', 'actionLabel', 'actionIcon');\n\nconst rootActive = {\n borderColor: 'border/hover',\n boxShadow: 'elevation/md',\n};\n\nconst textActive = { color: 'text/link-hover' };\n\nconst iconTileActive = {\n backgroundColor: 'background/selected-hover',\n color: 'icon/interactive',\n};\n\nconst linkCardSlotRecipe = defineSlotRecipe({\n className: 'link-card',\n slots: linkCardAnatomy.keys(),\n base: {\n root: {\n borderRadius: '12',\n color: 'text/primary',\n display: 'flex',\n flexDirection: 'column',\n maxWidth: 'layout/maxWidth/480',\n overflow: 'clip',\n textDecoration: 'none',\n _hover: rootActive,\n _focusVisible: rootActive,\n },\n body: {\n display: 'flex',\n flex: '1',\n flexDirection: 'column',\n gap: { base: '12', tablet: '16' },\n minHeight: 0,\n // The design keeps the content 24px off the trailing edge at every size, also where the card's\n // padding is 16. Responsive for the same reason as the footer's padding.\n paddingInlineEnd: { base: '24', tablet: '24' },\n },\n iconTile: {\n alignItems: 'center',\n alignSelf: 'flex-start',\n backgroundColor: 'background/tertiary',\n borderRadius: { base: '8', tablet: '10' },\n color: 'icon/secondary',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n padding: '8',\n '& > svg': {\n boxSize: { base: '24', tablet: '32' },\n },\n _groupHover: iconTileActive,\n _groupFocusVisible: iconTileActive,\n },\n textBlock: {\n display: 'flex',\n flexDirection: 'column',\n gap: '6',\n overflowWrap: 'anywhere',\n },\n title: {\n color: 'text/primary',\n textStyle: 'body/xl/semibold',\n _groupHover: textActive,\n _groupFocusVisible: textActive,\n },\n description: {\n color: 'text/secondary',\n textStyle: 'body/lg/regular',\n },\n // The card's footer runs its divider edge to edge; the design insets it to the body's padding.\n // The padding is responsive on purpose: the card's own footer padding comes from a responsive\n // `paddingSize`, so a plain value here would lose to its breakpoint rule from tablet up.\n footer: {\n alignItems: 'center',\n display: 'flex',\n gap: '4',\n marginInline: { base: '16', tablet: '24' },\n paddingBlock: { base: '16', tablet: '24' },\n paddingInlineEnd: { base: '8', tablet: '8' },\n paddingInlineStart: { base: '0', tablet: '0' },\n },\n actionLabel: {\n color: 'text/link',\n flex: '1',\n minWidth: 0,\n textStyle: 'body/lg/regular',\n _groupHover: textActive,\n _groupFocusVisible: textActive,\n },\n actionIcon: {\n color: 'icon/interactive',\n flexShrink: 0,\n opacity: 0,\n _groupHover: { opacity: 1 },\n _groupFocusVisible: { opacity: 1 },\n },\n },\n variants: {\n variant: {\n icon: {},\n // The visual is a BitkitProductThumbnail, which brings its own size, radius and background.\n product: {\n description: {\n textStyle: { base: 'body/lg/regular', tablet: 'body/md/regular' },\n },\n },\n },\n },\n defaultVariants: {\n variant: 'icon',\n },\n});\n\nexport default linkCardSlotRecipe;\n"],"mappings":";;;AAaA,IAAM,kBAAkB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BAAoB;EACtB;EACA,YAAY;GACV,OAAO;GACP,YAAY;GACZ,SAAS;GACT,aAAa,EAAE,SAAS,EAAE;GAC1B,oBAAoB,EAAE,SAAS,EAAE;EACnC;CACF;CACA,UAAU,EACR,SAAS;EACP,MAAM,CAAC;EAEP,SAAS,EACP,aAAa,EACX,WAAW;GAAE,MAAM;GAAmB,QAAQ;EAAkB,EAClE,EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,OACX;AACF,CAAC"}
1
+ {"version":3,"file":"LinkCard.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/LinkCard.recipe.ts"],"sourcesContent":["import { cardAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\n// BitkitLinkCard is a `Card` (elevation off, `sm` padding below tablet and `lg` from tablet up):\n// background, border, body padding and the footer's divider come from the card recipe. This recipe\n// only adds what the link card does differently: a larger radius, an inset divider, the hover state\n// and its own content.\n//\n// The whole card is one link, so hover and keyboard focus read the same: the root reacts with\n// `_hover` / `_focusVisible`, and its parts follow through the `group` class on the root.\n//\n// `variant` is a layout variant: the icon and product cards differ in their visual and, from tablet\n// up, in the size of the body text.\nconst linkCardAnatomy = cardAnatomy.extendWith('iconTile', 'textBlock', 'actionLabel', 'actionIcon');\n\nconst rootActive = {\n borderColor: 'border/hover',\n boxShadow: 'elevation/md',\n};\n\nconst textActive = { color: 'text/link-hover' };\n\nconst iconTileActive = {\n backgroundColor: 'background/selected-hover',\n color: 'icon/interactive',\n};\n\nconst linkCardSlotRecipe = defineSlotRecipe({\n className: 'link-card',\n slots: linkCardAnatomy.keys(),\n base: {\n root: {\n borderRadius: '12',\n color: 'text/primary',\n display: 'flex',\n flexDirection: 'column',\n maxWidth: 'layout/maxWidth/480',\n overflow: 'clip',\n textDecoration: 'none',\n _hover: rootActive,\n _focusVisible: rootActive,\n },\n body: {\n display: 'flex',\n flex: '1',\n flexDirection: 'column',\n gap: { base: '12', tablet: '16' },\n minHeight: 0,\n // The design keeps the content 24px off the trailing edge at every size, also where the card's\n // padding is 16. Responsive for the same reason as the footer's padding.\n paddingInlineEnd: { base: '24', tablet: '24' },\n },\n iconTile: {\n alignItems: 'center',\n alignSelf: 'flex-start',\n backgroundColor: 'background/tertiary',\n borderRadius: { base: '8', tablet: '10' },\n color: 'icon/secondary',\n display: 'flex',\n flexShrink: 0,\n justifyContent: 'center',\n padding: '8',\n '& > svg': {\n boxSize: { base: '24', tablet: '32' },\n },\n _groupHover: iconTileActive,\n _groupFocusVisible: iconTileActive,\n },\n textBlock: {\n display: 'flex',\n flexDirection: 'column',\n gap: '6',\n overflowWrap: 'anywhere',\n },\n title: {\n color: 'text/primary',\n textStyle: 'body/xl/semibold',\n // Keeps the last line from being a lone word, without evening out the other lines.\n textWrap: 'pretty',\n _groupHover: textActive,\n _groupFocusVisible: textActive,\n },\n description: {\n color: 'text/secondary',\n textStyle: 'body/lg/regular',\n },\n // The card's footer runs its divider edge to edge; the design insets it to the body's padding.\n // The padding is responsive on purpose: the card's own footer padding comes from a responsive\n // `paddingSize`, so a plain value here would lose to its breakpoint rule from tablet up.\n footer: {\n alignItems: 'center',\n display: 'flex',\n gap: '4',\n marginInline: { base: '16', tablet: '24' },\n paddingBlock: { base: '16', tablet: '24' },\n paddingInlineEnd: { base: '8', tablet: '8' },\n paddingInlineStart: { base: '0', tablet: '0' },\n },\n actionLabel: {\n color: 'text/link',\n flex: '1',\n minWidth: 0,\n textStyle: 'body/lg/regular',\n _groupHover: textActive,\n _groupFocusVisible: textActive,\n },\n actionIcon: {\n color: 'icon/interactive',\n flexShrink: 0,\n opacity: 0,\n _groupHover: { opacity: 1 },\n _groupFocusVisible: { opacity: 1 },\n },\n },\n variants: {\n variant: {\n icon: {},\n // The visual is a BitkitProductThumbnail, which brings its own size, radius and background.\n product: {\n description: {\n textStyle: { base: 'body/lg/regular', tablet: 'body/md/regular' },\n },\n },\n },\n },\n defaultVariants: {\n variant: 'icon',\n },\n});\n\nexport default lin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ACX,OAAO;GACP,MAAM;GACN,UAAU;GACV,WAAW;GACX,aAAa;GACb,oBAAoB;EACtB;EACA,YAAY;GACV,OAAO;GACP,YAAY;GACZ,SAAS;GACT,aAAa,EAAE,SAAS,EAAE;GAC1B,oBAAoB,EAAE,SAAS,EAAE;EACnC;CACF;CACA,UAAU,EACR,SAAS;EACP,MAAM,CAAC;EAEP,SAAS,EACP,aAAa,EACX,WAAW;GAAE,MAAM;GAAmB,QAAQ;EAAkB,EAClE,EACF;CACF,EACF;CACA,iBAAiB,EACf,SAAS,OACX;AACF,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.536",
4
+ "version": "0.3.537",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",