@connectif/ui-components 6.0.5 → 6.0.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.0.6] - 2026-04-08
4
+
5
+ ### Fixed
6
+
7
+ - Audit issues.
8
+ - Focus border state in `SelectComponent`.
9
+
10
+ ### Changed
11
+
12
+ - Scrollbars are hidden by default and shown on hover within the container.
13
+
14
+ ### Added
15
+
16
+ - `mdiEmailPlus` and `mdiEmailRemove` icons.
17
+
3
18
  ## [6.0.5] - 2026-03-31
4
19
 
5
20
  ### Added
@@ -649,7 +649,9 @@ export declare const icons: {
649
649
  'email-open': string;
650
650
  'email-open-outline': string;
651
651
  'email-outline': string;
652
+ 'email-plus': string;
652
653
  'email-plus-outline': string;
654
+ 'email-remove': string;
653
655
  'email-secure': string;
654
656
  'email-variant': string;
655
657
  emby: string;
package/dist/index.js CHANGED
@@ -1508,8 +1508,10 @@ import {
1508
1508
  mdiEmailOpen,
1509
1509
  mdiEmailOpenOutline,
1510
1510
  mdiEmailOutline,
1511
+ mdiEmailPlus,
1511
1512
  mdiEmailPlusOutline,
1512
1513
  mdiEmailLock,
1514
+ mdiEmailRemove,
1513
1515
  mdiEmailVariant,
1514
1516
  mdiEmoticon,
1515
1517
  mdiEmoticonCool,
@@ -3311,7 +3313,9 @@ var icons = {
3311
3313
  "email-open": mdiEmailOpen,
3312
3314
  "email-open-outline": mdiEmailOpenOutline,
3313
3315
  "email-outline": mdiEmailOutline,
3316
+ "email-plus": mdiEmailPlus,
3314
3317
  "email-plus-outline": mdiEmailPlusOutline,
3318
+ "email-remove": mdiEmailRemove,
3315
3319
  "email-secure": mdiEmailLock,
3316
3320
  "email-variant": mdiEmailVariant,
3317
3321
  emby: "M11,2L6,7L7,8L2,13L7,18L8,17L13,22L18,17L17,16L22,11L17,6L16,7L11,2M10,8.5L16,12L10,15.5V8.5Z",
@@ -11472,8 +11476,11 @@ var globalStyles = {
11472
11476
  ".Slim-Vertical-Scroll": {
11473
11477
  "@-moz-document url-prefix()": {
11474
11478
  "&": {
11475
- scrollbarColor: "silver transparent",
11479
+ scrollbarColor: "transparent transparent",
11476
11480
  scrollbarWidth: "auto"
11481
+ },
11482
+ "&:hover": {
11483
+ scrollbarColor: "silver transparent"
11477
11484
  }
11478
11485
  },
11479
11486
  overflow: "auto",
@@ -11489,15 +11496,23 @@ var globalStyles = {
11489
11496
  borderRadius: "4px"
11490
11497
  },
11491
11498
  "&::-webkit-scrollbar-thumb": {
11492
- background: "silver",
11499
+ background: "transparent",
11493
11500
  borderRadius: "4px"
11501
+ },
11502
+ "&:hover": {
11503
+ "&::-webkit-scrollbar-thumb": {
11504
+ background: "silver"
11505
+ }
11494
11506
  }
11495
11507
  },
11496
11508
  ".Slim-Horizontal-Scroll": {
11497
11509
  "@-moz-document url-prefix()": {
11498
11510
  "&": {
11499
- scrollbarColor: "silver transparent",
11511
+ scrollbarColor: "transparent transparent",
11500
11512
  scrollbarWidth: "auto"
11513
+ },
11514
+ "&:hover": {
11515
+ scrollbarColor: "silver transparent"
11501
11516
  }
11502
11517
  },
11503
11518
  overflow: "auto",
@@ -11512,14 +11527,22 @@ var globalStyles = {
11512
11527
  background: "transparent"
11513
11528
  },
11514
11529
  "&::-webkit-scrollbar-thumb": {
11515
- background: "silver"
11530
+ background: "transparent"
11531
+ },
11532
+ "&:hover": {
11533
+ "&::-webkit-scrollbar-thumb": {
11534
+ background: "silver"
11535
+ }
11516
11536
  }
11517
11537
  },
11518
11538
  ".Slim-Vertical-Horizontal-Scroll": {
11519
11539
  "@-moz-document url-prefix()": {
11520
11540
  "&": {
11521
- scrollbarColor: "silver transparent",
11541
+ scrollbarColor: "transparent transparent",
11522
11542
  scrollbarWidth: "auto"
11543
+ },
11544
+ "&:hover": {
11545
+ scrollbarColor: "silver transparent"
11523
11546
  }
11524
11547
  },
11525
11548
  overflow: "auto",
@@ -11535,7 +11558,12 @@ var globalStyles = {
11535
11558
  background: "transparent"
11536
11559
  },
11537
11560
  "&::-webkit-scrollbar-thumb": {
11538
- background: "silver"
11561
+ background: "transparent"
11562
+ },
11563
+ "&:hover": {
11564
+ "&::-webkit-scrollbar-thumb": {
11565
+ background: "silver"
11566
+ }
11539
11567
  }
11540
11568
  },
11541
11569
  ".Fade-In-Out": {
@@ -21810,6 +21838,12 @@ var Select = function Select2({
21810
21838
  {
21811
21839
  className: `Cn-Select ${className}`,
21812
21840
  sx: {
21841
+ ...variant !== "transparent" && {
21842
+ "&.Mui-focused": {
21843
+ backgroundColor: "white",
21844
+ borderColor: palette2.primary.main
21845
+ }
21846
+ },
21813
21847
  ...variant === "transparent" && {
21814
21848
  backgroundColor: "transparent",
21815
21849
  borderColor: "transparent",
@@ -21913,7 +21947,8 @@ var Select = function Select2({
21913
21947
  sx: {
21914
21948
  ...variant !== "transparent" && {
21915
21949
  "&.Mui-focused": {
21916
- backgroundColor: "white"
21950
+ backgroundColor: "white",
21951
+ borderColor: palette2.primary.main
21917
21952
  }
21918
21953
  },
21919
21954
  ...variant === "transparent" && {
@@ -23825,37 +23860,25 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
23825
23860
  }
23826
23861
  }
23827
23862
  ),
23828
- /* @__PURE__ */ jsxs62(Stack_default, { whiteSpace: "nowrap", flex: "1 1 auto", minWidth: 0, children: [
23829
- !Array.isArray(value) && !!value && /* @__PURE__ */ jsx132(
23830
- TextEllipsis_default,
23831
- {
23832
- typographyVariant: "body2",
23833
- color: palette2.grey[900],
23834
- text: renderLabel(
23835
- value
23836
- )
23837
- }
23838
- ),
23839
- Array.isArray(value) && /* @__PURE__ */ jsx132(
23840
- ChipViewer_default,
23841
- {
23842
- values: value,
23843
- ...!disabled && {
23844
- onRemoveChip: (event, id) => {
23845
- onRemoveValue(
23846
- event,
23847
- Array.isArray(value) ? value.filter(
23848
- (v) => v !== id
23849
- ) : ""
23850
- );
23851
- }
23852
- },
23853
- numberLines: 1,
23854
- renderChipLabel: (id) => renderLabel(id),
23855
- forceRecalculate: disabled
23856
- }
23857
- )
23858
- ] })
23863
+ /* @__PURE__ */ jsx132(Stack_default, { whiteSpace: "nowrap", flex: "1 1 auto", minWidth: 0, children: Array.isArray(value) && /* @__PURE__ */ jsx132(
23864
+ ChipViewer_default,
23865
+ {
23866
+ values: value,
23867
+ ...!disabled && {
23868
+ onRemoveChip: (event, id) => {
23869
+ onRemoveValue(
23870
+ event,
23871
+ Array.isArray(value) ? value.filter(
23872
+ (v) => v !== id
23873
+ ) : ""
23874
+ );
23875
+ }
23876
+ },
23877
+ numberLines: 1,
23878
+ renderChipLabel: (id) => renderLabel(id),
23879
+ forceRecalculate: disabled
23880
+ }
23881
+ ) })
23859
23882
  ]
23860
23883
  }
23861
23884
  );
@@ -23945,7 +23968,7 @@ var AutocompleteInput = function AutocompleteInput2({
23945
23968
  },
23946
23969
  maxLength: maxValueLength,
23947
23970
  placeholder: !canAddValues ? maxValuesText || t("AUTOCOMPLETE.MAX_VALUES") : Array.isArray(value) && value.length > 0 || !Array.isArray(value) && !!value ? "" : placeholder,
23948
- value: inputValue,
23971
+ value: inputValue || (!Array.isArray(value) ? renderLabel(value) : ""),
23949
23972
  multiline: false,
23950
23973
  disabled: disabled || !canAddValues,
23951
23974
  onChange: (event) => {
@@ -23962,8 +23985,6 @@ var AutocompleteInput = function AutocompleteInput2({
23962
23985
  value.length - 1
23963
23986
  )
23964
23987
  );
23965
- } else if (!inputValue && !Array.isArray(value) && value) {
23966
- onRemoveValue(event, "");
23967
23988
  }
23968
23989
  break;
23969
23990
  case "Enter":
@@ -23985,7 +24006,7 @@ var AutocompleteInput = function AutocompleteInput2({
23985
24006
  }
23986
24007
  },
23987
24008
  containerRef,
23988
- startAdornment: /* @__PURE__ */ jsx133(
24009
+ startAdornment: multiple ? /* @__PURE__ */ jsx133(
23989
24010
  AutocompleteInputSelection_default,
23990
24011
  {
23991
24012
  value,
@@ -23996,7 +24017,7 @@ var AutocompleteInput = function AutocompleteInput2({
23996
24017
  onRemoveValue,
23997
24018
  disabled
23998
24019
  }
23999
- ),
24020
+ ) : void 0,
24000
24021
  endAdornment: /* @__PURE__ */ jsxs63(
24001
24022
  Stack_default,
24002
24023
  {
@@ -24449,12 +24470,13 @@ var Autocomplete = function Autocomplete2({
24449
24470
  const onSearchValueChange = (event, inputValue2) => {
24450
24471
  setInputValue(inputValue2);
24451
24472
  setDirty(true);
24473
+ if (!inputValue2 && !multiple && value) {
24474
+ onChange && onChange(event, "");
24475
+ }
24452
24476
  if (onSearch) {
24453
24477
  onSearch(inputValue2);
24454
24478
  if (inputValue2 && !isOpenPopover) {
24455
24479
  openPopover();
24456
- } else if (!inputValue2 && !multiple && value) {
24457
- onChange && onChange(event, "");
24458
24480
  }
24459
24481
  return;
24460
24482
  }