@retailcrm/embed-ui-v1-components 0.9.7 → 0.9.8

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
@@ -1180,6 +1180,208 @@
1180
1180
  .ui-v1-transition-fade-2-leave-active.ui-v1-loader-wrapper {
1181
1181
  transition: opacity 0.1s;
1182
1182
  }
1183
+ .ui-v1-menu-item {
1184
+ --ui-v1-menu-item-background-color: #EDF4FF;
1185
+ --ui-v1-menu-item-main-color: #005EEB;
1186
+ width: 100%;
1187
+ padding: 2px 4px;
1188
+ }
1189
+ .ui-v1-menu-item,
1190
+ .ui-v1-menu-item *,
1191
+ .ui-v1-menu-item *::before,
1192
+ .ui-v1-menu-item *::after {
1193
+ box-sizing: border-box;
1194
+ }
1195
+ .ui-v1-menu-item_danger {
1196
+ --ui-v1-menu-item-background-color: #FFEDED;
1197
+ --ui-v1-menu-item-main-color: #FF5353;
1198
+ }
1199
+ .ui-v1-menu-item_simple {
1200
+ padding: 0;
1201
+ }
1202
+ .ui-v1-menu-item__inner {
1203
+ display: flex;
1204
+ align-items: flex-start;
1205
+ padding: 6px 8px 6px 12px;
1206
+ border: 1px solid transparent;
1207
+ border-radius: 6px;
1208
+ cursor: pointer;
1209
+ transition: 0.25s ease;
1210
+ }
1211
+ .ui-v1-menu-item__inner_centered {
1212
+ align-items: center;
1213
+ }
1214
+ .ui-v1-menu-item__inner:not(.ui-v1-menu-item__inner_disabled):hover {
1215
+ background: var(--ui-v1-menu-item-background-color);
1216
+ }
1217
+ .ui-v1-menu-item__add-icon {
1218
+ opacity: 0;
1219
+ }
1220
+ .ui-v1-menu-item:not(.ui-v1-menu-item_disabled):hover .ui-v1-menu-item__add-icon {
1221
+ opacity: 1;
1222
+ }
1223
+ .ui-v1-menu-item__checkmark-icon,
1224
+ .ui-v1-menu-item__add-icon {
1225
+ color: #005EEB;
1226
+ }
1227
+ .ui-v1-menu-item:active .ui-v1-menu-item__inner,
1228
+ .ui-v1-menu-item_active .ui-v1-menu-item__inner {
1229
+ background: var(--ui-v1-menu-item-background-color);
1230
+ border: 1px solid var(--ui-v1-menu-item-main-color);
1231
+ }
1232
+ .ui-v1-menu-item__inner:not(.ui-v1-menu-item__inner_disabled):hover .ui-v1-menu-item__icon_leading {
1233
+ color: var(--ui-v1-menu-item-main-color);
1234
+ }
1235
+ .ui-v1-menu-item__inner:not(.ui-v1-menu-item__inner_disabled):hover .ui-v1-menu-item__icon_leading svg {
1236
+ fill: var(--ui-v1-menu-item-main-color);
1237
+ }
1238
+ .ui-v1-menu-item__inner:not(.ui-v1-menu-item__inner_disabled):hover .ui-v1-menu-item__ticker {
1239
+ animation: ui-v1-menu-item-ticker 2s linear 0.1s infinite alternate;
1240
+ overflow: visible;
1241
+ }
1242
+ .ui-v1-menu-item__inner:not(:hover) .ui-v1-menu-item__text {
1243
+ text-overflow: ellipsis;
1244
+ }
1245
+ .ui-v1-menu-item__content {
1246
+ flex: 1 0 1px;
1247
+ min-width: 0;
1248
+ }
1249
+ .ui-v1-menu-item__text {
1250
+ padding-right: 4px;
1251
+ color: #1E2248;
1252
+ cursor: pointer;
1253
+ overflow: hidden;
1254
+ white-space: nowrap;
1255
+ }
1256
+ .ui-v1-menu-item_md .ui-v1-menu-item__text {
1257
+ font-size: 16px;
1258
+ font-weight: 400;
1259
+ line-height: 1.5;
1260
+ }
1261
+ .ui-v1-menu-item_sm .ui-v1-menu-item__text {
1262
+ font-size: 14px;
1263
+ font-weight: 400;
1264
+ line-height: 1.42857143;
1265
+ }
1266
+ .ui-v1-menu-item_simple .ui-v1-menu-item__text {
1267
+ color: var(--ui-v1-menu-item-main-color);
1268
+ }
1269
+ .ui-v1-menu-item__ticker {
1270
+ overflow: hidden;
1271
+ text-overflow: ellipsis;
1272
+ white-space: nowrap;
1273
+ }
1274
+ .ui-v1-menu-item__description {
1275
+ color: #636F7F;
1276
+ font-size: 14px;
1277
+ font-weight: 400;
1278
+ line-height: 1.42857143;
1279
+ margin-top: 4px;
1280
+ }
1281
+ .ui-v1-menu-item__icon {
1282
+ width: 24px;
1283
+ min-width: 24px;
1284
+ height: 24px;
1285
+ }
1286
+ .ui-v1-menu-item__icon_leading {
1287
+ margin-right: 8px;
1288
+ margin-left: -4px;
1289
+ }
1290
+ .ui-v1-menu-item__icon_trailing {
1291
+ margin-left: 4px;
1292
+ }
1293
+ .ui-v1-menu-item__icon svg {
1294
+ transition: 0.25s ease;
1295
+ }
1296
+ .ui-v1-menu-item__avatar {
1297
+ margin-right: 8px;
1298
+ }
1299
+ .ui-v1-menu-item__counter {
1300
+ max-width: 60%;
1301
+ color: #8A96A6;
1302
+ font-size: 14px;
1303
+ font-weight: 400;
1304
+ line-height: 1.42857143;
1305
+ overflow: hidden;
1306
+ text-overflow: ellipsis;
1307
+ white-space: nowrap;
1308
+ margin-left: 8px;
1309
+ margin-top: 2px;
1310
+ }
1311
+ .ui-v1-menu-item_md .ui-v1-menu-item__counter {
1312
+ margin-top: 3px;
1313
+ }
1314
+ .ui-v1-menu-item_disabled {
1315
+ cursor: default;
1316
+ opacity: 0.6;
1317
+ user-select: none;
1318
+ }
1319
+ .ui-v1-menu-item_sm {
1320
+ padding: 2px 4px;
1321
+ }
1322
+ .ui-v1-menu-item_sm .ui-v1-menu-item__inner {
1323
+ padding: 2px 8px;
1324
+ border-radius: 6px;
1325
+ }
1326
+ .ui-v1-menu-item_sm .ui-v1-menu-item__icon {
1327
+ width: 20px;
1328
+ min-width: 20px;
1329
+ height: 20px;
1330
+ }
1331
+ .ui-v1-menu-item_sm .ui-v1-menu-item__icon_leading {
1332
+ margin-right: 4px;
1333
+ }
1334
+ .ui-v1-menu-item_accent .ui-v1-menu-item__text {
1335
+ font-weight: 500;
1336
+ }
1337
+ @keyframes ui-v1-menu-item-ticker {
1338
+ 0% {
1339
+ transform: translateX(0);
1340
+ }
1341
+ 80% {
1342
+ transform: translateX(var(--delta-width));
1343
+ }
1344
+ 100% {
1345
+ transform: translateX(var(--delta-width));
1346
+ }
1347
+ }
1348
+ .ui-v1-menu-item-group {
1349
+ transform: translate3d(0, 0, 0);
1350
+ }
1351
+ .ui-v1-menu-item-group__head {
1352
+ background: rgba(255, 255, 255, 0.6);
1353
+ backdrop-filter: blur(15px);
1354
+ transition: 0.25s ease;
1355
+ position: sticky;
1356
+ top: 0;
1357
+ }
1358
+ @supports not (backdrop-filter: none) {
1359
+ .ui-v1-menu-item-group__head {
1360
+ background: #fff;
1361
+ }
1362
+ }
1363
+ .ui-v1-menu-item-group__head-inner {
1364
+ display: flex;
1365
+ align-items: center;
1366
+ justify-content: space-between;
1367
+ padding: 8px 10px 6px 16px;
1368
+ }
1369
+ .ui-v1-menu-item-group__title {
1370
+ color: #8A96A6;
1371
+ font-size: 14px;
1372
+ font-weight: 500;
1373
+ line-height: 1.42857143;
1374
+ }
1375
+ .ui-v1-menu-item-group__title_upper {
1376
+ text-transform: uppercase;
1377
+ }
1378
+ .ui-v1-menu-item-group__count {
1379
+ font-size: 16px;
1380
+ font-weight: 400;
1381
+ line-height: 1.5;
1382
+ margin-left: 8px;
1383
+ color: #8A96A6;
1384
+ }
1183
1385
  .ps {
1184
1386
  overflow: hidden !important;
1185
1387
  overflow-anchor: none;
@@ -1781,6 +1983,110 @@
1781
1983
  .ui-v1-radio_checked.ui-v1-radio_disabled .ui-v1-radio__checkmark::after {
1782
1984
  background: var(--ui-radio-disabled-color, #B8DBFF);
1783
1985
  }
1986
+ .ui-v1-select,
1987
+ .ui-v1-select *,
1988
+ .ui-v1-select *::before,
1989
+ .ui-v1-select *::after {
1990
+ box-sizing: border-box;
1991
+ }
1992
+ .ui-v1-select__trigger {
1993
+ width: 100%;
1994
+ max-width: 100%;
1995
+ position: relative;
1996
+ text-align: left;
1997
+ }
1998
+ .ui-v1-select__touchstone {
1999
+ font-size: 16px;
2000
+ font-weight: 400;
2001
+ line-height: 1.5;
2002
+ opacity: 0;
2003
+ white-space: nowrap;
2004
+ transform: translateZ(0);
2005
+ visibility: hidden;
2006
+ position: absolute;
2007
+ left: 0;
2008
+ top: 0;
2009
+ }
2010
+ .ui-v1-select__input {
2011
+ text-overflow: ellipsis;
2012
+ }
2013
+ .ui-v1-select__popper {
2014
+ --ui-v1-popper-padding: 2px 0;
2015
+ --ui-v1-popper-roundings: 8px;
2016
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Roboto", sans-serif;
2017
+ }
2018
+ .ui-v1-select__popper:focus {
2019
+ outline: none !important;
2020
+ }
2021
+ .ui-v1-select__content {
2022
+ max-height: 210px;
2023
+ max-width: 500px;
2024
+ overflow-y: auto;
2025
+ scrollbar-width: thin;
2026
+ scrollbar-color: #DEE2E6 transparent;
2027
+ }
2028
+ .ui-v1-select__content::-webkit-scrollbar-track {
2029
+ background: transparent;
2030
+ border-radius: 6px;
2031
+ }
2032
+ .ui-v1-select__content:hover .ui-v1-scroll-rail:not(.ui-v1-scroll-rail:hover):not(.ui-v1-scroll-rail_active) .ui-v1-scroll-rail__slider {
2033
+ width: 6px;
2034
+ }
2035
+ .ui-v1-select__content_locked {
2036
+ pointer-events: none;
2037
+ }
2038
+ .ui-v1-select__content_long {
2039
+ max-width: 656px;
2040
+ }
2041
+ .ui-v1-select__no-results-text {
2042
+ padding: 8px 16px;
2043
+ background: #F9FAFB;
2044
+ border-radius: 4px;
2045
+ color: #636F7F;
2046
+ word-break: break-all;
2047
+ margin: 4px;
2048
+ }
2049
+ .ui-v1-select_active {
2050
+ --border-color: var(--ui-v1-textbox-primary-color);
2051
+ --active-color: var(--ui-v1-textbox-primary-color);
2052
+ }
2053
+ .ui-v1-select_active .ui-v1-select__caret {
2054
+ color: var(--active-color);
2055
+ }
2056
+ .ui-v1-select:not(.ui-v1-select_active) .ui-v1-textbox {
2057
+ --border-color: #DEE2E6;
2058
+ --active-color: #DEE2E6;
2059
+ }
2060
+ .ui-v1-select:not(.ui-v1-select_active) .ui-v1-textbox.ui-v1-textbox_outlined {
2061
+ box-shadow: none;
2062
+ }
2063
+ .ui-v1-select_filterable {
2064
+ cursor: text;
2065
+ }
2066
+ .ui-v1-select-option_hidden {
2067
+ display: none;
2068
+ }
2069
+ .ui-v1-select-option__add-icon {
2070
+ opacity: 0;
2071
+ }
2072
+ .ui-v1-select-option:not(.ui-v1-select-option_disabled):hover .ui-v1-select-option__add-icon {
2073
+ opacity: 1;
2074
+ }
2075
+ .ui-v1-select-option__checkmark-icon,
2076
+ .ui-v1-select-option__add-icon {
2077
+ color: #005EEB;
2078
+ }
2079
+ .ui-v1-select-option-group + .ui-v1-select-option-group {
2080
+ padding-top: 3px;
2081
+ border-top: 1px solid #DEE2E6;
2082
+ margin-top: 4px;
2083
+ }
2084
+ .ui-v1-select-option-group:nth-last-child(1) {
2085
+ padding-bottom: 0;
2086
+ }
2087
+ .ui-v1-select-option-group_hidden {
2088
+ display: none;
2089
+ }
1784
2090
  .ui-v1-tag-wrapper {
1785
2091
  display: inline-block;
1786
2092
  max-width: 100%;
@@ -2032,6 +2338,12 @@
2032
2338
  border-radius: 6px;
2033
2339
  line-height: var(--height);
2034
2340
  }
2341
+ .ui-v1-textbox_outlined:has(input[readonly]:not(:disabled)),
2342
+ .ui-v1-textbox_outlined:has(input[readonly]:not(:disabled):hover),
2343
+ .ui-v1-textbox_outlined input[readonly]:not(:disabled),
2344
+ .ui-v1-textbox_outlined input[readonly]:not(:disabled):hover {
2345
+ cursor: pointer;
2346
+ }
2035
2347
  .ui-v1-textbox_outlined.ui-v1-textbox_xs {
2036
2348
  --height: 24px;
2037
2349
  --padding: 8px;
@@ -2112,8 +2424,13 @@
2112
2424
  .ui-v1-textbox_outlined:has(textarea:focus) {
2113
2425
  box-shadow: 0 0 0 4px var(--shadow-color);
2114
2426
  }
2115
- .ui-v1-textbox_active {
2116
- border-color: var(--active-color);
2427
+ .ui-v1-textbox:not(.ui-v1-textbox_active):has(input[readonly]:focus:not(:disabled)),
2428
+ .ui-v1-textbox:not(.ui-v1-textbox_active):has(textarea[readonly]:focus:not(:disabled)) {
2429
+ --border-color: #DEE2E6;
2430
+ }
2431
+ .ui-v1-textbox_outlined:not(.ui-v1-textbox_active):has(input[readonly]:focus),
2432
+ .ui-v1-textbox_outlined:not(.ui-v1-textbox_active):has(textarea[readonly]:focus) {
2433
+ box-shadow: none;
2117
2434
  }
2118
2435
  .ui-v1-textbox__eraser {
2119
2436
  display: inline-flex;
@@ -2143,6 +2460,7 @@
2143
2460
  padding-block-start: calc((var(--height) - var(--icon-size)) / 2);
2144
2461
  justify-content: center;
2145
2462
  z-index: 2;
2463
+ color: var(--ui-v1-textbox-icon-color);
2146
2464
  }
2147
2465
  .ui-v1-textbox__icon svg {
2148
2466
  width: var(--icon-size);
package/dist/host.d.ts CHANGED
@@ -155,16 +155,16 @@ declare const __VLS_component_2: DefineComponent_2< {}, {}, {}, {}, {}, Compo
155
155
 
156
156
  declare const __VLS_component_3: DefineComponent_2<ExtractPropTypes< {
157
157
  size: {
158
- type: PropType<SIZE_7 | `${SIZE_7}`>;
159
- default: SIZE_7;
158
+ type: PropType<SIZE_9 | `${SIZE_9}`>;
159
+ default: SIZE_9;
160
160
  };
161
161
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
162
162
  size: {
163
- type: PropType<SIZE_7 | `${SIZE_7}`>;
164
- default: SIZE_7;
163
+ type: PropType<SIZE_9 | `${SIZE_9}`>;
164
+ default: SIZE_9;
165
165
  };
166
166
  }>> & Readonly<{}>, {
167
- size: "sm" | "md" | SIZE_7;
167
+ size: "sm" | "md" | SIZE_9;
168
168
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
169
169
 
170
170
  declare function __VLS_template(): {
@@ -366,18 +366,31 @@ declare enum SIZE_3 {
366
366
  }
367
367
 
368
368
  declare enum SIZE_4 {
369
+ XS = "xs",
370
+ SM = "sm",
371
+ MD = "md",
372
+ LG = "lg"
373
+ }
374
+
375
+ declare enum SIZE_5 {
369
376
  LG = "lg",
370
377
  SM = "sm"
371
378
  }
372
379
 
373
- declare enum SIZE_5 {
380
+ declare enum SIZE_6 {
381
+ XS = "xs",
382
+ SM = "sm",
383
+ XL = "xl"
384
+ }
385
+
386
+ declare enum SIZE_7 {
374
387
  LG = "lg",
375
388
  MD = "md",
376
389
  SM = "sm",
377
390
  XS = "xs"
378
391
  }
379
392
 
380
- declare enum SIZE_6 {
393
+ declare enum SIZE_8 {
381
394
  XS = "xs",
382
395
  SM = "sm",
383
396
  MD = "md",
@@ -385,7 +398,7 @@ declare enum SIZE_6 {
385
398
  XL = "xl"
386
399
  }
387
400
 
388
- declare enum SIZE_7 {
401
+ declare enum SIZE_9 {
389
402
  SM = "sm",
390
403
  MD = "md"
391
404
  }
@@ -550,6 +563,24 @@ declare type UiLoaderProperties = {
550
563
  overlay?: boolean;
551
564
  };
552
565
 
566
+ export declare const UiMenuItem: DefineComponent<
567
+ UiMenuItemProperties
568
+ >;
569
+
570
+ export declare const UiMenuItemGroup: DefineComponent;
571
+
572
+ declare type UiMenuItemProperties = {
573
+ description?: string;
574
+ counter?: string | number | null;
575
+ accent?: boolean;
576
+ active?: boolean;
577
+ danger?: boolean;
578
+ ticker?: boolean;
579
+ simple?: boolean;
580
+ size?: `${SIZE_4}`;
581
+ disabled?: boolean;
582
+ };
583
+
553
584
  export declare const UiModalSidebar: DefineComponent<UiModalSidebarProperties>;
554
585
 
555
586
  declare type UiModalSidebarProperties = {
@@ -560,7 +591,7 @@ declare type UiModalSidebarProperties = {
560
591
  disposeTimeout?: number | string | null;
561
592
  fixed?: boolean;
562
593
  scrolling?: SCROLLING | `${SCROLLING}`;
563
- size?: SIZE_4 | `${SIZE_4}`;
594
+ size?: SIZE_5 | `${SIZE_5}`;
564
595
  };
565
596
 
566
597
  export declare const UiModalWindow: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -639,10 +670,44 @@ declare type UiScrollBoxProperties = {
639
670
  showOnMac?: boolean;
640
671
  };
641
672
 
673
+ export declare const UiSelectPopper: DefineComponent<
674
+ UiPopperProperties, { target: Ref<HTMLElement | null> },
675
+ UiPopperMethods
676
+ >;
677
+
678
+ export declare const UiSelectTrigger: DefineComponent<
679
+ UiSelectTriggerProperties,
680
+ UiSelectTriggerMethods
681
+ >;
682
+
683
+ declare type UiSelectTriggerMethods = {
684
+ open(): void;
685
+ close(): void;
686
+ onClick(): void;
687
+ onInput(event: Event): void;
688
+ onFocus(event: Event): void;
689
+ onBlur(event: Event): void;
690
+ onClear(event: MouseEvent): void;
691
+ };
692
+
693
+ declare type UiSelectTriggerProperties = {
694
+ value?: unknown | unknown[];
695
+ clearable?: boolean;
696
+ filter?: string;
697
+ invalid?: boolean;
698
+ multiple?: boolean;
699
+ expanded?: boolean;
700
+ placeholder?: string;
701
+ placeholderOnly?: boolean;
702
+ readonly?: boolean;
703
+ disabled?: boolean;
704
+ textboxSize?: SIZE_6 | `${SIZE_6}`;
705
+ };
706
+
642
707
  export declare const UiTag: DefineComponent<UiTagProperties>;
643
708
 
644
709
  declare type UiTagProperties = {
645
- size?: SIZE_5 | `${SIZE_5}`;
710
+ size?: SIZE_7 | `${SIZE_7}`;
646
711
  pinned?: boolean;
647
712
  removable?: boolean;
648
713
  interactive?: boolean;
@@ -680,7 +745,7 @@ declare type UiTextboxProperties = {
680
745
  maxlength?: number | string;
681
746
  /** Максимальное количество знаков после запятой (для inputmode="decimal"). '*' — без ограничений */
682
747
  decimals?: number | `${number}` | '*';
683
- size?: SIZE_6 | `${SIZE_6}`;
748
+ size?: SIZE_8 | `${SIZE_8}`;
684
749
  placeholder?: string;
685
750
  prefix?: string;
686
751
  suffix?: string;