@randstad-uca/design-system 1.0.30 → 1.0.32
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/assets/icons/arrow_back.svg +10 -0
- package/dist/assets/icons/arrow_down.svg +3 -0
- package/dist/assets/icons/arrow_left.svg +3 -0
- package/dist/assets/icons/arrow_right.svg +3 -0
- package/dist/assets/icons/arrow_up.svg +3 -0
- package/dist/assets/icons/ayuda.svg +12 -0
- package/dist/assets/icons/calendar.svg +20 -0
- package/dist/assets/icons/check.svg +10 -0
- package/dist/assets/icons/close.svg +10 -0
- package/dist/assets/icons/edit.svg +10 -0
- package/dist/assets/icons/email.svg +11 -0
- package/dist/assets/icons/eye.svg +11 -0
- package/dist/assets/icons/eye_crossed.svg +10 -0
- package/dist/assets/icons/home.svg +10 -0
- package/dist/assets/icons/icon_check.svg +4 -0
- package/dist/assets/icons/icon_trash.svg +7 -0
- package/dist/assets/icons/icon_warning.svg +6 -0
- package/dist/assets/icons/image.svg +5 -0
- package/dist/assets/icons/info.svg +12 -0
- package/dist/assets/icons/settings.svg +11 -0
- package/dist/assets/icons/thumbs_up.svg +11 -0
- package/dist/assets/icons/tick-circle.svg +3 -0
- package/dist/assets/icons/trash.svg +13 -0
- package/dist/assets/icons/user.svg +10 -0
- package/dist/assets/icons/warning.svg +12 -0
- package/dist/assets/img/carousel-example.png +0 -0
- package/dist/assets/img/facebook_logo.svg +4 -0
- package/dist/assets/img/google_logo.svg +13 -0
- package/dist/assets/img/icon_check.svg +4 -0
- package/dist/assets/img/icon_trash.svg +7 -0
- package/dist/assets/img/icon_warning.svg +6 -0
- package/dist/assets/img/image-upload-circle.svg +6 -0
- package/dist/assets/img/image-upload-disabled.svg +6 -0
- package/dist/assets/img/linkedin_logo.svg +3 -0
- package/dist/components/Accordion.d.ts +13 -0
- package/dist/components/AccordionList.d.ts +5 -0
- package/dist/components/Button.d.ts +16 -0
- package/dist/components/CarouselCards.d.ts +12 -0
- package/dist/components/Checkbox.d.ts +9 -0
- package/dist/components/Form.d.ts +32 -0
- package/dist/components/FormGroup.d.ts +11 -0
- package/dist/components/Icon.d.ts +10 -0
- package/dist/components/Modal.d.ts +23 -0
- package/dist/components/Notice.d.ts +9 -0
- package/dist/components/Popup.d.ts +27 -0
- package/dist/components/ProgressCircle.d.ts +7 -0
- package/dist/components/Radio.d.ts +10 -0
- package/dist/components/Select.d.ts +42 -0
- package/dist/components/Snackbar.d.ts +1 -0
- package/dist/components/Stepper.d.ts +7 -0
- package/dist/components/Tabs.d.ts +23 -0
- package/dist/components/Upload.d.ts +15 -0
- package/dist/components/iconList.d.ts +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +2558 -0
- package/dist/index.js.map +1 -0
- package/dist/package.json +54 -0
- package/dist/randstad-design-system.css +1 -0
- package/dist/stories/Accordion.stories.d.ts +6 -0
- package/dist/stories/Button.stories.d.ts +29 -0
- package/dist/stories/CarouselCards.stories.d.ts +5 -0
- package/dist/stories/Checkbox.stories.d.ts +16 -0
- package/dist/stories/Form.stories.d.ts +48 -0
- package/dist/stories/Icon.stories.d.ts +6 -0
- package/dist/stories/Modal.stories.d.ts +16 -0
- package/dist/stories/Notice.stories.d.ts +72 -0
- package/dist/stories/Popup.stories.d.ts +7 -0
- package/dist/stories/ProgressCircle.stories.d.ts +5 -0
- package/dist/stories/Radio.stories.d.ts +11 -0
- package/dist/stories/Select.stories.d.ts +54 -0
- package/dist/stories/Snackbar.stories.d.ts +39 -0
- package/dist/stories/Stepper.stories.d.ts +51 -0
- package/dist/stories/Tabs.stories.d.ts +13 -0
- package/dist/stories/Upload.stories.d.ts +8 -0
- package/dist/styles/buttons.css +209 -0
- package/dist/styles/colors.css +50 -0
- package/dist/styles/fontStyles.d.ts +7 -0
- package/dist/styles/fontStyles.ts +60 -0
- package/dist/styles/fonts.css +8 -0
- package/dist/styles/forms.css +151 -0
- package/dist/styles/globalStyles.d.ts +2 -0
- package/dist/styles/globalStyles.ts +22 -0
- package/dist/styles/icons.css +25 -0
- package/dist/styles/index.css +5 -0
- package/dist/styles/notice.css +0 -0
- package/dist/styles/select.css +12 -0
- package/dist/styles/snackbar.css +0 -0
- package/package.json +3 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--primary-color: #2175D9;
|
|
3
|
+
--primary-color-80: #4E90E1;
|
|
4
|
+
--primary-color-60: #7AACE8;
|
|
5
|
+
--primary-color-40: #A6C8F0;
|
|
6
|
+
--primary-color-20: #D3E3F7;
|
|
7
|
+
--primary-color-10: #2175D91A;
|
|
8
|
+
--primary-color-5: #2175D90D;
|
|
9
|
+
|
|
10
|
+
--secondary-color: #0F1941;
|
|
11
|
+
--secondary-color-80: #404767;
|
|
12
|
+
--secondary-color-60: #6F758D;
|
|
13
|
+
--secondary-color-40: #9FA3B3;
|
|
14
|
+
--secondary-color-20: #CFD1D9;
|
|
15
|
+
--secondary-color-10: #E7E8EC;
|
|
16
|
+
|
|
17
|
+
--brand-randstad-blue: #2175D9;
|
|
18
|
+
--randstad-blue-10: #E8F1FB;
|
|
19
|
+
--randstad-blue-40: #A6C8F0;
|
|
20
|
+
--brand-dark-blue: #0F1941;
|
|
21
|
+
--brand-light-blue: #00D7FF;
|
|
22
|
+
--brand-off-white: #F7F5F0;
|
|
23
|
+
|
|
24
|
+
--ui-negative: #E00F0F;
|
|
25
|
+
--ui-negative-5: #FDF3F3;
|
|
26
|
+
--ui-negative-pink-shadow: #E00F0F1A;
|
|
27
|
+
--ui-positive: #257156;
|
|
28
|
+
--ui-positve-5: #F4F8F6;
|
|
29
|
+
--ui-warning: #E9A204;
|
|
30
|
+
--ui-warning-10: #FCF5E5;
|
|
31
|
+
--ui-informative: #4E90E1;
|
|
32
|
+
--ui-informative-10: #E8F1FB;
|
|
33
|
+
|
|
34
|
+
--tertiary-shade: #DEDCD8;
|
|
35
|
+
--tertiary-tint: #F9F7F3;
|
|
36
|
+
--gray-20: #D7D7D7;
|
|
37
|
+
--gray-10: #F7F7F7;
|
|
38
|
+
--white: #FFFFFF;
|
|
39
|
+
|
|
40
|
+
--primary-button-hover: #175197;
|
|
41
|
+
--primary-button-active: #124077;
|
|
42
|
+
--primary-button-focus: #2175D9;
|
|
43
|
+
|
|
44
|
+
--form-hover-shadow: #D1D3DB;
|
|
45
|
+
|
|
46
|
+
--randstad-dark-blue-40: #262626;
|
|
47
|
+
--primary-light-blue: #00D7FF;
|
|
48
|
+
--primary-light-blue-20: #00D7FF33;
|
|
49
|
+
|
|
50
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const bodyXS: import("lit").CSSResult;
|
|
2
|
+
export declare const bodyS: import("lit").CSSResult;
|
|
3
|
+
export declare const bodyM: import("lit").CSSResult;
|
|
4
|
+
export declare const bodyL: import("lit").CSSResult;
|
|
5
|
+
export declare const titleXXS: import("lit").CSSResult;
|
|
6
|
+
export declare const titleXS: import("lit").CSSResult;
|
|
7
|
+
export declare const titleS: import("lit").CSSResult;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
|
|
3
|
+
export const bodyXS = css`
|
|
4
|
+
font-family: 'Graphik', sans-serif;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
font-size: 12px;
|
|
7
|
+
line-height: 15px;
|
|
8
|
+
letter-spacing: 0%;
|
|
9
|
+
`;
|
|
10
|
+
|
|
11
|
+
export const bodyS = css`
|
|
12
|
+
font-family: 'Graphik', sans-serif;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 25px;
|
|
16
|
+
letter-spacing: 0%;
|
|
17
|
+
`;
|
|
18
|
+
|
|
19
|
+
export const bodyM = css`
|
|
20
|
+
font-family: 'Graphik', sans-serif;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
line-height: 25px;
|
|
24
|
+
letter-spacing: 0%;
|
|
25
|
+
`;
|
|
26
|
+
|
|
27
|
+
export const bodyL = css`
|
|
28
|
+
font-family: 'Graphik', sans-serif;
|
|
29
|
+
font-weight: 400;
|
|
30
|
+
font-size: 18px;
|
|
31
|
+
line-height: 30px;
|
|
32
|
+
letter-spacing: 0%;
|
|
33
|
+
`;
|
|
34
|
+
|
|
35
|
+
export const titleXXS = css`
|
|
36
|
+
font-family: 'Graphik', sans-serif;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
font-size: 18px;
|
|
39
|
+
line-height: 30px;
|
|
40
|
+
letter-spacing: 0%;
|
|
41
|
+
vertical-align: middle;
|
|
42
|
+
`;
|
|
43
|
+
|
|
44
|
+
export const titleXS = css`
|
|
45
|
+
font-family: 'Graphik', sans-serif;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
font-size: 20px;
|
|
48
|
+
line-height: 30px;
|
|
49
|
+
letter-spacing: -1%;
|
|
50
|
+
vertical-align: middle;
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
export const titleS = css`
|
|
54
|
+
font-family: 'Graphik', sans-serif;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
font-size: 26px;
|
|
57
|
+
line-height: 30px;
|
|
58
|
+
letter-spacing: -1%;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: 'Graphik';
|
|
3
|
+
src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),
|
|
4
|
+
url('/src/assets/font/Graphik-Regular.woff') format('woff'),
|
|
5
|
+
url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');
|
|
6
|
+
font-weight: normal;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* Base form styles */
|
|
2
|
+
.form {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 0.3rem;
|
|
6
|
+
font-family: 'Graphik', sans-serif;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
/* Form labels */
|
|
10
|
+
.form-label {
|
|
11
|
+
font-size: 16px;
|
|
12
|
+
line-height: 25px;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
color: var(--secondary-color-80);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Form inputs */
|
|
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;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.form.error:not(.disabled) .form-input:hover {
|
|
29
|
+
box-shadow: 0px 0px 0px 4px #E00F0F1A;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.form:not(.disabled) .form-input:hover {
|
|
33
|
+
box-shadow: 0px 0px 0px 4px #0F19411A;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.form-input:focus {
|
|
37
|
+
border: 1px solid var(--primary-color);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.form.error .form-input {
|
|
41
|
+
background-color: #FDF3F3;
|
|
42
|
+
border-color: #e3342f;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.form-input.success {
|
|
46
|
+
border-color: #28a745;
|
|
47
|
+
background-color: #d4edda;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
input::placeholder {
|
|
51
|
+
color: var(--secondary-color-40);
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
line-height: 30px;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Buttons inside forms */
|
|
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;
|
|
67
|
+
}
|
|
68
|
+
|
|
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);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.error-message {
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
line-height: 25px;
|
|
81
|
+
color: var(--ui-negative);
|
|
82
|
+
margin: 0px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.toggle-password {
|
|
86
|
+
background: none;
|
|
87
|
+
border: none;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
font-size: 16px;
|
|
90
|
+
padding: 5px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.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: not-allowed;
|
|
151
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const globalStyles = new CSSStyleSheet();
|
|
2
|
+
|
|
3
|
+
globalStyles.replaceSync(`
|
|
4
|
+
@font-face {
|
|
5
|
+
font-family: 'Graphik';
|
|
6
|
+
src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),
|
|
7
|
+
url('/src/assets/font/Graphik-Regular.woff') format('woff'),
|
|
8
|
+
url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');
|
|
9
|
+
font-weight: normal;
|
|
10
|
+
font-style: normal;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.body-s {
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
line-height: 100%;
|
|
17
|
+
letter-spacing: 0%;
|
|
18
|
+
color: green;
|
|
19
|
+
}
|
|
20
|
+
`);
|
|
21
|
+
|
|
22
|
+
export default globalStyles;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.icon {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.icon svg {
|
|
8
|
+
width: 1em;
|
|
9
|
+
height: 1em;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.icon-sm svg {
|
|
13
|
+
width: 16px;
|
|
14
|
+
height: 16px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.icon-md svg {
|
|
18
|
+
width: 24px;
|
|
19
|
+
height: 24px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.icon-lg svg {
|
|
23
|
+
width: 32px;
|
|
24
|
+
height: 32px;
|
|
25
|
+
}
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@randstad-uca/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@storybook/test": "^8.6.14",
|
|
29
29
|
"@storybook/web-components": "^8.6.14",
|
|
30
30
|
"@storybook/web-components-webpack5": "^8.6.14",
|
|
31
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
31
32
|
"autoprefixer": "^10.4.21",
|
|
32
33
|
"css-loader": "^7.1.2",
|
|
33
34
|
"lit-css-loader": "^3.0.1",
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
"rollup-plugin-copy": "^3.5.0",
|
|
37
38
|
"rollup-plugin-postcss": "^4.0.2",
|
|
38
39
|
"storybook": "^8.6.14",
|
|
40
|
+
"tailwindcss": "^4.1.11",
|
|
39
41
|
"ts-loader": "^9.5.2",
|
|
40
42
|
"tslib": "^2.8.1",
|
|
41
43
|
"typescript": "^5.8.3",
|