@nuskin/foundation-ui-components 1.33.0-v1.32.0.1.1 → 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 -98
  268. package/src/common/link/NsLink.stories.tsx +0 -55
  269. package/src/common/link/NsLink.styled.tsx +0 -98
  270. package/src/common/link/NsLink.tsx +0 -115
  271. package/src/common/link/index.ts +0 -2
  272. package/src/common/link/types.d.ts +0 -21
  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
@@ -0,0 +1,1221 @@
1
+ import * as react from 'react';
2
+ import react__default, { ReactElement, HTMLProps, PropsWithChildren, ReactNode, SyntheticEvent, HTMLAttributes } from 'react';
3
+ import { FoundationTheme } from '@nuskin/foundation-theme';
4
+ import * as _mui_material from '@mui/material';
5
+ import { AutocompleteChangeReason, AutocompleteChangeDetails, ComponentsProps, ButtonProps, TextFieldProps, InputLabelProps, RadioGroupProps } from '@mui/material';
6
+ import { SvgIconProps } from '@mui/material/SvgIcon';
7
+ import * as _emotion_styled from '@emotion/styled';
8
+ import * as _emotion_react from '@emotion/react';
9
+ import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
10
+ import * as _mui_material_Card from '@mui/material/Card';
11
+ import * as _mui_material_CardMedia from '@mui/material/CardMedia';
12
+ import * as react_jsx_runtime from 'react/jsx-runtime';
13
+ import { CheckboxProps } from '@material-ui/core/Checkbox';
14
+ import { React } from 'React';
15
+ import * as notistack from 'notistack';
16
+ import { SnackbarProviderProps, VariantType } from 'notistack';
17
+
18
+ /**
19
+ * NsCollapse component adds css animation while showing children items if prop `isOpen` is true,
20
+ * and while removing children if prop `isOpen` is false
21
+ */
22
+ declare const NsCollapse: ({ isOpen, content, additionalProps, variant, level, invert, isChild, type, cslp, allowMultipleExpanded, }: NsCollapseProps) => ReactElement;
23
+
24
+ /**
25
+ * NsAccordionHeader is primarily used by NsToggleSection and NsAccordionItem
26
+ * as a header, so it accepts `title` , `isOpen` and `onClick`
27
+ */
28
+ declare const NsAccordionHeader: ({ title, onClick, isOpen, additionalProps, openedIconName, closedIconName, variant, headerTypographyVariant, startIcon, invert, cslp, showEndIconWhenEmpty, content, }: NsAccordionHeaderProps) => ReactElement;
29
+
30
+ /**
31
+ * NsToggleSection takes prop `title` and prop `children` and toggles
32
+ * children with animation when clicked on title
33
+ *
34
+ * it also has a `defaultOpen` prop, which when true, children is visible
35
+ * by default, otherwise children is hidden by default and toggles between visible
36
+ * and hidden on clicking title
37
+ */
38
+ declare const NsToggleSection: ({ title, content, additionalProps, defaultOpen, variant, invert, isChild, type, }: NsToggleSectionProps) => ReactElement;
39
+
40
+ /**
41
+ * this component is used by accordion to pass title
42
+ * and content
43
+ * cslp:{header:CslpTag, content:CslpTag}
44
+ */
45
+ declare const NsAccordionItem: ({ isOpen, isChild, toggleOpen, title, content, variant, headerTypographyVariant, closedIconName, openedIconName, startIcon, level, additionalProps, invert, type, cslp, allowMultipleExpanded, showEndIconWhenEmpty, }: NsAccordionItemProps) => ReactElement;
46
+
47
+ declare const NsAccordion: ({ allowMultipleExpanded, invert, level, variant, items, headerTypographyVariant, closedIconName, openedIconName, additionalProps, isChild, showEndIconWhenEmpty, }: NsAccordionProps) => ReactElement;
48
+
49
+ type CslpTag = { 'data-cslp': string };
50
+
51
+ type AdditionalProps = {
52
+ additionalProps?: {
53
+ ariaLabel?: string;
54
+ testid?: string;
55
+ className?: string;
56
+ 'data-testid'?: string;
57
+ } & Partial<CslpTag>;
58
+ cslp?: Record<string, CslpTag>;
59
+ } & DarkModeEnabledOption;
60
+
61
+ type Themed = {
62
+ theme: FoundationTheme.Theme;
63
+ };
64
+
65
+ type DarkModeEnabledOption = {
66
+ darkModeEnabled?: boolean;
67
+ };
68
+
69
+ type NsIconSizeType = 'small' | 'medium' | 'large' | 'xLarge';
70
+
71
+ type NsIconNameType = keyof typeof IconVariants;
72
+
73
+ type NsIconProps = HTMLProps & {
74
+ name: NsIconNameType;
75
+ size?: NsIconSizeType;
76
+ color?: FoundationTheme.PaletteColors;
77
+ testId?: string;
78
+ colorOverride?: string;
79
+ cursor?:
80
+ | 'auto'
81
+ | 'default'
82
+ | 'none'
83
+ | 'context-menu'
84
+ | 'help'
85
+ | 'pointer'
86
+ | 'progress'
87
+ | 'wait'
88
+ | 'cell'
89
+ | 'crosshair'
90
+ | 'text'
91
+ | 'vertical-text'
92
+ | 'alias'
93
+ | 'copy'
94
+ | 'move'
95
+ | 'no-drop'
96
+ | 'not-allowed'
97
+ | 'grab'
98
+ | 'grabbing'
99
+ | 'e-resize'
100
+ | 'n-resize'
101
+ | 'ne-resize'
102
+ | 'nw-resize'
103
+ | 's-resize'
104
+ | 'se-resize'
105
+ | 'sw-resize'
106
+ | 'w-resize'
107
+ | 'ew-resize'
108
+ | 'ns-resize'
109
+ | 'nesw-resize'
110
+ | 'nwse-resize'
111
+ | 'col-resize'
112
+ | 'row-resize'
113
+ | 'all-scroll'
114
+ | 'zoom-in'
115
+ | 'zoom-out';
116
+ };
117
+
118
+ declare const NsIcon: ({ name, size, color, testId, className, colorOverride, onClick, cursor, ...rest }: NsIconProps) => ReactElement | null;
119
+
120
+ /**
121
+ * * pass colorOverride = '#272525'
122
+ */
123
+ declare function UserOutline(props: SvgIconProps): ReactElement;
124
+
125
+ declare const IconVariants: {
126
+ arrowDown: (props: _mui_material.SvgIconProps) => react.ReactElement;
127
+ arrowUp: (props: _mui_material.SvgIconProps) => react.ReactElement;
128
+ arrowLeft: (props: _mui_material.SvgIconProps) => react.ReactElement;
129
+ arrowRight: (props: _mui_material.SvgIconProps) => react.ReactElement;
130
+ alertError: (props: _mui_material.SvgIconProps) => react.ReactElement;
131
+ cart: (props: _mui_material.SvgIconProps) => react.ReactElement;
132
+ cartBadge: (props: _mui_material.SvgIconProps) => react.ReactElement;
133
+ close: (props: _mui_material.SvgIconProps) => react.ReactElement;
134
+ check: (props: _mui_material.SvgIconProps) => react.ReactElement;
135
+ checkShield: (props: _mui_material.SvgIconProps) => react.ReactElement;
136
+ checkVerified: (props: _mui_material.SvgIconProps) => react.ReactElement;
137
+ error: (props: _mui_material.SvgIconProps) => react.ReactElement;
138
+ hamburgerIcon: (props: _mui_material.SvgIconProps) => react.ReactElement;
139
+ home: (props: _mui_material.SvgIconProps) => react.ReactElement;
140
+ infoFilled: (props: _mui_material.SvgIconProps) => react.ReactElement;
141
+ infoOutlined: (props: _mui_material.SvgIconProps) => react.ReactElement;
142
+ search: (props: _mui_material.SvgIconProps) => react.ReactElement;
143
+ success: (props: _mui_material.SvgIconProps) => react.ReactElement;
144
+ slash: (props: _mui_material.SvgIconProps) => react.ReactElement;
145
+ trash: (props: _mui_material.SvgIconProps) => react.ReactElement;
146
+ userIcon: (props: _mui_material.SvgIconProps) => react.ReactElement;
147
+ userOutline: typeof UserOutline;
148
+ warning: (props: _mui_material.SvgIconProps) => react.ReactElement;
149
+ roundedClose: (props: _mui_material.SvgIconProps) => react.ReactElement;
150
+ chevronRight: (props: _mui_material.SvgIconProps) => react.ReactElement;
151
+ };
152
+
153
+ type Variants =
154
+ | 'h1'
155
+ | 'h2'
156
+ | 'h3'
157
+ | 'h4'
158
+ | 'h5'
159
+ | 'h6'
160
+ | 'title-l'
161
+ | 'title-m'
162
+ | 'title-s'
163
+ | 'label-l'
164
+ | 'label-m'
165
+ | 'label-s'
166
+ | 'body-xl'
167
+ | 'body-l'
168
+ | 'body-m'
169
+ | 'body-s'
170
+ | 'body-xs'
171
+ | 'CTA';
172
+
173
+ type HtmlTagVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'p' | 'label';
174
+
175
+ type NsTypographyProps = {
176
+ variant: Variants;
177
+ decoration?: 'underline' | 'none';
178
+ weight?: 'bold' | 'normal' | 'light';
179
+ color?: FoundationTheme.PaletteColors;
180
+ component?: 'div' | 'span' | 'p';
181
+ as?: HtmlTagVariant;
182
+ className?: string;
183
+ colorOverride?: string;
184
+ renderHTMLNode?: boolean;
185
+ noSpacing?:boolean;
186
+ } & AdditionalProps;
187
+
188
+ declare const NsTypography: ({ children, weight, className, variant, decoration, color, additionalProps, colorOverride, noSpacing, renderHTMLNode, }: PropsWithChildren<NsTypographyProps>) => ReactElement;
189
+
190
+ declare const GlobalFontInter: () => ReactElement;
191
+
192
+ declare const AccordionVariant: {
193
+ readonly Basic: "basic";
194
+ readonly Compact: "compact";
195
+ readonly Gray: "gray";
196
+ readonly Stripe: "stripe";
197
+ };
198
+ declare const variantValues: ("basic" | "compact" | "gray" | "stripe")[];
199
+ type AccordionVariantType = (typeof variantValues)[number];
200
+ declare const AccordionContentTypeObject: {
201
+ text: string;
202
+ html: string;
203
+ accordion: string;
204
+ jsx: string;
205
+ };
206
+ declare const contentValues: string[];
207
+ type AccordionContentType = (typeof contentValues)[number];
208
+
209
+ type AccordionItem = {
210
+ allowMultipleExpanded?: boolean;
211
+ type: AccordionContentType;
212
+ id: string;
213
+ content: string | AccordionItem[] | ReactElement | null;
214
+ icon?: NsIconProps;
215
+ title: string | ReactElement;
216
+ isDefaultOpen?: boolean;
217
+ $?: {
218
+ rte: CslpTag;
219
+ item_title: CslpTag;
220
+ };
221
+ };
222
+
223
+ type NsAccordionProps = AdditionalProps & {
224
+ invert: boolean;
225
+ level: number;
226
+ variant: AccordionVariantType;
227
+ items?: AccordionItem[];
228
+ isChild?: boolean;
229
+ headerTypographyVariant?: Variants;
230
+ /** NsIcon's icon name to be shown in opened state */
231
+ openedIconName?: NsIconNameType;
232
+ /** NsIcon's icon name to be shown in closed state */
233
+ closedIconName?: NsIconNameType;
234
+ allowMultipleExpanded: boolean;
235
+ showEndIconWhenEmpty?: boolean;
236
+ };
237
+
238
+ type CommonAccordionType = {
239
+ invert: boolean;
240
+ level: number;
241
+ variant: AccordionVariantType;
242
+ content: AccordionItem['content'];
243
+ };
244
+
245
+ type NsAccordionHeaderProps = AdditionalProps & {
246
+ title: string | ReactNode;
247
+ // eslint-disable-next-line no-unused-vars
248
+ onClick: (...args: any[]) => void;
249
+ /** a flag for the header, based on which header can change properties */
250
+ isOpen: boolean;
251
+ /** NsIcon's icon name to be shown in opened state */
252
+ openedIconName?: NsIconNameType;
253
+ /** NsIcon's icon name to be shown in closed state */
254
+ closedIconName?: NsIconNameType;
255
+ headerTypographyVariant?: Variants;
256
+ startIcon?: NsIconProps;
257
+ showEndIconWhenEmpty?: boolean;
258
+ content: AccordionItem['content'];
259
+ } & Pick<CommonAccordionType, 'invert' | 'variant'>;
260
+
261
+ type NsCollapseProps = AdditionalProps & {
262
+ isOpen: boolean;
263
+ isChild: boolean;
264
+ allowMultipleExpanded?: boolean;
265
+ type: AccordionContentType;
266
+ } & CommonAccordionType;
267
+
268
+ type NsToggleSectionProps = AdditionalProps & {
269
+ title: string | ReactNode;
270
+ /** if true, NsToggle is rendered in open state, that collapsible section is visible */
271
+ defaultOpen?: boolean;
272
+ isChild: boolean;
273
+ type: AccordionContentType;
274
+ } & Pick<CommonAccordionType, 'invert' | 'variant' | 'content'>;
275
+
276
+ type NsAccordionItemProps = AdditionalProps & {
277
+ isOpen: boolean;
278
+ // eslint-disable-next-line no-unused-vars
279
+ toggleOpen(index: number, isOpen: boolean): void;
280
+ title: string | ReactNode;
281
+ headerTypographyVariant?: Variants;
282
+ /** NsIcon's icon name to be shown in opened state */
283
+ openedIconName?: NsIconNameType;
284
+ /** NsIcon's icon name to be shown in closed state */
285
+ closedIconName?: NsIconNameType;
286
+ startIcon?: NsIconProps;
287
+ isChild: boolean;
288
+ type: AccordionContentType;
289
+ allowMultipleExpanded?: boolean;
290
+ showEndIconWhenEmpty?: boolean;
291
+ } & CommonAccordionType;
292
+
293
+ interface NsAlertProps {
294
+ context?: string;
295
+ title?: string;
296
+ threshold?: number;
297
+ type?: string;
298
+ visible?: boolean;
299
+ head?: ReactNode;
300
+ body?: ReactNode;
301
+ onDismiss?: () => void;
302
+ foot?: ReactNode;
303
+ }
304
+
305
+ declare function NsAlert({ context, title, threshold, type, visible, head, body, foot, onDismiss, }: NsAlertProps): ReactElement;
306
+
307
+ type NsAuthDropdownProps = {
308
+ signInRedirectLink: string;
309
+ signUpRedirectLink: string;
310
+ signInBtnText: string;
311
+ signUpLinkText: string;
312
+ signUpLinkPrefixText: string;
313
+ titleText: string;
314
+ closeOnMouseLeave?: boolean;
315
+ } & AdditionalProps;
316
+
317
+ declare const NsAuthDropdown: ({ signInRedirectLink, signUpRedirectLink, signInBtnText, signUpLinkText, signUpLinkPrefixText, titleText, closeOnMouseLeave, darkModeEnabled, }: NsAuthDropdownProps) => ReactElement;
318
+
319
+ type NsAutocompleteProps = {
320
+ id?: string;
321
+ options: OptionsProps[];
322
+ loading?: boolean;
323
+ OptionsUI: react__default.ComponentType<any>;
324
+ noOptionsText?: string;
325
+ /*
326
+ Callback fired when the input value changes.
327
+ event The event source of the callback.
328
+ value The new value of the text input.
329
+ reason Can be: "input" (user input), "reset" (programmatic change), "clear".
330
+ */
331
+ onInputChange(event: SyntheticEvent, value: string, reason: string): void;
332
+ onKeypress?:(event:SyntheticEvent) => void;
333
+ /*
334
+ event The event source of the callback.
335
+ value The new value of the component.
336
+ reason One of "createOption", "selectOption", "removeOption", "blur" or "clear".
337
+ */
338
+ onChange(
339
+ event: SyntheticEvent<Element, Event>,
340
+ value: string | OptionsProps | null,
341
+ reason: AutocompleteChangeReason,
342
+ details?: AutocompleteChangeDetails<OptionsProps> | undefined
343
+ ): void;
344
+ onFocus?:() => void;
345
+ clear?: {
346
+ text?: string;
347
+ show?: boolean; //default to false
348
+ onClear: () => void;
349
+ recentSearchText?: string;
350
+ };
351
+ seeMore?: {
352
+ text?: string;
353
+ show?: boolean; //default to false
354
+ onSeeMore: () => void;
355
+ };
356
+ placeholder?: string;
357
+ className?: string;
358
+ iconStart?: string | react__default.ReactNode;
359
+ iconEnd?: string | react__default.ReactNode;
360
+ inputValue: string;
361
+ value: string | OptionsProps | null;
362
+ isFilterEnabled?: boolean;
363
+ fullWidth?:boolean
364
+ } & AdditionalProps;
365
+
366
+ type ListUiProps = {
367
+ option: OptionsProps;
368
+ };
369
+
370
+ type OptionsProps = {
371
+ id: string;
372
+ group?: string;
373
+ value: string;
374
+ icon?: NsIconNameType;
375
+ image?: string;
376
+ groupBgColor?: string;
377
+ };
378
+
379
+ type ComponentBoxProps = ComponentsProps & HTMLAttributes<HTMLElement>;
380
+
381
+ declare const NsAutocomplete: ({ id, options, OptionsUI, loading, noOptionsText, onInputChange, onChange, onFocus, clear, seeMore, placeholder, className, iconStart, iconEnd, inputValue, value, isFilterEnabled, fullWidth, onKeypress, }: PropsWithChildren<NsAutocompleteProps>) => ReactElement;
382
+
383
+ type NsImageProps = {
384
+ alt: string;
385
+ className?: string;
386
+ fill?: boolean;
387
+ height?: number | string;
388
+ id?: string;
389
+ src: string;
390
+ variant?: 'product' | 'award' | 'icon' | 'fill';
391
+ width?: number | string;
392
+ };
393
+ type BynderImageDataType = {
394
+ /** selected is manually added, using additionalInfo from bynder */
395
+ selected?: {
396
+ url: string;
397
+ fileSize: number | null;
398
+ width: number | null;
399
+ height: number | null;
400
+ imageType?: string;
401
+ type: 'VIDEO' | 'IMAGE';
402
+ altText?: string;
403
+ fit: 'cover' | 'contain' | 'scale-down' | 'none';
404
+ position: string;
405
+ bgColor: string;
406
+ };
407
+ isPublic: boolean;
408
+ __typename?: 'Image';
409
+ id: string;
410
+ name: string;
411
+ description: string | null;
412
+ databaseId: string;
413
+ originalUrl?: string;
414
+ type: 'VIDEO' | 'IMAGE' | 'DOCUMENT';
415
+ url?: string;
416
+ previewUrls?: string[];
417
+ extensions?: string[];
418
+ textMetaproperties?: ({
419
+ name: string;
420
+ value: string;
421
+ } | null)[];
422
+ files: {
423
+ [key: string]: {
424
+ url: string;
425
+ width: number | null;
426
+ height: number | null;
427
+ fileSize: number | null;
428
+ };
429
+ };
430
+ };
431
+
432
+ type AlignmentType$1 = 'start' | 'center' | 'end';
433
+
434
+
435
+ type NsBannerProps = {
436
+ children: react__default.ReactNode;
437
+ image: BynderImageDataType;
438
+ alignment?: AlignmentType$1;
439
+ justify?: AlignmentType$1;
440
+ className?: string;
441
+ } & AdditionalProps;
442
+
443
+ /**
444
+ * @author [Vijayaprathap Kumar] (vpkumar@nuskin.com)
445
+ * NsBanner.tsx
446
+ * @description NsBanner component with a image background
447
+ */
448
+
449
+ declare const NsBanner: (props: PropsWithChildren<NsBannerProps>) => ReactElement;
450
+
451
+ type NsBrandComponentProps = {
452
+ variant?: 'stacked' | 'horizontal' | 'poweredBy' | 'logomark' | 'wordmark';
453
+ size?: string;
454
+ color?: FoundationTheme.PaletteColors;
455
+ };
456
+
457
+ declare const NsBrandComponent: (props: PropsWithChildren<NsBrandComponentProps>) => ReactElement;
458
+
459
+ type NsBreadcrumbProps = {
460
+ items?: ItemProps[];
461
+ underline?: boolean;
462
+ separator?: 'chevronRight' | 'slash';
463
+ };
464
+
465
+ type ItemProps = {
466
+ label?: string;
467
+ href?: string;
468
+ icon?: NsIconNameType;
469
+ } & AdditionalProps;
470
+
471
+ /**
472
+ * @author [Vijayaprathap Kumar] (vpkumar@nuskin.com)
473
+ * NsBreadcrumb.tsx
474
+ * @description NsBreadcrumb component with a navigation items array props
475
+ */
476
+
477
+ declare const NsBreadcrumb: (props: PropsWithChildren<NsBreadcrumbProps>) => ReactElement;
478
+
479
+ type NsButtonProps = Pick<
480
+ ButtonProps,
481
+ | 'aria-label'
482
+ | 'className'
483
+ | 'color'
484
+ | 'disabled'
485
+ | 'endIcon'
486
+ | 'fullWidth'
487
+ | 'href'
488
+ | 'onBlur'
489
+ | 'onClick'
490
+ | 'onChange'
491
+ | 'onFocus'
492
+ | 'size'
493
+ | 'startIcon'
494
+ | 'type'
495
+ | 'variant'
496
+ > & {
497
+ iconOnly?: boolean;
498
+ darkModeEnabled?: boolean;
499
+ startIconName?: NsIconProps['name'];
500
+ endIconName?: NsIconProps['name'];
501
+ };
502
+
503
+ declare const NsButton: ({ children, darkModeEnabled, ...props }: PropsWithChildren<NsButtonProps>) => ReactElement;
504
+
505
+ declare function NsBrandWrapper({ children }: PropsWithChildren): ReactElement;
506
+
507
+ type NsBgCardProps = {
508
+ backgroundImageUrl: string;
509
+ };
510
+ declare const NsBgCard: _emotion_styled.StyledComponent<_mui_material_Card.CardOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
511
+ ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
512
+ }, "variant" | "style" | "children" | "className" | "classes" | "sx" | "elevation" | "square" | "raised"> & {
513
+ theme?: _emotion_react.Theme;
514
+ } & NsBgCardProps, {}, {}>;
515
+
516
+ declare const NsBrandLogo: _emotion_styled.StyledComponent<_mui_material_CardMedia.CardMediaOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
517
+ ref?: ((instance: HTMLDivElement | null) => void | react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof react.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | react.RefObject<HTMLDivElement> | null | undefined;
518
+ }, "style" | "image" | "children" | "className" | "classes" | "sx" | "src"> & {
519
+ theme?: _emotion_react.Theme;
520
+ } & {
521
+ component: "img";
522
+ }, {}, {}>;
523
+
524
+ type NsFfgCardProps = AdditionalProps & {
525
+ topImageUrl: string;
526
+ topImageAlt: string;
527
+ text: string;
528
+ cardLink: { href: string; title: string };
529
+ onClick(): void;
530
+ cslp?: {
531
+ card_text: CslpTag;
532
+ action_text: CslpTag;
533
+ };
534
+ };
535
+
536
+ type NsCardButton = {
537
+ showButton?: boolean;
538
+ fullWidth?: boolean;
539
+ url?: string;
540
+ endIcon?: NsIconNameType;
541
+ buttonText: string;
542
+ buttonVariant?: 'text' | 'outlined' | 'contained';
543
+ buttonColor?: 'secondary' | 'primary';
544
+ showArrowWithText?: boolean;
545
+ };
546
+
547
+ type NsHeroCardLevel1Props = {
548
+ cardTitle: string;
549
+ cardDescription: string;
550
+ backgroundImageDetail: BynderImageDataType;
551
+ button?: NsCardButton;
552
+ className?: string;
553
+ imagePosition?: 'top' | 'bottom';
554
+ fontColor?: 'primary' | 'secondary';
555
+ };
556
+ declare function NsHeroCardLevel1({ cardTitle, cardDescription, backgroundImageDetail, button, className, imagePosition, fontColor, }: NsHeroCardLevel1Props): ReactElement;
557
+
558
+ type NsHeroCardLevel2Props = {
559
+ brandName: string;
560
+ cardTitle: string;
561
+ cardDescription: string;
562
+ backgroundImageDetail: BynderImageDataType;
563
+ button?: NsCardButton;
564
+ className?: string;
565
+ fontColor?: 'primary' | 'secondary';
566
+ };
567
+ declare const NsHeroCardLevel2: ({ brandName, cardTitle, cardDescription, backgroundImageDetail, button, className, fontColor, }: NsHeroCardLevel2Props) => ReactElement;
568
+
569
+ type NsPostProps = {
570
+ text: string;
571
+ body: string;
572
+ backgroundImageDetail: BynderImageDataType;
573
+ className?: string;
574
+ fontColor?: 'primary' | 'secondary';
575
+ };
576
+ declare const NsPost: ({ text, body, backgroundImageDetail, className, fontColor }: NsPostProps) => ReactElement;
577
+
578
+ type NsBrandCardProps = {
579
+ title?: string;
580
+ brandImageUrl: string;
581
+ backgroundImageUrl: string;
582
+ size?: 'small' | 'large';
583
+ button?: NsCardButton;
584
+ className?: string;
585
+ fontColor?: 'primary' | 'secondary';
586
+ };
587
+ declare function NsBrandCard({ title, brandImageUrl, backgroundImageUrl, button, size, className, fontColor, }: NsBrandCardProps): ReactElement;
588
+
589
+ type NsIconTextProps = {
590
+ text: string;
591
+ body: string;
592
+ className?: string;
593
+ fontColor?: 'primary' | 'secondary';
594
+ };
595
+ declare const NsIconText: ({ text, body, className, fontColor }: NsIconTextProps) => react_jsx_runtime.JSX.Element;
596
+
597
+ type NsCheckoutCardProps = {
598
+ icon: NsIconNameType;
599
+ title: string;
600
+ linkText: string;
601
+ url: string;
602
+ className?: string;
603
+ fontColor?: 'primary' | 'secondary';
604
+ };
605
+ declare function NsCheckoutCard({ title, icon, linkText, url, className, fontColor, }: NsCheckoutCardProps): ReactElement;
606
+
607
+ type NsSmallFullCardProps = {
608
+ title: string;
609
+ subtitle: string;
610
+ backgroundImageDetail: BynderImageDataType;
611
+ button?: NsCardButton;
612
+ className?: string;
613
+ fontColor?: 'primary' | 'secondary';
614
+ };
615
+ declare function NsSmallFullCard({ title, subtitle, backgroundImageDetail, button, className, fontColor, }: NsSmallFullCardProps): ReactElement;
616
+
617
+ type NsXLargeCardProps = {
618
+ title: string;
619
+ subtitle: string;
620
+ backgroundImageDetail: BynderImageDataType;
621
+ button?: NsCardButton;
622
+ className?: string;
623
+ fontColor?: 'primary' | 'secondary';
624
+ };
625
+ declare function NsXLargeCard({ title, subtitle, backgroundImageDetail, button, className, fontColor, }: NsXLargeCardProps): ReactElement;
626
+
627
+ type NsLargeCardProps = {
628
+ title: string;
629
+ subtitle?: string;
630
+ intro: string;
631
+ backgroundImageDetail: BynderImageDataType;
632
+ isHorizontal?: boolean;
633
+ button?: NsCardButton;
634
+ className?: string;
635
+ fontColor?: 'primary' | 'secondary';
636
+ };
637
+ declare function NsLargeCard({ title, subtitle, backgroundImageDetail, intro, isHorizontal, button, className, fontColor, }: NsLargeCardProps): ReactElement;
638
+
639
+ type NsMediumCardProps = {
640
+ title: string;
641
+ titleFontWeight?: 'bold' | 'normal' | 'light';
642
+ subtitle: string;
643
+ backgroundImageDetail: BynderImageDataType;
644
+ button?: NsCardButton;
645
+ className?: string;
646
+ fluid?: boolean;
647
+ showArrowWithButtonText?: boolean;
648
+ fontColor?: 'primary' | 'secondary';
649
+ };
650
+ declare function NsMediumCard({ title, titleFontWeight, subtitle, backgroundImageDetail, button, className, fluid, showArrowWithButtonText, fontColor, }: NsMediumCardProps): ReactElement;
651
+
652
+ type NsAwardCardProps = {
653
+ title: string;
654
+ awardName: string;
655
+ mediaOutlet: string;
656
+ backgroundImageDetail: BynderImageDataType;
657
+ className?: string;
658
+ fontColor?: 'primary' | 'secondary';
659
+ };
660
+ declare function NsAwardCard({ title, awardName, mediaOutlet, backgroundImageDetail, className, fontColor, }: NsAwardCardProps): ReactElement;
661
+
662
+ interface CarousalProps<T = any> {
663
+ entries: T[];
664
+ renderEntry(entry: T, index: number): ReactNode;
665
+ allEntryLink?: string;
666
+ allEntryLabel?: string;
667
+ settings: any;
668
+ showControlButtons?: boolean;
669
+ }
670
+ declare function NsCarousal({ entries, renderEntry, allEntryLink, settings, allEntryLabel, showControlButtons, }: CarousalProps): ReactElement;
671
+
672
+ declare const NsScrollingCarousal: ({ slides, scrollSeconds, stillSeconds, renderSlide, settings, dotsBottomPixel, additionalProps, }: NsScrollingCarousalProps) => ReactElement;
673
+
674
+ declare const settings: {
675
+ dots: boolean;
676
+ infinite: boolean;
677
+ speed: number;
678
+ slidesToShow: number;
679
+ slidesToScroll: number;
680
+ swipeToSlide: boolean;
681
+ responsive: ({
682
+ breakpoint: number;
683
+ settings: {
684
+ slidesToShow: number;
685
+ slidesToScroll: number;
686
+ infinite: boolean;
687
+ dots: boolean;
688
+ initialSlide?: undefined;
689
+ };
690
+ } | {
691
+ breakpoint: number;
692
+ settings: {
693
+ slidesToShow: number;
694
+ slidesToScroll: number;
695
+ initialSlide: number;
696
+ infinite?: undefined;
697
+ dots?: undefined;
698
+ };
699
+ } | {
700
+ breakpoint: number;
701
+ settings: {
702
+ slidesToShow: number;
703
+ slidesToScroll: number;
704
+ infinite?: undefined;
705
+ dots?: undefined;
706
+ initialSlide?: undefined;
707
+ };
708
+ })[];
709
+ };
710
+
711
+ type NsCarousalProps<T = any> = {
712
+ entries: T[];
713
+ // eslint-disable-next-line no-unused-vars
714
+ renderEntry(entry: T, index: number): ReactNode;
715
+ allEntryLink: string;
716
+ settings: any;
717
+ };
718
+
719
+ type NsScrollingCarousalProps<T = any> = {
720
+ slides: T;
721
+ // eslint-disable-next-line no-unused-vars
722
+ renderSlide(slide: T, index: number): ReactNode;
723
+ /* time it takes while scrolling */
724
+ scrollSeconds: number;
725
+ /* time for which slide stays still before scrolling */
726
+ stillSeconds: number;
727
+ settings: any;
728
+ /* value in number, specifying how much the dots should be from bottom of slides container */
729
+ dotsBottomPixel?: number;
730
+ } & AdditionalProps;
731
+
732
+ type NsCartIconProps = {
733
+ itemCount?: number;
734
+ size?: 'small' | 'medium' | 'large' | 'xLarge';
735
+ color?: FoundationTheme.PaletteColors;
736
+ maxItemCount?: number;
737
+ };
738
+
739
+ declare const NsCartIcon: ({ itemCount, size, color, maxItemCount, }: NsCartIconProps) => ReactElement;
740
+
741
+ /**
742
+ * @description Extend the FlagProps interface to include message, color and size prop.
743
+ */
744
+
745
+
746
+
747
+ type NsFlagSize = 'small' | 'medium' | 'large';
748
+
749
+ type NsFlagProps = {
750
+ className?: string;
751
+ size?: NsFlagSize;
752
+ message?: string;
753
+ testId?: string;
754
+ /** Displays background color for flag container */
755
+ color?: FoundationTheme.PaletteColors;
756
+ };
757
+
758
+ /**
759
+ * @author [Vijayaprathap Kumar] (vpkumar@nuskin.com)
760
+ * flag.tsx
761
+ * @description NsFlag component with a themed background
762
+ */
763
+
764
+ declare const NsFlag: (props: PropsWithChildren<NsFlagProps>) => ReactElement | null;
765
+
766
+ // Define the props for the custom checkbox component
767
+ type NsCheckboxProps = Pick<CheckboxProps, 'label' | 'onChange'> & {
768
+ name: string;
769
+ className?: string;
770
+ checked: boolean;
771
+ /* Aria label for the checkbox area. */
772
+ ariaLabel?: string;
773
+ /* True if you want disable the checkbox and label . */
774
+ disabled?: boolean;
775
+ /* Size of the checkbox component. Either small / medium. */
776
+ size?: 'small' | 'medium';
777
+ /* Flag component props */
778
+ flag?: NsFlagProps;
779
+ /* Test Id for testing purpose */
780
+ testid?: string;
781
+ };
782
+
783
+ /**
784
+ * @author [Vijayaprathap Kumar] (vpkumar@nuskin.com)
785
+ * checkbox.tsx
786
+ * @description
787
+ */
788
+
789
+ declare const NsCheckbox: (props: PropsWithChildren<NsCheckboxProps>) => ReactElement;
790
+
791
+ /*
792
+ options to be shown on content stack
793
+ 1 Column (100%)
794
+ 2 Columns (50%, 50%)
795
+ 2 Columns (33%, 67%)
796
+ 2 Columns (67%, 33%)
797
+ 3 Columns (33%, 33%, 33%)
798
+ 3 Columns (50%, 25%, 25%)
799
+ 3 Columns (25%, 25%, 50%)
800
+ 4 Columns (25%, 25%, 25%, 25%)
801
+ */
802
+ type NsColumnControlProps = PropsWithChildren<{
803
+ /**
804
+ * follows the convention of ns-col-lg-(column-ratio) (for large screens >= 960px),
805
+ * ns-col-md-(column-ratio) (for tablet screens >= 600px),
806
+ * and ns-col-sm-(column-ratio) (for mobile screens i.e < 600px)
807
+ * sample values
808
+ * 'ns-col-lg-2-1', 'ns-col-lg-1-2', 'ns-col-lg-1-1',
809
+ */
810
+ columnClass: string;
811
+ gap?: number;
812
+ }> &
813
+ AdditionalProps;
814
+
815
+ type NsFlexColumnsProps = PropsWithChildren<{
816
+ /**
817
+ * follows the convention of ns-col-lg-{column-ratio}
818
+ * sample value for column-ratio = 2-1 ==>ns-col-lg-2-1
819
+ */
820
+ columnClass: string;
821
+ gap: number;
822
+ /* when this boolean is true, column control takes full width of page instead of being restricted to 1200px */
823
+ isFullWidth?: boolean;
824
+ }> &
825
+ AdditionalProps;
826
+
827
+ type NsGridColumnsProps = NsFlexColumnsProps;
828
+
829
+ declare const NsColumnControl: ({ columnClass, children, gap, additionalProps }: NsColumnControlProps) => ReactElement;
830
+
831
+ declare const NsFlexColumns: ({ columnClass, children, gap, additionalProps, isFullWidth, }: NsFlexColumnsProps) => ReactElement;
832
+
833
+ declare const NsGridColumns: ({ columnClass, children, gap, isFullWidth, additionalProps, }: NsGridColumnsProps) => ReactElement;
834
+
835
+ interface DropdownProps extends AdditionalProps {
836
+ selectedLabel: ReactNode;
837
+ onSelect: (arg: ReactNode) => void; // eslint-disable-line
838
+ children: ReactNode[];
839
+ disabled?: boolean;
840
+ type?: 'outlined' | 'unfilled';
841
+ placeholder?: string;
842
+ dropdownBorderColor?: FoundationTheme.PaletteColors;
843
+ closeOnMouseLeave?: boolean;
844
+ showListDivider?: boolean;
845
+ className?: string;
846
+ placeholder?: string;
847
+ }
848
+
849
+ interface DropdownOptionProps {
850
+ value: string;
851
+ children: ReactNode;
852
+ }
853
+
854
+ declare const NsDropdown: react__default.FC<DropdownProps>;
855
+
856
+ declare const NsDropdownOption: react__default.FC<DropdownOptionProps>;
857
+
858
+ type NsEmailSimpleProps = Pick<TextFieldProps> &
859
+ AdditionalProps & {
860
+ disabled?: boolean;
861
+ label?: string;
862
+ required?: boolean;
863
+ maxLength?: number;
864
+ invalidEmailText?: string;
865
+ dupedEmailText?: string;
866
+ requiredErrorMessage?: string;
867
+ checkEmail?: Function;
868
+ };
869
+
870
+ declare const NsEmailSimple: (props: NsEmailSimpleProps) => ReactElement;
871
+
872
+ declare const useWindowSize: () => {
873
+ width: number;
874
+ height: number;
875
+ };
876
+
877
+ type ItemMap = Record<string, boolean>;
878
+ type UseAccordionProp = {
879
+ allowMultipleExpanded?: boolean;
880
+ defaultOpenIds?: string[];
881
+ };
882
+ declare const useAccordionMap: ({ allowMultipleExpanded, defaultOpenIds }: UseAccordionProp) => {
883
+ itemStateMap: ItemMap;
884
+ toggleOpen: (index: string | number) => void;
885
+ };
886
+
887
+ declare const NsImage: ({ src, width, height, alt, variant, ...rest }: NsImageProps) => ReactElement;
888
+
889
+ // TODO: check if fieldStateType could be converted to enum, since we also have to account for undefined
890
+ type fieldStateType = undefined | 'error' | 'success';
891
+ type NsInputFieldProps = Omit<
892
+ TextFieldProps,
893
+ | 'sx'
894
+ | 'hiddenLabel'
895
+ | 'style'
896
+ | 'classes'
897
+ | 'className'
898
+ | 'color'
899
+ | 'error'
900
+ | 'margin'
901
+ | 'size'
902
+ | 'variant'
903
+ | 'select'
904
+ | 'SelectProps'
905
+ > & {
906
+ /**
907
+ * has default undefined value, and we can update the value to success
908
+ * on successful validation and update value to 'error' in case of error
909
+ */
910
+
911
+ fieldState?: fieldStateType;
912
+ iconStart?: ReactNode;
913
+ /**
914
+ * assign react component for end icon
915
+ */
916
+ iconEnd?: ReactNode;
917
+ /**
918
+ * assign react component for side icon
919
+ */
920
+
921
+ iconSide?: ReactNode;
922
+ /** purpose of showOptional props is to show additional text 'optional' in the label,
923
+ * if required = false and this flag is true */
924
+ showOptional?: boolean;
925
+ defaultValue?: string;
926
+ rows?: number;
927
+ id?: string;
928
+ labelSize?: number;
929
+ } & AdditionalProps;
930
+
931
+ /**
932
+ * we are using fieldState in place of error prop
933
+ * @param props { placeholder, fieldState, iconStart, iconEnd, iconSide }
934
+ * @returns Input Field
935
+ */
936
+ declare const NsInputField: (props: NsInputFieldProps) => ReactElement;
937
+
938
+ type NsLabelProps = PropsWithChildren &
939
+ Omit<InputLabelProps, 'sx' | 'classes' | 'color' | 'margin' | 'variant' | 'classes'> & {
940
+ /** purpose of showOptional props is to show additional text 'optional' in the label,
941
+ * if required = false and this flag is true */
942
+ showOptional?: boolean;
943
+ size?: number;
944
+ };
945
+
946
+ declare const NsLabel: (props: NsLabelProps) => ReactElement;
947
+
948
+ /**
949
+ * @author [Vijayaprathap Kumar] (vpkumar@nuskin.com)
950
+ * @name types.tsx
951
+ * @description Exports types for components - NsLink
952
+ */
953
+
954
+
955
+ type NsLinkProps = AdditionalProps & {
956
+ className?: string;
957
+ href: string;
958
+ // Used to enable the underline when hover the element
959
+ underlineOnHover?: boolean;
960
+ disabled?: boolean;
961
+ target?: string;
962
+ isSsr?: boolean;
963
+ passHref?: boolean;
964
+ prefetch?: boolean;
965
+ };
966
+
967
+ /**
968
+ * @name NsLink.tsx
969
+ * @description Exports one components - NsLink
970
+ */
971
+
972
+ declare const NsLink: (props: PropsWithChildren<NsLinkProps>) => ReactElement;
973
+
974
+ interface NsModalProps extends NsModalComponentProps {
975
+ open: boolean;
976
+ fullScreen?: boolean;
977
+ }
978
+ interface NsModalComponentProps {
979
+ handleClose?: () => void;
980
+ additionalProps?: NsModalAdditionalProps;
981
+ variant?: NsModalVariant | 'default';
982
+ header?: NsModalContentProps;
983
+ body?: NsModalContentProps;
984
+ footer?: NsModalContentProps;
985
+ statusInfo?: NsModalStatusProps;
986
+ }
987
+ interface NsModalContentProps {
988
+ show?: boolean;
989
+ children?: string | ReactNode;
990
+ isCloseIcon?: boolean;
991
+ iconName?: NsIconNameType;
992
+ }
993
+ interface NsModalStatusProps {
994
+ title: string;
995
+ description: string;
996
+ }
997
+ interface NsModalAdditionalProps {
998
+ className?: string;
999
+ scrollType?: 'paper' | 'body';
1000
+ ariaLabel?: NsModalAriaLabelProps;
1001
+ dividers?: boolean;
1002
+ }
1003
+ interface NsModalAriaLabelProps {
1004
+ ariaLabelledby?: string;
1005
+ ariaDescribedby?: string;
1006
+ }
1007
+ type NsModalVariant = 'success' | 'warning' | 'error' | 'info';
1008
+
1009
+ declare const NsModal: (props: NsModalProps) => ReactElement;
1010
+
1011
+ interface NsNavProductCardProps extends AdditionalProps {
1012
+ productImg: BynderImageDataType;
1013
+ productName: string;
1014
+ className?: string;
1015
+ productDescription: string;
1016
+ }
1017
+
1018
+ declare const NsNavProductCard: ({ productImg, productDescription, productName, className, }: NsNavProductCardProps) => ReactElement;
1019
+
1020
+ type NavTabs = {
1021
+ tabName: string;
1022
+ tabLink?: string;
1023
+ tabContent?: ReactNode;
1024
+ activeColor: FoundationTheme.PaletteColors;
1025
+ color?: FoundationTheme.PaletteColors;
1026
+ textVariant: Variants;
1027
+ liveTag?: CslpTag;
1028
+ };
1029
+
1030
+ type NsNavTabComponentProps = {
1031
+ tabs: NavTabs[];
1032
+ className?: string;
1033
+ tabTitleClassName?: string;
1034
+ showDrawer?: boolean;
1035
+ } & AdditionalProps;
1036
+
1037
+ declare const NsNavTabComponent: ({ tabs, className, tabTitleClassName, showDrawer, }: NsNavTabComponentProps) => ReactElement;
1038
+
1039
+ declare module '@mui/material/LinearProgress' {
1040
+ // eslint-disable-next-line no-unused-vars
1041
+ interface LinearProgressPropsColorOverrides {
1042
+ neutral: true;
1043
+ accentColorA: true;
1044
+ accentColorB: true;
1045
+ accentColorC: true;
1046
+ accentColorD: true;
1047
+ }
1048
+ }
1049
+
1050
+ type NsProgressProps = {
1051
+ barColor?: FoundationTheme.PaletteColors;
1052
+ backgroundColor?: FoundationTheme.PaletteColors;
1053
+ height?: string;
1054
+ value: number;
1055
+ body?: ReactNode;
1056
+ };
1057
+
1058
+ declare const NsProgress: (props: NsProgressProps) => ReactElement;
1059
+
1060
+ type NsRadioGroupProps = Pick<RadioGroupProps, 'name' | 'onChange' | 'value' | 'defaultValue' | 'row'> & {
1061
+ disable: boolean;
1062
+ helperText: string;
1063
+ label: string;
1064
+ items: RadioItems[];
1065
+ color: FoundationTheme.PaletteColors;
1066
+ size: number;
1067
+ labelFontSize: number;
1068
+ } & AdditionalProps;
1069
+
1070
+ type RadioItems = {
1071
+ label: string;
1072
+ value: string | number;
1073
+ id: string | number;
1074
+ };
1075
+
1076
+ declare const NsRadioGroup: (props: NsRadioGroupProps) => ReactElement;
1077
+
1078
+ interface SelectProps {
1079
+ selected: LabelValueType;
1080
+ onSelect(arg: LabelValueType): void; // eslint-disable-line
1081
+ children?: ReactNode | null;
1082
+ disabled?: boolean;
1083
+ type?: 'outlined' | 'unfilled';
1084
+ placeholder?: string;
1085
+ selectBorderColor?: FoundationTheme.PaletteColors;
1086
+ closeOnMouseLeave?: boolean;
1087
+ showListDivider?: boolean;
1088
+ label?: string;
1089
+ readOnly?: boolean;
1090
+ name?: string;
1091
+ errorMessage?: string;
1092
+ menuProps?: string | object;
1093
+ reverseArrowControls?: boolean;
1094
+ validateOnBlur?: boolean;
1095
+ autoComplete?: string;
1096
+ // eslint-disable-next-line no-undef
1097
+ rules?: Array;
1098
+ hasArrows?: boolean;
1099
+ options: LabelValueType[];
1100
+ RenderOption?(x: any): any; // eslint-disable-line
1101
+ }
1102
+
1103
+ interface SelectOptionProps {
1104
+ value: string;
1105
+ label: string;
1106
+ selected?: LabelValueType;
1107
+ index: number;
1108
+ onClick: () => void;
1109
+ showListDivider?: boolean;
1110
+ }
1111
+
1112
+ type LabelValueType = {
1113
+ label: string;
1114
+ value: string;
1115
+ id?: string;
1116
+ index?: number;
1117
+ };
1118
+
1119
+ declare const NsSelect: react__default.FC<SelectProps>;
1120
+
1121
+ declare const NsSelectOption: react__default.FC<SelectOptionProps>;
1122
+
1123
+ type NsSpinnerProps = {
1124
+ size?: number;
1125
+ } & Omit<AdditionalProps, 'darkModeEnabled'>;
1126
+
1127
+ declare const NsSpinner: react__default.FC<NsSpinnerProps>;
1128
+
1129
+ /* eslint-disable no-unused-vars */
1130
+
1131
+
1132
+ interface Header {
1133
+ label: string;
1134
+ id: string | number;
1135
+ numeric: boolean;
1136
+ sortable?: boolean;
1137
+ }
1138
+
1139
+ interface Item {
1140
+ [key: string]: string | number;
1141
+ }
1142
+
1143
+ interface NsTableProps {
1144
+ headers: Header[];
1145
+ items: Item[];
1146
+ rows: number;
1147
+ itemKey: string;
1148
+ rowsPerPageOptions: number[];
1149
+ isExpandableAll?: boolean;
1150
+ showActions?: boolean;
1151
+ showExpandedContent?: boolean;
1152
+ loading?: boolean;
1153
+ expandableContent: (selectedItem: Item, index: number) => React.ReactNode;
1154
+ actionClick: (item: Item) => React.ReactNode;
1155
+ }
1156
+
1157
+ declare function NsTable({ headers, items, rows, rowsPerPageOptions, itemKey, expandableContent, actionClick, showActions, showExpandedContent, loading, isExpandableAll, }: NsTableProps): ReactElement;
1158
+
1159
+ type AlignmentType = 'start' | 'center' | 'end';
1160
+
1161
+ type TextCtaDataType = {
1162
+ link: {
1163
+ href?: string;
1164
+ title?: string;
1165
+ };
1166
+ description?: string;
1167
+ };
1168
+ type NsTextStripProps = {
1169
+ alignment?: AlignmentType;
1170
+ className?: string;
1171
+ } & AdditionalProps &
1172
+ TextCtaDataType;
1173
+
1174
+ /**
1175
+ * NsTextStrip.tsx
1176
+ * @description NsTextStrip component for scrolling text CTA
1177
+ */
1178
+
1179
+ declare const NsTextStrip: (props: NsTextStripProps) => ReactElement;
1180
+
1181
+ declare const NsToastProvider: (props: PropsWithChildren<SnackbarProviderProps>) => ReactElement;
1182
+
1183
+ type ToastActionLink = {
1184
+ label: string;
1185
+ onClick?: () => void;
1186
+ };
1187
+ type ToastOptions = {
1188
+ className?: string;
1189
+ autoHideDuration?: number | null;
1190
+ persist?: boolean;
1191
+ showCloseIcon?: boolean;
1192
+ actions?: ToastActionLink[];
1193
+ };
1194
+ declare const useToast: () => {
1195
+ showToast: (variant?: VariantType, message?: string, options?: ToastOptions) => notistack.SnackbarKey | undefined;
1196
+ closeToast: (toastId?: string) => void;
1197
+ };
1198
+
1199
+ type ShowType = PropsWithChildren & {
1200
+ when?: boolean;
1201
+ elseContent?: ReactElement;
1202
+ };
1203
+ declare const Show: ({ when, children, elseContent }: ShowType) => ReactElement;
1204
+
1205
+ type NsVideoProps = {
1206
+ src: string;
1207
+ title?: string;
1208
+ width?: string;
1209
+ height?: string;
1210
+ allowFullScreen?: boolean;
1211
+ } & AdditionalProps;
1212
+
1213
+ /**
1214
+ * @author [Vijayaprathap Kumar] (vpkumar@nuskin.com)
1215
+ * NsVideo.tsx
1216
+ * @description NsVideo component with a Iframe video url props
1217
+ */
1218
+
1219
+ declare const NsVideo: (props: PropsWithChildren<NsVideoProps>) => ReactElement;
1220
+
1221
+ export { type AccordionContentType, AccordionContentTypeObject, type AccordionItem, AccordionVariant, type AccordionVariantType, type AdditionalProps, type BynderImageDataType, type ComponentBoxProps, type CslpTag, type DarkModeEnabledOption, type DropdownOptionProps, type DropdownProps, GlobalFontInter, type ListUiProps, type NavTabs, NsAccordion, NsAccordionHeader, type NsAccordionHeaderProps, NsAccordionItem, type NsAccordionItemProps, type NsAccordionProps, NsAlert, type NsAlertProps, NsAuthDropdown, type NsAuthDropdownProps, NsAutocomplete, type NsAutocompleteProps, NsAwardCard, NsBanner, type NsBannerProps, NsBgCard, NsBrandCard, NsBrandComponent, type NsBrandComponentProps, NsBrandLogo, NsBrandWrapper, NsBreadcrumb, type NsBreadcrumbProps, NsButton, type NsButtonProps, type NsCardButton, NsCarousal, type NsCarousalProps, NsCartIcon, type NsCartIconProps, NsCheckbox, type NsCheckboxProps, NsCheckoutCard, NsCollapse, type NsCollapseProps, NsColumnControl, type NsColumnControlProps, settings as NsDefaultCarousalSettings, NsDropdown, NsDropdownOption, NsEmailSimple, type NsEmailSimpleProps, type NsFfgCardProps, NsFlag, type NsFlagProps, type NsFlagSize, NsFlexColumns, NsGridColumns, NsHeroCardLevel1, NsHeroCardLevel2, NsIcon, type NsIconNameType, type NsIconProps, type NsIconSizeType, NsIconText, IconVariants as NsIconVariants, NsImage, NsInputField, type NsInputFieldProps, NsLabel, type NsLabelProps, NsLargeCard, NsLink, type NsLinkProps, NsMediumCard, NsModal, type NsModalProps, NsNavProductCard, type NsNavProductCardProps, NsNavTabComponent as NsNavTab, type NsNavTabComponentProps, NsPost, NsProgress, type NsProgressProps, NsRadioGroup, type NsRadioGroupProps, NsScrollingCarousal, type NsScrollingCarousalProps, NsSelect, NsSelectOption, NsSmallFullCard, NsSpinner, type NsSpinnerProps, NsTable, type NsTableProps, NsTextStrip, type NsTextStripProps, NsToastProvider, NsToggleSection, type NsToggleSectionProps, NsTypography, type NsTypographyProps, NsVideo, type NsVideoProps, NsXLargeCard, type OptionsProps, type SelectOptionProps, type SelectProps, Show, type Themed, type ToastOptions, type Variants, useAccordionMap, useToast, useWindowSize };