@randstad-uca/design-system 1.0.49 → 1.0.51

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.49",
3
+ "version": "1.0.51",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -52,6 +52,18 @@ declare const _default: {
52
52
  };
53
53
  options: string[];
54
54
  };
55
+ help: {
56
+ control: string;
57
+ };
58
+ helpLink: {
59
+ control: string;
60
+ };
61
+ helpLinkTooltipMessage: {
62
+ control: string;
63
+ };
64
+ labelColor: {
65
+ control: string;
66
+ };
55
67
  };
56
68
  };
57
69
  export default _default;
@@ -64,3 +76,7 @@ export declare const WithError: StoryFn;
64
76
  export declare const WithHelperAndError: StoryFn;
65
77
  export declare const WithCustomWidth: StoryFn;
66
78
  export declare const WithDateRange: StoryFn;
79
+ export declare const WithHelp: StoryFn;
80
+ export declare const WithHelpLink: StoryFn;
81
+ export declare const WithHelpLinkAndTooltip: StoryFn;
82
+ export declare const WithCustomLabelColor: StoryFn;
@@ -9,7 +9,6 @@ export interface FormProps {
9
9
  helper?: string;
10
10
  error?: boolean;
11
11
  errorMessage?: string;
12
- tooltipMessage?: string;
13
12
  success?: boolean;
14
13
  disabled?: boolean;
15
14
  typing?: boolean;
@@ -21,6 +20,9 @@ export interface FormProps {
21
20
  maxLength?: number;
22
21
  required?: boolean;
23
22
  optional?: boolean;
23
+ help?: string;
24
+ helpLink?: string;
25
+ helpLinkTooltipMessage?: string;
24
26
  heightTextArea?: string;
25
27
  maxHeightTextArea?: string;
26
28
  helperAlign?: 'left' | 'center' | 'right' | 'justify';
@@ -43,10 +45,12 @@ export declare const TextareaWithHelperRight: Story;
43
45
  export declare const TextareaWithHeightAndScroll: Story;
44
46
  export declare const TextareaWithError: Story;
45
47
  export declare const TextareaDisabled: Story;
48
+ export declare const WithCleanButton: Story;
46
49
  export declare const Help: Story;
50
+ export declare const HelpLink: Story;
51
+ export declare const HelpLinkWithTooltip: Story;
47
52
  export declare const Link: Story;
48
53
  export declare const LabelColor: Story;
49
54
  export declare const WithMaxLength: Story;
50
- export declare const WithCleanButton: Story;
51
55
  export declare const Required: Story;
52
56
  export declare const Optional: Story;
@@ -0,0 +1,74 @@
1
+ import type { StoryFn } from '@storybook/web-components';
2
+ import '../components/Form';
3
+ import '../components/FormGroup';
4
+ declare const _default: {
5
+ title: string;
6
+ component: string;
7
+ argTypes: {
8
+ label: {
9
+ control: string;
10
+ description: string;
11
+ };
12
+ direction: {
13
+ control: {
14
+ type: string;
15
+ };
16
+ options: string[];
17
+ description: string;
18
+ };
19
+ labelColor: {
20
+ control: string;
21
+ description: string;
22
+ };
23
+ errorMessage: {
24
+ control: string;
25
+ description: string;
26
+ };
27
+ helper: {
28
+ control: string;
29
+ description: string;
30
+ };
31
+ helperAlign: {
32
+ control: {
33
+ type: string;
34
+ };
35
+ options: string[];
36
+ description: string;
37
+ };
38
+ required: {
39
+ control: string;
40
+ description: string;
41
+ };
42
+ optional: {
43
+ control: string;
44
+ description: string;
45
+ };
46
+ error: {
47
+ control: string;
48
+ description: string;
49
+ };
50
+ help: {
51
+ control: string;
52
+ description: string;
53
+ };
54
+ helpLink: {
55
+ control: string;
56
+ description: string;
57
+ };
58
+ helpLinkTooltipMessage: {
59
+ control: string;
60
+ description: string;
61
+ };
62
+ };
63
+ };
64
+ export default _default;
65
+ export declare const Default: StoryFn;
66
+ export declare const WithError: StoryFn;
67
+ export declare const WithHelper: StoryFn;
68
+ export declare const WithHelperAndAlign: StoryFn;
69
+ export declare const RequiredFields: StoryFn;
70
+ export declare const OptionalFields: StoryFn;
71
+ export declare const HorizontalLayout: StoryFn;
72
+ export declare const WithHelpTooltip: StoryFn;
73
+ export declare const WithHelpLink: StoryFn;
74
+ export declare const WithHelpLinkAndTooltip: StoryFn;
@@ -55,6 +55,15 @@ declare const _default: {
55
55
  };
56
56
  options: string[];
57
57
  };
58
+ help: {
59
+ control: string;
60
+ };
61
+ helpLink: {
62
+ control: string;
63
+ };
64
+ helpLinkTooltipMessage: {
65
+ control: string;
66
+ };
58
67
  };
59
68
  };
60
69
  export default _default;
@@ -72,3 +81,6 @@ export declare const MobileModal: StoryFn;
72
81
  export declare const WithError: StoryFn;
73
82
  export declare const WithHelper: StoryFn;
74
83
  export declare const WithHelperAndError: StoryFn;
84
+ export declare const WithHelp: StoryFn;
85
+ export declare const WithHelpLink: StoryFn;
86
+ export declare const WithHelpLinkAndTooltip: StoryFn;
@@ -64,6 +64,24 @@ declare const _default: {
64
64
  disable: boolean;
65
65
  };
66
66
  };
67
+ simulatedDelay: {
68
+ control: {
69
+ type: string;
70
+ min: number;
71
+ step: number;
72
+ };
73
+ description: string;
74
+ defaultValue: number;
75
+ };
76
+ help: {
77
+ control: string;
78
+ };
79
+ helpLink: {
80
+ control: string;
81
+ };
82
+ helpLinkTooltipMessage: {
83
+ control: string;
84
+ };
67
85
  onFilesChanged: {
68
86
  action: string;
69
87
  };
@@ -81,3 +99,8 @@ export declare const MultipleFiles: StoryFn;
81
99
  export declare const Disabled: StoryFn;
82
100
  export declare const WithValue: StoryFn;
83
101
  export declare const ErrorState: StoryFn;
102
+ export declare const WithHelp: StoryFn;
103
+ export declare const WithHelpLink: StoryFn;
104
+ export declare const WithHelpLinkAndTooltip: StoryFn;
105
+ export declare const InstantUpload: StoryFn;
106
+ export declare const SlowUpload: StoryFn;
@@ -0,0 +1 @@
1
+ export declare const errorStyles: import("lit").CSSResult;
@@ -0,0 +1,23 @@
1
+ import { css } from "lit";
2
+ import { bodyM } from "./fontStyles";
3
+
4
+ export const errorStyles = css `
5
+ :host([error]) .input-wrapper, .form.error .form-input {
6
+ border: 1px solid var(--ui-negative, red) !important;
7
+ }
8
+
9
+ :host([error]) .input-wrapper:hover, .form.error:hover .form-input:hover {
10
+ box-shadow: 0px 0px 0px 4px #e00f0f1a !important;
11
+ }
12
+
13
+ :host([error]) .input-wrapper.active, .form.error.active .form-input.active {
14
+ border: 1px solid var(--ui-negative, red) !important;
15
+ box-shadow: none !important;
16
+ }
17
+
18
+ .error-message {
19
+ ${ bodyM }
20
+ color: var(--ui-negative, #E00F0F);
21
+ margin-top: 4px;
22
+ }
23
+ `;
@@ -0,0 +1 @@
1
+ export declare const mixStyles: import("lit").CSSResult;
@@ -0,0 +1,51 @@
1
+
2
+ import { css } from "lit";
3
+ import { bodyL, bodyM, bodyXS } from "./fontStyles";
4
+
5
+ export const mixStyles = css `
6
+ :host {
7
+ display: block;
8
+ font-family: "Graphik", sans-serif;
9
+ color: var(--secondary-randstad-dark-blue, #0f1941);
10
+ width: 100%;
11
+ }
12
+
13
+ .form-label {
14
+ ${ bodyM }
15
+ display: flex;
16
+ align-items: baseline;
17
+ flex-direction: row;
18
+ gap: 4px;
19
+ color: var(--label-color, var(--secondary-color-80));
20
+ }
21
+
22
+ .input-container {
23
+ position: relative;
24
+ width: 100%;
25
+ max-width: 100%;
26
+ }
27
+
28
+ input::placeholder {
29
+ ${ bodyL }
30
+ color: var(--secondary-color-40);
31
+ }
32
+
33
+ .helper-description {
34
+ ${ bodyM }
35
+ color: var(--secondary-color-40);
36
+ margin: 0;
37
+ }
38
+
39
+ .required {
40
+ color: var(--ui-negative);
41
+ }
42
+
43
+ .optional {
44
+ color: var(--secondary-color-60);
45
+ ${ bodyXS }
46
+ }
47
+
48
+ randstad-icon {
49
+ color: var(--primary-color);
50
+ }
51
+ `;
@@ -0,0 +1 @@
1
+ export declare const progressBarUploadStyles: import("lit").CSSResult;
@@ -0,0 +1,23 @@
1
+ import { css } from 'lit';
2
+
3
+ export const progressBarUploadStyles = css`
4
+ .progress-bar-container {
5
+ min-height: 23px;
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
+
10
+ .progress-bar {
11
+ min-width: 80px;
12
+ height: 8px;
13
+ background-color: var(--secondary-color-20);
14
+ border-radius: 999px;
15
+ overflow: hidden;
16
+ }
17
+
18
+ .progress-bar-fill {
19
+ height: 100%;
20
+ background-color: var(--primary-color);
21
+ transition: width 0.1s ease;
22
+ }
23
+ `;
@@ -0,0 +1 @@
1
+ export declare const tooltipStyles: import("lit").CSSResult;
@@ -0,0 +1,56 @@
1
+ import { css } from 'lit';
2
+
3
+ export const tooltipStyles = css`
4
+ .label-container {
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: space-between;
8
+ gap: 8px;
9
+ }
10
+
11
+ .tooltip-wrapper {
12
+ position: relative;
13
+ display: inline-flex;
14
+ align-items: center;
15
+ }
16
+
17
+ .tooltip {
18
+ position: absolute;
19
+ top: 160%;
20
+ right: 0;
21
+
22
+ background-color: var(--tooltip-background, #0F1941);
23
+ color: var(--tooltip-color, #fff);
24
+
25
+ padding: 8px 12px;
26
+ border-radius: 4px;
27
+ font-size: 14px;
28
+ line-height: 20px;
29
+
30
+ width: 250px;
31
+ max-width: 250px;
32
+
33
+ z-index: 10;
34
+ opacity: 0;
35
+ visibility: hidden;
36
+ transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
37
+ }
38
+
39
+ .tooltip::after {
40
+ content: '';
41
+ position: absolute;
42
+ top: -6px;
43
+ right: 4px;
44
+
45
+ width: 0;
46
+ height: 0;
47
+ border-style: solid;
48
+ border-width: 0 6px 6px 6px;
49
+ border-color: transparent transparent var(--tooltip-background, #0F1941) transparent;
50
+ }
51
+
52
+ .tooltip-wrapper:hover .tooltip {
53
+ visibility: visible;
54
+ opacity: 1;
55
+ }
56
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randstad-uca/design-system",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",