@innovaccer/design-system 2.13.2 → 2.13.4-1

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 (243) hide show
  1. package/core/components/atoms/checkbox/__stories__/Alignment.story.jsx +11 -13
  2. package/core/components/atoms/dropdown/Dropdown.tsx +18 -2
  3. package/core/components/atoms/dropdown/DropdownList.tsx +47 -57
  4. package/core/components/atoms/dropdown/__stories__/LabelInline.story.jsx +58 -0
  5. package/core/components/atoms/dropdown/__stories__/{LabelPositionInDropdown.story.jsx → LabelOnTop.story.jsx} +8 -9
  6. package/core/components/atoms/dropdown/option/DefaultOption.tsx +1 -1
  7. package/core/components/atoms/dropdown/utility.tsx +6 -0
  8. package/core/components/atoms/icon/__stories__/variants/Image.story.jsx +3 -3
  9. package/core/components/css-utilities/Miscellaneous/Miscellaneous.story.tsx +4 -0
  10. package/core/components/molecules/dropzone/FileSelectorUtils.tsx +3 -0
  11. package/core/components/molecules/sidesheet/__stories__/variants/twoSteps.story.jsx +6 -4
  12. package/core/components/organisms/calendar/__stories__/index.story.jsx +4 -6
  13. package/core/components/organisms/dateRangePicker/__stories__/variants/withSingleInput.story.jsx +3 -0
  14. package/core/components/organisms/horizontalNav/__stories__/leftAlign.story.jsx +35 -19
  15. package/core/components/organisms/pageHeader/__stories__/Responsiveness.story.jsx +2 -2
  16. package/core/components/organisms/pageHeader/__stories__/variants/withNavigation.story.jsx +2 -2
  17. package/core/components/organisms/pageHeader/__stories__/variants/withNavigationL1.story.jsx +2 -2
  18. package/core/components/organisms/pageHeader/__stories__/variants/withStepper.story.jsx +2 -2
  19. package/core/components/organisms/pageHeader/__stories__/variants/withStepperL1.story.jsx +2 -2
  20. package/core/components/organisms/pageHeader/__stories__/variants/withTabs.story.jsx +2 -2
  21. package/core/components/organisms/pageHeader/__stories__/variants/withTabsL1.story.jsx +2 -2
  22. package/core/components/organisms/pageHeader/__stories__/withFilter.story.jsx +2 -2
  23. package/core/components/organisms/pageHeader/__stories__/withFilterL1.story.jsx +2 -2
  24. package/core/components/organisms/pageHeader/__stories__/withNavigation.story.jsx +2 -2
  25. package/core/components/organisms/pageHeader/__stories__/withNavigationL1.story.jsx +2 -2
  26. package/core/components/organisms/pageHeader/__stories__/withStepperL1.story.jsx +4 -4
  27. package/core/components/organisms/table/__stories__/TableAsDescriptionList.story.jsx +4 -4
  28. package/core/components/organisms/timePicker/TimePicker.tsx +6 -113
  29. package/core/components/organisms/timePicker/TimePickerWithInput.tsx +124 -0
  30. package/core/components/organisms/timePicker/TimePickerWithSearch.tsx +198 -0
  31. package/core/components/organisms/timePicker/__stories__/TimeIntervals.story.jsx +52 -0
  32. package/core/components/organisms/timePicker/__stories__/disabledOption.story.jsx +52 -0
  33. package/core/components/organisms/timePicker/__stories__/fromTo.story.jsx +72 -0
  34. package/core/components/organisms/timePicker/__stories__/showDuration.story.jsx +52 -0
  35. package/core/components/organisms/timePicker/__stories__/withDatePicker.story.jsx +88 -0
  36. package/core/components/organisms/timePicker/__stories__/{index.story.jsx → withInput.story.jsx} +6 -3
  37. package/core/components/organisms/timePicker/__stories__/withSearch.story.jsx +89 -0
  38. package/core/components/organisms/timePicker/__tests__/TimePickerWithSearch.test.tsx +486 -0
  39. package/core/components/organisms/timePicker/__tests__/__snapshots__/TimePickerWithSearch.test.tsx.snap +169 -0
  40. package/core/components/organisms/timePicker/index.tsx +2 -0
  41. package/core/components/organisms/timePicker/utility/searchUtils.tsx +295 -0
  42. package/core/components/organisms/timePicker/utility/timePickerUtility.tsx +219 -0
  43. package/core/components/organisms/timePicker/utils.tsx +1 -1
  44. package/core/index.tsx +1 -0
  45. package/css/dist/index.css +4 -10
  46. package/css/dist/index.css.map +1 -1
  47. package/css/src/components/dropdown.css +2 -6
  48. package/css/src/components/metricInput.css +1 -0
  49. package/css/src/components/modal.css +1 -2
  50. package/dist/core/components/atoms/dropdown/Dropdown.d.ts +2 -0
  51. package/dist/core/components/atoms/dropdown/DropdownList.d.ts +1 -0
  52. package/dist/core/components/atoms/dropdown/utility.d.ts +1 -0
  53. package/dist/core/components/atoms/popperWrapper/PopperWrapper.d.ts +22 -22
  54. package/dist/core/components/organisms/timePicker/TimePicker.d.ts +5 -13
  55. package/dist/core/components/organisms/timePicker/TimePickerWithInput.d.ts +24 -0
  56. package/dist/core/components/organisms/timePicker/TimePickerWithSearch.d.ts +32 -0
  57. package/dist/core/components/organisms/timePicker/index.d.ts +2 -0
  58. package/dist/core/components/organisms/timePicker/utility/searchUtils.d.ts +7 -0
  59. package/dist/core/components/organisms/timePicker/utility/timePickerUtility.d.ts +19 -0
  60. package/dist/core/index.d.ts +1 -0
  61. package/dist/index.esm.js +709 -46
  62. package/dist/index.js +638 -68
  63. package/dist/index.js.map +1 -1
  64. package/dist/index.umd.js +1 -1
  65. package/dist/index.umd.js.br +0 -0
  66. package/dist/index.umd.js.gz +0 -0
  67. package/docs/.eslintrc.json +32 -1
  68. package/docs/.prettierrc +6 -0
  69. package/docs/README.md +14 -0
  70. package/docs/cypress/e2e/main.cy.js +35 -0
  71. package/docs/cypress/fixtures/example.json +5 -0
  72. package/docs/cypress/support/commands.ts +37 -0
  73. package/docs/cypress/support/e2e.ts +20 -0
  74. package/docs/cypress.config.js +9 -0
  75. package/docs/package.json +16 -2
  76. package/docs/src/components/Colors/Colors.js +13 -41
  77. package/docs/src/components/Container/ComponentsContainer.js +10 -30
  78. package/docs/src/components/Container/Container.js +10 -41
  79. package/docs/src/components/ErrorBoundary.js +9 -3
  80. package/docs/src/components/Footer/Footer.js +11 -10
  81. package/docs/src/components/GlobalSearch/index.js +47 -44
  82. package/docs/src/components/Header/Header.css +4 -0
  83. package/docs/src/components/Header/Header.js +25 -19
  84. package/docs/src/components/Layout.js +110 -172
  85. package/docs/src/components/LeftNav/LeftNav.js +12 -28
  86. package/docs/src/components/Logos/Logos.js +12 -26
  87. package/docs/src/components/MDXHeading.js +12 -18
  88. package/docs/src/components/Meta.js +9 -9
  89. package/docs/src/components/PropsTable/ArgJsDoc.tsx +2 -6
  90. package/docs/src/components/PropsTable/ArgRow.tsx +19 -47
  91. package/docs/src/components/PropsTable/ArgValue.tsx +50 -93
  92. package/docs/src/components/PropsTable/EmptyBlock.tsx +2 -5
  93. package/docs/src/components/PropsTable/SectionRow.tsx +7 -18
  94. package/docs/src/components/PropsTable/Table.tsx +43 -130
  95. package/docs/src/components/PropsTable/generateImports.tsx +1 -3
  96. package/docs/src/components/PropsTable/index.js +94 -140
  97. package/docs/src/components/PropsTable/prism.css +19 -20
  98. package/docs/src/components/Rules/DONTs.js +1 -6
  99. package/docs/src/components/Rules/DOs.js +1 -6
  100. package/docs/src/components/Rules/IconWrapper.js +6 -7
  101. package/docs/src/components/Rules/InlineMessage.js +1 -5
  102. package/docs/src/components/Rules/Rules.js +18 -28
  103. package/docs/src/components/TableOfContent/TableOfContent.js +49 -54
  104. package/docs/src/components/css/global.css +1 -1
  105. package/docs/src/components/css/prism.css +1 -1
  106. package/docs/src/components/css/style.css +7 -3
  107. package/docs/src/components/templates/Default.js +1 -1
  108. package/docs/src/components/templates/Homepage.js +4 -6
  109. package/docs/src/data/components/Overview.js +49 -56
  110. package/docs/src/data/components/images/Calendar.png +0 -0
  111. package/docs/src/data/components/images/MetaList.png +0 -0
  112. package/docs/src/data/components/images/PageHeader.png +0 -0
  113. package/docs/src/data/components/images/TimePicker.png +0 -0
  114. package/docs/src/data/components/images/mobile/Badge.png +0 -0
  115. package/docs/src/data/components/images/mobile/Dropdown.png +0 -0
  116. package/docs/src/data/components/images/mobile/Message.png +0 -0
  117. package/docs/src/data/components/images/mobile/MetaList.png +0 -0
  118. package/docs/src/data/components/images/mobile/Slider.png +0 -0
  119. package/docs/src/data/components/images/mobile/StatusHint.png +0 -0
  120. package/docs/src/data/components/images/mobile/Stepper.png +0 -0
  121. package/docs/src/data/components/index.js +168 -321
  122. package/docs/src/data/components/mobile.js +85 -125
  123. package/docs/src/data/components/overview.css +4 -2
  124. package/docs/src/data/components/patterns.js +25 -59
  125. package/docs/src/data/header-items.yaml +1 -0
  126. package/docs/src/data/nav/components.yaml +1 -7
  127. package/docs/src/pages/404.js +7 -17
  128. package/docs/src/pages/components/avatar/usage.mdx +1 -0
  129. package/docs/src/pages/components/button/usage.mdx +2 -2
  130. package/docs/src/pages/components/calendar/usage.mdx +3 -3
  131. package/docs/src/pages/components/chips/images/actionchip-state.png +0 -0
  132. package/docs/src/pages/components/chips/images/inputchips-state.png +0 -0
  133. package/docs/src/pages/components/chips/images/selectionchip-state.png +0 -0
  134. package/docs/src/pages/components/chips/usage.mdx +24 -2
  135. package/docs/src/pages/components/datePicker/images/datePicker-3.png +0 -0
  136. package/docs/src/pages/components/datePicker/images/datePicker-6.png +0 -0
  137. package/docs/src/pages/components/datePicker/usage.mdx +9 -2
  138. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableField-2.png +0 -0
  139. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableField-3.png +0 -0
  140. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-1.png +0 -0
  141. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-4.png +0 -0
  142. package/docs/src/pages/components/inlineEditableFields/usage.mdx +4 -4
  143. package/docs/src/pages/components/inputs/usage.mdx +7 -7
  144. package/docs/src/pages/components/tabs/images/tabs-1.png +0 -0
  145. package/docs/src/pages/content/button-guidelines/tabs/button-glossary.mdx +1776 -1
  146. package/docs/src/pages/content/button-guidelines/tabs/confusing-buttons.mdx +479 -8
  147. package/docs/src/pages/content/email-guidelines.mdx +3 -3
  148. package/docs/src/pages/content/house-rules/tabs/date,-time-&-numbers.mdx +24 -0
  149. package/docs/src/pages/content/house-rules/tabs/grammer.mdx +42 -2
  150. package/docs/src/pages/content/house-rules/tabs/punctuations.mdx +32 -0
  151. package/docs/src/pages/foundations/colors.mdx +338 -24
  152. package/docs/src/pages/foundations/layout/index.mdx +57 -82
  153. package/docs/src/pages/foundations/response-time.mdx +32 -77
  154. package/docs/src/pages/index.js +92 -121
  155. package/docs/src/pages/mobile/components/badges/images/badge-1.png +0 -0
  156. package/docs/src/pages/mobile/components/badges/images/badge-2.png +0 -0
  157. package/docs/src/pages/mobile/components/badges/images/badge-3.png +0 -0
  158. package/docs/src/pages/mobile/components/badges/images/badge-4.png +0 -0
  159. package/docs/src/pages/mobile/components/badges/images/badge-5.png +0 -0
  160. package/docs/src/pages/mobile/components/badges/usage.mdx +100 -0
  161. package/docs/src/pages/mobile/components/card/images/mcard-1.png +0 -0
  162. package/docs/src/pages/mobile/components/card/images/mcard-2.png +0 -0
  163. package/docs/src/pages/mobile/components/card/images/mcard-3.png +0 -0
  164. package/docs/src/pages/mobile/components/card/images/mcard-4.png +0 -0
  165. package/docs/src/pages/mobile/components/card/images/mcard-5.png +0 -0
  166. package/docs/src/pages/mobile/components/card/images/mcard-6.png +0 -0
  167. package/docs/src/pages/mobile/components/card/usage.mdx +54 -67
  168. package/docs/src/pages/mobile/components/checkbox/images/checkbox-1.png +0 -0
  169. package/docs/src/pages/mobile/components/checkbox/usage.mdx +26 -2
  170. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-1.png +0 -0
  171. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-10.png +0 -0
  172. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-11.png +0 -0
  173. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-2.png +0 -0
  174. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-3.png +0 -0
  175. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-4.png +0 -0
  176. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-5.png +0 -0
  177. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-6.png +0 -0
  178. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-7.png +0 -0
  179. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-8.png +0 -0
  180. package/docs/src/pages/mobile/components/dropdowns/images/dropdown-9.png +0 -0
  181. package/docs/src/pages/mobile/components/dropdowns/usage.mdx +88 -0
  182. package/docs/src/pages/mobile/components/message/images/messages-1.png +0 -0
  183. package/docs/src/pages/mobile/components/message/images/messages-10.png +0 -0
  184. package/docs/src/pages/mobile/components/message/images/messages-11.png +0 -0
  185. package/docs/src/pages/mobile/components/message/images/messages-12.png +0 -0
  186. package/docs/src/pages/mobile/components/message/images/messages-2.png +0 -0
  187. package/docs/src/pages/mobile/components/message/images/messages-3.png +0 -0
  188. package/docs/src/pages/mobile/components/message/images/messages-4.png +0 -0
  189. package/docs/src/pages/mobile/components/message/images/messages-5.png +0 -0
  190. package/docs/src/pages/mobile/components/message/images/messages-6.png +0 -0
  191. package/docs/src/pages/mobile/components/message/images/messages-7.png +0 -0
  192. package/docs/src/pages/mobile/components/message/images/messages-8.png +0 -0
  193. package/docs/src/pages/mobile/components/message/images/messages-9.png +0 -0
  194. package/docs/src/pages/mobile/components/message/usage.mdx +170 -0
  195. package/docs/src/pages/mobile/components/metaList/images/metaList-1.png +0 -0
  196. package/docs/src/pages/mobile/components/metaList/images/metaList-2.png +0 -0
  197. package/docs/src/pages/mobile/components/metaList/images/metaList-3.png +0 -0
  198. package/docs/src/pages/mobile/components/metaList/images/metaList-4.png +0 -0
  199. package/docs/src/pages/mobile/components/metaList/usage.mdx +71 -0
  200. package/docs/src/pages/mobile/components/slider/images/slider-1.png +0 -0
  201. package/docs/src/pages/mobile/components/slider/images/slider-2.png +0 -0
  202. package/docs/src/pages/mobile/components/slider/images/slider-3.png +0 -0
  203. package/docs/src/pages/mobile/components/slider/images/slider-4.png +0 -0
  204. package/docs/src/pages/mobile/components/slider/images/slider-5.png +0 -0
  205. package/docs/src/pages/mobile/components/slider/usage.mdx +83 -0
  206. package/docs/src/pages/mobile/components/statusHint/images/statushint-1.png +0 -0
  207. package/docs/src/pages/mobile/components/statusHint/images/statushint-2.png +0 -0
  208. package/docs/src/pages/mobile/components/statusHint/images/statushint-3.png +0 -0
  209. package/docs/src/pages/mobile/components/statusHint/images/statushint-4.png +0 -0
  210. package/docs/src/pages/mobile/components/statusHint/images/statushint-5.png +0 -0
  211. package/docs/src/pages/mobile/components/statusHint/images/statushint-6.png +0 -0
  212. package/docs/src/pages/mobile/components/statusHint/images/statushint-7.png +0 -0
  213. package/docs/src/pages/mobile/components/statusHint/usage.mdx +108 -0
  214. package/docs/src/pages/mobile/components/steppers/images/stepper-1.png +0 -0
  215. package/docs/src/pages/mobile/components/steppers/images/stepper-2.png +0 -0
  216. package/docs/src/pages/mobile/components/steppers/images/stepper-3.png +0 -0
  217. package/docs/src/pages/mobile/components/steppers/images/stepper-4.png +0 -0
  218. package/docs/src/pages/mobile/components/steppers/images/stepper-5.png +0 -0
  219. package/docs/src/pages/mobile/components/steppers/images/stepper-6.png +0 -0
  220. package/docs/src/pages/mobile/components/steppers/usage.mdx +111 -0
  221. package/docs/src/pages/mobile/foundations/layout/images/layout-2.png +0 -0
  222. package/docs/src/pages/mobile/foundations/layout/index.mdx +3 -1
  223. package/docs/src/pages/mobile/foundations/page-types/index.mdx +0 -214
  224. package/docs/src/pages/mobile/foundations/spacing/index.mdx +5 -0
  225. package/docs/src/pages/mobile/foundations/typography.mdx +1 -1
  226. package/docs/src/pages/patterns/uiStates/usage.mdx +92 -0
  227. package/docs/src/util/Frontmatter.js +4 -4
  228. package/docs/src/util/HeaderItems.js +2 -1
  229. package/docs/src/util/Helpers.js +3 -3
  230. package/docs/src/util/HomeIcons.js +91 -53
  231. package/docs/src/util/InPageNavItems.js +2 -6
  232. package/docs/src/util/Logos.js +2 -2
  233. package/docs/src/util/MdsChangelog.js +5 -10
  234. package/docs/src/util/MediumBlogs.js +13 -13
  235. package/docs/src/util/NavItems.js +14 -17
  236. package/docs/src/util/Search.js +2 -2
  237. package/docs/src/util/StorybookData.js +2 -4
  238. package/docs/src/util/constants.js +1 -5
  239. package/docs/src/util/context/NavContext.js +1 -4
  240. package/docs/src/util/hooks/useMetadata.js +1 -1
  241. package/package.json +1 -1
  242. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-2.png +0 -0
  243. package/docs/src/pages/components/inlineEditableFields/images/inlineEditableFields-3.png +0 -0
@@ -1,477 +1,324 @@
1
-
2
1
  import React from 'react';
3
- import { StaticImage } from "gatsby-plugin-image";
2
+ import { StaticImage } from 'gatsby-plugin-image';
4
3
  import { Link } from 'gatsby';
5
4
 
6
5
  const imgStyle = {
7
- height: 'auto'
8
- }
6
+ height: 'auto',
7
+ };
9
8
 
10
9
  export const data = [
11
10
  {
12
11
  link: 'avatar/usage',
13
12
  design: 'Available',
14
- name: 'Avatars',
13
+ name: 'Avatar',
15
14
  code: 'Available',
16
- image: () => (
17
- <StaticImage
18
- src="./images/Avatar.png"
19
- alt="Avatars"
20
- imgStyle={imgStyle}
21
- />)
15
+ image: () => <StaticImage src="./images/Avatar.png" alt="Avatar" imgStyle={imgStyle} />,
22
16
  },
23
17
  {
24
18
  link: 'badges/usage',
25
- name: 'Badges',
26
- design: "Available",
27
- code: "Available",
28
- image: () => (
29
- <StaticImage
30
- src="./images/Badge.png"
31
- alt="Badges"
32
- imgStyle={imgStyle}
33
- />)
19
+ name: 'Badge',
20
+ design: 'Available',
21
+ code: 'Available',
22
+ image: () => <StaticImage src="./images/Badge.png" alt="Badge" imgStyle={imgStyle} />,
34
23
  },
35
24
  {
36
25
  link: 'breadcrumbs/usage',
37
26
  name: 'Breadcrumb',
38
- design: "Available",
39
- code: "Available",
40
- image: () => (
41
- <StaticImage
42
- src="./images/Breadcrumb.png"
43
- alt="Breadcrumbs"
44
- imgStyle={imgStyle}
45
- />)
27
+ design: 'Available',
28
+ code: 'Available',
29
+ image: () => <StaticImage src="./images/Breadcrumb.png" alt="Breadcrumb" imgStyle={imgStyle} />,
46
30
  },
47
31
  {
48
32
  link: 'button/usage',
49
33
  name: 'Buttons',
50
- design: "Available",
51
- code: "Available",
52
- image: () => (
53
- <StaticImage
54
- src="./images/Buttons.png"
55
- alt="Button"
56
- imgStyle={imgStyle}
57
- />)
34
+ design: 'Available',
35
+ code: 'Available',
36
+ image: () => <StaticImage src="./images/Buttons.png" alt="Buttons" imgStyle={imgStyle} />,
37
+ },
38
+ {
39
+ link: 'calendar/usage',
40
+ name: 'Calendar',
41
+ design: 'Available',
42
+ code: 'Available',
43
+ image: () => <StaticImage src="./images/Calendar.png" alt="Card" imgStyle={imgStyle} />,
58
44
  },
59
45
  {
60
46
  link: 'card/usage',
61
47
  name: 'Card',
62
- design: "Available",
63
- code: "Available",
64
- image: () => (
65
- <StaticImage
66
- src="./images/Cards.png"
67
- alt="Card"
68
- imgStyle={imgStyle}
69
- />)
48
+ design: 'Available',
49
+ code: 'Available',
50
+ image: () => <StaticImage src="./images/Cards.png" alt="Card" imgStyle={imgStyle} />,
70
51
  },
71
52
  {
72
53
  link: 'checkbox/usage',
73
54
  name: 'Checkbox',
74
- design: "Available",
75
- code: "Available",
76
- image: () => (
77
- <StaticImage
78
- src="./images/Checkbox.png"
79
- alt="Checkbox"
80
- imgStyle={imgStyle}
81
- />)
55
+ design: 'Available',
56
+ code: 'Available',
57
+ image: () => <StaticImage src="./images/Checkbox.png" alt="Checkbox" imgStyle={imgStyle} />,
82
58
  },
83
59
  {
84
60
  link: 'chips/usage',
85
61
  name: 'Chips',
86
- design: "Available",
87
- code: "Available",
88
- image: () => (
89
- <StaticImage
90
- src="./images/Chips.png"
91
- alt="Chip"
92
- imgStyle={imgStyle}
93
- />)
62
+ design: 'Available',
63
+ code: 'Available',
64
+ image: () => <StaticImage src="./images/Chips.png" alt="Chips" imgStyle={imgStyle} />,
94
65
  },
95
66
  {
96
67
  link: 'datePicker/usage',
97
- name: 'Date & Time Picker',
98
- design: "Available",
99
- code: "Available",
100
- image: () => (
101
- <StaticImage
102
- src="./images/Date&TimePicker.png"
103
- alt="Date and Time picker"
104
- imgStyle={imgStyle}
105
- />)
68
+ name: 'Date picker',
69
+ design: 'Available',
70
+ code: 'Available',
71
+ image: () => <StaticImage src="./images/Date&TimePicker.png" alt="Date picker" imgStyle={imgStyle} />,
106
72
  },
107
73
  {
108
74
  link: 'dividers/usage',
109
75
  name: 'Dividers',
110
- design: "Available",
111
- code: "Available",
112
- image: () => (
113
- <StaticImage
114
- src="./images/Dividers.png"
115
- alt="Dividers"
116
- imgStyle={imgStyle}
117
- />)
76
+ design: 'Available',
77
+ code: 'Available',
78
+ image: () => <StaticImage src="./images/Dividers.png" alt="Dividers" imgStyle={imgStyle} />,
118
79
  },
119
80
  {
120
81
  link: 'dropdowns/usage',
121
- name: 'Dropdown',
122
- design: "Available",
123
- code: "Available",
124
- image: () => (
125
- <StaticImage
126
- src="./images/Dropdowns.png"
127
- alt="Dropdown"
128
- imgStyle={imgStyle}
129
- />)
82
+ name: 'Dropdowns',
83
+ design: 'Available',
84
+ code: 'Available',
85
+ image: () => <StaticImage src="./images/Dropdowns.png" alt="Dropdowns" imgStyle={imgStyle} />,
130
86
  },
131
87
  {
132
88
  link: 'helpText/usage',
133
89
  name: 'Help text',
134
- design: "Available",
135
- code: "Unavailable",
136
- image: () => (
137
- <StaticImage
138
- src="./images/Helptext2.png"
139
- alt="Help text"
140
- imgStyle={imgStyle}
141
- />)
90
+ design: 'Available',
91
+ code: 'Unavailable',
92
+ image: () => <StaticImage src="./images/Helptext2.png" alt="Help text" imgStyle={imgStyle} />,
142
93
  },
143
94
  {
144
95
  link: 'icons/usage',
145
96
  name: 'Icons',
146
- design: "Available",
147
- code: "Available",
148
- image: () => (
149
- <StaticImage
150
- src="./images/Icons.png"
151
- alt="Icons"
152
- imgStyle={imgStyle}
153
- />)
154
- },
155
- {
156
- link: 'inputs/usage',
157
- name: 'Inputs',
158
- design: "Available",
159
- code: "Available",
160
- image: () => (
161
- <StaticImage
162
- src="./images/Inputs.png"
163
- alt="Inputs"
164
- imgStyle={imgStyle}
165
- />)
97
+ design: 'Available',
98
+ code: 'Available',
99
+ image: () => <StaticImage src="./images/Icons.png" alt="Icons" imgStyle={imgStyle} />,
166
100
  },
167
101
  {
168
102
  link: 'inlineEditableFields',
169
103
  name: 'Inline editable fields',
170
- design: "Available",
171
- code: "Available",
104
+ design: 'Available',
105
+ code: 'Available',
172
106
  image: () => (
173
- <StaticImage
174
- src="./images/InlineEditableField.png"
175
- alt="Inline editable fields"
176
- imgStyle={imgStyle}
177
- />)
107
+ <StaticImage src="./images/InlineEditableField.png" alt="Inline editable fields" imgStyle={imgStyle} />
108
+ ),
109
+ },
110
+ {
111
+ link: 'inputs/usage',
112
+ name: 'Inputs',
113
+ design: 'Available',
114
+ code: 'Available',
115
+ image: () => <StaticImage src="./images/Inputs.png" alt="Inputs" imgStyle={imgStyle} />,
178
116
  },
179
117
  {
180
118
  link: 'links/usage',
181
- name: 'Links',
182
- design: "Available",
183
- code: "Available",
184
- image: () => (
185
- <StaticImage
186
- src="./images/Link.png"
187
- alt="Link"
188
- imgStyle={imgStyle}
189
- />)
119
+ name: 'Link',
120
+ design: 'Available',
121
+ code: 'Available',
122
+ image: () => <StaticImage src="./images/Link.png" alt="Link" imgStyle={imgStyle} />,
190
123
  },
191
124
  {
192
125
  link: 'message/usage',
193
- name: 'Message',
194
- design: "Available",
195
- code: "Available",
196
- image: () => (
197
- <StaticImage
198
- src="./images/Message.png"
199
- alt="Message"
200
- imgStyle={imgStyle}
201
- />)
126
+ name: 'Messages',
127
+ design: 'Available',
128
+ code: 'Available',
129
+ image: () => <StaticImage src="./images/Message.png" alt="Messages" imgStyle={imgStyle} />,
130
+ },
131
+ {
132
+ link: 'metaList/usage',
133
+ name: 'Meta list',
134
+ design: 'Available',
135
+ code: 'Available',
136
+ image: () => <StaticImage src="./images/MetaList.png" alt="Meta list" imgStyle={imgStyle} />,
202
137
  },
203
138
  {
204
139
  link: 'modals/usage',
205
- name: 'Modal',
206
- design: "Available",
207
- code: "Available",
208
- image: () => (
209
- <StaticImage
210
- src="./images/Modal.png"
211
- alt="Modals"
212
- imgStyle={imgStyle}
213
- />)
140
+ name: 'Modals',
141
+ design: 'Available',
142
+ code: 'Available',
143
+ image: () => <StaticImage src="./images/Modal.png" alt="Modals" imgStyle={imgStyle} />,
214
144
  },
215
145
  {
216
-
217
146
  link: 'navigationHorizontal/usage',
218
147
  name: 'Navigation - Horizontal',
219
- design: "Available",
220
- code: "Available",
148
+ design: 'Available',
149
+ code: 'Available',
221
150
  image: () => (
222
- <StaticImage
223
- src="./images/NavigationHorizontal.png"
224
- alt="Navigation - Horizontal"
225
- imgStyle={imgStyle}
226
- />)
151
+ <StaticImage src="./images/NavigationHorizontal.png" alt="Navigation - Horizontal" imgStyle={imgStyle} />
152
+ ),
227
153
  },
228
154
  {
229
155
  link: 'navigationVertical/usage',
230
156
  name: 'Navigation - Vertical',
231
- design: "Available",
232
- code: "Available",
233
- image: () => (
234
- <StaticImage
235
- src="./images/NavigationVertical.png"
236
- alt="Navigation - Vertical"
237
- imgStyle={imgStyle}
238
- />)
157
+ design: 'Available',
158
+ code: 'Available',
159
+ image: () => <StaticImage src="./images/NavigationVertical.png" alt="Navigation - Vertical" imgStyle={imgStyle} />,
160
+ },
161
+ {
162
+ link: 'pageHeaders/usage',
163
+ name: 'Page Headers',
164
+ design: 'Available',
165
+ code: 'Available',
166
+ image: () => <StaticImage src="./images/PageHeader.png" alt="Page Headers" imgStyle={imgStyle} />,
239
167
  },
240
168
  {
241
169
  link: 'pagination/usage',
242
170
  name: 'Pagination',
243
- design: "Available",
244
- code: "Available",
245
- image: () => (
246
- <StaticImage
247
- src="./images/Pagination.png"
248
- alt="Pagination"
249
- imgStyle={imgStyle}
250
- />)
171
+ design: 'Available',
172
+ code: 'Available',
173
+ image: () => <StaticImage src="./images/Pagination.png" alt="Pagination" imgStyle={imgStyle} />,
251
174
  },
252
175
  {
253
176
  link: 'pills/usage',
254
- name: 'Pills',
255
- design: "Available",
256
- code: "Available",
257
- image: () => (
258
- <StaticImage
259
- src="./images/Pill.png"
260
- alt="Pill"
261
- imgStyle={imgStyle}
262
- />)
177
+ name: 'Pill',
178
+ design: 'Available',
179
+ code: 'Available',
180
+ image: () => <StaticImage src="./images/Pill.png" alt="Pill" imgStyle={imgStyle} />,
263
181
  },
264
182
  {
265
183
  link: 'popover/usage',
266
184
  name: 'Popover',
267
- design: "Available",
268
- code: "Available",
269
- image: () => (
270
- <StaticImage
271
- src="./images/Popover.png"
272
- alt="Popover"
273
- imgStyle={imgStyle}
274
- />)
185
+ design: 'Available',
186
+ code: 'Available',
187
+ image: () => <StaticImage src="./images/Popover.png" alt="Popover" imgStyle={imgStyle} />,
275
188
  },
276
189
  {
277
190
  link: 'progressIndicators/usage',
278
191
  name: 'Progress indicators',
279
- design: "Available",
280
- code: "Available",
281
- image: () => (
282
- <StaticImage
283
- src="./images/ProgressIndicators.png"
284
- alt="Progress indicators"
285
- imgStyle={imgStyle}
286
- />)
192
+ design: 'Available',
193
+ code: 'Available',
194
+ image: () => <StaticImage src="./images/ProgressIndicators.png" alt="Progress indicators" imgStyle={imgStyle} />,
287
195
  },
288
196
  {
289
197
  link: 'radio/usage',
290
198
  name: 'Radio',
291
- design: "Available",
292
- code: "Available",
293
- image: () => (
294
- <StaticImage
295
- src="./images/Radio.png"
296
- alt="Radio"
297
- imgStyle={imgStyle}
298
- />)
199
+ design: 'Available',
200
+ code: 'Available',
201
+ image: () => <StaticImage src="./images/Radio.png" alt="Radio" imgStyle={imgStyle} />,
299
202
  },
300
203
  {
301
204
  link: 'richTextEditor/usage',
302
205
  name: 'Rich text editor',
303
- design: "Available",
304
- code: "Available",
305
- image: () => (
306
- <StaticImage
307
- src="./images/RichTextEditor.png"
308
- alt="Rich text editor"
309
- imgStyle={imgStyle}
310
- />)
206
+ design: 'Available',
207
+ code: 'Available',
208
+ image: () => <StaticImage src="./images/RichTextEditor.png" alt="Rich text editor" imgStyle={imgStyle} />,
311
209
  },
312
210
  {
313
211
  link: 'sidesheet/usage',
314
212
  name: 'Sidesheet',
315
- design: "Available",
316
- code: "Available",
317
- image: () => (
318
- <StaticImage
319
- src="./images/Sidesheet.png"
320
- alt="SideSheet"
321
- imgStyle={imgStyle}
322
- />)
213
+ design: 'Available',
214
+ code: 'Available',
215
+ image: () => <StaticImage src="./images/Sidesheet.png" alt="Sidesheet" imgStyle={imgStyle} />,
323
216
  },
324
217
  {
325
218
  link: 'slider/usage',
326
- name: 'Slider',
327
- design: "Available",
328
- code: "Available",
329
- image: () => (
330
- <StaticImage
331
- src="./images/Slider.png"
332
- alt="Slider"
333
- imgStyle={imgStyle}
334
- />)
219
+ name: 'Sliders',
220
+ design: 'Available',
221
+ code: 'Available',
222
+ image: () => <StaticImage src="./images/Slider.png" alt="Sliders" imgStyle={imgStyle} />,
335
223
  },
336
224
  {
337
225
  link: 'statusHint/usage',
338
- name: 'Status hints',
339
- design: "Available",
340
- code: "Available",
341
- image: () => (
342
- <StaticImage
343
- src="./images/Status.png"
344
- alt="Status hint"
345
- imgStyle={imgStyle}
346
- />)
226
+ name: 'Status hint',
227
+ design: 'Available',
228
+ code: 'Available',
229
+ image: () => <StaticImage src="./images/Status.png" alt="Status hint" imgStyle={imgStyle} />,
347
230
  },
348
231
  {
349
232
  link: 'steppers/usage',
350
- name: 'Steppers',
351
- design: "Available",
352
- code: "Available",
353
- image: () => (
354
- <StaticImage
355
- src="./images/Steppers.png"
356
- alt="Steppers"
357
- imgStyle={imgStyle}
358
- />)
233
+ name: 'Stepper',
234
+ design: 'Available',
235
+ code: 'Available',
236
+ image: () => <StaticImage src="./images/Steppers.png" alt="Stepper" imgStyle={imgStyle} />,
359
237
  },
360
238
  {
361
239
  link: 'switch/usage',
362
240
  name: 'Switch',
363
- design: "Available",
364
- code: "Available",
365
- image: () => (
366
- <StaticImage
367
- src="./images/Switch.png"
368
- alt="Switch"
369
- imgStyle={imgStyle}
370
- />)
241
+ design: 'Available',
242
+ code: 'Available',
243
+ image: () => <StaticImage src="./images/Switch.png" alt="Switch" imgStyle={imgStyle} />,
371
244
  },
372
245
  {
373
246
  link: 'table/usage',
374
- name: 'Table',
375
- design: "Available",
376
- code: "Available",
377
- image: () => (
378
- <StaticImage
379
- src="./images/Table.png"
380
- alt="Table"
381
- imgStyle={imgStyle}
382
- />)
247
+ name: 'Tables',
248
+ design: 'Available',
249
+ code: 'Available',
250
+ image: () => <StaticImage src="./images/Table.png" alt="Tables" imgStyle={imgStyle} />,
383
251
  },
384
252
  {
385
253
  link: 'tabs/usage',
386
254
  name: 'Tabs',
387
- design: "Available",
388
- code: "Available",
389
- image: () => (
390
- <StaticImage
391
- src="./images/Tabs.png"
392
- alt="Tabs"
393
- imgStyle={imgStyle}
394
- />)
255
+ design: 'Available',
256
+ code: 'Available',
257
+ image: () => <StaticImage src="./images/Tabs.png" alt="Tabs" imgStyle={imgStyle} />,
258
+ },
259
+ {
260
+ link: 'timePicker/usage',
261
+ name: 'Time picker',
262
+ design: 'Available',
263
+ code: 'Available',
264
+ image: () => <StaticImage src="./images/TimePicker.png" alt="Time Picker" imgStyle={imgStyle} />,
395
265
  },
396
266
  {
397
267
  link: 'toast/usage',
398
268
  name: 'Toast',
399
- design: "Available",
400
- code: "Available",
401
- image: () => (
402
- <StaticImage
403
- src="./images/Toast.png"
404
- alt="Toast"
405
- imgStyle={imgStyle}
406
- />)
269
+ design: 'Available',
270
+ code: 'Available',
271
+ image: () => <StaticImage src="./images/Toast.png" alt="Toast" imgStyle={imgStyle} />,
407
272
  },
408
273
  {
409
274
  link: 'tooltip/usage',
410
275
  name: 'Tooltip',
411
- design: "Available",
412
- code: "Available",
413
- image: () => (
414
- <StaticImage
415
- src="./images/Tooltip.png"
416
- alt="Tooltip"
417
- imgStyle={imgStyle}
418
- />)
419
- }
276
+ design: 'Available',
277
+ code: 'Available',
278
+ image: () => <StaticImage src="./images/Tooltip.png" alt="Tooltip" imgStyle={imgStyle} />,
279
+ },
420
280
  ];
421
281
 
422
-
423
282
  export const schema = [
424
283
  {
425
- name: "name",
426
- displayName: "Component Name",
427
- width: "40%",
284
+ name: 'name',
285
+ displayName: 'Component Name',
286
+ width: '40%',
428
287
  sorting: false,
429
288
  cellRenderer: ({ data }) => {
430
- return <Link
431
- className='Text--link card-link'
432
- to={`/components/${data.link}`}
433
- >
434
- {data.name}
435
- </Link>;
289
+ return (
290
+ <Link className="Text--link card-link" to={`/components/${data.link}`}>
291
+ {data.name}
292
+ </Link>
293
+ );
436
294
  },
437
295
  },
438
296
  {
439
- name: "design",
440
- displayName: "Design",
441
- width: "30%",
442
- cellType: "STATUS_HINT",
297
+ name: 'design',
298
+ displayName: 'Design',
299
+ width: '30%',
300
+ cellType: 'STATUS_HINT',
443
301
  sorting: false,
444
302
  translate: (a) => {
445
303
  const design = a.design;
446
304
  return {
447
305
  title: design,
448
- statusAppearance:
449
- design === "Available"
450
- ? "success"
451
- : design === "Unavailable"
452
- ? "alert"
453
- : "info",
306
+ statusAppearance: design === 'Available' ? 'success' : design === 'Unavailable' ? 'alert' : 'info',
454
307
  };
455
308
  },
456
309
  },
457
310
  {
458
- name: "code",
459
- displayName: "Code",
460
- width: "30%",
461
- cellType: "STATUS_HINT",
311
+ name: 'code',
312
+ displayName: 'Code',
313
+ width: '30%',
314
+ cellType: 'STATUS_HINT',
462
315
  sorting: false,
463
316
  translate: (a) => {
464
317
  const code = a.code;
465
318
  return {
466
319
  title: code,
467
- statusAppearance:
468
- code === "Available"
469
- ? "success"
470
- : code === "Unavailable"
471
- ? "alert"
472
- : "info",
320
+ statusAppearance: code === 'Available' ? 'success' : code === 'Unavailable' ? 'alert' : 'info',
473
321
  };
474
322
  },
475
323
  },
476
324
  ];
477
-