@faststore/ui 2.0.122-alpha.0 → 2.0.128-alpha.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 (44) hide show
  1. package/dist/index.d.ts +0 -6
  2. package/dist/index.js +0 -4
  3. package/dist/index.js.map +1 -1
  4. package/package.json +2 -2
  5. package/src/components/molecules/Carousel/styles.scss +83 -57
  6. package/src/components/molecules/NavbarLinks/styles.scss +1 -1
  7. package/src/components/organisms/ProductShelf/styles.scss +2 -3
  8. package/src/index.ts +0 -16
  9. package/dist/components/molecules/Bullets/Bullets.d.ts +0 -35
  10. package/dist/components/molecules/Bullets/Bullets.js +0 -12
  11. package/dist/components/molecules/Bullets/Bullets.js.map +0 -1
  12. package/dist/components/molecules/Bullets/index.d.ts +0 -2
  13. package/dist/components/molecules/Bullets/index.js +0 -2
  14. package/dist/components/molecules/Bullets/index.js.map +0 -1
  15. package/dist/components/molecules/Carousel/Arrows.d.ts +0 -12
  16. package/dist/components/molecules/Carousel/Arrows.js +0 -6
  17. package/dist/components/molecules/Carousel/Arrows.js.map +0 -1
  18. package/dist/components/molecules/Carousel/Carousel.d.ts +0 -54
  19. package/dist/components/molecules/Carousel/Carousel.js +0 -183
  20. package/dist/components/molecules/Carousel/Carousel.js.map +0 -1
  21. package/dist/components/molecules/Carousel/CarouselItem.d.ts +0 -11
  22. package/dist/components/molecules/Carousel/CarouselItem.js +0 -18
  23. package/dist/components/molecules/Carousel/CarouselItem.js.map +0 -1
  24. package/dist/components/molecules/Carousel/hooks/useSlideVisibility.d.ts +0 -9
  25. package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js +0 -29
  26. package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js.map +0 -1
  27. package/dist/components/molecules/Carousel/index.d.ts +0 -2
  28. package/dist/components/molecules/Carousel/index.js +0 -3
  29. package/dist/components/molecules/Carousel/index.js.map +0 -1
  30. package/dist/hooks/useSlider/index.d.ts +0 -2
  31. package/dist/hooks/useSlider/index.js +0 -3
  32. package/dist/hooks/useSlider/index.js.map +0 -1
  33. package/dist/hooks/useSlider/useSlider.d.ts +0 -64
  34. package/dist/hooks/useSlider/useSlider.js +0 -103
  35. package/dist/hooks/useSlider/useSlider.js.map +0 -1
  36. package/src/components/molecules/Bullets/Bullets.tsx +0 -88
  37. package/src/components/molecules/Bullets/index.ts +0 -2
  38. package/src/components/molecules/Carousel/Arrows.tsx +0 -58
  39. package/src/components/molecules/Carousel/Carousel.tsx +0 -387
  40. package/src/components/molecules/Carousel/CarouselItem.tsx +0 -54
  41. package/src/components/molecules/Carousel/hooks/useSlideVisibility.ts +0 -59
  42. package/src/components/molecules/Carousel/index.ts +0 -2
  43. package/src/hooks/useSlider/index.ts +0 -2
  44. package/src/hooks/useSlider/useSlider.ts +0 -209
package/dist/index.d.ts CHANGED
@@ -3,13 +3,7 @@ export { default as TextArea } from './components/atoms/TextArea';
3
3
  export type { TextAreaProps } from './components/atoms/TextArea';
4
4
  export { default as Incentive } from './components/atoms/Incentive';
5
5
  export type { IncentiveProps } from './components/atoms/Incentive';
6
- export { default as Bullets } from './components/molecules/Bullets';
7
- export type { BulletsProps } from './components/molecules/Bullets';
8
- export { default as Carousel } from './components/molecules/Carousel';
9
- export type { CarouselProps } from './components/molecules/Carousel';
10
6
  export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
11
7
  export type { BannerProps, BannerContentProps, BannerImageProps, BannerLinkProps, } from './components/molecules/Banner';
12
8
  export { Tile, Tiles } from './components/organisms/Tiles';
13
9
  export type { TilesProps, TileProps } from './components/organisms/Tiles';
14
- export { default as useSlider } from './hooks/useSlider';
15
- export type { UseSliderArgs, SliderState, SliderDispatch, SlideDirection, } from './hooks/useSlider';
package/dist/index.js CHANGED
@@ -3,11 +3,7 @@ export * from '@faststore/components';
3
3
  export { default as TextArea } from './components/atoms/TextArea';
4
4
  export { default as Incentive } from './components/atoms/Incentive';
5
5
  // Molecules
6
- export { default as Bullets } from './components/molecules/Bullets';
7
- export { default as Carousel } from './components/molecules/Carousel';
8
6
  export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
9
7
  // Organisms
10
8
  export { Tile, Tiles } from './components/organisms/Tiles';
11
- // Hooks
12
- export { default as useSlider } from './hooks/useSlider';
13
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGnE,YAAY;AAEZ,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,gCAAgC,CAAA;AAGnE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAGrE,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,aAAa,EACb,WAAW,EACX,UAAU,GACX,MAAM,+BAA+B,CAAA;AAQtC,YAAY;AACZ,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAG1D,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAGnE,YAAY;AACZ,OAAO,EACL,OAAO,IAAI,MAAM,EACjB,aAAa,EACb,WAAW,EACX,UAAU,GACX,MAAM,+BAA+B,CAAA;AAQtC,YAAY;AACZ,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/ui",
3
- "version": "2.0.122-alpha.0",
3
+ "version": "2.0.128-alpha.0",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "node": "16.18.0",
59
59
  "yarn": "1.19.1"
60
60
  },
61
- "gitHead": "253c09ebb08354e8c7fead371d64e97cdf0b204b"
61
+ "gitHead": "45fb6de9e708a927326715d9de3b46a8030dc3bd"
62
62
  }
@@ -4,49 +4,59 @@
4
4
  // --------------------------------------------------------
5
5
 
6
6
  // Track
7
- --fs-carousel-padding-desktop : var(--fs-spacing-0) 6.25rem;
7
+ --fs-carousel-padding-mobile : 0 var(--fs-grid-padding);
8
+ --fs-carousel-padding-desktop : 0 calc((100vw - 1230px)/2);
8
9
 
9
10
  // Item
10
- --fs-carousel-item-width-mobile : 80%;
11
- --fs-carousel-item-width-desktop : 15rem;
12
- --fs-carousel-item-margin-right : var(--fs-spacing-0);
11
+ --fs-carousel-item-width-mobile : 60%;
12
+ --fs-carousel-item-width-tablet : 14.2rem;
13
+ --fs-carousel-item-width-desktop : 14.4rem;
14
+ --fs-carousel-item-margin-right : var(--fs-spacing-3);
13
15
 
14
16
  // Controls
15
- --fs-carousel-controls-width : 3.125rem;
16
- --fs-carousel-controls-height : var(--fs-carousel-controls-width);
17
- --fs-carousel-controls-position-top : calc((100% - var(--fs-spacing-7) - var(--fs-spacing-1)) / 2);
18
- --fs-carousel-controls-bkg-color : var(--fs-color-neutral-0);
19
- --fs-carousel-controls-border-radius : var(--fs-border-radius-circle);
20
- --fs-carousel-controls-box-shadow : var(--fs-shadow-darker);
21
- --fs-carousel-controls-icon-color : var(--fs-color-neutral-7);
22
-
23
- --fs-carousel-controls-control-left : var(--fs-spacing-5);
24
- --fs-carousel-controls-control-right : var(--fs-carousel-controls-control-left);
17
+ --fs-carousel-controls-width : 3.125rem;
18
+ --fs-carousel-controls-height : var(--fs-carousel-controls-width);
19
+ --fs-carousel-controls-bkg-color : var(--fs-color-neutral-0);
20
+ --fs-carousel-controls-border-radius : var(--fs-border-radius-circle);
21
+ --fs-carousel-controls-box-shadow : var(--fs-shadow-darker);
22
+ --fs-carousel-controls-icon-color : var(--fs-color-neutral-7);
23
+
24
+ --fs-carousel-controls-control-left : var(--fs-spacing-4);
25
+ --fs-carousel-controls-control-right : var(--fs-carousel-controls-control-left);
26
+ --fs-carousel-controls-control-max-left : calc(-1 * var(--fs-spacing-11));
27
+ --fs-carousel-controls-control-max-right : var(--fs-carousel-controls-control-max-left);
25
28
 
26
29
  // Bullets
27
- --fs-carousel-bullets-padding-top : var(--fs-carousel-controls-control-left);
28
-
29
- --fs-carousel-bullet-width-mobile : 100%;
30
- --fs-carousel-bullet-width-desktop : var(--fs-spacing-1);
31
- --fs-carousel-bullet-height-mobile : var(--fs-carousel-item-margin-right);
32
- --fs-carousel-bullet-height-desktop : var(--fs-carousel-bullet-width-desktop);
33
- --fs-carousel-bullet-margin-right : var(--fs-carousel-item-margin-right);
34
- --fs-carousel-bullet-bkg-color : var(--fs-color-neutral-3);
35
- --fs-carousel-bullet-bkg-color-selected : var(--fs-color-main-4);
36
- --fs-carousel-bullet-border-radius : var(--fs-carousel-controls-border-radius);
30
+ --fs-carousel-bullets-padding-top : var(--fs-carousel-controls-control-left);
31
+ --fs-carousel-bullets-padding-left : var(--fs-grid-padding);
32
+ --fs-carousel-bullets-padding-right : var(--fs-carousel-bullets-padding-left);
33
+ --fs-carousel-bullets-column-gap-mobile : var(--fs-spacing-0);
34
+ --fs-carousel-bullets-column-gap-tablet : var(--fs-spacing-3);
35
+
36
+ --fs-carousel-bullet-width-mobile : 100%;
37
+ --fs-carousel-bullet-width-desktop : var(--fs-spacing-1);
38
+ --fs-carousel-bullet-height-mobile : var(--fs-spacing-0);
39
+ --fs-carousel-bullet-height-desktop : var(--fs-carousel-bullet-width-desktop);
40
+ --fs-carousel-bullet-bkg-color : var(--fs-color-neutral-3);
41
+ --fs-carousel-bullet-bkg-color-selected : var(--fs-color-main-4);
42
+ --fs-carousel-bullet-border-radius : var(--fs-carousel-controls-border-radius);
37
43
 
38
44
  // --------------------------------------------------------
39
45
  // Structural Styles
40
46
  // --------------------------------------------------------
41
47
 
48
+ width: inherit;
49
+
42
50
  &:hover {
43
51
  [data-fs-carousel-controls] {
52
+ position: relative;
53
+
44
54
  @include media(">=tablet") {
45
55
  display: flex;
46
- width: 100%;
56
+ margin: var(--fs-carousel-padding-desktop);
47
57
 
48
58
  [data-fs-carousel-control] {
49
- top: var(--fs-carousel-controls-position-top);
59
+ bottom: calc(var(--fs-carousel-controls-height) + var(--fs-control-tap-size));
50
60
  display: flex;
51
61
  align-items: center;
52
62
  justify-content: center;
@@ -62,25 +72,41 @@
62
72
 
63
73
  [data-fs-carousel-control="left"] {
64
74
  position: absolute;
65
- left: var(--fs-carousel-controls-control-left);
75
+ left: var(--fs-carousel-controls-control-right);
76
+ @include media(">notebook") {
77
+ left: var(--fs-carousel-controls-control-max-left);
78
+ }
66
79
  }
67
80
 
68
81
  [data-fs-carousel-control="right"] {
69
82
  position: absolute;
70
83
  right: var(--fs-carousel-controls-control-right);
84
+ @include media(">notebook") {
85
+ right: var(--fs-carousel-controls-control-max-right);
86
+ }
71
87
  }
72
88
 
73
- [data-fs-icon] { display: flex; }
89
+ [data-fs-icon] {
90
+ display: flex;
91
+ color: var(--fs-carousel-controls-icon-color);
92
+ }
74
93
  }
75
94
  }
76
95
  }
77
96
 
97
+ [data-fs-carousel-controls] {
98
+ position: relative;
99
+ display: none;
100
+ }
101
+
78
102
  [data-fs-carousel-track] {
103
+ padding: var(--fs-carousel-padding-mobile);
104
+
79
105
  &::-webkit-scrollbar {
80
106
  display: none;
81
107
  }
82
108
 
83
- @include media(">=tablet") {
109
+ @include media(">notebook") {
84
110
  padding: var(--fs-carousel-padding-desktop);
85
111
  }
86
112
  }
@@ -88,58 +114,58 @@
88
114
  [data-fs-carousel-item] {
89
115
  width: var(--fs-carousel-item-width-mobile);
90
116
 
91
- @include media(">=tablet") {
92
- width: var(--fs-carousel-item-width-desktop);
93
- height: 100%;
117
+ &:not(:last-of-type) {
94
118
  margin-right: var(--fs-carousel-item-margin-right);
95
119
  }
96
- }
97
120
 
98
- [data-fs-icon] {
99
- color: var(--fs-carousel-controls-icon-color);
100
- }
121
+ @include media(">=tablet") {
122
+ width: var(--fs-carousel-item-width-tablet);
123
+ height: 100%;
124
+ }
101
125
 
102
- [data-fs-carousel-controls] {
103
- display: none;
126
+ @include media(">=desktop") {
127
+ width: var(--fs-carousel-item-width-desktop);
128
+ }
104
129
  }
105
130
 
106
131
  [data-fs-carousel-bullets] {
132
+ position: relative;
107
133
  width: 100%;
108
134
  padding-top: var(--fs-carousel-bullets-padding-top);
135
+ display: flex;
136
+ flex-flow: row nowrap;
137
+ column-gap: var(--fs-carousel-bullets-column-gap-mobile);
138
+ padding-left: var(--fs-carousel-bullets-padding-left);
139
+ padding-right: var(--fs-carousel-bullets-padding-right);
109
140
 
110
141
  @include media(">=tablet") {
111
- display: flex;
142
+ width: fit-content;
112
143
  align-items: center;
113
144
  justify-content: center;
145
+ margin: auto;
146
+ column-gap: var(--fs-carousel-bullets-column-gap-tablet);
114
147
  }
115
148
 
116
- [data-fs-bullets] {
117
- display: flex;
118
- flex-flow: row nowrap;
119
-
120
- @include media(">=tablet") {
121
- column-gap: var(--fs-spacing-3);
122
- }
123
-
124
- [data-fs-bullet] {
125
- width: var(--fs-carousel-bullet-width-mobile);
149
+ [data-fs-carousel-bullet] {
150
+ padding: 0;
151
+ border-color: transparent;
152
+ width: var(--fs-carousel-bullet-width-mobile);
153
+ &::after {
154
+ width: 100%;
126
155
  height: var(--fs-carousel-bullet-height-mobile);
127
- padding: 0;
128
- margin-right: var(--fs-carousel-bullet-margin-right);
129
156
  background-color: var(--fs-carousel-bullet-bkg-color);
130
- border-color: transparent;
131
-
132
- &[aria-selected="true"] {
133
- background-color: var(--fs-carousel-bullet-bkg-color-selected);
134
- }
135
-
157
+ content: "";
136
158
  @include media(">=tablet") {
137
159
  width: var(--fs-carousel-bullet-width-desktop);
138
160
  height: var(--fs-carousel-bullet-height-desktop);
139
161
  margin: 0;
140
162
  border-radius: var(--fs-carousel-bullet-border-radius);
163
+ content: "";
141
164
  }
142
165
  }
166
+ &[aria-selected="true"]::after {
167
+ background-color: var(--fs-carousel-bullet-bkg-color-selected);
168
+ }
143
169
  }
144
170
  }
145
171
  }
@@ -78,7 +78,7 @@
78
78
  border-left: var(--fs-navbar-links-list-border-left-width-notebook) solid var(--fs-navbar-links-list-border-left-color-notebook);
79
79
  }
80
80
 
81
- [data-fs-navbar-links-list-item] {
81
+ [data-fs-navbar-links-list-item] > [data-fs-link] {
82
82
  width: var(--fs-navbar-links-link-width-notebook);
83
83
  padding: var(--fs-navbar-links-link-padding-notebook);
84
84
  }
@@ -6,19 +6,18 @@
6
6
  --fs-product-shelf-items-gap : var(--fs-grid-gap-1);
7
7
  --fs-product-shelf-items-padding-top : var(--fs-spacing-0);
8
8
  --fs-product-shelf-items-padding-bottom : var(--fs-spacing-3);
9
- --fs-product-shelf-items-left : calc(-1 * var(--fs-spacing-1));
10
9
 
11
10
  // --------------------------------------------------------
12
11
  // Structural Styles
13
12
  // --------------------------------------------------------
14
13
 
14
+ width: 100%;
15
+
15
16
  [data-fs-product-shelf-items] {
16
17
  display: flex;
17
18
  align-items: stretch;
18
19
  overflow-x: auto;
19
20
  position: relative;
20
- left: var(--fs-product-shelf-items-left);
21
-
22
21
 
23
22
  [data-fs-product-shelf-item] { width: 100%; }
24
23
 
package/src/index.ts CHANGED
@@ -8,13 +8,6 @@ export { default as Incentive } from './components/atoms/Incentive'
8
8
  export type { IncentiveProps } from './components/atoms/Incentive'
9
9
 
10
10
  // Molecules
11
-
12
- export { default as Bullets } from './components/molecules/Bullets'
13
- export type { BulletsProps } from './components/molecules/Bullets'
14
-
15
- export { default as Carousel } from './components/molecules/Carousel'
16
- export type { CarouselProps } from './components/molecules/Carousel'
17
-
18
11
  export {
19
12
  default as Banner,
20
13
  BannerContent,
@@ -31,12 +24,3 @@ export type {
31
24
  // Organisms
32
25
  export { Tile, Tiles } from './components/organisms/Tiles'
33
26
  export type { TilesProps, TileProps } from './components/organisms/Tiles'
34
-
35
- // Hooks
36
- export { default as useSlider } from './hooks/useSlider'
37
- export type {
38
- UseSliderArgs,
39
- SliderState,
40
- SliderDispatch,
41
- SlideDirection,
42
- } from './hooks/useSlider'
@@ -1,35 +0,0 @@
1
- import type { HTMLAttributes, MouseEvent } from 'react';
2
- import React from 'react';
3
- export interface BulletsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick' | 'role'> {
4
- /**
5
- * Number of bullets that should be rendered.
6
- */
7
- totalQuantity: number;
8
- /**
9
- * The currently active bullet (zero-indexed).
10
- */
11
- activeBullet: number;
12
- /**
13
- * Event handler for clicks on each bullet. The handler will be called with
14
- * the index of the bullet that received the click.
15
- */
16
- onClick: (e: MouseEvent, bulletIdx: number) => void;
17
- /**
18
- * ID to find this component in testing tools (e.g.: cypress,
19
- * testing-library, and jest).
20
- */
21
- testId?: string;
22
- /**
23
- * Function that should be used to generate the aria-label attribute added
24
- * to each bullet that is inactive. It receives the bullet index as an
25
- * argument so that it can be interpolated in the generated string.
26
- */
27
- ariaLabelGenerator?: (index: number, isActive: boolean) => string;
28
- /**
29
- * Function that should be used to generate the aria-controls attribute added
30
- * to each bullet. It receives the bullet index as argument and should return a string.
31
- */
32
- ariaControlsGenerator?: (index: number) => string;
33
- }
34
- declare const Bullets: React.ForwardRefExoticComponent<BulletsProps & React.RefAttributes<HTMLDivElement>>;
35
- export default Bullets;
@@ -1,12 +0,0 @@
1
- import React, { forwardRef, useMemo } from 'react';
2
- import { Button } from '@faststore/components';
3
- const defaultAriaLabel = (idx, isActive) => isActive ? 'Current page' : `Go to page ${idx + 1}`;
4
- const Bullets = forwardRef(function Bullets({ totalQuantity, activeBullet, onClick, testId = 'store-bullets', ariaLabelGenerator = defaultAriaLabel, ariaControlsGenerator, ...otherProps }, ref) {
5
- const bulletIndexes = useMemo(() => Array(totalQuantity).fill(0), [totalQuantity]);
6
- return (React.createElement("div", { ref: ref, "data-fs-bullets": true, "data-testid": testId, role: "tablist", ...otherProps }, bulletIndexes.map((_, idx) => {
7
- const isActive = activeBullet === idx;
8
- return (React.createElement(Button, { key: idx, role: "tab", tabIndex: -1, "data-fs-bullet": true, testId: `${testId}-bullet`, onClick: (e) => onClick(e, idx), "aria-label": ariaLabelGenerator(idx, isActive), "aria-controls": ariaControlsGenerator?.(idx), "aria-selected": isActive }));
9
- })));
10
- });
11
- export default Bullets;
12
- //# sourceMappingURL=Bullets.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bullets.js","sourceRoot":"","sources":["../../../../src/components/molecules/Bullets/Bullets.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAElD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAmC9C,MAAM,gBAAgB,GAAG,CAAC,GAAW,EAAE,QAAiB,EAAE,EAAE,CAC1D,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,GAAG,GAAG,CAAC,EAAE,CAAA;AAErD,MAAM,OAAO,GAAG,UAAU,CAA+B,SAAS,OAAO,CACvE,EACE,aAAa,EACb,YAAY,EACZ,OAAO,EACP,MAAM,GAAG,eAAe,EACxB,kBAAkB,GAAG,gBAAgB,EACrC,qBAAqB,EACrB,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,aAAa,GAAG,OAAO,CAC3B,GAAG,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAClC,CAAC,aAAa,CAAC,CAChB,CAAA;IAED,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,0CAEK,MAAM,EACnB,IAAI,EAAC,SAAS,KACV,UAAU,IAEb,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;QAC5B,MAAM,QAAQ,GAAG,YAAY,KAAK,GAAG,CAAA;QAErC,OAAO,CACL,oBAAC,MAAM,IACL,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,KAAK,EACV,QAAQ,EAAE,CAAC,CAAC,0BAEZ,MAAM,EAAE,GAAG,MAAM,SAAS,EAC1B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,gBACnB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,CAAC,mBAC9B,qBAAqB,EAAE,CAAC,GAAG,CAAC,mBAC5B,QAAQ,GACvB,CACH,CAAA;IACH,CAAC,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,OAAO,CAAA"}
@@ -1,2 +0,0 @@
1
- export { default } from './Bullets';
2
- export type { BulletsProps } from './Bullets';
@@ -1,2 +0,0 @@
1
- export { default } from './Bullets';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/Bullets/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- interface IconProps {
3
- size?: {
4
- width: number;
5
- height: number;
6
- };
7
- viewBox?: string;
8
- color?: string;
9
- }
10
- export declare const LeftArrowIcon: ({ size, viewBox, color, }: IconProps) => JSX.Element;
11
- export declare const RightArrowIcon: ({ size, viewBox, color, }: IconProps) => JSX.Element;
12
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export const LeftArrowIcon = ({ size = { width: 25, height: 25 }, viewBox = '0 0 16 16', color = 'currentColor', }) => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: viewBox, width: size.width, height: size.height },
3
- React.createElement("path", { d: "M11 1L4 8L11 15", strokeWidth: "2", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round", stroke: color, fill: "none" })));
4
- export const RightArrowIcon = ({ size = { width: 25, height: 25 }, viewBox = '0 0 16 16', color = 'currentColor', }) => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: viewBox, width: size.width, height: size.height },
5
- React.createElement("path", { d: "M5 15L12 8L5 1", strokeWidth: "2", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round", stroke: color, fill: "none" })));
6
- //# sourceMappingURL=Arrows.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Arrows.js","sourceRoot":"","sources":["../../../../src/components/molecules/Carousel/Arrows.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAChC,OAAO,GAAG,WAAW,EACrB,KAAK,GAAG,cAAc,GACZ,EAAE,EAAE,CAAC,CACf,6BACE,KAAK,EAAC,4BAA4B,EAClC,UAAU,EAAC,8BAA8B,EACzC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM;IAEnB,8BACE,CAAC,EAAC,iBAAiB,EACnB,WAAW,EAAC,GAAG,EACf,gBAAgB,EAAC,IAAI,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,MAAM,EAAE,KAAK,EACb,IAAI,EAAC,MAAM,GACX,CACE,CACP,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,IAAI,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAChC,OAAO,GAAG,WAAW,EACrB,KAAK,GAAG,cAAc,GACZ,EAAE,EAAE,CAAC,CACf,6BACE,KAAK,EAAC,4BAA4B,EAClC,UAAU,EAAC,8BAA8B,EACzC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,MAAM,EAAE,IAAI,CAAC,MAAM;IAEnB,8BACE,CAAC,EAAC,gBAAgB,EAClB,WAAW,EAAC,GAAG,EACf,gBAAgB,EAAC,IAAI,EACrB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,MAAM,EAAE,KAAK,EACb,IAAI,EAAC,MAAM,GACX,CACE,CACP,CAAA"}
@@ -1,54 +0,0 @@
1
- import type { ReactNode, PropsWithChildren } from 'react';
2
- import type { SwipeableProps } from 'react-swipeable';
3
- export interface CarouselProps extends SwipeableProps {
4
- /**
5
- * ID of the current instance of the component.
6
- */
7
- id?: string;
8
- /**
9
- * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
10
- */
11
- testId?: string;
12
- /**
13
- * Returns the value of element's class content attribute.
14
- */
15
- className?: string;
16
- /**
17
- * Whether or not the Carousel is infinite slide/scroll. Only for the `slide` variant.
18
- * @default true
19
- */
20
- infiniteMode?: boolean;
21
- /**
22
- * Specifies which navigation elements should be visible.
23
- * @default complete
24
- */
25
- controls?: 'complete' | 'navigationArrows' | 'paginationBullets';
26
- /**
27
- * Specifies the slide transition. Only for the `slide` variant
28
- */
29
- transition?: {
30
- duration: number;
31
- property: string;
32
- delay?: number;
33
- timing?: string;
34
- };
35
- /**
36
- * Specifies the number of items per page.
37
- * @default 1
38
- */
39
- itemsPerPage?: number;
40
- /**
41
- * Specifies the Carousel track variant.
42
- * @default slide
43
- */
44
- variant?: 'slide' | 'scroll';
45
- /**
46
- * Specifies the navigation icons.
47
- */
48
- navigationIcons?: {
49
- left?: ReactNode;
50
- right?: ReactNode;
51
- };
52
- }
53
- declare function Carousel({ infiniteMode, controls, testId, transition, children, className, id, variant, itemsPerPage, navigationIcons, ...swipeableConfigOverrides }: PropsWithChildren<CarouselProps>): JSX.Element;
54
- export default Carousel;