@semcore/carousel 17.2.3 → 18.0.0-prerelease.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/CHANGELOG.md +6 -0
- package/lib/cjs/Carousel.js +21 -21
- package/lib/cjs/Carousel.js.map +1 -1
- package/lib/cjs/Carousel.types.js.map +1 -1
- package/lib/cjs/style/carousel.shadow.css +46 -20
- package/lib/es6/Carousel.js +21 -21
- package/lib/es6/Carousel.js.map +1 -1
- package/lib/es6/Carousel.types.js.map +1 -1
- package/lib/es6/style/carousel.shadow.css +46 -20
- package/lib/esm/Carousel.mjs +22 -22
- package/lib/esm/style/carousel.shadow.css +46 -20
- package/lib/types/Carousel.d.ts +1 -0
- package/lib/types/Carousel.d.ts.map +1 -0
- package/lib/types/Carousel.types.d.ts +10 -9
- package/lib/types/Carousel.types.d.ts.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts +1 -0
- package/lib/types/translations/__intergalactic-dynamic-locales.d.ts.map +1 -0
- package/package.json +8 -8
- package/src/Carousel.tsx +1 -1
- package/src/Carousel.types.ts +9 -9
- package/src/style/carousel.shadow.css +46 -20
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NSBox } from '@semcore/base-components';
|
|
2
2
|
import type { PropGetterFn, Intergalactic } from '@semcore/core';
|
|
3
3
|
import type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
4
4
|
declare namespace NSCarousel {
|
|
5
|
-
type Props =
|
|
5
|
+
type Props = NSBox.Props & {
|
|
6
6
|
/** Index active item */
|
|
7
7
|
index?: number;
|
|
8
8
|
/**
|
|
@@ -60,20 +60,20 @@ declare namespace NSCarousel {
|
|
|
60
60
|
node: HTMLElement;
|
|
61
61
|
};
|
|
62
62
|
namespace Container {
|
|
63
|
-
type Component = Intergalactic.Component<'div',
|
|
63
|
+
type Component = Intergalactic.Component<'div', NSBox.Props>;
|
|
64
64
|
}
|
|
65
65
|
namespace ContentBox {
|
|
66
|
-
type Component = Intergalactic.Component<'div',
|
|
66
|
+
type Component = Intergalactic.Component<'div', NSBox.Props>;
|
|
67
67
|
}
|
|
68
68
|
namespace Indicators {
|
|
69
|
-
type Props =
|
|
69
|
+
type Props = NSBox.Props & {
|
|
70
70
|
items?: NSCarousel.Item[];
|
|
71
71
|
inverted?: boolean;
|
|
72
72
|
};
|
|
73
73
|
type Component = Intergalactic.Component<'div', Props, State>;
|
|
74
74
|
}
|
|
75
75
|
namespace Indicator {
|
|
76
|
-
type Props = Omit<
|
|
76
|
+
type Props = Omit<NSBox.Props, 'position'> & {
|
|
77
77
|
active?: boolean;
|
|
78
78
|
onClick?: () => void;
|
|
79
79
|
inverted?: boolean;
|
|
@@ -81,7 +81,7 @@ declare namespace NSCarousel {
|
|
|
81
81
|
type Component = Intergalactic.Component<'div', Props>;
|
|
82
82
|
}
|
|
83
83
|
namespace Item {
|
|
84
|
-
type Props =
|
|
84
|
+
type Props = NSBox.Props & {
|
|
85
85
|
/** Flag for css cursor
|
|
86
86
|
* @private
|
|
87
87
|
*/
|
|
@@ -116,7 +116,7 @@ declare namespace NSCarousel {
|
|
|
116
116
|
type Component = Intergalactic.Component<'div', Props>;
|
|
117
117
|
}
|
|
118
118
|
namespace Prev {
|
|
119
|
-
type Props =
|
|
119
|
+
type Props = NSBox.Props & {
|
|
120
120
|
label?: string;
|
|
121
121
|
inverted?: boolean;
|
|
122
122
|
tabIndex?: number;
|
|
@@ -124,7 +124,7 @@ declare namespace NSCarousel {
|
|
|
124
124
|
type Component = Intergalactic.Component<'div', Props>;
|
|
125
125
|
}
|
|
126
126
|
namespace Next {
|
|
127
|
-
type Props =
|
|
127
|
+
type Props = NSBox.Props & {
|
|
128
128
|
label?: string;
|
|
129
129
|
inverted?: boolean;
|
|
130
130
|
tabIndex?: number;
|
|
@@ -160,3 +160,4 @@ export type CarouselIndicatorsProps = NSCarousel.Indicators.Props;
|
|
|
160
160
|
/** @deprecated It will be removed in v18. */
|
|
161
161
|
export type CarouselIndicatorProps = NSCarousel.Indicator.Props;
|
|
162
162
|
export type { NSCarousel };
|
|
163
|
+
//# sourceMappingURL=Carousel.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.types.d.ts","sourceRoot":"","sources":["../../src/Carousel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AAExF,OAAO,WAAW,UAAU,CAAC;IAC3B,KAAK,KAAK,GAAG,KAAK,CAAC,KAAK,GAAG;QACzB,wBAAwB;QACxB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,4CAA4C;QAC5C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACxC;0BACkB;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB;4BACoB;QACpB,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,eAAe;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,4CAA4C;QAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,6CAA6C;QAC7C,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,uCAAuC;QACvC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,yBAAyB;QACzB,UAAU,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;KAC7C,CAAC;IACF,KAAK,YAAY,GAAG;QAClB,YAAY,EAAE,CAAC,CAAC;QAChB,QAAQ,EAAE,GAAG,CAAC;QACd,IAAI,EAAE,GAAG,CAAC;QACV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AAM,uBAAuB,GAAG,UAAU,CAAC,UAAU,CAAC,KAAK,CAAC;AAClE,6CAA6C;AAC7C,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC;AAEhE,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__intergalactic-dynamic-locales.d.ts","sourceRoot":"","sources":["../../../src/translations/__intergalactic-dynamic-locales.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe7B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/carousel",
|
|
3
3
|
"description": "Semrush Carousel Component",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "18.0.0-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/button": "^
|
|
18
|
-
"@semcore/modal": "^
|
|
17
|
+
"@semcore/button": "^18.0.0-prerelease.0",
|
|
18
|
+
"@semcore/modal": "^18.0.0-prerelease.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@semcore/base-components": "^
|
|
22
|
-
"@semcore/icon": "^
|
|
21
|
+
"@semcore/base-components": "^18.0.0-prerelease.0",
|
|
22
|
+
"@semcore/icon": "^18.0.0-prerelease.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"directory": "semcore/carousel"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@semcore/
|
|
31
|
-
"@semcore/core": "17.2.1",
|
|
30
|
+
"@semcore/core": "18.0.0-prerelease.0",
|
|
32
31
|
"@semcore/testing-utils": "1.0.0",
|
|
33
|
-
"@semcore/
|
|
32
|
+
"@semcore/base-components": "18.0.0-prerelease.0",
|
|
33
|
+
"@semcore/icon": "18.0.0-prerelease.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "pnpm semcore-builder --source=js,ts && pnpm vite build"
|
package/src/Carousel.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createBreakpoints, Box, Flex } from '@semcore/base-components';
|
|
2
|
-
import type {
|
|
2
|
+
import type { NSBox } from '@semcore/base-components';
|
|
3
3
|
import Button from '@semcore/button';
|
|
4
4
|
import type { Intergalactic } from '@semcore/core';
|
|
5
5
|
import { createComponent, Component, sstyled, Root } from '@semcore/core';
|
package/src/Carousel.types.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NSBox } from '@semcore/base-components';
|
|
2
2
|
import type { PropGetterFn, Intergalactic } from '@semcore/core';
|
|
3
3
|
|
|
4
4
|
import type { LocalizedMessages } from './translations/__intergalactic-dynamic-locales';
|
|
5
5
|
|
|
6
6
|
declare namespace NSCarousel {
|
|
7
|
-
type Props =
|
|
7
|
+
type Props = NSBox.Props & {
|
|
8
8
|
/** Index active item */
|
|
9
9
|
index?: number;
|
|
10
10
|
/**
|
|
@@ -63,15 +63,15 @@ declare namespace NSCarousel {
|
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
namespace Container {
|
|
66
|
-
type Component = Intergalactic.Component<'div',
|
|
66
|
+
type Component = Intergalactic.Component<'div', NSBox.Props>;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
namespace ContentBox {
|
|
70
|
-
type Component = Intergalactic.Component<'div',
|
|
70
|
+
type Component = Intergalactic.Component<'div', NSBox.Props>;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
namespace Indicators {
|
|
74
|
-
type Props =
|
|
74
|
+
type Props = NSBox.Props & {
|
|
75
75
|
items?: NSCarousel.Item[];
|
|
76
76
|
inverted?: boolean;
|
|
77
77
|
};
|
|
@@ -79,7 +79,7 @@ declare namespace NSCarousel {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
namespace Indicator {
|
|
82
|
-
type Props = Omit<
|
|
82
|
+
type Props = Omit<NSBox.Props, 'position'> & {
|
|
83
83
|
active?: boolean;
|
|
84
84
|
onClick?: () => void;
|
|
85
85
|
inverted?: boolean;
|
|
@@ -88,7 +88,7 @@ declare namespace NSCarousel {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
namespace Item {
|
|
91
|
-
type Props =
|
|
91
|
+
type Props = NSBox.Props & {
|
|
92
92
|
/** Flag for css cursor
|
|
93
93
|
* @private
|
|
94
94
|
*/
|
|
@@ -131,7 +131,7 @@ declare namespace NSCarousel {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
namespace Prev {
|
|
134
|
-
type Props =
|
|
134
|
+
type Props = NSBox.Props & {
|
|
135
135
|
label?: string;
|
|
136
136
|
inverted?: boolean;
|
|
137
137
|
tabIndex?: number;
|
|
@@ -140,7 +140,7 @@ declare namespace NSCarousel {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
namespace Next {
|
|
143
|
-
type Props =
|
|
143
|
+
type Props = NSBox.Props & {
|
|
144
144
|
label?: string;
|
|
145
145
|
inverted?: boolean;
|
|
146
146
|
tabIndex?: number;
|
|
@@ -15,7 +15,7 @@ SModalBox,
|
|
|
15
15
|
SIndicator {
|
|
16
16
|
position: relative;
|
|
17
17
|
overflow: hidden;
|
|
18
|
-
border-radius: var(--intergalactic-
|
|
18
|
+
border-radius: var(--intergalactic-carousel-item-rounded, 14px);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
SContentBox:has(SItem:focus-visible)::after {
|
|
@@ -29,7 +29,7 @@ SContentBox:has(SItem:focus-visible)::after {
|
|
|
29
29
|
|
|
30
30
|
SImageBoxContainer {
|
|
31
31
|
position: relative;
|
|
32
|
-
border-radius: var(--intergalactic-
|
|
32
|
+
border-radius: var(--intergalactic-carousel-item-preview-rounded, 14px);
|
|
33
33
|
|
|
34
34
|
&:has(SItem:focus-visible)::after {
|
|
35
35
|
border-radius: inherit;
|
|
@@ -56,7 +56,7 @@ SItem {
|
|
|
56
56
|
max-width: 100%;
|
|
57
57
|
box-sizing: border-box;
|
|
58
58
|
transform: var(--transform);
|
|
59
|
-
border-radius: var(--intergalactic-
|
|
59
|
+
border-radius: var(--intergalactic-carousel-item-rounded, 14px);
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
outline: none;
|
|
62
62
|
|
|
@@ -76,38 +76,60 @@ SItem[zoomOut] {
|
|
|
76
76
|
SIndicators {
|
|
77
77
|
display: flex;
|
|
78
78
|
justify-content: center;
|
|
79
|
-
margin: var(--intergalactic-spacing-
|
|
79
|
+
margin: var(--intergalactic-spacing-content-gap-xxlarge, 16px) var(--intergalactic-spacing-content-gap-small, 4px) var(--intergalactic-spacing-content-gap-small, 4px) var(--intergalactic-spacing-content-gap-small, 4px);
|
|
80
80
|
outline: none;
|
|
81
81
|
position: relative;
|
|
82
|
+
border-radius: var(--intergalactic-rounded-extra-small, 2px);
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
SIndicator {
|
|
85
|
-
margin: 0 calc(0.5 * var(--intergalactic-spacing-
|
|
86
|
+
margin: 0 calc(0.5 * var(--intergalactic-spacing-content-gap-xlarge, 12px));
|
|
86
87
|
cursor: pointer;
|
|
87
88
|
display: block;
|
|
89
|
+
flex-shrink: 0;
|
|
88
90
|
width: 12px;
|
|
89
91
|
height: 12px;
|
|
90
|
-
background-color: var(--intergalactic-
|
|
91
|
-
|
|
92
|
+
background-color: var(--intergalactic-control-carousel-indicator, oklch(0.23 0.01 140));
|
|
93
|
+
border-radius: var(--intergalactic-carousel-indicator-rounded, 8px);
|
|
94
|
+
opacity: 0.25;
|
|
92
95
|
object-fit: cover;
|
|
93
|
-
transition:
|
|
96
|
+
transition:
|
|
97
|
+
width calc(var(--intergalactic-duration-control, 200) * 1ms) var(--intergalactic-easings-medium, cubic-bezier(0.5, 0, 0, 1.09)),
|
|
98
|
+
opacity calc(var(--intergalactic-duration-control, 200) * 1ms) var(--intergalactic-easings-medium, cubic-bezier(0.5, 0, 0, 1.09)),
|
|
99
|
+
background-color calc(var(--intergalactic-duration-control, 200) * 1ms) var(--intergalactic-easings-medium, cubic-bezier(0.5, 0, 0, 1.09));
|
|
100
|
+
|
|
101
|
+
&:hover {
|
|
102
|
+
opacity: 0.5;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&[active] {
|
|
106
|
+
width: 24px;
|
|
107
|
+
background-color: var(--intergalactic-control-carousel-indicator-active, oklch(0.23 0.01 140));
|
|
108
|
+
opacity: 1;
|
|
109
|
+
}
|
|
94
110
|
}
|
|
95
111
|
|
|
96
112
|
SIndicator[aria-roledescription="slide"] {
|
|
97
113
|
width: 100px;
|
|
98
114
|
height: 100px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
SIndicator:hover {
|
|
102
|
-
opacity: calc(2 * var(--intergalactic-disabled-opacity, 0.4));
|
|
103
|
-
}
|
|
104
115
|
|
|
105
|
-
|
|
106
|
-
|
|
116
|
+
&[active] {
|
|
117
|
+
width: 100px;
|
|
118
|
+
}
|
|
107
119
|
}
|
|
108
120
|
|
|
109
121
|
SIndicator[inverted] {
|
|
110
|
-
background-color: var(--intergalactic-
|
|
122
|
+
background-color: var(--intergalactic-control-carousel-indicator-invert, oklch(1 0 0));
|
|
123
|
+
opacity: 0.5;
|
|
124
|
+
|
|
125
|
+
&:hover {
|
|
126
|
+
opacity: 0.75;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&[active] {
|
|
130
|
+
background-color: var(--intergalactic-control-carousel-indicator-active, oklch(0.23 0.01 140));
|
|
131
|
+
opacity: 1;
|
|
132
|
+
}
|
|
111
133
|
}
|
|
112
134
|
|
|
113
135
|
SPrev,
|
|
@@ -120,17 +142,17 @@ SNext {
|
|
|
120
142
|
|
|
121
143
|
SPrevButton span:has(> svg:only-child),
|
|
122
144
|
SNextButton span:has(> svg:only-child) {
|
|
123
|
-
margin-left: calc(2 * var(--intergalactic-spacing-
|
|
124
|
-
margin-right: calc(2 * var(--intergalactic-spacing-
|
|
145
|
+
margin-left: calc(2 * var(--intergalactic-spacing-content-gap-small, 4px) - 1px);
|
|
146
|
+
margin-right: calc(2 * var(--intergalactic-spacing-content-gap-small, 4px) - 1px);
|
|
125
147
|
}
|
|
126
148
|
}
|
|
127
149
|
|
|
128
150
|
SPrev {
|
|
129
|
-
margin-right: var(--intergalactic-spacing-
|
|
151
|
+
margin-right: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
130
152
|
}
|
|
131
153
|
|
|
132
154
|
SNext {
|
|
133
|
-
margin-left: var(--intergalactic-spacing-
|
|
155
|
+
margin-left: var(--intergalactic-spacing-content-gap-large, 8px);
|
|
134
156
|
}
|
|
135
157
|
|
|
136
158
|
SPrev[disabled],
|
|
@@ -144,4 +166,8 @@ SNext[disabled] {
|
|
|
144
166
|
SContainer {
|
|
145
167
|
transition: none;
|
|
146
168
|
}
|
|
169
|
+
|
|
170
|
+
SIndicator {
|
|
171
|
+
transition: none;
|
|
172
|
+
}
|
|
147
173
|
}
|