Skip to content

Commit 523f74e

Browse files
authored
fix: input styling and qa props (#1082)
1 parent 9b20254 commit 523f74e

111 files changed

Lines changed: 1489 additions & 3097 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
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+
Fix style props like `width` being applied to inner `<input>` element instead of the wrapper in TextInput, NumberInput, SearchInput, PasswordInput, TextArea, and Switch components.

.changeset/qa-pascalcase.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@cube-dev/ui-kit": patch
3+
---
4+
5+
Standardize default `qa` (data-qa) values to PascalCase. Update selectors if you rely on these:
6+
7+
- **FieldWrapper**: `Field_Message``FieldMessage`, `Field_Description``FieldDescription`
8+
- **Result**: `Result_Container``ResultContainer`

.cursor/rules/documentation.mdc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ Customizes the [specific part] of the component.
6969

7070
### Style Properties
7171

72-
These properties allow direct style application without using the `styles` prop: `width`, `height`.
72+
These properties allow direct style application without using the `styles` prop:
73+
74+
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
75+
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
7376

7477
### Modifiers
7578

@@ -169,7 +172,7 @@ This component supports all [Field properties](/field-properties.md) when used w
169172
- **Props List**: List all component-specific properties using the definition list format. Properties, types, defaults, and descriptions must match the `argTypes` defined in the corresponding `.stories.tsx` file. Format: `- **\`propName\`** \`type\` (default: \`value\`) — Description`
170173
- **Base Properties**: Link to `/docs/getting-started-base-properties--docs` instead of listing (unless `qa` has special behavior)
171174
- **Styling Properties**: Document `styles`/`*Styles` props. List sub-elements that can be overridden (check component's tasty styles)
172-
- **Style Properties**: List direct styling props (`width`, `height`, etc.) - see `src/tasty/styles/list.ts`
175+
- **Style Properties**: Managed by `pnpm audit-docs --fix-docs`. Groups props by category (Base, Position, Dimension, Block, Color, Text, Flow, Other). Do not edit manually.
173176
- **React Aria Properties**: Document any React Aria properties that need extra clarification
174177

175178
### Examples

.storybook/preview.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const parameters = {
3131
'Overview',
3232
'Usage',
3333
'Create Component',
34+
'Utilities',
3435
'Base Properties',
3536
'Field Properties',
3637
'Complex Layout',

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ComponentName/
7777
| `pnpm size` | Check bundle size limits |
7878
| `pnpm chromatic` | Visual regression tests |
7979
| `pnpm add-icons` | Add new icons from tabler |
80-
| `pnpm audit-docs` | Audit component API ↔ docs ↔ argTypes sync. Uses TS Compiler API for full type resolution. Options: `--component=Name` (single component), `--fix-stories` (auto-add/remove argTypes in `.stories.tsx`), `--json`, `--verbose`, `--all-props` |
80+
| `pnpm audit-docs` | Audit component API ↔ docs ↔ argTypes sync. Uses TS Compiler API for full type resolution. Options: `--component=Name` (single component), `--fix-stories` (auto-add/remove argTypes in `.stories.tsx`), `--fix-docs` (auto-update `### Style Properties` sections in `.docs.mdx`), `--json`, `--verbose`, `--all-props`. **Run after changing a component's API or adding a new component.** |
8181

8282
## Stack
8383

docs/BaseProperties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Position and dimension styles: POSITION_STYLES, DIMENSION_STYLES, BLOCK_OUTER_ST
6363
## Usage
6464

6565
```jsx
66-
<Button qa="submit-button" width="100%" padding="1x 2x">
66+
<Button qa="SubmitButton" width="100%" padding="1x 2x">
6767
Submit
6868
</Button>
6969

docs/tasty

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../node_modules/@tenphi/tasty/docs

docs/tasty/configuration.md

Lines changed: 0 additions & 211 deletions
This file was deleted.

0 commit comments

Comments
 (0)