@innovaccer/design-system 2.34.0 → 2.36.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 (58) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/README.md +2 -2
  3. package/css/dist/index.css +361 -2
  4. package/css/dist/index.css.map +1 -1
  5. package/css/gulpfile.js +1 -0
  6. package/css/src/ai-components/button.css +74 -0
  7. package/css/src/ai-components/chat.css +28 -0
  8. package/css/src/ai-components/chip.css +63 -0
  9. package/css/src/ai-components/iconButton.css +67 -0
  10. package/css/src/components/calendar.css +9 -1
  11. package/css/src/components/chip.css +8 -0
  12. package/css/src/components/chipInput.css +1 -1
  13. package/css/src/components/emptyState.css +50 -0
  14. package/css/src/components/input.css +6 -0
  15. package/css/src/components/metricInput.css +6 -0
  16. package/css/src/components/textarea.css +6 -0
  17. package/css/src/core/animation.css +20 -0
  18. package/dist/.lib/tsconfig.type.tsbuildinfo +797 -350
  19. package/dist/core/ai-components/AIButton/index.d.ts +22 -0
  20. package/dist/core/ai-components/AIChip/index.d.ts +10 -0
  21. package/dist/core/ai-components/AIIconButton/SaraIcon.d.ts +14 -0
  22. package/dist/core/ai-components/AIIconButton/icons/SaraDisabledBottom.d.ts +5 -0
  23. package/dist/core/ai-components/AIIconButton/icons/SaraDisabledTop.d.ts +5 -0
  24. package/dist/core/ai-components/AIIconButton/icons/SaraIconBottom.d.ts +5 -0
  25. package/dist/core/ai-components/AIIconButton/icons/SaraIconTop.d.ts +5 -0
  26. package/dist/core/ai-components/AIIconButton/index.d.ts +26 -0
  27. package/dist/core/ai-components/AIResponse/ChatActionBar.d.ts +9 -0
  28. package/dist/core/ai-components/AIResponse/ChatBody.d.ts +9 -0
  29. package/dist/core/ai-components/AIResponse/ChatBox.d.ts +9 -0
  30. package/dist/core/ai-components/AIResponse/ChatButton.d.ts +4 -0
  31. package/dist/core/ai-components/AIResponse/index.d.ts +14 -0
  32. package/dist/core/ai-components/Sara/index.d.ts +18 -0
  33. package/dist/core/ai-components/SaraSparkle/index.d.ts +18 -0
  34. package/dist/core/ai-components/common.type.d.ts +12 -0
  35. package/dist/core/common.type.d.ts +1 -0
  36. package/dist/core/components/atoms/_chip/index.d.ts +4 -0
  37. package/dist/core/components/atoms/chip/Chip.d.ts +2 -0
  38. package/dist/core/components/atoms/textarea/Textarea.d.ts +1 -0
  39. package/dist/core/components/molecules/chipInput/ChipInput.d.ts +1 -0
  40. package/dist/core/components/molecules/emptyState/EmptyState.d.ts +27 -7
  41. package/dist/core/components/molecules/emptyState/EmptyStateActions.d.ts +7 -0
  42. package/dist/core/components/molecules/emptyState/EmptyStateContext.d.ts +8 -0
  43. package/dist/core/components/molecules/emptyState/EmptyStateDescription.d.ts +7 -0
  44. package/dist/core/components/molecules/emptyState/EmptyStateImage.d.ts +19 -0
  45. package/dist/core/components/molecules/emptyState/EmptyStateTitle.d.ts +7 -0
  46. package/dist/core/components/organisms/combobox/Combobox.d.ts +2 -0
  47. package/dist/core/components/organisms/combobox/trigger/ComboboxTrigger.d.ts +2 -0
  48. package/dist/core/components/organisms/combobox/trigger/MultiselectTrigger.d.ts +2 -1
  49. package/dist/core/components/organisms/menu/trigger/MenuTrigger.d.ts +1 -0
  50. package/dist/core/index.d.ts +6 -0
  51. package/dist/core/index.type.d.ts +6 -0
  52. package/dist/index.esm.js +4903 -245
  53. package/dist/index.js +5016 -365
  54. package/dist/index.js.map +1 -1
  55. package/dist/index.umd.js +1 -1
  56. package/dist/index.umd.js.br +0 -0
  57. package/dist/index.umd.js.gz +0 -0
  58. package/package.json +5 -2
package/css/gulpfile.js CHANGED
@@ -15,6 +15,7 @@ const sources = [
15
15
  materialIcons,
16
16
  './src/core/*.css',
17
17
  './src/components/*.css',
18
+ './src/ai-components/*.css',
18
19
  './src/utils/*.css',
19
20
  ];
20
21
 
@@ -0,0 +1,74 @@
1
+ .AIButton {
2
+ padding: var(--spacing) var(--spacing-l);
3
+ border-radius: var(--spacing-m);
4
+ cursor: pointer;
5
+ border: 0;
6
+ font-family: var(--font-family);
7
+ font-weight: var(--font-weight-normal);
8
+ font-size: var(--font-size);
9
+ line-height: var(--font-height-s);
10
+ display: flex;
11
+ align-items: center;
12
+ }
13
+
14
+ .AIButton:disabled {
15
+ cursor: not-allowed;
16
+ pointer-events: none;
17
+ }
18
+
19
+ .AIButton:focus {
20
+ outline: 0;
21
+ }
22
+
23
+ /* Primary Button */
24
+
25
+ .AIButton--primary {
26
+ background: var(--primary);
27
+ color: var(--white);
28
+ }
29
+
30
+ .AIButton--primary:hover {
31
+ background: var(--primary-dark);
32
+ }
33
+
34
+ .AIButton--primary:active {
35
+ background: var(--primary-darker);
36
+ }
37
+
38
+ .AIButton--primary:disabled {
39
+ background: var(--primary-lighter);
40
+ }
41
+
42
+ .AIButton--primary:focus {
43
+ box-shadow: var(--shadow-spread) var(--primary-shadow);
44
+ }
45
+
46
+ /* Basic Button */
47
+
48
+ .AIButton--basic {
49
+ background: var(--secondary-light);
50
+ color: var(--inverse);
51
+ }
52
+
53
+ .AIButton--basic:hover {
54
+ background: var(--secondary);
55
+ }
56
+
57
+ .AIButton--basic:active {
58
+ background: var(--secondary-dark);
59
+ }
60
+
61
+ .AIButton--basic:disabled {
62
+ background: var(--secondary-lighter);
63
+ color: var(--inverse-lightest);
64
+ }
65
+
66
+ .AIButton--basic:focus {
67
+ box-shadow: var(--shadow-spread) var(--secondary-shadow);
68
+ }
69
+
70
+ /* Button Icon */
71
+
72
+ .AIButton-Icon {
73
+ margin-right: var(--spacing);
74
+ }
@@ -0,0 +1,28 @@
1
+ .AIResponse-box {
2
+ background: linear-gradient(white, white) padding-box,
3
+ linear-gradient(to right, rgba(255, 194, 8, 0.64), rgba(227, 28, 121, 0.64)) border-box;
4
+ border-radius: var(--spacing-l);
5
+ border: var(--spacing-s) solid transparent;
6
+ border-top-left-radius: 0;
7
+ padding: var(--spacing) var(--spacing-l);
8
+ }
9
+
10
+ .AIResponse-actionBar {
11
+ margin-top: var(--spacing-m);
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: space-between;
15
+ flex-wrap: wrap;
16
+ }
17
+
18
+ .AIResponse-button {
19
+ opacity: var(--opacity-12);
20
+ }
21
+
22
+ .AIResponse-box:hover .AIResponse-button {
23
+ opacity: 1;
24
+ }
25
+
26
+ .AIResponse-button--selected {
27
+ opacity: 1;
28
+ }
@@ -0,0 +1,63 @@
1
+ .AIChip {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ border-radius: var(--spacing-l);
6
+ padding: var(--spacing-s) var(--spacing);
7
+ background: var(--secondary-light);
8
+ cursor: pointer;
9
+ width: fit-content;
10
+ border: 0;
11
+ }
12
+
13
+ .AIChip:hover {
14
+ background: var(--secondary);
15
+ }
16
+
17
+ .AIChip:active {
18
+ background: var(--secondary-dark);
19
+ }
20
+
21
+ .AIChip:focus,
22
+ .AIChip:focus-visible {
23
+ box-shadow: var(--shadow-spread) var(--secondary-shadow);
24
+ outline: none;
25
+ }
26
+
27
+ .AIChip-icon {
28
+ width: var(--spacing-2);
29
+ height: var(--spacing-2);
30
+ font-size: var(--spacing-2) !important;
31
+ margin-right: var(--spacing-m);
32
+ background: linear-gradient(to bottom, #ffc208 0%, #e31c79 100%);
33
+ background-clip: text;
34
+ color: transparent;
35
+ }
36
+
37
+ .AIChip-text {
38
+ color: var(--inverse);
39
+ font-size: var(--font-size);
40
+ line-height: var(--font-height);
41
+ font-family: var(--font-family);
42
+ }
43
+
44
+ /* Disabled Chip */
45
+
46
+ .AIChip--disabled {
47
+ background: var(--secondary-lighter);
48
+ }
49
+
50
+ .AIChip-icon--disabled {
51
+ background: linear-gradient(to bottom, #ffe79e 0%, #f4a4c9 100%);
52
+ background-clip: text;
53
+ color: transparent;
54
+ }
55
+
56
+ .AIChip-text--disabled {
57
+ color: var(--inverse-lightest);
58
+ }
59
+
60
+ .AIChip:disabled {
61
+ cursor: not-allowed;
62
+ pointer-events: none;
63
+ }
@@ -0,0 +1,67 @@
1
+ .AIIconButton {
2
+ background: transparent;
3
+ padding: var(--spacing);
4
+ border-radius: var(--spacing-m);
5
+ cursor: pointer;
6
+ border: 0;
7
+ font-family: var(--font-family);
8
+ font-weight: var(--font-weight-normal);
9
+ font-size: var(--font-size);
10
+ line-height: var(--font-height-s);
11
+ position: relative;
12
+ }
13
+
14
+ .AIIconButton:hover {
15
+ background: var(--secondary);
16
+ color: var(--secondary) !important;
17
+ }
18
+
19
+ .AIIconButton:active {
20
+ background: var(--secondary-dark);
21
+ color: var(--secondary-dark) !important;
22
+ }
23
+
24
+ .AIIconButton:focus {
25
+ box-shadow: var(--shadow-spread) var(--secondary-shadow);
26
+ }
27
+
28
+ .AIIconButton:disabled {
29
+ cursor: not-allowed;
30
+ pointer-events: none;
31
+ background: transparent;
32
+ color: var(--inverse-lightest);
33
+ }
34
+
35
+ .AIIconButton-icon {
36
+ overflow: hidden;
37
+ flex-shrink: 0;
38
+ user-select: none;
39
+ line-height: inherit;
40
+ display: flex;
41
+ align-items: center;
42
+ position: relative;
43
+ }
44
+
45
+ .AIIconButton-AIIcon {
46
+ position: absolute;
47
+ }
48
+
49
+ .AIIconButton-AIIcon--regularTop {
50
+ bottom: calc(var(--spacing-l) + var(--spacing-s)); /* 14px */
51
+ left: calc(var(--spacing-l) + var(--spacing-xs)); /* 13px */
52
+ }
53
+
54
+ .AIIconButton-AIIcon--largeTop {
55
+ bottom: calc(var(--spacing-2) + var(--spacing-s)); /* 18px */
56
+ left: calc(var(--spacing-2) + var(--spacing-xs)); /* 17px */
57
+ }
58
+
59
+ .AIIconButton-AIIcon--regularBottom {
60
+ top: calc(var(--spacing-l) + var(--spacing-xs)); /* 13px */
61
+ left: calc(var(--spacing-l) + var(--spacing-s)); /* 14px */
62
+ }
63
+
64
+ .AIIconButton-AIIcon--largeBottom {
65
+ top: calc(var(--spacing-2) + var(--spacing-xs)); /* 17px */
66
+ left: calc(var(--spacing-2) + var(--spacing-s)); /* 18px */
67
+ }
@@ -254,7 +254,15 @@
254
254
  }
255
255
 
256
256
  .Calendar-valueWrapper--dummy {
257
- opacity: var(--transparent-58);
257
+ opacity: var(--opacity-20);
258
+ }
259
+
260
+ .Calendar-valueWrapper--disabled {
261
+ opacity: var(--opacity-10);
262
+ }
263
+
264
+ .Calendar-valueWrapper--active-dummy {
265
+ opacity: var(--opacity-16);
258
266
  }
259
267
 
260
268
  .Calendar-value--disabled {
@@ -112,6 +112,14 @@
112
112
  color: var(--primary-darker);
113
113
  }
114
114
 
115
+ .Chip-text--truncate {
116
+ overflow: hidden;
117
+ text-overflow: ellipsis;
118
+ white-space: nowrap;
119
+ display: inline;
120
+ max-width: 100%;
121
+ }
122
+
115
123
  .Chip-selection--selectedDisabled {
116
124
  background: var(--primary-lightest);
117
125
  border-color: var(--primary-lighter);
@@ -60,7 +60,7 @@
60
60
  outline: none;
61
61
  display: flex;
62
62
  width: 100%;
63
- min-width: 30%;
63
+ min-width: 15%;
64
64
  flex: 0px;
65
65
  box-sizing: border-box;
66
66
  height: var(--spacing-xl);
@@ -6,6 +6,23 @@
6
6
  background: transparent;
7
7
  }
8
8
 
9
+ .EmptyState-Wrapper {
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ justify-content: center;
14
+ background: transparent;
15
+ width: 100%;
16
+ }
17
+
18
+ .EmptyState-image {
19
+ display: flex;
20
+ justify-content: center;
21
+ width: 100%;
22
+ height: 100%;
23
+ object-fit: contain;
24
+ }
25
+
9
26
  .EmptyState-title {
10
27
  text-align: center;
11
28
  max-width: 480px;
@@ -32,3 +49,36 @@
32
49
  .EmptyState-description--small {
33
50
  margin-bottom: var(--spacing-2);
34
51
  }
52
+
53
+ .EmptyState-text {
54
+ display: flex;
55
+ text-align: center;
56
+ justify-content: center;
57
+ }
58
+
59
+ .EmptyState-actions {
60
+ display: flex;
61
+ justify-content: center;
62
+ }
63
+
64
+ .EmptyState-title--compressed {
65
+ margin-top: var(--spacing-2);
66
+ }
67
+ .EmptyState-title--standard {
68
+ margin-top: var(--spacing-xl);
69
+ }
70
+ .EmptyState-title--tight {
71
+ margin-top: var(--spacing-l);
72
+ }
73
+
74
+ .EmptyState-actions--compressed {
75
+ margin-top: var(--spacing-2);
76
+ }
77
+
78
+ .EmptyState-actions--standard {
79
+ margin-top: var(--spacing-xl);
80
+ }
81
+
82
+ .EmptyState-actions--tight {
83
+ margin-top: var(--spacing-l);
84
+ }
@@ -67,6 +67,12 @@
67
67
  pointer-events: none;
68
68
  }
69
69
 
70
+ .Input--readOnly {
71
+ background: var(--secondary-lightest);
72
+ border-color: var(--secondary);
73
+ pointer-events: none;
74
+ }
75
+
70
76
  .Input--disabled .Input-icon--left {
71
77
  color: var(--inverse-lightest);
72
78
  }
@@ -46,6 +46,12 @@
46
46
  pointer-events: none;
47
47
  }
48
48
 
49
+ .MetricInput--readOnly {
50
+ background: var(--secondary-lightest);
51
+ border-color: var(--secondary);
52
+ pointer-events: none;
53
+ }
54
+
49
55
  .MetricInput--disabled .MetricInput-icon {
50
56
  color: var(--inverse-lightest);
51
57
  }
@@ -37,6 +37,12 @@
37
37
  border-color: var(--secondary-light);
38
38
  }
39
39
 
40
+ .Textarea--readOnly {
41
+ pointer-events: none;
42
+ background: var(--secondary-lightest);
43
+ border-color: var(--secondary);
44
+ }
45
+
40
46
  .Textarea--error {
41
47
  border: var(--spacing-xs) solid var(--alert);
42
48
  }
@@ -108,3 +108,23 @@
108
108
  transform: rotateZ(180deg);
109
109
  transition: var(--duration--moderate-02) var(--standard-productive-curve);
110
110
  }
111
+
112
+ .shimmer-text {
113
+ text-align: center;
114
+ background: var(--inverse-light);
115
+ color: rgba(47, 47, 47, 0.1) !important;
116
+ background: linear-gradient(to right, var(--inverse-light) 0%, var(--secondary-dark) 50%, var(--inverse-light) 100%);
117
+ background-size: 200% 100%;
118
+ background-clip: text;
119
+ animation: shimmerText 2s infinite linear forwards;
120
+ background-clip: text;
121
+ }
122
+
123
+ @keyframes shimmerText {
124
+ 0% {
125
+ background-position: 100% 0;
126
+ }
127
+ 100% {
128
+ background-position: -100% 0;
129
+ }
130
+ }