- Add proposal, design, specs and tasks documentation - Add verification report - Archive completed change Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.2 KiB
2.2 KiB
1. Foundation
- 1.1 Create
FieldVarianttype inpackages/react/src/components/Forms/types.ts - 1.2 Add design tokens for classic variant in
LabelledBox/tokens.ts
2. LabelledBox Core
- 2.1 Add
variantprop toLabelledBoxcomponent interface - 2.2 Update
LabelledBoxrender logic to handlevariant="classic"(ignorelabelAsPlaceholder) - 2.3 Add
.labelled-box--classicCSS styles inLabelledBox/_index.scss - 2.4 Add unit tests for
LabelledBoxwith both variants
3. Input Component
- 3.1 Add
variantprop toInputcomponent - 3.2 Pass
varianttoLabelledBox - 3.3 Handle
placeholderprop based on variant (pass to native input only if classic) - 3.4 Add unit tests for Input with classic variant
- 3.5 Add Storybook story for Input classic variant
4. TextArea Component
- 4.1 Add
variantprop toTextAreacomponent - 4.2 Pass
varianttoLabelledBox - 4.3 Handle
placeholderprop based on variant - 4.4 Add unit tests for TextArea with classic variant
- 4.5 Add Storybook story for TextArea classic variant
5. Select Component
- 5.1 Add
variantandplaceholderprops toSelectcomponent interface - 5.2 Pass
varianttoLabelledBoxinSelectMonoAuxand multi equivalents - 5.3 Add styled placeholder rendering for classic variant when no selection
- 5.4 Add CSS for
.c__select__placeholder(muted gray style) - 5.5 Add unit tests for Select mono with classic variant
- 5.6 Add unit tests for Select multi with classic variant
- 5.7 Add Storybook stories for Select classic variant
6. DatePicker Components
- 6.1 Add
variantandplaceholderprops toDatePickercomponent - 6.2 Pass
variantto underlying field components - 6.3 Handle placeholder in classic variant
- 6.4 Add unit tests for DatePicker with classic variant
- 6.5 Repeat for
DateRangePicker - 6.6 Add Storybook stories for DatePicker/DateRangePicker classic variant
7. Documentation & Finalization
- 7.1 Update existing component documentation with variant prop
- 7.2 Run full test suite to ensure no regressions
- 7.3 Visual review of all components in both variants in Storybook