@randstad-uca/design-system 1.0.20 → 1.0.22-beta.1
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_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/{default/ayuda.svg → ayuda.svg} +5 -5
- package/dist/assets/icons/{default/calendar.svg → calendar.svg} +13 -13
- package/dist/assets/icons/{default/check.svg → check.svg} +10 -10
- package/dist/assets/icons/close.svg +10 -0
- package/dist/assets/icons/{default/email.svg → email.svg} +4 -4
- package/dist/assets/icons/{default/eye.svg → eye.svg} +4 -4
- package/dist/assets/icons/{default/eye_crossed.svg → eye_crossed.svg} +3 -3
- 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/{default/info.svg → info.svg} +5 -5
- 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/user.svg +10 -0
- package/dist/assets/icons/{default/warning.svg → warning.svg} +5 -5
- 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/Form.d.ts +0 -1
- package/dist/components/Icon.d.ts +1 -3
- package/dist/components/Modal.d.ts +11 -0
- package/dist/components/Notice.d.ts +9 -1
- package/dist/components/Popup.d.ts +3 -0
- package/dist/components/Radio.d.ts +0 -1
- package/dist/components/Select.d.ts +11 -5
- package/dist/components/Tabs.d.ts +7 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +650 -435
- package/dist/index.js.map +1 -1
- package/dist/package.json +5 -3
- package/dist/{index.css → randstad-design-system.css} +1 -1
- package/dist/stories/Button.stories.d.ts +1 -0
- package/dist/stories/Icon.stories.d.ts +1 -2
- package/dist/stories/Modal.stories.d.ts +5 -0
- package/dist/stories/Notice.stories.d.ts +39 -6
- package/dist/stories/Select.stories.d.ts +13 -174
- package/dist/stories/Stepper.stories.d.ts +29 -16
- package/dist/stories/Tabs.stories.d.ts +3 -4
- package/dist/styles/colors.css +17 -3
- package/dist/styles/fontStyles.d.ts +7 -0
- package/dist/styles/fontStyles.ts +60 -0
- package/dist/styles/fonts.css +0 -43
- package/package.json +5 -3
- package/dist/components/Test.d.ts +0 -5
- package/dist/components/TestButton.d.ts +0 -6
package/dist/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@randstad-uca/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22-beta.1",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "dist/index.js",
|
|
5
6
|
"files": [
|
|
6
|
-
"dist"
|
|
7
|
+
"dist",
|
|
8
|
+
"dist/randstad-design-system.css"
|
|
7
9
|
],
|
|
8
10
|
"scripts": {
|
|
9
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
12
|
"storybook-live": "storybook dev -p 6006",
|
|
11
13
|
"build-test": "storybook build",
|
|
12
|
-
"generate-icons": "node src/utils/generateIconList.
|
|
14
|
+
"generate-icons": "node src/utils/generateIconList.cjs",
|
|
13
15
|
"build": "rm -rf dist && rollup -c"
|
|
14
16
|
},
|
|
15
17
|
"keywords": [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.button{align-items:center;border:none;border-radius:4px;cursor:pointer;display:flex;font-family:Graphik,sans-serif;font-weight:400;gap:4px;justify-content:center;padding:16px;transition:background-color .2s,color .2s,box-shadow .2s}.button-lg{font-size:18px;line-height:30px;min-width:48px}.button-md{font-size:14px;line-height:25px}.button-primary{background-color:var(--primary-color);color:var(--white)}.button-primary.hover{background-color:var(--primary-button-hover)}.button-primary.active{background-color:var(--primary-button-active)}.button-primary.focus-visible{background-color:var(--primary-button-focus)}.button-primary.disabled{background-color:var(--secondary-color-20);color:var(--secondary-color-60)}.button-secondary{background:none;border:1px solid var(--primary-color);color:var(--primary-color)}.button-secondary.hover{border:1px solid var(#175197);color:var(#175197)}.button-secondary.active{border:1px solid var(--secondary-color-80);color:var(--secondary-color-80)}.button-secondary.focus-visible{border:1px solid var(--primary-color);color:var(--primary-color)}.button-secondary.disabled{border:1px solid var(--secondary-color-60);color:var(--secondary-color-60)}.button-tertiary{background:none;border:none;color:var(--primary-color)}.button-tertiary.hover{background:#2175d90d}.button-tertiary.active{background-color:#2175d91a}.button-tertiary.focus-visible{border:1px solid var(--primary-color)}.button-tertiary.disabled{color:#6f758d}.button-icon-left>.icon,.button-icon-right>.icon{display:inline-block;height:1rem;width:1rem}.button-icon-left>.icon{margin-right:.5rem}.button-icon-right>.icon{margin-left:.5rem}.button-round{align-items:center;background-color:var(--white);border:none;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.2);cursor:pointer;display:flex;height:48px;justify-content:center;padding:0;width:48px}.button-round img.button-icon{height:24px;-o-object-fit:contain;object-fit:contain;width:24px}.button randstad-icon,.button.button-primary randstad-icon{color:var(--white)}.button.button-secondary randstad-icon,.button.button-tertiary randstad-icon{color:var(--primary-color)}.loader{align-items:center;display:flex;gap:6px;justify-content:center}.dot{animation:growAndFade 1.2s ease-in-out infinite;border-radius:50%;display:inline-block;height:10px;width:10px}.dot:first-child{animation-delay:0s}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes growAndFade{0%{opacity:.3;transform:scale(.9)}50%{opacity:1;transform:scale(1.4)}to{opacity:.3;transform:scale(.9)}}.button-primary.loader .dot,.button-secondary.loader .dot{background-color:var(--white)}.button-secondary.loader{background-color:var(--primary-color);border:none;color:var(--white)}
|
|
1
|
+
.button{align-items:center;border:none;border-radius:4px;cursor:pointer;display:flex;font-family:Graphik,sans-serif;font-weight:400;gap:4px;justify-content:center;padding:16px;transition:background-color .2s,color .2s,box-shadow .2s}.button-lg{font-size:18px;line-height:30px;min-width:48px}.button-md{font-size:14px;line-height:25px}.button-primary{background-color:var(--primary-color);color:var(--white)}.button-primary.hover{background-color:var(--primary-button-hover)}.button-primary.active{background-color:var(--primary-button-active)}.button-primary.focus-visible{background-color:var(--primary-button-focus)}.button-primary.disabled{background-color:var(--secondary-color-20);color:var(--secondary-color-60)}.button-secondary{background:none;border:1px solid var(--primary-color);color:var(--primary-color)}.button-secondary.hover{border:1px solid var(#175197);color:var(#175197)}.button-secondary.active{border:1px solid var(--secondary-color-80);color:var(--secondary-color-80)}.button-secondary.focus-visible{border:1px solid var(--primary-color);color:var(--primary-color)}.button-secondary.disabled{border:1px solid var(--secondary-color-60);color:var(--secondary-color-60)}.button-tertiary{background:none;border:none;color:var(--primary-color)}.button-tertiary.hover{background:#2175d90d}.button-tertiary.active{background-color:#2175d91a}.button-tertiary.focus-visible{border:1px solid var(--primary-color)}.button-tertiary.disabled{color:#6f758d}.button-icon-left>.icon,.button-icon-right>.icon{display:inline-block;height:1rem;width:1rem}.button-icon-left>.icon{margin-right:.5rem}.button-icon-right>.icon{margin-left:.5rem}.button-round{align-items:center;background-color:var(--white);border:none;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.2);cursor:pointer;display:flex;height:48px;justify-content:center;padding:0;width:48px}.button-round img.button-icon{height:24px;-o-object-fit:contain;object-fit:contain;width:24px}.button randstad-icon,.button.button-primary randstad-icon{color:var(--white)}.button.button-secondary randstad-icon,.button.button-tertiary randstad-icon{color:var(--primary-color)}.loader{align-items:center;display:flex;gap:6px;justify-content:center}.dot{animation:growAndFade 1.2s ease-in-out infinite;border-radius:50%;display:inline-block;height:10px;width:10px}.dot:first-child{animation-delay:0s}.dot:nth-child(2){animation-delay:.2s}.dot:nth-child(3){animation-delay:.4s}@keyframes growAndFade{0%{opacity:.3;transform:scale(.9)}50%{opacity:1;transform:scale(1.4)}to{opacity:.3;transform:scale(.9)}}.button-primary.loader .dot,.button-secondary.loader .dot{background-color:var(--white)}.button-secondary.loader{background-color:var(--primary-color);border:none;color:var(--white)}:root{--primary-color:#2175d9;--primary-color-80:#4e90e1;--primary-color-60:#7aace8;--primary-color-40:#a6c8f0;--primary-color-20:#d3e3f7;--primary-color-10:#2175d91a;--primary-color-5:#2175d90d;--secondary-color:#0f1941;--secondary-color-80:#404767;--secondary-color-60:#6f758d;--secondary-color-40:#9fa3b3;--secondary-color-20:#cfd1d9;--secondary-color-10:#e7e8ec;--brand-randstad-blue:#2175d9;--randstad-blue-10:#e8f1fb;--randstad-blue-40:#a6c8f0;--brand-dark-blue:#0f1941;--brand-light-blue:#00d7ff;--brand-off-white:#f7f5f0;--ui-negative:#e00f0f;--ui-negative-5:#fdf3f3;--ui-negative-pink-shadow:#e00f0f1a;--ui-positive:#257156;--ui-positve-5:#f4f8f6;--ui-warning:#e9a204;--ui-warning-10:#fcf5e5;--ui-informative:#4e90e1;--ui-informative-10:#e8f1fb;--tertiary-shade:#dedcd8;--tertiary-tint:#f9f7f3;--gray-20:#d7d7d7;--gray-10:#f7f7f7;--white:#fff;--primary-button-hover:#175197;--primary-button-active:#124077;--primary-button-focus:#2175d9;--form-hover-shadow:#d1d3db;--randstad-dark-blue-40:#262626;--primary-light-blue:#00d7ff;--primary-light-blue-20:#00d7ff33}@font-face{font-family:Graphik;font-style:normal;font-weight:400;src:url(/src/assets/font/Graphik-Regular.woff2) format("woff2"),url(/src/assets/font/Graphik-Regular.woff) format("woff"),url(/src/assets/font/Graphik-Regular.eot) format("embedded-opentype")}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '../components/Modal';
|
|
2
|
+
import '../components/Notice';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: string;
|
|
@@ -8,4 +9,8 @@ declare const _default: {
|
|
|
8
9
|
};
|
|
9
10
|
export default _default;
|
|
10
11
|
export declare const ModalConScrollInterno: () => import("lit-html").TemplateResult<1>;
|
|
12
|
+
export declare const ModalConScrollInternoSubtitle: () => import("lit-html").TemplateResult<1>;
|
|
11
13
|
export declare const ModalScrollEnBody: () => import("lit-html").TemplateResult<1>;
|
|
14
|
+
export declare const ModalConNotice: () => import("lit-html").TemplateResult<1>;
|
|
15
|
+
export declare const ModalConUnBoton: () => import("lit-html").TemplateResult<1>;
|
|
16
|
+
export declare const ModalConDosBotones: () => import("lit-html").TemplateResult<1>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit';
|
|
2
|
+
import type { StoryFn } from '@storybook/web-components';
|
|
2
3
|
import '../components/Notice';
|
|
3
4
|
declare const _default: {
|
|
4
5
|
title: string;
|
|
@@ -6,7 +7,7 @@ declare const _default: {
|
|
|
6
7
|
parameters: {
|
|
7
8
|
layout: string;
|
|
8
9
|
};
|
|
9
|
-
decorators: ((story:
|
|
10
|
+
decorators: ((story: () => TemplateResult) => TemplateResult<1>)[];
|
|
10
11
|
argTypes: {
|
|
11
12
|
icon: {
|
|
12
13
|
control: string;
|
|
@@ -25,7 +26,43 @@ declare const _default: {
|
|
|
25
26
|
};
|
|
26
27
|
export default _default;
|
|
27
28
|
export declare const Default: {
|
|
28
|
-
render:
|
|
29
|
+
render: StoryFn;
|
|
30
|
+
args: {
|
|
31
|
+
type: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
message: string;
|
|
34
|
+
open: boolean;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const Informative: {
|
|
38
|
+
render: StoryFn;
|
|
39
|
+
args: {
|
|
40
|
+
type: string;
|
|
41
|
+
icon: string;
|
|
42
|
+
message: string;
|
|
43
|
+
open: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const Success: {
|
|
47
|
+
render: StoryFn;
|
|
48
|
+
args: {
|
|
49
|
+
type: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
message: string;
|
|
52
|
+
open: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare const Warning: {
|
|
56
|
+
render: StoryFn;
|
|
57
|
+
args: {
|
|
58
|
+
type: string;
|
|
59
|
+
icon: string;
|
|
60
|
+
message: string;
|
|
61
|
+
open: boolean;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export declare const Error: {
|
|
65
|
+
render: StoryFn;
|
|
29
66
|
args: {
|
|
30
67
|
type: string;
|
|
31
68
|
icon: string;
|
|
@@ -33,7 +70,3 @@ export declare const Default: {
|
|
|
33
70
|
open: boolean;
|
|
34
71
|
};
|
|
35
72
|
};
|
|
36
|
-
export declare const Informative: (args: any) => TemplateResult;
|
|
37
|
-
export declare const Success: (args: any) => TemplateResult;
|
|
38
|
-
export declare const Warning: (args: any) => TemplateResult;
|
|
39
|
-
export declare const Error: (args: any) => TemplateResult;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StoryFn } from '@storybook/web-components';
|
|
1
2
|
import '../components/Select';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
@@ -5,211 +6,49 @@ declare const _default: {
|
|
|
5
6
|
argTypes: {
|
|
6
7
|
options: {
|
|
7
8
|
control: string;
|
|
8
|
-
description: string;
|
|
9
9
|
};
|
|
10
10
|
placeholder: {
|
|
11
11
|
control: string;
|
|
12
|
-
description: string;
|
|
13
12
|
};
|
|
14
13
|
defaultValue: {
|
|
15
14
|
control: string;
|
|
16
|
-
description: string;
|
|
17
15
|
};
|
|
18
16
|
disabled: {
|
|
19
17
|
control: string;
|
|
20
|
-
description: string;
|
|
21
18
|
};
|
|
22
19
|
label: {
|
|
23
20
|
control: string;
|
|
24
|
-
description: string;
|
|
25
21
|
};
|
|
26
22
|
labelColor: {
|
|
27
23
|
control: string;
|
|
28
|
-
description: string;
|
|
29
24
|
};
|
|
30
25
|
filterable: {
|
|
31
26
|
control: string;
|
|
32
|
-
description: string;
|
|
33
27
|
};
|
|
34
28
|
screenWidth: {
|
|
35
29
|
control: string;
|
|
36
|
-
description: string;
|
|
37
30
|
};
|
|
38
31
|
error: {
|
|
39
32
|
control: string;
|
|
40
|
-
description: string;
|
|
41
33
|
};
|
|
42
34
|
onOptionSelected: {
|
|
43
35
|
action: string;
|
|
44
|
-
description: string;
|
|
45
36
|
};
|
|
46
37
|
maxLength: {
|
|
47
38
|
control: string;
|
|
48
|
-
description: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
parameters: {
|
|
52
|
-
docs: {
|
|
53
|
-
description: {
|
|
54
|
-
component: string;
|
|
55
|
-
};
|
|
56
39
|
};
|
|
57
40
|
};
|
|
58
41
|
};
|
|
59
42
|
export default _default;
|
|
60
|
-
export declare const Default:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
73
|
-
export declare const WithObjects: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
74
|
-
options: any;
|
|
75
|
-
placeholder: any;
|
|
76
|
-
defaultValue: any;
|
|
77
|
-
disabled: any;
|
|
78
|
-
label: any;
|
|
79
|
-
labelColor: any;
|
|
80
|
-
filterable: any;
|
|
81
|
-
maxLength: any;
|
|
82
|
-
screenWidth: any;
|
|
83
|
-
error: any;
|
|
84
|
-
onOptionSelected: any;
|
|
85
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
86
|
-
export declare const WithNoOptions: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
87
|
-
options: any;
|
|
88
|
-
placeholder: any;
|
|
89
|
-
defaultValue: any;
|
|
90
|
-
disabled: any;
|
|
91
|
-
label: any;
|
|
92
|
-
labelColor: any;
|
|
93
|
-
filterable: any;
|
|
94
|
-
maxLength: any;
|
|
95
|
-
screenWidth: any;
|
|
96
|
-
error: any;
|
|
97
|
-
onOptionSelected: any;
|
|
98
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
99
|
-
export declare const WithLabel: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
100
|
-
options: any;
|
|
101
|
-
placeholder: any;
|
|
102
|
-
defaultValue: any;
|
|
103
|
-
disabled: any;
|
|
104
|
-
label: any;
|
|
105
|
-
labelColor: any;
|
|
106
|
-
filterable: any;
|
|
107
|
-
maxLength: any;
|
|
108
|
-
screenWidth: any;
|
|
109
|
-
error: any;
|
|
110
|
-
onOptionSelected: any;
|
|
111
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
112
|
-
export declare const NonFilterable: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
113
|
-
options: any;
|
|
114
|
-
placeholder: any;
|
|
115
|
-
defaultValue: any;
|
|
116
|
-
disabled: any;
|
|
117
|
-
label: any;
|
|
118
|
-
labelColor: any;
|
|
119
|
-
filterable: any;
|
|
120
|
-
maxLength: any;
|
|
121
|
-
screenWidth: any;
|
|
122
|
-
error: any;
|
|
123
|
-
onOptionSelected: any;
|
|
124
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
125
|
-
export declare const Disabled: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
126
|
-
options: any;
|
|
127
|
-
placeholder: any;
|
|
128
|
-
defaultValue: any;
|
|
129
|
-
disabled: any;
|
|
130
|
-
label: any;
|
|
131
|
-
labelColor: any;
|
|
132
|
-
filterable: any;
|
|
133
|
-
maxLength: any;
|
|
134
|
-
screenWidth: any;
|
|
135
|
-
error: any;
|
|
136
|
-
onOptionSelected: any;
|
|
137
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
138
|
-
export declare const WithDefaultObjectValue: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
139
|
-
options: any;
|
|
140
|
-
placeholder: any;
|
|
141
|
-
defaultValue: any;
|
|
142
|
-
disabled: any;
|
|
143
|
-
label: any;
|
|
144
|
-
labelColor: any;
|
|
145
|
-
filterable: any;
|
|
146
|
-
maxLength: any;
|
|
147
|
-
screenWidth: any;
|
|
148
|
-
error: any;
|
|
149
|
-
onOptionSelected: any;
|
|
150
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
151
|
-
export declare const NonFilterableBasic: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
152
|
-
options: any;
|
|
153
|
-
placeholder: any;
|
|
154
|
-
defaultValue: any;
|
|
155
|
-
disabled: any;
|
|
156
|
-
label: any;
|
|
157
|
-
labelColor: any;
|
|
158
|
-
filterable: any;
|
|
159
|
-
maxLength: any;
|
|
160
|
-
screenWidth: any;
|
|
161
|
-
error: any;
|
|
162
|
-
onOptionSelected: any;
|
|
163
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
164
|
-
export declare const WithMaxLength: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
165
|
-
options: any;
|
|
166
|
-
placeholder: any;
|
|
167
|
-
defaultValue: any;
|
|
168
|
-
disabled: any;
|
|
169
|
-
label: any;
|
|
170
|
-
labelColor: any;
|
|
171
|
-
filterable: any;
|
|
172
|
-
maxLength: any;
|
|
173
|
-
screenWidth: any;
|
|
174
|
-
error: any;
|
|
175
|
-
onOptionSelected: any;
|
|
176
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
177
|
-
export declare const MobileModal: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
178
|
-
options: any;
|
|
179
|
-
placeholder: any;
|
|
180
|
-
defaultValue: any;
|
|
181
|
-
disabled: any;
|
|
182
|
-
label: any;
|
|
183
|
-
labelColor: any;
|
|
184
|
-
filterable: any;
|
|
185
|
-
maxLength: any;
|
|
186
|
-
screenWidth: any;
|
|
187
|
-
error: any;
|
|
188
|
-
onOptionSelected: any;
|
|
189
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
190
|
-
export declare const WithError: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
191
|
-
options: any;
|
|
192
|
-
placeholder: any;
|
|
193
|
-
defaultValue: any;
|
|
194
|
-
disabled: any;
|
|
195
|
-
label: any;
|
|
196
|
-
labelColor: any;
|
|
197
|
-
filterable: any;
|
|
198
|
-
maxLength: any;
|
|
199
|
-
screenWidth: any;
|
|
200
|
-
error: any;
|
|
201
|
-
onOptionSelected: any;
|
|
202
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
203
|
-
export declare const MobileWithError: ({ options, placeholder, defaultValue, disabled, label, labelColor, filterable, maxLength, screenWidth, error, onOptionSelected }: {
|
|
204
|
-
options: any;
|
|
205
|
-
placeholder: any;
|
|
206
|
-
defaultValue: any;
|
|
207
|
-
disabled: any;
|
|
208
|
-
label: any;
|
|
209
|
-
labelColor: any;
|
|
210
|
-
filterable: any;
|
|
211
|
-
maxLength: any;
|
|
212
|
-
screenWidth: any;
|
|
213
|
-
error: any;
|
|
214
|
-
onOptionSelected: any;
|
|
215
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
43
|
+
export declare const Default: StoryFn;
|
|
44
|
+
export declare const WithObjects: StoryFn;
|
|
45
|
+
export declare const WithNoOptions: StoryFn;
|
|
46
|
+
export declare const WithLabel: StoryFn;
|
|
47
|
+
export declare const NonFilterable: StoryFn;
|
|
48
|
+
export declare const Disabled: StoryFn;
|
|
49
|
+
export declare const WithDefaultObjectValue: StoryFn;
|
|
50
|
+
export declare const NonFilterableBasic: StoryFn;
|
|
51
|
+
export declare const WithMaxLength: StoryFn;
|
|
52
|
+
export declare const MobileModal: StoryFn;
|
|
53
|
+
export declare const WithError: StoryFn;
|
|
54
|
+
export declare const MobileWithError: StoryFn;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StoryFn } from '@storybook/web-components';
|
|
1
2
|
import '../components/Stepper';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
@@ -19,20 +20,32 @@ declare const _default: {
|
|
|
19
20
|
};
|
|
20
21
|
};
|
|
21
22
|
export default _default;
|
|
22
|
-
export declare const Default:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
export declare const Default: {
|
|
24
|
+
render: StoryFn;
|
|
25
|
+
args: {
|
|
26
|
+
steps: string[];
|
|
27
|
+
currentStep: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export declare const MixedLabels: {
|
|
31
|
+
render: StoryFn;
|
|
32
|
+
args: {
|
|
33
|
+
steps: string[];
|
|
34
|
+
currentStep: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const NoLabels: {
|
|
38
|
+
render: StoryFn;
|
|
39
|
+
args: {
|
|
40
|
+
steps: string[];
|
|
41
|
+
currentStep: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export declare const AllStepsCompleted: {
|
|
45
|
+
render: StoryFn;
|
|
46
|
+
args: {
|
|
47
|
+
steps: string[];
|
|
48
|
+
currentStep: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
38
51
|
export declare const Interactive: () => import("lit-html").TemplateResult<1>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StoryFn } from '@storybook/web-components';
|
|
1
2
|
import '../components/Tabs';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
@@ -8,7 +9,5 @@ declare const _default: {
|
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
export default _default;
|
|
11
|
-
export declare const Default:
|
|
12
|
-
|
|
13
|
-
selected: any;
|
|
14
|
-
}) => import("lit-html").TemplateResult<1>;
|
|
12
|
+
export declare const Default: StoryFn;
|
|
13
|
+
export declare const ContainerPequeño: StoryFn;
|
package/dist/styles/colors.css
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
--primary-color-60: #7AACE8;
|
|
5
5
|
--primary-color-40: #A6C8F0;
|
|
6
6
|
--primary-color-20: #D3E3F7;
|
|
7
|
-
--primary-color-10: #
|
|
7
|
+
--primary-color-10: #2175D91A;
|
|
8
|
+
--primary-color-5: #2175D90D;
|
|
8
9
|
|
|
9
10
|
--secondary-color: #0F1941;
|
|
10
11
|
--secondary-color-80: #404767;
|
|
@@ -14,14 +15,21 @@
|
|
|
14
15
|
--secondary-color-10: #E7E8EC;
|
|
15
16
|
|
|
16
17
|
--brand-randstad-blue: #2175D9;
|
|
18
|
+
--randstad-blue-10: #E8F1FB;
|
|
19
|
+
--randstad-blue-40: #A6C8F0;
|
|
17
20
|
--brand-dark-blue: #0F1941;
|
|
18
21
|
--brand-light-blue: #00D7FF;
|
|
19
22
|
--brand-off-white: #F7F5F0;
|
|
20
23
|
|
|
21
|
-
--ui-negative: #
|
|
22
|
-
--ui-
|
|
24
|
+
--ui-negative: #E00F0F;
|
|
25
|
+
--ui-negative-5: #FDF3F3;
|
|
26
|
+
--ui-negative-pink-shadow: #E00F0F1A;
|
|
27
|
+
--ui-positive: #257156;
|
|
28
|
+
--ui-positve-5: #F4F8F6;
|
|
23
29
|
--ui-warning: #E9A204;
|
|
30
|
+
--ui-warning-10: #FCF5E5;
|
|
24
31
|
--ui-informative: #4E90E1;
|
|
32
|
+
--ui-informative-10: #E8F1FB;
|
|
25
33
|
|
|
26
34
|
--tertiary-shade: #DEDCD8;
|
|
27
35
|
--tertiary-tint: #F9F7F3;
|
|
@@ -33,4 +41,10 @@
|
|
|
33
41
|
--primary-button-active: #124077;
|
|
34
42
|
--primary-button-focus: #2175D9;
|
|
35
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
|
+
|
|
36
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
|
+
`;
|
package/dist/styles/fonts.css
CHANGED
|
@@ -5,47 +5,4 @@
|
|
|
5
5
|
url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');
|
|
6
6
|
font-weight: normal;
|
|
7
7
|
font-style: normal;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:root {
|
|
11
|
-
--body-xs-font-size: 12px;
|
|
12
|
-
--body-s-font-size: 14px;
|
|
13
|
-
--body-m-font-size: 16px;
|
|
14
|
-
--body-l-font-size: 18px;
|
|
15
|
-
--body-xs-line-height: 20px;
|
|
16
|
-
--body-s-line-height: 25px;
|
|
17
|
-
--body-m-line-height: 25px;
|
|
18
|
-
--body-l-line-height: 30px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.body-l {
|
|
22
|
-
font-family: Graphik;
|
|
23
|
-
font-weight: 400;
|
|
24
|
-
font-size: 18px;
|
|
25
|
-
line-height: 100%;
|
|
26
|
-
letter-spacing: 0%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.body-m {
|
|
30
|
-
font-family: Graphik;
|
|
31
|
-
font-weight: 400;
|
|
32
|
-
font-size: 16px;
|
|
33
|
-
line-height: 100%;
|
|
34
|
-
letter-spacing: 0%;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.body-s {
|
|
38
|
-
font-family: Graphik;
|
|
39
|
-
font-weight: 400;
|
|
40
|
-
font-size: 149px;
|
|
41
|
-
line-height: 100%;
|
|
42
|
-
letter-spacing: 0%;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.body-xs {
|
|
46
|
-
font-family: Graphik;
|
|
47
|
-
font-weight: 400;
|
|
48
|
-
font-size: 149px;
|
|
49
|
-
line-height: 100%;
|
|
50
|
-
letter-spacing: 0%;
|
|
51
8
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@randstad-uca/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22-beta.1",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"main": "dist/index.js",
|
|
5
6
|
"files": [
|
|
6
|
-
"dist"
|
|
7
|
+
"dist",
|
|
8
|
+
"dist/randstad-design-system.css"
|
|
7
9
|
],
|
|
8
10
|
"scripts": {
|
|
9
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
12
|
"storybook-live": "storybook dev -p 6006",
|
|
11
13
|
"build-test": "storybook build",
|
|
12
|
-
"generate-icons": "node src/utils/generateIconList.
|
|
14
|
+
"generate-icons": "node src/utils/generateIconList.cjs",
|
|
13
15
|
"build": "rm -rf dist && rollup -c"
|
|
14
16
|
},
|
|
15
17
|
"keywords": [],
|