empower-container 0.1.2 → 0.1.5

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 (106) hide show
  1. package/README.md +240 -236
  2. package/package.json +5 -2
  3. package/src/main/DatetimeFormatter.js +24 -21
  4. package/src/main/DatetimeFormatter.tsx +7 -4
  5. package/src/main/Information.js +13 -15
  6. package/src/main/Information.tsx +40 -36
  7. package/src/main/MenuBar.d.ts +0 -1
  8. package/src/main/MenuBar.js +26 -22
  9. package/src/main/MenuBar.tsx +41 -37
  10. package/src/main/Modal.d.ts +1 -0
  11. package/src/main/Modal.js +5 -5
  12. package/src/main/Modal.tsx +7 -10
  13. package/src/main/assets/Asset.d.ts +1 -0
  14. package/src/main/assets/Asset.js +5 -1
  15. package/src/main/assets/Asset.tsx +9 -0
  16. package/src/main/inputs/Input.d.ts +0 -1
  17. package/src/main/inputs/Input.js +0 -1
  18. package/src/main/inputs/Input.tsx +0 -1
  19. package/src/main/inputs/Select.d.ts +0 -1
  20. package/src/main/inputs/Select.js +3 -3
  21. package/src/main/inputs/Select.tsx +3 -3
  22. package/src/main/tsconfig.common.json +2 -1
  23. package/src/main/tsconfig.json +1 -0
  24. package/src/sample/App.d.ts +0 -1
  25. package/src/sample/App.js +1 -1
  26. package/src/sample/App.tsx +2 -1
  27. package/src/sample/TestMenuBar.js +24 -4
  28. package/src/sample/TestMenuBar.tsx +40 -10
  29. package/src/scss/components/_modal.scss +41 -30
  30. package/src/scss/elements/_button.scss +1 -3
  31. package/src/scss/elements/_popover.scss +6 -38
  32. package/src/scss/foundation/_mixins.scss +0 -2
  33. package/src/scss/foundation/_typography.scss +0 -4
  34. package/src/scss/library/_information.scss +68 -0
  35. package/{dist/scss/library/input.scss → src/scss/library/_input.scss} +0 -2
  36. package/{dist/scss/library/menubar.scss → src/scss/library/_menubar.scss} +0 -2
  37. package/{dist/scss/library/select.scss → src/scss/library/_select.scss} +0 -4
  38. package/src/scss/style.scss +21 -5
  39. package/dist/assets/Asset.d.ts +0 -14
  40. package/dist/assets/Asset.js +0 -43
  41. package/dist/assets/Asset.tsx +0 -66
  42. package/dist/assets/icons/icon-check-white-sm.svg +0 -3
  43. package/dist/assets/images/icon-arrowdown-graydark.svg +0 -3
  44. package/dist/assets/images/icon-arrowleft-graydark.svg +0 -3
  45. package/dist/assets/images/icon-arrowright-graydark.svg +0 -3
  46. package/dist/assets/images/icon-arrowup-graydark.svg +0 -3
  47. package/dist/assets/images/icon-check-graydark.svg +0 -3
  48. package/dist/cjs/DatetimeFormatter.d.ts +0 -3
  49. package/dist/cjs/DatetimeFormatter.js +0 -386
  50. package/dist/cjs/Information.d.ts +0 -10
  51. package/dist/cjs/Information.js +0 -64
  52. package/dist/cjs/MenuBar.d.ts +0 -25
  53. package/dist/cjs/MenuBar.js +0 -534
  54. package/dist/cjs/Modal.d.ts +0 -32
  55. package/dist/cjs/Modal.js +0 -32
  56. package/dist/cjs/assets/Asset.d.ts +0 -14
  57. package/dist/cjs/assets/Asset.js +0 -28
  58. package/dist/cjs/constants/Constant.d.ts +0 -15
  59. package/dist/cjs/constants/Constant.js +0 -35
  60. package/dist/cjs/index.d.ts +0 -3
  61. package/dist/cjs/index.js +0 -10
  62. package/dist/cjs/inputs/Input.d.ts +0 -26
  63. package/dist/cjs/inputs/Input.js +0 -107
  64. package/dist/cjs/inputs/InputSelectionHandler.d.ts +0 -3
  65. package/dist/cjs/inputs/InputSelectionHandler.js +0 -36
  66. package/dist/cjs/inputs/Select.d.ts +0 -29
  67. package/dist/cjs/inputs/Select.js +0 -403
  68. package/dist/esm/DatetimeFormatter.d.ts +0 -3
  69. package/dist/esm/DatetimeFormatter.js +0 -382
  70. package/dist/esm/Information.d.ts +0 -10
  71. package/dist/esm/Information.js +0 -36
  72. package/dist/esm/MenuBar.d.ts +0 -25
  73. package/dist/esm/MenuBar.js +0 -529
  74. package/dist/esm/Modal.d.ts +0 -32
  75. package/dist/esm/Modal.js +0 -27
  76. package/dist/esm/assets/Asset.d.ts +0 -14
  77. package/dist/esm/assets/Asset.js +0 -25
  78. package/dist/esm/constants/Constant.d.ts +0 -15
  79. package/dist/esm/constants/Constant.js +0 -32
  80. package/dist/esm/index.d.ts +0 -3
  81. package/dist/esm/index.js +0 -3
  82. package/dist/esm/inputs/Input.d.ts +0 -26
  83. package/dist/esm/inputs/Input.js +0 -105
  84. package/dist/esm/inputs/InputSelectionHandler.d.ts +0 -3
  85. package/dist/esm/inputs/InputSelectionHandler.js +0 -31
  86. package/dist/esm/inputs/Select.d.ts +0 -29
  87. package/dist/esm/inputs/Select.js +0 -399
  88. package/dist/scss/components/_index.scss +0 -1
  89. package/dist/scss/components/_modal.scss +0 -55
  90. package/dist/scss/elements/_button.scss +0 -109
  91. package/dist/scss/elements/_index.scss +0 -2
  92. package/dist/scss/elements/_popover.scss +0 -40
  93. package/dist/scss/foundation/_colors.scss +0 -60
  94. package/dist/scss/foundation/_index.scss +0 -5
  95. package/dist/scss/foundation/_mixins.scss +0 -43
  96. package/dist/scss/foundation/_normalize.scss +0 -204
  97. package/dist/scss/foundation/_settings.scss +0 -36
  98. package/dist/scss/foundation/_typography.scss +0 -99
  99. package/dist/scss/library/_index.scss +0 -3
  100. package/dist/scss/style.scss +0 -8
  101. package/src/scss/components/_index.scss +0 -1
  102. package/src/scss/foundation/_index.scss +0 -5
  103. package/src/scss/library/_index.scss +0 -3
  104. package/src/scss/library/input.scss +0 -39
  105. package/src/scss/library/menubar.scss +0 -227
  106. package/src/scss/library/select.scss +0 -262
@@ -1,5 +0,0 @@
1
- @forward 'colors';
2
- @forward 'normalize';
3
- @forward 'settings';
4
- @forward 'typography';
5
- @forward 'mixins';
@@ -1,43 +0,0 @@
1
- @use 'settings' as *;
2
-
3
- // Breakpoint: Smaller devices
4
- @mixin xs {
5
- @media (min-width: #{$screen-xs-min}) {
6
- @content;
7
- }
8
- }
9
-
10
- // Breakpoint: Small devices
11
- @mixin sm {
12
- @media (min-width: #{$screen-sm-min}) {
13
- @content;
14
- }
15
- }
16
-
17
- // Breakpoint: Medium devices
18
- @mixin md {
19
- @media (min-width: #{$screen-md-min}) {
20
- @content;
21
- }
22
- }
23
-
24
- // Breakpoint: Large devices
25
- @mixin lg {
26
- @media (min-width: #{$screen-lg-min}) {
27
- @content;
28
- }
29
- }
30
-
31
- // Breakpoint: Extra large devices
32
- @mixin xl {
33
- @media (min-width: #{$screen-xl-min}) {
34
- @content;
35
- }
36
- }
37
-
38
- // Breakpoint: Extra large devices
39
- @mixin xxl {
40
- @media (min-width: #{$screen-xxl-min}) {
41
- @content;
42
- }
43
- }
@@ -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,99 +0,0 @@
1
- @use 'colors' as *;
2
- @use 'mixins' as *;
3
- @use 'settings' as *;
4
-
5
- body {
6
- font-family: 'Roboto', sans-serif;
7
- }
8
-
9
- h1, h2, h3, h4, h5, h6{
10
- margin: 0 0 1rem;
11
- color: $gray-dark;
12
- font-family: 'Quicksand', sans-serif;
13
-
14
- &:last-of-type{
15
- margin-bottom: 0;
16
- }
17
- }
18
-
19
- h1{
20
- font-size: 2.25rem;
21
-
22
- @include md{
23
- font-size: 2.625rem;
24
- }
25
- }
26
-
27
- h2{
28
- font-size: 1.875rem;
29
-
30
- @include md{
31
- font-size: 2.25rem;
32
- }
33
- }
34
-
35
- h3{
36
- font-size: 1.5rem;
37
-
38
- @include md{
39
- font-size: 1.875rem;
40
- }
41
- }
42
-
43
- h4{
44
- font-size: 1.25rem;
45
-
46
- @include md{
47
- font-size: 1.5rem;
48
- }
49
- }
50
-
51
- h5{
52
- font-size: 1rem;
53
-
54
- @include md{
55
- font-size: 1.25rem;
56
- }
57
- }
58
-
59
- h6{
60
- font-size: 0.875rem;
61
- }
62
-
63
- label{
64
- font-size: 0.875rem;
65
- font-weight: 700;
66
- color: $gray-light3;
67
- text-transform: capitalize;
68
- display: inline-block;
69
- margin: 0 0 0.25rem;
70
- }
71
-
72
- p{
73
- color: $gray-dark;
74
- line-height: 1.5;
75
- margin: 0 0 1rem;
76
-
77
- &:last-of-type{
78
- margin-bottom: 0;
79
- }
80
- }
81
-
82
- a{
83
- color: $green-dark;
84
- font-weight: 700;
85
- font-size: 0.875rem;
86
- text-decoration: none;
87
- transition: $transition;
88
-
89
- &:hover{
90
- color: $green-dark1;
91
- }
92
- }
93
-
94
- .sub-text{
95
- font-size: $text-sm;
96
- color: $gray-light4;
97
- display: block;
98
- line-height: 20px;
99
- }
@@ -1,3 +0,0 @@
1
- @forward 'input';
2
- @forward 'menubar';
3
- @forward 'select';
@@ -1,8 +0,0 @@
1
-
2
- @use 'components';
3
- @use 'foundation';
4
- @use 'elements';
5
- @use 'library';
6
-
7
- @import url("https://fonts.googleapis.com/css?family=Quicksand:400,700|Roboto:400,400i,700&display=swap");
8
-
@@ -1 +0,0 @@
1
- @forward 'modal';
@@ -1,5 +0,0 @@
1
- @forward 'colors';
2
- @forward 'normalize';
3
- @forward 'settings';
4
- @forward 'typography';
5
- @forward 'mixins';
@@ -1,3 +0,0 @@
1
- @forward 'input';
2
- @forward 'menubar';
3
- @forward 'select';
@@ -1,39 +0,0 @@
1
- @use '../foundation' as *;
2
-
3
- .em-input {
4
- position: relative;
5
- width: 100%;
6
-
7
- .em-input-field {
8
- min-height: 50px;
9
- width: 100%;
10
- background-color: $blue-light;
11
- border-top-left-radius: 10px;
12
- border-top-right-radius: 10px;
13
- border-bottom-right-radius: 0;
14
- border-bottom-left-radius: 0;
15
- box-shadow: inset 0 -2px 0 0 $blue-light1;
16
- border: none;
17
- font-size: 0.875rem;
18
- color: $gray-dark;
19
- padding: 10px 15px;
20
- margin-bottom: 15px;
21
- transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
22
-
23
- &:focus {
24
- background-color: $blue-light;
25
- color: $gray-dark;
26
- border: none;
27
- outline: none;
28
- box-shadow: inset 0 -2px 0 0 $blue-light4;
29
- }
30
- }
31
-
32
- .em-noresult {
33
- padding: 20px;
34
- }
35
- }
36
-
37
- .is-invalid .em-input .em-input-field {
38
- box-shadow: 0 2px 0 0 $red;
39
- }
@@ -1,227 +0,0 @@
1
- @use '../foundation' as *;
2
-
3
- .em-card-belt {
4
- display: flex;
5
- justify-content: space-between;
6
- width: 100%;
7
- min-height: 40px;
8
- padding: 20px 15px;
9
-
10
- .em-belt-left {
11
- display: flex;
12
- align-items: center;
13
- flex-wrap: wrap;
14
-
15
- .belt-info {
16
- margin-left: 10px;
17
- }
18
- }
19
-
20
- .em-beltleft-container {
21
- display: flex;
22
- justify-content: center;
23
- align-items: center;
24
- margin-right: 20px;
25
-
26
- > .belt-icon {
27
- margin-right: 10px;
28
- display: flex;
29
- justify-content: center;
30
- align-items: center;
31
-
32
- svg {
33
- path, rect {
34
- fill: $blue-light4;
35
- }
36
- }
37
- }
38
-
39
- .icon-back {
40
- height: 40px;
41
- width: 40px;
42
- min-width: 40px;
43
- margin-right: 10px;
44
- border-radius: 10px;
45
- display: flex;
46
- align-items: center;
47
- justify-content: center;
48
- transition: all .5s cubic-bezier(.19,1,.22,1);
49
- box-shadow: none;
50
-
51
- &:hover {
52
- svg {
53
- transition: all .5s cubic-bezier(.19,1,.22,1);
54
- transform: translateX(-2px);
55
- }
56
- }
57
- }
58
-
59
- .belt-icon-check {
60
- margin-right: 10px;
61
-
62
- > div {
63
- display: flex;
64
- }
65
- }
66
-
67
- .belt-title {
68
- margin-block: 10px;
69
- flex: none;
70
-
71
- h6 {
72
- text-transform: uppercase;
73
- font-size: .875rem;
74
- color: $gray-dark;
75
- margin: 0;
76
- }
77
- }
78
- }
79
-
80
- .em-beltleft-cta {
81
- display: flex;
82
- justify-content: center;
83
- align-items: center;
84
- margin-right: 20px;
85
-
86
- a {
87
- margin-right: 10px;
88
- display: flex;
89
- justify-content: center;
90
- align-items: center;
91
- max-height: 40px;
92
- padding: 10px 20px;
93
- }
94
- }
95
-
96
- .em-belt-right {
97
- display: flex;
98
- align-items: center;
99
- justify-content: flex-end;
100
- flex-wrap: wrap;
101
-
102
- > a, > div {
103
- margin-left: 10px;
104
- }
105
-
106
- .em-dropdown {
107
- position: relative;
108
- }
109
-
110
- .pagination-summary, .belt-dropdown {
111
- display: flex;
112
- align-items: center;
113
- justify-content: center;
114
- height: 40px;
115
- padding: 10px 20px;
116
- border: none;
117
- border-radius: 10px;
118
- box-shadow: inset 0 0 0 1px $blue-light2;
119
- color: $gray-dark;
120
- text-decoration: none;
121
- font-size: .875rem;
122
- transition: all .5s cubic-bezier(.19,1,.22,1);
123
-
124
- &:hover {
125
- box-shadow: inset 0 0 0 1px $blue-light4;
126
- }
127
- }
128
-
129
- .pagination-summary {
130
- font-weight: $font-regular;
131
- }
132
-
133
- .belt-dropdown {
134
- span {
135
- font-size: .875rem;
136
- font-weight: 700;
137
- color: $gray-light4;
138
- }
139
-
140
- .icon-arrowdown {
141
- height: 20px;
142
- width: 20px;
143
- margin-left: 15px;
144
- transition: all .5s cubic-bezier(.19,1,.22,1);
145
- }
146
-
147
- .icon-add {
148
- display: flex;
149
- align-items: center;
150
- margin-right: 10px;
151
-
152
- svg path {
153
- fill: $gray-light4;
154
- }
155
- }
156
-
157
- &:hover{
158
- span {
159
- color: $gray-dark;
160
- }
161
-
162
- .icon-arrowdown {
163
- transform: translateY(2px);
164
-
165
- svg path {
166
- fill: $gray-light4;
167
- }
168
- }
169
- }
170
- }
171
-
172
- .belt-prev, .belt-next {
173
- padding: 10px;
174
- height: 40px;
175
- width: 40px;
176
- min-width: 40px;
177
- box-shadow: inset 0 0 0 1px $blue-light2;
178
- border-radius: 10px;
179
- transition: all .5s cubic-bezier(.19,1,.22,1);
180
-
181
- .belt-icon {
182
- height: 20px;
183
- width: 20px;
184
- background: 50% no-repeat;
185
- transition: all .5s cubic-bezier(.19,1,.22,1);
186
- }
187
-
188
- &:hover {
189
- box-shadow: inset 0 0 0 1px $blue-light4;
190
-
191
- .belt-icon {
192
- svg path {
193
- fill: $gray-light4;
194
- }
195
- }
196
- }
197
- }
198
-
199
- .belt-prev {
200
- &:hover .belt-icon {
201
- transform: translateX(-2px);
202
- }
203
- }
204
-
205
- .belt-next {
206
- &:hover .belt-icon {
207
- transform: translateX(2px);
208
- }
209
- }
210
-
211
- .modal-close {
212
- height: 40px;
213
- width: 40px;
214
- min-width: 40px;
215
- padding: 10px;
216
- box-shadow: none;
217
- border-radius: 10px;
218
- transition: all .5s cubic-bezier(.19,1,.22,1);
219
-
220
- &:hover {
221
- background-color: $blue-light1;
222
- box-shadow: inset 0 0 0 5px $blue-light1;
223
- }
224
- }
225
- }
226
- }
227
-