@zohodesk/dot 1.9.10 → 1.9.12

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 (168) hide show
  1. package/README.md +13 -0
  2. package/es/ActionButton/ActionButton.module.css +12 -11
  3. package/es/AlphabeticList/AlphabeticList.module.css +7 -8
  4. package/es/Attachment/Attachment.module.css +9 -10
  5. package/es/AttachmentViewer/AttachmentViewer.module.css +24 -45
  6. package/es/AudioPlayer/AudioPlayer.module.css +5 -8
  7. package/es/DotProvider/DotProvider.js +2 -0
  8. package/es/DotProvider/__tests__/DotProvider.spec.js +106 -0
  9. package/es/DotProvider/hooks/useDotProvider.js +4 -2
  10. package/es/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +44 -15
  11. package/es/DotProvider/props/defaultProps.js +2 -0
  12. package/es/DotProvider/props/propTypes.js +1 -0
  13. package/es/Drawer/Drawer.module.css +17 -64
  14. package/es/FormAction/FormAction.module.css +20 -54
  15. package/es/ImportantNotes/ImportantNotes.module.css +2 -9
  16. package/es/Message/Message.module.css +3 -16
  17. package/es/MessageBanner/MessageBanner.module.css +4 -13
  18. package/es/Separator/Separator.module.css +2 -1
  19. package/es/TagWithIcon/TagWithIcon.module.css +5 -8
  20. package/es/ToastMessage/ToastMessage.module.css +16 -30
  21. package/es/Upload/Upload.module.css +7 -9
  22. package/es/alert/AlertHeader/AlertHeader.module.css +11 -25
  23. package/es/alert/AlertLookup/AlertLookup.module.css +9 -10
  24. package/es/avatar/AvatarCollision/AvatarCollision.module.css +1 -1
  25. package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +1 -1
  26. package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +16 -16
  27. package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +7 -9
  28. package/es/emptystate/EditionPage/EditionPage.css +7 -4
  29. package/es/errorstate/EmptyStates.module.css +7 -8
  30. package/es/errorstate/Inconvenience/Inconvenience.module.css +2 -5
  31. package/es/errorstate/NoRequestFound/NoRequestFound.module.css +1 -1
  32. package/es/errorstate/PermissionPlay/PermissionPlay.module.css +5 -4
  33. package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -1
  34. package/es/errorstate/UnableToProcess/UnableToProcess.module.css +1 -1
  35. package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -1
  36. package/es/errorstate/WillBack/WillBack.module.css +6 -4
  37. package/es/form/fields/Fields.module.css +23 -68
  38. package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +11 -16
  39. package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +1 -4
  40. package/es/form/fields/TextEditor/TextEditor.module.css +40 -66
  41. package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +2 -7
  42. package/es/form/fields/ValidationMessage/ValidationMessage.module.css +4 -3
  43. package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +14 -36
  44. package/es/layout/SubtabLayout/SubtabLayout.module.css +33 -46
  45. package/es/list/BluePrintStatus/BluePrintStatus.module.css +1 -4
  46. package/es/list/Comment/Comment.module.css +2 -1
  47. package/es/list/Dot/Dot.module.css +4 -2
  48. package/es/list/GridStencils/GridStencils.module.css +7 -9
  49. package/es/list/ListLayout/ListLayout.module.css +7 -4
  50. package/es/list/ListStencils/ListStencils.module.css +14 -15
  51. package/es/list/SecondaryText/SecondaryText.module.css +4 -13
  52. package/es/list/SentimentStatus/SentimentStatus.module.css +2 -4
  53. package/es/list/TagNew/TagNew.module.css +3 -2
  54. package/es/list/listCommon.module.css +3 -7
  55. package/es/list/status/StatusDropdown/StatusDropdown.module.css +17 -17
  56. package/es/list/status/StatusListItem/StatusListItem.module.css +10 -18
  57. package/es/lookup/EmptyPage/LookupEmptyPage.module.css +4 -3
  58. package/es/lookup/Lookup/Lookup.module.css +2 -2
  59. package/es/lookup/header/Search/LookupSearch.module.css +10 -23
  60. package/es/lookup/header/TicketHeader/TicketHeader.module.css +3 -2
  61. package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +8 -12
  62. package/es/lookup/header/lookupHeaderCommon.module.css +8 -7
  63. package/es/lookup/header/lookupHeaderCommonResponsive.module.css +2 -6
  64. package/es/setup/header/Button/HeaderButton.module.css +2 -4
  65. package/es/setup/header/Link/HeaderLink.module.css +3 -9
  66. package/es/setup/header/Search/Search.module.css +2 -10
  67. package/es/setup/header/Views/Views.module.css +1 -4
  68. package/es/setup/helptips/Description/HelpTipsDescription.module.css +2 -1
  69. package/es/setup/helptips/Link/HelpTipsLink.module.css +2 -2
  70. package/es/setup/helptips/ListGroup/ListGroup.module.css +2 -6
  71. package/es/setup/table/TableData/SetupTableData.module.css +2 -4
  72. package/es/setup/table/TableHead/SetupTableHead.module.css +1 -6
  73. package/es/setup/table/TableRow/SetupTableRow.module.css +2 -7
  74. package/es/version2/GlobalNotification/GlobalNotification.module.css +7 -12
  75. package/es/version2/errorstate/V2_ErrorStates.module.css +5 -5
  76. package/es/version2/lookup/AlertHeader/AlertHeader.js +5 -3
  77. package/es/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +24 -0
  78. package/es/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +34 -0
  79. package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +8 -23
  80. package/es/version2/lookup/AlertHeader/props/propTypes.js +2 -1
  81. package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +9 -10
  82. package/es/version2/lookup/alertLookupCommonNew.module.css +6 -4
  83. package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +8 -11
  84. package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +10 -22
  85. package/lib/ActionButton/ActionButton.module.css +12 -11
  86. package/lib/AlphabeticList/AlphabeticList.module.css +7 -8
  87. package/lib/Attachment/Attachment.module.css +9 -10
  88. package/lib/AttachmentViewer/AttachmentViewer.module.css +24 -45
  89. package/lib/AudioPlayer/AudioPlayer.module.css +5 -8
  90. package/lib/DotProvider/DotProvider.js +3 -1
  91. package/lib/DotProvider/__tests__/DotProvider.spec.js +216 -0
  92. package/lib/DotProvider/hooks/useDotProvider.js +4 -2
  93. package/lib/DotProvider/hooks/useDownloadAssetsAndSetAttr.js +46 -15
  94. package/lib/DotProvider/props/defaultProps.js +3 -0
  95. package/lib/DotProvider/props/propTypes.js +1 -0
  96. package/lib/Drawer/Drawer.module.css +17 -64
  97. package/lib/FormAction/FormAction.module.css +20 -54
  98. package/lib/ImportantNotes/ImportantNotes.module.css +2 -9
  99. package/lib/Message/Message.module.css +3 -16
  100. package/lib/MessageBanner/MessageBanner.module.css +4 -13
  101. package/lib/Separator/Separator.module.css +2 -1
  102. package/lib/TagWithIcon/TagWithIcon.module.css +5 -8
  103. package/lib/ToastMessage/ToastMessage.module.css +16 -30
  104. package/lib/Upload/Upload.module.css +7 -9
  105. package/lib/alert/AlertHeader/AlertHeader.module.css +11 -25
  106. package/lib/alert/AlertLookup/AlertLookup.module.css +9 -10
  107. package/lib/avatar/AvatarCollision/AvatarCollision.module.css +1 -1
  108. package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +1 -1
  109. package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +16 -16
  110. package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +7 -9
  111. package/lib/emptystate/EditionPage/EditionPage.css +7 -4
  112. package/lib/errorstate/EmptyStates.module.css +7 -8
  113. package/lib/errorstate/Inconvenience/Inconvenience.module.css +2 -5
  114. package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +1 -1
  115. package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +5 -4
  116. package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +1 -1
  117. package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +1 -1
  118. package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +1 -1
  119. package/lib/errorstate/WillBack/WillBack.module.css +6 -4
  120. package/lib/form/fields/Fields.module.css +23 -68
  121. package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +11 -16
  122. package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +1 -4
  123. package/lib/form/fields/TextEditor/TextEditor.module.css +40 -66
  124. package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +2 -7
  125. package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +4 -3
  126. package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +14 -36
  127. package/lib/layout/SubtabLayout/SubtabLayout.module.css +33 -46
  128. package/lib/list/BluePrintStatus/BluePrintStatus.module.css +1 -4
  129. package/lib/list/Comment/Comment.module.css +2 -1
  130. package/lib/list/Dot/Dot.module.css +4 -2
  131. package/lib/list/GridStencils/GridStencils.module.css +7 -9
  132. package/lib/list/ListLayout/ListLayout.module.css +7 -4
  133. package/lib/list/ListStencils/ListStencils.module.css +14 -15
  134. package/lib/list/SecondaryText/SecondaryText.module.css +4 -13
  135. package/lib/list/SentimentStatus/SentimentStatus.module.css +2 -4
  136. package/lib/list/TagNew/TagNew.module.css +3 -2
  137. package/lib/list/listCommon.module.css +3 -7
  138. package/lib/list/status/StatusDropdown/StatusDropdown.module.css +17 -17
  139. package/lib/list/status/StatusListItem/StatusListItem.module.css +10 -18
  140. package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +4 -3
  141. package/lib/lookup/Lookup/Lookup.module.css +2 -2
  142. package/lib/lookup/header/Search/LookupSearch.module.css +10 -23
  143. package/lib/lookup/header/TicketHeader/TicketHeader.module.css +3 -2
  144. package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +8 -12
  145. package/lib/lookup/header/lookupHeaderCommon.module.css +8 -7
  146. package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +2 -6
  147. package/lib/setup/header/Button/HeaderButton.module.css +2 -4
  148. package/lib/setup/header/Link/HeaderLink.module.css +3 -9
  149. package/lib/setup/header/Search/Search.module.css +2 -10
  150. package/lib/setup/header/Views/Views.module.css +1 -4
  151. package/lib/setup/helptips/Description/HelpTipsDescription.module.css +2 -1
  152. package/lib/setup/helptips/Link/HelpTipsLink.module.css +2 -2
  153. package/lib/setup/helptips/ListGroup/ListGroup.module.css +2 -6
  154. package/lib/setup/table/TableData/SetupTableData.module.css +2 -4
  155. package/lib/setup/table/TableHead/SetupTableHead.module.css +1 -6
  156. package/lib/setup/table/TableRow/SetupTableRow.module.css +2 -7
  157. package/lib/version2/GlobalNotification/GlobalNotification.module.css +7 -12
  158. package/lib/version2/errorstate/V2_ErrorStates.module.css +5 -5
  159. package/lib/version2/lookup/AlertHeader/AlertHeader.js +5 -2
  160. package/lib/version2/lookup/AlertHeader/__tests__/AlertHeader.spec.js +26 -0
  161. package/lib/version2/lookup/AlertHeader/__tests__/__snapshots__/AlertHeader.spec.js.snap +34 -0
  162. package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +8 -23
  163. package/lib/version2/lookup/AlertHeader/props/propTypes.js +2 -1
  164. package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +9 -10
  165. package/lib/version2/lookup/alertLookupCommonNew.module.css +6 -4
  166. package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +8 -11
  167. package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +10 -22
  168. package/package.json +29 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/dot",
3
- "version": "1.9.10",
3
+ "version": "1.9.12",
4
4
  "main": "lib/index",
5
5
  "module": "es/index.js",
6
6
  "private": false,
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "scripts": {
20
20
  "clean": "react-cli clean lib es coverage assets && mkdir assets",
21
- "dubCheck": "node ./node_modules/@zohodesk-private/node-plugins/es/dublication_css_file_finder node_modules/@zohodesk/components/es node_modules/@zohodesk/icons/es node_modules/@zohodesk/variables/es node_modules/@zohodesk/svg/es",
21
+ "dubCheck": "npx z-node-plugins dub:check ../components/src ../internal/desk-components/src node_modules/@zohodesk/icons/es node_modules/@zohodesk/variables/es node_modules/@zohodesk/svg/es",
22
22
  "build:lib": "cbt build:lib src,assets lib,assets",
23
23
  "build:es": "cbt build:es src,assets es,assets",
24
24
  "build:es:watch": "cbt build:es src es",
@@ -40,62 +40,64 @@
40
40
  "download": "npm run downloadOnly && cd ../ && npm run download",
41
41
  "downloadOnly": "react-cli clean ./node_modules ./package-lock.json && npm install --legacy-peer-deps",
42
42
  "expublish": "node ../publish.js -- exp",
43
- "css:lineheight:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/lineheight_automation/lineHeightErrorCheck.js ./src/",
44
- "variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
45
- "variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
46
- "variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
43
+ "css:lineheight:validate": "npx z-node-plugins lineheight:errorcheck ./src/",
44
+ "variable:addignore": "npx css-variable-migrator addignore ./src",
45
+ "variable:convert": "npx css-variable-migrator convert ./src",
46
+ "variable:check": "npx css-variable-migrator check ./src",
47
47
  "css:review": " npm run dubCheck && npm run css:lineheight:validate && npm run theme:validate ",
48
- "theme:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation validate ./src ./.cli ./.cli/stringContains.js",
49
- "theme:addignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation addignore ./src ./.cli ./.cli/stringContains.js",
50
- "theme:removeignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation removeignore ./src ./.cli",
48
+ "theme:validate": "npx z-node-plugins theme:validate ./src ./.cli ./.cli/stringContains.js",
49
+ "theme:addignore": "npx z-node-plugins theme:addignore ./src ./.cli ./.cli/stringContains.js",
50
+ "theme:removeignore": "npx z-node-plugins theme:removeignore ./src ./.cli",
51
51
  "review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js propValidationArg.json",
52
- "css:layer_config_generate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/scan_css_generate_json.js ./src ./assets css_layer_config.json",
53
- "css:layer_wrap_es": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets --skip-existing-layer",
54
- "css:layer_wrap_lib": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./lib ./assets css_layer_config.json --rewrite=src=lib --rewrite=assets=assets --skip-existing-layer",
55
- "css:layer_generate_order": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/generate_layer_order.js css_layer_config.json ./src/dot_layer.module.css",
56
- "css:layer_config_validate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/validate.js css_layer_config.json ./src/ ./assets",
52
+ "css:layer_config_generate": "npx z-node-plugins css:scan ./src ./assets css_layer_config.json",
53
+ "css:layer_wrap_es": "npx z-node-plugins css:layer_wrap ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets --skip-existing-layer",
54
+ "css:layer_wrap_lib": "npx z-node-plugins css:layer_wrap ./lib ./assets css_layer_config.json --rewrite=src=lib --rewrite=assets=assets --skip-existing-layer",
55
+ "css:layer_generate_order": "npx z-node-plugins css:layer_order css_layer_config.json ./src/dot_layer.module.css",
56
+ "css:layer_config_validate": "npx z-node-plugins css:layer_validate css_layer_config.json ./src/ ./assets",
57
57
  "css:build": "npm run css:layer_config_validate && npm run css:layer_generate_order && npm run build",
58
- "css:layer_remove": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/remove_layer.js ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets",
58
+ "css:layer_remove": "npx z-node-plugins css:layer_remove ./es ./assets css_layer_config.json --rewrite=src=es --rewrite=assets=assets",
59
59
  "cssVariableConvert": "react-cli variableConverter ./lib ./lib && react-cli variableConverter ./es ./es",
60
60
  "publish": "node ../publish.js",
61
61
  "check_package": "node ../check_dependencies.js"
62
62
  },
63
63
  "devDependencies": {
64
- "postcss-discard-comments": "^7.0.5",
65
64
  "@testing-library/jest-dom": "^5.11.9",
66
65
  "@testing-library/react": "^11.2.5",
67
66
  "@testing-library/react-hooks": "^7.0.2",
68
67
  "@testing-library/user-event": "^13.0.10",
69
- "@zohodesk-private/color-variable-preprocessor": "1.3.0",
70
- "@zohodesk-private/css-variable-migrator": "1.0.9",
71
- "@zohodesk-private/node-plugins": "1.1.13",
68
+ "@zohodesk-private/color-variable-preprocessor": "1.3.1",
69
+ "@zohodesk-private/css-variable-migrator": "1.0.11",
70
+ "@zohodesk-private/node-plugins": "1.1.14",
72
71
  "@zohodesk-private/react-prop-validator": "1.2.3",
73
72
  "@zohodesk/a11y": "2.3.9",
74
- "@zohodesk/components": "1.6.8",
73
+ "@zohodesk/client_build_tool": "0.0.20",
74
+ "@zohodesk/components": "1.6.13",
75
+ "@zohodesk/dotkit": "1.0.9",
75
76
  "@zohodesk/hooks": "2.0.8",
76
- "@zohodesk/icons": "1.2.8",
77
+ "@zohodesk/icons": "1.3.3",
77
78
  "@zohodesk/layout": "3.1.0",
79
+ "@zohodesk/react-cli": "1.1.27",
78
80
  "@zohodesk/svg": "1.3.5",
79
81
  "@zohodesk/utils": "1.3.16",
80
82
  "@zohodesk/variables": "1.3.1",
81
83
  "@zohodesk/virtualizer": "1.0.13",
84
+ "postcss-discard-comments": "^7.0.5",
82
85
  "react-sortable-hoc": "^0.8.3",
83
86
  "velocity-react": "1.4.3",
84
- "@zohodesk/dotkit": "1.0.9",
85
- "@zohodesk/react-cli": "1.1.27",
86
- "@zohodesk/client_build_tool": "0.0.20"
87
+ "@dot-system/css-utility": "0.1.1"
87
88
  },
88
89
  "peerDependencies": {
89
90
  "velocity-react": "1.4.3",
90
91
  "@zohodesk/variables": "1.3.1",
91
- "@zohodesk/components": "1.6.8",
92
- "@zohodesk/icons": "1.2.8",
92
+ "@zohodesk/components": "1.6.13",
93
+ "@zohodesk/icons": "1.3.3",
93
94
  "@zohodesk/svg": "1.3.5",
94
95
  "@zohodesk/virtualizer": "1.0.13",
95
96
  "react-sortable-hoc": "^0.8.3",
96
97
  "@zohodesk/hooks": "2.0.8",
97
98
  "@zohodesk/utils": "1.3.16",
98
99
  "@zohodesk/a11y": "2.3.9",
99
- "@zohodesk/layout": "3.1.0"
100
+ "@zohodesk/layout": "3.1.0",
101
+ "@dot-system/css-utility": "0.1.1"
100
102
  }
101
103
  }