@innovaccer/design-system 2.13.3 → 2.13.4-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 (349) hide show
  1. package/core/components/atoms/button/__stories__/SplitButton.story.jsx +1 -2
  2. package/core/components/atoms/checkbox/__stories__/Alignment.story.jsx +28 -26
  3. package/core/components/atoms/checkbox/__stories__/variants/Controlled.story.jsx +2 -2
  4. package/core/components/atoms/chip/__stories__/index.story.jsx +2 -2
  5. package/core/components/atoms/chip/__stories__/variants/Action.story.jsx +2 -2
  6. package/core/components/atoms/chip/__stories__/variants/Input.story.jsx +2 -2
  7. package/core/components/atoms/chip/__stories__/variants/Selection.story.jsx +6 -6
  8. package/core/components/atoms/chip/__stories__/variants/Type.story.jsx +2 -2
  9. package/core/components/atoms/chipGroup/_stories_/index.story.jsx +1 -1
  10. package/core/components/atoms/collapsible/__stories__/CustomTrigger.story.jsx +5 -71
  11. package/core/components/atoms/dropdown/Dropdown.tsx +18 -2
  12. package/core/components/atoms/dropdown/DropdownList.tsx +47 -57
  13. package/core/components/atoms/dropdown/__stories__/CustomSearchPlaceholder.story.jsx +4 -4
  14. package/core/components/atoms/dropdown/__stories__/DropdownItemsWithCheckbox.story.jsx +1 -3
  15. package/core/components/atoms/dropdown/__stories__/DropdownItemsWithIcon.story.jsx +2 -4
  16. package/core/components/atoms/dropdown/__stories__/DropdownItemsWithInfo.story.jsx +2 -5
  17. package/core/components/atoms/dropdown/__stories__/DropdownWIthIcon.story.jsx +3 -4
  18. package/core/components/atoms/dropdown/__stories__/DropdownWithActionButtons.story.jsx +9 -9
  19. package/core/components/atoms/dropdown/__stories__/DropdownWithCaption.story.jsx +7 -7
  20. package/core/components/atoms/dropdown/__stories__/Gender.story.jsx +6 -6
  21. package/core/components/atoms/dropdown/__stories__/LabelInline.story.jsx +58 -0
  22. package/core/components/atoms/dropdown/__stories__/{LabelPositionInDropdown.story.jsx → LabelOnTop.story.jsx} +8 -9
  23. package/core/components/atoms/dropdown/__stories__/Languages.story.jsx +6 -6
  24. package/core/components/atoms/dropdown/__stories__/Menu.story.jsx +5 -6
  25. package/core/components/atoms/dropdown/__stories__/OptionsLessThan50.story.jsx +3 -7
  26. package/core/components/atoms/dropdown/__stories__/OptionsMoreThan50.story.jsx +2 -2
  27. package/core/components/atoms/dropdown/__stories__/SearchInDropdown.story.jsx +3 -5
  28. package/core/components/atoms/dropdown/__stories__/StandardDropdown.story.jsx +2 -2
  29. package/core/components/atoms/dropdown/__stories__/StatusWithoutLabel.story.jsx +3 -3
  30. package/core/components/atoms/dropdown/__stories__/WithCheckboxAndSubInfo.story.jsx +2 -4
  31. package/core/components/atoms/dropdown/__stories__/index.story.jsx +2 -2
  32. package/core/components/atoms/dropdown/__stories__/variants/LoadingType.story.jsx +0 -1
  33. package/core/components/atoms/dropdown/__stories__/variants/PreSelection.story.jsx +2 -2
  34. package/core/components/atoms/dropdown/__stories__/variants/StaticLimit.story.jsx +2 -2
  35. package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/BulkMultiSelectWithApply.story.jsx +2 -2
  36. package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/MultiSelect.story.jsx +2 -2
  37. package/core/components/atoms/dropdown/__stories__/variants/controlledDropdown/SingleSelect.story.jsx +4 -4
  38. package/core/components/atoms/dropdown/option/DefaultOption.tsx +1 -1
  39. package/core/components/atoms/dropdown/utility.tsx +6 -0
  40. package/core/components/atoms/icon/__stories__/variants/Image.story.jsx +1 -6
  41. package/core/components/atoms/input/__stories__/variants/Size.story.jsx +9 -9
  42. package/core/components/atoms/input/__stories__/variants/controlledInput.story.jsx +3 -3
  43. package/core/components/atoms/metaList/_stories_/index.story.jsx +0 -1
  44. package/core/components/atoms/rangeSlider/__stories__/index.story.jsx +2 -2
  45. package/core/components/atoms/rangeSlider/__stories__/variants/Controlled.story.jsx +2 -2
  46. package/core/components/atoms/slider/__stories__/variants/Controlled.story.jsx +2 -2
  47. package/core/components/css-utilities/Miscellaneous/Miscellaneous.story.tsx +4 -0
  48. package/core/components/molecules/dropzone/FileSelectorUtils.tsx +3 -0
  49. package/core/components/molecules/editableDropdown/__stories__/index.story.jsx +2 -2
  50. package/core/components/molecules/fullscreenModal/__stories__/DefaultWidth.story.jsx +4 -2
  51. package/core/components/molecules/fullscreenModal/__stories__/LargeWidth.story.jsx +4 -2
  52. package/core/components/molecules/fullscreenModal/__stories__/Layering.story.jsx +3 -1
  53. package/core/components/molecules/fullscreenModal/__stories__/Scrolling.story.jsx +4 -2
  54. package/core/components/molecules/fullscreenModal/__stories__/TwoStepWorkflow.story.jsx +1 -2
  55. package/core/components/molecules/fullscreenModal/__stories__/twoSteps.story.jsx +0 -1
  56. package/core/components/molecules/fullscreenModal/__stories__/variants/dimension/Large.story.jsx +0 -1
  57. package/core/components/molecules/fullscreenModal/__stories__/variants/dimension/Medium.story.jsx +0 -1
  58. package/core/components/molecules/modal/__stories__/Alert.story.jsx +3 -1
  59. package/core/components/molecules/modal/__stories__/Confirmation.story.jsx +3 -1
  60. package/core/components/molecules/modal/__stories__/Dialog.story.jsx +3 -1
  61. package/core/components/molecules/modal/__stories__/Input.story.jsx +3 -1
  62. package/core/components/molecules/modal/__stories__/Layering.story.jsx +3 -1
  63. package/core/components/molecules/modal/__stories__/NoFooter.story.jsx +3 -1
  64. package/core/components/molecules/modal/__stories__/Scrolling.story.jsx +4 -2
  65. package/core/components/molecules/modal/__stories__/index.story.jsx +3 -1
  66. package/core/components/molecules/modal/__stories__/old.story.jsx +3 -1
  67. package/core/components/molecules/modal/__stories__/variants/dimension/Large.story.jsx +3 -1
  68. package/core/components/molecules/modal/__stories__/variants/dimension/Medium.story.jsx +3 -1
  69. package/core/components/molecules/modal/__stories__/variants/dimension/Small.story.jsx +3 -1
  70. package/core/components/molecules/popover/__stories__/Actions.story.jsx +1 -6
  71. package/core/components/molecules/popover/__stories__/Inputs.story.jsx +1 -6
  72. package/core/components/molecules/popover/__stories__/Light.story.jsx +1 -6
  73. package/core/components/molecules/popover/__stories__/variants/boundaryElement.story.jsx +1 -1
  74. package/core/components/molecules/sidesheet/__stories__/index.story.jsx +3 -1
  75. package/core/components/molecules/sidesheet/__stories__/variants/CustomHeader.story.jsx +3 -1
  76. package/core/components/molecules/sidesheet/__stories__/variants/Layering.story.jsx +3 -1
  77. package/core/components/molecules/sidesheet/__stories__/variants/LayeringWithModal.story.jsx +3 -1
  78. package/core/components/molecules/sidesheet/__stories__/variants/dimension/Large.story.jsx +3 -1
  79. package/core/components/molecules/sidesheet/__stories__/variants/dimension/Regular.story.jsx +4 -2
  80. package/core/components/molecules/sidesheet/__stories__/variants/stickyFooter.story.jsx +3 -1
  81. package/core/components/molecules/sidesheet/__stories__/variants/twoSteps.story.jsx +6 -4
  82. package/core/components/molecules/tabs/__stories__/DismissibleTab.story.jsx +1 -0
  83. package/core/components/molecules/tooltip/__stories__/variants/Position.story.jsx +2 -13
  84. package/core/components/organisms/calendar/__stories__/index.story.jsx +40 -7
  85. package/core/components/organisms/calendar/__stories__/variants/size.story.jsx +2 -3
  86. package/core/components/organisms/datePicker/DatePicker.tsx +1 -1
  87. package/core/components/organisms/dateRangePicker/__stories__/variants/withSingleInput.story.jsx +3 -0
  88. package/core/components/organisms/horizontalNav/__stories__/leftAlign.story.jsx +35 -19
  89. package/core/components/organisms/inlineMessage/__stories__/variants/Default.story.jsx +1 -3
  90. package/core/components/organisms/inlineMessage/__stories__/variants/Error.story.jsx +1 -3
  91. package/core/components/organisms/inlineMessage/__stories__/variants/Info.story.jsx +1 -3
  92. package/core/components/organisms/inlineMessage/__stories__/variants/Success.story.jsx +1 -3
  93. package/core/components/organisms/inlineMessage/__stories__/variants/Warning.story.jsx +1 -3
  94. package/core/components/organisms/pageHeader/__stories__/Responsiveness.story.jsx +2 -2
  95. package/core/components/organisms/pageHeader/__stories__/variants/withNavigation.story.jsx +2 -2
  96. package/core/components/organisms/pageHeader/__stories__/variants/withNavigationL1.story.jsx +2 -2
  97. package/core/components/organisms/pageHeader/__stories__/variants/withStepper.story.jsx +2 -2
  98. package/core/components/organisms/pageHeader/__stories__/variants/withStepperL1.story.jsx +2 -2
  99. package/core/components/organisms/pageHeader/__stories__/variants/withTabs.story.jsx +2 -2
  100. package/core/components/organisms/pageHeader/__stories__/variants/withTabsL1.story.jsx +2 -2
  101. package/core/components/organisms/pageHeader/__stories__/withFilter.story.jsx +2 -2
  102. package/core/components/organisms/pageHeader/__stories__/withFilterL1.story.jsx +2 -2
  103. package/core/components/organisms/pageHeader/__stories__/withNavigation.story.jsx +2 -2
  104. package/core/components/organisms/pageHeader/__stories__/withNavigationL1.story.jsx +9 -3
  105. package/core/components/organisms/pageHeader/__stories__/withStepperL1.story.jsx +4 -4
  106. package/core/components/organisms/table/__stories__/TableAsDescriptionList.story.jsx +4 -4
  107. package/core/components/organisms/timePicker/TimePicker.tsx +6 -113
  108. package/core/components/organisms/timePicker/TimePickerWithInput.tsx +124 -0
  109. package/core/components/organisms/timePicker/TimePickerWithSearch.tsx +198 -0
  110. package/core/components/organisms/timePicker/__stories__/TimeIntervals.story.jsx +52 -0
  111. package/core/components/organisms/timePicker/__stories__/disabledOption.story.jsx +52 -0
  112. package/core/components/organisms/timePicker/__stories__/fromTo.story.jsx +72 -0
  113. package/core/components/organisms/timePicker/__stories__/showDuration.story.jsx +52 -0
  114. package/core/components/organisms/timePicker/__stories__/withDatePicker.story.jsx +88 -0
  115. package/core/components/organisms/timePicker/__stories__/{index.story.jsx → withInput.story.jsx} +6 -3
  116. package/core/components/organisms/timePicker/__stories__/withSearch.story.jsx +89 -0
  117. package/core/components/organisms/timePicker/__tests__/TimePickerWithSearch.test.tsx +464 -0
  118. package/core/components/organisms/timePicker/__tests__/__snapshots__/TimePickerWithSearch.test.tsx.snap +169 -0
  119. package/core/components/organisms/timePicker/index.tsx +2 -0
  120. package/core/components/organisms/timePicker/utility/searchUtils.tsx +295 -0
  121. package/core/components/organisms/timePicker/utility/timePickerUtility.tsx +219 -0
  122. package/core/components/organisms/timePicker/utils.tsx +1 -1
  123. package/core/components/organisms/verticalNav/MenuItem.tsx +11 -6
  124. package/core/components/organisms/verticalNav/__stories__/CustomOptionsRenderer.story.jsx +10 -9
  125. package/core/components/organisms/verticalNav/__stories__/CustomTrigger.story.jsx +14 -12
  126. package/core/components/organisms/verticalNav/__stories__/FlatEdgedVerticalNav.story.jsx +5 -5
  127. package/core/components/organisms/verticalNav/__stories__/LabelOverflowBehaviour.story.jsx +9 -15
  128. package/core/components/organisms/verticalNav/__tests__/__snapshots__/VerticalNav.test.tsx.snap +26 -24
  129. package/core/index.tsx +1 -0
  130. package/css/dist/index.css +9 -8
  131. package/css/dist/index.css.map +1 -1
  132. package/css/src/components/dropdown.css +6 -6
  133. package/css/src/components/metricInput.css +1 -0
  134. package/css/src/components/verticalNav.css +2 -0
  135. package/dist/core/components/atoms/dropdown/Dropdown.d.ts +2 -0
  136. package/dist/core/components/atoms/dropdown/DropdownList.d.ts +1 -0
  137. package/dist/core/components/atoms/dropdown/utility.d.ts +1 -0
  138. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +22 -22
  139. package/dist/core/components/organisms/datePicker/DatePicker.d.ts +1 -1
  140. package/dist/core/components/organisms/timePicker/TimePicker.d.ts +5 -13
  141. package/dist/core/components/organisms/timePicker/TimePickerWithInput.d.ts +24 -0
  142. package/dist/core/components/organisms/timePicker/TimePickerWithSearch.d.ts +32 -0
  143. package/dist/core/components/organisms/timePicker/index.d.ts +2 -0
  144. package/dist/core/components/organisms/timePicker/utility/searchUtils.d.ts +7 -0
  145. package/dist/core/components/organisms/timePicker/utility/timePickerUtility.d.ts +19 -0
  146. package/dist/core/index.d.ts +1 -0
  147. package/dist/index.esm.js +719 -52
  148. package/dist/index.js +648 -74
  149. package/dist/index.js.map +1 -1
  150. package/dist/index.umd.js +1 -1
  151. package/dist/index.umd.js.br +0 -0
  152. package/dist/index.umd.js.gz +0 -0
  153. package/docs/.eslintrc.json +32 -1
  154. package/docs/.prettierrc +6 -0
  155. package/docs/README.md +14 -0
  156. package/docs/cypress/e2e/main.cy.js +35 -0
  157. package/docs/cypress/fixtures/example.json +5 -0
  158. package/docs/cypress/support/commands.ts +37 -0
  159. package/docs/cypress/support/e2e.ts +20 -0
  160. package/docs/cypress.config.js +9 -0
  161. package/docs/package.json +16 -3
  162. package/docs/src/components/Colors/Colors.css +4 -0
  163. package/docs/src/components/Colors/Colors.js +56 -61
  164. package/docs/src/components/Container/ComponentsContainer.js +10 -30
  165. package/docs/src/components/Container/Container.js +10 -41
  166. package/docs/src/components/ErrorBoundary.js +9 -3
  167. package/docs/src/components/Footer/Footer.js +11 -10
  168. package/docs/src/components/GlobalSearch/index.js +47 -44
  169. package/docs/src/components/Header/Header.css +4 -0
  170. package/docs/src/components/Header/Header.js +25 -19
  171. package/docs/src/components/Layout.js +59 -303
  172. package/docs/src/components/LeftNav/LeftNav.js +12 -28
  173. package/docs/src/components/Logos/Logos.js +12 -26
  174. package/docs/src/components/MDXComponents.js +213 -0
  175. package/docs/src/components/MDXHeading.js +12 -18
  176. package/docs/src/components/Meta.js +9 -9
  177. package/docs/src/components/PropsTable/ArgJsDoc.tsx +2 -6
  178. package/docs/src/components/PropsTable/ArgRow.tsx +19 -47
  179. package/docs/src/components/PropsTable/ArgValue.tsx +50 -93
  180. package/docs/src/components/PropsTable/EmptyBlock.tsx +2 -5
  181. package/docs/src/components/PropsTable/SectionRow.tsx +7 -18
  182. package/docs/src/components/PropsTable/Table.tsx +43 -130
  183. package/docs/src/components/PropsTable/generateImports.tsx +1 -3
  184. package/docs/src/components/PropsTable/index.js +94 -140
  185. package/docs/src/components/PropsTable/prism.css +19 -20
  186. package/docs/src/components/Rules/DONTs.js +1 -6
  187. package/docs/src/components/Rules/DOs.js +1 -6
  188. package/docs/src/components/Rules/IconWrapper.js +6 -7
  189. package/docs/src/components/Rules/InlineMessage.js +1 -5
  190. package/docs/src/components/Rules/Rules.js +18 -28
  191. package/docs/src/components/TableOfContent/TableOfContent.css +8 -1
  192. package/docs/src/components/TableOfContent/TableOfContent.js +67 -58
  193. package/docs/src/components/css/global.css +1 -1
  194. package/docs/src/components/css/prism.css +1 -1
  195. package/docs/src/components/css/style.css +13 -5
  196. package/docs/src/components/templates/Default.js +1 -1
  197. package/docs/src/components/templates/Homepage.js +4 -6
  198. package/docs/src/data/components/Overview.js +49 -56
  199. package/docs/src/data/components/images/Calendar.png +0 -0
  200. package/docs/src/data/components/images/MetaList.png +0 -0
  201. package/docs/src/data/components/images/PageHeader.png +0 -0
  202. package/docs/src/data/components/images/TimePicker.png +0 -0
  203. package/docs/src/data/components/images/mobile/Badge.png +0 -0
  204. package/docs/src/data/components/images/mobile/Dropdown.png +0 -0
  205. package/docs/src/data/components/images/mobile/Message.png +0 -0
  206. package/docs/src/data/components/images/mobile/MetaList.png +0 -0
  207. package/docs/src/data/components/images/mobile/Slider.png +0 -0
  208. package/docs/src/data/components/images/mobile/StatusHint.png +0 -0
  209. package/docs/src/data/components/images/mobile/Stepper.png +0 -0
  210. package/docs/src/data/components/index.js +168 -321
  211. package/docs/src/data/components/mobile.js +85 -125
  212. package/docs/src/data/components/overview.css +4 -2
  213. package/docs/src/data/components/patterns.js +25 -59
  214. package/docs/src/data/header-items.yaml +1 -0
  215. package/docs/src/data/nav/components.yaml +2 -8
  216. package/docs/src/pages/404.js +7 -17
  217. package/docs/src/pages/components/avatar/usage.mdx +23 -19
  218. package/docs/src/pages/components/calendar/usage.mdx +3 -3
  219. package/docs/src/pages/components/checkbox/usage.mdx +1 -1
  220. package/docs/src/pages/components/chips/images/actionchip-state.png +0 -0
  221. package/docs/src/pages/components/chips/images/inputchips-state.png +0 -0
  222. package/docs/src/pages/components/chips/images/selectionchip-state.png +0 -0
  223. package/docs/src/pages/components/chips/usage.mdx +24 -2
  224. package/docs/src/pages/components/datePicker/images/datePicker-3.png +0 -0
  225. package/docs/src/pages/components/datePicker/images/datePicker-6.png +0 -0
  226. package/docs/src/pages/components/datePicker/usage.mdx +9 -2
  227. package/docs/src/pages/components/dropdowns/usage.mdx +1 -1
  228. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableField-2.png +0 -0
  229. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableField-3.png +0 -0
  230. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-1.png +0 -0
  231. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-4.png +0 -0
  232. package/docs/src/pages/components/inlineEditableFields/usage.mdx +4 -4
  233. package/docs/src/pages/components/inputs/usage.mdx +7 -7
  234. package/docs/src/pages/components/tabs/images/tabs-1.png +0 -0
  235. package/docs/src/pages/content/button-guidelines/tabs/button-glossary.mdx +1776 -1
  236. package/docs/src/pages/content/button-guidelines/tabs/confusing-buttons.mdx +479 -8
  237. package/docs/src/pages/content/email-guidelines.mdx +3 -3
  238. package/docs/src/pages/content/house-rules/tabs/date,-time-&-numbers.mdx +24 -0
  239. package/docs/src/pages/content/house-rules/tabs/grammer.mdx +42 -2
  240. package/docs/src/pages/content/house-rules/tabs/punctuations.mdx +32 -0
  241. package/docs/src/pages/foundations/colors.mdx +338 -24
  242. package/docs/src/pages/foundations/layout/index.mdx +57 -82
  243. package/docs/src/pages/foundations/response-time.mdx +32 -77
  244. package/docs/src/pages/foundations/typography.mdx +166 -0
  245. package/docs/src/pages/index.js +92 -121
  246. package/docs/src/pages/introduction/get-started/designers.mdx +28 -188
  247. package/docs/src/pages/introduction/get-started/images/designers-1.png +0 -0
  248. package/docs/src/pages/introduction/get-started/images/designers-2.png +0 -0
  249. package/docs/src/pages/introduction/what's-new.mdx +322 -15
  250. package/docs/src/pages/mobile/components/badges/images/badge-1.png +0 -0
  251. package/docs/src/pages/mobile/components/badges/images/badge-2.png +0 -0
  252. package/docs/src/pages/mobile/components/badges/images/badge-3.png +0 -0
  253. package/docs/src/pages/mobile/components/badges/images/badge-4.png +0 -0
  254. package/docs/src/pages/mobile/components/badges/images/badge-5.png +0 -0
  255. package/docs/src/pages/mobile/components/badges/usage.mdx +100 -0
  256. package/docs/src/pages/mobile/components/card/images/mcard-1.png +0 -0
  257. package/docs/src/pages/mobile/components/card/images/mcard-2.png +0 -0
  258. package/docs/src/pages/mobile/components/card/images/mcard-3.png +0 -0
  259. package/docs/src/pages/mobile/components/card/images/mcard-4.png +0 -0
  260. package/docs/src/pages/mobile/components/card/images/mcard-5.png +0 -0
  261. package/docs/src/pages/mobile/components/card/images/mcard-6.png +0 -0
  262. package/docs/src/pages/mobile/components/card/usage.mdx +54 -67
  263. package/docs/src/pages/mobile/components/checkbox/images/checkbox-1.png +0 -0
  264. package/docs/src/pages/mobile/components/checkbox/usage.mdx +26 -2
  265. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-1.png +0 -0
  266. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-10.png +0 -0
  267. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-11.png +0 -0
  268. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-2.png +0 -0
  269. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-3.png +0 -0
  270. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-4.png +0 -0
  271. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-5.png +0 -0
  272. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-6.png +0 -0
  273. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-7.png +0 -0
  274. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-8.png +0 -0
  275. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-9.png +0 -0
  276. package/docs/src/pages/mobile/components/dropdowns/usage.mdx +88 -0
  277. package/docs/src/pages/mobile/components/message/images/messages-1.png +0 -0
  278. package/docs/src/pages/mobile/components/message/images/messages-10.png +0 -0
  279. package/docs/src/pages/mobile/components/message/images/messages-11.png +0 -0
  280. package/docs/src/pages/mobile/components/message/images/messages-12.png +0 -0
  281. package/docs/src/pages/mobile/components/message/images/messages-2.png +0 -0
  282. package/docs/src/pages/mobile/components/message/images/messages-3.png +0 -0
  283. package/docs/src/pages/mobile/components/message/images/messages-4.png +0 -0
  284. package/docs/src/pages/mobile/components/message/images/messages-5.png +0 -0
  285. package/docs/src/pages/mobile/components/message/images/messages-6.png +0 -0
  286. package/docs/src/pages/mobile/components/message/images/messages-7.png +0 -0
  287. package/docs/src/pages/mobile/components/message/images/messages-8.png +0 -0
  288. package/docs/src/pages/mobile/components/message/images/messages-9.png +0 -0
  289. package/docs/src/pages/mobile/components/message/usage.mdx +170 -0
  290. package/docs/src/pages/mobile/components/metaList/images/metaList-1.png +0 -0
  291. package/docs/src/pages/mobile/components/metaList/images/metaList-2.png +0 -0
  292. package/docs/src/pages/mobile/components/metaList/images/metaList-3.png +0 -0
  293. package/docs/src/pages/mobile/components/metaList/images/metaList-4.png +0 -0
  294. package/docs/src/pages/mobile/components/metaList/usage.mdx +71 -0
  295. package/docs/src/pages/mobile/components/slider/images/slider-1.png +0 -0
  296. package/docs/src/pages/mobile/components/slider/images/slider-2.png +0 -0
  297. package/docs/src/pages/mobile/components/slider/images/slider-3.png +0 -0
  298. package/docs/src/pages/mobile/components/slider/images/slider-4.png +0 -0
  299. package/docs/src/pages/mobile/components/slider/images/slider-5.png +0 -0
  300. package/docs/src/pages/mobile/components/slider/usage.mdx +83 -0
  301. package/docs/src/pages/mobile/components/statusHint/images/statushint-1.png +0 -0
  302. package/docs/src/pages/mobile/components/statusHint/images/statushint-2.png +0 -0
  303. package/docs/src/pages/mobile/components/statusHint/images/statushint-3.png +0 -0
  304. package/docs/src/pages/mobile/components/statusHint/images/statushint-4.png +0 -0
  305. package/docs/src/pages/mobile/components/statusHint/images/statushint-5.png +0 -0
  306. package/docs/src/pages/mobile/components/statusHint/images/statushint-6.png +0 -0
  307. package/docs/src/pages/mobile/components/statusHint/images/statushint-7.png +0 -0
  308. package/docs/src/pages/mobile/components/statusHint/usage.mdx +108 -0
  309. package/docs/src/pages/mobile/components/steppers/images/stepper-1.png +0 -0
  310. package/docs/src/pages/mobile/components/steppers/images/stepper-2.png +0 -0
  311. package/docs/src/pages/mobile/components/steppers/images/stepper-3.png +0 -0
  312. package/docs/src/pages/mobile/components/steppers/images/stepper-4.png +0 -0
  313. package/docs/src/pages/mobile/components/steppers/images/stepper-5.png +0 -0
  314. package/docs/src/pages/mobile/components/steppers/images/stepper-6.png +0 -0
  315. package/docs/src/pages/mobile/components/steppers/usage.mdx +111 -0
  316. package/docs/src/pages/mobile/foundations/layout/images/layout-2.png +0 -0
  317. package/docs/src/pages/mobile/foundations/layout/index.mdx +3 -1
  318. package/docs/src/pages/mobile/foundations/page-types/index.mdx +0 -214
  319. package/docs/src/pages/mobile/foundations/spacing/index.mdx +5 -0
  320. package/docs/src/pages/mobile/foundations/typography.mdx +1 -1
  321. package/docs/src/pages/patterns/uiStates/usage.mdx +92 -0
  322. package/docs/src/util/Frontmatter.js +4 -4
  323. package/docs/src/util/HeaderItems.js +2 -1
  324. package/docs/src/util/Helpers.js +3 -3
  325. package/docs/src/util/HomeIcons.js +91 -53
  326. package/docs/src/util/InPageNavItems.js +2 -6
  327. package/docs/src/util/Logos.js +2 -2
  328. package/docs/src/util/MdsChangelog.js +5 -10
  329. package/docs/src/util/MediumBlogs.js +13 -13
  330. package/docs/src/util/NavItems.js +14 -17
  331. package/docs/src/util/Search.js +2 -2
  332. package/docs/src/util/StorybookData.js +2 -4
  333. package/docs/src/util/constants.js +1 -5
  334. package/docs/src/util/context/NavContext.js +1 -4
  335. package/docs/src/util/hooks/useMetadata.js +1 -1
  336. package/docs/tools/build.sh +1 -0
  337. package/docs/tools/changelog.sh +1 -1
  338. package/package.json +3 -3
  339. package/docs/src/pages/components/index.mdx +0 -11
  340. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-2.png +0 -0
  341. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-3.png +0 -0
  342. package/docs/src/pages/content/button-guidelines/index.mdx +0 -7
  343. package/docs/src/pages/content/voice-and-tone-guidelines/index.mdx +0 -7
  344. package/docs/src/pages/introduction/get-started/images/designers-3.png +0 -0
  345. package/docs/src/pages/introduction/get-started/images/designers-4.png +0 -0
  346. package/docs/src/pages/introduction/get-started/images/designers-5.png +0 -0
  347. package/docs/src/pages/introduction/get-started/images/designers-6.png +0 -0
  348. package/docs/src/pages/introduction/get-started/images/designers-7.png +0 -0
  349. package/docs/src/pages/introduction/get-started/images/designers-8.png +0 -0
@@ -109,6 +109,7 @@ A typical process starts with loading the app first. If we go step by step -
109
109
 
110
110
  ### Empty and Error States
111
111
  <br/>
112
+ <br/>
112
113
 
113
114
  <table style="width: 100%">
114
115
  <thead>
@@ -171,6 +172,52 @@ A typical process starts with loading the app first. If we go step by step -
171
172
 
172
173
  <br/>
173
174
 
175
+ <table style="width: 100%">
176
+ <thead>
177
+ <tr>
178
+ <th style="width:33%; text-align: left;">Property</th>
179
+ <th style="width:33%; text-align: left;">Value(s)</th>
180
+ <th style="width:33%; text-align: left;">Default value</th>
181
+ </tr>
182
+ </thead>
183
+ <tbody>
184
+ <tr style="vertical-align: top">
185
+ <td>Illustration</td>
186
+ <td>
187
+ Image
188
+ <br/>
189
+ <br/>
190
+ <b>Image size</b>
191
+ <br/>
192
+ Height - 128px
193
+ <br/>
194
+ Width - Dynamic as per the height, maintaining the aspect ratio
195
+ </td>
196
+ <td>
197
+ -
198
+ </td>
199
+ </tr>
200
+ <tr style="vertical-align: top">
201
+ <td>Title</td>
202
+ <td>&#60;title&#62;</td>
203
+ <td>We didn't find a match</td>
204
+ </tr>
205
+ <tr style="vertical-align: top">
206
+ <td>Description</td>
207
+ <td>&#60;description&#62;</td>
208
+ <td>Try adjusting your search to find what you are looking for.</td>
209
+ </tr>
210
+ <tr style="vertical-align: top">
211
+ <td>Button</td>
212
+ <td>Label</td>
213
+ <td>Try again</td>
214
+ </tr>
215
+ </tbody>
216
+ </table>
217
+
218
+ <br/>
219
+ <br/>
220
+
174
221
  ##### No search results
175
222
  <div className="py-5" style={{ backgroundColor: 'var(--secondary-lightest)'}}>
176
223
  <EmptyState
@@ -185,6 +232,51 @@ A typical process starts with loading the app first. If we go step by step -
185
232
  </EmptyState>
186
233
  </div>
187
234
 
235
+ <br/>
236
+ <table style="width: 100%">
237
+ <thead>
238
+ <tr>
239
+ <th style="width:33%; text-align: left;">Property</th>
240
+ <th style="width:33%; text-align: left;">Value(s)</th>
241
+ <th style="width:33%; text-align: left;">Default value</th>
242
+ </tr>
243
+ </thead>
244
+ <tbody>
245
+ <tr style="vertical-align: top">
246
+ <td>Illustration</td>
247
+ <td>
248
+ Image
249
+ <br/>
250
+ <br/>
251
+ <b>Image size</b>
252
+ <br/>
253
+ Height - 256px
254
+ <br/>
255
+ Width - Dynamic as per the height, maintaining the aspect ratio
256
+ </td>
257
+ <td>
258
+ -
259
+ </td>
260
+ </tr>
261
+ <tr style="vertical-align: top">
262
+ <td>Title</td>
263
+ <td>&#60;title&#62;</td>
264
+ <td>Manage your outreach camaigns</td>
265
+ </tr>
266
+ <tr style="vertical-align: top">
267
+ <td>Description</td>
268
+ <td>&#60;description&#62;</td>
269
+ <td>Campaigns let you reach out to patients with messages, emails and voice calls.</td>
270
+ </tr>
271
+ <tr style="vertical-align: top">
272
+ <td>Button</td>
273
+ <td>Label</td>
274
+ <td>New campaign</td>
275
+ </tr>
276
+ </tbody>
277
+ </table>
278
+
279
+ <br/>
188
280
  <br/>
189
281
 
190
282
  ##### Error (page not loaded)
@@ -19,17 +19,17 @@ export function useFrontmatter(relativePagePath) {
19
19
  }
20
20
  }
21
21
  }
22
- }
22
+ }
23
23
  `);
24
24
 
25
25
  const componentName = relativePagePath.slice(1, relativePagePath.lastIndexOf('/'));
26
26
 
27
- const data = edges.filter(item => {
27
+ const data = edges.filter((item) => {
28
28
  const { slug, frontmatter } = item.node;
29
29
  if (relativePagePath.includes('mobile')) {
30
- return slug.includes(componentName) && slug.includes('mobile') && frontmatter.title != frontmatter.description
30
+ return slug.includes(componentName) && slug.includes('mobile') && frontmatter.title != frontmatter.description;
31
31
  }
32
- return slug.includes(componentName) && !slug.includes('mobile') && frontmatter.title != frontmatter.description
32
+ return slug.includes(componentName) && !slug.includes('mobile') && frontmatter.title != frontmatter.description;
33
33
  });
34
34
  const frontmatter = data[0]?.node.frontmatter;
35
35
  return frontmatter;
@@ -9,7 +9,8 @@ export function useHeaderItems() {
9
9
  edges {
10
10
  node {
11
11
  label
12
- link
12
+ link
13
+ img
13
14
  }
14
15
  }
15
16
  }
@@ -1,7 +1,7 @@
1
1
  export function debounce(func, delay = 100) {
2
2
  let timerId;
3
3
  return function () {
4
- clearTimeout(timerId)
5
- timerId = setTimeout(() => func.apply(this, arguments), delay)
4
+ clearTimeout(timerId);
5
+ timerId = setTimeout(() => func.apply(this, arguments), delay);
6
6
  };
7
- };
7
+ }
@@ -1,70 +1,108 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
 
3
- export const Components = () => <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
4
- <title>Group 15</title>
5
- <g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
6
- <g id="Landing-screen---Top-navigation" transform="translate(-744.000000, -640.000000)">
7
- <g id="Group-15" transform="translate(744.000000, 640.000000)">
8
- <g id="Group" fill="#F9E2E2">
9
- <circle id="Background" cx="24" cy="24" r="24"></circle>
10
- </g>
11
- <g id="widgets_black_24dp" transform="translate(12.000000, 12.000000)">
12
- <polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
13
- <path d="M13,14 L13,20 C13,20.55 13.45,21 14,21 L20,21 C20.55,21 21,20.55 21,20 L21,14 C21,13.45 20.55,13 20,13 L14,13 C13.45,13 13,13.45 13,14 Z M4,21 L10,21 C10.55,21 11,20.55 11,20 L11,14 C11,13.45 10.55,13 10,13 L4,13 C3.45,13 3,13.45 3,14 L3,20 C3,20.55 3.45,21 4,21 Z M3,4 L3,10 C3,10.55 3.45,11 4,11 L10,11 C10.55,11 11,10.55 11,10 L11,4 C11,3.45 10.55,3 10,3 L4,3 C3.45,3 3,3.45 3,4 Z M15.95,2.4 L11.7,6.64 C11.31,7.03 11.31,7.66 11.7,8.05 L15.95,12.3 C16.34,12.69 16.97,12.69 17.36,12.3 L21.61,8.05 C22,7.66 22,7.03 21.61,6.64 L17.37,2.4 C16.98,2.01 16.34,2.01 15.95,2.4 Z" id="Shape" fill="#D93737" fillRule="nonzero"></path>
3
+ export const Components = () => (
4
+ <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
5
+ <title>Group 15</title>
6
+ <g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
7
+ <g id="Landing-screen---Top-navigation" transform="translate(-744.000000, -640.000000)">
8
+ <g id="Group-15" transform="translate(744.000000, 640.000000)">
9
+ <g id="Group" fill="#F9E2E2">
10
+ <circle id="Background" cx="24" cy="24" r="24"></circle>
11
+ </g>
12
+ <g id="widgets_black_24dp" transform="translate(12.000000, 12.000000)">
13
+ <polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
14
+ <path
15
+ d="M13,14 L13,20 C13,20.55 13.45,21 14,21 L20,21 C20.55,21 21,20.55 21,20 L21,14 C21,13.45 20.55,13 20,13 L14,13 C13.45,13 13,13.45 13,14 Z M4,21 L10,21 C10.55,21 11,20.55 11,20 L11,14 C11,13.45 10.55,13 10,13 L4,13 C3.45,13 3,13.45 3,14 L3,20 C3,20.55 3.45,21 4,21 Z M3,4 L3,10 C3,10.55 3.45,11 4,11 L10,11 C10.55,11 11,10.55 11,10 L11,4 C11,3.45 10.55,3 10,3 L4,3 C3.45,3 3,3.45 3,4 Z M15.95,2.4 L11.7,6.64 C11.31,7.03 11.31,7.66 11.7,8.05 L15.95,12.3 C16.34,12.69 16.97,12.69 17.36,12.3 L21.61,8.05 C22,7.66 22,7.03 21.61,6.64 L17.37,2.4 C16.98,2.01 16.34,2.01 15.95,2.4 Z"
16
+ id="Shape"
17
+ fill="#D93737"
18
+ fillRule="nonzero"
19
+ ></path>
20
+ </g>
14
21
  </g>
15
22
  </g>
16
23
  </g>
17
- </g>
18
- </svg>
24
+ </svg>
25
+ );
19
26
 
20
- export const Foundations = () => <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
21
- <title>Group 13</title>
22
- <g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
23
- <g id="Landing-screen---Top-navigation" transform="translate(-150.000000, -640.000000)">
24
- <g id="Group-13" transform="translate(150.000000, 640.000000)">
25
- <circle id="Background" fill="#D7EFDF" cx="24" cy="24" r="24"></circle>
26
- <g id="apartment_black_24dp" transform="translate(12.000000, 12.000000)">
27
- <g id="Group">
28
- <rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
29
- <rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
27
+ export const Foundations = () => (
28
+ <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
29
+ <title>Group 13</title>
30
+ <g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
31
+ <g id="Landing-screen---Top-navigation" transform="translate(-150.000000, -640.000000)">
32
+ <g id="Group-13" transform="translate(150.000000, 640.000000)">
33
+ <circle id="Background" fill="#D7EFDF" cx="24" cy="24" r="24"></circle>
34
+ <g id="apartment_black_24dp" transform="translate(12.000000, 12.000000)">
35
+ <g id="Group">
36
+ <rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
37
+ <rect id="Rectangle" x="0" y="0" width="24" height="24"></rect>
38
+ </g>
39
+ <path
40
+ d="M17,11 L17,5 C17,3.9 16.1,3 15,3 L9,3 C7.9,3 7,3.9 7,5 L7,7 L5,7 C3.9,7 3,7.9 3,9 L3,19 C3,20.1 3.9,21 5,21 L10,21 C10.55,21 11,20.55 11,20 L11,17 L13,17 L13,20 C13,20.55 13.45,21 14,21 L19,21 C20.1,21 21,20.1 21,19 L21,13 C21,11.9 20.1,11 19,11 L17,11 Z M7,19 L5,19 L5,17 L7,17 L7,19 Z M7,15 L5,15 L5,13 L7,13 L7,15 Z M7,11 L5,11 L5,9 L7,9 L7,11 Z M11,15 L9,15 L9,13 L11,13 L11,15 Z M11,11 L9,11 L9,9 L11,9 L11,11 Z M11,7 L9,7 L9,5 L11,5 L11,7 Z M15,15 L13,15 L13,13 L15,13 L15,15 Z M15,11 L13,11 L13,9 L15,9 L15,11 Z M15,7 L13,7 L13,5 L15,5 L15,7 Z M19,19 L17,19 L17,17 L19,17 L19,19 Z M19,15 L17,15 L17,13 L19,13 L19,15 Z"
41
+ id="Shape"
42
+ fill="#2EA843"
43
+ fillRule="nonzero"
44
+ ></path>
30
45
  </g>
31
- <path d="M17,11 L17,5 C17,3.9 16.1,3 15,3 L9,3 C7.9,3 7,3.9 7,5 L7,7 L5,7 C3.9,7 3,7.9 3,9 L3,19 C3,20.1 3.9,21 5,21 L10,21 C10.55,21 11,20.55 11,20 L11,17 L13,17 L13,20 C13,20.55 13.45,21 14,21 L19,21 C20.1,21 21,20.1 21,19 L21,13 C21,11.9 20.1,11 19,11 L17,11 Z M7,19 L5,19 L5,17 L7,17 L7,19 Z M7,15 L5,15 L5,13 L7,13 L7,15 Z M7,11 L5,11 L5,9 L7,9 L7,11 Z M11,15 L9,15 L9,13 L11,13 L11,15 Z M11,11 L9,11 L9,9 L11,9 L11,11 Z M11,7 L9,7 L9,5 L11,5 L11,7 Z M15,15 L13,15 L13,13 L15,13 L15,15 Z M15,11 L13,11 L13,9 L15,9 L15,11 Z M15,7 L13,7 L13,5 L15,5 L15,7 Z M19,19 L17,19 L17,17 L19,17 L19,19 Z M19,15 L17,15 L17,13 L19,13 L19,15 Z" id="Shape" fill="#2EA843" fillRule="nonzero"></path>
32
46
  </g>
33
47
  </g>
34
48
  </g>
35
- </g>
36
- </svg>
49
+ </svg>
50
+ );
37
51
 
38
- export const Content = () => <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
39
- <title>Group 14</title>
40
- <g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
41
- <g id="Landing-screen---Top-navigation" transform="translate(-447.000000, -640.000000)">
42
- <g id="Group-14" transform="translate(447.000000, 640.000000)">
43
- <g id="Group" fill="#FDE6CE">
44
- <circle id="Background" cx="24" cy="24" r="24"></circle>
45
- </g>
46
- <g id="notes_black_24dp" transform="translate(12.000000, 12.000000)">
47
- <polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
48
- <path d="M20,11 L4,11 C3.45,11 3,11.45 3,12 C3,12.55 3.45,13 4,13 L20,13 C20.55,13 21,12.55 21,12 C21,11.45 20.55,11 20,11 Z M4,18 L14,18 C14.55,18 15,17.55 15,17 C15,16.45 14.55,16 14,16 L4,16 C3.45,16 3,16.45 3,17 C3,17.55 3.45,18 4,18 Z M20,6 L4,6 C3.45,6 3,6.45 3,7 L3,7.01 C3,7.56 3.45,8.01 4,8.01 L20,8.01 C20.55,8.01 21,7.56 21,7.01 L21,7 C21,6.45 20.55,6 20,6 Z" id="Shape" fill="#F07D00" fillRule="nonzero"></path>
52
+ export const Content = () => (
53
+ <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
54
+ <title>Group 14</title>
55
+ <g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
56
+ <g id="Landing-screen---Top-navigation" transform="translate(-447.000000, -640.000000)">
57
+ <g id="Group-14" transform="translate(447.000000, 640.000000)">
58
+ <g id="Group" fill="#FDE6CE">
59
+ <circle id="Background" cx="24" cy="24" r="24"></circle>
60
+ </g>
61
+ <g id="notes_black_24dp" transform="translate(12.000000, 12.000000)">
62
+ <polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
63
+ <path
64
+ d="M20,11 L4,11 C3.45,11 3,11.45 3,12 C3,12.55 3.45,13 4,13 L20,13 C20.55,13 21,12.55 21,12 C21,11.45 20.55,11 20,11 Z M4,18 L14,18 C14.55,18 15,17.55 15,17 C15,16.45 14.55,16 14,16 L4,16 C3.45,16 3,16.45 3,17 C3,17.55 3.45,18 4,18 Z M20,6 L4,6 C3.45,6 3,6.45 3,7 L3,7.01 C3,7.56 3.45,8.01 4,8.01 L20,8.01 C20.55,8.01 21,7.56 21,7.01 L21,7 C21,6.45 20.55,6 20,6 Z"
65
+ id="Shape"
66
+ fill="#F07D00"
67
+ fillRule="nonzero"
68
+ ></path>
69
+ </g>
49
70
  </g>
50
71
  </g>
51
72
  </g>
52
- </g>
53
- </svg>
73
+ </svg>
74
+ );
54
75
 
55
- export const Patterns = () => <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
56
- <title>Group 16</title>
57
- <g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
58
- <g id="Landing-screen---Top-navigation" transform="translate(-1041.000000, -640.000000)">
59
- <g id="Group-16" transform="translate(1041.000000, 640.000000)">
60
- <g id="Group" fill="#E0D8EE">
61
- <circle id="Background" cx="24" cy="24" r="24"></circle>
62
- </g>
63
- <g id="pattern_black_24dp" transform="translate(12.000000, 12.000000)">
64
- <polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
65
- <path d="M4,6 C4,4.9 4.9,4 6,4 C7.1,4 8,4.9 8,6 C8,7.1 7.1,8 6,8 C4.9,8 4,7.1 4,6 Z M6,14 C7.1,14 8,13.1 8,12 C8,10.9 7.1,10 6,10 C4.9,10 4,10.9 4,12 C4,13.1 4.9,14 6,14 Z M12,8 C13.1,8 14,7.1 14,6 C14,4.9 13.1,4 12,4 C10.9,4 10,4.9 10,6 C10,7.1 10.9,8 12,8 Z M18,10 C16.9,10 16,10.9 16,12 C16,13.1 16.9,14 18,14 C19.1,14 20,13.1 20,12 C20,10.9 19.1,10 18,10 Z M17.98,16 C17.24,16 16.61,16.4 16.26,17 L13.72,17 C13.38,16.4 12.74,16 12,16 C11.26,16 10.63,16.4 10.28,17 L8.41,17 L11.48,13.93 C11.65,13.97 11.82,14 12,14 C13.1,14 14,13.1 14,12 C14,11.82 13.97,11.65 13.93,11.49 L17.49,7.93 C17.65,7.97 17.82,8 18,8 C19.1,8 20,7.1 20,6 C20,4.9 19.1,4 18,4 C16.9,4 16,4.9 16,6 C16,6.18 16.03,6.35 16.07,6.51 L12.51,10.07 C12.35,10.03 12.18,10 12,10 C10.9,10 10,10.9 10,12 C10,12.18 10.03,12.35 10.07,12.51 L6.51,16.07 C6.35,16.03 6.18,16 6,16 C4.9,16 4,16.9 4,18 C4,19.1 4.9,20 6,20 C6.74,20 7.37,19.6 7.72,19 L10.29,19 C10.63,19.6 11.27,20 12.01,20 C12.75,20 13.38,19.6 13.73,19 L16.28,19 C16.62,19.6 17.26,20 18,20 C19.1,20 20,19.1 20,18 C19.98,16.9 19.08,16 17.98,16 Z" id="Shape" fill="#7A53B2" fillRule="nonzero"></path>
76
+ export const Patterns = () => (
77
+ <svg width="48px" height="48px" viewBox="0 0 48 48" version="1.1" xmlns="http://www.w3.org/2000/svg">
78
+ <title>Group 16</title>
79
+ <g id="Web" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
80
+ <g id="Landing-screen---Top-navigation" transform="translate(-1041.000000, -640.000000)">
81
+ <g id="Group-16" transform="translate(1041.000000, 640.000000)">
82
+ <g id="Group" fill="#E0D8EE">
83
+ <circle id="Background" cx="24" cy="24" r="24"></circle>
84
+ </g>
85
+ <g id="pattern_black_24dp" transform="translate(12.000000, 12.000000)">
86
+ <polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
87
+ <path
88
+ d="M4,6 C4,4.9 4.9,4 6,4 C7.1,4 8,4.9 8,6 C8,7.1 7.1,8 6,8 C4.9,8 4,7.1 4,6 Z M6,14 C7.1,14 8,13.1 8,12 C8,10.9 7.1,10 6,10 C4.9,10 4,10.9 4,12 C4,13.1 4.9,14 6,14 Z M12,8 C13.1,8 14,7.1 14,6 C14,4.9 13.1,4 12,4 C10.9,4 10,4.9 10,6 C10,7.1 10.9,8 12,8 Z M18,10 C16.9,10 16,10.9 16,12 C16,13.1 16.9,14 18,14 C19.1,14 20,13.1 20,12 C20,10.9 19.1,10 18,10 Z M17.98,16 C17.24,16 16.61,16.4 16.26,17 L13.72,17 C13.38,16.4 12.74,16 12,16 C11.26,16 10.63,16.4 10.28,17 L8.41,17 L11.48,13.93 C11.65,13.97 11.82,14 12,14 C13.1,14 14,13.1 14,12 C14,11.82 13.97,11.65 13.93,11.49 L17.49,7.93 C17.65,7.97 17.82,8 18,8 C19.1,8 20,7.1 20,6 C20,4.9 19.1,4 18,4 C16.9,4 16,4.9 16,6 C16,6.18 16.03,6.35 16.07,6.51 L12.51,10.07 C12.35,10.03 12.18,10 12,10 C10.9,10 10,10.9 10,12 C10,12.18 10.03,12.35 10.07,12.51 L6.51,16.07 C6.35,16.03 6.18,16 6,16 C4.9,16 4,16.9 4,18 C4,19.1 4.9,20 6,20 C6.74,20 7.37,19.6 7.72,19 L10.29,19 C10.63,19.6 11.27,20 12.01,20 C12.75,20 13.38,19.6 13.73,19 L16.28,19 C16.62,19.6 17.26,20 18,20 C19.1,20 20,19.1 20,18 C19.98,16.9 19.08,16 17.98,16 Z"
89
+ id="Shape"
90
+ fill="#7A53B2"
91
+ fillRule="nonzero"
92
+ ></path>
93
+ </g>
66
94
  </g>
67
95
  </g>
68
96
  </g>
69
- </g>
70
- </svg>
97
+ </svg>
98
+ );
99
+
100
+ export const Storybook = () => (
101
+ <svg width="20" height="15" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
102
+ <path
103
+ d="M18 13v6c0 .5304-.2107 1.0391-.5858 1.4142S16.5304 21 16 21H5c-.53043 0-1.03914-.2107-1.41421-.5858C3.21071 20.0391 3 19.5304 3 19V8c0-.53043.21071-1.03914.58579-1.41421C3.96086 6.21071 4.46957 6 5 6h6M15 3h6v6M10 14L21 3"
104
+ stroke-width="2"
105
+ stroke="#2f2f2f"
106
+ ></path>
107
+ </svg>
108
+ );
@@ -22,12 +22,8 @@ export function useNavItems(relativePagePath) {
22
22
 
23
23
  const headings = edges
24
24
  .filter(({ node }) => {
25
- const fileName =
26
- node.fileAbsolutePath.split('pages')[1];
27
- if (
28
- fileName === relativePagePath &&
29
- node.headings.length
30
- ) {
25
+ const fileName = node.fileAbsolutePath.split('pages')[1];
26
+ if (fileName === relativePagePath && node.headings.length) {
31
27
  return node;
32
28
  }
33
29
  })
@@ -5,7 +5,7 @@ export function useLogoItems() {
5
5
  allFile: { edges },
6
6
  } = useStaticQuery(graphql`
7
7
  query IMAGES {
8
- allFile(filter: {sourceInstanceName: {eq: "StaticImages"}}) {
8
+ allFile(filter: { sourceInstanceName: { eq: "StaticImages" } }) {
9
9
  edges {
10
10
  node {
11
11
  childImageSharp {
@@ -19,6 +19,6 @@ export function useLogoItems() {
19
19
  }
20
20
  }
21
21
  `);
22
- const data = edges.map((item) => item.node.childImageSharp)
22
+ const data = edges.map((item) => item.node.childImageSharp);
23
23
  return data;
24
24
  }
@@ -5,7 +5,7 @@ export default function MdsChangelog() {
5
5
  allMdx: { edges },
6
6
  } = useStaticQuery(graphql`
7
7
  query MDS_CHANGELOG {
8
- allMdx(filter: {frontmatter: {title: {eq: "Release notes"}}}) {
8
+ allMdx(filter: { frontmatter: { title: { eq: "Release notes" } } }) {
9
9
  edges {
10
10
  node {
11
11
  internal {
@@ -17,7 +17,7 @@ export default function MdsChangelog() {
17
17
  }
18
18
  }
19
19
  }
20
- }
20
+ }
21
21
  `);
22
22
 
23
23
  const items = edges.map(({ node }) => node);
@@ -25,18 +25,14 @@ export default function MdsChangelog() {
25
25
  const record = {
26
26
  version: '',
27
27
  releaseDate: '',
28
- updatesList: []
29
- }
28
+ updatesList: [],
29
+ };
30
30
 
31
31
  if (items.length > 0) {
32
-
33
32
  const metadata = items[0].headings[0].value;
34
33
 
35
34
  record.version = metadata.substring(0, metadata.indexOf('('));
36
- record.releaseDate = metadata.substring(
37
- metadata.indexOf("(") + 1,
38
- metadata.lastIndexOf(")")
39
- );
35
+ record.releaseDate = metadata.substring(metadata.indexOf('(') + 1, metadata.lastIndexOf(')'));
40
36
 
41
37
  const htmlContent = items[0].internal.content;
42
38
  const latestUpdate = htmlContent.split('\n----')[0];
@@ -49,7 +45,6 @@ export default function MdsChangelog() {
49
45
  updateList
50
46
  .filter((item) => item.includes(listSeparator))
51
47
  .map((item) => record.updatesList.push(item.split(listSeparator)));
52
-
53
48
  }
54
49
  return record;
55
50
  }
@@ -4,23 +4,23 @@ export default function MediumBlogs() {
4
4
  const {
5
5
  allMediumPost: { edges },
6
6
  } = useStaticQuery(graphql`
7
- query MEDIUM_BLOGS {
8
- allMediumPost(sort: {fields: [createdAt], order: DESC}) {
9
- edges {
10
- node {
11
- id
12
- title
13
- uniqueSlug
14
- firstPublishedAt
15
- author {
16
- name
17
- imageId
18
- }
7
+ query MEDIUM_BLOGS {
8
+ allMediumPost(sort: { fields: [createdAt], order: DESC }) {
9
+ edges {
10
+ node {
11
+ id
12
+ title
13
+ uniqueSlug
14
+ firstPublishedAt
15
+ author {
16
+ name
17
+ imageId
19
18
  }
20
19
  }
21
20
  }
22
21
  }
23
- `)
22
+ }
23
+ `);
24
24
 
25
25
  const items = edges.map(({ node }) => node);
26
26
  return items;
@@ -5,24 +5,24 @@ export function useNavItems(relativePagePath) {
5
5
  const {
6
6
  allNavYaml: { nodes },
7
7
  } = useStaticQuery(graphql`
8
- query LEFT_NAV_QUERY {
9
- allNavYaml {
10
- nodes {
11
- base
12
- menus {
8
+ query LEFT_NAV_QUERY {
9
+ allNavYaml {
10
+ nodes {
11
+ base
12
+ menus {
13
+ label
14
+ link
15
+ hideInMobile
16
+ hideInWeb
17
+ subMenu {
13
18
  label
14
19
  link
15
- hideInMobile
16
- hideInWeb
17
- subMenu {
18
- label
19
- link
20
- }
21
20
  }
22
21
  }
23
22
  }
24
23
  }
25
- `);
24
+ }
25
+ `);
26
26
 
27
27
  const getKey = (nodes, relativePath) => {
28
28
  const keys = nodes.map((elt) => {
@@ -47,7 +47,7 @@ export function useNavItems(relativePagePath) {
47
47
  });
48
48
 
49
49
  return value;
50
- }
50
+ };
51
51
 
52
52
  const pagePath = relativePagePath.includes(MOBILE)
53
53
  ? relativePagePath.split('/')[2]?.replace('.mdx', '')
@@ -59,7 +59,6 @@ export function useNavItems(relativePagePath) {
59
59
  return node.base === navPage;
60
60
  });
61
61
 
62
-
63
62
  const navItems = navData[0].menus.map((node) => {
64
63
  const menu = {
65
64
  ...node,
@@ -72,9 +71,7 @@ export function useNavItems(relativePagePath) {
72
71
  return {
73
72
  ...item,
74
73
  name: `${menu.name}.${item.label}`,
75
- link: relativePagePath.includes(MOBILE) && item.link
76
- ? `/mobile${item.link}`
77
- : item.link,
74
+ link: relativePagePath.includes(MOBILE) && item.link ? `/mobile${item.link}` : item.link,
78
75
  };
79
76
  });
80
77
  }
@@ -21,7 +21,7 @@ export function useSearchItems() {
21
21
 
22
22
  const searchList = edges.filter((item) => {
23
23
  const { title, description } = item.node.frontmatter;
24
- return title && description && title != description
25
- })
24
+ return title && description && title != description;
25
+ });
26
26
  return searchList;
27
27
  }
@@ -13,12 +13,10 @@ export function useGetStorybookData(componentName) {
13
13
  }
14
14
  }
15
15
  }
16
- }
16
+ }
17
17
  `);
18
18
 
19
- const list = edges.filter((item) =>
20
- item.node.key.includes(componentName.toLowerCase())
21
- )
19
+ const list = edges.filter((item) => item.node.key.includes(componentName.toLowerCase()));
22
20
  const result = JSON.parse(list[0].node.value);
23
21
  return result;
24
22
  }
@@ -1,9 +1,5 @@
1
1
  export const MOBILE = 'mobile';
2
- export const buttonVariants = [
3
- 'basic-button',
4
- 'alert-button',
5
- 'split-button',
6
- ];
2
+ export const buttonVariants = ['basic-button', 'alert-button', 'split-button'];
7
3
  export const avatarVariants = ['default-avatar', 'size'];
8
4
  export const copyMessage = 'Copy';
9
5
  export const copyMessageSuccess = 'Copied!';
@@ -19,10 +19,7 @@ const reducer = (state, action) => {
19
19
  }
20
20
  };
21
21
  export const NavContextProvider = ({ children }) => {
22
- const [
23
- { leftNavIsOpen, searchIsOpen, switcherIsOpen, leftNavScrollOffset },
24
- dispatch,
25
- ] = useReducer(reducer, {
22
+ const [{ leftNavIsOpen, searchIsOpen, switcherIsOpen, leftNavScrollOffset }, dispatch] = useReducer(reducer, {
26
23
  leftNavIsOpen: false,
27
24
  searchIsOpen: false,
28
25
  switcherIsOpen: false,
@@ -8,7 +8,7 @@ const useMetadata = () => {
8
8
  title
9
9
  description
10
10
  keywords
11
- isSearchEnabled
11
+ isSearchEnabled
12
12
  lang
13
13
  }
14
14
  }
@@ -1,5 +1,6 @@
1
1
  # !bin/sh
2
2
 
3
+ ./tools/changelog.sh &&
3
4
 
4
5
  ./tools/update-mds.sh &&
5
6
 
@@ -1 +1 @@
1
- cat tools/changeloghead.md node_modules/@innovaccer/design-system/CHANGELOG.md > site/src/pages/introduction/what\'s-new.mdx
1
+ cat tools/changeloghead.md ../CHANGELOG.md > src/pages/introduction/what\'s-new.mdx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovaccer/design-system",
3
- "version": "2.13.3",
3
+ "version": "2.13.4-2",
4
4
  "description": "React components library project for Innovaccer Design System",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.esm.js",
@@ -19,7 +19,7 @@
19
19
  "deploy-storybook": "storybook-to-aws-s3",
20
20
  "setup-css-dev": "./scripts/setup-local-css.sh",
21
21
  "pre-commit": "lint-staged",
22
- "lint:check": "eslint ./core --ext .tsx,.ts",
22
+ "lint:check": "eslint ./core --ext .tsx,.ts,.js,.jsx",
23
23
  "lint": "npm run lint:check -- --fix",
24
24
  "prettier:check": "prettier --config ./.prettierrc --check",
25
25
  "prettier": "prettier --config ./.prettierrc --write 'css/src/**/*.css'",
@@ -143,7 +143,7 @@
143
143
  ],
144
144
  "repository": "github:innovaccer/design-system",
145
145
  "lint-staged": {
146
- "core/**/*.{tx,tsx}": [
146
+ "core/**/*.{tx,tsx,js,jsx}": [
147
147
  "npm run lint:check"
148
148
  ],
149
149
  "css/src/**/*.css": [
@@ -1,11 +0,0 @@
1
- ---
2
- title: Components
3
- description: Components are the reusable building blocks of our design system. Each component meets a specific interaction or UI need, and has been specifically created to work together to create patterns and intuitive user experiences.
4
- tabs: ["All components", "Status"]
5
- showMobile: true
6
- ---
7
-
8
- import Overview from '../../data/components/Overview.js';
9
- import { data } from "../../data/components/index.js";
10
-
11
- <Overview data={data} />
@@ -1,7 +0,0 @@
1
- ---
2
- title: Button guidelines
3
- description: Use this guide to make your labels predictable and consequential. Your users depend on them, give it some thought and time.
4
- tabs: ['Confusing buttons', 'Button glossary']
5
- ---
6
-
7
- Use this guide to make your labels predictable and consequential. Your users depend on them, give it some thought and time.