Skip to content

Commit

Permalink
feat(custom): удаление ripple
Browse files Browse the repository at this point in the history
  • Loading branch information
Weksik committed Jul 3, 2024
1 parent cbff7bd commit 6639d34
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 226 deletions.
2 changes: 0 additions & 2 deletions src/lib/shared/hooks/index.ts

This file was deleted.

59 changes: 0 additions & 59 deletions src/lib/shared/hooks/useRipple.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/shared/types/colorSchemeTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export interface ColorSchemeState {
backgroundColor: string;
borderColor: string;
textColor: string;
rippleColor: string;
}

export interface VariantColorSchemeConfig {
Expand Down
39 changes: 0 additions & 39 deletions src/lib/shared/ui/button/RippleContainer.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/lib/shared/ui/button/stories/Button.stories.tsx

This file was deleted.

46 changes: 0 additions & 46 deletions src/lib/shared/ui/button/styles/Ripple.styles.ts

This file was deleted.

24 changes: 0 additions & 24 deletions src/lib/shared/ui/styles/containedColorSchemeStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,155 +9,131 @@ export const containedColorSchemeStyles: Record<
backgroundColor: "#4E76FC",
borderColor: "#4E76FC",
textColor: "#ffffff",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
hover: {
backgroundColor: "#264ED2",
borderColor: "#264ED2",
textColor: "#ffffff",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
pressed: {
backgroundColor: "#4E76FC",
borderColor: "#4E76FC",
textColor: "#FFFFFF",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
disabled: {
backgroundColor: "#f2f2f3",
borderColor: "transparent",
textColor: "#a2a4aa",
rippleColor: "transparent",
},
},
secondary: {
idle: {
backgroundColor: "#e4e5ed",
borderColor: "#e4e5ed",
textColor: "#4f5360",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
hover: {
backgroundColor: "#d2d5e2",
borderColor: "#d2d5e2",
textColor: "#4f5360",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
pressed: {
backgroundColor: "rgba(228, 229, 237, 0.08)",
borderColor: "rgba(228, 229, 237, 0.5)",
textColor: "#4f5360",
rippleColor: "rgba(228, 229, 237, 0.3)",
},
disabled: {
backgroundColor: "#f2f2f3",
borderColor: "transparent",
textColor: "#a2a4aa",
rippleColor: "transparent",
},
},
error: {
idle: {
backgroundColor: "#E9433E",
borderColor: "#E9433E",
textColor: "#ffffff",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
hover: {
backgroundColor: "#BE3632",
borderColor: "#BE3632",
textColor: "#ffffff",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
pressed: {
backgroundColor: "rgba(233, 67, 62, 0.08)",
borderColor: "rgba(233, 67, 62, 0.5)",
textColor: "#E9433E",
rippleColor: "rgba(233, 67, 62, 0.3)",
},
disabled: {
backgroundColor: "#f2f2f3",
borderColor: "transparent",
textColor: "#a2a4aa",
rippleColor: "transparent",
},
},
warning: {
idle: {
backgroundColor: "#FF6600",
borderColor: "#FF6600",
textColor: "#FFFFFF",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
hover: {
backgroundColor: "#E25C02",
borderColor: "#E25C02",
textColor: "#FFFFFF",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
pressed: {
backgroundColor: "rgba(255, 102, 0, 0.08)",
borderColor: "rgba(255, 102, 0, 0.5)",
textColor: "#FFFFFF",
rippleColor: "rgba(255, 102, 0, 0.3)",
},
disabled: {
backgroundColor: "#f2f2f3",
borderColor: "transparent",
textColor: "#a2a4aa",
rippleColor: "transparent",
},
},
success: {
idle: {
backgroundColor: "#268B61",
borderColor: "#268B61",
textColor: "#ffffff",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
hover: {
backgroundColor: "#226E50",
borderColor: "#226E50",
textColor: "#ffffff",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
pressed: {
backgroundColor: "rgba(38, 139, 97, 0.08)",
borderColor: "rgba(38, 139, 97, 0.5)",
textColor: "#268B61",
rippleColor: "rgba(38, 139, 97, 0.3)",
},
disabled: {
backgroundColor: "#f2f2f3",
borderColor: "transparent",
textColor: "#a2a4aa",
rippleColor: "transparent",
},
},
info: {
idle: {
backgroundColor: "#4E76FC",
borderColor: "#4E76FC",
textColor: "#ffffff",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
hover: {
backgroundColor: "#264ED2",
borderColor: "#264ED2",
textColor: "#ffffff",
rippleColor: "rgba(255, 255, 255, 0.3)",
},
pressed: {
backgroundColor: "rgba(78, 118, 252, 0.08)",
borderColor: "rgba(78, 118, 252, 0.5)",
textColor: "#4E76FC",
rippleColor: "rgba(78, 118, 252, 0.3)",
},
disabled: {
backgroundColor: "#f2f2f3",
borderColor: "transparent",
textColor: "#a2a4aa",
rippleColor: "transparent",
},
},
};
Loading

0 comments on commit 6639d34

Please sign in to comment.