@innovaccer/design-system 4.1.0 → 4.2.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 (44) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/css/dist/index.css +276 -196
  3. package/css/dist/index.css.map +1 -1
  4. package/css/gulpfile.js +9 -0
  5. package/css/src/components/avatarSelection.module.css +3 -3
  6. package/css/src/components/chatBubble.module.css +53 -0
  7. package/css/src/components/chatSeparator.module.css +23 -0
  8. package/dist/brotli/index.js +1 -1
  9. package/dist/brotli/index.js.br +0 -0
  10. package/dist/cjs/index.js +1 -1
  11. package/dist/core/components/atoms/avatarGroup/AvatarGroup.d.ts +2 -0
  12. package/dist/core/components/atoms/avatarGroup/AvatarPopperBody.d.ts +1 -0
  13. package/dist/core/components/atoms/avatarSelection/AvatarSelection.d.ts +2 -0
  14. package/dist/core/components/molecules/chat/Chat.d.ts +17 -0
  15. package/dist/core/components/molecules/chat/chatBubble/ChatBubble.d.ts +16 -0
  16. package/dist/core/components/molecules/chat/chatBubble/IncomingBubble.d.ts +26 -0
  17. package/dist/core/components/molecules/chat/chatBubble/OutgoingBubble.d.ts +17 -0
  18. package/dist/core/components/molecules/chat/chatBubble/index.d.ts +2 -0
  19. package/dist/core/components/molecules/chat/dateSeparator/DateSeparator.d.ts +7 -0
  20. package/dist/core/components/molecules/chat/dateSeparator/index.d.ts +2 -0
  21. package/dist/core/components/molecules/chat/index.d.ts +2 -0
  22. package/dist/core/components/molecules/chat/newMessage/NewMessage.d.ts +7 -0
  23. package/dist/core/components/molecules/chat/newMessage/index.d.ts +2 -0
  24. package/dist/core/components/molecules/chat/typingIndicator/TypingIndicator.d.ts +7 -0
  25. package/dist/core/components/molecules/chat/typingIndicator/index.d.ts +2 -0
  26. package/dist/core/components/molecules/chat/unreadMessage/UnreadMessage.d.ts +7 -0
  27. package/dist/core/components/molecules/chat/unreadMessage/index.d.ts +2 -0
  28. package/dist/core/index.d.ts +1 -0
  29. package/dist/core/index.type.d.ts +6 -0
  30. package/dist/esm/index.js +1042 -740
  31. package/dist/figma/AvatarGroup.figma.d.ts +1 -0
  32. package/dist/figma/AvatarSelection.figma.d.ts +1 -0
  33. package/dist/figma/DateSeparator.figma.d.ts +1 -0
  34. package/dist/figma/NewMessage.figma.d.ts +1 -0
  35. package/dist/figma/TypingIndicator.figma.d.ts +1 -0
  36. package/dist/figma/UnreadMessage.figma.d.ts +1 -0
  37. package/dist/gzip/index.js +1 -1
  38. package/dist/gzip/index.js.gz +0 -0
  39. package/dist/index.js +910 -615
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.umd.css +83 -3
  42. package/dist/index.umd.js +1 -1
  43. package/dist/types/tsconfig.type.tsbuildinfo +329 -18
  44. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,64 @@
1
+ ## 4.2.0 (2025-1-30)
2
+
3
+ ### Highlights
4
+
5
+ - feat(chatBubble): add new chat bubble component (25bf60e0)
6
+ - feat(dateSeparator): add chat date separator component (5ec3f5f1)
7
+ - feat(unreadMessage): add chat unread message separator component (c5fc0f16)
8
+ - feat(newMessage): add chat new message separator component (b6ea6dd4)
9
+ - feat(typingIndicator): add chat typing indicator component (c9f7ef4c)
10
+ - feat(avatarGroup): add status indicator support in avatar group component (828bc9f8)
11
+ - feat(avatarGroup): add presence support in avatar group component (377979d9)
12
+ - feat(avatarSelection): add status & presence support in avatar selection (007425dd)
13
+ - feat(avatarSelection): add figma code connect for avatar selection component (48c4baa3)
14
+ - feat(avatarGroup): add figma code connect for avatar group component (5af38b76)
15
+ - feat(chat): add figma code connect for chat ancillary component (20646dd8)
16
+ - feat(typingIndicator): update size from regular to small in typing indicator component (f5322da4)
17
+
18
+ ### Breaking changes
19
+
20
+ NA
21
+
22
+ ### Migration guide
23
+
24
+ NA
25
+
26
+ ### Deprecations
27
+
28
+ NA
29
+
30
+ ### Features
31
+
32
+ - feat(chatBubble): add new chat bubble component (25bf60e0)
33
+ - feat(dateSeparator): add chat date separator component (5ec3f5f1)
34
+ - feat(unreadMessage): add chat unread message separator component (c5fc0f16)
35
+ - feat(newMessage): add chat new message separator component (b6ea6dd4)
36
+ - feat(typingIndicator): add chat typing indicator component (c9f7ef4c)
37
+ - feat(avatarGroup): add status indicator support in avatar group component (828bc9f8)
38
+ - feat(avatarGroup): add presence support in avatar group component (377979d9)
39
+ - feat(avatarSelection): add status & presence support in avatar selection (007425dd)
40
+ - feat(avatarSelection): add figma code connect for avatar selection component (48c4baa3)
41
+ - feat(avatarGroup): add figma code connect for avatar group component (5af38b76)
42
+ - feat(chat): add figma code connect for chat ancillary component (20646dd8)
43
+ - feat(typingIndicator): update size from regular to small in typing indicator component (f5322da4)
44
+
45
+ ### Fixes
46
+
47
+ - fix(css): update order of typography components css in final bundled css file (b29e3f2c)
48
+ - fix(tooltip): update props order to accept classname in tooltip component (865a0240)
49
+
50
+ ### Improvements
51
+
52
+ NA
53
+
54
+ ### Documentation
55
+
56
+ - docs(avatarGroup): add presence & status section in avatar group (085ef5c7)
57
+ - docs(chat): add chat ancillary components documentation (e27e6b32)
58
+ - docs(chatBubble): add new chat bubble component documentation (4253816c)
59
+
60
+ ---
61
+
1
62
  ## 4.1.0 (2025-1-17)
2
63
 
3
64
  ### Highlights
@@ -534,6 +534,199 @@ body {
534
534
  background-clip: content-box;
535
535
  }
536
536
 
537
+ /* Text */
538
+ .Text {
539
+ margin: 0;
540
+ line-height: var(--font-height);
541
+ }
542
+
543
+ .Text--small {
544
+ font-size: var(--font-size-s);
545
+ line-height: var(--font-height-normal);
546
+ }
547
+
548
+ .Text--regular {
549
+ font-size: var(--font-size);
550
+ line-height: var(--font-height);
551
+ }
552
+
553
+ .Text--large {
554
+ font-size: var(--font-size-m);
555
+ line-height: var(--font-height-m);
556
+ }
557
+
558
+ .Text--default {
559
+ color: var(--text);
560
+ }
561
+
562
+ .Text--subtle {
563
+ color: var(--text-subtle);
564
+ }
565
+
566
+ .Text--disabled {
567
+ color: var(--text-disabled);
568
+ }
569
+
570
+ .Text--destructive {
571
+ color: var(--text-destructive);
572
+ }
573
+
574
+ .Text--white {
575
+ color: var(--text-white);
576
+ }
577
+
578
+ .Text--success {
579
+ color: var(--text-success);
580
+ }
581
+
582
+ .Text--link {
583
+ color: var(--text-link);
584
+ }
585
+
586
+ .Text--medium {
587
+ font-weight: var(--font-weight-medium);
588
+ }
589
+
590
+ .Text--strong {
591
+ font-weight: var(--font-weight-bold);
592
+ }
593
+
594
+ /* Heading */
595
+ .Heading {
596
+ margin: 0;
597
+ }
598
+
599
+ .Heading--s {
600
+ font-weight: var(--font-weight-bold);
601
+ font-size: var(--font-size-m);
602
+ line-height: var(--font-height-m);
603
+ }
604
+
605
+ .Heading--m {
606
+ font-weight: var(--font-weight-medium);
607
+ font-size: var(--font-size-l);
608
+ line-height: var(--font-height-l);
609
+ }
610
+
611
+ .Heading--l {
612
+ font-weight: var(--font-weight-normal);
613
+ font-size: var(--font-size-xl);
614
+ line-height: var(--font-height-xl);
615
+ }
616
+
617
+ .Heading--xl {
618
+ font-weight: var(--font-weight-medium);
619
+ font-size: var(--font-size-xxl);
620
+ line-height: var(--font-height-xxl);
621
+ }
622
+
623
+ .Heading--xxl {
624
+ font-weight: var(--font-weight-normal);
625
+ font-size: var(--font-size-xxxl);
626
+ line-height: var(--font-height-xxl);
627
+ }
628
+
629
+ .Heading--default {
630
+ color: var(--text);
631
+ }
632
+
633
+ .Heading--subtle {
634
+ color: var(--text-subtle);
635
+ }
636
+
637
+ .Heading--disabled {
638
+ color: var(--text-disabled);
639
+ }
640
+
641
+ .Heading--white {
642
+ color: var(--text-white);
643
+ }
644
+
645
+ /* Label */
646
+ .Label {
647
+ display: inline-flex;
648
+ }
649
+
650
+ .Label--withInput {
651
+ margin-bottom: var(--spacing-m);
652
+ }
653
+
654
+ .Label--optional {
655
+ align-items: center;
656
+ }
657
+
658
+ .Label-text {
659
+ line-height: var(--font-height-s);
660
+ font-weight: var(--font-weight-medium);
661
+ word-break: break-all;
662
+ }
663
+
664
+ .Label-optionalText {
665
+ line-height: var(--font-height-s);
666
+ margin-left: var(--spacing-m);
667
+ }
668
+
669
+ .Label--disabled {
670
+ color: var(--text-disabled);
671
+ }
672
+
673
+ .Label-requiredIndicator {
674
+ height: var(--spacing-0-75);
675
+ width: var(--spacing-0-75);
676
+ border-radius: 50%;
677
+ background: var(--alert);
678
+ margin-left: var(--spacing-m);
679
+ margin-bottom: var(--spacing-0-75);
680
+ display: inline-flex;
681
+ }
682
+
683
+ /* Caption */
684
+ .Caption {
685
+ display: flex;
686
+ align-items: center;
687
+ box-sizing: border-box;
688
+ }
689
+
690
+ .Caption--withInput {
691
+ margin-top: var(--spacing-m);
692
+ }
693
+
694
+ .Caption-icon {
695
+ display: flex;
696
+ align-content: center;
697
+ margin-right: var(--spacing-m);
698
+ }
699
+
700
+ .Caption--hidden {
701
+ display: none;
702
+ }
703
+
704
+ /* Subheading */
705
+ .Subheading {
706
+ margin: 0;
707
+ font-weight: var(--font-weight-bolder);
708
+ font-size: var(--spacing-l);
709
+ line-height: var(--font-height-m);
710
+ letter-spacing: var(--letter-spacing);
711
+ text-transform: uppercase;
712
+ }
713
+
714
+ .Subheading--default {
715
+ color: var(--text);
716
+ }
717
+
718
+ .Subheading--subtle {
719
+ color: var(--text-subtle);
720
+ }
721
+
722
+ .Subheading--disabled {
723
+ color: var(--text-disabled);
724
+ }
725
+
726
+ .Subheading--white {
727
+ color: var(--text-white);
728
+ }
729
+
537
730
  .ActionButton {
538
731
  display: flex;
539
732
  flex-shrink: 0;
@@ -829,13 +1022,13 @@ body {
829
1022
  position: relative;
830
1023
  }
831
1024
 
832
- .SelectionAvatarGroup-item:focus,
833
- .SelectionAvatarGroup-item:focus-visible {
1025
+ .SelectionAvatarGroup-item--active:focus,
1026
+ .SelectionAvatarGroup-item--active:focus-visible {
834
1027
  outline: 3px solid var(--primary-shadow);
835
1028
  outline-offset: 3px;
836
1029
  }
837
1030
 
838
- .SelectionAvatarGroup-item:active {
1031
+ .SelectionAvatarGroup-item--active:active {
839
1032
  outline: var(--spacing-s) solid #00509f;
840
1033
  outline-offset: var(--spacing-xs);
841
1034
  }
@@ -1727,27 +1920,6 @@ body {
1727
1920
  background: var(--primary-light);
1728
1921
  }
1729
1922
 
1730
- /* Caption */
1731
- .Caption {
1732
- display: flex;
1733
- align-items: center;
1734
- box-sizing: border-box;
1735
- }
1736
-
1737
- .Caption--withInput {
1738
- margin-top: var(--spacing-m);
1739
- }
1740
-
1741
- .Caption-icon {
1742
- display: flex;
1743
- align-content: center;
1744
- margin-right: var(--spacing-m);
1745
- }
1746
-
1747
- .Caption--hidden {
1748
- display: none;
1749
- }
1750
-
1751
1923
  /* badge */
1752
1924
 
1753
1925
  .Card {
@@ -1861,6 +2033,86 @@ body {
1861
2033
  display: block;
1862
2034
  }
1863
2035
 
2036
+ .ChatBubble-box--outgoing {
2037
+ background-color: var(--primary-lightest);
2038
+ border-radius: var(--spacing);
2039
+ padding: var(--spacing) var(--spacing-l);
2040
+ }
2041
+
2042
+ .ChatBubble-separator {
2043
+ width: var(--spacing-m);
2044
+ height: var(--spacing-m);
2045
+ border-radius: 50%;
2046
+ margin: 0 var(--spacing);
2047
+ background: var(--inverse-lightest);
2048
+ }
2049
+
2050
+ .ChatBubble-box--noSuccess {
2051
+ margin-right: calc(var(--spacing-2) + var(--spacing-m));
2052
+ }
2053
+
2054
+ .ChatBubble-box {
2055
+ width: 100%;
2056
+ }
2057
+
2058
+ .ChatBubble-actionBar--outgoing {
2059
+ width: -moz-max-content;
2060
+ width: max-content;
2061
+ margin-right: var(--spacing-m);
2062
+ margin-top: var(--spacing-0-75);
2063
+ }
2064
+
2065
+ .ChatBubble-actionBar--incoming {
2066
+ width: -moz-max-content;
2067
+ width: max-content;
2068
+ margin-left: var(--spacing-m);
2069
+ margin-top: var(--spacing-0-75);
2070
+ }
2071
+
2072
+ .ChatBubble-box--incoming {
2073
+ background-color: var(--secondary-lightest);
2074
+ border-radius: var(--spacing);
2075
+ padding: var(--spacing) var(--spacing-l);
2076
+ }
2077
+
2078
+ .ChatBubble-metaData--incoming {
2079
+ margin-left: calc(var(--spacing-3) + var(--spacing));
2080
+ }
2081
+
2082
+ .ChatBubble-boxWrapper {
2083
+ flex: 0 0 auto;
2084
+ display: flex;
2085
+ max-width: 70%;
2086
+ }
2087
+
2088
+ .ChatBubble-actionBarWrapper {
2089
+ flex: 0 0 auto;
2090
+ }
2091
+
2092
+ .Chat-UnreadMessage {
2093
+ border-radius: var(--spacing-2);
2094
+ padding: var(--spacing-s) var(--spacing-l) var(--spacing-s) var(--spacing);
2095
+ display: flex;
2096
+ align-items: center;
2097
+ justify-content: center;
2098
+ background-color: var(--primary);
2099
+ cursor: pointer;
2100
+ }
2101
+
2102
+ .NewMessage-Divider--left {
2103
+ flex: 1;
2104
+ height: var(--spacing-xs);
2105
+ background-color: var(--primary);
2106
+ margin-right: var(--spacing-2);
2107
+ }
2108
+
2109
+ .NewMessage-Divider--right {
2110
+ flex: 1;
2111
+ height: var(--spacing-xs);
2112
+ background-color: var(--primary);
2113
+ margin-left: var(--spacing-2);
2114
+ }
2115
+
1864
2116
  .Checkbox {
1865
2117
  display: flex;
1866
2118
  -webkit-user-select: none;
@@ -4211,57 +4463,6 @@ body {
4211
4463
  margin-bottom: var(--spacing-2);
4212
4464
  }
4213
4465
 
4214
- /* Heading */
4215
- .Heading {
4216
- margin: 0;
4217
- }
4218
-
4219
- .Heading--s {
4220
- font-weight: var(--font-weight-bold);
4221
- font-size: var(--font-size-m);
4222
- line-height: var(--font-height-m);
4223
- }
4224
-
4225
- .Heading--m {
4226
- font-weight: var(--font-weight-medium);
4227
- font-size: var(--font-size-l);
4228
- line-height: var(--font-height-l);
4229
- }
4230
-
4231
- .Heading--l {
4232
- font-weight: var(--font-weight-normal);
4233
- font-size: var(--font-size-xl);
4234
- line-height: var(--font-height-xl);
4235
- }
4236
-
4237
- .Heading--xl {
4238
- font-weight: var(--font-weight-medium);
4239
- font-size: var(--font-size-xxl);
4240
- line-height: var(--font-height-xxl);
4241
- }
4242
-
4243
- .Heading--xxl {
4244
- font-weight: var(--font-weight-normal);
4245
- font-size: var(--font-size-xxxl);
4246
- line-height: var(--font-height-xxl);
4247
- }
4248
-
4249
- .Heading--default {
4250
- color: var(--text);
4251
- }
4252
-
4253
- .Heading--subtle {
4254
- color: var(--text-subtle);
4255
- }
4256
-
4257
- .Heading--disabled {
4258
- color: var(--text-disabled);
4259
- }
4260
-
4261
- .Heading--white {
4262
- color: var(--text-white);
4263
- }
4264
-
4265
4466
  .HorizontalNav {
4266
4467
  display: flex;
4267
4468
  }
@@ -4749,44 +4950,6 @@ body {
4749
4950
  outline: none;
4750
4951
  }
4751
4952
 
4752
- /* Label */
4753
- .Label {
4754
- display: inline-flex;
4755
- }
4756
-
4757
- .Label--withInput {
4758
- margin-bottom: var(--spacing-m);
4759
- }
4760
-
4761
- .Label--optional {
4762
- align-items: center;
4763
- }
4764
-
4765
- .Label-text {
4766
- line-height: var(--font-height-s);
4767
- font-weight: var(--font-weight-medium);
4768
- word-break: break-all;
4769
- }
4770
-
4771
- .Label-optionalText {
4772
- line-height: var(--font-height-s);
4773
- margin-left: var(--spacing-m);
4774
- }
4775
-
4776
- .Label--disabled {
4777
- color: var(--text-disabled);
4778
- }
4779
-
4780
- .Label-requiredIndicator {
4781
- height: var(--spacing-0-75);
4782
- width: var(--spacing-0-75);
4783
- border-radius: 50%;
4784
- background: var(--alert);
4785
- margin-left: var(--spacing-m);
4786
- margin-bottom: var(--spacing-0-75);
4787
- display: inline-flex;
4788
- }
4789
-
4790
4953
  .Legend {
4791
4954
  display: flex;
4792
4955
  flex-direction: row;
@@ -6927,32 +7090,6 @@ body {
6927
7090
  transition: var(--duration--fast-02) var(--standard-productive-curve);
6928
7091
  }
6929
7092
 
6930
- /* Subheading */
6931
- .Subheading {
6932
- margin: 0;
6933
- font-weight: var(--font-weight-bolder);
6934
- font-size: var(--spacing-l);
6935
- line-height: var(--font-height-m);
6936
- letter-spacing: var(--letter-spacing);
6937
- text-transform: uppercase;
6938
- }
6939
-
6940
- .Subheading--default {
6941
- color: var(--text);
6942
- }
6943
-
6944
- .Subheading--subtle {
6945
- color: var(--text-subtle);
6946
- }
6947
-
6948
- .Subheading--disabled {
6949
- color: var(--text-disabled);
6950
- }
6951
-
6952
- .Subheading--white {
6953
- color: var(--text-white);
6954
- }
6955
-
6956
7093
  .Switch {
6957
7094
  display: inline-flex;
6958
7095
  position: relative;
@@ -7266,63 +7403,6 @@ body {
7266
7403
  box-sizing: border-box;
7267
7404
  }
7268
7405
 
7269
- /* Text */
7270
- .Text {
7271
- margin: 0;
7272
- line-height: var(--font-height);
7273
- }
7274
-
7275
- .Text--small {
7276
- font-size: var(--font-size-s);
7277
- line-height: var(--font-height-normal);
7278
- }
7279
-
7280
- .Text--regular {
7281
- font-size: var(--font-size);
7282
- line-height: var(--font-height);
7283
- }
7284
-
7285
- .Text--large {
7286
- font-size: var(--font-size-m);
7287
- line-height: var(--font-height-m);
7288
- }
7289
-
7290
- .Text--default {
7291
- color: var(--text);
7292
- }
7293
-
7294
- .Text--subtle {
7295
- color: var(--text-subtle);
7296
- }
7297
-
7298
- .Text--disabled {
7299
- color: var(--text-disabled);
7300
- }
7301
-
7302
- .Text--destructive {
7303
- color: var(--text-destructive);
7304
- }
7305
-
7306
- .Text--white {
7307
- color: var(--text-white);
7308
- }
7309
-
7310
- .Text--success {
7311
- color: var(--text-success);
7312
- }
7313
-
7314
- .Text--link {
7315
- color: var(--text-link);
7316
- }
7317
-
7318
- .Text--medium {
7319
- font-weight: var(--font-weight-medium);
7320
- }
7321
-
7322
- .Text--strong {
7323
- font-weight: var(--font-weight-bold);
7324
- }
7325
-
7326
7406
  /* Textarea */
7327
7407
 
7328
7408
  .Textarea {