@capillarytech/blaze-ui 2.1.1-beta.1 → 2.3.1-beta.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.
- package/dist/CapButton/index.js +1 -43
- package/dist/CapButton/index.js.map +1 -1
- package/dist/CapError/CapError.d.ts +8 -0
- package/dist/CapError/CapError.d.ts.map +1 -0
- package/dist/CapError/CapError.interfaces.d.ts +14 -0
- package/dist/CapError/CapError.interfaces.d.ts.map +1 -0
- package/dist/CapError/README.md +88 -0
- package/dist/CapError/index.d.ts +3 -0
- package/dist/CapError/index.d.ts.map +1 -0
- package/dist/CapError/index.js +708 -0
- package/dist/CapError/index.js.map +1 -0
- package/dist/CapError/tests/CapError.mockData.d.ts +46 -0
- package/dist/CapError/tests/CapError.mockData.d.ts.map +1 -0
- package/dist/CapError/tests/CapError.test.d.ts +2 -0
- package/dist/CapError/tests/CapError.test.d.ts.map +1 -0
- package/dist/CapIcon/CapIcon.d.ts.map +1 -1
- package/dist/CapIcon/index.js +1 -43
- package/dist/CapIcon/index.js.map +1 -1
- package/dist/CapImage/CapImage.d.ts +1 -0
- package/dist/CapImage/CapImage.d.ts.map +1 -1
- package/dist/CapImage/index.js +2 -2
- package/dist/CapImage/index.js.map +1 -1
- package/dist/CapTooltipWithInfo/index.js +1 -43
- package/dist/CapTooltipWithInfo/index.js.map +1 -1
- package/dist/CapUnifiedSelect/index.js +1 -43
- package/dist/CapUnifiedSelect/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +97 -422
- package/dist/index.js.map +1 -1
- package/dist/styled/variables.scss +0 -2
- package/package.json +11 -6
- package/dist/CapSlideBox/CapSlideBox.d.ts +0 -5
- package/dist/CapSlideBox/CapSlideBox.d.ts.map +0 -1
- package/dist/CapSlideBox/CapSlideBox.interfaces.d.ts +0 -15
- package/dist/CapSlideBox/CapSlideBox.interfaces.d.ts.map +0 -1
- package/dist/CapSlideBox/README.md +0 -68
- package/dist/CapSlideBox/index.d.ts +0 -3
- package/dist/CapSlideBox/index.d.ts.map +0 -1
- package/dist/CapSlideBox/index.js +0 -18456
- package/dist/CapSlideBox/index.js.map +0 -1
- package/dist/CapSlideBox/tests/CapSlideBox.mockData.d.ts +0 -16
- package/dist/CapSlideBox/tests/CapSlideBox.mockData.d.ts.map +0 -1
- package/dist/CapSlideBox/tests/CapSlideBox.test.d.ts +0 -2
- package/dist/CapSlideBox/tests/CapSlideBox.test.d.ts.map +0 -1
- package/dist/CapSlideBox/tests/__snapshots__/CapSlideBox.test.tsx.snap +0 -637
- package/dist/assets/Icons/Back.d.ts +0 -7
- package/dist/assets/Icons/Back.d.ts.map +0 -1
- package/dist/assets/Icons/index.d.ts +0 -2
- package/dist/assets/Icons/index.d.ts.map +0 -1
|
@@ -65,8 +65,6 @@ $cap-white-overlay: rgba(255, 255, 255, 0.8);
|
|
|
65
65
|
$cap-black: #000000;
|
|
66
66
|
$cap-black-alpha01: #00000022;
|
|
67
67
|
$cap-black-alpha02: #000000de;
|
|
68
|
-
$cap-black-overlay: rgba(0, 0, 0, 0.56);
|
|
69
|
-
$cap-shadow-color: rgba(0, 0, 0, 0.12);
|
|
70
68
|
|
|
71
69
|
// Semantic colors
|
|
72
70
|
$color-error: #ff4d4f;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capillarytech/blaze-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1-beta.0",
|
|
4
4
|
"description": "Capillary UI component library with Ant Design v6",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -170,6 +170,11 @@
|
|
|
170
170
|
"require": "./dist/CapDropdown/index.js",
|
|
171
171
|
"types": "./dist/CapDropdown/index.d.ts"
|
|
172
172
|
},
|
|
173
|
+
"./CapError": {
|
|
174
|
+
"import": "./dist/CapError/index.js",
|
|
175
|
+
"require": "./dist/CapError/index.js",
|
|
176
|
+
"types": "./dist/CapError/index.d.ts"
|
|
177
|
+
},
|
|
173
178
|
"./CapForm": {
|
|
174
179
|
"import": "./dist/CapForm/index.js",
|
|
175
180
|
"require": "./dist/CapForm/index.js",
|
|
@@ -205,6 +210,11 @@
|
|
|
205
210
|
"require": "./dist/CapLabel/index.js",
|
|
206
211
|
"types": "./dist/CapLabel/index.d.ts"
|
|
207
212
|
},
|
|
213
|
+
"./CapLogin": {
|
|
214
|
+
"import": "./dist/CapLogin/index.js",
|
|
215
|
+
"require": "./dist/CapLogin/index.js",
|
|
216
|
+
"types": "./dist/CapLogin/index.d.ts"
|
|
217
|
+
},
|
|
208
218
|
"./CapMenu": {
|
|
209
219
|
"import": "./dist/CapMenu/index.js",
|
|
210
220
|
"require": "./dist/CapMenu/index.js",
|
|
@@ -225,11 +235,6 @@
|
|
|
225
235
|
"require": "./dist/CapSkeleton/index.js",
|
|
226
236
|
"types": "./dist/CapSkeleton/index.d.ts"
|
|
227
237
|
},
|
|
228
|
-
"./CapSlideBox": {
|
|
229
|
-
"import": "./dist/CapSlideBox/index.js",
|
|
230
|
-
"require": "./dist/CapSlideBox/index.js",
|
|
231
|
-
"types": "./dist/CapSlideBox/index.d.ts"
|
|
232
|
-
},
|
|
233
238
|
"./CapSpin": {
|
|
234
239
|
"import": "./dist/CapSpin/index.js",
|
|
235
240
|
"require": "./dist/CapSpin/index.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CapSlideBox.d.ts","sourceRoot":"","sources":["../../components/CapSlideBox/CapSlideBox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAKxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAK5D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAqH3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface CapSlideBoxProps {
|
|
3
|
-
header: ReactNode;
|
|
4
|
-
footer?: ReactNode;
|
|
5
|
-
content: ReactNode;
|
|
6
|
-
show?: boolean;
|
|
7
|
-
handleClose: () => void;
|
|
8
|
-
size?: 'size-s' | 'size-r' | 'size-l' | 'size-xl';
|
|
9
|
-
className?: string;
|
|
10
|
-
position?: 'left' | 'right';
|
|
11
|
-
closeIconSize?: 'xs' | 's' | 'm' | 'l';
|
|
12
|
-
closeIconPosition?: 'left' | 'right';
|
|
13
|
-
closeIconType?: 'close' | 'back';
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=CapSlideBox.interfaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CapSlideBox.interfaces.d.ts","sourceRoot":"","sources":["../../components/CapSlideBox/CapSlideBox.interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACrC,aAAa,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAClC"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# CapSlideBox
|
|
2
|
-
|
|
3
|
-
A slide-out panel component for displaying content in a side drawer.
|
|
4
|
-
|
|
5
|
-
## Migration from cap-ui-library to blaze-ui
|
|
6
|
-
|
|
7
|
-
### Summary of Changes
|
|
8
|
-
|
|
9
|
-
- ✅ **TypeScript conversion**: Converted from JavaScript to TypeScript with proper type definitions
|
|
10
|
-
- ✅ **Functional component**: Converted from class component to functional component using React hooks
|
|
11
|
-
- ✅ **SCSS modules**: Migrated styles to SCSS modules with proper namespacing
|
|
12
|
-
- ✅ **Pixel to rem conversion**: All pixel values converted to rem units (14px = 1rem)
|
|
13
|
-
- ✅ **SCSS variables**: Using design system variables from `components/styled/variables.scss`
|
|
14
|
-
|
|
15
|
-
### Breaking Changes
|
|
16
|
-
|
|
17
|
-
**No breaking changes from cap-ui-library v8.x**
|
|
18
|
-
|
|
19
|
-
The component API remains fully backward compatible. All props work exactly the same as before.
|
|
20
|
-
|
|
21
|
-
### Props
|
|
22
|
-
|
|
23
|
-
| Prop | Type | Default | Description |
|
|
24
|
-
|------|------|---------|-------------|
|
|
25
|
-
| `header` | `ReactNode` | required | Header content (string or React element) |
|
|
26
|
-
| `content` | `ReactNode` | required | Main content to display in the slide box |
|
|
27
|
-
| `handleClose` | `() => void` | required | Callback function when close icon is clicked |
|
|
28
|
-
| `show` | `boolean` | `undefined` | Controls visibility of the slide box |
|
|
29
|
-
| `footer` | `ReactNode` | `undefined` | Optional footer content |
|
|
30
|
-
| `size` | `'size-s' \| 'size-r' \| 'size-l' \| 'size-xl'` | `'size-r'` | Size variant of the slide box |
|
|
31
|
-
| `position` | `'left' \| 'right'` | `'right'` | Position of the slide box |
|
|
32
|
-
| `className` | `string` | `undefined` | Additional CSS class names |
|
|
33
|
-
| `closeIconSize` | `'xs' \| 's' \| 'm' \| 'l'` | `'m'` | Size of the close icon |
|
|
34
|
-
| `closeIconPosition` | `'left' \| 'right'` | `'right'` | Position of the close icon in header |
|
|
35
|
-
| `closeIconType` | `'close' \| 'back'` | `'close'` | Type of close icon to display |
|
|
36
|
-
|
|
37
|
-
### Size Variants
|
|
38
|
-
|
|
39
|
-
- **size-s**: Small (25vw width, min: 372px, max: 400px)
|
|
40
|
-
- **size-r**: Regular (50vw width, min: 660px, max: 800px) - Default
|
|
41
|
-
- **size-l**: Large (75vw width, min: 948px, max: 1140px)
|
|
42
|
-
- **size-xl**: Extra Large (fixed: 1180px)
|
|
43
|
-
|
|
44
|
-
### Features
|
|
45
|
-
|
|
46
|
-
- **Automatic scroll shadow**: Shows shadow on header/footer when content is scrolled
|
|
47
|
-
- **Body scroll lock**: Prevents body scrolling when slide box is open
|
|
48
|
-
- **Responsive sizes**: Adapts to viewport width with min/max constraints
|
|
49
|
-
- **Flexible positioning**: Can slide from left or right
|
|
50
|
-
- **Custom header layout**: Close icon can be positioned on left or right
|
|
51
|
-
- **Footer support**: Optional fixed footer at bottom
|
|
52
|
-
- **Throttled scroll**: Optimized scroll event handling
|
|
53
|
-
|
|
54
|
-
### Migration Guide for Consumers
|
|
55
|
-
|
|
56
|
-
No migration required! The component API is fully backward compatible. If you're already using `CapSlideBox` from cap-ui-library, you can simply update your imports to point to blaze-ui:
|
|
57
|
-
|
|
58
|
-
**Before:**
|
|
59
|
-
```tsx
|
|
60
|
-
import CapSlideBox from '@capillarytech/cap-ui-library/components/CapSlideBox';
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
**After:**
|
|
64
|
-
```tsx
|
|
65
|
-
import CapSlideBox from '@capillarytech/blaze-ui/components/CapSlideBox';
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
All your existing props and usage patterns will continue to work without any changes.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../components/CapSlideBox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
|