@nuskin/foundation-ui-components 1.33.0-1253-feature.3 → 2.0.0

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 (371) hide show
  1. package/dist/index.d.mts +1221 -0
  2. package/dist/index.d.ts +1221 -0
  3. package/dist/index.js +1 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +1 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +33 -10
  8. package/src/common/accordion/NsAccordion.tsx +0 -82
  9. package/src/common/accordion/NsAccordionHeader.tsx +0 -85
  10. package/src/common/accordion/NsAccordionItem.tsx +0 -65
  11. package/src/common/accordion/NsCollapse.tsx +0 -121
  12. package/src/common/accordion/NsToggleSection.tsx +0 -50
  13. package/src/common/accordion/ToggleSection.styled.tsx +0 -32
  14. package/src/common/accordion/colorMap.ts +0 -60
  15. package/src/common/accordion/enums.ts +0 -18
  16. package/src/common/accordion/index.ts +0 -7
  17. package/src/common/accordion/specs/NsAccordion.spec.tsx +0 -183
  18. package/src/common/accordion/specs/NsAccordionHeader.spec.tsx +0 -172
  19. package/src/common/accordion/specs/NsAccordionItem.spec.tsx +0 -79
  20. package/src/common/accordion/specs/NsCollapse.spec.tsx +0 -130
  21. package/src/common/accordion/specs/NsToggleSection.spec.tsx +0 -74
  22. package/src/common/accordion/stories/NsAccordion.stories.tsx +0 -65
  23. package/src/common/accordion/stories/NsAccordionHeader.stories.tsx +0 -44
  24. package/src/common/accordion/stories/NsAccordionItem.stories.tsx +0 -48
  25. package/src/common/accordion/stories/NsCollapse.stories.tsx +0 -53
  26. package/src/common/accordion/stories/NsToggleSection.stories.tsx +0 -27
  27. package/src/common/accordion/stories/data.tsx +0 -145
  28. package/src/common/accordion/types.d.ts +0 -90
  29. package/src/common/alert/Header.tsx +0 -29
  30. package/src/common/alert/NsAlert.spec.tsx +0 -167
  31. package/src/common/alert/NsAlert.stories.tsx +0 -45
  32. package/src/common/alert/NsAlert.styled.tsx +0 -114
  33. package/src/common/alert/NsAlert.tsx +0 -93
  34. package/src/common/alert/index.ts +0 -2
  35. package/src/common/alert/types.d.ts +0 -45
  36. package/src/common/auth-dropdown/NsAuthDropdown.spec.tsx +0 -54
  37. package/src/common/auth-dropdown/NsAuthDropdown.stories.tsx +0 -25
  38. package/src/common/auth-dropdown/NsAuthDropdown.styled.ts +0 -120
  39. package/src/common/auth-dropdown/NsAuthDropdown.tsx +0 -72
  40. package/src/common/auth-dropdown/index.ts +0 -2
  41. package/src/common/auth-dropdown/types.d.ts +0 -11
  42. package/src/common/autocomplete/NsAutocomplete.spec.tsx +0 -91
  43. package/src/common/autocomplete/NsAutocomplete.styled.tsx +0 -24
  44. package/src/common/autocomplete/NsAutocomplete.tsx +0 -225
  45. package/src/common/autocomplete/helper/LineLoader.tsx +0 -38
  46. package/src/common/autocomplete/helper/RecentClearAll.tsx +0 -43
  47. package/src/common/autocomplete/helper/SeeMoreButton.tsx +0 -68
  48. package/src/common/autocomplete/helper/index.ts +0 -4
  49. package/src/common/autocomplete/helper/renderGroupName.tsx +0 -26
  50. package/src/common/autocomplete/index.ts +0 -2
  51. package/src/common/autocomplete/mock/Mock.styled.tsx +0 -23
  52. package/src/common/autocomplete/mock/MockData.ts +0 -89
  53. package/src/common/autocomplete/mock/MockUI.tsx +0 -26
  54. package/src/common/autocomplete/stories/NoCloseAutoComplete.tsx +0 -49
  55. package/src/common/autocomplete/stories/NsAutocomplete.stories.tsx +0 -78
  56. package/src/common/autocomplete/stories/RenderAutoComplete.tsx +0 -60
  57. package/src/common/autocomplete/types.d.ts +0 -67
  58. package/src/common/banner/NsBanner.spec.tsx +0 -28
  59. package/src/common/banner/NsBanner.stories.tsx +0 -47
  60. package/src/common/banner/NsBanner.styled.tsx +0 -24
  61. package/src/common/banner/NsBanner.tsx +0 -32
  62. package/src/common/banner/index.ts +0 -2
  63. package/src/common/banner/types.d.ts +0 -14
  64. package/src/common/brand-components/NsBrand.stories.tsx +0 -26
  65. package/src/common/brand-components/NsBrandComponent.spec.tsx +0 -47
  66. package/src/common/brand-components/NsBrandComponent.tsx +0 -33
  67. package/src/common/brand-components/NsBrandContainer.styled.tsx +0 -10
  68. package/src/common/brand-components/icons/Logo.spec.tsx +0 -84
  69. package/src/common/brand-components/icons/NSLogoHorizontal.tsx +0 -70
  70. package/src/common/brand-components/icons/NSLogoMark.tsx +0 -39
  71. package/src/common/brand-components/icons/NSLogoPoweredBy.tsx +0 -103
  72. package/src/common/brand-components/icons/NSLogoStacked.tsx +0 -57
  73. package/src/common/brand-components/icons/NSWordMark.tsx +0 -60
  74. package/src/common/brand-components/index.ts +0 -2
  75. package/src/common/brand-components/types.d.ts +0 -11
  76. package/src/common/breadcrumb/NsBreadcrumb.spec.tsx +0 -28
  77. package/src/common/breadcrumb/NsBreadcrumb.stories.tsx +0 -39
  78. package/src/common/breadcrumb/NsBreadcrumb.styled.tsx +0 -36
  79. package/src/common/breadcrumb/NsBreadcrumb.tsx +0 -85
  80. package/src/common/breadcrumb/data.ts +0 -10
  81. package/src/common/breadcrumb/index.ts +0 -2
  82. package/src/common/breadcrumb/types.d.ts +0 -14
  83. package/src/common/button/NsButton.spec.tsx +0 -94
  84. package/src/common/button/NsButton.stories.tsx +0 -118
  85. package/src/common/button/NsButton.styled.tsx +0 -57
  86. package/src/common/button/NsButton.tsx +0 -48
  87. package/src/common/button/__snapshots__/NsButton.spec.tsx.snap +0 -120
  88. package/src/common/button/helper.ts +0 -84
  89. package/src/common/button/index.ts +0 -2
  90. package/src/common/button/types.d.ts +0 -26
  91. package/src/common/card/CardButton.tsx +0 -58
  92. package/src/common/card/NsAwardCard.tsx +0 -71
  93. package/src/common/card/NsBgCard.tsx +0 -26
  94. package/src/common/card/NsBrandCard.tsx +0 -88
  95. package/src/common/card/NsBrandLogo.tsx +0 -16
  96. package/src/common/card/NsBrandWrapper.tsx +0 -25
  97. package/src/common/card/NsCheckoutCard.tsx +0 -107
  98. package/src/common/card/NsHeroCardLevel1.tsx +0 -105
  99. package/src/common/card/NsHeroCardLevel2.tsx +0 -95
  100. package/src/common/card/NsIconText.tsx +0 -165
  101. package/src/common/card/NsLargeCard.tsx +0 -108
  102. package/src/common/card/NsMediumCard.tsx +0 -110
  103. package/src/common/card/NsPost.tsx +0 -78
  104. package/src/common/card/NsSmallFullCard.tsx +0 -93
  105. package/src/common/card/NsXLargeCard.tsx +0 -89
  106. package/src/common/card/cardSizes.ts +0 -12
  107. package/src/common/card/fixtures/ImageData1.ts +0 -38
  108. package/src/common/card/fixtures/ImageData2.ts +0 -38
  109. package/src/common/card/index.ts +0 -15
  110. package/src/common/card/specs/BrandLogo.spec.tsx +0 -13
  111. package/src/common/card/specs/NsAwardCard.spec.tsx +0 -29
  112. package/src/common/card/specs/NsBgCard.spec.tsx +0 -23
  113. package/src/common/card/specs/NsBrandCard.spec.tsx +0 -84
  114. package/src/common/card/specs/NsCheckoutCard.spec.tsx +0 -39
  115. package/src/common/card/specs/NsHeroCardLevel1.spec.tsx +0 -39
  116. package/src/common/card/specs/NsHeroCardLevel2.spec.tsx +0 -49
  117. package/src/common/card/specs/NsIconText.spec.tsx +0 -25
  118. package/src/common/card/specs/NsLargeCard.spec.tsx +0 -47
  119. package/src/common/card/specs/NsMediumCard.spec.tsx +0 -51
  120. package/src/common/card/specs/NsPost.spec.tsx +0 -28
  121. package/src/common/card/specs/NsSmallFullCard.spec.tsx +0 -47
  122. package/src/common/card/specs/NsXLargeCard.spec.tsx +0 -47
  123. package/src/common/card/stories/NsAwardCard.stories.tsx +0 -21
  124. package/src/common/card/stories/NsBrandCard.stories.tsx +0 -32
  125. package/src/common/card/stories/NsCheckoutCard.stories.tsx +0 -23
  126. package/src/common/card/stories/NsHeroCardLevel1.stories.tsx +0 -30
  127. package/src/common/card/stories/NsHeroCardLevel2.stories.tsx +0 -29
  128. package/src/common/card/stories/NsIconText.stories.tsx +0 -18
  129. package/src/common/card/stories/NsLargeCard.stories.tsx +0 -32
  130. package/src/common/card/stories/NsMediumCard.stories.tsx +0 -34
  131. package/src/common/card/stories/NsPost.stories.tsx +0 -20
  132. package/src/common/card/stories/NsSmallFullCard.stories.tsx +0 -31
  133. package/src/common/card/stories/NsXLargeCard.stories.tsx +0 -32
  134. package/src/common/card/stories/data.ts +0 -43
  135. package/src/common/card/types.d.ts +0 -25
  136. package/src/common/carousal/CarousalControl.tsx +0 -47
  137. package/src/common/carousal/IconWrapper.tsx +0 -33
  138. package/src/common/carousal/NsCarousal.tsx +0 -65
  139. package/src/common/carousal/NsScrollingCarousal.tsx +0 -60
  140. package/src/common/carousal/RenderBrand.tsx +0 -20
  141. package/src/common/carousal/index.ts +0 -5
  142. package/src/common/carousal/slickSetting.ts +0 -61
  143. package/src/common/carousal/specs/Chevron.spec.tsx +0 -10
  144. package/src/common/carousal/specs/NsCarousal.spec.tsx +0 -112
  145. package/src/common/carousal/specs/NsScrollingCarousal.spec.tsx +0 -63
  146. package/src/common/carousal/specs/RenderBrand.spec.tsx +0 -22
  147. package/src/common/carousal/stories/NsCarousal1.stories.tsx +0 -34
  148. package/src/common/carousal/stories/NsScrollingCarousal.stories.tsx +0 -80
  149. package/src/common/carousal/types.d.ts +0 -23
  150. package/src/common/cart-icon/NsCartIcon.spec.tsx +0 -19
  151. package/src/common/cart-icon/NsCartIcon.stories.tsx +0 -28
  152. package/src/common/cart-icon/NsCartIcon.styled.tsx +0 -15
  153. package/src/common/cart-icon/NsCartIcon.tsx +0 -24
  154. package/src/common/cart-icon/index.ts +0 -2
  155. package/src/common/cart-icon/types.d.ts +0 -8
  156. package/src/common/checkbox/NsCheckbox.spec.tsx +0 -57
  157. package/src/common/checkbox/NsCheckbox.stories.tsx +0 -55
  158. package/src/common/checkbox/NsCheckbox.styled.tsx +0 -55
  159. package/src/common/checkbox/NsCheckbox.tsx +0 -68
  160. package/src/common/checkbox/index.ts +0 -2
  161. package/src/common/checkbox/types.d.ts +0 -20
  162. package/src/common/column-control/NsColumnControl.tsx +0 -64
  163. package/src/common/column-control/NsFlexColumns.tsx +0 -29
  164. package/src/common/column-control/NsGridColumns.tsx +0 -29
  165. package/src/common/column-control/index.ts +0 -4
  166. package/src/common/column-control/specs/NsColumnControl.spec.tsx +0 -24
  167. package/src/common/column-control/specs/NsFlexColumns.spec.tsx +0 -24
  168. package/src/common/column-control/specs/NsGridColumns.spec.tsx +0 -24
  169. package/src/common/column-control/stories/DivArray.stories.tsx +0 -18
  170. package/src/common/column-control/stories/DivArray.tsx +0 -63
  171. package/src/common/column-control/stories/NsColumnControl.stories.tsx +0 -65
  172. package/src/common/column-control/stories/NsFlexColumns.stories.tsx +0 -66
  173. package/src/common/column-control/stories/NsGridColumns.stories.tsx +0 -75
  174. package/src/common/column-control/stories/common.tsx +0 -14
  175. package/src/common/column-control/styled/StyledFlex.tsx +0 -46
  176. package/src/common/column-control/styled/StyledGrid.tsx +0 -41
  177. package/src/common/column-control/styled/common.ts +0 -27
  178. package/src/common/column-control/types.d.ts +0 -46
  179. package/src/common/column-control/utils.ts +0 -66
  180. package/src/common/common.types.d.ts +0 -21
  181. package/src/common/dropdown/NsDropdown.spec.tsx +0 -126
  182. package/src/common/dropdown/NsDropdown.styled.tsx +0 -66
  183. package/src/common/dropdown/NsDropdown.tsx +0 -94
  184. package/src/common/dropdown/NsDropdownOption.tsx +0 -13
  185. package/src/common/dropdown/index.ts +0 -3
  186. package/src/common/dropdown/stories/NsDropdown.stories.tsx +0 -67
  187. package/src/common/dropdown/stories/NsDropdownCountry.stories.tsx +0 -64
  188. package/src/common/dropdown/types.d.ts +0 -23
  189. package/src/common/email-simple/NsEmailSimple.spec.tsx +0 -115
  190. package/src/common/email-simple/NsEmailSimple.stories.tsx +0 -61
  191. package/src/common/email-simple/NsEmailSimple.tsx +0 -72
  192. package/src/common/email-simple/index.ts +0 -2
  193. package/src/common/email-simple/types.d.ts +0 -14
  194. package/src/common/flag/NsFlag.spec.tsx +0 -27
  195. package/src/common/flag/NsFlag.stories.tsx +0 -22
  196. package/src/common/flag/NsFlag.styled.tsx +0 -73
  197. package/src/common/flag/NsFlag.tsx +0 -24
  198. package/src/common/flag/index.ts +0 -2
  199. package/src/common/flag/types.d.ts +0 -16
  200. package/src/common/hooks/index.ts +0 -2
  201. package/src/common/hooks/specs/useWindowSize.spec.tsx +0 -19
  202. package/src/common/hooks/useAccordionMap.tsx +0 -39
  203. package/src/common/hooks/useOnClickOutside.tsx +0 -25
  204. package/src/common/hooks/useWindowSize.tsx +0 -30
  205. package/src/common/icon/NsIcon.spec.tsx +0 -51
  206. package/src/common/icon/NsIcon.stories.tsx +0 -77
  207. package/src/common/icon/NsIcon.styled.tsx +0 -27
  208. package/src/common/icon/NsIcon.tsx +0 -44
  209. package/src/common/icon/NsIconVariants.ts +0 -56
  210. package/src/common/icon/icons/AlertErrorIcon.tsx +0 -48
  211. package/src/common/icon/icons/ArrowDown.tsx +0 -23
  212. package/src/common/icon/icons/ArrowLeft.tsx +0 -38
  213. package/src/common/icon/icons/ArrowRight.tsx +0 -39
  214. package/src/common/icon/icons/ArrowUp.tsx +0 -20
  215. package/src/common/icon/icons/Cart.tsx +0 -23
  216. package/src/common/icon/icons/CartBadge.tsx +0 -47
  217. package/src/common/icon/icons/Check.tsx +0 -30
  218. package/src/common/icon/icons/CheckShield.tsx +0 -24
  219. package/src/common/icon/icons/CheckVerified.tsx +0 -27
  220. package/src/common/icon/icons/ChevronRight.tsx +0 -31
  221. package/src/common/icon/icons/CloseIcon.tsx +0 -27
  222. package/src/common/icon/icons/ErrorIcon.tsx +0 -30
  223. package/src/common/icon/icons/HamburgerIcon.tsx +0 -35
  224. package/src/common/icon/icons/InfoFilled.tsx +0 -21
  225. package/src/common/icon/icons/InfoOutlined.tsx +0 -42
  226. package/src/common/icon/icons/RoundedClose.tsx +0 -31
  227. package/src/common/icon/icons/SearchIcon.tsx +0 -32
  228. package/src/common/icon/icons/SlashIcon.tsx +0 -22
  229. package/src/common/icon/icons/SuccessIcon.tsx +0 -40
  230. package/src/common/icon/icons/TrashIcon.tsx +0 -32
  231. package/src/common/icon/icons/UserIcon.tsx +0 -37
  232. package/src/common/icon/icons/UserOutline.tsx +0 -29
  233. package/src/common/icon/icons/WarningIcon.tsx +0 -48
  234. package/src/common/icon/icons/error.svg +0 -3
  235. package/src/common/icon/icons/home.tsx +0 -19
  236. package/src/common/icon/icons/search.svg +0 -3
  237. package/src/common/icon/icons/success.svg +0 -10
  238. package/src/common/icon/icons/trash.svg +0 -3
  239. package/src/common/icon/index.ts +0 -3
  240. package/src/common/icon/types.d.ts +0 -53
  241. package/src/common/image/BynderMedia.spec.tsx +0 -42
  242. package/src/common/image/BynderMedia.tsx +0 -49
  243. package/src/common/image/NsImage.spec.tsx +0 -60
  244. package/src/common/image/NsImage.stories.tsx +0 -46
  245. package/src/common/image/NsImage.tsx +0 -33
  246. package/src/common/image/NsNextImage.spec.tsx +0 -10
  247. package/src/common/image/NsNextImage.stories.tsx +0 -51
  248. package/src/common/image/NsNextImage.tsx +0 -11
  249. package/src/common/image/bynder-util.spec.ts +0 -187
  250. package/src/common/image/bynder-util.ts +0 -98
  251. package/src/common/image/index.ts +0 -3
  252. package/src/common/image/types.ts +0 -78
  253. package/src/common/index.ts +0 -37
  254. package/src/common/input/InputFieldWrapper.tsx +0 -24
  255. package/src/common/input/InputWrapper.tsx +0 -82
  256. package/src/common/input/NsInputField.spec.tsx +0 -25
  257. package/src/common/input/NsInputField.stories.tsx +0 -61
  258. package/src/common/input/NsInputField.tsx +0 -125
  259. package/src/common/input/getAdornmentProps.tsx +0 -50
  260. package/src/common/input/index.ts +0 -2
  261. package/src/common/input/types.d.ts +0 -45
  262. package/src/common/label/NsLabel.spec.tsx +0 -11
  263. package/src/common/label/NsLabel.stories.tsx +0 -35
  264. package/src/common/label/NsLabel.tsx +0 -43
  265. package/src/common/label/index.ts +0 -2
  266. package/src/common/label/types.d.ts +0 -10
  267. package/src/common/link/NsLink.spec.tsx +0 -106
  268. package/src/common/link/NsLink.stories.tsx +0 -55
  269. package/src/common/link/NsLink.styled.tsx +0 -100
  270. package/src/common/link/NsLink.tsx +0 -122
  271. package/src/common/link/index.ts +0 -2
  272. package/src/common/link/types.d.ts +0 -22
  273. package/src/common/modal/NsModal.spec.tsx +0 -46
  274. package/src/common/modal/NsModal.styled.tsx +0 -28
  275. package/src/common/modal/NsModal.tsx +0 -43
  276. package/src/common/modal/helper-component/NsModalContentBox.tsx +0 -37
  277. package/src/common/modal/helper-component/NsModalDefault.tsx +0 -34
  278. package/src/common/modal/helper-component/NsModalStatus.tsx +0 -17
  279. package/src/common/modal/helper-component/NsModalStatusIcon.tsx +0 -16
  280. package/src/common/modal/helper-component/NsModalTitle.tsx +0 -29
  281. package/src/common/modal/index.ts +0 -2
  282. package/src/common/modal/model/NsModalVariantMap.tsx +0 -24
  283. package/src/common/modal/stories/NsModal.stories.tsx +0 -87
  284. package/src/common/modal/stories/mock.tsx +0 -46
  285. package/src/common/modal/types.ts +0 -57
  286. package/src/common/nav-product-card/NsNavProductCard.spec.tsx +0 -22
  287. package/src/common/nav-product-card/NsNavProductCard.stories.tsx +0 -25
  288. package/src/common/nav-product-card/NsNavProductCard.styled.tsx +0 -24
  289. package/src/common/nav-product-card/NsNavProductCard.tsx +0 -27
  290. package/src/common/nav-product-card/index.ts +0 -2
  291. package/src/common/nav-product-card/types.d.ts +0 -9
  292. package/src/common/nav-tab/NavDrawer.tsx +0 -41
  293. package/src/common/nav-tab/NavTitles.tsx +0 -64
  294. package/src/common/nav-tab/NsNavTab.spec.tsx +0 -64
  295. package/src/common/nav-tab/NsNavTab.stories.tsx +0 -36
  296. package/src/common/nav-tab/NsNavTab.styled.tsx +0 -74
  297. package/src/common/nav-tab/NsNavTab.tsx +0 -43
  298. package/src/common/nav-tab/index.ts +0 -2
  299. package/src/common/nav-tab/types.d.ts +0 -21
  300. package/src/common/progress/NsProgress.spec.tsx +0 -47
  301. package/src/common/progress/NsProgress.stories.tsx +0 -45
  302. package/src/common/progress/NsProgress.styled.tsx +0 -56
  303. package/src/common/progress/NsProgress.tsx +0 -29
  304. package/src/common/progress/index.ts +0 -2
  305. package/src/common/progress/types.d.ts +0 -21
  306. package/src/common/radiogroup/NsRadioGroup.spec.tsx +0 -63
  307. package/src/common/radiogroup/NsRadioGroup.stories.tsx +0 -84
  308. package/src/common/radiogroup/NsRadioGroup.styled.tsx +0 -51
  309. package/src/common/radiogroup/NsRadioGroup.tsx +0 -65
  310. package/src/common/radiogroup/index.ts +0 -2
  311. package/src/common/radiogroup/types.d.ts +0 -19
  312. package/src/common/search-bar/NsSeachBar.spec.tsx +0 -9
  313. package/src/common/search-bar/NsSearchBar.tsx +0 -46
  314. package/src/common/select/DefaultRenderOption.tsx +0 -8
  315. package/src/common/select/NsSelect.styled.tsx +0 -102
  316. package/src/common/select/NsSelect.tsx +0 -166
  317. package/src/common/select/NsSelectOption.tsx +0 -26
  318. package/src/common/select/constant.ts +0 -30
  319. package/src/common/select/index.ts +0 -3
  320. package/src/common/select/specs/NsSelect.spec.tsx +0 -183
  321. package/src/common/select/specs/NsSelectOption.spec.tsx +0 -32
  322. package/src/common/select/stories/NsSelect.stories.tsx +0 -89
  323. package/src/common/select/stories/countries.ts +0 -53
  324. package/src/common/select/types.d.ts +0 -49
  325. package/src/common/spinner/NsSpinner.spec.tsx +0 -21
  326. package/src/common/spinner/NsSpinner.stories.tsx +0 -29
  327. package/src/common/spinner/NsSpinner.styled.tsx +0 -344
  328. package/src/common/spinner/NsSpinner.tsx +0 -15
  329. package/src/common/spinner/icons/Spinner.tsx +0 -163
  330. package/src/common/spinner/index.ts +0 -2
  331. package/src/common/spinner/types.ts +0 -5
  332. package/src/common/table/NsExpandableRow.tsx +0 -62
  333. package/src/common/table/NsTable.spec.tsx +0 -174
  334. package/src/common/table/NsTable.stories.tsx +0 -156
  335. package/src/common/table/NsTable.styled.ts +0 -127
  336. package/src/common/table/NsTable.tsx +0 -150
  337. package/src/common/table/NsTableHeader.tsx +0 -54
  338. package/src/common/table/NsTablePagination.tsx +0 -24
  339. package/src/common/table/helper.ts +0 -33
  340. package/src/common/table/index.ts +0 -2
  341. package/src/common/table/types.d.ts +0 -57
  342. package/src/common/text-strip/NsTextStrip.spec.tsx +0 -27
  343. package/src/common/text-strip/NsTextStrip.stories.tsx +0 -61
  344. package/src/common/text-strip/NsTextStrip.tsx +0 -61
  345. package/src/common/text-strip/index.ts +0 -2
  346. package/src/common/text-strip/types.d.ts +0 -16
  347. package/src/common/toast/Fade.tsx +0 -98
  348. package/src/common/toast/ToastProvider.tsx +0 -88
  349. package/src/common/toast/index.ts +0 -3
  350. package/src/common/toast/shared.ts +0 -124
  351. package/src/common/toast/specs/Toast.spec.tsx +0 -122
  352. package/src/common/toast/stories/Toast.stories.tsx +0 -82
  353. package/src/common/toast/useToast.tsx +0 -65
  354. package/src/common/typography/GlobalFontInter.tsx +0 -15
  355. package/src/common/typography/HtmlTagVariantMap.tsx +0 -24
  356. package/src/common/typography/NsTypography.spec.tsx +0 -37
  357. package/src/common/typography/NsTypography.stories.tsx +0 -27
  358. package/src/common/typography/NsTypography.tsx +0 -44
  359. package/src/common/typography/Typography.styled.tsx +0 -195
  360. package/src/common/typography/__snapshots__/NsTypography.spec.tsx.snap +0 -22
  361. package/src/common/typography/index.ts +0 -3
  362. package/src/common/typography/types.d.ts +0 -37
  363. package/src/common/util.ts +0 -3
  364. package/src/common/utility/Show.tsx +0 -13
  365. package/src/common/utility/index.ts +0 -1
  366. package/src/common/validations/regex.ts +0 -2
  367. package/src/common/videos/NsVideo.spec.tsx +0 -26
  368. package/src/common/videos/NsVideo.stories.tsx +0 -32
  369. package/src/common/videos/NsVideo.tsx +0 -28
  370. package/src/common/videos/index.ts +0 -2
  371. package/src/common/videos/types.d.ts +0 -9
@@ -1,48 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* eslint-disable max-len */
4
- import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
5
-
6
- /**
7
- *
8
- * @param props { fill: color to be filled for icon, color: color of the tick icon}
9
- * @returns ErrorIcon, can be used in Input field, when input field is in error state
10
- */
11
- const AlertErrorIcon = (props: SvgIconProps):ReactElement => {
12
- return (
13
- <SvgIcon
14
- width="20"
15
- height="20"
16
- viewBox="0 0 20 20"
17
- data-testid="alertError"
18
- fill="none"
19
- xmlns="http://www.w3.org/2000/svg"
20
- {...props}
21
- >
22
- <g id="icon/alert/WarningFill-red" transform="translate(1.000000, 1.000000)">
23
- <g id="Error2" transform="translate(0.000000, 1.200000)">
24
- <path
25
- d="M17.9465423,14.8670135 L9.44311247,0.246687943 C9.35049358,0.100809118 9.18936767,0.012383152 9.01617259,0.012383152 C8.84297751,0.012383152 8.68185161,
26
- 0.100809118 8.58923271,0.246687943 L0.0706452929,14.8670135 C-0.0142965839,15.0216954 -0.0118890438,15.2093943 0.0769925071,15.3618609 C0.165874058,
27
- 15.5143276 0.328282319,15.6093523 0.505163987,15.6123832 L17.5120236,15.6123832 C17.6889052,15.6093523 17.8513135,15.5143276 17.940195,15.3618609 C18.0290766,
28
- 15.2093943 18.0314841,15.0216954 17.9465423,14.8670135 Z"
29
- id="Shape"
30
- fill={props.color}
31
- fillRule="nonzero"
32
- ></path>
33
- <path
34
- d="M8.19,12.84 C8.16437588,12.6281014 8.2368299,12.4160897 8.38677958,12.2641927 C8.53672927,12.1122956 8.74778837,12.0371121 8.96,12.06 C9.16715704,
35
- 12.0467652 9.37034806,12.1211477 9.52,12.265 C9.65709398,12.4241339 9.72701115,12.6303 9.715,12.84 C9.72048715,13.0522748 9.64341383,13.2584012 9.5,
36
- 13.415 C9.35312473,13.5641498 9.1489517,13.6425377 8.94,13.63 C8.72997224,13.6424095 8.52401376,13.5683367 8.37,13.425 C8.23531653,13.2613056 8.17063593,
37
- 13.0510936 8.19,12.84 Z M9.415,11.195 L8.5,11.195 L8.25,5.96 L9.675,5.96 L9.415,11.195 Z"
38
- id="Shape"
39
- fill={'#FFFFFF'}
40
- fillRule="nonzero"
41
- ></path>
42
- </g>
43
- </g>
44
- </SvgIcon>
45
- );
46
- };
47
-
48
- export default AlertErrorIcon;
@@ -1,23 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import {
6
- SvgIcon,
7
- SvgIconProps,
8
- } from '@mui/material';
9
-
10
- const ArrowDown = (props: SvgIconProps):ReactElement => {
11
- return (
12
- <SvgIcon viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-testid="arrowDown" {...props}>
13
- <path
14
- fillRule="evenodd"
15
- clipRule="evenodd"
16
- d="M12.7071 16.2071C12.3166 16.5976 11.6834 16.5976 11.2929 16.2071L4.29289 9.20711C3.90237 8.81658 3.90237 8.18342 4.29289 7.79289C4.68342 7.40237 5.31658 7.40237 5.70711 7.79289L12 14.0858L18.2929 7.79289C18.6834 7.40237 19.3166 7.40237 19.7071 7.79289C20.0976 8.18342 20.0976 8.81658 19.7071 9.20711L12.7071 16.2071Z"
17
- fill={props.color}
18
- />
19
- </SvgIcon>
20
- );
21
- };
22
-
23
- export default ArrowDown;
@@ -1,38 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- import {
4
- SvgIcon,
5
- SvgIconProps,
6
- } from '@mui/material';
7
-
8
- const ArrowLeft = (props: SvgIconProps):ReactElement => {
9
- return (
10
- <SvgIcon
11
- data-testid="arrowLeft"
12
- viewBox="0 0 24 24"
13
- preserveAspectRatio="xMidYMid meet"
14
- focusable="false"
15
- style={{ pointerEvents: 'none', display: 'block' }}
16
- {...props}
17
- >
18
- <g
19
- id="icon-narrow-angle-left-24"
20
- stroke={props.color}
21
- strokeWidth="1"
22
- fill="none"
23
- fillRule="evenodd"
24
- strokeLinecap="round"
25
- strokeLinejoin="round"
26
- >
27
- <g transform="translate(-196, -226)" stroke={props.color}>
28
- <polyline
29
- // eslint-disable-next-line max-len
30
- transform="translate(209.000000, 237.500000) scale(-1.2, 1.2) rotate(90.000000) translate(-209.000000, -237.500000)"
31
- points="200 242 209 233 218 242"
32
- ></polyline>
33
- </g>
34
- </g>
35
- </SvgIcon>
36
- );
37
- };
38
- export default ArrowLeft;
@@ -1,39 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- import {
4
- SvgIcon,
5
- SvgIconProps,
6
- } from '@mui/material';
7
-
8
- export const ArrowRight = (props: SvgIconProps):ReactElement => {
9
- return (
10
- <SvgIcon
11
- {...props}
12
- data-testid="arrowRight"
13
- viewBox="0 0 24 24"
14
- preserveAspectRatio="xMidYMid meet"
15
- focusable="false"
16
- style={{ pointerEvents: 'none', display: 'block' }}
17
- >
18
- <g
19
- id="icon-narrow-angle-right-24"
20
- stroke="none"
21
- strokeWidth="1"
22
- fill="none"
23
- fillRule="evenodd"
24
- strokeLinecap="round"
25
- strokeLinejoin="round"
26
- >
27
- <g transform="translate(-196, -226)" stroke={props.color}>
28
- <polyline
29
- // eslint-disable-next-line max-len
30
- transform="translate(209.000000, 237.500000) scale(-1.2, 1.2) rotate(-90.000000) translate(-209.000000, -237.500000)"
31
- points="200 242 209 233 218 242"
32
- ></polyline>
33
- </g>
34
- </g>
35
- </SvgIcon>
36
- );
37
- };
38
-
39
- export default ArrowRight;
@@ -1,20 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import { SvgIcon, SvgIconProps } from '@mui/material';
6
-
7
- const ArrowUp = (props: SvgIconProps): ReactElement => {
8
- return (
9
- <SvgIcon viewBox="0 0 24 24" data-testid="arrowUp" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
10
- <path
11
- fillRule="evenodd"
12
- clipRule="evenodd"
13
- d="M11.2929 7.79289C11.6834 7.40237 12.3166 7.40237 12.7071 7.79289L19.7071 14.7929C20.0976 15.1834 20.0976 15.8166 19.7071 16.2071C19.3166 16.5976 18.6834 16.5976 18.2929 16.2071L12 9.91421L5.70711 16.2071C5.31658 16.5976 4.68342 16.5976 4.29289 16.2071C3.90237 15.8166 3.90237 15.1834 4.29289 14.7929L11.2929 7.79289Z"
14
- fill={props.color}
15
- />
16
- </SvgIcon>
17
- );
18
- };
19
-
20
- export default ArrowUp;
@@ -1,23 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import {
6
- SvgIcon,
7
- SvgIconProps,
8
- } from '@mui/material';
9
-
10
- const Cart = (props: SvgIconProps):ReactElement => {
11
- return (
12
- <SvgIcon viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-testid="cart" {...props}>
13
- <path
14
- fillRule="evenodd"
15
- clipRule="evenodd"
16
- d="M0 3.79999C0 3.2477 0.447715 2.79999 1 2.79999H3.19159C4.13466 2.79999 4.94959 3.45879 5.14719 4.38093L5.237 4.80005H21C21.3079 4.80005 21.5987 4.94192 21.7882 5.18464C21.9777 5.42735 22.0448 5.74384 21.9701 6.04258L20.5382 11.7702C20.0931 13.5509 18.4931 14.8 16.6577 14.8H7.3798L7.59407 15.8H19C19.5523 15.8 20 16.2478 20 16.8C20 17.3523 19.5523 17.8 19 17.8H18H7.5H6.78564C6.3141 17.8 5.90664 17.4706 5.80784 17.0096L3.45079 6.00958L3.19159 4.79999H1C0.447715 4.79999 0 4.35227 0 3.79999ZM7.5 17.8C6.39543 17.8 5.5 18.6955 5.5 19.8C5.5 20.9046 6.39543 21.8 7.5 21.8C8.60457 21.8 9.5 20.9046 9.5 19.8C9.5 18.6955 8.60457 17.8 7.5 17.8ZM18 17.8C16.8954 17.8 16 18.6955 16 19.8C16 20.9046 16.8954 21.8 18 21.8C19.1046 21.8 20 20.9046 20 19.8C20 18.6955 19.1046 17.8 18 17.8ZM6.95124 12.8H16.6577C17.5754 12.8 18.3754 12.1755 18.598 11.2851L19.7192 6.80005H5.66557L6.95124 12.8Z"
17
- fill={props.color}
18
- />
19
- </SvgIcon>
20
- );
21
- };
22
-
23
- export default Cart;
@@ -1,47 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import {
6
- SvgIcon,
7
- SvgIconProps,
8
- } from '@mui/material';
9
-
10
- const CartBadge = (props: SvgIconProps) :ReactElement=> {
11
- return (
12
- <SvgIcon
13
- viewBox="0 0 30 30"
14
- preserveAspectRatio="xMidYMid meet"
15
- focusable="false"
16
- data-testid="cartBadge"
17
- {...props}
18
- >
19
- <g
20
- id="cart-icon-badge"
21
- fill="none"
22
- strokeWidth="1"
23
- stroke="none"
24
- fillRule="evenodd"
25
- width="30px"
26
- height="30px"
27
- >
28
- <g id="Group" transform="translate(0.000000, 0.500000)" stroke={props.color}>
29
- <circle id="Oval" cx="11" cy="21.5" r="1.5"></circle>
30
- <circle id="Oval" cx="23" cy="21.5" r="1.5"></circle>
31
- <polyline
32
- id="Shape"
33
- strokeLinecap="round"
34
- points="0 -5.24580379e-15 3.5 -5.41233725e-15 9.5 18 23.5 18"
35
- ></polyline>
36
- <path
37
- d="M8.5,14 L21.6400424,14 C22.9848342,14 24.1653247,13.1050925 24.5285445,11.8102811 L27,3"
38
- id="Shape"
39
- strokeLinecap="round"
40
- ></path>
41
- </g>
42
- </g>
43
- </SvgIcon>
44
- );
45
- };
46
-
47
- export default CartBadge;
@@ -1,30 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import {
6
- SvgIcon,
7
- SvgIconProps,
8
- } from '@mui/material';
9
-
10
- const Check = (props: SvgIconProps):ReactElement => {
11
- return (
12
- <SvgIcon
13
- viewBox="0 0 21 20"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- preserveAspectRatio="xMidYMid meet"
17
- data-testid="check"
18
- {...props}
19
- >
20
- <path
21
- fillRule="evenodd"
22
- clipRule="evenodd"
23
- d="M20.0625 3.57806C20.3879 3.9035 20.3879 4.43114 20.0625 4.75657L8.39582 16.4232C8.23944 16.5796 8.02731 16.6674 7.80616 16.6673C7.585 16.6672 7.37296 16.5792 7.21673 16.4227L1.22007 10.4143C0.894947 10.0886 0.89546 9.56094 1.22121 9.23582C1.54697 8.9107 2.0746 8.91122 2.39972 9.23697L7.80714 14.6549L18.884 3.57806C19.2094 3.25263 19.737 3.25263 20.0625 3.57806Z"
24
- fill={props.color}
25
- />
26
- </SvgIcon>
27
- );
28
- };
29
-
30
- export default Check;
@@ -1,24 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import { SvgIcon, SvgIconProps } from '@mui/material';
6
-
7
- const CheckShield = (props: SvgIconProps): ReactElement => {
8
- return (
9
- <SvgIcon
10
- viewBox="0 0 24 24"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- {...props}
14
- data-testid="checkShield"
15
- >
16
- <path
17
- d="M20.3941 1H2.7631C2.29568 1.00061 1.84758 1.18656 1.51707 1.51707C1.18656 1.84759 1.00061 2.29568 1 2.7631V9.22751C1 19.0855 9.35492 22.3543 11.0311 22.9096C11.3861 23.0301 11.7711 23.0301 12.1261 22.9096C13.8014 22.3543 22.1572 19.0864 22.1572 9.22751V2.7631C22.1566 2.29568 21.9706 1.84758 21.6401 1.51707C21.3096 1.18656 20.8615 1.00061 20.3941 1ZM17.0358 8.69031L10.5705 14.8612C10.4064 15.0176 10.1885 15.1048 9.96185 15.1048C9.7352 15.1048 9.51725 15.0176 9.3532 14.8612L6.12142 11.7757C6.03753 11.6958 5.97021 11.6002 5.9233 11.4943C5.87639 11.3883 5.85082 11.2742 5.84805 11.1584C5.84528 11.0425 5.86536 10.9273 5.90715 10.8193C5.94893 10.7112 6.01161 10.6124 6.09158 10.5286C6.17156 10.4448 6.26726 10.3776 6.37324 10.3308C6.47921 10.2839 6.59338 10.2585 6.7092 10.2558C6.82502 10.2531 6.94023 10.2733 7.04825 10.3152C7.15627 10.3571 7.25497 10.4199 7.33872 10.4999L9.96185 13.0042L15.8185 7.41448C15.9022 7.33443 16.0009 7.27167 16.1089 7.22978C16.217 7.1879 16.3322 7.16772 16.448 7.17038C16.5638 7.17305 16.678 7.19852 16.7839 7.24533C16.8899 7.29214 16.9856 7.35938 17.0656 7.4432C17.1456 7.52702 17.2083 7.62578 17.25 7.73384C17.2918 7.84189 17.3119 7.95712 17.3091 8.07294C17.3064 8.18876 17.2808 8.3029 17.2339 8.40883C17.187 8.51477 17.1197 8.61042 17.0358 8.69031H17.0358Z"
18
- fill={props.color}
19
- />
20
- </SvgIcon>
21
- );
22
- };
23
-
24
- export default CheckShield;
@@ -1,27 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import {
6
- SvgIcon,
7
- SvgIconProps,
8
- } from '@mui/material';
9
-
10
- const CheckVerified = (props: SvgIconProps):ReactElement => {
11
- return (
12
- <SvgIcon
13
- viewBox="0 0 24 24"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- {...props}
17
- data-testid="checkVerified"
18
- >
19
- <path
20
- d="M22.4852 9.30165C22.0811 8.8802 21.6632 8.44451 21.5053 8.06271C21.3601 7.71198 21.3514 7.13107 21.3429 6.5692C21.3271 5.52361 21.3092 4.33855 20.4853 3.51468C19.6614 2.69081 18.4764 2.67292 17.4308 2.65712C16.8689 2.64865 16.288 2.63986 15.9373 2.49473C15.5556 2.33684 15.1198 1.91895 14.6983 1.51475C13.9581 0.804722 13.1188 0 12 0C10.8812 0 10.042 0.804722 9.30165 1.51475C8.8802 1.91895 8.44451 2.33684 8.06271 2.49473C7.71198 2.63986 7.13107 2.64865 6.5692 2.65712C5.52361 2.67292 4.33855 2.69081 3.51468 3.51468C2.69081 4.33855 2.67292 5.52361 2.65712 6.5692C2.64865 7.13107 2.63986 7.71198 2.49473 8.06271C2.33684 8.44441 1.91895 8.8802 1.51475 9.30165C0.804722 10.0419 0 10.8812 0 12C0 13.1188 0.804722 13.958 1.51475 14.6983C1.91895 15.1198 2.33684 15.5555 2.49473 15.9373C2.63986 16.288 2.64865 16.8689 2.65712 17.4308C2.67292 18.4764 2.69081 19.6614 3.51468 20.4853C4.33855 21.3092 5.52361 21.3271 6.5692 21.3429C7.13107 21.3514 7.71198 21.3601 8.06271 21.5053C8.44441 21.6632 8.8802 22.0811 9.30165 22.4852C10.0419 23.1953 10.8812 24 12 24C13.1188 24 13.958 23.1953 14.6983 22.4852C15.1198 22.0811 15.5555 21.6632 15.9373 21.5053C16.288 21.3601 16.8689 21.3514 17.4308 21.3429C18.4764 21.3271 19.6614 21.3092 20.4853 20.4853C21.3092 19.6614 21.3271 18.4764 21.3429 17.4308C21.3514 16.8689 21.3601 16.288 21.5053 15.9373C21.6632 15.5556 22.0811 15.1198 22.4852 14.6983C23.1953 13.9581 24 13.1188 24 12C24 10.8812 23.1953 10.042 22.4852 9.30165ZM17.3061 10.0486L11.0203 16.0486C10.8609 16.2008 10.6489 16.2857 10.4285 16.2857C10.2081 16.2857 9.99618 16.2008 9.83674 16.0486L6.69392 13.0486C6.61244 12.9709 6.54708 12.8779 6.50155 12.7749C6.45603 12.672 6.43123 12.561 6.42859 12.4485C6.42595 12.3359 6.4455 12.224 6.48614 12.119C6.52678 12.014 6.58771 11.918 6.66544 11.8366C6.74318 11.7551 6.83619 11.6898 6.93918 11.6443C7.04217 11.5988 7.15311 11.5741 7.26567 11.5715C7.37823 11.5688 7.49019 11.5884 7.59517 11.6291C7.70016 11.6698 7.79609 11.7308 7.87751 11.8085L10.4285 14.2436L16.1225 8.80852C16.2039 8.73076 16.2998 8.6698 16.4048 8.62912C16.5098 8.58844 16.6218 8.56885 16.7343 8.57145C16.8469 8.57405 16.9578 8.59881 17.0608 8.64429C17.1638 8.68978 17.2568 8.75511 17.3346 8.83656C17.4123 8.918 17.4732 9.01397 17.5139 9.11896C17.5545 9.22396 17.5741 9.33593 17.5714 9.44849C17.5688 9.56104 17.544 9.67198 17.4984 9.77495C17.4529 9.87792 17.3876 9.97091 17.3061 10.0486Z"
21
- fill={props.color}
22
- />
23
- </SvgIcon>
24
- );
25
- };
26
-
27
- export default CheckVerified;
@@ -1,31 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- import {
4
- SvgIcon,
5
- SvgIconProps,
6
- } from '@mui/material';
7
-
8
- export const ChevronRight = (props: SvgIconProps):ReactElement => {
9
- return (
10
- <SvgIcon
11
- {...props}
12
- data-testid="chevronRight"
13
- viewBox="0 0 18 18"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- >
17
- <g id="arrow-right">
18
- <path
19
- id="icon"
20
- fillRule="evenodd"
21
- clipRule="evenodd"
22
- // eslint-disable-next-line max-len
23
- d="M12.1553 8.46967C12.4482 8.76256 12.4482 9.23744 12.1553 9.53033L6.90533 14.7803C6.61244 15.0732 6.13756 15.0732 5.84467 14.7803C5.55178 14.4874 5.55178 14.0126 5.84467 13.7197L10.5643 9L5.84467 4.28033C5.55178 3.98744 5.55178 3.51256 5.84467 3.21967C6.13756 2.92678 6.61244 2.92678 6.90533 3.21967L12.1553 8.46967Z"
24
- fill={props.color}
25
- />
26
- </g>
27
- </SvgIcon>
28
- );
29
- };
30
-
31
- export default ChevronRight;
@@ -1,27 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import {
6
- SvgIcon,
7
- SvgIconProps,
8
- } from '@mui/material';
9
-
10
- const CloseIcon = (props: SvgIconProps):ReactElement => {
11
- return (
12
- <SvgIcon
13
- viewBox="0 0 12 12"
14
- preserveAspectRatio="xMidYMid meet"
15
- xmlns="http://www.w3.org/2000/svg"
16
- xmlnsXlink="http://www.w3.org/1999/xlink"
17
- {...props}
18
- data-testid="close"
19
- >
20
- <g fill="none" stroke={props.color} strokeWidth="1">
21
- <path strokeLinecap="round" d="M 0 0 L 12 12 M 0 12 L 12 0" />
22
- </g>
23
- </SvgIcon>
24
- );
25
- };
26
-
27
- export default CloseIcon;
@@ -1,30 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* eslint-disable max-len */
4
- import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
5
-
6
- /**
7
- * pass colorOverride = '#C81D1D'
8
- * @param props { color: color to be filled for icon}
9
- * @returns ErrorIcon, can be used in Input field, when input field is in error state
10
- */
11
- const ErrorIcon = (props: SvgIconProps):ReactElement => {
12
- return (
13
- <SvgIcon
14
- width="20"
15
- height="20"
16
- viewBox="0 0 20 20"
17
- data-testid="error"
18
- fill="none"
19
- xmlns="http://www.w3.org/2000/svg"
20
- {...props}
21
- >
22
- <path
23
- d="M17.07 2.92999C15.4338 1.29429 13.2811 0.276523 10.9786 0.0501185C8.67611 -0.176286 6.36637 0.402675 4.44291 1.68835C2.51945 2.97403 1.1013 4.88687 0.430089 7.10094C-0.241121 9.31502 -0.123857 11.6933 0.761901 13.8306C1.64766 15.9679 3.24711 17.732 5.28771 18.8222C7.32831 19.9125 9.68381 20.2614 11.9528 19.8096C14.2219 19.3578 16.2641 18.1332 17.7314 16.3445C19.1988 14.5557 20.0005 12.3136 20 9.99999C19.9994 7.34804 18.9455 4.80491 17.07 2.92999ZM9 5.37999C9 5.11477 9.10536 4.86041 9.29289 4.67288C9.48043 4.48534 9.73478 4.37999 10 4.37999C10.2652 4.37999 10.5196 4.48534 10.7071 4.67288C10.8946 4.86041 11 5.11477 11 5.37999V10.6C11 10.8652 10.8946 11.1196 10.7071 11.3071C10.5196 11.4946 10.2652 11.6 10 11.6C9.73478 11.6 9.48043 11.4946 9.29289 11.3071C9.10536 11.1196 9 10.8652 9 10.6V5.37999ZM10 15.51C9.74684 15.51 9.49936 15.4349 9.28887 15.2943C9.07837 15.1536 8.91431 14.9537 8.81743 14.7198C8.72055 14.4859 8.6952 14.2286 8.74459 13.9803C8.79398 13.732 8.91589 13.5039 9.0949 13.3249C9.27391 13.1459 9.50199 13.024 9.75028 12.9746C9.99858 12.9252 10.2559 12.9505 10.4898 13.0474C10.7237 13.1443 10.9236 13.3084 11.0643 13.5189C11.2049 13.7294 11.28 13.9768 11.28 14.23C11.28 14.5695 11.1451 14.895 10.9051 15.1351C10.665 15.3751 10.3395 15.51 10 15.51Z"
24
- fill={props.color}
25
- />
26
- </SvgIcon>
27
- );
28
- };
29
-
30
- export default ErrorIcon;
@@ -1,35 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* eslint-disable max-len */
4
- import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
5
-
6
- /**
7
- *
8
- * @param props {stroke}
9
- */
10
- const HamburgerIcon = (props: SvgIconProps): ReactElement => {
11
- return (
12
- <SvgIcon viewBox="0 0 24 18" {...props} data-testid="hamburgerIcon" xmlns="http://www.w3.org/2000/svg">
13
- <path
14
- stroke={props.color}
15
- fillRule="evenodd"
16
- clipRule="evenodd"
17
- d="M0 1C0 0.447715 0.447715 0 1 0H19C19.5523 0 20 0.447715 20 1C20 1.55228 19.5523 2 19 2H1C0.447715 2 0 1.55228 0 1Z"
18
- />
19
- <path
20
- stroke={props.color}
21
- fillRule="evenodd"
22
- clipRule="evenodd"
23
- d="M0 9C0 8.44772 0.447715 8 1 8H19C19.5523 8 20 8.44772 20 9C20 9.55228 19.5523 10 19 10H1C0.447715 10 0 9.55228 0 9Z"
24
- />
25
- <path
26
- stroke={props.color}
27
- fillRule="evenodd"
28
- clipRule="evenodd"
29
- d="M0 17C0 16.4477 0.447715 16 1 16H19C19.5523 16 20 16.4477 20 17C20 17.5523 19.5523 18 19 18H1C0.447715 18 0 17.5523 0 17Z"
30
- />
31
- </SvgIcon>
32
- );
33
- };
34
-
35
- export default HamburgerIcon;
@@ -1,21 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import {
6
- SvgIcon,
7
- SvgIconProps,
8
- } from '@mui/material';
9
-
10
- const InfoFilled = (props: SvgIconProps): ReactElement => {
11
- return (
12
- <SvgIcon viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} data-testid="infoFilled">
13
- <path
14
- d="M12 0C9.62663 0 7.30655 0.703788 5.33316 2.02236C3.35977 3.34094 1.8217 5.21508 0.913451 7.4078C0.00519941 9.60051 -0.232441 12.0133 0.230582 14.3411C0.693605 16.6689 1.83649 18.807 3.51472 20.4853C5.19295 22.1635 7.33115 23.3064 9.65892 23.7694C11.9867 24.2324 14.3995 23.9948 16.5922 23.0865C18.7849 22.1783 20.6591 20.6402 21.9776 18.6668C23.2962 16.6934 24 14.3734 24 12C23.9963 8.81853 22.7309 5.76842 20.4812 3.51878C18.2316 1.26914 15.1815 0.00367709 12 0ZM11.9999 5.53846C12.2737 5.53846 12.5414 5.61967 12.7691 5.77181C12.9968 5.92395 13.1743 6.1402 13.2791 6.39321C13.3839 6.64621 13.4113 6.92461 13.3579 7.1932C13.3045 7.46179 13.1726 7.7085 12.979 7.90215C12.7853 8.09579 12.5386 8.22766 12.27 8.28109C12.0014 8.33451 11.723 8.30709 11.47 8.20229C11.217 8.0975 11.0008 7.92002 10.8486 7.69233C10.6965 7.46463 10.6153 7.19693 10.6153 6.92308C10.6153 6.74125 10.6511 6.56119 10.7207 6.39321C10.7903 6.22522 10.8922 6.07258 11.0208 5.944C11.1494 5.81543 11.302 5.71344 11.47 5.64386C11.638 5.57427 11.8181 5.53846 11.9999 5.53846H11.9999ZM12.9231 18.4615H12C11.8788 18.4616 11.7587 18.4378 11.6467 18.3914C11.5347 18.345 11.4329 18.2771 11.3471 18.1913C11.2614 18.1056 11.1934 18.0038 11.147 17.8918C11.1007 17.7798 11.0769 17.6597 11.0769 17.5385V12C10.8321 12 10.5973 11.9027 10.4242 11.7296C10.2511 11.5565 10.1538 11.3217 10.1538 11.0769C10.1538 10.8321 10.2511 10.5973 10.4242 10.4242C10.5973 10.2511 10.8321 10.1538 11.0769 10.1538H12C12.1212 10.1538 12.2413 10.1776 12.3533 10.224C12.4654 10.2703 12.5671 10.3383 12.6529 10.4241C12.7386 10.5098 12.8066 10.6116 12.853 10.7236C12.8993 10.8356 12.9232 10.9557 12.9231 11.0769V16.6154C13.1679 16.6154 13.4027 16.7126 13.5758 16.8857C13.7489 17.0589 13.8462 17.2936 13.8462 17.5385C13.8462 17.7833 13.7489 18.0181 13.5758 18.1912C13.4027 18.3643 13.1679 18.4615 12.9231 18.4615Z"
15
- fill={props.color}
16
- />
17
- </SvgIcon>
18
- );
19
- };
20
-
21
- export default InfoFilled;
@@ -1,42 +0,0 @@
1
- /* eslint-disable max-len */
2
-
3
- import { ReactElement } from 'react';
4
-
5
- import {
6
- SvgIcon,
7
- SvgIconProps,
8
- } from '@mui/material';
9
-
10
- const InfoOutlined = (props: SvgIconProps): ReactElement => {
11
- return (
12
- <SvgIcon
13
- viewBox="0 0 24 24"
14
- fill="none"
15
- xmlns="http://www.w3.org/2000/svg"
16
- {...props}
17
- data-testid="infoOutlined"
18
- >
19
- <g clipPath="url(#clip0_12033_52181)">
20
- <path
21
- d="M12 2C14.67 2 17.18 3.04 19.07 4.93C20.96 6.82 22 9.33 22 12C22 13.98 21.42 15.91 20.31 17.56C19.21 19.21 17.66 20.48 15.82 21.24C14.6 21.75 13.31 22 11.99 22C11.34 22 10.68 21.94 10.04 21.81C8.09001 21.42 6.32001 20.48 4.92001 19.07C3.52001 17.67 2.57001 15.9 2.18001 13.95C1.79001 12 1.99001 10.01 2.75001 8.17C3.51001 6.34 4.78001 4.78 6.43001 3.68C8.08001 2.58 10 2 11.98 1.99L12 2ZM11.98 -0.0100002C9.61001 -0.0100002 7.29001 0.69 5.31001 2.01C3.36001 3.34 1.82001 5.22 0.910006 7.41C5.48363e-06 9.6 -0.229994 12.01 0.230006 14.34C0.690006 16.67 1.84001 18.81 3.51001 20.48C5.19001 22.16 7.33001 23.3 9.65001 23.76C10.42 23.91 11.21 23.99 11.99 23.99C13.56 23.99 15.12 23.68 16.58 23.08C18.77 22.17 20.65 20.63 21.97 18.66C23.29 16.69 23.99 14.37 23.99 11.99C23.99 8.81 22.72 5.76 20.47 3.51C18.23 1.27 15.18 -2.29105e-07 12 -2.29105e-07L11.98 -0.0100002Z"
22
- fill={props.color}
23
- />
24
- <path
25
- d="M12 5.54C12.27 5.54 12.54 5.62 12.77 5.77C13 5.92 13.18 6.14 13.28 6.39C13.38 6.64 13.41 6.92 13.36 7.19C13.31 7.46 13.17 7.71 12.98 7.9C12.79 8.09 12.54 8.23 12.27 8.28C12 8.33 11.72 8.31 11.47 8.2C11.22 8.1 11 7.92 10.85 7.69C10.7 7.46 10.62 7.19 10.62 6.92C10.62 6.74 10.66 6.56 10.73 6.39C10.8 6.22 10.9 6.07 11.03 5.94C11.16 5.81 11.31 5.71 11.48 5.64C11.65 5.57 11.83 5.53 12.01 5.53L12 5.54Z"
26
- fill={props.color}
27
- />
28
- <path
29
- d="M12.92 18.46H12C11.88 18.46 11.76 18.44 11.65 18.39C11.54 18.34 11.44 18.28 11.35 18.19C11.26 18.1 11.2 18 11.15 17.89C11.1 17.78 11.08 17.66 11.08 17.54V12C10.84 12 10.6 11.9 10.43 11.73C10.26 11.56 10.16 11.32 10.16 11.08C10.16 10.84 10.26 10.6 10.43 10.43C10.6 10.26 10.84 10.16 11.08 10.16H12C12.12 10.16 12.24 10.18 12.35 10.23C12.46 10.28 12.56 10.34 12.65 10.43C12.74 10.52 12.8 10.62 12.85 10.73C12.9 10.84 12.92 10.96 12.92 11.08V16.62C13.16 16.62 13.4 16.72 13.57 16.89C13.74 17.06 13.84 17.3 13.84 17.54C13.84 17.78 13.74 18.02 13.57 18.19C13.4 18.36 13.16 18.46 12.92 18.46Z"
30
- fill={props.color}
31
- />
32
- </g>
33
- <defs>
34
- <clipPath id="clip0_12033_52181">
35
- <rect width="24" height="24" fill="white" />
36
- </clipPath>
37
- </defs>
38
- </SvgIcon>
39
- );
40
- };
41
-
42
- export default InfoOutlined;
@@ -1,31 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* figma link:
4
- https://www.figma.com/file/PYBXZQL5mleej9AlspDSuI/Equinox-Designs?type=design&node-id=82-1276&mode=design&t=k8Kqtpp3QmkKcOlT-4
5
- */
6
- import {
7
- SvgIcon,
8
- SvgIconProps,
9
- } from '@mui/material';
10
-
11
- const RoundedClose = (props: SvgIconProps): ReactElement => {
12
- return (
13
- <SvgIcon
14
- width="25"
15
- height="25"
16
- viewBox="0 0 25 25"
17
- fill="none"
18
- xmlns="http://www.w3.org/2000/svg"
19
- {...props}
20
- data-testid="roundedClose"
21
- >
22
- <rect x="0.734863" y="0.730225" width="24" height="24" rx="12" fill={props.color} />
23
- <path
24
- d="M13.7942 12.7302L16.9911 9.53333C17.2817 9.2427 17.2817 8.76458 16.9911 8.47395C16.7005 8.18333 16.2224 8.18333 15.9317 8.47395L12.7349 11.6708L9.53799 8.47395C9.24736 8.18333 8.76924 8.18333 8.47861 8.47395C8.3333 8.61926 8.2583 8.81145 8.2583 9.00364C8.2583 9.19583 8.3333 9.38801 8.47861 9.53333L11.6755 12.7302L8.47861 15.9271C8.3333 16.0724 8.2583 16.2646 8.2583 16.4568C8.2583 16.6489 8.3333 16.8411 8.47861 16.9864C8.76924 17.2771 9.24736 17.2771 9.53799 16.9864L12.7349 13.7896L15.9317 16.9864C16.2224 17.2771 16.7005 17.2771 16.9911 16.9864C17.2817 16.6958 17.2817 16.2177 16.9911 15.9271L13.7942 12.7302Z"
25
- fill="#292929"
26
- />
27
- </SvgIcon>
28
- );
29
- };
30
-
31
- export default RoundedClose;
@@ -1,32 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* eslint-disable max-len */
4
- import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
5
-
6
- /**
7
- * pass colorOverride = '#5F5F5F'
8
- * @param props {fill: color to be filled for icon, color: color of the tick icon}
9
- * @returns SearchIcon, can be used in Input field, when input field is in success state
10
- */
11
- const SearchIcon = (props: SvgIconProps): ReactElement=> {
12
- return (
13
- <SvgIcon
14
- width="24"
15
- height="24"
16
- viewBox="0 0 24 24"
17
- data-testid="search"
18
- fill="none"
19
- xmlns="http://www.w3.org/2000/svg"
20
- {...props}
21
- >
22
- <path
23
- fillRule="evenodd"
24
- clipRule="evenodd"
25
- d="M0 9.98777C0 4.47167 4.46598 0 9.97505 0C15.4841 0 19.9501 4.47167 19.9501 9.98777C19.9501 11.7568 19.49 13.4205 18.6829 14.8629L23.2366 19.4844C24.2593 20.5223 24.2537 22.1921 23.2241 23.2231C22.1755 24.273 20.4704 24.2567 19.442 23.1869L15.0315 18.5988C13.5485 19.4736 11.8192 19.9755 9.97505 19.9755C4.46598 19.9755 0 15.5039 0 9.98777ZM16.6388 17.42L20.8646 21.8159C21.1265 22.0884 21.5608 22.0926 21.8279 21.8251C22.0902 21.5625 22.0916 21.1372 21.8311 20.8728L17.5309 16.5087C17.2531 16.8311 16.9551 17.1355 16.6388 17.42ZM9.97505 1.97696C5.55644 1.97696 1.97444 5.56352 1.97444 9.98777C1.97444 14.412 5.55644 17.9986 9.97505 17.9986C11.7025 17.9986 13.2995 17.4515 14.6063 16.5208C15.3948 15.9594 16.0773 15.2583 16.6179 14.454C17.4753 13.1784 17.9757 11.6431 17.9757 9.98777C17.9757 5.56352 14.3937 1.97696 9.97505 1.97696Z"
26
- fill={props.color}
27
- />
28
- </SvgIcon>
29
- );
30
- };
31
-
32
- export default SearchIcon;
@@ -1,22 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- import {
4
- SvgIcon,
5
- SvgIconProps,
6
- } from '@mui/material';
7
-
8
- const SlashIcon = (props: SvgIconProps): ReactElement => {
9
- return (
10
- <SvgIcon viewBox="0 0 2 22" fill="none" xmlns="http://www.w3.org/2000/svg" {...props} data-testid="slash">
11
- <path
12
- d="M1 1L1 11L0.999999 21"
13
- stroke={props.color}
14
- strokeWidth="2"
15
- strokeLinecap="round"
16
- strokeLinejoin="round"
17
- />
18
- </SvgIcon>
19
- );
20
- };
21
-
22
- export default SlashIcon;