@synerise/ds-banner 1.1.12 → 1.1.14
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 +12 -99
- package/dist/Banner.js +4 -5
- package/dist/Banner.styles.d.ts +1 -1
- package/dist/Banner.styles.js +1 -1
- package/dist/Banner.types.d.ts +1 -1
- package/dist/components/BannerCounter/BannerCounter.d.ts +1 -1
- package/dist/components/BannerHeader/BannerHeader.d.ts +1 -1
- package/dist/components/BannerSlide/BannerSlide.d.ts +1 -1
- package/dist/components/BannerSlide/BannerSlide.js +10 -4
- package/dist/components/BannerSlideTextContent/BannerSlideTextContent.d.ts +1 -1
- package/dist/components/BannerSlideTextContent/BannerSlideTextContent.js +1 -1
- package/dist/hooks/useCarousel.d.ts +1 -1
- package/dist/hooks/useTexts.d.ts +1 -1
- package/dist/utils/isMediaContent.d.ts +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [1.1.
|
|
6
|
+
## [1.1.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.13...@synerise/ds-banner@1.1.14) (2025-07-08)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
## [1.1.
|
|
14
|
+
## [1.1.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.12...@synerise/ds-banner@1.1.13) (2025-07-01)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
## [1.1.
|
|
22
|
+
## [1.1.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.11...@synerise/ds-banner@1.1.12) (2025-06-26)
|
|
23
23
|
|
|
24
24
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
## [1.1.
|
|
30
|
+
## [1.1.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.10...@synerise/ds-banner@1.1.11) (2025-06-24)
|
|
31
31
|
|
|
32
32
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
33
33
|
|
|
@@ -35,199 +35,112 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
## [1.1.
|
|
38
|
+
## [1.1.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.9...@synerise/ds-banner@1.1.10) (2025-06-05)
|
|
39
39
|
|
|
40
40
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
41
41
|
|
|
42
|
+
## [1.1.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.8...@synerise/ds-banner@1.1.9) (2025-06-03)
|
|
42
43
|
|
|
44
|
+
**Note:** Version bump only for package @synerise/ds-banner
|
|
43
45
|
|
|
46
|
+
## [1.1.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.7...@synerise/ds-banner@1.1.8) (2025-05-26)
|
|
44
47
|
|
|
48
|
+
**Note:** Version bump only for package @synerise/ds-banner
|
|
45
49
|
|
|
46
50
|
## [1.1.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.6...@synerise/ds-banner@1.1.7) (2025-05-19)
|
|
47
51
|
|
|
48
52
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
49
53
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
54
|
## [1.1.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.5...@synerise/ds-banner@1.1.6) (2025-05-07)
|
|
55
55
|
|
|
56
56
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
58
|
## [1.1.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.4...@synerise/ds-banner@1.1.5) (2025-04-24)
|
|
63
59
|
|
|
64
60
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
65
61
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
62
|
## [1.1.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.3...@synerise/ds-banner@1.1.4) (2025-04-16)
|
|
71
63
|
|
|
72
64
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
73
65
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
66
|
## [1.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.2...@synerise/ds-banner@1.1.3) (2025-04-02)
|
|
79
67
|
|
|
80
68
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
81
69
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
70
|
## [1.1.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.1...@synerise/ds-banner@1.1.2) (2025-03-31)
|
|
87
71
|
|
|
88
72
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
89
73
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
74
|
## [1.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.1.0...@synerise/ds-banner@1.1.1) (2025-03-26)
|
|
95
75
|
|
|
96
76
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
97
77
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
78
|
# [1.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@1.0.0...@synerise/ds-banner@1.1.0) (2025-03-18)
|
|
103
79
|
|
|
104
|
-
|
|
105
80
|
### Features
|
|
106
81
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
82
|
+
- **button:** add support for tag in button ([32b6956](https://github.com/Synerise/synerise-design/commit/32b6956d5e1f46df03abb4de8fbaf0a7d487043e))
|
|
112
83
|
|
|
113
84
|
## [0.2.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.8...@synerise/ds-banner@0.2.9) (2025-03-10)
|
|
114
85
|
|
|
115
86
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
116
87
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
88
|
## [0.2.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.7...@synerise/ds-banner@0.2.8) (2025-03-04)
|
|
122
89
|
|
|
123
90
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
124
91
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
92
|
## [0.2.7](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.6...@synerise/ds-banner@0.2.7) (2025-02-27)
|
|
130
93
|
|
|
131
94
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
132
95
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
96
|
## [0.2.6](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.5...@synerise/ds-banner@0.2.6) (2025-02-20)
|
|
138
97
|
|
|
139
98
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
140
99
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
100
|
## [0.2.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.4...@synerise/ds-banner@0.2.5) (2025-02-18)
|
|
146
101
|
|
|
147
102
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
148
103
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
104
|
## [0.2.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.3...@synerise/ds-banner@0.2.4) (2025-02-17)
|
|
154
105
|
|
|
155
106
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
156
107
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
108
|
## [0.2.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.2...@synerise/ds-banner@0.2.3) (2025-02-14)
|
|
162
109
|
|
|
163
110
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
164
111
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
112
|
## [0.2.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.1...@synerise/ds-banner@0.2.2) (2025-02-14)
|
|
170
113
|
|
|
171
114
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
172
115
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
116
|
## [0.2.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.2.0...@synerise/ds-banner@0.2.1) (2025-02-07)
|
|
178
117
|
|
|
179
118
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
180
119
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
120
|
# [0.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.1.4...@synerise/ds-banner@0.2.0) (2025-01-29)
|
|
186
121
|
|
|
187
|
-
|
|
188
122
|
### Features
|
|
189
123
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
124
|
+
- antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
|
|
195
125
|
|
|
196
126
|
## [0.1.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.1.3...@synerise/ds-banner@0.1.4) (2025-01-21)
|
|
197
127
|
|
|
198
128
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
199
129
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
130
|
## [0.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.1.2...@synerise/ds-banner@0.1.3) (2025-01-15)
|
|
205
131
|
|
|
206
132
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
207
133
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
134
|
## [0.1.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.1.1...@synerise/ds-banner@0.1.2) (2024-12-16)
|
|
213
135
|
|
|
214
136
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
215
137
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
138
|
## [0.1.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-banner@0.1.0...@synerise/ds-banner@0.1.1) (2024-12-13)
|
|
221
139
|
|
|
222
140
|
**Note:** Version bump only for package @synerise/ds-banner
|
|
223
141
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
142
|
# 0.1.0 (2024-12-04)
|
|
229
143
|
|
|
230
|
-
|
|
231
144
|
### Features
|
|
232
145
|
|
|
233
|
-
|
|
146
|
+
- **banner:** new component ([881a411](https://github.com/Synerise/synerise-design/commit/881a41113241463b940eb9b2a6bde9ab10c143a4))
|
package/dist/Banner.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var _excluded = ["slides", "autoPlay", "autoPlaySpeed", "transitionEffect", "onAfterChange", "onBeforeChange", "texts", "onClose", "expandable"];
|
|
2
2
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
-
import React, {
|
|
4
|
+
import React, { useMemo, useState } from 'react';
|
|
5
5
|
import { v4 as uuid } from 'uuid';
|
|
6
6
|
import Button from '@synerise/ds-button';
|
|
7
7
|
import Icon, { CloseM } from '@synerise/ds-icon';
|
|
8
8
|
import Tooltip from '@synerise/ds-tooltip';
|
|
9
|
-
import * as S from './Banner.styles';
|
|
10
|
-
import { BannerSlide, BannerCounter, BannerHeader } from './components';
|
|
11
|
-
import { useTexts, useCarousel } from './hooks';
|
|
12
9
|
import { DEFAULT_SLIDE_SPEED } from './Banner.const';
|
|
10
|
+
import * as S from './Banner.styles';
|
|
11
|
+
import { BannerCounter, BannerHeader, BannerSlide } from './components';
|
|
12
|
+
import { useCarousel, useTexts } from './hooks';
|
|
13
13
|
var Banner = function Banner(_ref) {
|
|
14
14
|
var slides = _ref.slides,
|
|
15
15
|
_ref$autoPlay = _ref.autoPlay,
|
|
@@ -45,7 +45,6 @@ var Banner = function Banner(_ref) {
|
|
|
45
45
|
}, [slides]);
|
|
46
46
|
var handleBeforeChange = function handleBeforeChange(from, to) {
|
|
47
47
|
setCurrentIndex(to);
|
|
48
|
-
// eslint-disable-next-line no-unused-expressions
|
|
49
48
|
onBeforeChange == null || onBeforeChange(from, to);
|
|
50
49
|
};
|
|
51
50
|
var closeButton = onClose && /*#__PURE__*/React.createElement(S.BannerCloseWrapper, null, /*#__PURE__*/React.createElement(Tooltip, {
|
package/dist/Banner.styles.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const BannerHeaderWrapper: import("styled-components").StyledComp
|
|
|
7
7
|
isExpanded: boolean;
|
|
8
8
|
}, never>;
|
|
9
9
|
export declare const BannerHeaderIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
-
export declare const BannerHeaderTitle: import("styled-components").StyledComponent<({ size, className, children, ellipsis }: {
|
|
10
|
+
export declare const BannerHeaderTitle: import("styled-components").StyledComponent<({ size, className, children, ellipsis, }: {
|
|
11
11
|
size?: import("@synerise/ds-typography").TextSize | undefined;
|
|
12
12
|
ellipsis?: import("@synerise/ds-typography/dist/Ellipsis").EllipsisProps | undefined;
|
|
13
13
|
children?: import("react").ReactNode;
|
package/dist/Banner.styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import styled, { css } from 'styled-components';
|
|
2
1
|
import { Carousel } from 'antd';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
3
|
import Tag from '@synerise/ds-tag';
|
|
4
4
|
import { Text, Title } from '@synerise/ds-typography';
|
|
5
5
|
export var BannerWrapper = styled.div.withConfig({
|
package/dist/Banner.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
3
2
|
import type { TagProps } from '@synerise/ds-tag';
|
|
3
|
+
import type { WithHTMLAttributes } from '@synerise/ds-utils';
|
|
4
4
|
type Texts = 'expand' | 'collapse' | 'closeTooltip';
|
|
5
5
|
export type BannerTexts = {
|
|
6
6
|
[k in Texts]: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BannerCounterProps } from '../../Banner.types';
|
|
3
|
-
export declare const BannerCounter: ({ slides, currentIndex, onDotClick, onPrevClick, onNextClick }: BannerCounterProps) => React.JSX.Element;
|
|
3
|
+
export declare const BannerCounter: ({ slides, currentIndex, onDotClick, onPrevClick, onNextClick, }: BannerCounterProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BannerHeaderProps } from '../../Banner.types';
|
|
3
|
-
export declare const BannerHeader: ({ closeButton, icon, title, isExpanded, texts, onToggle }: BannerHeaderProps) => React.JSX.Element;
|
|
3
|
+
export declare const BannerHeader: ({ closeButton, icon, title, isExpanded, texts, onToggle, }: BannerHeaderProps) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BannerSlideProps } from '../../Banner.types';
|
|
3
|
-
export declare const BannerSlide: ({ mainContent, leftSideContent, rightSideContent }: BannerSlideProps) => React.JSX.Element;
|
|
3
|
+
export declare const BannerSlide: ({ mainContent, leftSideContent, rightSideContent, }: BannerSlideProps) => React.JSX.Element;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
3
|
import * as S from '../../Banner.styles';
|
|
4
|
-
import { BannerSlideMediaContent, BannerSlideTextContent } from '../index';
|
|
5
4
|
import { isMediaContent } from '../../utils/isMediaContent';
|
|
5
|
+
import { BannerSlideMediaContent, BannerSlideTextContent } from '../index';
|
|
6
6
|
export var BannerSlide = function BannerSlide(_ref) {
|
|
7
7
|
var mainContent = _ref.mainContent,
|
|
8
8
|
leftSideContent = _ref.leftSideContent,
|
|
9
9
|
rightSideContent = _ref.rightSideContent;
|
|
10
10
|
var hasMainContent = Boolean(mainContent);
|
|
11
11
|
var leftSideComponent = useMemo(function () {
|
|
12
|
-
if (!leftSideContent)
|
|
12
|
+
if (!leftSideContent) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
14
|
+
}
|
|
13
15
|
return isMediaContent(leftSideContent) ? /*#__PURE__*/React.createElement(BannerSlideMediaContent, _extends({
|
|
14
16
|
position: "left",
|
|
15
17
|
hasMainContent: hasMainContent
|
|
@@ -19,7 +21,9 @@ export var BannerSlide = function BannerSlide(_ref) {
|
|
|
19
21
|
}, leftSideContent));
|
|
20
22
|
}, [leftSideContent, hasMainContent]);
|
|
21
23
|
var rightSideComponent = useMemo(function () {
|
|
22
|
-
if (!rightSideContent)
|
|
24
|
+
if (!rightSideContent) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
26
|
+
}
|
|
23
27
|
return isMediaContent(rightSideContent) ? /*#__PURE__*/React.createElement(BannerSlideMediaContent, _extends({
|
|
24
28
|
position: "right",
|
|
25
29
|
hasMainContent: hasMainContent
|
|
@@ -29,7 +33,9 @@ export var BannerSlide = function BannerSlide(_ref) {
|
|
|
29
33
|
}, rightSideContent));
|
|
30
34
|
}, [rightSideContent, hasMainContent]);
|
|
31
35
|
var mainComponent = useMemo(function () {
|
|
32
|
-
if (!mainContent)
|
|
36
|
+
if (!mainContent) {
|
|
37
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
38
|
+
}
|
|
33
39
|
return isMediaContent(mainContent) ? /*#__PURE__*/React.createElement(BannerSlideMediaContent, _extends({
|
|
34
40
|
position: "main"
|
|
35
41
|
}, mainContent)) : /*#__PURE__*/React.createElement(BannerSlideTextContent, _extends({
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BannerSlideContentProps, BannerSlideTextContentProps } from '../../Banner.types';
|
|
3
3
|
export declare const BannerSlideTextContent: ({ title, titlePrefix, titleStatus, description, position, buttons, hasMainContent, }: BannerSlideTextContentProps & BannerSlideContentProps) => React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { TagShape } from '@synerise/ds-tag';
|
|
4
|
-
import * as S from '../../Banner.styles';
|
|
5
4
|
import { DEFAULT_STATUS_COLOR, DEFAULT_STATUS_TEXT_COLOR } from '../../Banner.const';
|
|
5
|
+
import * as S from '../../Banner.styles';
|
|
6
6
|
export var BannerSlideTextContent = function BannerSlideTextContent(_ref) {
|
|
7
7
|
var title = _ref.title,
|
|
8
8
|
titlePrefix = _ref.titlePrefix,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CarouselRef } from 'antd/lib/carousel';
|
|
2
|
+
import { type CarouselRef } from 'antd/lib/carousel';
|
|
3
3
|
export declare const useCarousel: () => {
|
|
4
4
|
bannerRef: import("react").RefObject<CarouselRef>;
|
|
5
5
|
handleDotClick: (index: number) => void;
|
package/dist/hooks/useTexts.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BannerTexts } from '../Banner.types';
|
|
1
|
+
import { type BannerTexts } from '../Banner.types';
|
|
2
2
|
export declare const useTexts: (texts?: Partial<BannerTexts>) => BannerTexts;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type BannerSlideMediaContentProps, type BannerSlideTextContentProps } from '../Banner.types';
|
|
2
2
|
export declare const isMediaContent: (props: BannerSlideTextContentProps | BannerSlideMediaContentProps) => props is BannerSlideMediaContentProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-banner",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"description": "Banner UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^1.4.
|
|
38
|
-
"@synerise/ds-icon": "^1.5.
|
|
39
|
-
"@synerise/ds-tag": "^1.1.
|
|
40
|
-
"@synerise/ds-tooltip": "^1.1.
|
|
41
|
-
"@synerise/ds-typography": "^1.0.
|
|
42
|
-
"@synerise/ds-utils": "^1.3.
|
|
37
|
+
"@synerise/ds-button": "^1.4.3",
|
|
38
|
+
"@synerise/ds-icon": "^1.5.4",
|
|
39
|
+
"@synerise/ds-tag": "^1.1.12",
|
|
40
|
+
"@synerise/ds-tooltip": "^1.1.12",
|
|
41
|
+
"@synerise/ds-typography": "^1.0.14",
|
|
42
|
+
"@synerise/ds-utils": "^1.3.1",
|
|
43
43
|
"uuid": "^8.3.2"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"react-intl": ">= 3.12.0 <= 6.8",
|
|
50
50
|
"styled-components": "^5.3.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "8db1900bf3f7b0782c834ff82f628199530cd934"
|
|
53
53
|
}
|