@capillarytech/blaze-ui 5.20.0 → 5.22.0

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.
Files changed (189) hide show
  1. package/CapAskAira/CapAiMediaGeneration/saga.js +1446 -0
  2. package/CapAskAira/CapAiMediaGeneration/saga.js.map +1 -0
  3. package/CapCollapsibleLeftNavigation/saga.js +1441 -0
  4. package/CapCollapsibleLeftNavigation/saga.js.map +1 -0
  5. package/CapLanguageProvider/actions.js +125 -0
  6. package/CapLanguageProvider/actions.js.map +1 -0
  7. package/CapLanguageProvider/constants.js +37 -0
  8. package/CapLanguageProvider/constants.js.map +1 -0
  9. package/CapLanguageProvider/reducer.js +130 -0
  10. package/CapLanguageProvider/reducer.js.map +1 -0
  11. package/CapLanguageProvider/saga.js +1457 -0
  12. package/CapLanguageProvider/saga.js.map +1 -0
  13. package/CapLanguageProvider/selector.js +186 -0
  14. package/CapLanguageProvider/selector.js.map +1 -0
  15. package/CapSupportVideosWrapper/utils.js +34 -0
  16. package/CapSupportVideosWrapper/utils.js.map +1 -0
  17. package/package.json +1 -1
  18. package/CapActionBar/README.md +0 -11
  19. package/CapAdvancedIcon/README.md +0 -185
  20. package/CapAdvancedIcon/use-cases.md +0 -44
  21. package/CapAlert/README.md +0 -144
  22. package/CapAppNotEnabled/README.md +0 -84
  23. package/CapAskAira/README.md +0 -328
  24. package/CapBanner/README.md +0 -4
  25. package/CapBlock/README.md +0 -175
  26. package/CapBorderedBox/Status.md +0 -40
  27. package/CapCSVFileUploader/README.md +0 -124
  28. package/CapCSVFileUploader/Status.md +0 -47
  29. package/CapCard/README.md +0 -85
  30. package/CapCard/Status.md +0 -41
  31. package/CapCardBox/README.md +0 -169
  32. package/CapCardBox/Status.md +0 -52
  33. package/CapCarousel/README.md +0 -190
  34. package/CapCarousel/Status.md +0 -73
  35. package/CapCheckbox/README.md +0 -254
  36. package/CapCheckbox/Status.md +0 -41
  37. package/CapColorPicker/README.md +0 -112
  38. package/CapColorPicker/Status.md +0 -52
  39. package/CapColorPicker/tests/USE_CASES_ANALYSIS.md +0 -92
  40. package/CapColoredTag/README.md +0 -167
  41. package/CapColoredTag/Status.md +0 -49
  42. package/CapConditionPreview/MIGRATION_ANALYSIS.md +0 -70
  43. package/CapConditionPreview/README.md +0 -40
  44. package/CapConditionPreview/tests/USE_CASES_CapConditionPreview.md +0 -65
  45. package/CapCustomCard/README.md +0 -182
  46. package/CapCustomCard/Status.md +0 -40
  47. package/CapCustomCarousel/Status.md +0 -69
  48. package/CapCustomCheckboxList/README.md +0 -178
  49. package/CapCustomCheckboxList/Status.md +0 -52
  50. package/CapCustomCheckboxList/tests/USE_CASES_ANALYSIS.md +0 -174
  51. package/CapCustomList/README.md +0 -117
  52. package/CapCustomList/Status.md +0 -77
  53. package/CapCustomList/tests/USE_CASES_ANALYSIS.md +0 -124
  54. package/CapCustomSelect/README.md +0 -38
  55. package/CapDatePicker/README.md +0 -139
  56. package/CapDateRangePicker/README.md +0 -159
  57. package/CapDateTimePicker/README.md +0 -136
  58. package/CapDateTimeRangePicker/README.md +0 -243
  59. package/CapDivider/README.md +0 -122
  60. package/CapDrawer/README.md +0 -207
  61. package/CapDrawer/Status.md +0 -52
  62. package/CapDrawer/tests/MISSING_USE_CASES.md +0 -170
  63. package/CapDropdown/README.md +0 -515
  64. package/CapDropdown/Status.md +0 -45
  65. package/CapDropdown/tests/USE_CASES_ANALYSIS.md +0 -137
  66. package/CapError/README.md +0 -88
  67. package/CapErrorBoundary/CapErrorBoundary-use-cases.md +0 -89
  68. package/CapErrorBoundary/README.md +0 -150
  69. package/CapErrorStateIllustration/README.md +0 -222
  70. package/CapErrorStateIllustration/USE_CASES.md +0 -33
  71. package/CapExpressionEditor/README.md +0 -32
  72. package/CapForm/README.md +0 -132
  73. package/CapForm/Status.md +0 -40
  74. package/CapForm/tests/PHASE1_UNFULFILLED_USE_CASES.md +0 -113
  75. package/CapForm/tests/USE_CASES_ANALYSIS.md +0 -119
  76. package/CapFormItem/README.md +0 -320
  77. package/CapFormItem/Status.md +0 -73
  78. package/CapFormItem/tests/USE_CASES_ANALYSIS.md +0 -84
  79. package/CapGraph/README.md +0 -69
  80. package/CapGraph/USE_CASES.md +0 -66
  81. package/CapHamburgerMenu/README.md +0 -234
  82. package/CapHamburgerMenu/USE_CASES.md +0 -48
  83. package/CapHeader/Status.md +0 -41
  84. package/CapHeading/README.md +0 -220
  85. package/CapHeading/Status.md +0 -41
  86. package/CapIcon/README.md +0 -207
  87. package/CapIllustration/Status.md +0 -41
  88. package/CapImage/README.md +0 -50
  89. package/CapImportMFEComponent/README.md +0 -121
  90. package/CapInfoNote/Status.md +0 -40
  91. package/CapInfoNote/tests/USE_CASES_ANALYSIS.md +0 -114
  92. package/CapInput/README.md +0 -196
  93. package/CapInput/Status.md +0 -123
  94. package/CapInput/tests/USE_CASES_ANALYSIS.md +0 -169
  95. package/CapLanguageProvider/CapLanguageProvider-use-cases.md +0 -56
  96. package/CapLanguageProvider/README.md +0 -206
  97. package/CapLevelGraphRenderer/CapLevelGraphRenderer-test-cases.md +0 -50
  98. package/CapLevelGraphRenderer/README.md +0 -123
  99. package/CapLevelGraphRenderer/Tooltip_MIGRATION_ANALYSIS.md +0 -120
  100. package/CapLink/README.md +0 -203
  101. package/CapLink/Status.md +0 -32
  102. package/CapLink/tests/CapLink.missingUseCases.md +0 -95
  103. package/CapList/README.md +0 -129
  104. package/CapList/Status.md +0 -69
  105. package/CapListLayout/README.md +0 -7
  106. package/CapLogin/README.md +0 -7
  107. package/CapMenu/README.md +0 -86
  108. package/CapModal/README.md +0 -357
  109. package/CapModal/Status.md +0 -52
  110. package/CapModal/tests/USE_CASES_GAPS.md +0 -207
  111. package/CapMultiSelect/README.md +0 -170
  112. package/CapMultiSelect/tests/USE_CASES_ANALYSIS.md +0 -29
  113. package/CapMultiSelectDatePicker/README.md +0 -11
  114. package/CapNavigation/README.md +0 -72
  115. package/CapNotification/README.md +0 -228
  116. package/CapNotificationDropdown/README.md +0 -5
  117. package/CapPopover/README.md +0 -234
  118. package/CapProgress/Status.md +0 -40
  119. package/CapRadio/Status.md +0 -54
  120. package/CapRadioButton/README.md +0 -152
  121. package/CapRadioButton/Status.md +0 -70
  122. package/CapRadioButton/tests/USE_CASES_ANALYSIS.md +0 -120
  123. package/CapRadioCard/README.md +0 -161
  124. package/CapRadioCard/Status.md +0 -78
  125. package/CapRadioGroup/README.md +0 -141
  126. package/CapRadioGroup/Status.md +0 -59
  127. package/CapReorderComponent/README.md +0 -179
  128. package/CapReorderComponent/Status.md +0 -41
  129. package/CapRoadMap/README.md +0 -126
  130. package/CapRoadMap/Status.md +0 -53
  131. package/CapRoadMap/tests/USE_CASE_GAPS.md +0 -92
  132. package/CapRow/README.md +0 -424
  133. package/CapSKUUploader/README.md +0 -189
  134. package/CapSKUUploader/Status.md +0 -66
  135. package/CapSecondaryTopBar/README.md +0 -7
  136. package/CapSelect/README.md +0 -243
  137. package/CapSelectFilter/README.md +0 -121
  138. package/CapShape/README.md +0 -96
  139. package/CapShape/Status.md +0 -36
  140. package/CapShape/tests/USE_CASES_ANALYSIS.md +0 -120
  141. package/CapSideBar/README.md +0 -298
  142. package/CapSideBar/Status.md +0 -5
  143. package/CapSlideBox/README.md +0 -68
  144. package/CapSlider/README.md +0 -423
  145. package/CapSlider/Status.md +0 -48
  146. package/CapSlider/tests/TEST_COVERAGE.md +0 -118
  147. package/CapSnackBar/README.md +0 -222
  148. package/CapSnackBar/Status.md +0 -41
  149. package/CapSomethingWentWrong/README.md +0 -97
  150. package/CapSplit/README.md +0 -19
  151. package/CapStatisticCard/README.md +0 -138
  152. package/CapStatus/README.md +0 -148
  153. package/CapStatus/Status.md +0 -40
  154. package/CapSteps/Status.md +0 -40
  155. package/CapStepsAccordian/README.md +0 -305
  156. package/CapStepsAccordian/Status.md +0 -48
  157. package/CapSupportVideosWrapper/README.md +0 -14
  158. package/CapSwitch/README.md +0 -351
  159. package/CapTab/README.md +0 -406
  160. package/CapTab/Status.md +0 -104
  161. package/CapTab/tests/USE_CASE_GAPS.md +0 -143
  162. package/CapTabV3/ANALYSIS.md +0 -60
  163. package/CapTabV3/README.md +0 -156
  164. package/CapTabV3/Status.md +0 -52
  165. package/CapTabV3/tests/USE_CASE_GAPS.md +0 -149
  166. package/CapTable/README.md +0 -160
  167. package/CapTable/Status.md +0 -41
  168. package/CapTag/README.md +0 -16
  169. package/CapTagDropdown/README.md +0 -171
  170. package/CapTagDropdown/Status.md +0 -55
  171. package/CapTimePicker/README.md +0 -170
  172. package/CapTooltip/README.md +0 -336
  173. package/CapTooltipWithInfo/Status.md +0 -75
  174. package/CapTopBar/README.md +0 -146
  175. package/CapTree/README.md +0 -124
  176. package/CapTree/Status.md +0 -48
  177. package/CapTree/tests/STATUS.md +0 -154
  178. package/CapTreeSelect/README.md +0 -217
  179. package/CapTreeSelect/Status.md +0 -52
  180. package/CapTruncateList/README.md +0 -13
  181. package/CapUnifiedSelect/README.md +0 -40
  182. package/CapUploader/README.md +0 -313
  183. package/CapUploader/Status.md +0 -76
  184. package/CapUploader/tests/USE_CASES_ANALYSIS.md +0 -225
  185. package/CapUserProfile/README.md +0 -105
  186. package/CapUserProfile/Status.md +0 -95
  187. package/CapVirtualList/README.md +0 -162
  188. package/CapVirtualList/Status.md +0 -71
  189. package/assets/HOCs/ComponentWithLabelHOC/README.md +0 -230
@@ -1,175 +0,0 @@
1
- # CapBlock
2
-
3
- A collapsible container component with optional delete functionality. Features a colored left border and can display content that can be expanded or collapsed.
4
-
5
- ## Migration from cap-ui-library
6
-
7
- This component has been migrated from `@capillarytech/cap-ui-library` to `@capillarytech/blaze-ui` with the following changes:
8
-
9
- ### Breaking Changes
10
-
11
- **No breaking changes** - The API remains fully compatible with cap-ui-library v8.x.
12
-
13
- ### Improvements
14
-
15
- 1. **TypeScript Support**: Full TypeScript type definitions for all props
16
- 2. **SCSS Modules**: Styles converted from styled-components to SCSS modules
17
- 3. **Better Testing**: Tests updated to use @testing-library/react
18
- 4. **Storybook**: Comprehensive Storybook stories added
19
-
20
- ## Installation
21
-
22
- ```tsx
23
- import CapBlock from '@capillarytech/blaze-ui/CapBlock';
24
- // Or
25
- import { CapBlock } from '@capillarytech/blaze-ui';
26
- ```
27
-
28
- ## Props
29
-
30
- | Prop | Type | Default | Description |
31
- |------|------|---------|-------------|
32
- | `width` | `string` | `'800px'` | Width of the block container |
33
- | `borderLeftColor` | `string` | `CAP_SECONDARY.base` | Color of the left border |
34
- | `isDeleteEnabled` | `boolean` | `false` | Whether the delete icon is enabled |
35
- | `deleteCallback` | `() => void` | - | Callback function when delete icon is clicked |
36
- | `isCollapseEnabled` | `boolean` | `false` | Whether the collapse/expand icon is enabled |
37
- | `componentName` | `string` | `'path'` | Name used in tooltip messages |
38
- | `children` | `ReactNode` | - | Content to render inside the block |
39
- | `className` | `string` | - | Additional CSS class name |
40
- | `deleteBlockMsg` | `string` | `''` | Message for delete tooltip (from translations) |
41
- | `collapseBlockMsg` | `string` | `''` | Message for collapse tooltip (from translations) |
42
- | `expandBlockMsg` | `string` | `''` | Message for expand tooltip (from translations) |
43
- | `pathBlockText` | `ReactNode` | - | Additional content at the bottom (always visible) |
44
-
45
- ## Usage Examples
46
-
47
- ### Basic Usage
48
-
49
- ```tsx
50
- import CapBlock from '@capillarytech/blaze-ui/CapBlock';
51
-
52
- <CapBlock>
53
- <p>This is the content inside the block.</p>
54
- </CapBlock>
55
- ```
56
-
57
- ### With Delete Feature
58
-
59
- ```tsx
60
- <CapBlock
61
- isDeleteEnabled
62
- deleteCallback={() => console.log('Delete clicked')}
63
- deleteBlockMsg="Delete"
64
- componentName="section"
65
- >
66
- <p>Click the delete icon to remove this block.</p>
67
- </CapBlock>
68
- ```
69
-
70
- ### With Collapse Feature
71
-
72
- ```tsx
73
- <CapBlock
74
- isCollapseEnabled
75
- collapseBlockMsg="Collapse"
76
- expandBlockMsg="Expand"
77
- componentName="section"
78
- >
79
- <p>This content can be collapsed and expanded.</p>
80
- </CapBlock>
81
- ```
82
-
83
- ### Custom Styling
84
-
85
- ```tsx
86
- <CapBlock
87
- width="600px"
88
- borderLeftColor="#47af46"
89
- className="custom-block"
90
- >
91
- <p>Custom width and border color.</p>
92
- </CapBlock>
93
- ```
94
-
95
- ### With All Features
96
-
97
- ```tsx
98
- <CapBlock
99
- width="700px"
100
- borderLeftColor="#2466ea"
101
- isDeleteEnabled
102
- isCollapseEnabled
103
- deleteCallback={() => handleDelete()}
104
- deleteBlockMsg="Delete"
105
- collapseBlockMsg="Collapse"
106
- expandBlockMsg="Expand"
107
- componentName="user settings"
108
- pathBlockText={<span>Updated: Today</span>}
109
- >
110
- <h4>User Settings</h4>
111
- <p>Configure your preferences here.</p>
112
- </CapBlock>
113
- ```
114
-
115
- ### Nested Blocks
116
-
117
- ```tsx
118
- <CapBlock width="700px" borderLeftColor="#2466ea">
119
- <h4>Outer Block</h4>
120
- <CapBlock width="600px" borderLeftColor="#47af46">
121
- <p>Inner Block Content</p>
122
- </CapBlock>
123
- </CapBlock>
124
- ```
125
-
126
- ## Internationalization
127
-
128
- The component uses `LocaleHoc` for internationalization. The following props support translated strings:
129
-
130
- - `deleteBlockMsg` - Message shown in delete tooltip
131
- - `collapseBlockMsg` - Message shown in collapse tooltip
132
- - `expandBlockMsg` - Message shown in expand tooltip
133
-
134
- Example with react-intl:
135
-
136
- ```tsx
137
- import { useIntl } from 'react-intl';
138
-
139
- const MyComponent = () => {
140
- const intl = useIntl();
141
-
142
- return (
143
- <CapBlock
144
- isCollapseEnabled
145
- deleteBlockMsg={intl.formatMessage({ id: 'delete.block' })}
146
- collapseBlockMsg={intl.formatMessage({ id: 'collapse.block' })}
147
- expandBlockMsg={intl.formatMessage({ id: 'expand.block' })}
148
- >
149
- Content
150
- </CapBlock>
151
- );
152
- };
153
- ```
154
-
155
- ## TypeScript Types
156
-
157
- ```tsx
158
- import type { CapBlockProps } from '@capillarytech/blaze-ui/CapBlock';
159
- ```
160
-
161
- ## Styling
162
-
163
- The component uses SCSS modules with the following CSS class prefix: `cap-block`.
164
-
165
- Custom styling can be applied via:
166
- - `className` prop
167
- - CSS overrides targeting `.cap-block` class
168
- - Inline `width` and `borderLeftColor` are applied via style attribute
169
-
170
- ### CSS Variables Used
171
-
172
- The component uses these CSS variables from the design system:
173
- - Border color: `$CAP_G07` (grey border)
174
- - Delete background: `$CAP_COLOR_05` (light red)
175
- - Collapse background: `$CAP_G06` (light grey)
@@ -1,40 +0,0 @@
1
- # Migration Status: CapBorderedBox
2
-
3
- **Last Updated**: 2026-01-31 19:26:57
4
-
5
- ## Migration Steps
6
-
7
- - [x] **Step 0**: Setup branch and remote tracking
8
- - [x] **Step 1**: Migration Prompt 1 (Main migration)
9
- - [x] **Step 2**: Migration Prompt 2 (Storybook support)
10
- - [x] **Step 3**: Migration Prompt 3 (Unit tests)
11
- - [x] **Step 4**: Migration Prompt 4 (Visual test cases)
12
- - [x] **Step 5**: Linting (ESLint)
13
- - [x] **Step 6**: Pre-build Validation
14
- - [x] **Step 7**: Build blaze-ui
15
- - [x] **Step 8**: Visual Testing
16
- - [x] **Step 9**: CSS Analysis (if mismatches found)
17
- - [x] **Step 9.5**: CSS Analysis Completed
18
- - [x] **Step 10**: Git Commit & Push to branch (pre-commit hook will run tests)
19
- - [x] **Step 11**: Create Pull Request
20
-
21
- ## Visual Testing Results
22
-
23
- **Last Test**: 2026-01-31 19:26:57
24
- **Maximum Mismatch**: 0%
25
-
26
- ### Mismatched Variants:
27
- -
28
-
29
-
30
- ## CSS Fixes Applied
31
-
32
- **Date**: 2026-01-25 04:02:29
33
- **Summary**: CSS fixes applied based on visual testing analysis.
34
-
35
- _See full analysis in: `/Users/sarahkhader/repos/migration/blaze-ui/tools/visual-testing/report/CapBorderedBox/css-fix-analysis.md`_
36
-
37
-
38
- ## Notes
39
-
40
- _No notes yet._
@@ -1,124 +0,0 @@
1
- # CapCSVFileUploader
2
-
3
- CapCSVFileUploader component migrated from Ant Design v3 to v6.
4
-
5
- ## Migration Summary
6
-
7
- This component has been migrated from `cap-ui-library` to `blaze-ui` with the following changes:
8
-
9
- - Converted from JavaScript class component to TypeScript functional component
10
- - Uses SCSS modules for styling (imported as `import * as styles from './styles.scss'`)
11
- - Removed PropTypes and defaultProps (replaced with TypeScript types and default parameters)
12
- - Replaced `UNSAFE_componentWillReceiveProps` with `useEffect` hooks
13
- - Maintained backward compatibility with the existing API
14
-
15
- ## Breaking Changes
16
-
17
- **No breaking changes** - The component maintains **100% backward compatibility** with existing code. All props work exactly as before.
18
-
19
- ## Deprecated Props
20
-
21
- **No deprecated props** - This component does not use Ant Design components directly. It uses:
22
- - Native HTML `<input type="file">` element
23
- - `CapTag` component (which wraps Ant Design Tag, but that's handled in CapTag migration)
24
-
25
- ## Props
26
-
27
- | Prop | Type | Default | Description |
28
- |------|------|---------|-------------|
29
- | `fileName` | `string` | `''` | The name of the uploaded file |
30
- | `errorMessage` | `string` | - | Error message to display |
31
- | `numberOfEntriesMessage` | `string` | `'entries'` | Message text for number of entries |
32
- | `sampleCsvFilePath` | `string` | - | Path to sample CSV file for download |
33
- | `onUpload` | `(event: React.ChangeEvent<HTMLInputElement>) => void` | - | Callback when file is uploaded |
34
- | `showNumberOfEntries` | `boolean` | `true` | Whether to show the number of entries |
35
- | `onChipClose` | `() => void` | - | Callback when file chip is closed |
36
- | `checkFileSize` | `boolean` | `true` | Whether to check file size (5MB limit) |
37
- | `getNumberOfEntries` | `(count: number) => void` | - | Callback with the number of entries found |
38
- | `lineCount` | `number` | `0` | Initial line count |
39
- | `sampleCsvName` | `string` | `'Sample.csv'` | Name of the sample CSV file link |
40
- | `chooseFileBtnTxt` | `string` | `'Choose file'` | Text for the choose file button |
41
- | `fileSizeExceededTxt` | `string` | `'File size is greater than 5 MB'` | Error message when file size exceeds limit |
42
- | `csvFileErrorTxt` | `string` | `'Please upload a CSV file'` | Error message for non-CSV files |
43
- | `csvFileNoEntryTxt` | `string` | `'Please upload a file with atleast one entry'` | Error message for empty CSV files |
44
- | `isStoreFilter` | `boolean` | `false` | Whether this is used for store filtering |
45
- | `reuploadFileMsg` | `string` | `'Reupload file'` | Message for reupload button |
46
- | `storeUploadInfo` | `StoreUploadInfo[]` | - | Store upload information array |
47
- | `referenceId` | `string` | - | Reference ID for store upload tracking |
48
- | `failedStorePathIdentifier` | `string` | - | Identifier for failed store path |
49
- | `disabled` | `boolean` | - | Whether the uploader is disabled |
50
- | `storeSource` | `string` | - | Source of the store data |
51
-
52
- ## Usage Examples
53
-
54
- ### Basic Usage
55
-
56
- ```tsx
57
- import { CapCSVFileUploader } from '@capillarytech/blaze-ui';
58
-
59
- function FileUpload() {
60
- const handleUpload = (event: React.ChangeEvent<HTMLInputElement>) => {
61
- console.log('File uploaded:', event.target.files?.[0]);
62
- };
63
-
64
- return (
65
- <CapCSVFileUploader
66
- onUpload={handleUpload}
67
- sampleCsvFilePath="/path/to/sample.csv"
68
- />
69
- );
70
- }
71
- ```
72
-
73
- ### With Custom Messages
74
-
75
- ```tsx
76
- <CapCSVFileUploader
77
- onUpload={handleUpload}
78
- chooseFileBtnTxt="Select CSV File"
79
- csvFileErrorTxt="Only CSV files are allowed"
80
- fileSizeExceededTxt="File must be less than 5MB"
81
- />
82
- ```
83
-
84
- ### Store Filter Usage
85
-
86
- ```tsx
87
- <CapCSVFileUploader
88
- onUpload={handleUpload}
89
- isStoreFilter={true}
90
- storeUploadInfo={storeUploadInfo}
91
- referenceId={referenceId}
92
- failedStorePathIdentifier={failedStorePathIdentifier}
93
- storeSource={storeSource}
94
- disabled={disabled}
95
- />
96
- ```
97
-
98
- ## Code Improvements
99
-
100
- 1. **TypeScript support**: Full TypeScript definitions with proper prop types
101
- 2. **Functional component**: Converted from class component to functional component with hooks
102
- 3. **Modern React patterns**: Uses `useState` and `useEffect` instead of class state and lifecycle methods
103
- 4. **Removed deprecated APIs**: Replaced `UNSAFE_componentWillReceiveProps` with `useEffect` hooks
104
- 5. **SCSS modules**: Uses SCSS modules for styling with proper class name handling
105
-
106
- ## What Stayed the Same
107
-
108
- - All component props and behavior
109
- - DOM structure and component hierarchy
110
- - Conditional rendering logic
111
- - File validation logic (CSV check, file size check)
112
- - Entry counting logic
113
- - Error message display logic
114
- - API surface area (backward compatible)
115
-
116
- ## What Changed
117
-
118
- - **Removed**: `PropTypes` (replaced with TypeScript types)
119
- - **Removed**: `defaultProps` (replaced with default parameters)
120
- - **Removed**: Class component (replaced with functional component)
121
- - **Removed**: `UNSAFE_componentWillReceiveProps` (replaced with `useEffect`)
122
- - **Added**: TypeScript type definitions in `types.ts`
123
- - **Added**: SCSS module imports (`import * as styles`)
124
- - **Updated**: State management to use `useState` hooks
@@ -1,47 +0,0 @@
1
- # Migration Status: CapCSVFileUploader
2
-
3
- **Last Updated**: 2026-02-22 10:19:33
4
-
5
- ## Migration Steps
6
-
7
- - [x] **Step 0**: Setup branch and remote tracking
8
- - [] **Step 1**: Migration Prompt 1 (Main migration)
9
- - [x] **Step 1.5**: Export component in blaze-ui/components/index.ts
10
- - [] **Step 2**: Migration Prompt 2 (Storybook support)
11
- - [] **Step 2.5**: Verify deprecated props and prop changes (REQUIRED - enforced)
12
- - [] **Step 3**: Migration Prompt 3 (Unit tests)
13
- - [] **Step 4**: Migration Prompt 4 (Visual test cases)
14
- - [] **Step 5**: Linting (ESLint)
15
- - [] **Step 6**: Pre-build Validation
16
- - [x] **Step 7**: Build blaze-ui
17
- - [ ] **Step 8**: Visual Testing
18
- - [ ] **Step 8.1**: Pre-visual-test check (agent verification)
19
- - [ ] **Step 8.2**: Visual comparison
20
- - [ ] **Step 8.3**: Visual diff analysis (agent analysis)
21
- - [ ] **Step 9**: CSS Analysis (if mismatches found)
22
- - [ ] **Step 9.5**: CSS Analysis Completed
23
- - [ ] **Step 10**: Git Commit & Push to branch (pre-commit hook will run tests)
24
- - [ ] **Step 11**: Create Pull Request
25
-
26
- ## Deprecated Props Verification
27
-
28
- _No deprecated props verification results yet._
29
-
30
- **Note**: Step 2.5 is REQUIRED and enforced.
31
- - Focus: **Ant Design component prop changes** (e.g., Dropdown, Input, Alert, Tooltip, etc.)
32
- - Reference: MIGRATION_CHANGELOG_TEMPLATE.md for format, ANTD_V6_MIGRATION.md for Ant Design deprecated APIs
33
- - Skip: If original component doesn't exist in cap-ui-library
34
- - All deprecated Ant Design props and prop changes must be documented before proceeding.
35
-
36
- ## Visual Testing Results
37
-
38
- _No visual testing results yet._
39
-
40
- ## CSS Fixes Applied
41
-
42
- _No CSS fixes applied yet._
43
-
44
- ## Notes
45
-
46
- _No notes yet._
47
-
package/CapCard/README.md DELETED
@@ -1,85 +0,0 @@
1
- # CapCard
2
-
3
- Extended version of Ant Design Card component with Capillary styling.
4
-
5
- ## Migration from cap-ui-library
6
-
7
- ### Summary
8
-
9
- CapCard has been migrated from `@capillarytech/cap-ui-library` to `@capillarytech/blaze-ui` with the following changes:
10
-
11
- - **Ant Design v3 → v6**: Updated to use `antd-v5` (Ant Design v6)
12
- - **TypeScript**: Converted from PropTypes to TypeScript interfaces
13
- - **SCSS Modules**: Converted from styled-components to SCSS modules
14
- - **Functional Component**: Converted from class component to functional component with hooks
15
-
16
- ### Breaking Changes
17
-
18
- **No breaking changes from cap-ui-library v8.x**
19
-
20
- The component maintains full backward compatibility with the original cap-ui-library implementation. All props from Ant Design Card component are supported.
21
-
22
- ### Props
23
-
24
- CapCard accepts all props from Ant Design's [Card component](https://ant.design/components/card) plus:
25
-
26
- | Prop | Type | Default | Description |
27
- |------|------|---------|-------------|
28
- | `className` | `string` | - | Additional CSS class name |
29
- | `children` | `React.ReactNode` | - | Card content |
30
-
31
- ### Usage
32
-
33
- ```tsx
34
- import { CapCard } from '@capillarytech/blaze-ui';
35
-
36
- // Basic usage
37
- <CapCard title="Card Title">
38
- <p>Card content</p>
39
- </CapCard>
40
-
41
- // With custom className
42
- <CapCard className="custom-card" title="Card Title">
43
- <p>Card content</p>
44
- </CapCard>
45
-
46
- // With all Ant Design Card props
47
- <CapCard
48
- title="Card Title"
49
- extra={<a href="#">More</a>}
50
- hoverable
51
- bordered={false}
52
- >
53
- <p>Card content</p>
54
- </CapCard>
55
- ```
56
-
57
- ### Import Examples
58
-
59
- ```tsx
60
- // Default import
61
- import CapCard from '@capillarytech/blaze-ui/components/CapCard';
62
-
63
- // Named import
64
- import { CapCard } from '@capillarytech/blaze-ui';
65
-
66
- // Type import
67
- import type { CapCardProps } from '@capillarytech/blaze-ui';
68
- ```
69
-
70
- ### Styling
71
-
72
- The component uses SCSS modules with the following classes:
73
-
74
- - `.cap-card-wrapper`: Wrapper div around the Card component
75
- - `.cap-card-v2`: Applied to the Ant Design Card component
76
-
77
- Custom styling can be applied via the `className` prop or by overriding the SCSS classes.
78
-
79
- ### Differences from Source Component
80
-
81
- 1. **Wrapper Element**: The migrated component wraps the Card in a `div` with class `cap-card-wrapper` for styling purposes. This was added to maintain consistent styling structure.
82
-
83
- 2. **Font Weight**: The card head now has `font-weight-medium` applied via SCSS, which provides consistent typography across cards.
84
-
85
- 3. **Border Radius**: Uses SCSS variable `$radius-04` (0.286rem / 4px) instead of hardcoded pixel values.
package/CapCard/Status.md DELETED
@@ -1,41 +0,0 @@
1
- # Migration Status: CapCard
2
-
3
- **Last Updated**: 2026-01-19 02:27:48
4
-
5
- ## Migration Steps
6
-
7
- - [x] **Step 0**: Setup branch and remote tracking
8
- - [x] **Step 1**: Migration Prompt 1 (Main migration)
9
- - [x] **Step 2**: Migration Prompt 2 (Storybook support)
10
- - [x] **Step 3**: Migration Prompt 3 (Unit tests)
11
- - [x] **Step 4**: Linting (ESLint)
12
- - [x] **Step 5**: Pre-build Validation
13
- - [x] **Step 6**: Build blaze-ui
14
- - [x] **Step 7**: Visual Testing
15
- - [x] **Step 8**: CSS Analysis (if mismatches found)
16
- - [x] **Step 8.5**: CSS Analysis Completed
17
- - [x] **Step 8.9**: Run Tests & Fix Failures
18
- - [ ] **Step 9**: Git Commit & Push to branch
19
- - [ ] **Step 10**: Create Pull Request
20
-
21
- ## Visual Testing Results
22
-
23
- **Last Test**: 2026-01-19 02:27:47
24
- **Maximum Mismatch**: 93.89%
25
-
26
- ### Mismatched Variants:
27
- - ✅ All variants match perfectly!
28
-
29
-
30
- ## CSS Fixes Applied
31
-
32
- **Date**: 2026-01-19 02:27:47
33
- **Summary**: CSS fixes applied based on visual testing analysis.
34
-
35
- _See full analysis in: `/Users/sarahkhader/repos/migration/blaze-ui/tools/visual-testing/report/CapCard/css-fix-analysis.md`_
36
-
37
-
38
- ## Notes
39
-
40
- _No notes yet._
41
-
@@ -1,169 +0,0 @@
1
- # CapCardBox
2
-
3
- A card component with optional avatar display and custom border styling.
4
-
5
- ## Migration from cap-ui-library
6
-
7
- ### Summary
8
-
9
- CapCardBox has been migrated from `@capillarytech/cap-ui-library` to `@capillarytech/blaze-ui` with the following changes:
10
-
11
- - **Ant Design v3 → v6**: Updated to use `antd-v5` (Ant Design v6)
12
- - **TypeScript**: Converted from PropTypes to TypeScript interfaces
13
- - **SCSS Modules**: Converted from styled-components to SCSS modules
14
- - **Functional Component**: Converted from class component to functional component
15
-
16
- ### Breaking Changes
17
-
18
- **No breaking changes from cap-ui-library v8.x**
19
-
20
- The component maintains full backward compatibility with the original cap-ui-library implementation. All props from Ant Design Card component are supported.
21
-
22
- ### Deprecated Props
23
-
24
- The following Ant Design Card component props are deprecated but still supported for backward compatibility:
25
-
26
- #### `bordered` (deprecated)
27
-
28
- - **Status:** Deprecated (Ant Design Card component)
29
- - **Replacement:** Use `variant` prop instead
30
- - **Migration:** Replace `bordered={false}` with `variant="borderless"` or `bordered={true}` with `variant="outlined"`
31
- - **Removal:** Will be removed in next major version
32
-
33
- **Example:**
34
-
35
- ```tsx
36
- // ❌ Deprecated
37
- <CapCardBox bordered={false} content="Card content" />
38
-
39
- // ✅ Recommended
40
- <CapCardBox variant="borderless" content="Card content" />
41
- ```
42
-
43
- #### `headStyle` (deprecated)
44
-
45
- - **Status:** Deprecated (Ant Design Card component)
46
- - **Replacement:** Use `styles.header` prop instead
47
- - **Migration:** Replace `headStyle={{ ... }}` with `styles={{ header: { ... } }}`
48
- - **Removal:** Will be removed in next major version
49
-
50
- **Example:**
51
-
52
- ```tsx
53
- // ❌ Deprecated
54
- <CapCardBox headStyle={{ backgroundColor: 'blue' }} title="Card Title" content="Card content" />
55
-
56
- // ✅ Recommended
57
- <CapCardBox styles={{ header: { backgroundColor: 'blue' } }} title="Card Title" content="Card content" />
58
- ```
59
-
60
- #### `bodyStyle` (deprecated)
61
-
62
- - **Status:** Deprecated (Ant Design Card component)
63
- - **Replacement:** Use `styles.body` prop instead
64
- - **Migration:** Replace `bodyStyle={{ ... }}` with `styles={{ body: { ... } }}`
65
- - **Removal:** Will be removed in next major version
66
-
67
- **Example:**
68
-
69
- ```tsx
70
- // ❌ Deprecated
71
- <CapCardBox bodyStyle={{ padding: '20px' }} content="Card content" />
72
-
73
- // ✅ Recommended
74
- <CapCardBox styles={{ body: { padding: '20px' } }} content="Card content" />
75
- ```
76
-
77
- #### `maskStyle` (deprecated)
78
-
79
- - **Status:** Deprecated (Ant Design Card component)
80
- - **Replacement:** Use `styles.cover` prop instead
81
- - **Migration:** Replace `maskStyle={{ ... }}` with `styles={{ cover: { ... } }}`
82
- - **Removal:** Will be removed in next major version
83
-
84
- **Example:**
85
-
86
- ```tsx
87
- // ❌ Deprecated
88
- <CapCardBox maskStyle={{ opacity: 0.5 }} cover={<img src="..." />} content="Card content" />
89
-
90
- // ✅ Recommended
91
- <CapCardBox styles={{ cover: { opacity: 0.5 } }} cover={<img src="..." />} content="Card content" />
92
- ```
93
-
94
- **Note:** Deprecated Ant Design Card props are still accepted and passed through to the underlying Card component. Ant Design handles backward compatibility automatically. However, deprecated props may show console warnings in development mode and should be migrated to the new API.
95
-
96
- ### Props
97
-
98
- CapCardBox accepts all props from Ant Design's [Card component](https://ant.design/components/card) plus:
99
-
100
- | Prop | Type | Default | Description |
101
- |------|------|---------|-------------|
102
- | `wrapperClassName` | `string` | `''` | Custom class name for the wrapper element |
103
- | `className` | `string` | - | Custom class name for the Card component |
104
- | `avatarText` | `string` | - | Text to display in the avatar (shown above the card) |
105
- | `content` | `React.ReactNode` | - | Content to display inside the card |
106
- | `width` | `string` | - | Width of the card box wrapper |
107
- | `height` | `string` | - | Height of the card box wrapper |
108
- | `borderStyle` | `'DASHED' \| string` | - | Border style: 'DASHED' for dashed border, otherwise solid |
109
- | `topLeftIcon` | `React.ReactElement` | - | Icon to display in the top-left corner of the card |
110
-
111
- ### Usage
112
-
113
- ```tsx
114
- import { CapCardBox } from '@capillarytech/blaze-ui';
115
-
116
- // Basic usage
117
- <CapCardBox content={<p>Card content</p>} />
118
-
119
- // With avatar
120
- <CapCardBox avatarText="AB" content={<p>Card content</p>} />
121
-
122
- // With custom border style
123
- <CapCardBox borderStyle="DASHED" content={<p>Card content</p>} />
124
-
125
- // With top-left icon
126
- <CapCardBox topLeftIcon={<Icon />} content={<p>Card content</p>} />
127
-
128
- // With Ant Design Card props (v6 API)
129
- <CapCardBox
130
- title="Card Title"
131
- styles={{ body: { padding: '20px' } }}
132
- variant="outlined"
133
- content={<p>Card content</p>}
134
- />
135
- ```
136
-
137
- ### Import Examples
138
-
139
- ```tsx
140
- // Default import
141
- import CapCardBox from '@capillarytech/blaze-ui/components/CapCardBox';
142
-
143
- // Named import
144
- import { CapCardBox } from '@capillarytech/blaze-ui';
145
-
146
- // Type import
147
- import type { CapCardBoxProps } from '@capillarytech/blaze-ui';
148
- ```
149
-
150
- ### Styling
151
-
152
- The component uses SCSS modules with the following classes:
153
-
154
- - `.cap-card-box-wrapper`: Wrapper div around the Card component
155
- - `.cap-card-box-v2`: Applied to the Ant Design Card component
156
- - `.cap-card-box-body`: Applied to the Card body
157
- - `.cap-card-box-content`: Container for content with top-left icon
158
- - `.cap-card-box-avatar`: Applied to the Avatar component
159
- - `.cap-card-box-border-dashed`: Applied when `borderStyle="DASHED"`
160
- - `.cap-card-box-border-solid`: Applied when `borderStyle` is not "DASHED"
161
-
162
- Custom styling can be applied via the `className` or `wrapperClassName` props or by overriding the SCSS classes.
163
-
164
- ### Differences from Source Component
165
-
166
- 1. **Styling Approach**: Migrated from styled-components to SCSS modules for better performance and maintainability
167
- 2. **TypeScript Support**: Full TypeScript support with exported `CapCardBoxProps` interface
168
- 3. **Ant Design v6 API**: Uses `classNames` prop for Card component styling (v6 API)
169
- 4. **Border Styling**: Border styles are now applied via CSS classes instead of inline styles