@drumee/ui-toolkit 0.0.12 → 0.0.13

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/index.js CHANGED
@@ -17,3 +17,5 @@ if (document.readyState == 'complete') {
17
17
  document.addEventListener('drumee:router:ready', start);
18
18
  }
19
19
  }
20
+ export * from './utils/index';
21
+ export * from './utils/validator';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drumee/ui-toolkit",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "",
5
5
  "main": ".",
6
6
  "repository": {
@@ -57,6 +57,9 @@
57
57
  "webpack-stats-plugin": "^1.1.1"
58
58
  },
59
59
  "dependencies": {
60
- "@drumee/ui-styles": "^1.0.1"
60
+ "@drumee/ui-styles": "^1.0.1",
61
+ "autolinker": "^4.1.5",
62
+ "filesize": "^11.0.13",
63
+ "qrcode": "^1.5.4"
61
64
  }
62
65
  }
@@ -1,8 +1,3 @@
1
- // ==================================================================== *
2
- // Copyright Xialia.com 2011-2019
3
- // FILE : src/drumee/core/utils
4
- // TYPE :
5
- // ==================================================================== *
6
1
  const identRegExp = /^([a-zA-Z0-9_\-])([a-zA-Z0-9_\.\-])([a-zA-Z0-9_\.\-])*$/;
7
2
  const hostRegExp = /^[a-zA-Z0-9_\-]+$/;
8
3
  const nameRegExp = /^([a-zA-Z0-9_\.\-\'\ xC0-\xFF])+$/;
package/skeleton/index.js DELETED
@@ -1,2 +0,0 @@
1
-
2
- export * from './menu/index';
@@ -1,2 +0,0 @@
1
-
2
- export * from './dropdown';
@@ -1,72 +0,0 @@
1
- const toolKitClass = "drumee-ui-toolkit-slide-menu"
2
-
3
- function buildItems(ui, flow, items) {
4
- const pfx = `${ui.fig.family}__menu-items ${toolKitClass}`;
5
- let kids = []
6
- for (let item of items) {
7
- let icon = item.ico || item.icon;
8
- if (icon) {
9
- let cn = item.className || "";
10
- kids.push(
11
- Skeletons.Button.Label({
12
- ...item,
13
- className: `${pfx}--item ${cn}`,
14
- label: item.label || item.content || "",
15
- })
16
- )
17
- } else {
18
- kids.push(
19
- Skeletons.Note({
20
- ...item,
21
- className: `${pfx}--item ${cn}`,
22
- content: item.content || item.label || "",
23
- })
24
- )
25
- }
26
- }
27
-
28
- return Skeletons.Box.Y({
29
- debug: __filename,
30
- className: `${pfx} `,
31
- flow,
32
- kids
33
- });
34
- };
35
-
36
- export function slideMenu(ui, opt) {
37
- let {
38
- trigger,
39
- persistence = _a.once,
40
- service,
41
- opening = _e.click,
42
- sys_pn,
43
- flow = _a.y,
44
- axis,
45
- direction = _a.down,
46
- items,
47
- offsetY = 0
48
- } = opt;
49
- trigger = trigger || Skeletons.Box.X({
50
- className: `${ui.fig.family}__menu-trigger`
51
- });
52
- axis = axis || flow;
53
-
54
- return Skeletons.Box.X({
55
- className: `${ui.fig.family}__menu-wrapper`,
56
- debug: __filename,
57
- kids: [{
58
- kind: KIND.menu.topic,
59
- className: `${ui.fig.family}__menu-main`,
60
- flow,
61
- opening,
62
- service,
63
- sys_pn,
64
- direction,
65
- offsetY,
66
- persistence,
67
- trigger,
68
- items: buildItems(items),
69
- }]
70
- });
71
-
72
- };
@@ -1,68 +0,0 @@
1
- &-acknowledgement {
2
- &__main {
3
- align-items: center;
4
- background:$core-default-background;
5
- border-radius: $default-border-radius;
6
- height: calc(100% - 350px);
7
- justify-content: center;
8
- min-height: 275px;//250px;
9
- min-width: 300px;
10
- width: calc(100% - 350px);
11
- }
12
-
13
- &__note {
14
- &.message-info {
15
- @include typo($size: 16px, $line: 20px, $weight:300, $color:$core-default-text-color);
16
- padding: 15px;
17
- }
18
-
19
- &.redirect-info {
20
- padding: 50px 15px;
21
- }
22
- }
23
-
24
- &__close {
25
- color:$core-default-thinline-icon;
26
- cursor: pointer;
27
- margin: 10px;
28
- position: absolute;
29
- right: 5px;
30
- top: 5px;
31
- z-index: 1;
32
- }
33
-
34
- &__icon {
35
- &.close {
36
- color: $core-default-thinline-icon;
37
- cursor: pointer;
38
- height: 12px;
39
- width: 12px;
40
-
41
- &:hover {
42
- color: $core-default-thinline-icon-hover;
43
- }
44
- }
45
-
46
- &.success {
47
- color: $core-default-icon-success;
48
- height: 26px;
49
- width: 36px;
50
- }
51
- }
52
-
53
- &__button-ok {
54
- @include typo($size: 16px,$color: $btn-rollback-text);
55
- align-items: center;
56
- border-radius: $default-border-radius;
57
- border: 1px solid $btn-rollback-border ;
58
- height: 32px;
59
- justify-content: center;
60
- margin-top: 30px;
61
- width:90px;
62
-
63
- &:hover {
64
- @include typo($size: 16px,$color:$btn-rollback-text-hover);
65
- border:2px solid $btn-rollback-border-hover;
66
- }
67
- }
68
- }
@@ -1,143 +0,0 @@
1
- @use 'mixins/drumee';
2
-
3
- &-menu {
4
- &__dropdown,
5
- &__wrapper {
6
- height: 100%;
7
- width: 100%;
8
- }
9
-
10
- &__wrapper {
11
- justify-content: center;
12
- align-items: center;
13
-
14
- & .menu-topic-trigger {
15
- align-items: center;
16
- height: 100%;
17
- justify-content: flex-start;
18
- width: 100%;
19
- z-index: inherit;
20
- }
21
- }
22
-
23
- &__input_wrapper {
24
- align-items: center;
25
- background: $core-default-block-background;
26
- border-radius: $default-border-radius;
27
- cursor: pointer;
28
- height: 36px;
29
- justify-content: space-evenly;
30
- width: 200px;
31
-
32
- & .note-reader {
33
- @include typo($size: 14px, $line: 14px, $color: $core-default-text-color);
34
- justify-content: center;
35
- width: 100%;
36
- }
37
- }
38
-
39
- &__icon-dropdown {
40
- color: $core-default-icon-neutral;
41
- height: 14px;
42
- position: absolute;
43
- right: 10px;
44
- width: 14px;
45
- }
46
-
47
- &__items-wrapper {
48
- padding: 5px;
49
- width: 100%;
50
- }
51
-
52
- &__wrapper {
53
- &[data-state="1"] {
54
- & .trigger-icon {
55
- color: $core-default-icon-active;
56
- }
57
- }
58
-
59
- & .menu-topic-items {
60
- &__wrapper {
61
- left: 5px;
62
- top: calc(100% - 15px) !important;
63
- padding:10px;
64
- }
65
- border-radius:$default-border-radius;
66
- background-color: $core-default-background;
67
- box-shadow: $drumee-shadow-container;
68
- max-width: 200px;
69
- min-width: 190px;
70
-
71
- &:before {
72
- background-color: $core-default-background;
73
- box-shadow: -4px -6px 10px 1px rgba(63,79, 117, 0.13);
74
- content: "";
75
- height: 10px;
76
- left: calc(100% - 16px);
77
- position: absolute;
78
- top: -5px;
79
- transform: rotate(45deg);
80
- width: 10px;
81
- }
82
-
83
- &:after {
84
- background: $core-default-background;
85
- border-radius: $default-border-radius-top;
86
- content: "";
87
- height: 10px;
88
- left: 0;
89
- position: absolute;
90
- top: 0;
91
- width: 100%;
92
- }
93
- }
94
- }
95
-
96
- &__icon {
97
- align-items: center;
98
- color: $core-default-icon-neutral;
99
- cursor: pointer;
100
-
101
- &.trigger-icon {
102
- height: 16px;
103
- width : 22px;
104
- }
105
- }
106
-
107
- &__item {
108
- cursor: pointer;
109
- margin-bottom: 1px;
110
- margin-top: 1px;
111
- padding: 8px 8px 8px 10px;
112
- @include typo($size: 12px, $line: 14px, $color:$core-default-text-color);
113
-
114
- &.disable {
115
- opacity: 0.4;//0.2;
116
- pointer-events: none;
117
- @include typo($size: 12px, $line: 14px,$weight:300,$color:$core-default-background-inactive);
118
- }
119
-
120
- &:hover {
121
- background-color: $core-default-background-hover;
122
- color : $core-default-text-hover ;
123
-
124
- & .widget-dropdown-menu-menu__note {
125
- color:$core-default-text-hover;
126
- }
127
-
128
- & svg {
129
- fill: $core-default-icon-reverse;
130
- }
131
- }
132
- }
133
-
134
- &__note {
135
- padding-top: 0px;
136
- @include typo( $size:14px, $weight: 300, $line: 14px, $color: $core-default-text-color);
137
-
138
- &.coming-soon {
139
- opacity: 0.4;
140
- padding-top: 5px;
141
- }
142
- }
143
- }
package/style/form.scss DELETED
@@ -1,283 +0,0 @@
1
- &-form {
2
- @use './dropdown';
3
-
4
- &__main {
5
- height: 100%;
6
- width: 100%;
7
- align-items: center;
8
- }
9
-
10
- &__container {
11
- width: 100%;
12
- height: 100%;
13
- justify-content: space-between;
14
- align-items: center;
15
- max-width: 450px;
16
- }
17
-
18
- &__content {
19
- align-items: center;
20
- height: 100%;
21
- justify-content: center;
22
- width: 100%;
23
- }
24
-
25
- &__wrapper {
26
- height: 100%;
27
- width: 100%;
28
-
29
- &.acme-options {
30
- &[data-mode="closed"] {
31
- display: none;
32
- }
33
- }
34
- }
35
-
36
- &__row-wrapper {
37
- @include typo($color:$core-default-text-color, $size: 16px);
38
- background-color: $core-default-block-background;
39
- border-radius: 6px;
40
- box-sizing: border-box;
41
- height: 100%;
42
- margin-bottom: 18px;
43
- max-height: 46px;
44
- width: 100%;
45
-
46
- &.contact.name {
47
- background-color: $core-default-background;
48
- gap: 10px;
49
- }
50
-
51
- &.message {
52
- height: auto;
53
- min-height: 100px;
54
-
55
- & .entry-reminder__ui {
56
- height: 100%;
57
- }
58
- }
59
-
60
- &.terms-and-conditions {
61
- justify-content: center;
62
- }
63
-
64
- &.terms-and-conditions,
65
- &.ssl-dns-setup {
66
- background-color: $core-default-background;
67
- align-items: center;
68
- }
69
-
70
- &.acme_ssl_ca_path {
71
- &[data-mode="closed"] {
72
- display: none;
73
- }
74
- }
75
- }
76
-
77
- &__entry {
78
- &.with-icon {
79
- border: none;
80
- height: 100%;
81
- width: 100%;
82
- }
83
-
84
- &.name {
85
- background-color: $core-default-block-background;
86
- }
87
-
88
- & .entry-reminder {
89
- &__main {
90
- &.showerror {
91
- overflow: hidden;
92
- padding-bottom: 14px;
93
- min-height: 34px;
94
- }
95
-
96
- textarea,
97
- input {
98
- @include typo($size: 16px, $line: 20px, $color:$core-default-text-color);
99
- background-color: $core-default-block-background;
100
- border: 0;
101
- border-radius: 6px;
102
- flex: 1;
103
- height: 100%;
104
- padding-left: 10px;
105
- }
106
-
107
- textarea {
108
- padding-top: 5px;
109
- height: calc(100% - 7px);
110
- min-height: 94px;
111
- resize: none;
112
- overflow: auto;
113
- }
114
- }
115
-
116
- &__input-wrap,
117
- &__component {
118
- height: 100%;
119
- width: 100%;
120
- }
121
- }
122
-
123
- &[data-status="error"] {
124
- border: 1px solid $core-default-border-error;
125
- border-radius: 6px;
126
- }
127
- }
128
-
129
- &__icon {
130
- color: $core-default-icon-neutral;
131
- margin: 0px 9px 0px 10px;
132
- width: 18px;
133
-
134
- &.message {
135
- height: 18px;
136
- margin: 0 9px 0 9px;
137
- top: 6px;
138
- }
139
-
140
- &.checkbox {
141
- border: 1px solid $core-default-checkbox-border;
142
- border-radius: $default-checkbox-border-radius;
143
- box-shadow: none;
144
- color: $core-default-checkbox-background;
145
- cursor: pointer;
146
- height: 20px;
147
- width: 20px;
148
- margin: 0;
149
- margin-left: 5px;
150
-
151
- &[data-state="1"] {
152
- color: $core-default-checkbox-checked;
153
- border: 1px solid $core-default-checkbox-border;//$default-checkbox;
154
- box-shadow: none;
155
- }
156
- }
157
-
158
- &.info-icon {
159
- color: $core-special-icon-info;
160
- cursor: pointer;
161
- height: 25px;
162
- padding: 5px;
163
- width: 25px;
164
- position: absolute;
165
- right: 5px;
166
- top: 10px;
167
-
168
- .tooltips {
169
- &:before {
170
- background: $core-background-tooltips;
171
- border-radius: 1px;
172
- content: '';
173
- height: 10px;
174
- position: absolute;
175
- left: 70px;
176
- top: -5px;
177
- transform: rotate(45deg);
178
- width: 10px;
179
- }
180
-
181
- background-color: $core-background-tooltips;
182
- @include typo($size: 11px, $line: 15px, $color: $core-default-text-tooltips);
183
- border-radius:$default-border-radius;
184
- font-size: 11px;
185
- width: 300px;
186
- padding: 5px 10px;
187
- position: absolute;
188
- left: -62px;
189
- top: 30px;
190
- text-align: center;
191
- text-align: justify;
192
- text-overflow: ellipsis;
193
- z-index: 200000;
194
- // overflow: hidden;
195
- // white-space: nowrap;
196
- }
197
- }
198
- }
199
-
200
- &__note {
201
- &.label {
202
- @include typo($size:13px, $line:16px, $color: $core-default-text-title);
203
- max-width: 150px;
204
- padding-left: 5px;
205
- width: 100%;
206
- }
207
-
208
- &.own-ssl-label {
209
- @include typo($size:16px, $line: 20px, $color: $core-default-text-title);
210
- padding-left: 20px;
211
- width: 100%;
212
- }
213
-
214
- &.tips {
215
- @include typo($size:12px, $line:1.5, $weight:300, $color: $core-default-text-title);
216
- align-items: center;
217
- margin-bottom: 18px;
218
- width: 40%;
219
- }
220
-
221
- &.conditions {
222
- &.static {
223
- @include typo($size: 14px, $line: 16px, $weight:400, $color: $core-default-text-title);
224
- justify-content: center;
225
- width: 75px;
226
- }
227
-
228
- &.trigger {
229
- justify-content: flex-start;
230
- right: 5px;
231
-
232
- &:hover {
233
- color:$eviolet;
234
- }
235
- }
236
-
237
- &.text-underline {
238
- @include typo($size: 14px, $line: 16px, $weight:700, $color: $core-default-text-title);
239
- cursor: pointer;
240
- text-decoration-line: underline;
241
- }
242
- }
243
- }
244
-
245
- &__button-wrapper {
246
- align-items: center;
247
- height: 120px;
248
- justify-content: space-between;
249
- width: 100%;
250
- }
251
-
252
- &__button {
253
- &.button {
254
- align-items: center;
255
- border-radius: 6px;
256
- cursor: pointer;
257
- height: 46px;
258
- justify-content: center;
259
- width: 180px;
260
- }
261
-
262
- &.action-btn {
263
- @include typo($size: 18px, $line: 28px, $color: $core-default-text-reverse);
264
- align-items: center;
265
- background: $core-background-btn-active;
266
-
267
- &:hover {
268
- background-color:$btn-commit-background-hover;
269
- border-color: $btn-commit-border-hover;
270
- }
271
- }
272
-
273
- &.previous-btn {
274
- @include typo($size: 18px, $line: 28px, $color: $btn-rollback-text);
275
- border: 1px solid $btn-rollback-border;
276
-
277
- &:hover {
278
- border:2px solid $btn-rollback-border-hover ;
279
- color: $btn-rollback-text-hover;
280
- }
281
- }
282
- }
283
- }