@dialpad/dialtone 9.127.0 → 9.127.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 (262) hide show
  1. package/dist/tokens/doc.json +18304 -18304
  2. package/dist/vue2/common/mixins/index.cjs +1 -1
  3. package/dist/vue2/common/mixins/index.js +2 -4
  4. package/dist/vue2/common/mixins/index.js.map +1 -1
  5. package/dist/vue2/component-documentation.json +1 -1
  6. package/dist/vue2/dialtone-vue.cjs +1 -1
  7. package/dist/vue2/dialtone-vue.js +345 -347
  8. package/dist/vue2/dialtone-vue.js.map +1 -1
  9. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs +1 -1
  10. package/dist/vue2/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
  11. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js +16 -12
  12. package/dist/vue2/lib/attachment-carousel/attachment-carousel.js.map +1 -1
  13. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs +1 -1
  14. package/dist/vue2/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
  15. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js +6 -6
  16. package/dist/vue2/lib/breadcrumbs/breadcrumbs.js.map +1 -1
  17. package/dist/vue2/lib/button/button.cjs +1 -1
  18. package/dist/vue2/lib/button/button.cjs.map +1 -1
  19. package/dist/vue2/lib/button/button.js +6 -6
  20. package/dist/vue2/lib/button/button.js.map +1 -1
  21. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
  22. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
  23. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +13 -13
  24. package/dist/vue2/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
  25. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
  26. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
  27. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js +9 -9
  28. package/dist/vue2/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
  29. package/dist/vue2/lib/chip/chip.cjs +1 -1
  30. package/dist/vue2/lib/chip/chip.cjs.map +1 -1
  31. package/dist/vue2/lib/chip/chip.js +7 -7
  32. package/dist/vue2/lib/chip/chip.js.map +1 -1
  33. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs +1 -1
  34. package/dist/vue2/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
  35. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js +13 -13
  36. package/dist/vue2/lib/contact-centers-row/contact-centers-row.js.map +1 -1
  37. package/dist/vue2/lib/datepicker/datepicker.cjs +1 -1
  38. package/dist/vue2/lib/datepicker/datepicker.cjs.map +1 -1
  39. package/dist/vue2/lib/datepicker/datepicker.js +19 -19
  40. package/dist/vue2/lib/datepicker/datepicker.js.map +1 -1
  41. package/dist/vue2/lib/datepicker/formatUtils.cjs +1 -1
  42. package/dist/vue2/lib/datepicker/formatUtils.cjs.map +1 -1
  43. package/dist/vue2/lib/datepicker/formatUtils.js +21 -20
  44. package/dist/vue2/lib/datepicker/formatUtils.js.map +1 -1
  45. package/dist/vue2/lib/editor/editor.cjs +1 -1
  46. package/dist/vue2/lib/editor/editor.cjs.map +1 -1
  47. package/dist/vue2/lib/editor/editor.js +17 -17
  48. package/dist/vue2/lib/editor/editor.js.map +1 -1
  49. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs +1 -1
  50. package/dist/vue2/lib/emoji-picker/emoji-picker.cjs.map +1 -1
  51. package/dist/vue2/lib/emoji-picker/emoji-picker.js +6 -6
  52. package/dist/vue2/lib/emoji-picker/emoji-picker.js.map +1 -1
  53. package/dist/vue2/lib/emoji-row/emoji-row.cjs +1 -1
  54. package/dist/vue2/lib/emoji-row/emoji-row.cjs.map +1 -1
  55. package/dist/vue2/lib/emoji-row/emoji-row.js +24 -20
  56. package/dist/vue2/lib/emoji-row/emoji-row.js.map +1 -1
  57. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs +1 -1
  58. package/dist/vue2/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
  59. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js +8 -8
  60. package/dist/vue2/lib/feed-item-pill/feed-item-pill.js.map +1 -1
  61. package/dist/vue2/lib/general-row/general-row.cjs +1 -1
  62. package/dist/vue2/lib/general-row/general-row.cjs.map +1 -1
  63. package/dist/vue2/lib/general-row/general-row.js +17 -17
  64. package/dist/vue2/lib/general-row/general-row.js.map +1 -1
  65. package/dist/vue2/lib/group-row/group-row.cjs +1 -1
  66. package/dist/vue2/lib/group-row/group-row.cjs.map +1 -1
  67. package/dist/vue2/lib/group-row/group-row.js +11 -7
  68. package/dist/vue2/lib/group-row/group-row.js.map +1 -1
  69. package/dist/vue2/lib/icon/icon.cjs +1 -1
  70. package/dist/vue2/lib/icon/icon.cjs.map +1 -1
  71. package/dist/vue2/lib/icon/icon.js +10 -6
  72. package/dist/vue2/lib/icon/icon.js.map +1 -1
  73. package/dist/vue2/lib/image-viewer/image-viewer.cjs +1 -1
  74. package/dist/vue2/lib/image-viewer/image-viewer.cjs.map +1 -1
  75. package/dist/vue2/lib/image-viewer/image-viewer.js +8 -7
  76. package/dist/vue2/lib/image-viewer/image-viewer.js.map +1 -1
  77. package/dist/vue2/lib/ivr-node/ivr-node.cjs +1 -1
  78. package/dist/vue2/lib/ivr-node/ivr-node.cjs.map +1 -1
  79. package/dist/vue2/lib/ivr-node/ivr-node.js +17 -17
  80. package/dist/vue2/lib/ivr-node/ivr-node.js.map +1 -1
  81. package/dist/vue2/lib/loader/loader.cjs +1 -1
  82. package/dist/vue2/lib/loader/loader.cjs.map +1 -1
  83. package/dist/vue2/lib/loader/loader.js +12 -8
  84. package/dist/vue2/lib/loader/loader.js.map +1 -1
  85. package/dist/vue2/lib/message-input/message-input-link.cjs +1 -1
  86. package/dist/vue2/lib/message-input/message-input-link.cjs.map +1 -1
  87. package/dist/vue2/lib/message-input/message-input-link.js +15 -15
  88. package/dist/vue2/lib/message-input/message-input-link.js.map +1 -1
  89. package/dist/vue2/lib/message-input/message-input-topbar.cjs +1 -1
  90. package/dist/vue2/lib/message-input/message-input-topbar.cjs.map +1 -1
  91. package/dist/vue2/lib/message-input/message-input-topbar.js +14 -10
  92. package/dist/vue2/lib/message-input/message-input-topbar.js.map +1 -1
  93. package/dist/vue2/lib/message-input/message-input.cjs +1 -1
  94. package/dist/vue2/lib/message-input/message-input.cjs.map +1 -1
  95. package/dist/vue2/lib/message-input/message-input.js +14 -10
  96. package/dist/vue2/lib/message-input/message-input.js.map +1 -1
  97. package/dist/vue2/lib/modal/modal.cjs +1 -1
  98. package/dist/vue2/lib/modal/modal.cjs.map +1 -1
  99. package/dist/vue2/lib/modal/modal.js +12 -11
  100. package/dist/vue2/lib/modal/modal.js.map +1 -1
  101. package/dist/vue2/lib/notice/notice-action.cjs +1 -1
  102. package/dist/vue2/lib/notice/notice-action.cjs.map +1 -1
  103. package/dist/vue2/lib/notice/notice-action.js +10 -6
  104. package/dist/vue2/lib/notice/notice-action.js.map +1 -1
  105. package/dist/vue2/lib/pagination/pagination.cjs +1 -1
  106. package/dist/vue2/lib/pagination/pagination.cjs.map +1 -1
  107. package/dist/vue2/lib/pagination/pagination.js +7 -7
  108. package/dist/vue2/lib/pagination/pagination.js.map +1 -1
  109. package/dist/vue2/lib/popover/popover-header-footer.cjs +1 -1
  110. package/dist/vue2/lib/popover/popover-header-footer.cjs.map +1 -1
  111. package/dist/vue2/lib/popover/popover-header-footer.js +13 -9
  112. package/dist/vue2/lib/popover/popover-header-footer.js.map +1 -1
  113. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs +1 -1
  114. package/dist/vue2/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
  115. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js +35 -35
  116. package/dist/vue2/lib/rich-text-editor/rich-text-editor.js.map +1 -1
  117. package/dist/vue2/lib/unread-pill/unread-pill.cjs +1 -1
  118. package/dist/vue2/lib/unread-pill/unread-pill.cjs.map +1 -1
  119. package/dist/vue2/lib/unread-pill/unread-pill.js +15 -11
  120. package/dist/vue2/lib/unread-pill/unread-pill.js.map +1 -1
  121. package/dist/vue2/localization/en-US.cjs +1 -1
  122. package/dist/vue2/localization/en-US.cjs.map +1 -1
  123. package/dist/vue2/localization/en-US.js +1 -1
  124. package/dist/vue2/localization/en-US.js.map +1 -1
  125. package/dist/vue2/localization/index.cjs +1 -1
  126. package/dist/vue2/localization/index.cjs.map +1 -1
  127. package/dist/vue2/localization/index.js +59 -53
  128. package/dist/vue2/localization/index.js.map +1 -1
  129. package/dist/vue2/shared/sr_only_close_button.cjs +1 -1
  130. package/dist/vue2/shared/sr_only_close_button.cjs.map +1 -1
  131. package/dist/vue2/shared/sr_only_close_button.js +14 -10
  132. package/dist/vue2/shared/sr_only_close_button.js.map +1 -1
  133. package/dist/vue2/types/common/mixins/index.d.ts +0 -1
  134. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts +5 -8
  135. package/dist/vue2/types/common/sr_only_close_button.vue.d.ts.map +1 -1
  136. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts +3 -5
  137. package/dist/vue2/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +1 -1
  138. package/dist/vue2/types/components/button/button.vue.d.ts +4 -6
  139. package/dist/vue2/types/components/button/button.vue.d.ts.map +1 -1
  140. package/dist/vue2/types/components/chip/chip.vue.d.ts +6 -8
  141. package/dist/vue2/types/components/chip/chip.vue.d.ts.map +1 -1
  142. package/dist/vue2/types/components/datepicker/formatUtils.d.ts.map +1 -1
  143. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts +3 -5
  144. package/dist/vue2/types/components/datepicker/modules/calendar.vue.d.ts.map +1 -1
  145. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts +3 -5
  146. package/dist/vue2/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
  147. package/dist/vue2/types/components/emoji_picker/emoji_picker.vue.d.ts +1 -5
  148. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts +2 -4
  149. package/dist/vue2/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
  150. package/dist/vue2/types/components/loader/loader.vue.d.ts +5 -6
  151. package/dist/vue2/types/components/loader/loader.vue.d.ts.map +1 -1
  152. package/dist/vue2/types/components/modal/modal.vue.d.ts +2 -4
  153. package/dist/vue2/types/components/modal/modal.vue.d.ts.map +1 -1
  154. package/dist/vue2/types/components/notice/notice_action.vue.d.ts +5 -6
  155. package/dist/vue2/types/components/notice/notice_action.vue.d.ts.map +1 -1
  156. package/dist/vue2/types/components/pagination/pagination.vue.d.ts +4 -6
  157. package/dist/vue2/types/components/pagination/pagination.vue.d.ts.map +1 -1
  158. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts +5 -6
  159. package/dist/vue2/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
  160. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts +5 -7
  161. package/dist/vue2/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  162. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +4 -6
  163. package/dist/vue2/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
  164. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +4 -6
  165. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
  166. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +4 -6
  167. package/dist/vue2/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
  168. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +3 -5
  169. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
  170. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +5 -6
  171. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
  172. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +14 -16
  173. package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
  174. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +5 -6
  175. package/dist/vue2/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
  176. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +6 -8
  177. package/dist/vue2/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
  178. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +5 -6
  179. package/dist/vue2/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
  180. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +5 -7
  181. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  182. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +3 -5
  183. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
  184. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +5 -6
  185. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
  186. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +5 -7
  187. package/dist/vue2/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
  188. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts +17 -19
  189. package/dist/vue2/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
  190. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts +8 -9
  191. package/dist/vue2/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
  192. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts +5 -6
  193. package/dist/vue2/types/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
  194. package/dist/vue3/lib/icon/icon.cjs +1 -1
  195. package/dist/vue3/lib/icon/icon.cjs.map +1 -1
  196. package/dist/vue3/lib/icon/icon.js +4 -5
  197. package/dist/vue3/lib/icon/icon.js.map +1 -1
  198. package/dist/vue3/localization/en-US.cjs +1 -1
  199. package/dist/vue3/localization/en-US.cjs.map +1 -1
  200. package/dist/vue3/localization/en-US.js +1 -1
  201. package/dist/vue3/localization/en-US.js.map +1 -1
  202. package/dist/vue3/types/components/icon/icon.vue.d.ts +1 -3
  203. package/package.json +5 -6
  204. package/dist/css/fonts/SeasonMix-Bold.woff2 +0 -0
  205. package/dist/css/fonts/SeasonMix-Regular.woff2 +0 -0
  206. package/dist/css/fonts/SeasonMix-SemiBold.woff2 +0 -0
  207. package/dist/css/js/dialtone_health_check/deprecated_icons.cjs +0 -105
  208. package/dist/css/js/dialtone_health_check/index.cjs +0 -82
  209. package/dist/css/js/dialtone_health_check/non_dialtone_properties.cjs +0 -44
  210. package/dist/css/js/dialtone_migration_helper/configs/box-shadows.mjs +0 -19
  211. package/dist/css/js/dialtone_migration_helper/configs/colors.mjs +0 -69
  212. package/dist/css/js/dialtone_migration_helper/configs/fonts.mjs +0 -49
  213. package/dist/css/js/dialtone_migration_helper/configs/size-and-space.mjs +0 -124
  214. package/dist/css/js/dialtone_migration_helper/helpers.mjs +0 -212
  215. package/dist/css/js/dialtone_migration_helper/index.mjs +0 -135
  216. package/dist/css/svg/spot/blank-space.svg +0 -1
  217. package/dist/css/svg/spot/browser-list-callout.svg +0 -1
  218. package/dist/css/svg/spot/browser-table-graph.svg +0 -1
  219. package/dist/css/svg/spot/female-laptop-typing.svg +0 -1
  220. package/dist/css/svg/spot/file-upload.svg +0 -1
  221. package/dist/css/svg/spot/male-laptop-typing.svg +0 -1
  222. package/dist/css/svg/spot/mind.svg +0 -1
  223. package/dist/css/svg/spot/playlist.svg +0 -1
  224. package/dist/css/svg/spot/publish.svg +0 -1
  225. package/dist/css/svg/spot/vector-vortex.svg +0 -1
  226. package/dist/css/svg/spot/wireless-screenshare.svg +0 -1
  227. package/dist/css/tokens/tokens-base-dark.css +0 -1802
  228. package/dist/css/tokens/tokens-base-deca-dark.css +0 -1802
  229. package/dist/css/tokens/tokens-base-deca-light.css +0 -1562
  230. package/dist/css/tokens/tokens-base-light.css +0 -1562
  231. package/dist/css/tokens/tokens-debug-base.css +0 -1562
  232. package/dist/css/tokens/tokens-debug-dp.css +0 -2496
  233. package/dist/css/tokens/tokens-deca-dark.css +0 -2496
  234. package/dist/css/tokens/tokens-deca-light.css +0 -2496
  235. package/dist/css/tokens/tokens-dp-dark.css +0 -2496
  236. package/dist/css/tokens/tokens-dp-light.css +0 -2496
  237. package/dist/css/tokens/tokens-expressive-dark.css +0 -2457
  238. package/dist/css/tokens/tokens-expressive-light.css +0 -2457
  239. package/dist/css/tokens/tokens-expressive-sm-dark.css +0 -2457
  240. package/dist/css/tokens/tokens-expressive-sm-light.css +0 -2457
  241. package/dist/css/tokens/tokens-tmo-dark.css +0 -2496
  242. package/dist/css/tokens/tokens-tmo-light.css +0 -2496
  243. package/dist/tokens/less/tokens-base-dark.less +0 -604
  244. package/dist/tokens/less/tokens-base-deca-dark.less +0 -604
  245. package/dist/tokens/less/tokens-base-deca-light.less +0 -484
  246. package/dist/tokens/less/tokens-base-light.less +0 -484
  247. package/dist/tokens/less/tokens-deca-dark.less +0 -574
  248. package/dist/tokens/less/tokens-deca-light.less +0 -574
  249. package/dist/tokens/less/tokens-dp-dark.less +0 -574
  250. package/dist/tokens/less/tokens-dp-light.less +0 -574
  251. package/dist/tokens/less/tokens-expressive-dark.less +0 -540
  252. package/dist/tokens/less/tokens-expressive-light.less +0 -540
  253. package/dist/tokens/less/tokens-expressive-sm-dark.less +0 -540
  254. package/dist/tokens/less/tokens-expressive-sm-light.less +0 -540
  255. package/dist/tokens/less/tokens-tmo-dark.less +0 -574
  256. package/dist/tokens/less/tokens-tmo-light.less +0 -574
  257. package/dist/vue2/common/mixins/localization.cjs +0 -2
  258. package/dist/vue2/common/mixins/localization.cjs.map +0 -1
  259. package/dist/vue2/common/mixins/localization.js +0 -10
  260. package/dist/vue2/common/mixins/localization.js.map +0 -1
  261. package/dist/vue2/types/common/mixins/localization.d.ts +0 -8
  262. package/dist/vue2/types/common/mixins/localization.d.ts.map +0 -1
@@ -1,105 +0,0 @@
1
- /* eslint-disable complexity */
2
- const fs = require('fs');
3
- const iconRegex = /.*@dialpad\/dialtone\/(vue\/.*|.+\.svg)/gim;
4
- const brandIconsList = [
5
- 'IconAirtable',
6
- 'IconAmex',
7
- 'IconAppStoreBadge',
8
- 'IconApple',
9
- 'IconAsana',
10
- 'IconBrandDialpadMeetings',
11
- 'IconBrandDialpad',
12
- 'IconBullhorn',
13
- 'IconClockify',
14
- 'IconCopperCrm',
15
- 'IconDialpadAi',
16
- 'IconDinersClub',
17
- 'IconDiscover',
18
- 'IconEvernote',
19
- 'IconFacebook',
20
- 'IconFreshsalesCrm',
21
- 'IconFront',
22
- 'IconGmail',
23
- 'IconGoogleBusinessMessaging',
24
- 'IconGoogleCalendar',
25
- 'IconGoogleDocs',
26
- 'IconGoogleDrive',
27
- 'IconGoogleGlyph',
28
- 'IconGreenhouse',
29
- 'IconHighfive',
30
- 'IconHubspot',
31
- 'IconInstagram',
32
- 'IconIntercom',
33
- 'IconJcb',
34
- 'IconJiraServiceDesk',
35
- 'IconLineMessenger',
36
- 'IconLinkedin',
37
- 'IconMaestro',
38
- 'IconMastercard',
39
- 'IconMessenger',
40
- 'IconMicrosoftDynamics365',
41
- 'IconMicrosoftTeams',
42
- 'IconMicrosoft',
43
- 'IconMiro',
44
- 'IconMondayCom',
45
- 'IconOffice365',
46
- 'IconPipedrive',
47
- 'IconPlayStoreBadge',
48
- 'IconSalesforceGlyph',
49
- 'IconSalesforceLogo',
50
- 'IconServicenow',
51
- 'IconSlack',
52
- 'IconSnapchat',
53
- 'IconTelegram',
54
- 'IconTiktok',
55
- 'IconToggl',
56
- 'IconTwitter',
57
- 'IconUnionPay',
58
- 'IconViber',
59
- 'IconVisa',
60
- 'IconWeChat',
61
- 'IconWhatsapp',
62
- 'IconZendesk',
63
- 'IconZohoCrm',
64
- 'IconZohoDesk',
65
- 'IconZoho',
66
- 'IconZoom',
67
- ];
68
- let totalIconsCount = 0;
69
-
70
- function isBrandIcon (source) {
71
- const iconName = source.split('/').pop().slice(0, -2);
72
- return brandIconsList.includes(iconName);
73
- }
74
- const main = (files, noLineNumbers) => {
75
- try {
76
- for (const file of files) {
77
- const data = fs.readFileSync(file, 'utf8');
78
- const lines = data.split('\n');
79
- let iconCount = 0;
80
-
81
- for (const [lineNumber, line] of lines.entries()) {
82
- const iconMatch = iconRegex.exec(line);
83
- // If import doesn't match or is a brand or spot icon, continue
84
- if (!iconMatch ||
85
- iconMatch.input.includes('/brand/') ||
86
- iconMatch.input.includes('/spot/') ||
87
- isBrandIcon(iconMatch.input)) continue;
88
-
89
- if (!noLineNumbers) {
90
- console.log(`\tdeprecated icon usage found on line ${lineNumber + 1}: ${iconMatch.input}`);
91
- }
92
- iconCount++;
93
- totalIconsCount++;
94
- }
95
- if (iconCount > 0) {
96
- console.log(`${file}: ${iconCount} Deprecated icons found`);
97
- }
98
- }
99
- console.log(`Found ${totalIconsCount} total deprecated icons usage in this directory.`);
100
- } catch (err) {
101
- console.error(err);
102
- }
103
- };
104
-
105
- module.exports = main;
@@ -1,82 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /* Will search the files in the provided directory for any properties that are not set to dialtone values.
4
- It does this by simply checking whether the property is set to a less @variable or CSS var such as var(--val).
5
- It does not compare to an actual list of dialtone token values so it is not perfect, and sometimes gives false
6
- positives. This will however give a pretty good idea of where dialtone values aren't being used that should.
7
-
8
- Searches some key properties by default as shown in the defaultSearch array below. You are however not limited to
9
- this, you can make this application search any css property you wish. See the below options or run this application
10
- with the -h switch for more details. */
11
-
12
- const path = require('path');
13
- const fs = require('fs');
14
- const { exit } = require('process');
15
- const { docopt } = require('docopt');
16
- const nonDialtoneProperties = require('./non_dialtone_properties');
17
- const deprecatedIcons = require('./deprecated_icons');
18
-
19
- const doc = `
20
- Usage:
21
- ./dialtone_health_check <path> [options] (--icons|--properties) [<properties>]
22
-
23
- Examples:
24
- ./dialtone_health_check <path> --ext=vue,js --no-line-numbers --icons
25
- ./dialtone_health_check <path> --ext=vue,js --properties color,background-color
26
- ./dialtone_health_check <path> --ext=vue,js --icons --properties color,background-color
27
-
28
- Arguments:
29
- <properties> CSS Properties to search. Default properties if list is not provided:
30
- color,background-color,border-color,font-family
31
- <path> The directory to recursively search all files in.
32
-
33
- Options:
34
- -p --properties Verify the usage of non-dialtone properties.
35
- -i --icons Verify the status of icons migration.
36
- -h --help Show this screen.
37
- --ext=<ext> Filter by file extension. comma separate to filter multiple. ex: js,vue
38
- --no-line-numbers Only output files and their total count, do not output individual instances and
39
- their line number.
40
- `;
41
- const options = docopt(doc);
42
- const extensionFilters = options['--ext']?.split(',') ?? [''];
43
- const searchProperties = options['--properties'];
44
- const properties = options['<properties>']?.split(',');
45
- const noLineNumbers = options['--no-line-numbers'];
46
- const searchIcons = options['--icons'];
47
- const files = [];
48
-
49
- function fromDir (startPath, fileExtension) {
50
- if (!fs.existsSync(startPath)) {
51
- console.error('Directory not found');
52
- exit(1);
53
- }
54
-
55
- const results = [];
56
- const files = fs.readdirSync(startPath);
57
- for (let i = 0; i < files.length; i++) {
58
- const filename = path.join(startPath, files[i]);
59
- const stat = fs.lstatSync(filename);
60
- if (stat.isDirectory()) {
61
- results.push(...fromDir(filename, fileExtension)); // recurse
62
- } else if (filename.endsWith(fileExtension)) {
63
- results.push(filename);
64
- }
65
- }
66
- return results;
67
- }
68
-
69
- extensionFilters.forEach(extension => {
70
- files.push(...fromDir(options['<path>'], extension));
71
- });
72
- if (files.length <= 0) {
73
- console.error('No files found in directory');
74
- exit(1);
75
- }
76
- if (!searchProperties && !searchIcons) {
77
- console.error('You must set at least one flag [--icons|--properties]');
78
- exit(1);
79
- }
80
-
81
- searchProperties && nonDialtoneProperties(properties, files, noLineNumbers);
82
- searchIcons && deprecatedIcons(files, noLineNumbers);
@@ -1,44 +0,0 @@
1
- const fs = require('fs');
2
- const defaultSearch = [
3
- 'color',
4
- 'background-color',
5
- 'border-color',
6
- 'font-family',
7
- ];
8
- let totalPropertiesCount = 0;
9
-
10
- const main = (props = defaultSearch, files, noLineNumbers) => {
11
- const regex = props.map(property => {
12
- return new RegExp(`^\\s*${property}:\\s(?:(?!var\\(--))(?:(?!@)).*`, 'gm');
13
- });
14
- try {
15
- for (const file of files) {
16
- const data = fs.readFileSync(file, 'utf8');
17
- const lines = data.split('\n');
18
- let propertiesMatch;
19
- let propertiesCount = 0;
20
-
21
- for (const [lineNumber, line] of lines.entries()) {
22
- regex.forEach(re => {
23
- // eslint-disable-next-line no-cond-assign
24
- while (propertiesMatch = re.exec(line)) {
25
- if (!noLineNumbers) {
26
- console.log(`\tnon-dialtone property found on line ${lineNumber + 1}: ${propertiesMatch}`);
27
- }
28
- propertiesCount++;
29
- totalPropertiesCount++;
30
- }
31
- });
32
- }
33
- if (propertiesCount > 0) {
34
- console.log(`${file}: ${propertiesCount}`);
35
- }
36
- }
37
- console.log(`Found ${totalPropertiesCount} total ${props.join(', ')} \
38
- CSS properties that are not dialtone in this directory.`);
39
- } catch (err) {
40
- console.error(err);
41
- }
42
- };
43
-
44
- module.exports = main;
@@ -1,19 +0,0 @@
1
- export default {
2
- description:
3
- 'Updates dialtone 7 variables to dialtone 8 design tokens.\n' +
4
- '- Replaces var(--bs-{kind}) with var(--dt-shadow-{kind})\n\t' +
5
- 'eg. var(--bs-sm) with var(--dt-shadow-small)\n' +
6
- '- Replaces @bs-{kind} with var(--dt-shadow-{kind})\n\t' +
7
- 'eg. @bs-card with var(--dt-shadow-card)\n',
8
- patterns: ['**/*.{css,less,scss,sass,styl,html,vue,md}'],
9
- expressions: [
10
- // CSS variables
11
- { from: /@bs-sm|var\(--bs-sm\)/gi, to: 'var(--dt-shadow-small)' },
12
- { from: /@bs-md|var\(--bs-md\)/gi, to: 'var(--dt-shadow-medium)' },
13
- { from: /@bs-lg|var\(--bs-lg\)/gi, to: 'var(--dt-shadow-large)' },
14
- { from: /@bs-xl|var\(--bs-xl\)/gi, to: 'var(--dt-shadow-extra-large)' },
15
- { from: /@bs-card|var\(--bs-card\)/gi, to: 'var(--dt-shadow-card)' },
16
- { from: /@bs-focus-ring|var\(--bs-focus-ring\)/gi, to: 'var(--dt-shadow-focus)' },
17
- { from: /@bs-focus-ring-inset|var\(--bs-focus-ring-inset\)/gi, to: 'var(--dt-shadow-focus-inset)' },
18
- ],
19
- };
@@ -1,69 +0,0 @@
1
- export default {
2
- description:
3
- 'Updates dialtone 7 variables to dialtone 8 design tokens.\n' +
4
- '- Replaces var(--{color}-{stop}) with var(--dt-color-{color}-{stop})\n\t' +
5
- 'eg. var(--black-200) with var(--dt-color-black-200)\n' +
6
- '- Replaces @{color}-{stop} with var(--dt-color-{color}-{stop})\n\t' +
7
- 'eg. @red-100 with var(--dt-color-red-100)\n' +
8
- '- Replaces var(--fc-{kind}) with var(--dt-color-foreground-{kind})\n\t' +
9
- 'eg. var(--fc-success-inverted) with var(--dt-color-foreground-success-inverted)\n',
10
- patterns: ['**/*.{css,less,scss,sass,styl,html,vue,md}'],
11
- expressions: [
12
- // ------------------------------------------------------------ //
13
- // Colors //
14
- // ------------------------------------------------------------ //
15
- // LESS variables
16
- {
17
- from: /@(black|purple|magenta|gold|green|red|blue|tan)(-[1-9]00)/g,
18
- to: 'var(--dt-color-$1$2)',
19
- },
20
- // Neutral LESS variables
21
- {
22
- from: /@(white|black)/g,
23
- to: 'var(--dt-color-neutral-$1)',
24
- },
25
- // CSS variables
26
- {
27
- from: /var\(--(black|purple|orange|magenta|gold|green|red|blue|tan)(-[1-9]00)(-(h|s|l|hsl))?\)/g,
28
- to: 'var(--dt-color-$1$2$3)',
29
- },
30
- // Neutral CSS variables
31
- {
32
- from: /var\(--(white|black)(-(h|s|l|hsl))?\)/g,
33
- to: 'var(--dt-color-neutral-$1$2)',
34
- },
35
- // Background colors
36
- {
37
- // eslint-disable-next-line max-len
38
- from: /var\(--bgc-(primary|secondary|moderate|bold|strong|contrast|critical|success|warning|info)(-(subtle|opaque|subtle-opaque|strong))?\)/g,
39
- to: 'var(--dt-color-surface-$1$2)',
40
- },
41
- // Special Background color cases
42
- {
43
- // eslint-disable-next-line max-len
44
- from: /var\(--bgc-(error|danger)(-(subtle|opaque|subtle-opaque|strong))?\)/g,
45
- to: 'var(--dt-color-surface-critical$2)',
46
- },
47
- // Border colors
48
- {
49
- // eslint-disable-next-line max-len
50
- from: /var\(--bc-(default|subtle|moderate|bold|focus|critical|success|warning|brand|ai|accent)(-(inverted|subtle|strong|subtle-inverted|strong-inverted))?\)/g,
51
- to: 'var(--dt-color-border-$1$2)',
52
- },
53
- // Font colors
54
- {
55
- // eslint-disable-next-line max-len
56
- from: /var\(--fc-(primary|secondary|tertiary|muted|placeholder|disabled|critical|success|warning)(-(strong|inverted|strong-inverted))?\)/g,
57
- to: 'var(--dt-color-foreground-$1$2)',
58
- },
59
- // Special Font color cases
60
- {
61
- from: /var\(--fc-(error|danger)(-(strong|inverted|strong-inverted))?\)/g,
62
- to: 'var(--dt-color-foreground-critical$2)',
63
- },
64
- {
65
- from: /d-(fc|bc)-white/g,
66
- to: 'd-$1-neutral-white',
67
- },
68
- ],
69
- };
@@ -1,49 +0,0 @@
1
- export default {
2
- description:
3
- 'Updates dialtone 7 variables to dialtone 8 design tokens.\n' +
4
- '- Replaces var(--fs-{stop}) with var(--dt-font-size-{stop})\n\t' +
5
- 'eg. var(--fs-200) with var(--dt-font-size-200)\n' +
6
- '- Replaces @fs-{stop} with var(--dt-font-size-{stop})\n\t' +
7
- 'eg. @fs-100-tv with var(--dt-font-size-100-tv)\n' +
8
- '- Replaces var(--fw-{kind}) with var(--dt-font-weight-{kind})\n\t' +
9
- 'eg. var(--fw-medium) with var(--dt-font-weight-medium)\n' +
10
- '- Replaces @fw-{kind} with var(--dt-font-weight-{kind})\n\t' +
11
- 'eg. @fw-semibold with var(--dt-font-weight-semi-bold)\n' +
12
- '- Replaces var(--lh-{stop}) with var(--dt-font-line-height-{stop})\n\t' +
13
- 'eg. var(--lh-200) with var(--dt-font-line-height-200)\n' +
14
- '- Replaces @lh-{stop} with var(--dt-font-line-height-{stop})\n\t' +
15
- 'eg. @lh-100 with var(--dt-font-line-height-100)\n' +
16
- '- Replaces var(--ff-{kind}) with var(--dt-font-family-{kind})\n\t' +
17
- 'eg. var(--ff-mono) with var(--dt-font-family-mono)',
18
- patterns: ['**/*.{css,less,scss,sass,styl,html,vue,md,json}'],
19
- expressions: [
20
- // ------------------------------------------------------------ //
21
- // Fonts //
22
- // ------------------------------------------------------------ //
23
- // Size variables
24
- {
25
- from: /@fs(-[0-9]+)(-(mobile|tc8|tv))?|var\(--fs(-[0-9]+)(-(mobile|tc8|tv))?\)/g,
26
- to: 'var(--dt-font-size$1$2$4$5)',
27
- },
28
- // Weight variables
29
- {
30
- from: /@fw-(normal|medium|bold)|var\(--fw-(normal|medium|bold)\)/g,
31
- to: 'var(--dt-font-weight-$1$2)',
32
- },
33
- // Special weight case
34
- {
35
- from: /@fw-semibold|var\(--fw-semibold\)/g,
36
- to: 'var(--dt-font-weight-semi-bold)',
37
- },
38
- // Line heights
39
- {
40
- from: /@lh(-[0-9]+)|var\(--lh(-[0-9]+)\)/g,
41
- to: 'var(--dt-font-line-height$1$2)',
42
- },
43
- // Font family
44
- {
45
- from: /var\(--ff-(mono)\)/g,
46
- to: 'var(--dt-font-family-$1)',
47
- },
48
- ],
49
- };
@@ -1,124 +0,0 @@
1
- export default {
2
- description:
3
- 'Updates dialtone 7 variables to dialtone 8 design tokens.\n' +
4
- '- Replaces var(--{size}-{stop}) with var(--dt-size-{stop})\n\t' +
5
- 'eg. var(--size-200) with var(--dt-size-200)\n' +
6
- '- Replaces @{size}{stop} with var(--dt-size-{stop})\n\t' +
7
- 'eg. @size4 with var(--dt-size-300)\n' +
8
- '- Replaces @icon{size} with var(--dt-icon-size-{stop})\n\t' +
9
- 'eg. @icon12 with var(--dt-icon-size-100)\n' +
10
- '- Replaces var(--su{stop}) with var(--dt-size-{stop})\n\t' +
11
- 'eg. var(--su0) with var(--dt-size-0)\n' +
12
- '- Replaces @su{stop} with var(--dt-size-{stop})\n\t' +
13
- 'eg. @su8 with var(--dt-size-400)\n' +
14
- '- Replaces var(--sun{stop}) with var(--dt-size-{stop}-negative)\n\t' +
15
- 'eg. var(--sun1) with var(--dt-size-100-negative)\n' +
16
- '- Replaces var(--br{stop}) with var(--dt-size-radius-{stop})\n\t' +
17
- 'eg. var(--br4) with var(--dt-size-radius-300)\n' +
18
- '- Replaces @br{stop} with var(--dt-size-radius-{stop})\n\t' +
19
- 'eg. @br-pill with var(--dt-size-radius-pill)\n',
20
- patterns: ['**/*.{css,less,scss,sass,styl,html,vue,md}'],
21
- expressions: [
22
- // ------------------------------------------------------------ //
23
- // Size and Space //
24
- // ------------------------------------------------------------ //
25
- {
26
- from: /var\(--(size|space)(-[0-9]+)(-negative)?\)/gi,
27
- to: 'var(--dt-$1$2$3)',
28
- },
29
-
30
- // Size LESS variables
31
- { from: /@size0\b|var\(--size0\)/g, to: 'var(--dt-size-0)' },
32
- { from: /@size1\b|var\(--size1\)/g, to: 'var(--dt-size-100)' },
33
- { from: /@size2\b|var\(--size2\)/g, to: 'var(--dt-size-200)' },
34
- { from: /@size4\b|var\(--size4\)/g, to: 'var(--dt-size-300)' },
35
- { from: /@size6\b|var\(--size6\)/g, to: 'var(--dt-size-350)' },
36
- { from: /@size8\b|var\(--size8\)/g, to: 'var(--dt-size-400)' },
37
- { from: /@size12\b|var\(--size12\)/g, to: 'var(--dt-size-450)' },
38
- { from: /@size16\b|var\(--size16\)/g, to: 'var(--dt-size-500)' },
39
- { from: /@size20\b|var\(--size20\)/g, to: 'var(--dt-size-525)' },
40
- { from: /@size24\b|var\(--size24\)/g, to: 'var(--dt-size-550)' },
41
- { from: /@size32\b|var\(--size32\)/g, to: 'var(--dt-size-600)' },
42
- { from: /@size42\b|var\(--size42\)/g, to: 'var(--dt-size-625)' },
43
- { from: /@size48\b|var\(--size48\)/g, to: 'var(--dt-size-650)' },
44
- { from: /@size64\b|var\(--size64\)/g, to: 'var(--dt-size-700)' },
45
- { from: /@size72\b|var\(--size72\)/g, to: 'var(--dt-size-720)' },
46
- { from: /@size84\b|var\(--size84\)/g, to: 'var(--dt-size-730)' },
47
- { from: /@size96\b|var\(--size96\)/g, to: 'var(--dt-size-750)' },
48
- { from: /@size102\b|var\(--size102\)/g, to: 'var(--dt-size-760)' },
49
- { from: /@size114\b|var\(--size114\)/g, to: 'var(--dt-size-775)' },
50
- { from: /@size128\b|var\(--size128\)/g, to: 'var(--dt-size-800)' },
51
- { from: /@size164\b|var\(--size164\)/g, to: 'var(--dt-size-825)' },
52
- { from: /@size216\b|var\(--size216\)/g, to: 'var(--dt-size-875)' },
53
- { from: /@size264\b|var\(--size264\)/g, to: 'var(--dt-size-905)' },
54
- { from: /@size332\b|var\(--size332\)/g, to: 'var(--dt-size-925)' },
55
- { from: /@size464\b|var\(--size464\)/g, to: 'var(--dt-size-975)' },
56
- { from: /@size512\b|var\(--size512\)/g, to: 'var(--dt-size-1000)' },
57
- { from: /@size628\b|var\(--size628\)/g, to: 'var(--dt-size-1020)' },
58
- { from: /@size764\b|var\(--size764\)/g, to: 'var(--dt-size-1040)' },
59
- { from: /@size828\b|var\(--size828\)/g, to: 'var(--dt-size-1060)' },
60
- { from: /@size912\b|var\(--size912\)/g, to: 'var(--dt-size-1080)' },
61
- { from: /@size1024\b|var\(--size1024\)/g, to: 'var(--dt-size-1100)' },
62
- { from: /@size1140\b|var\(--size1140\)/g, to: 'var(--dt-size-1115)' },
63
- { from: /@size1268\b|var\(--size1268\)/g, to: 'var(--dt-size-1120)' },
64
- { from: /@size1340\b|var\(--size1340\)/g, to: 'var(--dt-size-1130)' },
65
-
66
- // Icon variables
67
- { from: /@icon12\b|var\(--icon12\)/g, to: 'var(--dt-icon-size-100)' },
68
- { from: /@icon14\b|var\(--icon14\)/g, to: 'var(--dt-icon-size-200)' },
69
- { from: /@icon16\b|var\(--icon16\)/g, to: 'var(--dt-size-500)' },
70
- { from: /@icon18\b|var\(--icon18\)/g, to: 'var(--dt-icon-size-300)' },
71
- { from: /@icon20\b|var\(--icon20\)/g, to: 'var(--dt-icon-size-400)' },
72
- { from: /@icon24\b|var\(--icon24\)/g, to: 'var(--dt-icon-size-500)' },
73
- { from: /@icon32\b|var\(--icon32\)/g, to: 'var(--dt-icon-size-600)' },
74
- { from: /@icon48\b|var\(--icon48\)/g, to: 'var(--dt-size-650)' },
75
- { from: /@icon64\b|var\(--icon64\)/g, to: 'var(--dt-size-700)' },
76
- // Variable prefixed with negative, must go before positive spacing
77
- { from: /-@su1\b|-var\(--su1\)|[^-]var\(--sun1\)/g, to: 'var(--dt-space-100-negative)' },
78
- { from: /-@su2\b|-var\(--su2\)|[^-]var\(--sun2\)/g, to: 'var(--dt-space-200-negative)' },
79
- { from: /-@su4\b|-var\(--su4\)|[^-]var\(--sun4\)/g, to: 'var(--dt-space-300-negative)' },
80
- { from: /-@su6\b|-var\(--su6\)|[^-]var\(--sun6\)/g, to: 'var(--dt-space-350-negative)' },
81
- { from: /-@su8\b|-var\(--su8\)|[^-]var\(--sun8\)/g, to: 'var(--dt-space-400-negative)' },
82
- { from: /-@su12\b|-var\(--su12\)|[^-]var\(--sun12\)/g, to: 'var(--dt-space-450-negative)' },
83
- { from: /-@su16\b|-var\(--su16\)|[^-]var\(--sun16\)/g, to: 'var(--dt-space-500-negative)' },
84
- { from: /-@su24\b|-var\(--su24\)|[^-]var\(--sun24\)/g, to: 'var(--dt-space-550-negative)' },
85
- { from: /-@su32\b|-var\(--su32\)|[^-]var\(--sun32\)/g, to: 'var(--dt-space-600-negative)' },
86
- { from: /-@su48\b|-var\(--su48\)|[^-]var\(--sun48\)/g, to: 'var(--dt-space-650-negative)' },
87
- { from: /-@su64\b|-var\(--su64\)|[^-]var\(--sun64\)/g, to: 'var(--dt-space-700-negative)' },
88
- { from: /-@su72\b|-var\(--su72\)|[^-]var\(--sun72\)/g, to: 'var(--dt-space-720-negative)' },
89
- { from: /-@su84\b|-var\(--su84\)|[^-]var\(--sun84\)/g, to: 'var(--dt-space-730-negative)' },
90
- { from: /-@su96\b|-var\(--su96\)|[^-]var\(--sun96\)/g, to: 'var(--dt-space-750-negative)' },
91
- { from: /-@su102\b|-var\(--su102\)|[^-]var\(--sun102\)/g, to: 'var(--dt-space-760-negative)' },
92
- { from: /-@su114\b|-var\(--su114\)|[^-]var\(--sun114\)/g, to: 'var(--dt-space-775-negative)' },
93
- { from: /-@su128\b|-var\(--su128\)|[^-]var\(--sun128\)/g, to: 'var(--dt-space-800-negative)' },
94
- // Positive spacing
95
- { from: /@su0\b|var\(--su0\)/g, to: 'var(--dt-space-0)' },
96
- { from: /@su1\b|var\(--su1\)/g, to: 'var(--dt-space-100)' },
97
- { from: /@su2\b|var\(--su2\)/g, to: 'var(--dt-space-200)' },
98
- { from: /@su4\b|var\(--su4\)/g, to: 'var(--dt-space-300)' },
99
- { from: /@su6\b|var\(--su6\)/g, to: 'var(--dt-space-350)' },
100
- { from: /@su8\b|var\(--su8\)/g, to: 'var(--dt-space-400)' },
101
- { from: /@su12\b|var\(--su12\)/g, to: 'var(--dt-space-450)' },
102
- { from: /@su16\b|var\(--su16\)/g, to: 'var(--dt-space-500)' },
103
- { from: /@su24\b|var\(--su24\)/g, to: 'var(--dt-space-550)' },
104
- { from: /@su32\b|var\(--su32\)/g, to: 'var(--dt-space-600)' },
105
- { from: /@su48\b|var\(--su48\)/g, to: 'var(--dt-space-650)' },
106
- { from: /@su64\b|var\(--su64\)/g, to: 'var(--dt-space-700)' },
107
- { from: /@su72\b|var\(--su72\)/g, to: 'var(--dt-space-720)' },
108
- { from: /@su84\b|var\(--su84\)/g, to: 'var(--dt-space-730)' },
109
- { from: /@su96\b|var\(--su96\)/g, to: 'var(--dt-space-750)' },
110
- { from: /@su102\b|var\(--su102\)/g, to: 'var(--dt-space-760)' },
111
- { from: /@su114\b|var\(--su114\)/g, to: 'var(--dt-space-775)' },
112
- { from: /@su128\b|var\(--su128\)/g, to: 'var(--dt-space-800)' },
113
- // Border radius
114
- { from: /@br-(pill|circle)|var\(--br-(pill|circle)\)/g, to: 'var(--dt-size-radius-$1$2)' },
115
- { from: /@br0|var\(--br0\)/g, to: 'var(--dt-size-radius-0)' },
116
- { from: /@br2\b|var\(--br2\)/g, to: 'var(--dt-size-radius-200)' },
117
- { from: /@br4|var\(--br4\)/g, to: 'var(--dt-size-radius-300)' },
118
- { from: /@br8|var\(--br8\)/g, to: 'var(--dt-size-radius-400)' },
119
- { from: /@br12|var\(--br12\)/g, to: 'var(--dt-size-450)' },
120
- { from: /@br16|var\(--br16\)/g, to: 'var(--dt-size-radius-500)' },
121
- { from: /@br24|var\(--br24\)/g, to: 'var(--dt-size-550)' },
122
- { from: /@br32|var\(--br32\)/g, to: 'var(--dt-size-radius-600)' },
123
- ],
124
- };