@bitrise/bitkit-v2 0.3.527 → 0.3.529
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/AGENTS.md +1 -1
- package/README.md +4 -0
- package/package.json +2 -1
package/AGENTS.md
CHANGED
|
@@ -243,7 +243,7 @@ Bitkit components use consistent prop names across the library:
|
|
|
243
243
|
- **Use existing size tokens** — closest existing token (1, 2, 4, 6, 8, 12, 16, 20, 24, 32, 40, 48, 64, 96, 128) representing pixel values (1=1px, 32=32px). Avoid arbitrary px (`width="100px"`). Above 128: a page's content width is `contentWidth` (`layout/maxWidth/480`, `…/640`, `…/960`, `…/1280`, `…/1616`, `…/full`) on `BitkitContentWrapper` and on the page header, subheader and filter bar above it — see `Docs/Page Layout`; for anything else use Bitkit's `rem()` helper (`import { rem } from '@bitrise/bitkit-v2'`, `maxWidth={rem(800)}`), never a bare-number string — `maxWidth="800"` is not a token, reaches the CSS without a unit, and the browser silently drops it.
|
|
244
244
|
- **Omit default prop values** — `<IconCross />`, not `<IconCross size="24" />` when 24 is the default.
|
|
245
245
|
- **Never pass `color` to a colored icon** — multi/fixed-color icons (`Icon*Color`, `IconWarningYellow`, `Icon*White`, etc.) have their colors baked in. They omit `color` from their props, so passing it is a type error. Only monochrome icons follow `color` (via `currentColor`).
|
|
246
|
-
- **No shorthand props** — use full names: `marginInline`, `paddingBlockEnd`, `width`, `background`, `padding`. Never `mx`, `pb`, `w`, `bg`, `p`, `mt
|
|
246
|
+
- **No shorthand props** — use full names: `marginInline`, `paddingBlockEnd`, `width`, `background`, `padding`. Never `mx`, `pb`, `w`, `bg`, `p`, `mt` — nor the longer Chakra aliases like `flexDir`, `rounded`, `pos`, `minW`, `bgColor` (write `flexDirection`, `borderRadius`, `position`, `minWidth`, `backgroundColor`).
|
|
247
247
|
- **Prefer logical over physical properties** — `marginInline`, `paddingBlock`, `insetInlineStart` over `marginLeft`/`marginRight`, `paddingTop`/`paddingBottom`, `left`.
|
|
248
248
|
- **Prefer Chakra's `truncate` over manual CSS** — `truncate={true}` is a boolean style prop available on every `chakra.*` element / Chakra component (and every Bitkit component that forwards style props). Use it instead of `overflow: 'hidden'` + `textOverflow: 'ellipsis'` + `whiteSpace: 'nowrap'`.
|
|
249
249
|
- **Never wrap a Bitkit component in `<Box>` for styling** — most Bitkit components accept Chakra style props (`width`, `flex`, `flexShrink`, `marginInline`, `padding`, `display`, etc.) directly on themselves. Set them on the component, never on a wrapper:
|
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
|
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrise/bitkit-v2",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.529",
|
|
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",
|