Skip to content

Commit b79f55c

Browse files
authored
feat: data-input-type attribute for field components (#890)
1 parent a9139cc commit b79f55c

File tree

77 files changed

+1627
-949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1627
-949
lines changed

.changeset/color-token-fallback.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@cube-dev/ui-kit': minor
3+
---
4+
5+
Added color token fallback syntax `(#color, #fallback)` for robust color hierarchies. Supports nested fallbacks like `(#primary, (#secondary, #default))`. Automatically generates RGB variants for the entire fallback chain, ensuring proper color variable resolution at runtime.
6+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Improved overlay width behavior for Picker and FilterPicker components to match their trigger button width, ensuring better visual consistency.
6+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@cube-dev/ui-kit': minor
3+
---
4+
5+
Add `isButton` prop support to `Picker`, `FilterPicker`, and `Select` components. The prop is now properly passed to their trigger components (`ItemButton` for Picker/FilterPicker, `Item` for Select), allowing control over button styling. Defaults to `false` to maintain existing behavior.
6+

.changeset/pink-rivers-destroy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Decrease containerPadding of all overlays 12px -> 8px.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@cube-dev/ui-kit': minor
3+
---
4+
5+
Removed legacy `@` prefix support for custom properties. Use `$` prefix instead (e.g., `$custom-color` instead of `@custom-color`).
6+

.changeset/tidy-laws-repair.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cube-dev/ui-kit": minor
3+
---
4+
5+
Specify `data-input-type` attribute for each field component and improve `qa` prop handling in various field components for consistency.

.cursor/rules/storybook.mdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ alwaysApply: false
77
### Stories Files (.stories.tsx)
88
- Import types: `import type { Meta, StoryObj } from '@storybook/react-vite';`
99
- Import `StoryFn` for custom template functions
10-
- For interactive tests: `import { userEvent, within } from '@storybook/test';` (NOT from `@testing-library/react`)
10+
- For interactive tests: `import { userEvent, within } from 'storybook/test';` (NOT from `@testing-library/react`)
1111

1212
### Documentation Files (.docs.mdx)
1313
- `import { Meta, Canvas, Story, Controls } from '@storybook/addon-docs/blocks';`
@@ -103,7 +103,7 @@ export const Interactive: StoryObj = {
103103
};
104104
```
105105

106-
**Important:** Always import `userEvent` and `within` from `'@storybook/test'` in story files. This ensures they respect Storybook's configuration (e.g., `testIdAttribute: 'data-qa'` set in `.storybook/preview.jsx`). Do NOT use `@testing-library/react` imports in stories.
106+
**Important:** Always import `userEvent` and `within` from `'storybook/test'` in story files. This ensures they respect Storybook's configuration (e.g., `testIdAttribute: 'data-qa'` set in `.storybook/preview.jsx`). Do NOT use `@testing-library/react` imports in stories.
107107

108108
## MDX Documentation Structure
109109

.size-limit.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = [
2020
}),
2121
);
2222
},
23-
limit: '320kB',
23+
limit: '310kB',
2424
},
2525
{
2626
name: 'Tree shaking (just a Button)',

.storybook/preview.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { configure } from '@storybook/test';
21
import isChromatic from 'chromatic/isChromatic';
32
import { config } from 'react-transition-group';
3+
import { configure } from 'storybook/test';
44

55
import { Root } from '../src';
66

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
"@react-stately/utils": "^3.10.8",
7676
"@react-types/shared": "^3.31.0",
7777
"@sparticuz/chromium": "^137.0.1",
78-
"@storybook/test": "^8.6.14",
7978
"@tabler/icons-react": "^3.31.0",
8079
"@tanstack/react-virtual": "^3.13.12",
8180
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
@@ -117,9 +116,9 @@
117116
"@size-limit/webpack": "^8.2.4",
118117
"@size-limit/webpack-why": "^8.2.4",
119118
"@statoscope/cli": "^5.20.1",
120-
"@storybook/addon-docs": "^10.0.0",
121-
"@storybook/addon-links": "^10.0.0",
122-
"@storybook/react-vite": "^10.0.0",
119+
"@storybook/addon-docs": "^10.0.8",
120+
"@storybook/addon-links": "^10.0.8",
121+
"@storybook/react-vite": "^10.0.8",
123122
"@swc/core": "^1.3.36",
124123
"@swc/jest": "^0.2.36",
125124
"@testing-library/dom": "^10.4.1",
@@ -148,7 +147,7 @@
148147
"eslint-plugin-jsx-a11y": "^6.10.2",
149148
"eslint-plugin-react": "^7.37.5",
150149
"eslint-plugin-react-hooks": "^5.2.0",
151-
"eslint-plugin-storybook": "^10.0.0",
150+
"eslint-plugin-storybook": "^10.0.8",
152151
"husky": "^6.0.0",
153152
"jest": "^29.7.0",
154153
"jest-environment-jsdom": "^29.7.0",
@@ -165,7 +164,7 @@
165164
"react-test-renderer": "^19.1.1",
166165
"rimraf": "^6.0.1",
167166
"size-limit": "^8.2.6",
168-
"storybook": "^10.0.0",
167+
"storybook": "^10.0.8",
169168
"storybook-addon-turbo-build": "^2.0.1",
170169
"styled-components": "^6.1.19",
171170
"swc-loader": "^0.2.6",

0 commit comments

Comments
 (0)