@dialpad/dialtone-vue 2.130.3 → 2.131.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.
package/dist/style.css CHANGED
@@ -454,6 +454,25 @@
454
454
  line-height: var(--dt-font-line-height-400);
455
455
  font-weight: var(--dt-font-weight-medium);
456
456
  }
457
+ .dt-leftbar-row__container--off-duty[data-v-ca5d7362] {
458
+ border-radius: var(--dt-size-radius-500);
459
+ background-color: var(--dt-badge-color-background-critical);
460
+ border: var(--dt-size-100) solid var(--dt-color-border-subtle);
461
+ }
462
+ .dt-leftbar-row__container--off-duty[data-v-ca5d7362] .dt-leftbar-row__primary {
463
+ margin: calc(var(--dt-size-100) * -1);
464
+ }
465
+ .dt-leftbar-row--contact-centers[data-v-ca5d7362] .dt-leftbar-row__alpha {
466
+ padding-right: var(--dt-space-450);
467
+ padding-left: var(--dt-space-450);
468
+ }
469
+ .dt-leftbar-row--contact-centers .dt-leftbar-row__action-container[data-v-ca5d7362] {
470
+ display: inline-flex;
471
+ align-items: center;
472
+ justify-content: flex-end;
473
+ min-width: var(--dt-size-600);
474
+ height: var(--dt-size-500);
475
+ }
457
476
  .dt-leftbar-row[data-v-ca5d7362] .dt-leftbar-row__description {
458
477
  display: block;
459
478
  font-weight: var(--leftbar-row-description-font-weight);
@@ -535,6 +554,297 @@
535
554
  opacity: 90%;
536
555
  }
537
556
  }
557
+ .dt-leftbar-row[data-v-f44e0386] {
558
+ --leftbar-row-color-foreground: var(--dt-theme-sidebar-color-foreground);
559
+ --leftbar-row-color-background: var(--dt-theme-sidebar-row-color-background);
560
+ --leftbar-row-radius: var(--dt-size-radius-pill);
561
+ --leftbar-row-opacity: 100%;
562
+ --leftbar-row-alpha-color-foreground: var(--dt-theme-sidebar-icon-color-foreground);
563
+ --leftbar-row-alpha-width: calc(var(--dt-size-300) * 10);
564
+ --leftbar-row-alpha-height: calc(var(--dt-size-300) * 9);
565
+ --leftbar-row-omega-height: var(--leftbar-row-alpha-height);
566
+ --leftbar-row-unread-badge-display: inline-flex;
567
+ --leftbar-row-description-color-foreground: var(--dt-theme-sidebar-color-foreground);
568
+ --leftbar-row-description-font-weight: var(--dt-font-weight-normal);
569
+ --leftbar-row-description-font-size: var(--dt-font-size-200);
570
+ --leftbar-row-description-line-height: var(--dt-font-line-height-200);
571
+ --leftbar-row-status-color-foreground: var(--dt-theme-sidebar-status-color-foreground);
572
+ --leftbar-row-status-font-size: var(--dt-font-size-100);
573
+ --leftbar-row-status-line-height: var(--dt-font-line-height-100);
574
+ --leftbar-row-action-position-right: var(--dt-size-400);
575
+ --leftbar-row-action-position-bottom: 50%;
576
+ --leftbar-row-action-width: var(--dt-size-550);
577
+ --leftbar-row-action-height: var(--leftbar-row-action-width);
578
+ position: relative;
579
+ opacity: var(--leftbar-row-opacity);
580
+ display: flex;
581
+ background-color: var(--dt-theme-sidebar-row-color-background);
582
+ border-radius: var(--leftbar-row-radius);
583
+ transition-duration: var(--td200);
584
+ transition-property: background-color, border, box-shadow;
585
+ transition-timing-function: var(--ttf-out-quint);
586
+ cursor: pointer;
587
+ }
588
+ .dt-leftbar-row[data-v-f44e0386]:not(.dt-leftbar-row--no-action):hover,
589
+ .dt-leftbar-row[data-v-f44e0386]:not(.dt-leftbar-row--no-action):focus-within {
590
+ --leftbar-row-unread-badge-display: none;
591
+ }
592
+ .dt-leftbar-row[data-v-f44e0386]:not(.dt-leftbar-row--no-action):hover .dt-leftbar-row__action,
593
+ .dt-leftbar-row[data-v-f44e0386]:not(.dt-leftbar-row--no-action):focus-within .dt-leftbar-row__action {
594
+ display: inline-flex;
595
+ }
596
+ .dt-leftbar-row[data-v-f44e0386]:not(.dt-leftbar-row--no-action):hover .dt-leftbar-row__action-button,
597
+ .dt-leftbar-row[data-v-f44e0386]:not(.dt-leftbar-row--no-action):focus-within .dt-leftbar-row__action-button {
598
+ opacity: 1;
599
+ }
600
+ .dt-leftbar-row[data-v-f44e0386]:hover,
601
+ .dt-leftbar-row[data-v-f44e0386]:focus-within {
602
+ --leftbar-row-color-background: var(--dt-theme-sidebar-row-color-background-hover);
603
+ }
604
+ .dt-leftbar-row[data-v-f44e0386]:hover .d-presence,
605
+ .dt-leftbar-row[data-v-f44e0386]:focus-within .d-presence {
606
+ --presence-color-border-base: var(--dt-color-black-200);
607
+ }
608
+ .dt-leftbar-row[data-v-f44e0386]:hover .d-avatar__count,
609
+ .dt-leftbar-row[data-v-f44e0386]:focus-within .d-avatar__count {
610
+ --avatar-count-color-shadow: var(--dt-theme-sidebar-selected-row-color-background);
611
+ }
612
+ .dt-leftbar-row--has-unread[data-v-f44e0386] {
613
+ --leftbar-row-description-font-weight: var(--dt-font-weight-bold);
614
+ --leftbar-row-description-color-foreground: var(--dt-theme-sidebar-color-foreground-unread);
615
+ --leftbar-row-alpha-color-foreground: var(--dt-theme-sidebar-color-foreground-unread);
616
+ }
617
+ .dt-leftbar-row--unread-count[data-v-f44e0386] .dt-leftbar-row__action {
618
+ display: none;
619
+ }
620
+ .dt-leftbar-row--muted[data-v-f44e0386] {
621
+ --leftbar-row-opacity: 60%;
622
+ }
623
+ .dt-leftbar-row--selected[data-v-f44e0386] {
624
+ --leftbar-row-color-background: var(--dt-theme-sidebar-selected-row-color-background);
625
+ --leftbar-row-description-color-foreground: var(--dt-theme-sidebar-selected-row-color-foreground);
626
+ }
627
+ .dt-leftbar-row--selected[data-v-f44e0386] .d-presence {
628
+ --presence-color-border-base: var(--dt-color-black-200);
629
+ }
630
+ .dt-leftbar-row--selected[data-v-f44e0386] .d-avatar__count {
631
+ --avatar-count-color-shadow: var(--dt-theme-sidebar-selected-row-color-background);
632
+ }
633
+ .dt-leftbar-row__is-typing[data-v-f44e0386] {
634
+ --is-typing-size-shape: var(--dt-size-550);
635
+ height: var(--is-typing-size-shape);
636
+ width: var(--is-typing-size-shape);
637
+ position: absolute;
638
+ display: flex;
639
+ align-items: center;
640
+ justify-content: center;
641
+ gap: 2px;
642
+ border-radius: var(--dt-size-radius-pill);
643
+ opacity: 0.75;
644
+ }
645
+ .dt-leftbar-row__is-typing span[data-v-f44e0386] {
646
+ transition: all 500ms ease;
647
+ background: var(--dt-color-surface-strong);
648
+ height: 4px;
649
+ width: 4px;
650
+ display: inline-block;
651
+ padding: 0;
652
+ opacity: 0.3;
653
+ border-radius: var(--dt-size-radius-pill);
654
+ animation: wave-f44e0386 1.5s ease infinite;
655
+ }
656
+ .dt-leftbar-row__is-typing span[data-v-f44e0386]:nth-child(1) {
657
+ animation-delay: 0ms;
658
+ }
659
+ .dt-leftbar-row__is-typing span[data-v-f44e0386]:nth-child(2) {
660
+ animation-delay: var(--td100);
661
+ }
662
+ .dt-leftbar-row__is-typing span[data-v-f44e0386]:nth-child(3) {
663
+ animation-delay: var(--td200);
664
+ }
665
+ .dt-leftbar-row__primary[data-v-f44e0386] {
666
+ display: flex;
667
+ align-items: center;
668
+ flex: 1;
669
+ width: 100%;
670
+ text-align: left;
671
+ background-color: var(--leftbar-row-color-background);
672
+ color: var(--leftbar-row-color-foreground);
673
+ text-decoration: none;
674
+ appearance: none;
675
+ font-size: inherit;
676
+ line-height: inherit;
677
+ margin: 0;
678
+ border: 0;
679
+ padding: 0;
680
+ border-radius: var(--leftbar-row-radius);
681
+ }
682
+ .dt-leftbar-row__primary[data-v-f44e0386]:active {
683
+ --leftbar-row-color-background: var(--dt-theme-sidebar-row-color-background-active);
684
+ }
685
+ .dt-leftbar-row__primary[data-v-f44e0386]:focus-visible {
686
+ box-shadow: var(--dt-shadow-focus-inset);
687
+ }
688
+ .dt-leftbar-row__action-button[data-v-f44e0386] {
689
+ opacity: 0;
690
+ width: var(--leftbar-row-action-width);
691
+ height: var(--leftbar-row-action-height);
692
+ }
693
+ .dt-leftbar-row__alpha[data-v-f44e0386] {
694
+ color: var(--leftbar-row-alpha-color-foreground);
695
+ display: flex;
696
+ box-sizing: border-box;
697
+ justify-content: center;
698
+ align-items: center;
699
+ padding-left: var(--dt-space-400);
700
+ padding-right: var(--dt-space-400);
701
+ width: var(--leftbar-row-alpha-width);
702
+ height: var(--leftbar-row-alpha-height);
703
+ border-radius: var(--leftbar-row-radius) 0 0 var(--leftbar-row-radius);
704
+ }
705
+ .dt-leftbar-row__label[data-v-f44e0386] {
706
+ flex: 0 1;
707
+ min-width: 0;
708
+ }
709
+ .dt-leftbar-row__omega[data-v-f44e0386] {
710
+ position: absolute;
711
+ display: flex;
712
+ right: var(--leftbar-row-action-position-right);
713
+ top: var(--leftbar-row-action-position-bottom);
714
+ transform: translateY(calc(var(--leftbar-row-action-position-bottom) * -1));
715
+ gap: var(--dt-space-300);
716
+ justify-content: flex-end;
717
+ align-items: center;
718
+ box-sizing: border-box;
719
+ border-radius: var(--leftbar-row-radius);
720
+ }
721
+ .dt-leftbar-row__unread-badge[data-v-f44e0386] {
722
+ display: var(--leftbar-row-unread-badge-display);
723
+ }
724
+ .dt-leftbar-row__active-voice[data-v-f44e0386] {
725
+ color: var(--dt-color-purple-400);
726
+ display: inline-flex;
727
+ -webkit-animation-name: opacity-pulsate-f44e0386;
728
+ -webkit-animation-duration: 1s;
729
+ -webkit-animation-iteration-count: infinite;
730
+ -webkit-animation-fill-mode: both;
731
+ -moz-animation-name: opacity-pulsate-f44e0386;
732
+ -moz-animation-duration: 1s;
733
+ -moz-animation-iteration-count: infinite;
734
+ -moz-animation-fill-mode: both;
735
+ animation-name: opacity-pulsate-f44e0386;
736
+ animation-duration: 1s;
737
+ animation-iteration-count: infinite;
738
+ animation-fill-mode: both;
739
+ }
740
+ .dt-leftbar-row__dnd[data-v-f44e0386] {
741
+ padding-top: var(--dt-space-200);
742
+ padding-right: var(--dt-space-300);
743
+ color: var(--dt-color-foreground-tertiary);
744
+ font-size: var(--dt-font-size-100);
745
+ line-height: var(--dt-font-line-height-400);
746
+ font-weight: var(--dt-font-weight-medium);
747
+ }
748
+ .dt-leftbar-row__container--off-duty[data-v-f44e0386] {
749
+ border-radius: var(--dt-size-radius-500);
750
+ background-color: var(--dt-badge-color-background-critical);
751
+ border: var(--dt-size-100) solid var(--dt-color-border-subtle);
752
+ }
753
+ .dt-leftbar-row__container--off-duty[data-v-f44e0386] .dt-leftbar-row__primary {
754
+ margin: calc(var(--dt-size-100) * -1);
755
+ }
756
+ .dt-leftbar-row--contact-centers[data-v-f44e0386] .dt-leftbar-row__alpha {
757
+ padding-right: var(--dt-space-450);
758
+ padding-left: var(--dt-space-450);
759
+ }
760
+ .dt-leftbar-row--contact-centers .dt-leftbar-row__action-container[data-v-f44e0386] {
761
+ display: inline-flex;
762
+ align-items: center;
763
+ justify-content: flex-end;
764
+ min-width: var(--dt-size-600);
765
+ height: var(--dt-size-500);
766
+ }
767
+ .dt-leftbar-row[data-v-f44e0386] .dt-leftbar-row__description {
768
+ display: block;
769
+ font-weight: var(--leftbar-row-description-font-weight);
770
+ font-size: var(--leftbar-row-description-font-size);
771
+ line-height: var(--leftbar-row-description-line-height);
772
+ color: var(--leftbar-row-description-color-foreground);
773
+ overflow: hidden;
774
+ text-overflow: ellipsis;
775
+ white-space: nowrap;
776
+ }
777
+ .dt-leftbar-row[data-v-f44e0386] .dt-leftbar-row__status {
778
+ display: block;
779
+ color: var(--leftbar-row-status-color-foreground);
780
+ font-size: var(--leftbar-row-status-font-size);
781
+ line-height: var(--leftbar-row-status-line-height);
782
+ padding-bottom: var(--dt-space-100);
783
+ overflow: hidden;
784
+ text-overflow: ellipsis;
785
+ white-space: nowrap;
786
+ }
787
+ .dt-leftbar-row[data-v-f44e0386] .dt-leftbar-row__meta-context ~ .dt-leftbar-row__meta-custom:not(:empty):before {
788
+ content: ' • ';
789
+ color: var(--dt-theme-sidebar-status-color-foreground);
790
+ }
791
+ .dt-leftbar-row__icon-cc[data-v-f44e0386] {
792
+ border-radius: var(--dt-size-200);
793
+ width: calc(var(--dt-size-300) * 3.5);
794
+ height: calc(var(--dt-size-300) * 3.5);
795
+ }
796
+ .opacity-pulsate[data-v-f44e0386] {
797
+ -webkit-animation-name: opacity-pulsate-f44e0386;
798
+ -webkit-animation-duration: 1s;
799
+ -webkit-animation-iteration-count: infinite;
800
+ -webkit-animation-fill-mode: both;
801
+ -moz-animation-name: opacity-pulsate-f44e0386;
802
+ -moz-animation-duration: 1s;
803
+ -moz-animation-iteration-count: infinite;
804
+ -moz-animation-fill-mode: both;
805
+ animation-name: opacity-pulsate-f44e0386;
806
+ animation-duration: 1s;
807
+ animation-iteration-count: infinite;
808
+ animation-fill-mode: both;
809
+ }
810
+ @-webkit-keyframes opacity-pulsate-f44e0386 {
811
+ 0%,
812
+ 100% {
813
+ opacity: 0.2;
814
+ }
815
+ 50% {
816
+ opacity: 1;
817
+ }
818
+ }
819
+ @-moz-keyframes opacity-pulsate-f44e0386 {
820
+ 0%,
821
+ 100% {
822
+ opacity: 0.2;
823
+ }
824
+ 50% {
825
+ opacity: 1;
826
+ }
827
+ }
828
+ @keyframes opacity-pulsate-f44e0386 {
829
+ 0%,
830
+ 100% {
831
+ opacity: 0.2;
832
+ }
833
+ 50% {
834
+ opacity: 1;
835
+ }
836
+ }
837
+ @keyframes wave-f44e0386 {
838
+ 0%,
839
+ 50%,
840
+ 100% {
841
+ transform: translate(0, 0);
842
+ }
843
+ 10% {
844
+ transform: translate(0, -5px);
845
+ opacity: 90%;
846
+ }
847
+ }
538
848
  .dt-recipe-callbox[data-v-ef08f46e] {
539
849
  padding: 0;
540
850
  color: var(--dt-color-foreground-primary);
@@ -65,6 +65,7 @@ export * from "./recipes/conversation_view/time_pill";
65
65
  export * from "./recipes/header/settings_menu_button";
66
66
  export * from "./recipes/item_layout/contact_info";
67
67
  export * from "./recipes/leftbar/callbox";
68
+ export * from "./recipes/leftbar/contact_centers_row";
68
69
  export * from "./recipes/leftbar/contact_row";
69
70
  export * from "./recipes/leftbar/general_row";
70
71
  export * from "./recipes/leftbar/group_row";
@@ -0,0 +1,90 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ /**
3
+ * Will be read out by a screen reader upon focus of this row. If not defined "description" will be read.
4
+ */
5
+ ariaLabel: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ /**
10
+ * Text displayed next to the icon. Required.
11
+ */
12
+ description: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ /**
17
+ * Determines if the row is selected
18
+ */
19
+ selected: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ /**
24
+ * Number of unread messages
25
+ */
26
+ unreadCount: {
27
+ type: NumberConstructor;
28
+ default: number;
29
+ };
30
+ /**
31
+ * Aria label for the menu button.
32
+ */
33
+ menuButtonAriaLabel: {
34
+ type: StringConstructor;
35
+ required: true;
36
+ };
37
+ }, {}, {
38
+ labelWidth: string;
39
+ }, {
40
+ leftbarContactCentersRowClasses(): (string | {
41
+ 'dt-leftbar-row--unread-count': boolean;
42
+ 'dt-leftbar-row--selected': any;
43
+ })[];
44
+ getAriaLabel(): any;
45
+ showUnreadCount(): boolean;
46
+ }, {
47
+ adjustLabelWidth(): void;
48
+ }, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("click" | "click-menu")[], string, Readonly<import("vue").ExtractPropTypes<{
49
+ /**
50
+ * Will be read out by a screen reader upon focus of this row. If not defined "description" will be read.
51
+ */
52
+ ariaLabel: {
53
+ type: StringConstructor;
54
+ default: string;
55
+ };
56
+ /**
57
+ * Text displayed next to the icon. Required.
58
+ */
59
+ description: {
60
+ type: StringConstructor;
61
+ required: true;
62
+ };
63
+ /**
64
+ * Determines if the row is selected
65
+ */
66
+ selected: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ /**
71
+ * Number of unread messages
72
+ */
73
+ unreadCount: {
74
+ type: NumberConstructor;
75
+ default: number;
76
+ };
77
+ /**
78
+ * Aria label for the menu button.
79
+ */
80
+ menuButtonAriaLabel: {
81
+ type: StringConstructor;
82
+ required: true;
83
+ };
84
+ }>>, {
85
+ ariaLabel: string;
86
+ selected: boolean;
87
+ unreadCount: number;
88
+ }>;
89
+ export default _default;
90
+ //# sourceMappingURL=contact_centers_row.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact_centers_row.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/contact_centers_row/contact_centers_row.vue.js"],"names":[],"mappings":";IAuBI;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;IAlCH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
@@ -0,0 +1,2 @@
1
+ export { default as DtRecipeContactCentersRow } from "./contact_centers_row.vue";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/contact_centers_row/index.js"],"names":[],"mappings":""}
@@ -231,9 +231,9 @@ declare const _default: import("vue").DefineComponent<{
231
231
  selected: boolean;
232
232
  avatarSrc: string;
233
233
  avatarSeed: string;
234
- hasUnreads: boolean;
235
234
  unreadCount: string;
236
235
  unreadCountTooltip: string;
236
+ hasUnreads: boolean;
237
237
  hasCallButton: boolean;
238
238
  callButtonTooltip: string;
239
239
  isTyping: boolean;
@@ -264,9 +264,9 @@ declare const _default: import("vue").DefineComponent<{
264
264
  iconSize: string;
265
265
  muted: boolean;
266
266
  selected: boolean;
267
- hasUnreads: boolean;
268
267
  unreadCount: string;
269
268
  unreadCountTooltip: string;
269
+ hasUnreads: boolean;
270
270
  activeVoiceChat: boolean;
271
271
  dndText: string;
272
272
  dndTextTooltip: string;
@@ -104,9 +104,9 @@ declare const _default: import("vue").DefineComponent<{
104
104
  };
105
105
  }>>, {
106
106
  selected: boolean;
107
- hasUnreads: boolean;
108
107
  unreadCount: string;
109
108
  unreadCountTooltip: string;
109
+ hasUnreads: boolean;
110
110
  isTyping: boolean;
111
111
  groupCountText: string;
112
112
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialpad/dialtone-vue",
3
- "version": "2.130.3",
3
+ "version": "2.131.0",
4
4
  "description": "Vue component library for Dialpad's design system Dialtone",
5
5
  "files": [
6
6
  "dist"
@@ -81,8 +81,8 @@
81
81
  "vue-tsc": "^1.8.25",
82
82
  "yo": "^5.0.0",
83
83
  "yorkie": "^2.0.0",
84
- "@dialpad/dialtone-css": "8.31.1",
85
- "@dialpad/generator-dialtone": "0.1.0"
84
+ "@dialpad/generator-dialtone": "0.1.0",
85
+ "@dialpad/dialtone-css": "8.31.1"
86
86
  },
87
87
  "peerDependencies": {
88
88
  "vue": ">=2.6",