@cyber-harbour/ui 1.0.52 → 1.0.54
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/index.d.mts +45 -4
- package/dist/index.d.ts +45 -4
- package/dist/index.js +241 -183
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +225 -167
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/Box/Box.tsx +22 -7
- package/src/Core/IconComponents/AndroidIcon.tsx +28 -0
- package/src/Core/IconComponents/IosIcon.tsx +20 -0
- package/src/Core/IconComponents/MicrosoftIcon.tsx +28 -0
- package/src/Core/IconComponents/index.ts +3 -0
- package/src/Core/Input/Input.tsx +46 -56
- package/src/Core/Label/Label.tsx +33 -17
- package/src/Core/LinerProgress/LinerProgress.tsx +53 -0
- package/src/Core/LinerProgress/index.ts +1 -0
- package/src/Core/Switch/Switch.tsx +71 -0
- package/src/Core/Switch/index.ts +1 -0
- package/src/Core/index.ts +2 -0
- package/src/Layouts/PageLayout/PageLayout.tsx +3 -2
- package/src/Theme/themes/dark.ts +19 -1
- package/src/Theme/themes/light.ts +19 -1
- package/src/Theme/types.ts +12 -0
package/src/Theme/types.ts
CHANGED
|
@@ -30,6 +30,7 @@ export type LabelSizeStyle = {
|
|
|
30
30
|
helpText: { fontSize: number | string; marginTop: number | string };
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
export type SwitchState = 'default' | 'checked' | 'disabled';
|
|
33
34
|
// Типи для spacing та breakpoints
|
|
34
35
|
export type Breakpoint = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
35
36
|
|
|
@@ -287,6 +288,17 @@ export type Theme = {
|
|
|
287
288
|
color: string;
|
|
288
289
|
helpTextColor: string;
|
|
289
290
|
};
|
|
291
|
+
leanerProgress: {
|
|
292
|
+
background: string;
|
|
293
|
+
progressColor: string;
|
|
294
|
+
};
|
|
295
|
+
switch: Record<
|
|
296
|
+
SwitchState,
|
|
297
|
+
{
|
|
298
|
+
background: string;
|
|
299
|
+
color: string;
|
|
300
|
+
}
|
|
301
|
+
>;
|
|
290
302
|
};
|
|
291
303
|
|
|
292
304
|
//TODO check and refactoring
|