empower-container 0.1.9 → 0.1.12

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.
Files changed (83) hide show
  1. package/README.md +70 -2
  2. package/{src/main → dist}/assets/Asset.d.ts +0 -0
  3. package/{src/main → dist}/assets/Asset.js +0 -0
  4. package/{src/main → dist}/assets/Asset.tsx +0 -0
  5. package/{src/main → dist}/assets/icons/icon-check-white-sm.svg +0 -0
  6. package/{src/main → dist}/assets/images/icon-arrowdown-graydark.svg +0 -0
  7. package/{src/main → dist}/assets/images/icon-arrowleft-graydark.svg +0 -0
  8. package/{src/main → dist}/assets/images/icon-arrowright-graydark.svg +0 -0
  9. package/{src/main → dist}/assets/images/icon-arrowup-graydark.svg +0 -0
  10. package/{src/main → dist}/assets/images/icon-check-graydark.svg +0 -0
  11. package/dist/cjs/MenuBar.js +7 -7
  12. package/dist/esm/MenuBar.js +7 -7
  13. package/dist/scss/elements/_button.scss +5 -5
  14. package/dist/scss/library/_menubar.scss +41 -11
  15. package/dist/scss/library/_select.scss +6 -5
  16. package/package.json +2 -2
  17. package/public/favicon.ico +0 -0
  18. package/public/index.html +0 -43
  19. package/public/logo192.png +0 -0
  20. package/public/logo512.png +0 -0
  21. package/public/manifest.json +0 -25
  22. package/public/robots.txt +0 -3
  23. package/src/index.tsx +0 -15
  24. package/src/main/DatetimeFormatter.d.ts +0 -3
  25. package/src/main/DatetimeFormatter.js +0 -389
  26. package/src/main/DatetimeFormatter.tsx +0 -392
  27. package/src/main/Information.d.ts +0 -10
  28. package/src/main/Information.js +0 -65
  29. package/src/main/Information.tsx +0 -112
  30. package/src/main/MenuBar.d.ts +0 -24
  31. package/src/main/MenuBar.js +0 -650
  32. package/src/main/MenuBar.tsx +0 -1072
  33. package/src/main/Modal.d.ts +0 -33
  34. package/src/main/Modal.js +0 -24
  35. package/src/main/Modal.tsx +0 -83
  36. package/src/main/constants/Constant.d.ts +0 -15
  37. package/src/main/constants/Constant.js +0 -44
  38. package/src/main/index.d.ts +0 -3
  39. package/src/main/index.js +0 -10
  40. package/src/main/index.tsx +0 -5
  41. package/src/main/inputs/Input.d.ts +0 -25
  42. package/src/main/inputs/Input.js +0 -135
  43. package/src/main/inputs/Input.tsx +0 -193
  44. package/src/main/inputs/InputSelectionHandler.d.ts +0 -2
  45. package/src/main/inputs/InputSelectionHandler.js +0 -36
  46. package/src/main/inputs/InputSelectionHandler.tsx +0 -21
  47. package/src/main/inputs/Select.d.ts +0 -28
  48. package/src/main/inputs/Select.js +0 -456
  49. package/src/main/inputs/Select.tsx +0 -654
  50. package/src/main/tsconfig.common.json +0 -34
  51. package/src/main/tsconfig.json +0 -35
  52. package/src/sample/App.css +0 -38
  53. package/src/sample/App.d.ts +0 -3
  54. package/src/sample/App.js +0 -13
  55. package/src/sample/App.test.d.ts +0 -1
  56. package/src/sample/App.test.js +0 -13
  57. package/src/sample/App.test.tsx +0 -9
  58. package/src/sample/App.tsx +0 -15
  59. package/src/sample/TestMenuBar.d.ts +0 -2
  60. package/src/sample/TestMenuBar.js +0 -508
  61. package/src/sample/TestMenuBar.tsx +0 -362
  62. package/src/sample/react-app-env.d.ts +0 -1
  63. package/src/sample/reportWebVitals.d.ts +0 -3
  64. package/src/sample/reportWebVitals.js +0 -38
  65. package/src/sample/reportWebVitals.ts +0 -15
  66. package/src/sample/setupTests.d.ts +0 -1
  67. package/src/sample/setupTests.js +0 -7
  68. package/src/sample/setupTests.ts +0 -5
  69. package/src/sample/tsconfig.json +0 -36
  70. package/src/scss/components/_modal.scss +0 -66
  71. package/src/scss/elements/_button.scss +0 -107
  72. package/src/scss/elements/_index.scss +0 -2
  73. package/src/scss/elements/_popover.scss +0 -8
  74. package/src/scss/foundation/_colors.scss +0 -60
  75. package/src/scss/foundation/_mixins.scss +0 -41
  76. package/src/scss/foundation/_normalize.scss +0 -204
  77. package/src/scss/foundation/_settings.scss +0 -36
  78. package/src/scss/foundation/_typography.scss +0 -95
  79. package/src/scss/library/_information.scss +0 -68
  80. package/src/scss/library/_input.scss +0 -37
  81. package/src/scss/library/_menubar.scss +0 -225
  82. package/src/scss/library/_select.scss +0 -258
  83. package/src/scss/style.scss +0 -24
@@ -1,2 +0,0 @@
1
- @forward 'button';
2
- @forward 'popover';
@@ -1,8 +0,0 @@
1
- .em-popover {
2
- background-color: $white;
3
- border-top: 5px solid $blue-light4;
4
- border-bottom-left-radius: $border-radius-md;
5
- border-bottom-right-radius: $border-radius-md;
6
- box-shadow: $shadow-popover;
7
- max-width: 650px;
8
- }
@@ -1,60 +0,0 @@
1
- // Gray
2
- $gray: #515977;
3
- $gray-light: #F4F5F7;
4
- $gray-light1: #E0E3E9;
5
- $gray-light2: #C0C5D1;
6
- $gray-light3: #9FA5B7;
7
- $gray-light4: #788098;
8
- $gray-dark: #393F5A;
9
- $gray-dark1: #262942;
10
- $gray-dark2: #15172C;
11
- $gray-dark3: #0D0E1C;
12
- $white: #FFF;
13
-
14
- // Green
15
- $green: #53C01E;
16
- $green-light: #F5FEED;
17
- $green-light1: #D9F5BF;
18
- $green-light2: #B7E991;
19
- $green-light3: #95DB67;
20
- $green-light4: #73CD40;
21
- $green-dark: #399A10;
22
- $green-dark1: #237506;
23
- $green-dark2: #145002;
24
- $green-dark3: #092A01;
25
-
26
- // Blue
27
- $blue: #3356E6;
28
- $blue-light: #F0F5FE;
29
- $blue-light1: #D7E4FE;
30
- $blue-light2: #AFC7FD;
31
- $blue-light3: #88A6FC;
32
- $blue-light4: #5C7FF3;
33
- $blue-dark: #213CC0;
34
- $blue-dark1: #13259A;
35
- $blue-dark2: #081375;
36
- $blue-dark3: #050A50;
37
-
38
- // Red
39
- $red: #F02731;
40
- $red-light: #FEF1F0;
41
- $red-light1: #FDCDC8;
42
- $red-light2: #FCA5A0;
43
- $red-light3: #FC7B78;
44
- $red-light4: #FB5153;
45
- $red-dark: #CA1725;
46
- $red-dark1: #A40B1D;
47
- $red-dark2: #7F0316;
48
- $red-dark3: #5A0212;
49
-
50
- // Yellow
51
- $yellow: #FADA15;
52
- $yellow-light: #FEFFE5;
53
- $yellow-light1: #FFFFB7;
54
- $yellow-light2: #FFFB8E;
55
- $yellow-light3: #FFF567;
56
- $yellow-light4: #FFEB3E;
57
- $yellow-dark: #D3B006;
58
- $yellow-dark1: #AC8B00;
59
- $yellow-dark2: #876900;
60
- $yellow-dark3: #624800;
@@ -1,41 +0,0 @@
1
- // Breakpoint: Smaller devices
2
- @mixin xs {
3
- @media (min-width: #{$screen-xs-min}) {
4
- @content;
5
- }
6
- }
7
-
8
- // Breakpoint: Small devices
9
- @mixin sm {
10
- @media (min-width: #{$screen-sm-min}) {
11
- @content;
12
- }
13
- }
14
-
15
- // Breakpoint: Medium devices
16
- @mixin md {
17
- @media (min-width: #{$screen-md-min}) {
18
- @content;
19
- }
20
- }
21
-
22
- // Breakpoint: Large devices
23
- @mixin lg {
24
- @media (min-width: #{$screen-lg-min}) {
25
- @content;
26
- }
27
- }
28
-
29
- // Breakpoint: Extra large devices
30
- @mixin xl {
31
- @media (min-width: #{$screen-xl-min}) {
32
- @content;
33
- }
34
- }
35
-
36
- // Breakpoint: Extra large devices
37
- @mixin xxl {
38
- @media (min-width: #{$screen-xxl-min}) {
39
- @content;
40
- }
41
- }
@@ -1,204 +0,0 @@
1
- html {
2
- -webkit-box-sizing: border-box;
3
- -moz-box-sizing: border-box;
4
- box-sizing: border-box;
5
- overflow-x: hidden;
6
- }
7
-
8
- *, *:before, *:after {
9
- -webkit-box-sizing: inherit;
10
- -moz-box-sizing: inherit;
11
- box-sizing: inherit;
12
- }
13
-
14
- html {
15
- line-height: 1.15; /* 1 */
16
- -webkit-text-size-adjust: 100%; /* 2 */
17
- }
18
-
19
- body {
20
- margin: 0;
21
- }
22
-
23
- main {
24
- display: block;
25
- }
26
-
27
- h1 {
28
- font-size: 2em;
29
- margin: 0 0 0.67em;
30
- }
31
-
32
- hr {
33
- box-sizing: content-box; /* 1 */
34
- height: 0; /* 1 */
35
- overflow: visible; /* 2 */
36
- }
37
-
38
- pre {
39
- font-family: monospace, monospace; /* 1 */
40
- font-size: 1em; /* 2 */
41
- }
42
-
43
- a {
44
- background-color: transparent;
45
- }
46
-
47
- abbr[title] {
48
- border-bottom: none; /* 1 */
49
- text-decoration: underline; /* 2 */
50
- text-decoration: underline dotted; /* 2 */
51
- }
52
-
53
- b,
54
- strong {
55
- font-weight: bolder;
56
- }
57
-
58
- code,
59
- kbd,
60
- samp {
61
- font-family: monospace, monospace; /* 1 */
62
- font-size: 1em; /* 2 */
63
- }
64
-
65
- small {
66
- font-size: 80%;
67
- }
68
-
69
- sub,
70
- sup {
71
- font-size: 75%;
72
- line-height: 0;
73
- position: relative;
74
- vertical-align: baseline;
75
- }
76
-
77
- sub {
78
- bottom: -0.25em;
79
- }
80
-
81
- sup {
82
- top: -0.5em;
83
- }
84
-
85
- img {
86
- border-style: none;
87
- }
88
-
89
- button,
90
- input,
91
- optgroup,
92
- select,
93
- textarea {
94
- font-family: inherit; /* 1 */
95
- font-size: 100%; /* 1 */
96
- line-height: 1.15; /* 1 */
97
- margin: 0; /* 2 */
98
- }
99
-
100
- button,
101
- input { /* 1 */
102
- overflow: visible;
103
- }
104
-
105
- button,
106
- select { /* 1 */
107
- text-transform: none;
108
- }
109
-
110
- button,
111
- [type="button"],
112
- [type="reset"],
113
- [type="submit"] {
114
- -webkit-appearance: button;
115
- }
116
-
117
- button::-moz-focus-inner,
118
- [type="button"]::-moz-focus-inner,
119
- [type="reset"]::-moz-focus-inner,
120
- [type="submit"]::-moz-focus-inner {
121
- border-style: none;
122
- padding: 0;
123
- }
124
-
125
- button:-moz-focusring,
126
- [type="button"]:-moz-focusring,
127
- [type="reset"]:-moz-focusring,
128
- [type="submit"]:-moz-focusring {
129
- outline: 1px dotted ButtonText;
130
- }
131
-
132
- fieldset {
133
- padding: 0.35em 0.75em 0.625em;
134
- }
135
-
136
- legend {
137
- box-sizing: border-box;
138
- color: inherit;
139
- display: table;
140
- max-width: 100%;
141
- padding: 0;
142
- white-space: normal;
143
- }
144
-
145
- progress {
146
- vertical-align: baseline;
147
- }
148
-
149
- textarea {
150
- overflow: auto;
151
- }
152
-
153
- [type="checkbox"],
154
- [type="radio"] {
155
- box-sizing: border-box;
156
- padding: 0;
157
- }
158
-
159
- [type="number"]::-webkit-inner-spin-button,
160
- [type="number"]::-webkit-outer-spin-button {
161
- height: auto;
162
- }
163
-
164
- [type="search"] {
165
- -webkit-appearance: textfield;
166
- outline-offset: -2px;
167
- }
168
-
169
- [type="search"]::-webkit-search-decoration {
170
- -webkit-appearance: none;
171
- }
172
-
173
- ::-webkit-file-upload-button {
174
- -webkit-appearance: button; /* 1 */
175
- font: inherit; /* 2 */
176
- }
177
-
178
- details {
179
- display: block;
180
- }
181
-
182
- summary {
183
- display: list-item;
184
- }
185
-
186
- template {
187
- display: none;
188
- }
189
-
190
- [hidden] {
191
- display: none;
192
- }
193
-
194
- input{
195
- &:focus{
196
- outline: none;
197
- }
198
- }
199
-
200
- li{
201
- list-style: none;
202
- padding-top: 3px;
203
- }
204
-
@@ -1,36 +0,0 @@
1
- // Breakpoints
2
- $screen-xs-min: 400px; // Small smartphones
3
- $screen-sm-min: 576px; // Small tablets and large smartphones (landscape view)
4
- $screen-md-min: 768px; // Small tablets (portrait view)
5
- $screen-lg-min: 992px; // Tablets and small desktopsw
6
- $screen-xl-min: 1200px; // Large tablets and desktops
7
- $screen-xxl-min: 1500px; // Large tablets and desktops
8
-
9
- // Container max width
10
- $container-width: 1024px;
11
-
12
- // Transition easing
13
- $transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
14
-
15
- // Shadow
16
- $shadow-card: 0px 10px 20px 0px rgba(19, 37, 154, 0.05);
17
- $shadow-popover: 0px 15px 30px 0px rgba(19, 37, 154, 0.15);
18
- $shadow-modal: 0 30px 60px rgba(0,0,0,0.2);
19
-
20
- // Border Radius
21
- $border-radius-sm: 5px;
22
- $border-radius-md: 10px;
23
- $border-radius-lg: 20px;
24
-
25
- // Grid
26
- $grid-margin: -7.5px;
27
- $grid-gutter: 7.5px;
28
-
29
- // Typography
30
- $font-body: "Roboto", sans-serif;
31
- $font-heading: "Quicksand", sans-serif;
32
- $font-regular: 400;
33
- $font-bold: 700;
34
- $text-lg: 2rem;
35
- $text-base: 1rem;
36
- $text-sm: 0.875rem;
@@ -1,95 +0,0 @@
1
- body {
2
- font-family: 'Roboto', sans-serif;
3
- }
4
-
5
- h1, h2, h3, h4, h5, h6{
6
- margin: 0 0 1rem;
7
- color: $gray-dark;
8
- font-family: 'Quicksand', sans-serif;
9
-
10
- &:last-of-type{
11
- margin-bottom: 0;
12
- }
13
- }
14
-
15
- h1{
16
- font-size: 2.25rem;
17
-
18
- @include md{
19
- font-size: 2.625rem;
20
- }
21
- }
22
-
23
- h2{
24
- font-size: 1.875rem;
25
-
26
- @include md{
27
- font-size: 2.25rem;
28
- }
29
- }
30
-
31
- h3{
32
- font-size: 1.5rem;
33
-
34
- @include md{
35
- font-size: 1.875rem;
36
- }
37
- }
38
-
39
- h4{
40
- font-size: 1.25rem;
41
-
42
- @include md{
43
- font-size: 1.5rem;
44
- }
45
- }
46
-
47
- h5{
48
- font-size: 1rem;
49
-
50
- @include md{
51
- font-size: 1.25rem;
52
- }
53
- }
54
-
55
- h6{
56
- font-size: 0.875rem;
57
- }
58
-
59
- label{
60
- font-size: 0.875rem;
61
- font-weight: 700;
62
- color: $gray-light3;
63
- text-transform: capitalize;
64
- display: inline-block;
65
- margin: 0 0 0.25rem;
66
- }
67
-
68
- p{
69
- color: $gray-dark;
70
- line-height: 1.5;
71
- margin: 0 0 1rem;
72
-
73
- &:last-of-type{
74
- margin-bottom: 0;
75
- }
76
- }
77
-
78
- a{
79
- color: $green-dark;
80
- font-weight: 700;
81
- font-size: 0.875rem;
82
- text-decoration: none;
83
- transition: $transition;
84
-
85
- &:hover{
86
- color: $green-dark1;
87
- }
88
- }
89
-
90
- .sub-text{
91
- font-size: $text-sm;
92
- color: $gray-light4;
93
- display: block;
94
- line-height: 20px;
95
- }
@@ -1,68 +0,0 @@
1
- .em-belt-info {
2
- position: relative;
3
-
4
- .em-info-icon {
5
- display: flex;
6
- justify-content: center;
7
- align-items: center;
8
- height: 40px;
9
- width: 40px;
10
- border-radius: $border-radius-md;
11
-
12
- &:hover {
13
- background-color: $blue-light;
14
-
15
- svg {
16
- path {
17
- stroke: #5C7FF3;
18
- }
19
-
20
- circle {
21
- fill: #5C7FF3;
22
- }
23
- }
24
- }
25
- }
26
- }
27
-
28
- .em-popover-i {
29
- background-color: $white;
30
- width: 650px;
31
- border-bottom-left-radius: $border-radius-md;
32
- border-bottom-right-radius: $border-radius-md;
33
-
34
- .em-popover-i-content {
35
- > div {
36
- max-height: calc(75vh - 120px);
37
- overflow-y: auto;
38
- border-bottom: 1px solid $gray-light1;
39
- padding: 15px;
40
-
41
- &:last-of-type {
42
- border: none;
43
- border-bottom-left-radius: $border-radius-md;
44
- border-bottom-right-radius: $border-radius-md;
45
- }
46
- }
47
-
48
- .em-popover-i-title {
49
- display: flex;
50
- justify-content: space-between;
51
- align-items: center;
52
- }
53
-
54
- .em-popover-i-category {
55
- display: flex;
56
- justify-content: space-between;
57
-
58
- &:hover {
59
- cursor: pointer;
60
- background-color: $gray-light;
61
- }
62
- }
63
-
64
- .em-popover-i-close {
65
- cursor: pointer;
66
- }
67
- }
68
- }
@@ -1,37 +0,0 @@
1
- .em-input {
2
- position: relative;
3
- width: 100%;
4
-
5
- .em-input-field {
6
- min-height: 50px;
7
- width: 100%;
8
- background-color: $blue-light;
9
- border-top-left-radius: 10px;
10
- border-top-right-radius: 10px;
11
- border-bottom-right-radius: 0;
12
- border-bottom-left-radius: 0;
13
- box-shadow: inset 0 -2px 0 0 $blue-light1;
14
- border: none;
15
- font-size: 0.875rem;
16
- color: $gray-dark;
17
- padding: 10px 15px;
18
- margin-bottom: 15px;
19
- transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
20
-
21
- &:focus {
22
- background-color: $blue-light;
23
- color: $gray-dark;
24
- border: none;
25
- outline: none;
26
- box-shadow: inset 0 -2px 0 0 $blue-light4;
27
- }
28
- }
29
-
30
- .em-noresult {
31
- padding: 20px;
32
- }
33
- }
34
-
35
- .is-invalid .em-input .em-input-field {
36
- box-shadow: 0 2px 0 0 $red;
37
- }