@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,39 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* eslint-disable max-len */
4
- import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
5
-
6
- const NSLogoMark = (props: SvgIconProps):ReactElement => {
7
- return (
8
- <SvgIcon
9
- viewBox="0 0 51 52"
10
- fill="none"
11
- data-testid="logo"
12
- xmlns="http://www.w3.org/2000/svg"
13
- {...props}
14
- >
15
- <path
16
- d="M50.041 20.6435C49.3218 18.9662 48.2764 17.4488 46.9662 16.1793C44.1811 13.5595 40.2549 12.5391 36.5481 13.472C32.8413 14.4047 29.8642 17.1622 28.6486 20.7888C28.0296 22.4814 27.7126 24.2696 27.7116 26.0719C27.7116 33.9438 27.7116 41.8201 27.7116 49.7006C27.7116 51.0214 27.7116 51.0214 26.2599 50.9554C26.2599 50.7044 26.2599 50.4271 26.2599 50.1628C26.2599 41.2608 26.2599 32.3632 26.2599 23.47C26.0387 17.9191 29.4097 12.8556 34.6136 10.9226C35.2421 10.703 35.886 10.5308 36.5405 10.4075C37.1737 10.2754 37.8602 10.2225 38.4934 10.1433C37.6885 6.45834 30.9842 2.21863 25.547 1.96768C19.7457 1.82825 14.3682 4.99786 11.677 10.1433C12.2972 10.2225 12.9044 10.2622 13.4849 10.3678C18.8789 11.2894 23.0428 15.6226 23.7525 21.0529C23.8991 22.0412 23.974 23.0388 23.9766 24.0379C23.9766 32.7288 23.9766 41.4193 23.9766 50.1101C23.9766 50.7968 23.8182 51.0875 23.0793 51.0081C22.3401 50.929 22.4194 50.7044 22.4194 50.2159C22.4194 47.4552 22.4194 44.6948 22.4194 41.9212C22.4194 36.4532 22.4194 30.9852 22.4194 25.5172C22.4658 22.3039 21.2911 19.193 19.1332 16.8132C16.5801 14.0518 12.8165 12.7501 9.10424 13.3445C5.39204 13.939 2.22225 16.3508 0.657194 19.7718C0.485803 20.102 0.340436 20.4454 0.103027 20.9341C2.27367 8.85927 12.7463 0.0553189 25.0052 0.000259583C37.2638 -0.0547998 47.8152 8.65471 50.0937 20.7095"
17
- fill={props.color}
18
- />
19
- <path
20
- d="M33.7936 49.41C33.7936 49.1591 33.7936 48.9873 33.7936 48.8157C33.7936 44.1663 33.7936 39.5703 33.7936 34.8551C33.7088 32.5992 34.5699 30.4108 36.1692 28.819C38.1948 26.8776 41.2056 26.3842 43.7444 27.5775C46.2721 28.5237 47.9495 30.9388 47.9543 33.6398C48.0301 36.4561 47.0132 39.192 45.1168 41.2738C42.3431 44.7864 38.7052 47.5172 34.5591 49.1985C34.3125 49.2868 34.0614 49.3618 33.8069 49.4231"
21
- fill={props.color}
22
- />
23
- <path
24
- d="M16.4134 49.5949C14.7636 48.7363 13.2065 48.0496 11.7681 47.1646C8.4545 45.2066 5.68241 42.4507 3.70443 39.1475C2.56468 37.3357 2.09748 35.1804 2.38472 33.0589C2.7694 29.7773 5.45008 27.2445 8.74587 27.0492C12.2156 26.5971 15.4457 28.902 16.1493 32.3324C16.3906 33.327 16.5147 34.3466 16.5188 35.3701C16.5188 39.7552 16.5188 44.1533 16.5188 48.5778C16.5188 48.8288 16.5188 49.0667 16.4397 49.5552"
25
- fill={props.color}
26
- />
27
- <path
28
- d="M20.1482 50.4005C18.8285 50.4005 18.7095 50.308 18.7095 49.1721V30.3114C18.8828 26.8698 16.8673 23.6935 13.6814 22.3867C10.1653 20.905 6.10269 21.6983 3.40106 24.3943C1.68238 26.3444 0.742587 28.8603 0.76163 31.4604C0.767026 31.7375 0.698784 32.0109 0.563576 32.253C0.418211 31.619 0.24682 30.9321 0.167472 30.351C-0.284175 27.8623 0.184929 25.2941 1.48719 23.1263C2.39143 21.5993 3.78764 20.4255 5.44632 19.798C8.97191 18.413 12.9285 18.6596 16.2551 20.4716C18.706 21.7014 20.2237 24.2401 20.1482 26.983C20.2142 34.6566 20.1482 42.3303 20.1482 49.991C20.1482 50.1495 20.1482 50.2947 20.1482 50.4402"
29
- fill={props.color}
30
- />
31
- <path
32
- d="M29.9422 50.427V49.476C29.9422 42.3969 30.0213 35.3175 29.9422 28.238C29.8629 22.5058 33.0698 20.036 37.5834 19.1246C39.8521 18.6682 42.2024 18.8418 44.3797 19.6266C48.243 21.0933 50.6295 24.9853 50.1867 29.0965C50.0944 30.1707 49.9134 31.2353 49.6456 32.2796C49.4212 30.9588 49.3288 29.6381 48.9724 28.3173C48.2014 25.4313 46.0698 23.1046 43.2638 22.0861C40.4577 21.0675 37.3314 21.4856 34.891 23.2059C32.5944 24.7671 31.2823 27.4182 31.4333 30.1928C31.4333 36.4798 31.4333 42.7667 31.4333 49.0535C31.4333 50.3743 31.4333 50.3743 29.9159 50.3743"
33
- fill={props.color}
34
- />
35
- </SvgIcon>
36
- );
37
- };
38
-
39
- export default NSLogoMark;
@@ -1,103 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* eslint-disable max-len */
4
- import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
5
-
6
- const NSLogoPoweredBy = (props: SvgIconProps):ReactElement => {
7
- const { color } = props
8
- return (
9
- <SvgIcon
10
- viewBox="0 0 100 38"
11
- data-testid="logo"
12
- fill="none"
13
- xmlns="http://www.w3.org/2000/svg"
14
- {...props}>
15
- <path
16
- d="M15 8.8855V0.885498H17.7031C18.3307 0.885498 18.8438 0.998779 19.2422 1.22534C19.6432 1.4493 19.9401 1.75269 20.1328 2.1355C20.3255 2.51831 20.4219 2.94539 20.4219 3.41675C20.4219 3.8881 20.3255 4.31649 20.1328 4.7019C19.9427 5.08732 19.6484 5.39461 19.25 5.62378C18.8516 5.85034 18.3411 5.96362 17.7188 5.96362H15.7812V5.10425H17.6875C18.1172 5.10425 18.4622 5.03003 18.7227 4.88159C18.9831 4.73315 19.1719 4.53263 19.2891 4.28003C19.4089 4.02482 19.4688 3.73706 19.4688 3.41675C19.4688 3.09644 19.4089 2.80998 19.2891 2.55737C19.1719 2.30477 18.9818 2.10685 18.7188 1.96362C18.4557 1.81779 18.1068 1.74487 17.6719 1.74487H15.9688V8.8855H15Z"
17
- fill={color}
18
- />
19
- <path
20
- d="M28.7324 4.8855C28.7324 5.72925 28.5801 6.45841 28.2754 7.073C27.9707 7.68758 27.5527 8.16154 27.0215 8.49487C26.4902 8.82821 25.8835 8.99487 25.2012 8.99487C24.5189 8.99487 23.9121 8.82821 23.3809 8.49487C22.8496 8.16154 22.4316 7.68758 22.127 7.073C21.8223 6.45841 21.6699 5.72925 21.6699 4.8855C21.6699 4.04175 21.8223 3.31258 22.127 2.698C22.4316 2.08342 22.8496 1.60946 23.3809 1.27612C23.9121 0.94279 24.5189 0.776123 25.2012 0.776123C25.8835 0.776123 26.4902 0.94279 27.0215 1.27612C27.5527 1.60946 27.9707 2.08342 28.2754 2.698C28.5801 3.31258 28.7324 4.04175 28.7324 4.8855ZM27.7949 4.8855C27.7949 4.19279 27.679 3.60815 27.4473 3.13159C27.2181 2.65503 26.9069 2.29435 26.5137 2.04956C26.123 1.80477 25.6855 1.68237 25.2012 1.68237C24.7168 1.68237 24.278 1.80477 23.8848 2.04956C23.4941 2.29435 23.1829 2.65503 22.9512 3.13159C22.722 3.60815 22.6074 4.19279 22.6074 4.8855C22.6074 5.57821 22.722 6.16284 22.9512 6.6394C23.1829 7.11597 23.4941 7.47664 23.8848 7.72144C24.278 7.96623 24.7168 8.08862 25.2012 8.08862C25.6855 8.08862 26.123 7.96623 26.5137 7.72144C26.9069 7.47664 27.2181 7.11597 27.4473 6.6394C27.679 6.16284 27.7949 5.57821 27.7949 4.8855Z"
21
- fill={color}
22
- />
23
- <path
24
- d="M31.8145 8.8855L29.627 0.885498H30.6113L32.2832 7.40112H32.3613L34.0645 0.885498H35.1582L36.8613 7.40112H36.9395L38.6113 0.885498H39.5957L37.4082 8.8855H36.4082L34.6426 2.5105H34.5801L32.8145 8.8855H31.8145Z"
25
- fill={color}
26
- />
27
- <path
28
- d="M40.8027 8.8855V0.885498H45.6309V1.74487H41.7715V4.448H45.3809V5.30737H41.7715V8.02612H45.6934V8.8855H40.8027Z"
29
- fill={color}
30
- />
31
- <path
32
- d="M47.377 8.8855V0.885498H50.0801C50.7051 0.885498 51.2181 0.992269 51.6191 1.20581C52.0202 1.41675 52.3171 1.70711 52.5098 2.0769C52.7025 2.4467 52.7988 2.86727 52.7988 3.33862C52.7988 3.80998 52.7025 4.22795 52.5098 4.59253C52.3171 4.95711 52.0215 5.24357 51.623 5.4519C51.2246 5.65763 50.7155 5.7605 50.0957 5.7605H47.9082V4.8855H50.0645C50.4915 4.8855 50.8353 4.823 51.0957 4.698C51.3587 4.573 51.5488 4.39592 51.666 4.16675C51.7858 3.93498 51.8457 3.65894 51.8457 3.33862C51.8457 3.01831 51.7858 2.73836 51.666 2.49878C51.5462 2.2592 51.3548 2.0743 51.0918 1.94409C50.8288 1.81128 50.4811 1.74487 50.0488 1.74487H48.3457V8.8855H47.377ZM51.1426 5.29175L53.1113 8.8855H51.9863L50.0488 5.29175H51.1426Z"
33
- fill={color}
34
- />
35
- <path
36
- d="M54.4131 8.8855V0.885498H59.2412V1.74487H55.3818V4.448H58.9912V5.30737H55.3818V8.02612H59.3037V8.8855H54.4131Z"
37
- fill={color}
38
- />
39
- <path
40
- d="M63.4561 8.8855H60.9873V0.885498H63.5654C64.3415 0.885498 65.0055 1.04565 65.5576 1.36597C66.1097 1.68368 66.5329 2.14071 66.8271 2.73706C67.1214 3.33081 67.2686 4.04175 67.2686 4.86987C67.2686 5.70321 67.1201 6.42065 66.8232 7.02222C66.5264 7.62118 66.0941 8.08211 65.5264 8.40503C64.9587 8.72534 64.2686 8.8855 63.4561 8.8855ZM61.9561 8.02612H63.3936C64.055 8.02612 64.6032 7.89852 65.0381 7.64331C65.473 7.3881 65.7972 7.02482 66.0107 6.55347C66.2243 6.08211 66.3311 5.52092 66.3311 4.86987C66.3311 4.22404 66.2256 3.66805 66.0146 3.2019C65.8037 2.73315 65.4886 2.37378 65.0693 2.12378C64.6501 1.87118 64.1279 1.74487 63.5029 1.74487H61.9561V8.02612Z"
41
- fill={color}
42
- />
43
- <path
44
- d="M71.9873 8.8855V0.885498H74.7842C75.3415 0.885498 75.8011 0.981852 76.1631 1.17456C76.5251 1.36466 76.7946 1.62118 76.9717 1.94409C77.1488 2.2644 77.2373 2.61987 77.2373 3.0105C77.2373 3.35425 77.1761 3.6381 77.0537 3.86206C76.9339 4.08602 76.7751 4.2631 76.5771 4.39331C76.3818 4.52352 76.1696 4.61987 75.9404 4.68237V4.7605C76.1852 4.77612 76.4313 4.86206 76.6787 5.01831C76.9261 5.17456 77.1331 5.39852 77.2998 5.69019C77.4665 5.98185 77.5498 6.33862 77.5498 6.7605C77.5498 7.16154 77.4587 7.52222 77.2764 7.84253C77.0941 8.16284 76.8063 8.41675 76.4131 8.60425C76.0199 8.79175 75.5081 8.8855 74.8779 8.8855H71.9873ZM72.9561 8.02612H74.8779C75.5107 8.02612 75.96 7.90373 76.2256 7.65894C76.4938 7.41154 76.6279 7.11206 76.6279 6.7605C76.6279 6.48966 76.5589 6.23967 76.4209 6.0105C76.2829 5.77873 76.0863 5.59383 75.8311 5.45581C75.5758 5.31519 75.2738 5.24487 74.9248 5.24487H72.9561V8.02612ZM72.9561 4.40112H74.7529C75.0446 4.40112 75.3076 4.34383 75.542 4.22925C75.779 4.11467 75.9665 3.95321 76.1045 3.74487C76.2451 3.53654 76.3154 3.29175 76.3154 3.0105C76.3154 2.65894 76.193 2.36076 75.9482 2.11597C75.7034 1.86857 75.3154 1.74487 74.7842 1.74487H72.9561V4.40112Z"
45
- fill={color}
46
- />
47
- <path
48
- d="M78.4541 0.885498H79.5635L81.7822 4.61987H81.876L84.0947 0.885498H85.2041L82.3135 5.58862V8.8855H81.3447V5.58862L78.4541 0.885498Z"
49
- fill={color}
50
- />
51
- <path
52
- fillRule="evenodd"
53
- clipRule="evenodd"
54
- d="M98.8441 32.3669C98.2276 32.3669 97.7076 32.8865 97.7076 33.4781C97.7076 34.0709 98.2276 34.5892 98.8441 34.5892C99.518 34.5892 100 34.0709 100 33.4781C100 32.8496 99.518 32.3669 98.8441 32.3669ZM98.844 34.4599C98.286 34.4599 97.8221 33.9962 97.8221 33.478C97.8221 32.9421 98.286 32.4974 98.844 32.4974C99.4217 32.4974 99.8461 32.9421 99.8461 33.478C99.8461 33.9962 99.4217 34.4599 98.844 34.4599ZM99.3046 33.2195C99.3046 33.0903 99.2286 32.831 98.806 32.831H98.4385V34.1445H98.6138V33.5708H98.9019L99.1514 34.1445H99.3046L99.0743 33.5514C99.2102 33.5337 99.3046 33.3868 99.3046 33.2195ZM98.8239 33.4588H98.6138V32.9779H98.862C99.0358 32.9779 99.1699 33.0347 99.1699 33.2196C99.1699 33.3311 99.1119 33.4588 98.8239 33.4588Z"
55
- fill={props.color}
56
- />
57
- <path
58
- fillRule="evenodd"
59
- clipRule="evenodd"
60
- d="M37.9119 33.8485L28.4715 22.2537V33.6435H27.4075V19.8303L27.6589 19.7744L37.0221 31.2387V19.9796H38.1053V33.8112L37.9119 33.8485Z"
61
- fill={props.color}
62
- />
63
- <path
64
- fillRule="evenodd"
65
- clipRule="evenodd"
66
- d="M46.4815 33.8485C43.1568 33.8485 41.1619 31.9733 41.1619 28.6206V19.7744H42.2571V28.6015C42.2571 31.443 43.9194 32.8826 46.4815 32.8826C49.0435 32.8826 50.7449 31.4051 50.7449 28.6015V19.7744H51.8597V28.6206C51.8597 31.8786 49.7279 33.8485 46.4815 33.8485Z"
67
- fill={color}
68
- />
69
- <path
70
- fillRule="evenodd"
71
- clipRule="evenodd"
72
- d="M62.06 33.8485C60.5561 33.8485 59.2066 33.3652 57.9728 32.5842L58.4934 31.6733C59.6309 32.4169 60.884 32.9004 62.1562 32.9004C64.0262 32.9004 65.2795 31.7475 65.2795 30.2416C65.2795 28.6613 64.1808 27.9733 62.1757 27.0996C59.9971 26.1699 58.6669 25.2031 58.6669 23.3256C58.6669 21.3547 60.3827 19.7744 62.908 19.7744C64.1419 19.7744 65.2601 20.1648 66.0891 20.7039L65.5687 21.5778C64.8553 21.0943 63.8722 20.7225 62.8118 20.7225C60.9224 20.7225 59.7465 21.838 59.7465 23.251C59.7465 24.7198 60.9418 25.4262 62.6576 26.1887C65.0866 27.2483 66.3782 28.1594 66.3782 30.1115C66.3782 32.3426 64.4505 33.8485 62.06 33.8485Z"
73
- fill={color}
74
- />
75
- <path
76
- fillRule="evenodd"
77
- clipRule="evenodd"
78
- d="M77.2052 33.8485L70.4931 26.898V33.8485H69.4347V19.7744H70.4931V26.3217L76.9783 19.7744H78.3394L71.5141 26.6097L78.6043 33.8485H77.2052Z"
79
- fill={color}
80
- />
81
- <path
82
- fillRule="evenodd"
83
- clipRule="evenodd"
84
- d="M80.8967 33.8485H81.8901V19.7744H80.8967V33.8485Z"
85
- fill={color}
86
- />
87
- <path
88
- fillRule="evenodd"
89
- clipRule="evenodd"
90
- d="M95.9857 33.8485L86.5454 22.2537V33.6435H85.4814V19.8303L85.7331 19.7744L95.0958 31.2387V19.9796H96.1793V33.8112L95.9857 33.8485Z"
91
- fill={color}
92
- />
93
- <path
94
- fillRule="evenodd"
95
- clipRule="evenodd"
96
- d="M17.2824 21.0565C17.2824 21.0565 19.2781 20.9567 20.7785 22.6234C21.2739 23.179 21.7551 23.8912 22.024 24.8884C21.3163 19.5037 16.7162 15.33 11.1394 15.33C5.57676 15.33 0.962469 19.5037 0.240601 24.9026C0.509532 23.9055 0.990778 23.1932 1.48618 22.6376C3.00069 20.971 4.98229 21.0707 4.98229 21.0707C9.93628 21.3271 9.96459 26.3414 9.96459 26.3414V37.3955C10.1911 37.424 10.4317 37.4382 10.6723 37.4525V25.6291C10.6723 24.0194 10.1769 22.4525 9.05872 21.3414C8.03961 20.3157 6.72326 19.7459 5.33614 19.7174C5.93062 18.6775 6.75157 17.8086 7.72822 17.1961C8.76148 16.555 9.93628 16.2131 11.1394 16.2131C12.3425 16.2131 13.5315 16.555 14.5647 17.1961C15.5414 17.8086 16.3623 18.6775 16.9568 19.7174C15.5697 19.7459 14.2392 20.3157 13.2201 21.3414C12.1019 22.4525 11.5923 24.0194 11.5923 25.6291V37.424C11.833 37.4097 12.0594 37.3955 12.3 37.367V26.3271C12.3 26.3271 12.3284 21.3129 17.2824 21.0565ZM17.7353 27.0251C17.7353 27.0251 16.9852 27.0393 16.3624 27.4382C15.6122 27.9083 14.8337 28.8627 14.8337 30.8285V36.7972C17.0418 35.9995 18.9243 34.518 20.2265 32.5949C21.0899 31.1846 21.1182 30.0735 20.9059 29.2616C20.5945 28.2217 19.6462 26.9254 17.7353 27.0251ZM17.3956 23.5066C18.8818 23.5066 19.8726 23.9054 20.5379 24.4325C21.0758 24.9026 22.661 26.555 21.6136 29.6604C21.5995 27.424 21.0758 26.6262 20.4954 25.9567C19.2498 24.6035 17.5938 24.7601 17.5938 24.7601C15.6264 24.8171 14.7063 25.8 14.2817 26.6975C13.8854 27.4952 13.9137 28.2074 13.9137 28.2074V37.0821C13.6872 37.1391 13.4607 37.196 13.2201 37.2388V27.2103C13.2201 23.5351 17.3956 23.5066 17.3956 23.5066ZM4.88322 23.5066C3.39702 23.5066 2.40622 23.9054 1.74097 24.4325C1.20311 24.9026 -0.382169 26.555 0.651093 29.6604C0.665248 27.424 1.18896 26.6262 1.76928 25.9567C3.0007 24.6035 4.67091 24.7601 4.67091 24.7601C6.63835 24.8171 7.55838 25.8 7.98301 26.6975C8.37933 27.4809 8.35102 28.2074 8.35102 28.2074V37.0821C8.57749 37.1391 8.81811 37.196 9.05874 37.2388V27.2245C9.07289 23.5351 4.88322 23.5066 4.88322 23.5066ZM4.55768 27.0251C4.55768 27.0251 5.30786 27.0393 5.93065 27.4382C6.66667 27.9083 7.45931 28.8627 7.45931 30.8285V36.7972C5.25125 35.9995 3.36873 34.518 2.06653 32.5949C1.21727 31.1846 1.17481 30.0735 1.38713 29.2616C1.68437 28.2217 2.6327 26.9111 4.55768 27.0251Z"
97
- fill={color}
98
- />
99
- </SvgIcon>
100
- )
101
- }
102
-
103
- export default NSLogoPoweredBy
@@ -1,57 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* eslint-disable max-len */
4
- import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
5
-
6
- const NSLogoStacked = (props: SvgIconProps):ReactElement => {
7
- return (
8
- <SvgIcon
9
- viewBox="0 0 155 108"
10
- fill="none"
11
- data-testid="logo"
12
- xmlns="http://www.w3.org/2000/svg"
13
- {...props}>
14
- <g clipPath="url(#clip0_11117_50399)">
15
- <path
16
- d="M145.803 20.6435C145.084 18.9662 144.039 17.4488 142.728 16.1793C139.943 13.5595 136.017 12.5391 132.31 13.472C128.604 14.4047 125.626 17.1622 124.411 20.7888C123.792 22.4814 123.475 24.2696 123.474 26.0719C123.474 33.9438 123.474 41.8201 123.474 49.7006C123.474 51.0214 123.474 51.0214 122.022 50.9554C122.022 50.7044 122.022 50.4271 122.022 50.1628C122.022 41.2608 122.022 32.3632 122.022 23.47C121.801 17.9191 125.172 12.8556 130.376 10.9226C131.004 10.703 131.648 10.5308 132.303 10.4075C132.936 10.2754 133.622 10.2225 134.256 10.1433C133.451 6.45834 126.746 2.21863 121.309 1.96768C115.508 1.82825 110.13 4.99786 107.439 10.1433C108.059 10.2225 108.667 10.2622 109.247 10.3678C114.641 11.2894 118.805 15.6226 119.515 21.0529C119.661 22.0412 119.736 23.0388 119.739 24.0379C119.739 32.7288 119.739 41.4193 119.739 50.1101C119.739 50.7968 119.58 51.0875 118.842 51.0081C118.102 50.929 118.182 50.7044 118.182 50.2159C118.182 47.4552 118.182 44.6948 118.182 41.9212C118.182 36.4532 118.182 30.9852 118.182 25.5172C118.228 22.3039 117.053 19.193 114.895 16.8132C112.342 14.0518 108.579 12.7501 104.866 13.3445C101.154 13.939 97.9845 16.3508 96.4194 19.7718C96.248 20.102 96.1026 20.4454 95.8652 20.9341C98.0359 8.85927 108.509 0.0553189 120.767 0.000259583C133.026 -0.0547998 143.577 8.65471 145.856 20.7095"
17
- fill={props.color}
18
- />
19
- <path
20
- d="M129.556 49.41C129.556 49.1591 129.556 48.9873 129.556 48.8157C129.556 44.1663 129.556 39.5703 129.556 34.8551C129.471 32.5992 130.332 30.4108 131.931 28.819C133.957 26.8776 136.968 26.3842 139.507 27.5775C142.034 28.5237 143.712 30.9388 143.716 33.6398C143.792 36.4561 142.775 39.192 140.879 41.2738C138.105 44.7864 134.467 47.5172 130.321 49.1985C130.075 49.2868 129.824 49.3618 129.569 49.4231"
21
- fill={props.color}
22
- />
23
- <path
24
- d="M112.176 49.5949C110.526 48.7363 108.969 48.0496 107.53 47.1646C104.217 45.2066 101.445 42.4507 99.4666 39.1475C98.3269 37.3357 97.8597 35.1804 98.1469 33.0589C98.5316 29.7773 101.212 27.2445 104.508 27.0492C107.978 26.5971 111.208 28.902 111.912 32.3324C112.153 33.327 112.277 34.3466 112.281 35.3701C112.281 39.7552 112.281 44.1533 112.281 48.5778C112.281 48.8288 112.281 49.0667 112.202 49.5552"
25
- fill={props.color}
26
- />
27
- <path
28
- d="M115.91 50.4005C114.591 50.4005 114.472 50.308 114.472 49.1721V30.3114C114.645 26.8698 112.63 23.6935 109.444 22.3867C105.928 20.905 101.865 21.6983 99.1633 24.3943C97.4446 26.3444 96.5048 28.8603 96.5238 31.4604C96.5292 31.7375 96.461 32.0109 96.3258 32.253C96.1804 31.619 96.009 30.9321 95.9297 30.351C95.478 27.8623 95.9471 25.2941 97.2494 23.1263C98.1536 21.5993 99.5498 20.4255 101.209 19.798C104.734 18.413 108.691 18.6596 112.017 20.4716C114.468 21.7014 115.986 24.2401 115.91 26.983C115.976 34.6566 115.91 42.3303 115.91 49.991C115.91 50.1495 115.91 50.2947 115.91 50.4402"
29
- fill={props.color}
30
- />
31
- <path
32
- d="M125.704 50.427V49.476C125.704 42.3969 125.783 35.3175 125.704 28.238C125.625 22.5058 128.832 20.036 133.346 19.1246C135.614 18.6682 137.965 18.8418 140.142 19.6266C144.005 21.0933 146.392 24.9853 145.949 29.0965C145.856 30.1707 145.676 31.2353 145.408 32.2796C145.183 30.9588 145.091 29.6381 144.734 28.3173C143.964 25.4313 141.832 23.1046 139.026 22.0861C136.22 21.0675 133.094 21.4856 130.653 23.2059C128.356 24.7671 127.044 27.4182 127.195 30.1928C127.195 36.4798 127.195 42.7667 127.195 49.0535C127.195 50.3743 127.195 50.3743 125.678 50.3743"
33
- fill={props.color}
34
- />
35
- <path
36
- d="M27.714 93.128C27.714 86.9072 24.9822 83.6714 15.2691 79.2862C9.55475 76.6447 7.35082 74.0031 7.35082 70.8333C7.35082 66.567 10.3334 63.0141 16.1797 63.0141C19.1984 63.0878 22.1225 64.0833 24.5599 65.8672L26.843 61.5482C23.781 59.4956 20.1818 58.393 16.4964 58.3784C7.91831 58.3784 2.21712 64.3746 2.21712 71.0843C2.21712 76.6711 5.1997 80.3297 13.2631 83.8562C20.8779 87.2242 22.5011 89.6412 22.5011 93.7093C22.5011 97.7771 19.7034 101.845 13.7383 101.845C9.66038 101.629 5.74215 100.188 2.49426 97.711L0 102.162C3.94083 104.954 8.64596 106.462 13.4743 106.481C21.5378 106.481 27.6876 100.696 27.6876 93.128H27.714ZM71.951 105.715L49.3309 81.7563L70.9214 59.0915H64.5076L44.2501 80.8052V59.0915H39.1693V105.715H44.2501V82.8655L65.2731 105.715H71.951ZM89.5955 59.0915H84.462V105.715H89.5428L89.5955 59.0915ZM141.408 106.376V59.0915H136.327V93.8942L106.475 58.2329L105.458 58.4839V105.715H110.539V70.3842L140.774 106.639L141.408 106.376Z"
37
- fill={props.color}
38
- />
39
- <path
40
- d="M39.4206 50.1894V2.91866H34.3131V37.6684L4.47444 2.00732L3.45825 2.25827V49.4893H8.53915V14.1849L38.7607 50.414L39.4206 50.1894ZM85.0167 32.7814V2.91866H79.9359V32.3983C79.9359 41.6438 74.6571 45.6855 67.425 45.6855C60.1929 45.6855 55.0461 41.7232 55.0461 32.3983V2.91866H49.965V32.7814C49.965 43.9686 56.7616 50.2555 67.425 50.2555C77.8373 50.2555 85.0167 43.5856 85.0167 32.7814Z"
41
- fill={props.color}
42
- />
43
- <path
44
- d="M150.431 107.7C152.737 107.7 154.569 105.785 154.569 103.5C154.569 101.162 152.737 99.2468 150.431 99.2468C148.124 99.2468 146.318 101.136 146.318 103.5C146.318 105.811 148.15 107.7 150.431 107.7ZM150.431 107.119C148.52 107.119 146.977 105.441 146.977 103.513C146.977 101.492 148.52 99.8808 150.431 99.8808C152.368 99.8808 153.91 101.505 153.91 103.513C153.91 105.455 152.368 107.119 150.431 107.119ZM149.811 102.007C149.93 101.981 150.128 101.981 150.299 101.981C150.866 101.981 151.208 102.258 151.208 102.668C151.208 103.183 150.866 103.473 150.246 103.473C150.128 103.473 149.969 103.473 149.798 103.447V102.007H149.811ZM149.126 105.521H149.811V104.028C149.983 104.055 150.101 104.055 150.18 104.055C150.233 104.055 150.378 104.055 150.497 104.028L151.406 105.521H152.21L151.156 103.87C151.617 103.672 151.907 103.183 151.907 102.641C151.907 101.955 151.367 101.36 150.22 101.36C149.798 101.36 149.455 101.387 149.126 101.439V105.521Z"
45
- fill={props.color}
46
- />
47
- </g>
48
- <defs>
49
- <clipPath id="clip0_11117_50399">
50
- <rect width="155" height="108" fill="white" />
51
- </clipPath>
52
- </defs>
53
- </SvgIcon>
54
- )
55
- }
56
-
57
- export default NSLogoStacked
@@ -1,60 +0,0 @@
1
- import { ReactElement } from 'react';
2
-
3
- /* eslint-disable max-len */
4
- import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon';
5
-
6
- const NSLogoWordMark = (props: SvgIconProps):ReactElement => {
7
- return (
8
- <SvgIcon
9
- viewBox="0 0 98 20"
10
- data-testid="logo"
11
- fill="none"
12
- xmlns="http://www.w3.org/2000/svg"
13
- {...props}>
14
- <path
15
- fillRule="evenodd"
16
- clipRule="evenodd"
17
- d="M96.4395 17C95.6072 17 94.9053 17.7014 94.9053 18.5C94.9053 19.3004 95.6072 20 96.4395 20C97.3493 20 98 19.3004 98 18.5C98 17.6516 97.3493 17 96.4395 17ZM96.4393 19.8255C95.686 19.8255 95.0598 19.1996 95.0598 18.5C95.0598 17.7765 95.686 17.1762 96.4393 17.1762C97.2193 17.1762 97.7922 17.7765 97.7922 18.5C97.7922 19.1996 97.2193 19.8255 96.4393 19.8255ZM97.0612 18.151C97.0612 17.9766 96.9586 17.6265 96.388 17.6265H95.892V19.3997H96.1287V18.6252H96.5176L96.8544 19.3997H97.0612L96.7503 18.599C96.9337 18.5751 97.0612 18.3768 97.0612 18.151ZM96.4123 18.474H96.1286V17.8248H96.4637C96.6983 17.8248 96.8794 17.9014 96.8794 18.151C96.8794 18.3016 96.8011 18.474 96.4123 18.474Z"
18
- fill={props.color}
19
- />
20
- <path
21
- fillRule="evenodd"
22
- clipRule="evenodd"
23
- d="M14.181 19L1.43645 3.34704V18.7232H0V0.0754862L0.339466 0L12.9798 15.4768V0.277025H14.4421V18.9497L14.181 19Z"
24
- fill={props.color}
25
- />
26
- <path
27
- fillRule="evenodd"
28
- clipRule="evenodd"
29
- d="M25.7499 19C21.2617 19 18.5685 16.4685 18.5685 11.9423V0H20.0471V11.9165C20.0471 15.7525 22.2912 17.696 25.7499 17.696C29.2087 17.696 31.5056 15.7014 31.5056 11.9165V0H33.0106V11.9423C33.0106 16.3406 30.1326 19 25.7499 19Z"
30
- fill={props.color}
31
- />
32
- <path
33
- fillRule="evenodd"
34
- clipRule="evenodd"
35
- d="M46.781 19C44.7507 19 42.9289 18.3475 41.2632 17.2933L41.966 16.0636C43.5016 17.0674 45.1934 17.7201 46.9109 17.7201C49.4353 17.7201 51.1273 16.1637 51.1273 14.1307C51.1273 11.9973 49.644 11.0685 46.9371 9.889C43.9961 8.63396 42.2002 7.32873 42.2002 4.79404C42.2002 2.13339 44.5165 0 47.9257 0C49.5914 0 51.101 0.527014 52.2202 1.2548L51.5176 2.43455C50.5545 1.78181 49.2274 1.27989 47.7959 1.27989C45.2452 1.27989 43.6578 2.78589 43.6578 4.69342C43.6578 6.67624 45.2714 7.62988 47.5877 8.6593C50.8668 10.0898 52.6106 11.3197 52.6106 13.955C52.6106 16.967 50.008 19 46.781 19Z"
36
- fill={props.color}
37
- />
38
- <path
39
- fillRule="evenodd"
40
- clipRule="evenodd"
41
- d="M67.227 19L58.1657 9.61689V19H56.7368V0H58.1657V8.83886L66.9207 0H68.7582L59.5441 9.22763L69.1158 19H67.227Z"
42
- fill={props.color}
43
- />
44
- <path
45
- fillRule="evenodd"
46
- clipRule="evenodd"
47
- d="M72.2106 19H73.5516V0H72.2106V19Z"
48
- fill={props.color}
49
- />
50
- <path
51
- fillRule="evenodd"
52
- clipRule="evenodd"
53
- d="M92.5808 19L79.8364 3.34704V18.7232H78.4V0.0754862L78.7397 0L91.3794 15.4768V0.277025H92.8421V18.9497L92.5808 19Z"
54
- fill={props.color}
55
- />
56
- </SvgIcon>
57
- )
58
- }
59
-
60
- export default NSLogoWordMark
@@ -1,2 +0,0 @@
1
- export { default as NsBrandComponent } from './NsBrandComponent';
2
- export type { NsBrandComponentProps } from './types.d';
@@ -1,11 +0,0 @@
1
- import { FoundationTheme } from '@nuskin/foundation-theme';
2
-
3
- export type NsBrandComponentProps = {
4
- variant?: 'stacked' | 'horizontal' | 'poweredBy' | 'logomark' | 'wordmark';
5
- size?: string;
6
- color?: FoundationTheme.PaletteColors;
7
- };
8
-
9
- export type SVGLogoProps = {
10
- color: string;
11
- };
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import { NsBreadcrumb } from './';
4
- import { breadcrumbItems, dummyItems } from './data';
5
- const { getByText } = screen;
6
-
7
- describe('Breadcrumb', () => {
8
- it('1. renders breadcrumb items', () => {
9
- render(<NsBreadcrumb items={breadcrumbItems} />);
10
- expect(getByText('Home')).toBeInTheDocument();
11
- expect(getByText('Products')).toBeInTheDocument();
12
- expect(getByText('Shirts')).toBeInTheDocument();
13
- expect(getByText('Blue shirt')).toBeInTheDocument();
14
- });
15
-
16
- it('2. renders breadcrumb items with navigation icons', () => {
17
- render(<NsBreadcrumb items={breadcrumbItems} />);
18
- expect(getByText('Home')).toBeInTheDocument();
19
- expect(getByText('Products')).toBeInTheDocument();
20
- expect(getByText('Shirts')).toBeInTheDocument();
21
- expect(getByText('Blue shirt')).toBeInTheDocument();
22
- });
23
-
24
- it('3. renders breadcrumb items with navigation icons', () => {
25
- render(<NsBreadcrumb items={dummyItems} />);
26
- expect(getByText('Home')).toBeInTheDocument();
27
- });
28
- });
@@ -1,39 +0,0 @@
1
- /**
2
- * @description NsBanner component.
3
- */
4
-
5
- import type { Meta, StoryObj } from '@storybook/react';
6
-
7
- import { NsBreadcrumb } from './';
8
- import { withCenterDecorator } from '@/stories/decorators/withCenterDecorator';
9
- import { breadcrumbItems } from './data';
10
-
11
- type ComponentType = typeof NsBreadcrumb;
12
- type Story = StoryObj<ComponentType>;
13
- type MetaStory = Meta<ComponentType>;
14
-
15
- export default {
16
- title: 'Components/Navigation/NsBreadcrumb',
17
- component: NsBreadcrumb,
18
- decorators: [withCenterDecorator],
19
- argTypes: {
20
- underline: { control: 'boolean' },
21
- },
22
- args: {
23
- items: [
24
- { label: 'Home', href: 'home', icon: 'home' },
25
- { label: 'Call to action', href: '/products' },
26
- { label: 'Call to action', href: '/products/shirts' },
27
- { label: 'Product', href: '' },
28
- ],
29
- underline: true,
30
- separator: 'chevronRight',
31
- },
32
- } as MetaStory;
33
-
34
- export const Breadcrumb: Story = {};
35
- export const WithIcons: Story = {
36
- args: {
37
- items: breadcrumbItems
38
- },
39
- };
@@ -1,36 +0,0 @@
1
- import { styled } from '@nuskin/foundation-theme';
2
- import { NsLink } from '../link';
3
-
4
- export const BreadcrumbContainer = styled.nav`
5
- margin-bottom: 10px;
6
- `;
7
-
8
- export const BreadcrumbList = styled.ol`
9
- display: flex;
10
- flex-wrap: wrap;
11
- padding: 0;
12
- margin: 0;
13
- list-style: none;
14
- `;
15
-
16
- export const BreadcrumbItem = styled.li`
17
- display: flex;
18
- align-items: center;
19
- :not(:first-of-type) {
20
- margin-left: 12px;
21
- }
22
- & a {
23
- display: flex;
24
- gap: 8px;
25
- margin-right: 12px;
26
- }
27
- .slashIcon {
28
- transform: rotate(20deg);
29
- }
30
- `;
31
-
32
- export const BreadcrumbStyledLink = styled(NsLink)<{ underlineVisibility?: boolean }>`
33
- text-decoration: ${({ underlineVisibility }) => (underlineVisibility ? 'underline' : 'none')};
34
- text-underline-offset: 4px;
35
- font-weight: 700;
36
- `;
@@ -1,85 +0,0 @@
1
- /**
2
- * @author [Vijayaprathap Kumar] (vpkumar@nuskin.com)
3
- * NsBreadcrumb.tsx
4
- * @description NsBreadcrumb component with a navigation items array props
5
- */
6
-
7
- import {
8
- PropsWithChildren,
9
- ReactElement,
10
- } from 'react';
11
-
12
- import { useTheme } from '@mui/material/styles';
13
- import { ColorUtils } from '@nuskin/foundation-theme';
14
-
15
- import {
16
- NsIcon,
17
- NsTypography,
18
- } from '../';
19
- import {
20
- BreadcrumbContainer,
21
- BreadcrumbItem,
22
- BreadcrumbList,
23
- BreadcrumbStyledLink,
24
- } from './NsBreadcrumb.styled';
25
- import {
26
- ItemProps,
27
- NsBreadcrumbProps,
28
- } from './types.d';
29
-
30
- const { color } = ColorUtils;
31
-
32
- const NsBreadcrumb = (props: PropsWithChildren<NsBreadcrumbProps>):ReactElement => {
33
- const { items, underline = true, separator = 'chevronRight' } = props;
34
-
35
- const theme = useTheme();
36
- const neutral80 = color('neutral', '80')({ theme });
37
- const neutral60 = color('neutral', '60')({ theme });
38
-
39
- const getLabel = (item: ItemProps) => {
40
- if (item?.href) {
41
- return (
42
- <NsTypography variant="h6" colorOverride={neutral60}>
43
- <BreadcrumbStyledLink
44
- underlineVisibility={underline}
45
- href={item.href}
46
- underlineOnHover={!underline}
47
- >
48
- {item.icon ? (
49
- <NsIcon name={item.icon} size="medium" testId="nav-icon" colorOverride={neutral60} />
50
- ) : null}
51
- {item.label}
52
- </BreadcrumbStyledLink>
53
- </NsTypography>
54
- );
55
- } else {
56
- return (
57
- <NsTypography variant="h6" weight="bold" colorOverride={neutral80}>
58
- {item.label}
59
- </NsTypography>
60
- );
61
- }
62
- };
63
-
64
- return (
65
- <BreadcrumbContainer aria-label="breadcrumb">
66
- <BreadcrumbList>
67
- {items?.map((item: ItemProps, index: number) => (
68
- <BreadcrumbItem key={item.label}>
69
- {getLabel(item)}
70
- {index !== items.length - 1 ? (
71
- <NsIcon
72
- className={separator === 'slash' && 'slashIcon'}
73
- name={separator}
74
- size="medium"
75
- colorOverride={neutral80}
76
- />
77
- ) : null}
78
- </BreadcrumbItem>
79
- ))}
80
- </BreadcrumbList>
81
- </BreadcrumbContainer>
82
- );
83
- };
84
-
85
- export default NsBreadcrumb;
@@ -1,10 +0,0 @@
1
- import {ItemProps} from './types';
2
- export const breadcrumbItems: ItemProps[] = [
3
- {label: 'Home', href: '/', icon: 'home'},
4
- {label: 'Products', href: '/products'},
5
- {label: 'Shirts', href: '/products/shirts'},
6
- {label: 'Blue shirt', href: '/products/shirts/blue'},
7
- ];
8
- export const dummyItems: ItemProps[] = [
9
- {label: 'Home', icon: 'home'}
10
- ]
@@ -1,2 +0,0 @@
1
- export { default as NsBreadcrumb } from './NsBreadcrumb';
2
- export type { NsBreadcrumbProps } from './types.d';
@@ -1,14 +0,0 @@
1
- import { AdditionalProps } from '../common.types';
2
- import { NsIconNameType } from '../icon';
3
-
4
- export type NsBreadcrumbProps = {
5
- items?: ItemProps[];
6
- underline?: boolean;
7
- separator?: 'chevronRight' | 'slash';
8
- };
9
-
10
- export type ItemProps = {
11
- label?: string;
12
- href?: string;
13
- icon?: NsIconNameType;
14
- } & AdditionalProps;
@@ -1,94 +0,0 @@
1
- import { render, screen } from '@/test-utils/index';
2
- import { nuskinTheme } from '@nuskin/foundation-theme';
3
- import React from 'react';
4
-
5
- import { NsButton } from '../';
6
-
7
- const { palette } = nuskinTheme;
8
-
9
- describe('<Button />', () => {
10
- it('0. should match snapshot', () => {
11
- const text = 'Click Me';
12
- const { container } = render(
13
- <NsButton color="primary" variant="contained">
14
- {text}
15
- </NsButton>
16
- );
17
- expect(container).toMatchSnapshot();
18
- });
19
- it('1. should render default primary button styles ', () => {
20
- const text = 'Click Me';
21
- render(
22
- <NsButton color="primary" variant="contained">
23
- {text}
24
- </NsButton>
25
- );
26
-
27
- const button = screen.getByText(text);
28
- expect(button).toBeInTheDocument();
29
- expect(button).toHaveStyle(`color: ${palette?.primary?.contrastText}`);
30
- // expect(button).toHaveStyle(`background-color: ${palette?.primary?.buttonState?.pressed}`);
31
- });
32
- it('2. should render default secondary button styles', () => {
33
- const text = 'Click Me';
34
- render(
35
- <NsButton color="success" variant="contained" size="large">
36
- {text}
37
- </NsButton>
38
- );
39
-
40
- const button = screen.getByText(text);
41
-
42
- expect(button).toBeInTheDocument();
43
- expect(button).toHaveStyle(`color: ${palette.success.contrastText}`);
44
- // expect(button).toHaveStyle(`background-color: ${palette.success.buttonState?.pressed}`);
45
- });
46
- it('3. should render outlined success button', () => {
47
- render(
48
- <NsButton color="success" variant="outlined" size="large">
49
- Click Me
50
- </NsButton>
51
- );
52
-
53
- const button = screen.getByText('Click Me');
54
- expect(button).toBeInTheDocument();
55
- // expect(button).toHaveStyle(`color: ${palette.success.main}`);
56
- });
57
- it('4. should render outlined accentColorA button', () => {
58
- render(
59
- <NsButton color={'accentColorA' as any} variant="outlined" size="large">
60
- Click Me
61
- </NsButton>
62
- );
63
-
64
- const button = screen.getByText('Click Me');
65
- expect(button).toBeInTheDocument();
66
- // expect(button).toHaveStyle(`color: ${palette?.accentColorA?.main}`);
67
- });
68
- it('5. should render text button styles', () => {
69
- const text = 'Click Me';
70
- render(
71
- <NsButton color="success" variant="text" size="large">
72
- {text}
73
- </NsButton>
74
- );
75
-
76
- const button = screen.getByText(text);
77
-
78
- expect(button).toBeInTheDocument();
79
- // expect(button).toHaveStyle(`color: ${palette.success.main}`);
80
- });
81
- it('6. iconOnly variant', () => {
82
- const text = 'Click Me';
83
- render(
84
- <NsButton color="success" variant="text" size="large" iconOnly>
85
- {text}
86
- </NsButton>
87
- );
88
-
89
- const button = screen.getByText(text);
90
-
91
- expect(button).toBeInTheDocument();
92
- // expect(button).toHaveStyle(`color: ${palette.success.main}`);
93
- });
94
- });