@randstad-uca/design-system 1.0.45 → 1.0.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randstad-uca/design-system",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -21,6 +21,9 @@ export interface FormProps {
21
21
  maxLength?: number;
22
22
  required?: boolean;
23
23
  optional?: boolean;
24
+ heightTextArea?: string;
25
+ maxHeightTextArea?: string;
26
+ helperAlign?: 'left' | 'center' | 'right' | 'justify';
24
27
  }
25
28
  declare const meta: Meta<FormProps>;
26
29
  export default meta;
@@ -28,15 +31,16 @@ type Story = StoryObj<FormProps>;
28
31
  export declare const Default: Story;
29
32
  export declare const Filled: Story;
30
33
  export declare const Disabled: Story;
31
- export declare const WithHelper: Story;
34
+ export declare const WithHelperCenter: Story;
32
35
  export declare const WithError: Story;
33
- export declare const WithHelperError: Story;
36
+ export declare const WithHelperLeftError: Story;
34
37
  export declare const WithSuccess: Story;
35
38
  export declare const WithIconLeft: Story;
36
39
  export declare const WithIconRight: Story;
37
40
  export declare const PasswordField: Story;
38
41
  export declare const TextareaField: Story;
39
- export declare const TextareaWithHelper: Story;
42
+ export declare const TextareaWithHelperRight: Story;
43
+ export declare const TextareaWithHeightAndScroll: Story;
40
44
  export declare const TextareaWithError: Story;
41
45
  export declare const TextareaDisabled: Story;
42
46
  export declare const Help: Story;
@@ -1,151 +1,150 @@
1
1
  /* Base form styles */
2
2
  .form {
3
- display: flex;
4
- flex-direction: column;
5
- gap: 0.3rem;
6
- font-family: 'Graphik', sans-serif;
3
+ display: flex;
4
+ flex-direction: column;
5
+ gap: 0.3rem;
6
+ font-family: 'Graphik', sans-serif;
7
7
  }
8
8
 
9
9
  /* Form labels */
10
10
  .form-label {
11
- font-size: 16px;
12
- line-height: 25px;
13
- font-weight: 400;
14
- color: var(--secondary-color-80);
11
+ font-size: 16px;
12
+ line-height: 25px;
13
+ font-weight: 400;
14
+ color: var(--secondary-color-80);
15
15
  }
16
16
 
17
17
  /* Form inputs */
18
18
  .form-input {
19
- font-size: 16px;
20
- line-height: 30px;
21
- padding: 10px;
22
- border: 1px solid var(--secondary-color-10);
23
- border-radius: 4px;
24
- outline: none;
25
- transition: border-color 0.3s ease, box-shadow 0.3s ease;
19
+ font-size: 16px;
20
+ line-height: 30px;
21
+ padding: 10px;
22
+ border: 1px solid var(--secondary-color-10);
23
+ border-radius: 4px;
24
+ outline: none;
25
+ transition: border-color 0.3s ease, box-shadow 0.3s ease;
26
26
  }
27
27
 
28
28
  .form.error:not(.disabled) .form-input:hover {
29
- box-shadow: 0px 0px 0px 4px #E00F0F1A;
29
+ box-shadow: 0px 0px 0px 4px #E00F0F1A;
30
30
  }
31
31
 
32
32
  .form:not(.disabled) .form-input:hover {
33
- box-shadow: 0px 0px 0px 4px #0F19411A;
33
+ box-shadow: 0px 0px 0px 4px #0F19411A;
34
34
  }
35
35
 
36
36
  .form-input:focus {
37
- border: 1px solid var(--primary-color);
37
+ border: 1px solid var(--primary-color);
38
38
  }
39
39
 
40
40
  .form.error .form-input {
41
- background-color: #FDF3F3;
42
- border-color: #e3342f;
41
+ background-color: #FDF3F3;
42
+ border-color: #e3342f;
43
43
  }
44
44
 
45
45
  .form-input.success {
46
- border-color: #28a745;
47
- background-color: #d4edda;
46
+ border-color: #28a745;
47
+ background-color: #d4edda;
48
48
  }
49
49
 
50
50
  input::placeholder {
51
- color: var(--secondary-color-40);
52
- font-size: 16px;
53
- line-height: 30px;
54
- font-weight: 400;
51
+ color: var(--secondary-color-40);
52
+ font-size: 16px;
53
+ line-height: 30px;
54
+ font-weight: 400;
55
55
  }
56
56
 
57
57
  /* Buttons inside forms */
58
58
  .form-button {
59
- font-size: 16px;
60
- padding: 10px 20px;
61
- background-color: #007bff;
62
- color: #ffffff;
63
- border: none;
64
- border-radius: 4px;
65
- cursor: pointer;
66
- transition: background-color 0.3s ease;
59
+ font-size: 16px;
60
+ padding: 10px 20px;
61
+ background-color: #007bff;
62
+ color: #ffffff;
63
+ border: none;
64
+ border-radius: 4px;
65
+ cursor: pointer;
66
+ transition: background-color 0.3s ease;
67
67
  }
68
68
 
69
69
  .helper-description {
70
- font-size: 16px;
71
- font-weight: 400;
72
- line-height: 25px;
73
- text-align: left;
74
- margin: 0px;
75
- color: var(--secondary-color-40);
70
+ font-size: 16px;
71
+ font-weight: 400;
72
+ line-height: 25px;
73
+ margin: 0px;
74
+ color: var(--secondary-color-40);
76
75
  }
77
76
 
78
77
  .error-message {
79
- font-size: 16px;
80
- line-height: 25px;
81
- color: var(--ui-negative);
82
- margin: 0px;
78
+ font-size: 16px;
79
+ line-height: 25px;
80
+ color: var(--ui-negative);
81
+ margin: 0px;
83
82
  }
84
83
 
85
84
  .toggle-password {
86
- background: none;
87
- border: none;
88
- cursor: pointer;
89
- font-size: 16px;
90
- padding: 5px;
85
+ background: none;
86
+ border: none;
87
+ cursor: pointer;
88
+ font-size: 16px;
89
+ padding: 5px;
91
90
  }
92
91
 
93
92
  .form-container {
94
- position: relative;
95
- display: flex;
96
- align-items: center;
97
- }
98
-
99
- .input-with-button {
100
- display: flex;
101
- align-items: center;
102
- position: relative;
103
- }
104
-
105
- .input-with-button input {
106
- width: 100%;
107
- padding-right: 40px; /* Espacio para el botón */
108
- }
109
-
110
- .input-with-button button {
111
- position: absolute;
112
- right: 10px;
113
- top: 50%;
114
- transform: translateY(-50%); /* Siempre centrado verticalmente */
115
- background: transparent;
116
- border: none;
117
- cursor: pointer;
118
- display: flex;
119
- align-items: center;
120
- justify-content: center;
121
- width: 40px; /* Ajusta según necesites */
122
- height: 40px; /* Asegura que el botón tenga un tamaño uniforme */
123
- }
124
-
125
- .toggle-password randstad-icon {
126
- width: 100%;
127
- height: 100%;
128
- max-width: 32px;
129
- max-height: 32px;
130
- }
131
-
132
- textarea {
133
- font-family: Graphik;
134
- font-weight: 400;
135
- font-size: 18px;
136
- line-height: 30px;
137
- letter-spacing: 0%;
138
- }
139
-
140
-
141
- textarea.form-input {
142
- /* Estilos específicos para textarea */
143
- min-height: 100px; /* Diferenciarlo del input */
144
- resize: none;
145
- }
146
-
147
- .form.disabled textarea.form-input,
148
- .form.disabled input.form-input {
149
- background-color: #f5f5f5;
150
- cursor: default;
151
- }
93
+ position: relative;
94
+ display: flex;
95
+ align-items: center;
96
+ }
97
+
98
+ .input-with-button {
99
+ display: flex;
100
+ align-items: center;
101
+ position: relative;
102
+ }
103
+
104
+ .input-with-button input {
105
+ width: 100%;
106
+ padding-right: 40px; /* Espacio para el botón */
107
+ }
108
+
109
+ .input-with-button button {
110
+ position: absolute;
111
+ right: 10px;
112
+ top: 50%;
113
+ transform: translateY(-50%); /* Siempre centrado verticalmente */
114
+ background: transparent;
115
+ border: none;
116
+ cursor: pointer;
117
+ display: flex;
118
+ align-items: center;
119
+ justify-content: center;
120
+ width: 40px; /* Ajusta según necesites */
121
+ height: 40px; /* Asegura que el botón tenga un tamaño uniforme */
122
+ }
123
+
124
+ .toggle-password randstad-icon {
125
+ width: 100%;
126
+ height: 100%;
127
+ max-width: 32px;
128
+ max-height: 32px;
129
+ }
130
+
131
+ textarea {
132
+ font-family: Graphik;
133
+ font-weight: 400;
134
+ font-size: 18px;
135
+ line-height: 30px;
136
+ letter-spacing: 0%;
137
+ }
138
+
139
+
140
+ textarea.form-input {
141
+ /* Estilos específicos para textarea */
142
+ min-height: 100px; /* Diferenciarlo del input */
143
+ resize: none;
144
+ }
145
+
146
+ .form.disabled textarea.form-input,
147
+ .form.disabled input.form-input {
148
+ background-color: #f5f5f5;
149
+ cursor: default;
150
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randstad-uca/design-system",
3
- "version": "1.0.45",
3
+ "version": "1.0.47",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",