@nuskin/foundation-ui-components 1.22.0-cx130-1102.1 → 1.22.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/foundation-ui-components",
3
- "version": "1.22.0-cx130-1102.1",
3
+ "version": "1.22.0",
4
4
  "description": "It is a foundation library written in react, that provides common components to all UI pages",
5
5
  "main": "src/common/index.ts",
6
6
  "repository": {
@@ -12,7 +12,6 @@ type StyledType = {
12
12
 
13
13
  const StyledDiv = styled('div')<StyledType>(({ dotsBottomPixel }) => {
14
14
  return {
15
- maxWidth: '90vw',
16
15
  '.slick-dots': {
17
16
  zIndex: 9,
18
17
  bottom: `${dotsBottomPixel ?? -25}px`,
@@ -6,9 +6,9 @@ type ComponentType = typeof NsScrollingCarousal;
6
6
  type Story = StoryObj<ComponentType>;
7
7
  type MetaStory = Meta<ComponentType>;
8
8
 
9
- export const renderSlide = (slide: any, i: number) => <NsTextStrip key={i} {...slide} />;
9
+ const renderSlide = (slide: any, i: number) => <NsTextStrip key={i} {...slide} />;
10
10
 
11
- export const slides = [
11
+ const slides = [
12
12
  {
13
13
  description: 'Download the app to access everything Nike',
14
14
  link: { href: 'https://www.nike.com/in/help/a/shipping-delivery-gs', title: 'Hello Nike App' },
@@ -68,6 +68,11 @@ export default {
68
68
  testid: 'scrolling-carousal',
69
69
  },
70
70
  },
71
+ render: (args) => (
72
+ <div style={{ width: '90vw' }}>
73
+ <NsScrollingCarousal {...args} />
74
+ </div>
75
+ ),
71
76
  } as MetaStory;
72
77
 
73
78
  export const ScrollingText: Story = {};