Skip to content

Commit c79aaa0

Browse files
author
Hector Arce De Las Heras
committed
Implement new designs for Kubit and Wireframe
This commit introduces new designs for the Kubit and Wireframe components. The updated designs enhance the user interface, improving the overall user experience and aligning with the latest design guidelines. These changes will ensure that our application remains modern and user-friendly.
1 parent db32b64 commit c79aaa0

File tree

8 files changed

+18
-2
lines changed

8 files changed

+18
-2
lines changed

src/designSystem/kubit/components/checkbox/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const CHECKBOX_STYLES: CheckboxStylesType<CheckboxVariantType> = {
101101
color: COLORS.DISABLED.color_accentDisabled_icon_50,
102102
},
103103
},
104+
// deprecated - This `error` state will be deprecated in the future
104105
[CheckboxStateType.ERROR]: {
105106
...commonProps,
106107
checkbox: {

src/designSystem/kubit/components/inputDate/styles.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// types
2-
import { InputHelpMessagePosition, InputState } from '@/components/input/types';
2+
import { InputHelpMessagePosition, InputState, LABEL_TYPE } from '@/components/input/types';
33
import { InputDateStylesType } from '@/components/inputDate/types';
44
import { DeviceBreakpointsType } from '@/types';
55

@@ -26,6 +26,9 @@ const commonProps = {
2626
[DeviceBreakpointsType.TABLET]: true,
2727
[DeviceBreakpointsType.MOBILE]: true,
2828
},
29+
label: {
30+
type: LABEL_TYPE.STANDARD,
31+
},
2932
};
3033

3134
export const INPUT_DATE_STYLES: InputDateStylesType<InputDateVariantType> = {

src/designSystem/kubit/components/radioButton/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const radioButtonDefaultTokens = {
8989
...commonVariantsTokens,
9090
radioButton: {
9191
...commonVariantsTokens.radioButton,
92+
cursor: 'not-allowed',
9293
background_color: COLORS.DISABLED.color_accentDisabled_bg_150,
9394
border_color: COLORS.DISABLED.color_accentDisabled_border_50,
9495
},
@@ -97,6 +98,7 @@ const radioButtonDefaultTokens = {
9798
...commonVariantsTokens,
9899
radioButton: {
99100
...commonVariantsTokens.radioButton,
101+
cursor: 'not-allowed',
100102
background_color: COLORS.DISABLED.color_accentDisabled_bg_150,
101103
border_color: COLORS.DISABLED.color_accentDisabled_border_50,
102104
},

src/designSystem/kubit/components/radioButtonGroup/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const radioButtonDefaultTokens = {
8888
...commonVariantsTokens,
8989
radioButton: {
9090
...commonVariantsTokens.radioButton,
91+
cursor: 'not-allowed',
9192
background_color: COLORS.DISABLED.color_accentDisabled_bg_150,
9293
border_color: COLORS.DISABLED.color_accentDisabled_border_50,
9394
},
@@ -96,6 +97,7 @@ const radioButtonDefaultTokens = {
9697
...commonVariantsTokens,
9798
radioButton: {
9899
...commonVariantsTokens.radioButton,
100+
cursor: 'not-allowed',
99101
background_color: COLORS.DISABLED.color_accentDisabled_bg_150,
100102
border_color: COLORS.DISABLED.color_accentDisabled_border_50,
101103
},

src/designSystem/kubitWireframe/commons/components/checkbox/styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export const getCheckboxStyles = (COLORS: {
105105
color: COLORS.DISABLED.color_accentDisabled_icon_50,
106106
},
107107
},
108+
// deprecated - This `error` state will be deprecated in the future
108109
[CheckboxStateType.ERROR]: {
109110
...commonProps(COLORS),
110111
checkbox: {

src/designSystem/kubitWireframe/commons/components/inputDate/styles.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InputHelpMessagePosition, InputState } from '@/components/input/types';
1+
import { InputHelpMessagePosition, InputState, LABEL_TYPE } from '@/components/input/types';
22
import { InputDateStylesType } from '@/components/inputDate/types';
33
import { DeviceBreakpointsType } from '@/types';
44

@@ -24,6 +24,9 @@ const commonProps = {
2424
[DeviceBreakpointsType.TABLET]: true,
2525
[DeviceBreakpointsType.MOBILE]: true,
2626
},
27+
label: {
28+
type: LABEL_TYPE.STANDARD,
29+
},
2730
};
2831

2932
export const getInputDateStyles = (COLORS: {

src/designSystem/kubitWireframe/commons/components/radioButton/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const getRadioButtonGroupStyles = (COLORS: {
9090
...commonVariantsTokens(COLORS),
9191
radioButton: {
9292
...commonVariantsTokens(COLORS).radioButton,
93+
cursor: 'not-allowed',
9394
background_color: COLORS.DISABLED.color_accentDisabled_bg_150,
9495
border_color: COLORS.DISABLED.color_accentDisabled_border_50,
9596
},
@@ -98,6 +99,7 @@ export const getRadioButtonGroupStyles = (COLORS: {
9899
...commonVariantsTokens(COLORS),
99100
radioButton: {
100101
...commonVariantsTokens(COLORS).radioButton,
102+
cursor: 'not-allowed',
101103
background_color: COLORS.DISABLED.color_accentDisabled_bg_150,
102104
border_color: COLORS.DISABLED.color_accentDisabled_border_50,
103105
},

src/designSystem/kubitWireframe/commons/components/radioButtonGroup/styles.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ export const getRadioButtonGroupStyles = (COLORS: {
9090
...commonVariantsTokens(COLORS),
9191
radioButton: {
9292
...commonVariantsTokens(COLORS).radioButton,
93+
cursor: 'not-allowed',
9394
background_color: COLORS.DISABLED.color_accentDisabled_bg_150,
9495
border_color: COLORS.DISABLED.color_accentDisabled_border_50,
9596
},
@@ -98,6 +99,7 @@ export const getRadioButtonGroupStyles = (COLORS: {
9899
...commonVariantsTokens(COLORS),
99100
radioButton: {
100101
...commonVariantsTokens(COLORS).radioButton,
102+
cursor: 'not-allowed',
101103
background_color: COLORS.DISABLED.color_accentDisabled_bg_150,
102104
border_color: COLORS.DISABLED.color_accentDisabled_border_50,
103105
},

0 commit comments

Comments
 (0)