@dialpad/dialtone-vue 2.158.2 → 2.159.0-beta.2

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 (216) hide show
  1. package/dist/common/sr_only_close_button.vue.cjs +3 -3
  2. package/dist/common/sr_only_close_button.vue.cjs.map +1 -1
  3. package/dist/common/sr_only_close_button.vue.js +3 -3
  4. package/dist/common/sr_only_close_button.vue.js.map +1 -1
  5. package/dist/component-documentation.json +1 -1
  6. package/dist/components/avatar/avatar.vue.cjs +13 -24
  7. package/dist/components/avatar/avatar.vue.cjs.map +1 -1
  8. package/dist/components/avatar/avatar.vue.js +13 -24
  9. package/dist/components/avatar/avatar.vue.js.map +1 -1
  10. package/dist/components/badge/badge.vue.cjs +13 -34
  11. package/dist/components/badge/badge.vue.cjs.map +1 -1
  12. package/dist/components/badge/badge.vue.js +13 -34
  13. package/dist/components/badge/badge.vue.js.map +1 -1
  14. package/dist/components/chip/chip.vue.cjs +4 -4
  15. package/dist/components/chip/chip.vue.cjs.map +1 -1
  16. package/dist/components/chip/chip.vue.js +4 -4
  17. package/dist/components/chip/chip.vue.js.map +1 -1
  18. package/dist/components/collapsible/collapsible.vue.cjs +4 -3
  19. package/dist/components/collapsible/collapsible.vue.cjs.map +1 -1
  20. package/dist/components/collapsible/collapsible.vue.js +4 -3
  21. package/dist/components/collapsible/collapsible.vue.js.map +1 -1
  22. package/dist/components/datepicker/modules/month-year-picker.vue.cjs +14 -6
  23. package/dist/components/datepicker/modules/month-year-picker.vue.cjs.map +1 -1
  24. package/dist/components/datepicker/modules/month-year-picker.vue.js +14 -6
  25. package/dist/components/datepicker/modules/month-year-picker.vue.js.map +1 -1
  26. package/dist/components/emoji_picker/modules/emoji_search.vue.cjs +6 -5
  27. package/dist/components/emoji_picker/modules/emoji_search.vue.cjs.map +1 -1
  28. package/dist/components/emoji_picker/modules/emoji_search.vue.js +6 -5
  29. package/dist/components/emoji_picker/modules/emoji_search.vue.js.map +1 -1
  30. package/dist/components/emoji_picker/modules/emoji_tabset.vue.cjs +23 -14
  31. package/dist/components/emoji_picker/modules/emoji_tabset.vue.cjs.map +1 -1
  32. package/dist/components/emoji_picker/modules/emoji_tabset.vue.js +23 -14
  33. package/dist/components/emoji_picker/modules/emoji_tabset.vue.js.map +1 -1
  34. package/dist/components/empty_state/empty_state.vue.cjs +20 -80
  35. package/dist/components/empty_state/empty_state.vue.cjs.map +1 -1
  36. package/dist/components/empty_state/empty_state.vue.js +21 -81
  37. package/dist/components/empty_state/empty_state.vue.js.map +1 -1
  38. package/dist/components/empty_state/empty_state_constants.cjs +18 -0
  39. package/dist/components/empty_state/empty_state_constants.cjs.map +1 -1
  40. package/dist/components/empty_state/empty_state_constants.js +18 -0
  41. package/dist/components/empty_state/empty_state_constants.js.map +1 -1
  42. package/dist/components/icon/icon.vue.cjs +2 -2
  43. package/dist/components/icon/icon.vue.js +2 -2
  44. package/dist/components/illustration/illustration.vue.cjs +2 -2
  45. package/dist/components/illustration/illustration.vue.js +2 -2
  46. package/dist/components/image_viewer/image_viewer.vue.cjs +4 -4
  47. package/dist/components/image_viewer/image_viewer.vue.cjs.map +1 -1
  48. package/dist/components/image_viewer/image_viewer.vue.js +4 -4
  49. package/dist/components/image_viewer/image_viewer.vue.js.map +1 -1
  50. package/dist/components/keyboard_shortcut/keyboard_shortcut.vue.cjs +24 -9
  51. package/dist/components/keyboard_shortcut/keyboard_shortcut.vue.cjs.map +1 -1
  52. package/dist/components/keyboard_shortcut/keyboard_shortcut.vue.js +22 -7
  53. package/dist/components/keyboard_shortcut/keyboard_shortcut.vue.js.map +1 -1
  54. package/dist/components/keyboard_shortcut/keyboard_shortcut_constants.cjs +8 -14
  55. package/dist/components/keyboard_shortcut/keyboard_shortcut_constants.cjs.map +1 -1
  56. package/dist/components/keyboard_shortcut/keyboard_shortcut_constants.js +9 -15
  57. package/dist/components/keyboard_shortcut/keyboard_shortcut_constants.js.map +1 -1
  58. package/dist/components/list_item/list_item.vue.cjs +3 -3
  59. package/dist/components/list_item/list_item.vue.cjs.map +1 -1
  60. package/dist/components/list_item/list_item.vue.js +3 -3
  61. package/dist/components/list_item/list_item.vue.js.map +1 -1
  62. package/dist/components/modal/modal.vue.cjs +4 -4
  63. package/dist/components/modal/modal.vue.cjs.map +1 -1
  64. package/dist/components/modal/modal.vue.js +4 -4
  65. package/dist/components/modal/modal.vue.js.map +1 -1
  66. package/dist/components/notice/notice_action.vue.cjs +4 -4
  67. package/dist/components/notice/notice_action.vue.cjs.map +1 -1
  68. package/dist/components/notice/notice_action.vue.js +4 -4
  69. package/dist/components/notice/notice_action.vue.js.map +1 -1
  70. package/dist/components/notice/notice_icon.vue.cjs +12 -8
  71. package/dist/components/notice/notice_icon.vue.cjs.map +1 -1
  72. package/dist/components/notice/notice_icon.vue.js +12 -8
  73. package/dist/components/notice/notice_icon.vue.js.map +1 -1
  74. package/dist/components/pagination/pagination.vue.cjs +11 -5
  75. package/dist/components/pagination/pagination.vue.cjs.map +1 -1
  76. package/dist/components/pagination/pagination.vue.js +11 -5
  77. package/dist/components/pagination/pagination.vue.js.map +1 -1
  78. package/dist/components/popover/popover_header_footer.vue.cjs +4 -4
  79. package/dist/components/popover/popover_header_footer.vue.cjs.map +1 -1
  80. package/dist/components/popover/popover_header_footer.vue.js +4 -4
  81. package/dist/components/popover/popover_header_footer.vue.js.map +1 -1
  82. package/dist/dialtone-vue.cjs +0 -3
  83. package/dist/dialtone-vue.cjs.map +1 -1
  84. package/dist/dialtone-vue.js +2 -5
  85. package/dist/lib/general-row.cjs +0 -1
  86. package/dist/lib/general-row.cjs.map +1 -1
  87. package/dist/lib/general-row.js +1 -2
  88. package/dist/lib/keyboard-shortcut.cjs +0 -2
  89. package/dist/lib/keyboard-shortcut.cjs.map +1 -1
  90. package/dist/lib/keyboard-shortcut.js +2 -4
  91. package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.cjs +5 -5
  92. package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.cjs.map +1 -1
  93. package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.js +5 -5
  94. package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.js.map +1 -1
  95. package/dist/recipes/cards/ivr_node/ivr_node.vue.cjs +25 -5
  96. package/dist/recipes/cards/ivr_node/ivr_node.vue.cjs.map +1 -1
  97. package/dist/recipes/cards/ivr_node/ivr_node.vue.js +26 -6
  98. package/dist/recipes/cards/ivr_node/ivr_node.vue.js.map +1 -1
  99. package/dist/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.cjs +5 -4
  100. package/dist/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.cjs.map +1 -1
  101. package/dist/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.js +5 -4
  102. package/dist/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.js.map +1 -1
  103. package/dist/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.cjs +3 -3
  104. package/dist/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.cjs.map +1 -1
  105. package/dist/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.js +3 -3
  106. package/dist/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.js.map +1 -1
  107. package/dist/recipes/conversation_view/editor/editor.vue.cjs +35 -22
  108. package/dist/recipes/conversation_view/editor/editor.vue.cjs.map +1 -1
  109. package/dist/recipes/conversation_view/editor/editor.vue.js +35 -22
  110. package/dist/recipes/conversation_view/editor/editor.vue.js.map +1 -1
  111. package/dist/recipes/conversation_view/feed_item_row/feed_item_row.vue.cjs +7 -6
  112. package/dist/recipes/conversation_view/feed_item_row/feed_item_row.vue.cjs.map +1 -1
  113. package/dist/recipes/conversation_view/feed_item_row/feed_item_row.vue.js +7 -6
  114. package/dist/recipes/conversation_view/feed_item_row/feed_item_row.vue.js.map +1 -1
  115. package/dist/recipes/conversation_view/feed_pill/feed_item_pill.vue.cjs +9 -17
  116. package/dist/recipes/conversation_view/feed_pill/feed_item_pill.vue.cjs.map +1 -1
  117. package/dist/recipes/conversation_view/feed_pill/feed_item_pill.vue.js +9 -17
  118. package/dist/recipes/conversation_view/feed_pill/feed_item_pill.vue.js.map +1 -1
  119. package/dist/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.cjs +6 -5
  120. package/dist/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.cjs.map +1 -1
  121. package/dist/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.js +6 -5
  122. package/dist/recipes/conversation_view/message_input/meeting_pill/MeetingPill.vue.js.map +1 -1
  123. package/dist/recipes/conversation_view/message_input/message_input.vue.cjs +22 -11
  124. package/dist/recipes/conversation_view/message_input/message_input.vue.cjs.map +1 -1
  125. package/dist/recipes/conversation_view/message_input/message_input.vue.js +22 -11
  126. package/dist/recipes/conversation_view/message_input/message_input.vue.js.map +1 -1
  127. package/dist/recipes/header/settings_menu_button/settings_menu_button.vue.cjs +6 -6
  128. package/dist/recipes/header/settings_menu_button/settings_menu_button.vue.cjs.map +1 -1
  129. package/dist/recipes/header/settings_menu_button/settings_menu_button.vue.js +6 -6
  130. package/dist/recipes/header/settings_menu_button/settings_menu_button.vue.js.map +1 -1
  131. package/dist/recipes/item_layout/contact_info/contact_info.vue.cjs +14 -10
  132. package/dist/recipes/item_layout/contact_info/contact_info.vue.cjs.map +1 -1
  133. package/dist/recipes/item_layout/contact_info/contact_info.vue.js +14 -10
  134. package/dist/recipes/item_layout/contact_info/contact_info.vue.js.map +1 -1
  135. package/dist/recipes/leftbar/callbox/callbox.vue.cjs +6 -3
  136. package/dist/recipes/leftbar/callbox/callbox.vue.cjs.map +1 -1
  137. package/dist/recipes/leftbar/callbox/callbox.vue.js +6 -3
  138. package/dist/recipes/leftbar/callbox/callbox.vue.js.map +1 -1
  139. package/dist/recipes/leftbar/contact_row/contact_row.vue.cjs +6 -5
  140. package/dist/recipes/leftbar/contact_row/contact_row.vue.cjs.map +1 -1
  141. package/dist/recipes/leftbar/contact_row/contact_row.vue.js +6 -5
  142. package/dist/recipes/leftbar/contact_row/contact_row.vue.js.map +1 -1
  143. package/dist/recipes/leftbar/general_row/general_row.vue.cjs +8 -7
  144. package/dist/recipes/leftbar/general_row/general_row.vue.cjs.map +1 -1
  145. package/dist/recipes/leftbar/general_row/general_row.vue.js +8 -7
  146. package/dist/recipes/leftbar/general_row/general_row.vue.js.map +1 -1
  147. package/dist/recipes/leftbar/general_row/general_row_constants.cjs +0 -17
  148. package/dist/recipes/leftbar/general_row/general_row_constants.cjs.map +1 -1
  149. package/dist/recipes/leftbar/general_row/general_row_constants.js +0 -17
  150. package/dist/recipes/leftbar/general_row/general_row_constants.js.map +1 -1
  151. package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.cjs +36 -4
  152. package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.cjs.map +1 -1
  153. package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.js +37 -5
  154. package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.js.map +1 -1
  155. package/dist/recipes/leftbar/group_row/group_row.vue.cjs +3 -3
  156. package/dist/recipes/leftbar/group_row/group_row.vue.cjs.map +1 -1
  157. package/dist/recipes/leftbar/group_row/group_row.vue.js +3 -3
  158. package/dist/recipes/leftbar/group_row/group_row.vue.js.map +1 -1
  159. package/dist/recipes/leftbar/unread_pill/unread_pill.vue.cjs +4 -3
  160. package/dist/recipes/leftbar/unread_pill/unread_pill.vue.cjs.map +1 -1
  161. package/dist/recipes/leftbar/unread_pill/unread_pill.vue.js +4 -3
  162. package/dist/recipes/leftbar/unread_pill/unread_pill.vue.js.map +1 -1
  163. package/dist/style.css +127 -124
  164. package/dist/types/components/avatar/avatar.vue.d.ts +4 -34
  165. package/dist/types/components/avatar/avatar.vue.d.ts.map +1 -1
  166. package/dist/types/components/badge/badge.vue.d.ts +16 -45
  167. package/dist/types/components/badge/badge.vue.d.ts.map +1 -1
  168. package/dist/types/components/chip/chip.vue.d.ts +1 -1
  169. package/dist/types/components/collapsible/collapsible.vue.d.ts +1 -1
  170. package/dist/types/components/collapsible/collapsible.vue.d.ts.map +1 -1
  171. package/dist/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts +1 -67
  172. package/dist/types/components/empty_state/empty_state_constants.d.ts +27 -0
  173. package/dist/types/components/keyboard_shortcut/index.d.ts +1 -1
  174. package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +7 -15
  175. package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts.map +1 -1
  176. package/dist/types/components/keyboard_shortcut/keyboard_shortcut_constants.d.ts +0 -11
  177. package/dist/types/components/keyboard_shortcut/keyboard_shortcut_constants.d.ts.map +1 -1
  178. package/dist/types/components/modal/modal.vue.d.ts +4 -6
  179. package/dist/types/components/modal/modal.vue.d.ts.map +1 -1
  180. package/dist/types/components/notice/notice_action.vue.d.ts +5 -4
  181. package/dist/types/components/notice/notice_action.vue.d.ts.map +1 -1
  182. package/dist/types/components/notice/notice_icon.vue.d.ts +1 -1
  183. package/dist/types/components/notice/notice_icon.vue.d.ts.map +1 -1
  184. package/dist/types/components/pagination/pagination.vue.d.ts.map +1 -1
  185. package/dist/types/components/split_button/split_button-omega.vue.d.ts +1 -1
  186. package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +1 -1
  187. package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +1 -1
  188. package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  189. package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  190. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts +8 -8
  191. package/dist/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  192. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +0 -1
  193. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  194. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts +2 -16
  195. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill.vue.d.ts.map +1 -1
  196. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +4 -6
  197. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  198. package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +3 -16
  199. package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -1
  200. package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts.map +1 -1
  201. package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +0 -1
  202. package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
  203. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
  204. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  205. package/dist/types/recipes/leftbar/general_row/general_row_constants.d.ts +0 -6
  206. package/dist/types/recipes/leftbar/general_row/general_row_constants.d.ts.map +1 -1
  207. package/dist/types/recipes/leftbar/general_row/index.d.ts +1 -1
  208. package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -1
  209. package/dist/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  210. package/package.json +3 -3
  211. package/dist/common/storybook_utils.cjs +0 -8
  212. package/dist/common/storybook_utils.cjs.map +0 -1
  213. package/dist/common/storybook_utils.js +0 -8
  214. package/dist/common/storybook_utils.js.map +0 -1
  215. package/dist/types/common/storybook_utils.d.ts +0 -35
  216. package/dist/types/common/storybook_utils.d.ts.map +0 -1
@@ -1,11 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- /**
3
- * Accepts a DtIcon name to be shown in the left
4
- */
5
- iconName: {
6
- type: StringConstructor;
7
- default: () => "";
8
- };
9
2
  /**
10
3
  * Bolded primary text
11
4
  */
@@ -58,19 +51,13 @@ declare const _default: import("vue").DefineComponent<{
58
51
  hover: boolean;
59
52
  expanded: any;
60
53
  }, {
61
- computedIcon(): any;
54
+ toggleIcon(): any;
55
+ showChevronIcon(): any;
62
56
  toggleableClass(): "" | "d-c-pointer";
63
57
  borderClass(): any;
64
58
  }, {
65
59
  onClick(): void;
66
60
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
67
- /**
68
- * Accepts a DtIcon name to be shown in the left
69
- */
70
- iconName: {
71
- type: StringConstructor;
72
- default: () => "";
73
- };
74
61
  /**
75
62
  * Bolded primary text
76
63
  */
@@ -121,7 +108,6 @@ declare const _default: import("vue").DefineComponent<{
121
108
  };
122
109
  }>>, {
123
110
  title: string;
124
- iconName: string;
125
111
  buttonClass: string | Record<string, any> | unknown[];
126
112
  wrapperClass: string | Record<string, any> | unknown[];
127
113
  toggleable: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"feed_item_pill.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/conversation_view/feed_pill/feed_item_pill.vue.js"],"names":[],"mappings":";IAaI;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;IAWH;;;OAGG;;;;;;;;;;;;;;;;IAxDH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;IAWH;;;OAGG"}
1
+ {"version":3,"file":"feed_item_pill.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/conversation_view/feed_pill/feed_item_pill.vue.js"],"names":[],"mappings":";IAaI;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;IAWH;;;OAGG;;;;;;;;;;;;;;;;;IAhDH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;IAWH;;;OAGG"}
@@ -143,9 +143,7 @@ declare const _default: import("vue").DefineComponent<{
143
143
  */
144
144
  showSend: {
145
145
  type: (ObjectConstructor | BooleanConstructor)[];
146
- default: () => {
147
- icon: string;
148
- };
146
+ default: () => {};
149
147
  };
150
148
  /**
151
149
  * Cancel button defaults.
@@ -259,6 +257,7 @@ declare const _default: import("vue").DefineComponent<{
259
257
  emojiPickerFocus: boolean;
260
258
  emojiPickerOpened: boolean;
261
259
  }, {
260
+ showSendIcon(): boolean;
262
261
  inputLength(): any;
263
262
  displayCharacterLimitWarning(): boolean;
264
263
  characterLimitTooltipEnabled(): any;
@@ -267,6 +266,7 @@ declare const _default: import("vue").DefineComponent<{
267
266
  ariaLabel: string;
268
267
  };
269
268
  emojiPickerHovered(): boolean;
269
+ sendIconSize(): "300";
270
270
  }, {
271
271
  onMousedown(e: any): void;
272
272
  onDrop(e: any): void;
@@ -424,9 +424,7 @@ declare const _default: import("vue").DefineComponent<{
424
424
  */
425
425
  showSend: {
426
426
  type: (ObjectConstructor | BooleanConstructor)[];
427
- default: () => {
428
- icon: string;
429
- };
427
+ default: () => {};
430
428
  };
431
429
  /**
432
430
  * Cancel button defaults.
@@ -1 +1 @@
1
- {"version":3,"file":"message_input.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/conversation_view/message_input/message_input.vue.js"],"names":[],"mappings":";IAkCI;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;IAYH;;;;;OAKG;;;;;;IASH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;;;;;IAYH;;OAEG;;;;;;IAeH;;OAEG;;;;;IAOH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;IAWH;;OAEG;;;;;;;IAMH;;OAEG;;;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;;;OAYG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;MAEE;;;;;IAMF;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA1RH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;IAYH;;;;;OAKG;;;;;;IASH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;;;;;IAYH;;OAEG;;;;;;IAeH;;OAEG;;;;;IAOH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;IAWH;;OAEG;;;;;;;IAMH;;OAEG;;;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;;;OAYG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;MAEE;;;;;IAMF;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
1
+ {"version":3,"file":"message_input.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/conversation_view/message_input/message_input.vue.js"],"names":[],"mappings":";IAqCI;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;IAYH;;;;;OAKG;;;;;;IASH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;;;;;IAYH;;OAEG;;;;;;IAeH;;OAEG;;;;;IAOH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;IAWH;;OAEG;;;;;IAMH;;OAEG;;;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;;;OAYG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;MAEE;;;;;IAMF;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA1RH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;IAOH;;OAEG;;;;;IAMH;;;;OAIG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;IAYH;;;;;OAKG;;;;;;IASH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;;;;;IAYH;;OAEG;;;;;;IAeH;;OAEG;;;;;IAOH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;IAWH;;OAEG;;;;;IAMH;;OAEG;;;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;OAUG;;;;;IAMH;;;;;;;;;;;;OAYG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;MAEE;;;;;IAMF;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
@@ -35,13 +35,6 @@ declare const _default: import("vue").DefineComponent<{
35
35
  type: StringConstructor;
36
36
  default: string;
37
37
  };
38
- /**
39
- * Avatar icon to display if `avatarSrc` is empty.
40
- */
41
- avatarIcon: {
42
- type: StringConstructor;
43
- default: null;
44
- };
45
38
  /**
46
39
  * The size of the avatar
47
40
  * @values xs, sm, md, lg, xl
@@ -89,7 +82,9 @@ declare const _default: import("vue").DefineComponent<{
89
82
  type: ArrayConstructor;
90
83
  default: null;
91
84
  };
92
- }, {}, {}, {}, {
85
+ }, {}, {}, {
86
+ hasAvatarIcon(): import("vue/types/vnode").ScopedSlotChildren;
87
+ }, {
93
88
  avatarClick(): void;
94
89
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "avatar-click"[], string, Readonly<import("vue").ExtractPropTypes<{
95
90
  /**
@@ -128,13 +123,6 @@ declare const _default: import("vue").DefineComponent<{
128
123
  type: StringConstructor;
129
124
  default: string;
130
125
  };
131
- /**
132
- * Avatar icon to display if `avatarSrc` is empty.
133
- */
134
- avatarIcon: {
135
- type: StringConstructor;
136
- default: null;
137
- };
138
126
  /**
139
127
  * The size of the avatar
140
128
  * @values xs, sm, md, lg, xl
@@ -189,7 +177,6 @@ declare const _default: import("vue").DefineComponent<{
189
177
  avatarSeed: string;
190
178
  showAvatar: boolean;
191
179
  avatarFullName: string;
192
- avatarIcon: string;
193
180
  avatarSize: string;
194
181
  avatarLabelledBy: string;
195
182
  avatarColor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"contact_info.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/item_layout/contact_info/contact_info.vue.js"],"names":[],"mappings":";IAoBI;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;;;IA/FH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;;;;;;;;OAUG"}
1
+ {"version":3,"file":"contact_info.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/item_layout/contact_info/contact_info.vue.js"],"names":[],"mappings":";IAoBI;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;;;;;;;;OAUG;;;;;;;;;;IAvFH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;;;OAKG;;;;;IAMH;;;;;;;;;;OAUG"}
@@ -1 +1 @@
1
- {"version":3,"file":"callbox.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/callbox/callbox.vue.js"],"names":[],"mappings":";IAcI;;OAEG;;;;;IAMH;;;OAGG;;;;;;IAOH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;;IAOH;;;OAGG;;;;;IAMH;;OAEG;;;;;;;;;;;;IAzEH;;OAEG;;;;;IAMH;;;OAGG;;;;;;IAOH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;;IAOH;;;OAGG;;;;;IAMH;;OAEG"}
1
+ {"version":3,"file":"callbox.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/callbox/callbox.vue.js"],"names":[],"mappings":";IAeI;;OAEG;;;;;IAMH;;;OAGG;;;;;;IAOH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;;IAOH;;;OAGG;;;;;IAMH;;OAEG;;;;;;;;;;;;IAzEH;;OAEG;;;;;IAMH;;;OAGG;;;;;;IAOH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;;IAOH;;;OAGG;;;;;IAMH;;OAEG"}
@@ -120,7 +120,6 @@ declare const _default: import("vue").DefineComponent<{
120
120
  }, {}, {}, {
121
121
  presenceColorClass(): "d-fc-success" | "d-fc-critical" | "d-fc-warning" | undefined;
122
122
  contactDescription(): string;
123
- iconName(): "user" | null;
124
123
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "call")[], string, Readonly<import("vue").ExtractPropTypes<{
125
124
  /**
126
125
  * Optional avatar image url.
@@ -1 +1 @@
1
- {"version":3,"file":"contact_row.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/contact_row/contact_row.vue.js"],"names":[],"mappings":";IAmBI;;;OAGG;;;;;IAMH;;;;;;OAMG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;IAhIH;;;OAGG;;;;;IAMH;;;;;;OAMG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
1
+ {"version":3,"file":"contact_row.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/contact_row/contact_row.vue.js"],"names":[],"mappings":";IAqBI;;;OAGG;;;;;IAMH;;;;;;OAMG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;IAhIH;;;OAGG;;;;;IAMH;;;;;;OAMG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
@@ -299,9 +299,9 @@ declare const _default: import("vue").DefineComponent<{
299
299
  };
300
300
  }>>, {
301
301
  type: string;
302
- ariaLabel: string;
303
302
  color: string;
304
303
  iconSize: string;
304
+ ariaLabel: string;
305
305
  muted: boolean;
306
306
  selected: boolean;
307
307
  unreadCount: string;
@@ -1 +1 @@
1
- {"version":3,"file":"general_row.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/general_row/general_row.vue.js"],"names":[],"mappings":";IAgCI;;;OAGG;;;;;;IASH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;IASH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;IA6FH;;;;OAIG;4CADU,OAAO;;;;;IArPpB;;;OAGG;;;;;;IASH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;IASH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
1
+ {"version":3,"file":"general_row.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/general_row/general_row.vue.js"],"names":[],"mappings":";IAiCI;;;OAGG;;;;;;IASH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;IASH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;IA6FH;;;;OAIG;4CADU,OAAO;;;;;IArPpB;;;OAGG;;;;;;IASH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;IASH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG"}
@@ -14,11 +14,6 @@ export namespace LEFTBAR_GENERAL_ROW_TYPES {
14
14
  let DIGITAL: string;
15
15
  let SCHEDULED: string;
16
16
  }
17
- export const LEFTBAR_GENERAL_ROW_ICON_MAPPING: {
18
- [x: string]: string;
19
- 'locked channel unread': string;
20
- 'channel unread': string;
21
- };
22
17
  export const LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS: {
23
18
  'magenta-200': string;
24
19
  'green-200': string;
@@ -36,7 +31,6 @@ export const LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR: string;
36
31
  export const LEFTBAR_GENERAL_ROW_ICON_SIZES: string[];
37
32
  declare namespace _default {
38
33
  export { LEFTBAR_GENERAL_ROW_TYPES };
39
- export { LEFTBAR_GENERAL_ROW_ICON_MAPPING };
40
34
  export { LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS };
41
35
  export { LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR };
42
36
  export { LEFTBAR_GENERAL_ROW_ICON_SIZES };
@@ -1 +1 @@
1
- {"version":3,"file":"general_row_constants.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/general_row/general_row_constants.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA;;;;EAeE;AAEF;;;;;;;;;;;;EAYE;AAEF,yEAC4F;AAE5F,sDAGE"}
1
+ {"version":3,"file":"general_row_constants.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/general_row/general_row_constants.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA;;;;;;;;;;;;EAYE;AAEF,yEAC4F;AAE5F,sDAGE"}
@@ -1,3 +1,3 @@
1
1
  export { default as DtRecipeGeneralRow } from "./general_row.vue";
2
- export { LEFTBAR_GENERAL_ROW_TYPES, LEFTBAR_GENERAL_ROW_ICON_MAPPING, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR, LEFTBAR_GENERAL_ROW_ICON_SIZES } from "./general_row_constants";
2
+ export { LEFTBAR_GENERAL_ROW_TYPES, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS, LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR, LEFTBAR_GENERAL_ROW_ICON_SIZES } from "./general_row_constants";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  isIconType(): boolean;
16
16
  isContactCenterType(): boolean;
17
17
  isDialbotType(): boolean;
18
- getIconName(): string;
18
+ getIconName(): any;
19
19
  contactCenterIconClasses(): any[];
20
20
  dialbotClasses(): string[];
21
21
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
@@ -1 +1 @@
1
- {"version":3,"file":"unread_pill.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/unread_pill/unread_pill.vue.js"],"names":[],"mappings":";IAYI;;;QAGI;;;;;;IAOJ;;;QAGI;;;;;;;IAbJ;;;QAGI;;;;;;IAOJ;;;QAGI"}
1
+ {"version":3,"file":"unread_pill.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/leftbar/unread_pill/unread_pill.vue.js"],"names":[],"mappings":";IAaI;;;QAGI;;;;;;IAOJ;;;QAGI;;;;;;;IAbJ;;;QAGI;;;;;;IAOJ;;;QAGI"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialpad/dialtone-vue",
3
- "version": "2.158.2",
3
+ "version": "2.159.0-beta.2",
4
4
  "description": "Vue component library for Dialpad's design system Dialtone",
5
5
  "files": [
6
6
  "dist"
@@ -84,12 +84,12 @@
84
84
  "vue-tsc": "^1.8.25",
85
85
  "yo": "^5.0.0",
86
86
  "yorkie": "^2.0.0",
87
- "@dialpad/dialtone-css": "8.43.0",
87
+ "@dialpad/dialtone-css": "8.44.0-beta.1",
88
88
  "@dialpad/generator-dialtone": "0.1.0"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "vue": ">=2.6",
92
- "@dialpad/dialtone-css": "^8.43.0"
92
+ "@dialpad/dialtone-css": "^8.44.0-beta.1"
93
93
  },
94
94
  "bugs": {
95
95
  "email": "dialtone@dialpad.com"
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const iconNames = require("@dialpad/dialtone-icons/icons.js");
4
- function getIconNames() {
5
- return [void 0, ...iconNames];
6
- }
7
- exports.getIconNames = getIconNames;
8
- //# sourceMappingURL=storybook_utils.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storybook_utils.cjs","sources":["../../common/storybook_utils.js"],"sourcesContent":["import iconNames from '@dialpad/dialtone-icons/icons.js';\nimport illustrationNames from '@dialpad/dialtone-icons/illustrations.js';\n\n/**\n * Will use a Vue SFC to render the template rather than a template string.\n * This is useful for more complex components that are hard to work with and\n * get messy when rendered via a template string. Will pass args and argTypes\n * into the component, so it is able to be live edited with storybook controls addon.\n * @param component this will get the component name\n * @param defaultTemplate we will mount in this component\n * @param argsData storybook control args\n * @returns {component} the template component with props and args added.\n */\n\nexport function createRenderConfig (component, defaultTemplate, argsData) {\n return {\n components: { [component.name]: defaultTemplate },\n props: [...Object.keys(component.props ?? {}), ...Object.keys(argsData)],\n setup (props) {\n return { props };\n },\n template: `<${component.name} v-bind=\"props\" />`,\n };\n}\n\n/**\n * Gets the full list of icon component names from the dialtone package\n * @returns {string[]} icon component names\n */\nexport function getIconNames () {\n return [undefined, ...iconNames];\n}\n\n/**\n * Gets the full list of icon component names from the dialtone package\n * @returns {string[]} icon component names\n */\nexport function getIllustrationNames () {\n return [undefined, ...illustrationNames];\n}\n\nexport const generateTemplate = (component,\n { props = [], excludeProps = [], customProps = [], childTemplate } = {}) => {\n if (!component) {\n console.warn('Generate template: Please provide a component');\n return '';\n }\n\n const { name, props: componentProps } = component;\n const finalProps = props.length ? props : Object.keys(componentProps);\n const normalizedName = name.split(/(?=[A-Z])/).join('-').toLowerCase();\n\n const startFragment = `<${normalizedName}`;\n\n const propFragments = finalProps\n .filter(prop => !excludeProps.includes(prop))\n .map(prop => `:${prop}=\"${prop}\"`);\n\n const endFragment = childTemplate ? `>${childTemplate}</${normalizedName}>` : ' />';\n\n return [startFragment, ...propFragments, ...customProps, endFragment].join(' ');\n};\n\nexport default {\n generateTemplate,\n getIconNames,\n getIllustrationNames,\n createRenderConfig,\n};\n"],"names":[],"mappings":";;;AA6BO,SAAS,eAAgB;AAC9B,SAAO,CAAC,QAAW,GAAG,SAAS;AACjC;;"}
@@ -1,8 +0,0 @@
1
- import iconNames from "@dialpad/dialtone-icons/icons.js";
2
- function getIconNames() {
3
- return [void 0, ...iconNames];
4
- }
5
- export {
6
- getIconNames
7
- };
8
- //# sourceMappingURL=storybook_utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storybook_utils.js","sources":["../../common/storybook_utils.js"],"sourcesContent":["import iconNames from '@dialpad/dialtone-icons/icons.js';\nimport illustrationNames from '@dialpad/dialtone-icons/illustrations.js';\n\n/**\n * Will use a Vue SFC to render the template rather than a template string.\n * This is useful for more complex components that are hard to work with and\n * get messy when rendered via a template string. Will pass args and argTypes\n * into the component, so it is able to be live edited with storybook controls addon.\n * @param component this will get the component name\n * @param defaultTemplate we will mount in this component\n * @param argsData storybook control args\n * @returns {component} the template component with props and args added.\n */\n\nexport function createRenderConfig (component, defaultTemplate, argsData) {\n return {\n components: { [component.name]: defaultTemplate },\n props: [...Object.keys(component.props ?? {}), ...Object.keys(argsData)],\n setup (props) {\n return { props };\n },\n template: `<${component.name} v-bind=\"props\" />`,\n };\n}\n\n/**\n * Gets the full list of icon component names from the dialtone package\n * @returns {string[]} icon component names\n */\nexport function getIconNames () {\n return [undefined, ...iconNames];\n}\n\n/**\n * Gets the full list of icon component names from the dialtone package\n * @returns {string[]} icon component names\n */\nexport function getIllustrationNames () {\n return [undefined, ...illustrationNames];\n}\n\nexport const generateTemplate = (component,\n { props = [], excludeProps = [], customProps = [], childTemplate } = {}) => {\n if (!component) {\n console.warn('Generate template: Please provide a component');\n return '';\n }\n\n const { name, props: componentProps } = component;\n const finalProps = props.length ? props : Object.keys(componentProps);\n const normalizedName = name.split(/(?=[A-Z])/).join('-').toLowerCase();\n\n const startFragment = `<${normalizedName}`;\n\n const propFragments = finalProps\n .filter(prop => !excludeProps.includes(prop))\n .map(prop => `:${prop}=\"${prop}\"`);\n\n const endFragment = childTemplate ? `>${childTemplate}</${normalizedName}>` : ' />';\n\n return [startFragment, ...propFragments, ...customProps, endFragment].join(' ');\n};\n\nexport default {\n generateTemplate,\n getIconNames,\n getIllustrationNames,\n createRenderConfig,\n};\n"],"names":[],"mappings":";AA6BO,SAAS,eAAgB;AAC9B,SAAO,CAAC,QAAW,GAAG,SAAS;AACjC;"}
@@ -1,35 +0,0 @@
1
- /**
2
- * Will use a Vue SFC to render the template rather than a template string.
3
- * This is useful for more complex components that are hard to work with and
4
- * get messy when rendered via a template string. Will pass args and argTypes
5
- * into the component, so it is able to be live edited with storybook controls addon.
6
- * @param component this will get the component name
7
- * @param defaultTemplate we will mount in this component
8
- * @param argsData storybook control args
9
- * @returns {component} the template component with props and args added.
10
- */
11
- export function createRenderConfig(component: any, defaultTemplate: any, argsData: any): any;
12
- /**
13
- * Gets the full list of icon component names from the dialtone package
14
- * @returns {string[]} icon component names
15
- */
16
- export function getIconNames(): string[];
17
- /**
18
- * Gets the full list of icon component names from the dialtone package
19
- * @returns {string[]} icon component names
20
- */
21
- export function getIllustrationNames(): string[];
22
- export function generateTemplate(component: any, { props, excludeProps, customProps, childTemplate }?: {
23
- props?: any[] | undefined;
24
- excludeProps?: any[] | undefined;
25
- customProps?: any[] | undefined;
26
- childTemplate: any;
27
- }): string;
28
- declare namespace _default {
29
- export { generateTemplate };
30
- export { getIconNames };
31
- export { getIllustrationNames };
32
- export { createRenderConfig };
33
- }
34
- export default _default;
35
- //# sourceMappingURL=storybook_utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"storybook_utils.d.ts","sourceRoot":"","sources":["../../../common/storybook_utils.js"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AAEH,6FASC;AAED;;;GAGG;AACH,gCAFa,MAAM,EAAE,CAIpB;AAED;;;GAGG;AACH,wCAFa,MAAM,EAAE,CAIpB;AAEM;;;;;WAoBN"}