@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,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@randstad-uca/design-system",
|
|
3
|
+
"version": "1.0.32",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"dist/randstad-design-system.css"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"storybook-live": "storybook dev -p 6006",
|
|
12
|
+
"build-test": "storybook build",
|
|
13
|
+
"generate-icons": "node src/utils/generateIconList.cjs",
|
|
14
|
+
"build": "rm -rf dist && rollup -c"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"description": "",
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@chromatic-com/storybook": "^3.2.7",
|
|
22
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
23
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
24
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
25
|
+
"@rollup/plugin-typescript": "^12.1.4",
|
|
26
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
27
|
+
"@storybook/blocks": "^8.6.14",
|
|
28
|
+
"@storybook/test": "^8.6.14",
|
|
29
|
+
"@storybook/web-components": "^8.6.14",
|
|
30
|
+
"@storybook/web-components-webpack5": "^8.6.14",
|
|
31
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
32
|
+
"autoprefixer": "^10.4.21",
|
|
33
|
+
"css-loader": "^7.1.2",
|
|
34
|
+
"lit-css-loader": "^3.0.1",
|
|
35
|
+
"postcss": "^8.5.6",
|
|
36
|
+
"rollup": "^4.45.1",
|
|
37
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
38
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
39
|
+
"storybook": "^8.6.14",
|
|
40
|
+
"tailwindcss": "^4.1.11",
|
|
41
|
+
"ts-loader": "^9.5.2",
|
|
42
|
+
"tslib": "^2.8.1",
|
|
43
|
+
"typescript": "^5.8.3",
|
|
44
|
+
"webpack": "^5.100.2",
|
|
45
|
+
"webpack-cli": "^6.0.1"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@material/web": "^2.3.0",
|
|
49
|
+
"lit-html": "^3.3.1"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"lit": "^3.3.0"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +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)}: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")}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
import '../components/Button';
|
|
3
|
+
interface ButtonArgs {
|
|
4
|
+
variant: 'button-primary' | 'button-secondary' | 'button-tertiary' | 'button-round' | 'button-card';
|
|
5
|
+
size: 'md' | 'lg';
|
|
6
|
+
label: string;
|
|
7
|
+
loader: boolean;
|
|
8
|
+
iconSrc?: string;
|
|
9
|
+
iconPosition: 'left' | 'right';
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
hover?: boolean;
|
|
12
|
+
active?: boolean;
|
|
13
|
+
focusVisible?: boolean;
|
|
14
|
+
iconName?: string | null;
|
|
15
|
+
}
|
|
16
|
+
declare const meta: Meta<ButtonArgs>;
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<ButtonArgs>;
|
|
19
|
+
export declare const Default: Story;
|
|
20
|
+
export declare const PrimaryLoader: Story;
|
|
21
|
+
export declare const SecondaryLoader: Story;
|
|
22
|
+
export declare const TertiaryLoader: Story;
|
|
23
|
+
export declare const Primary: Story;
|
|
24
|
+
export declare const Secondary: Story;
|
|
25
|
+
export declare const Tertiary: Story;
|
|
26
|
+
export declare const GoogleRoundButton: Story;
|
|
27
|
+
export declare const FacebookRoundButton: Story;
|
|
28
|
+
export declare const CardButton: Story;
|
|
29
|
+
export declare const CardButtonDisabled: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
import '../components/Checkbox';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Checked: Story;
|
|
8
|
+
export declare const CustomText: Story;
|
|
9
|
+
export declare const Off: Story;
|
|
10
|
+
export declare const On: Story;
|
|
11
|
+
export declare const ErrorOff: Story;
|
|
12
|
+
export declare const ErrorOn: Story;
|
|
13
|
+
export declare const DisabledOff: Story;
|
|
14
|
+
export declare const DisabledOn: Story;
|
|
15
|
+
export declare const DisabledErrorOn: Story;
|
|
16
|
+
export declare const DisabledErrorOff: Story;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
import '../components/Form';
|
|
3
|
+
export interface FormProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
icon?: 'left' | 'right' | null;
|
|
9
|
+
helper?: string;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
tooltipMessage?: string;
|
|
13
|
+
success?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
typing?: boolean;
|
|
16
|
+
type?: 'text' | 'password' | 'textarea';
|
|
17
|
+
linkText?: string;
|
|
18
|
+
linkRoute?: string;
|
|
19
|
+
labelColor?: string;
|
|
20
|
+
cleanButton?: boolean;
|
|
21
|
+
maxLength?: number;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
optional?: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare const meta: Meta<FormProps>;
|
|
26
|
+
export default meta;
|
|
27
|
+
type Story = StoryObj<FormProps>;
|
|
28
|
+
export declare const Default: Story;
|
|
29
|
+
export declare const Filled: Story;
|
|
30
|
+
export declare const Disabled: Story;
|
|
31
|
+
export declare const WithHelper: Story;
|
|
32
|
+
export declare const WithError: Story;
|
|
33
|
+
export declare const WithHelperError: Story;
|
|
34
|
+
export declare const WithSuccess: Story;
|
|
35
|
+
export declare const WithIconLeft: Story;
|
|
36
|
+
export declare const WithIconRight: Story;
|
|
37
|
+
export declare const PasswordField: Story;
|
|
38
|
+
export declare const TextareaField: Story;
|
|
39
|
+
export declare const TextareaWithHelper: Story;
|
|
40
|
+
export declare const TextareaWithError: Story;
|
|
41
|
+
export declare const TextareaDisabled: Story;
|
|
42
|
+
export declare const Help: Story;
|
|
43
|
+
export declare const Link: Story;
|
|
44
|
+
export declare const LabelColor: Story;
|
|
45
|
+
export declare const WithMaxLength: Story;
|
|
46
|
+
export declare const WithCleanButton: Story;
|
|
47
|
+
export declare const Required: Story;
|
|
48
|
+
export declare const Optional: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '../components/Modal';
|
|
2
|
+
import '../components/Notice';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export declare const ModalConScrollInterno: () => import("lit-html").TemplateResult<1>;
|
|
12
|
+
export declare const ModalConScrollInternoSubtitle: () => import("lit-html").TemplateResult<1>;
|
|
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>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import type { StoryFn } from '@storybook/web-components';
|
|
3
|
+
import '../components/Notice';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: string;
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
decorators: ((story: () => TemplateResult) => TemplateResult<1>)[];
|
|
11
|
+
argTypes: {
|
|
12
|
+
icon: {
|
|
13
|
+
control: string;
|
|
14
|
+
};
|
|
15
|
+
message: {
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
open: {
|
|
19
|
+
control: string;
|
|
20
|
+
};
|
|
21
|
+
type: {
|
|
22
|
+
control: string;
|
|
23
|
+
options: string[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
export declare const Default: {
|
|
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;
|
|
66
|
+
args: {
|
|
67
|
+
type: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
message: string;
|
|
70
|
+
open: boolean;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
+
import '../components/Radio';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Hover: Story;
|
|
8
|
+
export declare const Focus: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const ErrorOn: Story;
|
|
11
|
+
export declare const ErrorOff: Story;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { StoryFn } from '@storybook/web-components';
|
|
2
|
+
import '../components/Select';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: string;
|
|
6
|
+
argTypes: {
|
|
7
|
+
options: {
|
|
8
|
+
control: string;
|
|
9
|
+
};
|
|
10
|
+
placeholder: {
|
|
11
|
+
control: string;
|
|
12
|
+
};
|
|
13
|
+
defaultValue: {
|
|
14
|
+
control: string;
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
control: string;
|
|
18
|
+
};
|
|
19
|
+
label: {
|
|
20
|
+
control: string;
|
|
21
|
+
};
|
|
22
|
+
labelColor: {
|
|
23
|
+
control: string;
|
|
24
|
+
};
|
|
25
|
+
filterable: {
|
|
26
|
+
control: string;
|
|
27
|
+
};
|
|
28
|
+
screenWidth: {
|
|
29
|
+
control: string;
|
|
30
|
+
};
|
|
31
|
+
error: {
|
|
32
|
+
control: string;
|
|
33
|
+
};
|
|
34
|
+
onOptionSelected: {
|
|
35
|
+
action: string;
|
|
36
|
+
};
|
|
37
|
+
maxLength: {
|
|
38
|
+
control: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
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;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
import '../components/Snackbar';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
decorators: ((story: () => TemplateResult) => TemplateResult)[];
|
|
10
|
+
argTypes: {
|
|
11
|
+
icon: {
|
|
12
|
+
control: string;
|
|
13
|
+
options: string[];
|
|
14
|
+
};
|
|
15
|
+
message: {
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
open: {
|
|
19
|
+
control: string;
|
|
20
|
+
};
|
|
21
|
+
type: {
|
|
22
|
+
control: string;
|
|
23
|
+
options: string[];
|
|
24
|
+
};
|
|
25
|
+
position: {
|
|
26
|
+
control: string;
|
|
27
|
+
options: string[];
|
|
28
|
+
};
|
|
29
|
+
color: {
|
|
30
|
+
control: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
35
|
+
export declare const Default: any;
|
|
36
|
+
export declare const Informative: any;
|
|
37
|
+
export declare const Success: any;
|
|
38
|
+
export declare const Warning: any;
|
|
39
|
+
export declare const Error: any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { StoryFn } from '@storybook/web-components';
|
|
2
|
+
import '../components/Stepper';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: string;
|
|
6
|
+
argTypes: {
|
|
7
|
+
steps: {
|
|
8
|
+
control: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
currentStep: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
min: number;
|
|
15
|
+
max: number;
|
|
16
|
+
step: number;
|
|
17
|
+
};
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
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
|
+
};
|
|
51
|
+
export declare const Interactive: () => import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { StoryFn } from '@storybook/web-components';
|
|
2
|
+
import '../components/Tabs';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: string;
|
|
6
|
+
tags: string[];
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: StoryFn;
|
|
13
|
+
export declare const ContainerPequeño: StoryFn;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '../components/Upload.ts';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Default: () => import("lit-html").TemplateResult<1>;
|
|
8
|
+
export declare const Disabled: () => import("lit-html").TemplateResult<1>;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
/* Estilo base para todos los botones */
|
|
2
|
+
.button {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
font-family: "Graphik", sans-serif;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
padding: 16px;
|
|
11
|
+
border: none;
|
|
12
|
+
transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
|
|
13
|
+
gap: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.button-lg {
|
|
17
|
+
font-size: 18px;
|
|
18
|
+
line-height: 30px;
|
|
19
|
+
min-width: 48px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.button-md {
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
line-height: 25px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.button-primary {
|
|
28
|
+
background-color: var(--primary-color);
|
|
29
|
+
color: var(--white);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.button-primary.hover {
|
|
33
|
+
background-color: var(--primary-button-hover);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.button-primary.active {
|
|
37
|
+
background-color: var(--primary-button-active);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.button-primary.focus-visible {
|
|
41
|
+
background-color: var(--primary-button-focus);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.button-primary.disabled {
|
|
45
|
+
color: var(--secondary-color-60);
|
|
46
|
+
background-color: var(--secondary-color-20);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.button-secondary {
|
|
50
|
+
background: none;
|
|
51
|
+
color: var(--primary-color);
|
|
52
|
+
border: 1px solid var(--primary-color);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.button-secondary.hover {
|
|
56
|
+
color: var(#175197);
|
|
57
|
+
border: 1px solid var(#175197);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.button-secondary.active {
|
|
61
|
+
color: var(--secondary-color-80);
|
|
62
|
+
border: 1px solid var(--secondary-color-80);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.button-secondary.focus-visible {
|
|
66
|
+
color: var(--primary-color);
|
|
67
|
+
border: 1px solid var(--primary-color);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.button-secondary.disabled {
|
|
71
|
+
color: var(--secondary-color-60);
|
|
72
|
+
border: 1px solid var(--secondary-color-60);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.button-tertiary {
|
|
76
|
+
background: none;
|
|
77
|
+
border: none;
|
|
78
|
+
color: var(--primary-color);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.button-tertiary.hover {
|
|
82
|
+
background: #2175D90D;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.button-tertiary.active {
|
|
86
|
+
background-color: #2175D91A;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.button-tertiary.focus-visible {
|
|
90
|
+
border: 1px solid var(--primary-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.button-tertiary.disabled {
|
|
94
|
+
color: #6F758D;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Botones con íconos */
|
|
98
|
+
.button-icon-left>.icon,
|
|
99
|
+
.button-icon-right>.icon {
|
|
100
|
+
display: inline-block;
|
|
101
|
+
width: 1rem;
|
|
102
|
+
height: 1rem;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.button-icon-left>.icon {
|
|
106
|
+
margin-right: 0.5rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.button-icon-right>.icon {
|
|
110
|
+
margin-left: 0.5rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.button-round {
|
|
114
|
+
width: 48px;
|
|
115
|
+
height: 48px;
|
|
116
|
+
border-radius: 50%;
|
|
117
|
+
background-color: var(--white);
|
|
118
|
+
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
padding: 0;
|
|
123
|
+
border: none;
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.button-round img.button-icon {
|
|
128
|
+
width: 24px;
|
|
129
|
+
height: 24px;
|
|
130
|
+
object-fit: contain;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Cambiar el color del ícono para todos los botones */
|
|
134
|
+
.button randstad-icon {
|
|
135
|
+
color: var(--white);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Cambiar el color solo para un variant específico */
|
|
139
|
+
.button.button-primary randstad-icon {
|
|
140
|
+
color: var(--white);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.button.button-secondary randstad-icon {
|
|
144
|
+
color: var(--primary-color);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.button.button-tertiary randstad-icon {
|
|
148
|
+
color: var(--primary-color);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/* Loader */
|
|
153
|
+
.loader {
|
|
154
|
+
display: flex;
|
|
155
|
+
gap: 6px; /* Reduce el espacio entre puntos */
|
|
156
|
+
justify-content: center;
|
|
157
|
+
align-items: center;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Puntos animados */
|
|
161
|
+
.dot {
|
|
162
|
+
width: 10px;
|
|
163
|
+
height: 10px;
|
|
164
|
+
border-radius: 50%;
|
|
165
|
+
display: inline-block;
|
|
166
|
+
animation: growAndFade 1.2s infinite ease-in-out;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Retrasamos la animación de cada punto */
|
|
170
|
+
.dot:nth-child(1) {
|
|
171
|
+
animation-delay: 0s;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.dot:nth-child(2) {
|
|
175
|
+
animation-delay: 0.2s;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.dot:nth-child(3) {
|
|
179
|
+
animation-delay: 0.4s;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Nueva animación con efecto de escala y opacidad */
|
|
183
|
+
@keyframes growAndFade {
|
|
184
|
+
0% {
|
|
185
|
+
transform: scale(0.9);
|
|
186
|
+
opacity: 0.3;
|
|
187
|
+
}
|
|
188
|
+
50% {
|
|
189
|
+
transform: scale(1.4);
|
|
190
|
+
opacity: 1;
|
|
191
|
+
}
|
|
192
|
+
100% {
|
|
193
|
+
transform: scale(0.9);
|
|
194
|
+
opacity: 0.3;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* ✅ Estilos específicos para button-primary y button-secondary con loader */
|
|
199
|
+
.button-primary.loader .dot,
|
|
200
|
+
.button-secondary.loader .dot {
|
|
201
|
+
background-color: var(--white);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* ✅ Asegurar que el botón secundario también tenga el mismo fondo que el primario al cargar */
|
|
205
|
+
.button-secondary.loader {
|
|
206
|
+
background-color: var(--primary-color);
|
|
207
|
+
border: none;
|
|
208
|
+
color: var(--white);
|
|
209
|
+
}
|