@bitrise/bitkit-v2 0.3.528 → 0.3.530

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.
package/README.md CHANGED
@@ -109,6 +109,10 @@ npm run storybook
109
109
  # Build the library
110
110
  npm run build
111
111
 
112
+ # Rebuild dist/ on every change in lib/, for an app whose dev server loads dist/.
113
+ # It writes only the changed files and skips the declaration files.
114
+ npm run build:watch
115
+
112
116
  # Generate theme types
113
117
  npm run theme:generate-types
114
118
  ```
@@ -5,7 +5,7 @@ import { forwardRef } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import { Box } from "@chakra-ui/react/box";
7
7
  //#region lib/components/BitkitContentWrapper/BitkitContentWrapper.tsx
8
- /** The page's content grid: capped at a `layout/maxWidth` token, centred, one column of sections 32 apart unless `columnTemplate` says otherwise. */
8
+ /** The page's content grid: capped at a `layout/maxWidth` token, centred, one column of sections 24 apart, 32 from `tablet`, unless `columnTemplate` says otherwise. */
9
9
  var BitkitContentWrapper = forwardRef((props, ref) => {
10
10
  const { columnTemplate, contentWidth, css, ...rest } = props;
11
11
  const recipe = useRecipe({ key: "contentWrapper" });
@@ -1 +1 @@
1
- {"version":3,"file":"BitkitContentWrapper.js","names":[],"sources":["../../../lib/components/BitkitContentWrapper/BitkitContentWrapper.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { useRecipe } from '@chakra-ui/react/styled-system';\nimport { forwardRef } from 'react';\n\nimport type breakpoints from '../../theme/breakpoints';\nimport { type ContentWidth } from '../../theme/common/ContentWidth.common';\nimport { withSubComponents } from '../../utilities/withSubComponents';\nimport BitkitContentWrapperStickyBar from './BitkitContentWrapperStickyBar';\n\n/** A page content width: one of the `layout/maxWidth` tokens, `layout/maxWidth/full` for no cap. */\nexport type BitkitContentWidth = ContentWidth;\n\nexport interface BitkitContentWrapperProps extends BoxProps {\n /**\n * Side-by-side columns: a CSS grid template per breakpoint, so where they split is visible at the call site —\n * `{ tablet: '1fr 25rem' }` for one column that fills next to a fixed one from `tablet` up. Below the first\n * breakpoint given, the columns stack.\n *\n * The string form (`'1fr 25rem'`, applied from `tablet`) is deprecated and goes away with the move to responsive\n * conditions; use the object form in new code.\n */\n columnTemplate?: string | Partial<Record<keyof typeof breakpoints, string>>;\n /** The cap on the page's content column, padding included. Pick the same value for the page header above it. */\n contentWidth: BitkitContentWidth;\n}\n\n/** The page's content grid: capped at a `layout/maxWidth` token, centred, one column of sections 32 apart unless `columnTemplate` says otherwise. */\nconst BitkitContentWrapper = forwardRef<HTMLDivElement, BitkitContentWrapperProps>((props, ref) => {\n const { columnTemplate, contentWidth, css, ...rest } = props;\n\n const recipe = useRecipe({ key: 'contentWrapper' });\n\n return (\n <Box\n css={[recipe(), css]}\n gridTemplateColumns={typeof columnTemplate === 'string' ? { tablet: columnTemplate } : columnTemplate}\n maxWidth={contentWidth}\n ref={ref}\n {...rest}\n />\n );\n});\n\nBitkitContentWrapper.displayName = 'BitkitContentWrapper';\n\nexport default withSubComponents(BitkitContentWrapper, { StickyBar: BitkitContentWrapperStickyBar });\n"],"mappings":";;;;;;;;AA2BA,IAAM,uBAAuB,YAAuD,OAAO,QAAQ;CACjG,MAAM,EAAE,gBAAgB,cAAc,KAAK,GAAG,SAAS;CAEvD,MAAM,SAAS,UAAU,EAAE,KAAK,iBAAiB,CAAC;CAElD,OACE,oBAAC,KAAD;EACE,KAAK,CAAC,OAAO,GAAG,GAAG;EACnB,qBAAqB,OAAO,mBAAmB,WAAW,EAAE,QAAQ,eAAe,IAAI;EACvF,UAAU;EACL;EACL,GAAI;CACL,CAAA;AAEL,CAAC;AAED,qBAAqB,cAAc;AAEnC,IAAA,+BAAe,kBAAkB,sBAAsB,EAAE,WAAW,8BAA8B,CAAC"}
1
+ {"version":3,"file":"BitkitContentWrapper.js","names":[],"sources":["../../../lib/components/BitkitContentWrapper/BitkitContentWrapper.tsx"],"sourcesContent":["import { Box, type BoxProps } from '@chakra-ui/react/box';\nimport { useRecipe } from '@chakra-ui/react/styled-system';\nimport { forwardRef } from 'react';\n\nimport type breakpoints from '../../theme/breakpoints';\nimport { type ContentWidth } from '../../theme/common/ContentWidth.common';\nimport { withSubComponents } from '../../utilities/withSubComponents';\nimport BitkitContentWrapperStickyBar from './BitkitContentWrapperStickyBar';\n\n/** A page content width: one of the `layout/maxWidth` tokens, `layout/maxWidth/full` for no cap. */\nexport type BitkitContentWidth = ContentWidth;\n\nexport interface BitkitContentWrapperProps extends BoxProps {\n /**\n * Side-by-side columns: a CSS grid template per breakpoint, so where they split is visible at the call site —\n * `{ tablet: '1fr 25rem' }` for one column that fills next to a fixed one from `tablet` up. Below the first\n * breakpoint given, the columns stack.\n *\n * The string form (`'1fr 25rem'`, applied from `tablet`) is deprecated and goes away with the move to responsive\n * conditions; use the object form in new code.\n */\n columnTemplate?: string | Partial<Record<keyof typeof breakpoints, string>>;\n /** The cap on the page's content column, padding included. Pick the same value for the page header above it. */\n contentWidth: BitkitContentWidth;\n}\n\n/** The page's content grid: capped at a `layout/maxWidth` token, centred, one column of sections 24 apart, 32 from `tablet`, unless `columnTemplate` says otherwise. */\nconst BitkitContentWrapper = forwardRef<HTMLDivElement, BitkitContentWrapperProps>((props, ref) => {\n const { columnTemplate, contentWidth, css, ...rest } = props;\n\n const recipe = useRecipe({ key: 'contentWrapper' });\n\n return (\n <Box\n css={[recipe(), css]}\n gridTemplateColumns={typeof columnTemplate === 'string' ? { tablet: columnTemplate } : columnTemplate}\n maxWidth={contentWidth}\n ref={ref}\n {...rest}\n />\n );\n});\n\nBitkitContentWrapper.displayName = 'BitkitContentWrapper';\n\nexport default withSubComponents(BitkitContentWrapper, { StickyBar: BitkitContentWrapperStickyBar });\n"],"mappings":";;;;;;;;AA2BA,IAAM,uBAAuB,YAAuD,OAAO,QAAQ;CACjG,MAAM,EAAE,gBAAgB,cAAc,KAAK,GAAG,SAAS;CAEvD,MAAM,SAAS,UAAU,EAAE,KAAK,iBAAiB,CAAC;CAElD,OACE,oBAAC,KAAD;EACE,KAAK,CAAC,OAAO,GAAG,GAAG;EACnB,qBAAqB,OAAO,mBAAmB,WAAW,EAAE,QAAQ,eAAe,IAAI;EACvF,UAAU;EACL;EACL,GAAI;CACL,CAAA;AAEL,CAAC;AAED,qBAAqB,cAAc;AAEnC,IAAA,+BAAe,kBAAkB,sBAAsB,EAAE,WAAW,8BAA8B,CAAC"}
@@ -11,13 +11,22 @@ var contentWrapperRecipe = defineRecipe({
11
11
  gridTemplateColumns: "minmax(0, 1fr)",
12
12
  "& > *": { minWidth: 0 },
13
13
  marginInline: "auto",
14
- paddingBlockEnd: "48",
15
- paddingBlockStart: "32",
14
+ paddingBlockEnd: {
15
+ base: "32",
16
+ tablet: "48"
17
+ },
18
+ paddingBlockStart: {
19
+ base: "16",
20
+ tablet: "32"
21
+ },
16
22
  paddingInline: {
17
23
  base: "16",
18
24
  tablet: "32"
19
25
  },
20
- rowGap: "32",
26
+ rowGap: {
27
+ base: "24",
28
+ tablet: "32"
29
+ },
21
30
  width: "100%"
22
31
  }
23
32
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ContentWrapper.recipe.js","names":[],"sources":["../../../lib/theme/recipes/ContentWrapper.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst contentWrapperRecipe = defineRecipe({\n className: 'content-wrapper',\n base: {\n columnGap: { base: '32', desktop: '64' },\n display: 'grid',\n gridTemplateColumns: 'minmax(0, 1fr)',\n // Lets a `1fr` column shrink below its content's width instead of overflowing the page.\n '& > *': { minWidth: 0 },\n marginInline: 'auto',\n paddingBlockEnd: '48',\n paddingBlockStart: '32',\n paddingInline: { base: '16', tablet: '32' },\n rowGap: '32',\n width: '100%',\n },\n});\n\nexport default contentWrapperRecipe;\n"],"mappings":";;AAEA,IAAM,uBAAuB,aAAa;CACxC,WAAW;CACX,MAAM;EACJ,WAAW;GAAE,MAAM;GAAM,SAAS;EAAK;EACvC,SAAS;EACT,qBAAqB;EAErB,SAAS,EAAE,UAAU,EAAE;EACvB,cAAc;EACd,iBAAiB;EACjB,mBAAmB;EACnB,eAAe;GAAE,MAAM;GAAM,QAAQ;EAAK;EAC1C,QAAQ;EACR,OAAO;CACT;AACF,CAAC"}
1
+ {"version":3,"file":"ContentWrapper.recipe.js","names":[],"sources":["../../../lib/theme/recipes/ContentWrapper.recipe.ts"],"sourcesContent":["import { defineRecipe } from '@chakra-ui/react/styled-system';\n\nconst contentWrapperRecipe = defineRecipe({\n className: 'content-wrapper',\n base: {\n columnGap: { base: '32', desktop: '64' },\n display: 'grid',\n gridTemplateColumns: 'minmax(0, 1fr)',\n // Lets a `1fr` column shrink below its content's width instead of overflowing the page.\n '& > *': { minWidth: 0 },\n marginInline: 'auto',\n paddingBlockEnd: { base: '32', tablet: '48' },\n paddingBlockStart: { base: '16', tablet: '32' },\n paddingInline: { base: '16', tablet: '32' },\n rowGap: { base: '24', tablet: '32' },\n width: '100%',\n },\n});\n\nexport default contentWrapperRecipe;\n"],"mappings":";;AAEA,IAAM,uBAAuB,aAAa;CACxC,WAAW;CACX,MAAM;EACJ,WAAW;GAAE,MAAM;GAAM,SAAS;EAAK;EACvC,SAAS;EACT,qBAAqB;EAErB,SAAS,EAAE,UAAU,EAAE;EACvB,cAAc;EACd,iBAAiB;GAAE,MAAM;GAAM,QAAQ;EAAK;EAC5C,mBAAmB;GAAE,MAAM;GAAM,QAAQ;EAAK;EAC9C,eAAe;GAAE,MAAM;GAAM,QAAQ;EAAK;EAC1C,QAAQ;GAAE,MAAM;GAAM,QAAQ;EAAK;EACnC,OAAO;CACT;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.528",
4
+ "version": "0.3.530",
5
5
  "description": "Bitrise Design System Components built with Chakra UI V3",
6
6
  "keywords": [
7
7
  "react",
@@ -39,6 +39,7 @@
39
39
  "license": "MIT",
40
40
  "scripts": {
41
41
  "build": "vite build",
42
+ "build:watch": "vite build --watch",
42
43
  "prestorybook": "npm run docs:generate",
43
44
  "storybook": "storybook dev -p 6006",
44
45
  "prebuild-storybook": "npm run docs:generate",