@retailcrm/embed-ui-v1-components 0.5.2-alpha.4 → 0.5.2

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/dist/host.css CHANGED
@@ -316,111 +316,6 @@
316
316
  .ui-v1-button_xs.ui-v1-button_has-trailing-icon {
317
317
  padding-right: 8px;
318
318
  }
319
- .ui-v1-checkbox {
320
- display: inline-flex;
321
- align-items: flex-start;
322
- font-style: normal;
323
- cursor: pointer;
324
- margin-bottom: 0;
325
- position: relative;
326
- vertical-align: text-bottom;
327
- }
328
- .ui-v1-checkbox,
329
- .ui-v1-checkbox *,
330
- .ui-v1-checkbox *::before,
331
- .ui-v1-checkbox *::after {
332
- box-sizing: border-box;
333
- }
334
- .ui-v1-checkbox_disabled {
335
- cursor: default;
336
- }
337
- .ui-v1-checkbox__input {
338
- width: 100%;
339
- height: 100%;
340
- appearance: none;
341
- cursor: inherit;
342
- outline: none;
343
- z-index: 1;
344
- margin: 0;
345
- position: absolute;
346
- left: 0;
347
- top: 0;
348
- }
349
- .ui-v1-checkbox__checkmark {
350
- display: inline-block;
351
- width: 20px;
352
- min-width: 20px;
353
- height: 20px;
354
- background: #fff;
355
- border-radius: 4px;
356
- border: 2px solid #DEE2E6;
357
- color: #fff;
358
- transition: 0.25s ease;
359
- transition-property: color, box-shadow, background-color, border-color;
360
- vertical-align: top;
361
- position: relative;
362
- }
363
- .ui-v1-checkbox:not(.ui-v1-checkbox_checked):not(.ui-v1-checkbox_active):not(.ui-v1-checkbox_disabled) .ui-v1-checkbox__input:hover ~ .ui-v1-checkbox__checkmark {
364
- border-color: #005EEB;
365
- }
366
- .ui-v1-checkbox:not(.ui-v1-checkbox_checked):not(.ui-v1-checkbox_active):not(.ui-v1-checkbox_disabled) .ui-v1-checkbox__input:active ~ .ui-v1-checkbox__checkmark {
367
- background: #EDF4FF;
368
- }
369
- .ui-v1-checkbox:not(.ui-v1-checkbox_disabled) .ui-v1-checkbox__input:hover ~ .ui-v1-checkbox__checkmark {
370
- box-shadow: 0 0 0 4px rgba(0, 94, 235, 0.12);
371
- }
372
- .ui-v1-checkbox:not(.ui-v1-checkbox_disabled):active .ui-v1-checkbox__checkmark {
373
- border-color: #0052CC;
374
- box-shadow: 0 0 0 4px rgba(0, 94, 235, 0.12) !important;
375
- }
376
- .ui-v1-checkbox:not(.ui-v1-checkbox_disabled):not(.ui-v1-checkbox_checked):not(.ui-v1-checkbox_indeterminate):active .ui-v1-checkbox__checkmark {
377
- background-color: rgba(0, 94, 235, 0.12);
378
- }
379
- .ui-v1-checkbox_checked .ui-v1-checkbox__checkmark {
380
- border-color: #005EEB;
381
- background: #005EEB;
382
- }
383
- .ui-v1-checkbox_disabled:not(.ui-v1-checkbox_checked):not(.ui-v1-checkbox_indeterminate) .ui-v1-checkbox__checkmark {
384
- background: #EEF1F3;
385
- border-color: #C7CDD4;
386
- }
387
- .ui-v1-checkbox_disabled .ui-v1-checkbox__checkmark {
388
- border-color: #B8DBFF;
389
- background: #B8DBFF;
390
- }
391
- .ui-v1-checkbox_indeterminate .ui-v1-checkbox__checkmark,
392
- .ui-v1-checkbox_indeterminate .ui-v1-checkbox__input:hover ~ .ui-v1-checkbox__checkmark,
393
- .ui-v1-checkbox_indeterminate .ui-v1-checkbox__input:active ~ .ui-v1-checkbox__checkmark {
394
- border-color: #005EEB;
395
- background: #005EEB url("data:image/svg+xml,%3csvg width='12' height='4' viewBox='0 0 12 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3cpath d='M0.583415 3.04165C0.353296 3.04165 0.166748 2.80846 0.166748 2.52081V1.47915C0.166748 1.1915 0.353296 0.958313 0.583415 0.958313H11.4167C11.6469 0.958313 11.8334 1.1915 11.8334 1.47915V2.52081C11.8334 2.80846 11.6469 3.04165 11.4167 3.04165H0.583415Z' fill='white'/%3e %3c/svg%3e") no-repeat center !important;
396
- }
397
- .ui-v1-checkbox_disabled.ui-v1-checkbox_indeterminate .ui-v1-checkbox__checkmark,
398
- .ui-v1-checkbox_disabled.ui-v1-checkbox_indeterminate .ui-v1-checkbox__input:hover ~ .ui-v1-checkbox__checkmark,
399
- .ui-v1-checkbox_disabled.ui-v1-checkbox_indeterminate .ui-v1-checkbox__input:active ~ .ui-v1-checkbox__checkmark {
400
- background-color: #B8DBFF !important;
401
- border-color: #B8DBFF;
402
- box-shadow: none;
403
- }
404
- .ui-v1-checkbox_small .ui-v1-checkbox__checkmark {
405
- width: 16px;
406
- min-width: 16px;
407
- height: 16px;
408
- }
409
- .ui-v1-checkbox_small.ui-v1-checkbox_indeterminate .ui-v1-checkbox__checkmark {
410
- background-size: 8px 4px !important;
411
- }
412
- .ui-v1-checkbox__checkmark-icon {
413
- width: 22px;
414
- height: 22px;
415
- margin-left: -3px;
416
- margin-top: -3px;
417
- }
418
- .ui-v1-checkbox_small .ui-v1-checkbox__checkmark-icon {
419
- width: 16px;
420
- height: 16px;
421
- margin-left: -2px;
422
- margin-top: -2px;
423
- }
424
319
  .ui-v1-error {
425
320
  color: #FF5353;
426
321
  font-size: 14px;
@@ -1345,104 +1240,6 @@
1345
1240
  .ui-v1-modal-window-container_fullscreen:not(.ui-v1-modal-window-container_responsive) .ui-v1-modal-window_popup .ui-v1-modal-window__header_pinned {
1346
1241
  width: 100%;
1347
1242
  }
1348
- .ui-v1-radio {
1349
- display: inline-flex;
1350
- cursor: pointer;
1351
- transition: 0.25s ease;
1352
- position: relative;
1353
- vertical-align: top;
1354
- }
1355
- .ui-v1-radio,
1356
- .ui-v1-radio *,
1357
- .ui-v1-radio *::before,
1358
- .ui-v1-radio *::after {
1359
- box-sizing: border-box;
1360
- }
1361
- .ui-v1-radio_disabled {
1362
- cursor: default;
1363
- }
1364
- .ui-v1-radio__input {
1365
- width: 100%;
1366
- min-width: 100%;
1367
- height: 100%;
1368
- appearance: none;
1369
- cursor: inherit;
1370
- outline: none;
1371
- z-index: 1;
1372
- margin: 0;
1373
- position: absolute;
1374
- left: 0;
1375
- top: 0;
1376
- }
1377
- .ui-v1-radio__checkmark {
1378
- width: 20px;
1379
- min-width: 20px;
1380
- height: 20px;
1381
- border-radius: 50%;
1382
- --background: #fff;
1383
- --border-color: #DEE2E6;
1384
- --bullet-color: var(--ui-radio-checked-color, #005EEB);
1385
- --shadow: none;
1386
- display: inline-block;
1387
- background: var(--background);
1388
- border: 2px solid var(--border-color);
1389
- box-shadow: var(--shadow);
1390
- transition: 0.25s ease;
1391
- transition-property: background-color, border-color, box-shadow, color;
1392
- position: relative;
1393
- }
1394
- .ui-v1-radio__checkmark::after {
1395
- width: 12px;
1396
- min-width: 12px;
1397
- height: 12px;
1398
- border-radius: 50%;
1399
- content: '';
1400
- background: var(--bullet-color);
1401
- transform: scale(0);
1402
- transition: 0.15s ease;
1403
- margin: auto;
1404
- position: absolute;
1405
- left: 0;
1406
- top: 0;
1407
- right: 0;
1408
- bottom: 0;
1409
- }
1410
- .ui-v1-radio__input:not([disabled]):hover ~ .ui-v1-radio__checkmark {
1411
- --border-color: var(--ui-radio-hover-color, #4191FF);
1412
- --bullet-color: var(--ui-radio-hover-color, #4191FF);
1413
- --shadow: 0 0 0 6px var(--ui-radio-on-surface-color, rgba(0, 94, 235, 0.12));
1414
- }
1415
- .ui-v1-radio__input:not([disabled]):focus ~ .ui-v1-radio__checkmark {
1416
- --border-color: var(--ui-radio-focus-color, #6CADFF);
1417
- --bullet-color: var(--ui-radio-focus-color, #6CADFF);
1418
- --shadow: 0 0 0 6px var(--ui-radio-on-surface-color, rgba(0, 94, 235, 0.12));
1419
- }
1420
- .ui-v1-radio__input:not([disabled]):active ~ .ui-v1-radio__checkmark {
1421
- --background: var(--ui-radio-on-surface-color, rgba(0, 94, 235, 0.12));
1422
- --border-color: var(--ui-radio-active-color, #0052CC);
1423
- --bullet-color: var(--ui-radio-active-color, #0052CC);
1424
- }
1425
- .ui-v1-radio_checked .ui-v1-radio__checkmark {
1426
- border-color: var(--ui-radio-checked-color, #005EEB);
1427
- }
1428
- .ui-v1-radio_checked .ui-v1-radio__checkmark::after {
1429
- background: var(--ui-radio-checked-color, #005EEB);
1430
- transform: scale(1);
1431
- }
1432
- .ui-v1-radio_checked .ui-v1-radio__input:not([disabled]):active ~ .ui-v1-radio__checkmark::after {
1433
- background: var(--ui-radio-active-color, #0052CC);
1434
- }
1435
- .ui-v1-radio_disabled .ui-v1-radio__checkmark {
1436
- border-color: #C7CDD4;
1437
- background: #EEF1F3;
1438
- box-shadow: none;
1439
- }
1440
- .ui-v1-radio_checked.ui-v1-radio_disabled .ui-v1-radio__checkmark {
1441
- border-color: var(--ui-radio-disabled-color, #B8DBFF);
1442
- }
1443
- .ui-v1-radio_checked.ui-v1-radio_disabled .ui-v1-radio__checkmark::after {
1444
- background: var(--ui-radio-disabled-color, #B8DBFF);
1445
- }
1446
1243
  .ui-v1-tag-wrapper {
1447
1244
  display: inline-block;
1448
1245
  max-width: 100%;
package/dist/host.d.ts CHANGED
@@ -249,8 +249,6 @@ export declare const ModalPlugin: Plugin_2;
249
249
 
250
250
  declare type Numeric = number | string;
251
251
 
252
- declare type Primitive = boolean | number | string | null | undefined;
253
-
254
252
  declare type ResolveProps<PropsOrPropOptions, E extends EmitsOptions> = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & (Record<string, never> extends E ? Record<string, never> : EmitsToProps<E>);
255
253
 
256
254
  declare enum SCROLLING {
@@ -320,26 +318,6 @@ declare type UiButtonProperties = {
320
318
  locked?: boolean;
321
319
  };
322
320
 
323
- export declare const UiCheckbox: DefineComponent<UiCheckboxProperties, UiCheckboxMethods>;
324
-
325
- declare type UiCheckboxMethods = {
326
- click(): void;
327
- focus(): void;
328
- blur(): void;
329
- };
330
-
331
- declare type UiCheckboxProperties = {
332
- id?: string | undefined;
333
- name?: string;
334
- model?: Primitive | Primitive[];
335
- value?: Primitive;
336
- indeterminate?: boolean;
337
- valueOfTruthy?: Primitive;
338
- valueOfFalsy?: Primitive;
339
- small?: boolean;
340
- disabled?: boolean;
341
- };
342
-
343
321
  export declare const UiError: DefineComponent<UiErrorProperties>;
344
322
 
345
323
  declare type UiErrorProperties = {
@@ -407,22 +385,6 @@ declare type UiModalWindowSurfaceProperties = {
407
385
  scrolling?: SCROLLING_2 | `${SCROLLING_2}`;
408
386
  };
409
387
 
410
- export declare const UiRadio: DefineComponent<UiRadioProperties, UiRadioMethods>;
411
-
412
- declare type UiRadioMethods = {
413
- click(): void;
414
- focus(): void;
415
- blur(): void;
416
- };
417
-
418
- declare type UiRadioProperties = {
419
- id?: string | undefined;
420
- name?: string;
421
- model?: Primitive | Primitive[];
422
- value?: Primitive;
423
- disabled?: boolean;
424
- };
425
-
426
388
  export declare const UiScrollBox: DefineComponent<
427
389
  UiScrollBoxProperties,
428
390
  UiScrollBoxMethods