@expressms/smartapp-ui 1.1.4 → 1.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.
- package/build/main/assets/icons/clear.svg +10 -0
- package/build/main/constants/constants.d.ts +1 -0
- package/build/main/constants/constants.js +1 -0
- package/build/main/styles/stories.module.scss +85 -5
- package/build/main/styles/styles.min.css +1 -1
- package/build/main//321/201omponents/Input/Input.d.ts +1 -1
- package/build/main//321/201omponents/Input/Input.js +16 -5
- package/build/main//321/201omponents/Input/types.d.ts +6 -2
- package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
- package/build/main//321/201omponents/Modal/Modal.js +38 -0
- package/build/main//321/201omponents/Modal/index.d.ts +1 -0
- package/build/main//321/201omponents/Modal/index.js +1 -0
- package/build/main//321/201omponents/Modal/types.d.ts +10 -0
- package/build/main//321/201omponents/Modal/types.js +1 -0
- package/build/main//321/201omponents/index.d.ts +1 -0
- package/build/main//321/201omponents/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_690_22198)">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.99991 8.67417L13.9774 4.6967C14.3435 4.33058 14.9371 4.33058 15.3032 4.6967C15.6693 5.06282 15.6693 5.65641 15.3032 6.02252L11.3257 10L15.3032 13.9775C15.6693 14.3436 15.6693 14.9372 15.3032 15.3033C14.9371 15.6694 14.3435 15.6694 13.9774 15.3033L9.99991 11.3258L6.02244 15.3033C5.65632 15.6694 5.06273 15.6694 4.69661 15.3033C4.33049 14.9372 4.33049 14.3436 4.69661 13.9775L8.67409 10L4.69661 6.02252C4.33049 5.65641 4.33049 5.06282 4.69661 4.6967C5.06273 4.33058 5.65632 4.33058 6.02244 4.6967L9.99991 8.67417Z" fill="#4799E3"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="clip0_690_22198">
|
|
7
|
+
<rect width="20" height="20" fill="white"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|
|
@@ -12,6 +12,7 @@ export declare const DEFAULT_BACKGROUND_BUTTON_COLOR = "#FFFFFF";
|
|
|
12
12
|
export declare const DEFAULT_POPUP_BACKGROUND_COLOR = "rgba(37, 77, 145, 0.2)";
|
|
13
13
|
export declare const INPUT_TYPE_PASSWORD = "password";
|
|
14
14
|
export declare const INPUT_TYPE_TEXT = "text";
|
|
15
|
+
export declare const ENTER_KEY = "Enter";
|
|
15
16
|
export declare enum FONT_SIZE {
|
|
16
17
|
small = "14px",
|
|
17
18
|
default = "16px",
|
|
@@ -12,6 +12,7 @@ export var DEFAULT_BACKGROUND_BUTTON_COLOR = '#FFFFFF';
|
|
|
12
12
|
export var DEFAULT_POPUP_BACKGROUND_COLOR = 'rgba(37, 77, 145, 0.2)';
|
|
13
13
|
export var INPUT_TYPE_PASSWORD = 'password';
|
|
14
14
|
export var INPUT_TYPE_TEXT = 'text';
|
|
15
|
+
export var ENTER_KEY = 'Enter';
|
|
15
16
|
export var FONT_SIZE;
|
|
16
17
|
(function (FONT_SIZE) {
|
|
17
18
|
FONT_SIZE["small"] = "14px";
|
|
@@ -808,21 +808,23 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
|
|
|
808
808
|
position: relative;
|
|
809
809
|
|
|
810
810
|
&--field {
|
|
811
|
-
padding:
|
|
811
|
+
padding: 13px 16px;
|
|
812
812
|
border: 1px solid $color-lightest-gray;
|
|
813
813
|
border-radius: 8px;
|
|
814
814
|
font-weight: 400;
|
|
815
|
-
font-size: 14px;
|
|
816
|
-
line-height: 19px;
|
|
817
815
|
color: $color-black;
|
|
818
816
|
width: 100%;
|
|
819
817
|
box-sizing: border-box;
|
|
820
818
|
|
|
819
|
+
&__with-clear-button {
|
|
820
|
+
padding-right: 44px;
|
|
821
|
+
}
|
|
822
|
+
|
|
821
823
|
&::placeholder {
|
|
822
824
|
font-family: Open Sans, 'sans-serif';
|
|
823
|
-
font-size:
|
|
825
|
+
font-size: inherit;
|
|
824
826
|
font-weight: 400;
|
|
825
|
-
line-height:
|
|
827
|
+
line-height: inherit;
|
|
826
828
|
color: $color-darker-gray;
|
|
827
829
|
}
|
|
828
830
|
|
|
@@ -850,6 +852,15 @@ $box-shadow-dark-color: rgba(0, 0, 0, 0.6);
|
|
|
850
852
|
transform: scale(0.95);
|
|
851
853
|
}
|
|
852
854
|
}
|
|
855
|
+
|
|
856
|
+
&--clear-icon {
|
|
857
|
+
position: absolute;
|
|
858
|
+
top: 0;
|
|
859
|
+
bottom: 0;
|
|
860
|
+
right: 16px;
|
|
861
|
+
margin: auto 0;
|
|
862
|
+
cursor: pointer;
|
|
863
|
+
}
|
|
853
864
|
}
|
|
854
865
|
|
|
855
866
|
&__error {
|
|
@@ -1321,3 +1332,72 @@ input:checked + .smartapp-slider:before {
|
|
|
1321
1332
|
transform: rotate(360deg);
|
|
1322
1333
|
}
|
|
1323
1334
|
}
|
|
1335
|
+
|
|
1336
|
+
.smartapp-modal {
|
|
1337
|
+
width: 100%;
|
|
1338
|
+
padding: 0 20px;
|
|
1339
|
+
cursor: default;
|
|
1340
|
+
|
|
1341
|
+
&__ios,
|
|
1342
|
+
&__android {
|
|
1343
|
+
padding: 0;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
&__content {
|
|
1347
|
+
box-sizing: border-box;
|
|
1348
|
+
position: relative;
|
|
1349
|
+
display: flex;
|
|
1350
|
+
flex-direction: column;
|
|
1351
|
+
gap: 24px;
|
|
1352
|
+
width: 100%;
|
|
1353
|
+
background-color: $color-white;
|
|
1354
|
+
border-radius: 4px;
|
|
1355
|
+
padding: 24px;
|
|
1356
|
+
|
|
1357
|
+
&--ios,
|
|
1358
|
+
&--android {
|
|
1359
|
+
border-radius: 12px 12px 0 0;
|
|
1360
|
+
padding: 24px 24px 40px 24px;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
&--title {
|
|
1364
|
+
font-family: Open Sans, 'sans-serif';
|
|
1365
|
+
font-size: 16px;
|
|
1366
|
+
font-weight: 700;
|
|
1367
|
+
line-height: normal;
|
|
1368
|
+
text-align: center;
|
|
1369
|
+
color: $color-black;
|
|
1370
|
+
margin: 0;
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
&--close-icon {
|
|
1374
|
+
position: absolute;
|
|
1375
|
+
top: 8px;
|
|
1376
|
+
right: 8px;
|
|
1377
|
+
cursor: pointer;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
.modal-content {
|
|
1383
|
+
width: 100%;
|
|
1384
|
+
height: 100%;
|
|
1385
|
+
background: var(--modal-background, $popup-background);
|
|
1386
|
+
display: flex;
|
|
1387
|
+
justify-content: center;
|
|
1388
|
+
align-items: center;
|
|
1389
|
+
cursor: pointer;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
.modal-ios-content,
|
|
1393
|
+
.modal-android-content {
|
|
1394
|
+
height: fit-content;
|
|
1395
|
+
border-radius: 12px 12px 0 0;
|
|
1396
|
+
margin: auto 0 0 !important;
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
.modal-ios-overlay,
|
|
1400
|
+
.modal-android-overlay {
|
|
1401
|
+
background: var(--modal-background, $popup-background);
|
|
1402
|
+
cursor: pointer;
|
|
1403
|
+
}
|