@innovaccer/design-system 2.28.2 → 2.29.0

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/css/dist/index.css +245 -0
  3. package/css/dist/index.css.map +1 -1
  4. package/css/src/components/avatarSelection.css +111 -0
  5. package/css/src/components/select.css +127 -0
  6. package/dist/.lib/tsconfig.type.tsbuildinfo +669 -22
  7. package/dist/core/common.type.d.ts +7 -0
  8. package/dist/core/components/atoms/avatar/Avatar.d.ts +1 -0
  9. package/dist/core/components/atoms/avatar/avatarIcon/AvatarIcon.d.ts +0 -4
  10. package/dist/core/components/atoms/avatarSelection/AvatarSelection.d.ts +59 -0
  11. package/dist/core/components/atoms/avatarSelection/AvatarSelectionContext.d.ts +19 -0
  12. package/dist/core/components/atoms/avatarSelection/avatarPopover/AvatarSelectionEmptyState.d.ts +8 -0
  13. package/dist/core/components/atoms/avatarSelection/avatarPopover/AvatarSelectionInput.d.ts +3 -0
  14. package/dist/core/components/atoms/avatarSelection/avatarPopover/AvatarSelectionList.d.ts +20 -0
  15. package/dist/core/components/atoms/avatarSelection/avatarPopover/AvatarSelectionOption.d.ts +15 -0
  16. package/dist/core/components/atoms/avatarSelection/avatarPopover/AvatarSelectionPopover.d.ts +15 -0
  17. package/dist/core/components/atoms/avatarSelection/avatarPopover/index.d.ts +5 -0
  18. package/dist/core/components/atoms/avatarSelection/avatarPopover/utils.d.ts +3 -0
  19. package/dist/core/components/atoms/avatarSelection/avatarsSelection/AvatarSelectionCount.d.ts +13 -0
  20. package/dist/core/components/atoms/avatarSelection/avatarsSelection/SelectionAvatar.d.ts +15 -0
  21. package/dist/core/components/atoms/avatarSelection/avatarsSelection/SelectionAvatarsWrapper.d.ts +15 -0
  22. package/dist/core/components/atoms/avatarSelection/avatarsSelection/index.d.ts +2 -0
  23. package/dist/core/components/atoms/avatarSelection/avatarsSelection/utils.d.ts +3 -0
  24. package/dist/core/components/atoms/avatarSelection/index.d.ts +2 -0
  25. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +19 -19
  26. package/dist/core/components/molecules/popover/Popover.d.ts +1 -1
  27. package/dist/core/components/molecules/tooltip/Tooltip.d.ts +2 -0
  28. package/dist/core/components/organisms/combobox/Combobox.d.ts +45 -0
  29. package/dist/core/components/organisms/combobox/ComboboxContext.d.ts +23 -0
  30. package/dist/core/components/organisms/combobox/ComboboxList.d.ts +20 -0
  31. package/dist/core/components/organisms/combobox/ComboboxOption.d.ts +18 -0
  32. package/dist/core/components/organisms/combobox/index.d.ts +2 -0
  33. package/dist/core/components/organisms/combobox/trigger/ChipInputBox.d.ts +3 -0
  34. package/dist/core/components/organisms/combobox/trigger/ComboboxTrigger.d.ts +20 -0
  35. package/dist/core/components/organisms/combobox/trigger/InputBox.d.ts +3 -0
  36. package/dist/core/components/organisms/combobox/trigger/MultiselectTrigger.d.ts +40 -0
  37. package/dist/core/components/organisms/combobox/trigger/index.d.ts +1 -0
  38. package/dist/core/components/organisms/combobox/trigger/utils.d.ts +3 -0
  39. package/dist/core/components/organisms/combobox/utils.d.ts +2 -0
  40. package/dist/core/components/organisms/listbox/Listbox.d.ts +2 -2
  41. package/dist/core/components/organisms/listbox/listboxItem/ListboxItem.d.ts +2 -1
  42. package/dist/core/components/organisms/select/SearchInput.d.ts +8 -0
  43. package/dist/core/components/organisms/select/Select.d.ts +35 -0
  44. package/dist/core/components/organisms/select/SelectContext.d.ts +24 -0
  45. package/dist/core/components/organisms/select/SelectEmptyTemplate.d.ts +9 -0
  46. package/dist/core/components/organisms/select/SelectFooter.d.ts +7 -0
  47. package/dist/core/components/organisms/select/SelectList.d.ts +20 -0
  48. package/dist/core/components/organisms/select/SelectOption.d.ts +19 -0
  49. package/dist/core/components/organisms/select/SelectTrigger.d.ts +24 -0
  50. package/dist/core/components/organisms/select/__test__/Select.test.d.ts +1 -0
  51. package/dist/core/components/organisms/select/__test__/utils.test.d.ts +1 -0
  52. package/dist/core/components/organisms/select/index.d.ts +2 -0
  53. package/dist/core/components/organisms/select/utils.d.ts +12 -0
  54. package/dist/core/index.d.ts +3 -0
  55. package/dist/core/index.type.d.ts +5 -0
  56. package/dist/index.esm.js +2147 -108
  57. package/dist/index.js +2011 -17
  58. package/dist/index.js.map +1 -1
  59. package/dist/index.umd.js +1 -1
  60. package/dist/index.umd.js.br +0 -0
  61. package/dist/index.umd.js.gz +0 -0
  62. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,80 @@
1
+ ## 2.29.0 (2024-03-13)
2
+
3
+ ### Highlights
4
+
5
+ - feat(combobox): add new combobox component (bd7993e1)
6
+ - feat(avatarSelection): add new avatar selection component (8c408a0a)
7
+ - feat(select): add new component select (90d37dd9)
8
+
9
+ ### Breaking changes
10
+
11
+ NA
12
+
13
+ ### Migration guide
14
+
15
+ NA
16
+
17
+ ### Deprecations
18
+
19
+ NA
20
+
21
+ ### Features
22
+
23
+ - feat(combobox): add new combobox component (bd7993e1)
24
+ - feat(avatarSelection): add new avatar selection component (8c408a0a)
25
+ - feat(select): add new component select (90d37dd9)
26
+
27
+ ### Fixes
28
+
29
+ - fix(calendar): ordering of days in calendar when firstDayOfWeek is passed (7a16f20a)
30
+
31
+ ### Improvements
32
+
33
+ - chore(select): show custom label when option selected is more than 2 in multiselect (85680e70)
34
+
35
+ ### Documentation
36
+
37
+ - docs(popover): add guideline for padding in popover (41281e11)
38
+ - docs(avatar): add avatar selection guidelines (0e27b6c5)
39
+
40
+ ---
41
+
42
+ ## 2.28.3 (2024-03-01)
43
+
44
+ ### Highlights
45
+
46
+ - fix(avatar): remove redundant class implementation in avatar (4b63de6c)
47
+
48
+ ### Breaking changes
49
+
50
+ NA
51
+
52
+ ### Migration guide
53
+
54
+ NA
55
+
56
+ ### Deprecations
57
+
58
+ NA
59
+
60
+ ### Features
61
+
62
+ NA
63
+
64
+ ### Fixes
65
+
66
+ - fix(avatar): remove redundant class implementation in avatar (4b63de6c)
67
+
68
+ ### Improvements
69
+
70
+ NA
71
+
72
+ ### Documentation
73
+
74
+ NA
75
+
76
+ ---
77
+
1
78
  ## 2.28.2 (2024-02-27)
2
79
 
3
80
  ### Highlights
@@ -995,6 +995,118 @@ body {
995
995
  border-radius: 50%;
996
996
  }
997
997
 
998
+ /* Selection avatar group */
999
+ .SelectionAvatarGroup {
1000
+ box-sizing: border-box;
1001
+ display: flex;
1002
+ align-items: center;
1003
+ }
1004
+
1005
+ /* Selection Avatar List */
1006
+
1007
+ .SelectionAvatarGroup-item {
1008
+ margin-right: calc(var(--spacing-m) * -1);
1009
+ border-radius: 50%;
1010
+ display: flex;
1011
+ transition: transform var(--duration--fast-01) var(--standard-productive-curve);
1012
+ position: relative;
1013
+ }
1014
+
1015
+ .SelectionAvatarGroup-item:focus,
1016
+ .SelectionAvatarGroup-item:focus-visible {
1017
+ outline: 3px solid var(--primary-shadow);
1018
+ outline-offset: 3px;
1019
+ }
1020
+
1021
+ .SelectionAvatarGroup-item:active {
1022
+ outline: var(--spacing-s) solid #00509f;
1023
+ outline-offset: var(--spacing-xs);
1024
+ }
1025
+
1026
+ .SelectionAvatarGroup-wrapper:hover .SelectionAvatarGroup-item {
1027
+ transform: translateY(-8px);
1028
+ }
1029
+
1030
+ /* Selected Avatar Group Item */
1031
+
1032
+ .SelectionAvatarGroup-item--selected {
1033
+ outline-offset: var(--spacing-xs);
1034
+ outline: var(--spacing-s) solid var(--primary-dark);
1035
+ }
1036
+
1037
+ .SelectionAvatarGroup-item--selected:active {
1038
+ outline-offset: var(--spacing-xs);
1039
+ outline: var(--spacing-s) solid var(--primary-darker);
1040
+ }
1041
+
1042
+ .SelectionAvatarGroup-item--selected:focus,
1043
+ .SelectionAvatarGroup-item--selected:focus-visible {
1044
+ box-shadow: 0 0 0 var(--spacing-xs) white, 0 0 0 3px var(--primary-dark), 0 0 0 3px var(--primary-shadow) !important;
1045
+ }
1046
+
1047
+ /* Selection Avatar Popover */
1048
+
1049
+ .SelectionAvatarGroup-popper {
1050
+ overflow-y: auto;
1051
+ box-sizing: border-box;
1052
+ }
1053
+
1054
+ .SelectionAvatar-inputWrapper {
1055
+ border-bottom: var(--spacing-xs) solid var(--secondary-dark);
1056
+ }
1057
+
1058
+ .SelectionAvatar-inputWrapper:focus-within {
1059
+ border-bottom: var(--spacing-xs) solid var(--primary);
1060
+ }
1061
+
1062
+ .SelectionAvatar-input {
1063
+ min-width: unset !important;
1064
+ background: transparent;
1065
+ border-bottom-left-radius: 0px;
1066
+ border-bottom-right-radius: 0;
1067
+ height: 36px;
1068
+ }
1069
+
1070
+ .SelectionAvatar-input,
1071
+ .SelectionAvatar-input:focus-within {
1072
+ border: unset !important;
1073
+ box-shadow: none !important;
1074
+ }
1075
+
1076
+ .SelectionAvatar-input:hover {
1077
+ background-color: #f4f4f4;
1078
+ }
1079
+
1080
+ /* Selection Avatar Count */
1081
+
1082
+ .SelectionAvatarCount-wrapper {
1083
+ border-radius: 50%;
1084
+ }
1085
+
1086
+ .SelectionAvatarCount:hover {
1087
+ background: var(--secondary);
1088
+ }
1089
+
1090
+ .SelectionAvatarCount:active {
1091
+ background: var(--secondary-dark);
1092
+ }
1093
+
1094
+ .SelectionAvatarCount-wrapper:focus,
1095
+ .SelectionAvatarCount-wrapper:focus-visible {
1096
+ outline: 3px solid var(--primary-shadow);
1097
+ outline-offset: 3px;
1098
+ }
1099
+
1100
+ .SelectionAvatarCount--selected {
1101
+ outline-offset: var(--spacing-xs);
1102
+ outline: var(--spacing-s) solid var(--primary-dark);
1103
+ }
1104
+
1105
+ .SelectionAvatarCount--selected:focus,
1106
+ .SelectionAvatarCount--selected:focus-visible {
1107
+ box-shadow: 0 0 0 var(--spacing-xs) white, 0 0 0 3px var(--primary-dark), 0 0 0 3px var(--primary-shadow) !important;
1108
+ }
1109
+
998
1110
  @-webkit-keyframes backdrop-open {
999
1111
  from {
1000
1112
  opacity: 0;
@@ -5877,6 +5989,139 @@ body {
5877
5989
  box-shadow: none;
5878
5990
  }
5879
5991
 
5992
+ .Select-input {
5993
+ min-width: unset !important;
5994
+ background: transparent;
5995
+ border-bottom-left-radius: 0px;
5996
+ border-bottom-right-radius: 0;
5997
+ height: 36px;
5998
+ }
5999
+
6000
+ .Select-input,
6001
+ .Select-input:focus-within {
6002
+ border: unset !important;
6003
+ box-shadow: none !important;
6004
+ }
6005
+
6006
+ .Select-input:hover {
6007
+ background-color: #f4f4f4;
6008
+ }
6009
+
6010
+ .Select-trigger {
6011
+ width: 100%;
6012
+ justify-content: space-between;
6013
+ padding-top: unset;
6014
+ padding-bottom: unset;
6015
+ background: var(--secondary-light);
6016
+ color: var(--text);
6017
+ transition: var(--duration--fast-01) var(--standard-productive-curve);
6018
+ }
6019
+
6020
+ .Select-trigger:disabled {
6021
+ background: var(--secondary-lighter);
6022
+ color: var(--text-disabled);
6023
+ pointer-events: none;
6024
+ }
6025
+
6026
+ .Select-trigger:active,
6027
+ .Select-trigger--open {
6028
+ background-color: var(--secondary-dark) !important;
6029
+ color: var(--text) !important;
6030
+ -webkit-animation-timing-function: cubic-bezier(0, 0, 0.38, 0.9);
6031
+ animation-timing-function: cubic-bezier(0, 0, 0.38, 0.9);
6032
+ -webkit-animation-duration: 120ms;
6033
+ animation-duration: 120ms;
6034
+ }
6035
+
6036
+ .Select-trigger:hover {
6037
+ background: var(--secondary);
6038
+ color: var(--text);
6039
+ }
6040
+
6041
+ .Select-trigger:focus {
6042
+ background-color: var(--secondary-light);
6043
+ box-shadow: var(--shadow-spread) var(--secondary-shadow);
6044
+ }
6045
+
6046
+ .Select-inputWrapper {
6047
+ border-bottom: var(--spacing-xs) solid var(--secondary-dark);
6048
+ }
6049
+
6050
+ .Select-inputWrapper:focus-within {
6051
+ border-bottom: var(--spacing-xs) solid var(--primary);
6052
+ }
6053
+
6054
+ .Select-trigger-wrapper {
6055
+ width: 100%;
6056
+ display: flex;
6057
+ flex-direction: row;
6058
+ align-items: center;
6059
+ overflow: hidden;
6060
+ }
6061
+
6062
+ .Select-trigger--small {
6063
+ height: var(--spacing-xl);
6064
+ padding-right: var(--spacing);
6065
+ padding-left: var(--spacing);
6066
+ }
6067
+
6068
+ .Select-trigger-text {
6069
+ text-align: left;
6070
+ white-space: nowrap;
6071
+ overflow: hidden;
6072
+ text-overflow: ellipsis;
6073
+ }
6074
+
6075
+ .Select-trigger--regular {
6076
+ height: var(--spacing-3);
6077
+ padding-right: var(--spacing);
6078
+ padding-left: var(--spacing-l);
6079
+ }
6080
+
6081
+ .Select-trigger--placeholder {
6082
+ color: var(--text-subtle);
6083
+ }
6084
+
6085
+ .Select-trigger--icon {
6086
+ padding-left: var(--spacing);
6087
+ }
6088
+
6089
+ .Select-buttonWrapper {
6090
+ display: flex;
6091
+ justify-content: flex-end;
6092
+ padding-top: var(--spacing);
6093
+ padding-right: var(--spacing);
6094
+ padding-bottom: var(--spacing);
6095
+ border-top: var(--spacing-xs) solid var(--secondary-light);
6096
+ }
6097
+
6098
+ .Select-crossButton {
6099
+ display: flex;
6100
+ flex-shrink: 0;
6101
+ overflow: hidden;
6102
+ -webkit-user-select: none;
6103
+ -moz-user-select: none;
6104
+ -ms-user-select: none;
6105
+ user-select: none;
6106
+ cursor: pointer;
6107
+ color: var(--inverse);
6108
+ border-radius: 50%;
6109
+ padding: var(--spacing-s);
6110
+ }
6111
+
6112
+ .Select-crossButton:focus-visible,
6113
+ .Select-crossButton:focus {
6114
+ outline: var(--spacing-s) solid var(--secondary-shadow);
6115
+ }
6116
+
6117
+ .Select-crossButton:hover {
6118
+ background-color: var(--secondary);
6119
+ }
6120
+
6121
+ .Select-crossButton:active {
6122
+ background-color: var(--secondary-dark);
6123
+ }
6124
+
5880
6125
  .Selection-card {
5881
6126
  cursor: pointer;
5882
6127
  border-radius: var(--spacing-m);