dhre-component-lib 0.0.9 → 0.1.0
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/package.json +3 -2
- package/src/__mocks__/styleMock.js +1 -0
- package/src/components/Avatar/Avatar.test.tsx +53 -0
- package/src/components/Avatar/Avatar.tsx +28 -0
- package/src/components/Avatar/index.ts +1 -0
- package/src/components/Badge/Badge.module.scss +14 -0
- package/src/components/Badge/Badge.test.tsx +59 -0
- package/src/components/Badge/Badge.tsx +25 -0
- package/src/components/Badge/index.ts +1 -0
- package/src/components/BreadCrumb/BreadCrumb.test.tsx +90 -0
- package/src/components/BreadCrumb/BreadCrumb.tsx +45 -0
- package/src/components/BreadCrumb/Breadcrumb.module.scss +20 -0
- package/src/components/BreadCrumb/index.ts +1 -0
- package/src/components/Button/Button.module.scss +66 -0
- package/src/components/Button/Button.test.tsx +49 -0
- package/src/components/Button/Button.tsx +29 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Checkbox/Checkbox.test.tsx +93 -0
- package/src/components/Checkbox/Checkbox.tsx +35 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/CircularProgress/CircularProgress.module.scss +19 -0
- package/src/components/CircularProgress/CircularProgress.test.tsx +39 -0
- package/src/components/CircularProgress/CircularProgress.tsx +37 -0
- package/src/components/CircularProgress/index.ts +1 -0
- package/src/components/Divider/Divider.test.tsx +44 -0
- package/src/components/Divider/Divider.tsx +24 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/Enum.ts +19 -0
- package/src/components/InputTextField/InputTextField.test.tsx +118 -0
- package/src/components/InputTextField/InputTextField.tsx +48 -0
- package/src/components/InputTextField/index.ts +1 -0
- package/src/components/Link/Link.test.tsx +55 -0
- package/src/components/Link/Link.tsx +33 -0
- package/src/components/Link/index.ts +1 -0
- package/src/components/Map/Directions.tsx +36 -0
- package/src/components/Map/GoogleMap.module.scss +5 -0
- package/src/components/Map/GoogleMap.tsx +186 -0
- package/src/components/Map/GoogleMapsLoader.tsx +12 -0
- package/src/components/Map/index.ts +2 -0
- package/src/components/Modal/Modal.module.scss +26 -0
- package/src/components/Modal/Modal.test.tsx +74 -0
- package/src/components/Modal/Modal.tsx +39 -0
- package/src/components/Modal/index.ts +1 -0
- package/src/components/Notification/Notification.module.scss +20 -0
- package/src/components/Notification/Notification.test.tsx +53 -0
- package/src/components/Notification/Notification.tsx +42 -0
- package/src/components/Notification/index.ts +1 -0
- package/src/components/OtpInput/OtpInput.module.scss +49 -0
- package/src/components/OtpInput/OtpInput.test.tsx +53 -0
- package/src/components/OtpInput/OtpInput.tsx +137 -0
- package/src/components/OtpInput/index.ts +1 -0
- package/src/components/PdfView/PdfView.module.scss +69 -0
- package/src/components/PdfView/PdfView.test.tsx +52 -0
- package/src/components/PdfView/PdfView.tsx +116 -0
- package/src/components/PdfView/index.ts +1 -0
- package/src/components/Progress/Progress.test.tsx +43 -0
- package/src/components/Progress/Progress.tsx +35 -0
- package/src/components/Progress/index.ts +1 -0
- package/src/components/RadioButton/RadioButton.test.tsx +56 -0
- package/src/components/RadioButton/RadioButton.tsx +43 -0
- package/src/components/RadioButton/index.ts +1 -0
- package/src/components/Switch/Switch.test.tsx +83 -0
- package/src/components/Switch/Switch.tsx +38 -0
- package/src/components/Switch/index.ts +1 -0
- package/src/components/Tag/Tag.css +14 -0
- package/src/components/Tag/Tag.test.tsx +61 -0
- package/src/components/Tag/Tag.tsx +19 -0
- package/src/components/Tag/index.ts +1 -0
- package/src/components/Tooltip/Tooltip.module.scss +37 -0
- package/src/components/Tooltip/Tooltip.test.tsx +68 -0
- package/src/components/Tooltip/Tooltip.tsx +38 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/index.ts +15 -0
- package/src/index.ts +1 -0
- package/src/theme/Typography/typography.scss +117 -0
- package/src/theme/colors/colors.scss +22 -0
- package/src/theme/colors.ts +3 -0
- package/src/typings.d.ts +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as Button } from "./Button";
|
|
2
|
+
export { default as Avatar } from "./Avatar";
|
|
3
|
+
export { default as Badge } from "./Badge";
|
|
4
|
+
export { default as BreadCrumb } from "./BreadCrumb";
|
|
5
|
+
export { default as Checkbox } from "./Checkbox";
|
|
6
|
+
export { default as CircularProgress } from "./CircularProgress";
|
|
7
|
+
export { default as Divider } from "./Divider";
|
|
8
|
+
export { default as Link } from "./Link";
|
|
9
|
+
export { default as Progress } from "./Progress";
|
|
10
|
+
export { default as RadioButton } from "./RadioButton";
|
|
11
|
+
export { default as InputTextField } from "./InputTextField";
|
|
12
|
+
export { default } from "./PdfView";
|
|
13
|
+
export { default as Directions } from "./Map/Directions";
|
|
14
|
+
export { default as GoogleMap } from "./Map/GoogleMap";
|
|
15
|
+
export { default as OtpInput } from "./OtpInput/OtpInput";
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
$bold-weight: 700;
|
|
2
|
+
$semi-bold-weight: 400;
|
|
3
|
+
$medium-weight: 300;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
$font-sizes: (
|
|
7
|
+
'H1': 40px,
|
|
8
|
+
'H2': 36px,
|
|
9
|
+
'H3': 32px,
|
|
10
|
+
'H4': 26px,
|
|
11
|
+
'H5': 24px,
|
|
12
|
+
'H6': 22px,
|
|
13
|
+
'H7': 20px,
|
|
14
|
+
'H8': 18px,
|
|
15
|
+
'B1':20px,
|
|
16
|
+
'B2':18px,
|
|
17
|
+
'B3':16px,
|
|
18
|
+
'B4':14px,
|
|
19
|
+
'L1':14px,
|
|
20
|
+
'L2':12px,
|
|
21
|
+
'L3':10px,
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
$line-heights: (
|
|
25
|
+
'H1': 56px,
|
|
26
|
+
'H2': 50.4px,
|
|
27
|
+
'H3': 44.8px,
|
|
28
|
+
'H4': 36.4px,
|
|
29
|
+
'H5': 33.6px,
|
|
30
|
+
'H6': 30.8px,
|
|
31
|
+
'H7': 28px,
|
|
32
|
+
'H8': 25.2px,
|
|
33
|
+
'B1': 28px,
|
|
34
|
+
'B2': 25.2px,
|
|
35
|
+
'B3': 22.4px,
|
|
36
|
+
'B4': 22.4px,
|
|
37
|
+
'L1': 19.6px,
|
|
38
|
+
'L2': 16.8px,
|
|
39
|
+
'L3': 14px,
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
@mixin font-style($type, $weight, $font-size-key) {
|
|
43
|
+
$font-size: map-get($font-sizes, $font-size-key);
|
|
44
|
+
$line-height: map-get($line-heights, $font-size-key);
|
|
45
|
+
|
|
46
|
+
font-weight: $weight;
|
|
47
|
+
font-size: $font-size;
|
|
48
|
+
line-height: $line-height;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// H1 Styles
|
|
52
|
+
.H1_BOLD { @include font-style('heading', $bold-weight, 'H1'); }
|
|
53
|
+
.H1_SEMI_BOLD { @include font-style('heading', $semi-bold-weight, 'H1'); }
|
|
54
|
+
.H1_MEDIUM { @include font-style('heading', $medium-weight, 'H1'); }
|
|
55
|
+
|
|
56
|
+
// H2 Styles
|
|
57
|
+
.H2_BOLD { @include font-style('heading', $bold-weight, 'H2'); }
|
|
58
|
+
.H2_SEMI_BOLD { @include font-style('heading', $semi-bold-weight, 'H2'); }
|
|
59
|
+
.H2_MEDIUM { @include font-style('heading', $medium-weight, 'H2'); }
|
|
60
|
+
|
|
61
|
+
// H3 Styles
|
|
62
|
+
.H3_BOLD { @include font-style('heading', $bold-weight, 'H3'); }
|
|
63
|
+
.H3_SEMI_BOLD { @include font-style('heading', $semi-bold-weight, 'H3'); }
|
|
64
|
+
.H3_MEDIUM { @include font-style('heading', $medium-weight, 'H3'); }
|
|
65
|
+
|
|
66
|
+
// H4 Styles
|
|
67
|
+
.H4_BOLD { @include font-style('heading', $bold-weight, 'H4'); }
|
|
68
|
+
.H4_SEMI_BOLD { @include font-style('heading', $semi-bold-weight, 'H4'); }
|
|
69
|
+
.H4_MEDIUM { @include font-style('heading', $medium-weight, 'H4'); }
|
|
70
|
+
|
|
71
|
+
// H5 Styles
|
|
72
|
+
.H5_BOLD { @include font-style('heading', $bold-weight, 'H5'); }
|
|
73
|
+
.H5_SEMI_BOLD { @include font-style('heading', $semi-bold-weight, 'H5'); }
|
|
74
|
+
.H5_MEDIUM { @include font-style('heading', $medium-weight, 'H5'); }
|
|
75
|
+
|
|
76
|
+
// H6 Styles
|
|
77
|
+
.H6_BOLD { @include font-style('heading', $bold-weight, 'H6'); }
|
|
78
|
+
.H6_SEMI_BOLD { @include font-style('heading', $semi-bold-weight, 'H6'); }
|
|
79
|
+
.H6_MEDIUM { @include font-style('heading', $medium-weight, 'H6'); }
|
|
80
|
+
|
|
81
|
+
// H7 Styles
|
|
82
|
+
.H7_BOLD { @include font-style('heading', $bold-weight, 'H7'); }
|
|
83
|
+
.H7_SEMI_BOLD { @include font-style('heading', $semi-bold-weight, 'H7'); }
|
|
84
|
+
.H7_MEDIUM { @include font-style('heading', $medium-weight, 'H7'); }
|
|
85
|
+
|
|
86
|
+
// H8 Styles
|
|
87
|
+
.H8_BOLD { @include font-style('heading', $bold-weight, 'H8'); }
|
|
88
|
+
.H8_SEMI_BOLD { @include font-style('heading', $semi-bold-weight, 'H8'); }
|
|
89
|
+
.H8_MEDIUM { @include font-style('heading', $medium-weight, 'H8'); }
|
|
90
|
+
|
|
91
|
+
// B1 Styles
|
|
92
|
+
.B1_BOLD { @include font-style('body', $bold-weight, 'B1'); }
|
|
93
|
+
.B1_SEMI_BOLD { @include font-style('body', $semi-bold-weight, 'B1'); }
|
|
94
|
+
|
|
95
|
+
// B2 Styles
|
|
96
|
+
.B2_BOLD { @include font-style('body', $bold-weight, 'B2'); }
|
|
97
|
+
.B2_SEMI_BOLD { @include font-style('body', $semi-bold-weight, 'B2'); }
|
|
98
|
+
|
|
99
|
+
// B3 Styles
|
|
100
|
+
.B3_BOLD { @include font-style('body', $bold-weight, 'B3'); }
|
|
101
|
+
.B3_SEMI_BOLD { @include font-style('body', $semi-bold-weight, 'B3'); }
|
|
102
|
+
|
|
103
|
+
// B4 Styles
|
|
104
|
+
.B4_BOLD { @include font-style('body', $bold-weight, 'B4'); }
|
|
105
|
+
.B4_SEMI_BOLD { @include font-style('body', $semi-bold-weight, 'B4'); }
|
|
106
|
+
|
|
107
|
+
// L1 Styles
|
|
108
|
+
.L1_BOLD { @include font-style('body', $bold-weight, 'L1'); }
|
|
109
|
+
.L1_SEMI_BOLD { @include font-style('body', $semi-bold-weight, 'L1'); }
|
|
110
|
+
|
|
111
|
+
// L2 Styles
|
|
112
|
+
.L2_BOLD { @include font-style('body', $bold-weight, 'L2'); }
|
|
113
|
+
.L2_SEMI_BOLD { @include font-style('body', $semi-bold-weight, 'L2'); }
|
|
114
|
+
|
|
115
|
+
// L3 Styles
|
|
116
|
+
.L3_BOLD { @include font-style('body', $bold-weight, 'L3'); }
|
|
117
|
+
.L3_SEMI_BOLD { @include font-style('body', $semi-bold-weight, 'L3'); }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
$surface-primary: #FFFFFF;
|
|
2
|
+
$surface-secondary: #F5F5F5;
|
|
3
|
+
$surface-static: #FFFFFF;
|
|
4
|
+
$surface-brand-static: #D92D27;
|
|
5
|
+
$surface-brand-transparent-static: #D92D3E33;
|
|
6
|
+
$surface-disabled: #E1E1E1;
|
|
7
|
+
$surface-inverted-transparent: #68686833;
|
|
8
|
+
|
|
9
|
+
$content-primary: #000000;
|
|
10
|
+
$content-secondary: #686868;
|
|
11
|
+
$content-disabled: #A7A7A7;
|
|
12
|
+
$content-inverted: #FFFFFF;
|
|
13
|
+
$content-static: #FFFFFF;
|
|
14
|
+
$content-secondary-static: #CECECE;
|
|
15
|
+
|
|
16
|
+
$border-primary: #686868;
|
|
17
|
+
$border-secondary: #A7A7A7;
|
|
18
|
+
$border-disabled: #CECECE;
|
|
19
|
+
$border-inverted: #000000;
|
|
20
|
+
$border-brand-static: #D92D27;
|
|
21
|
+
$border-static: #FFFFFF;
|
|
22
|
+
$border-brand-danger: #EB0542;
|
package/src/typings.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '*.scss';
|