@festo-ui/react 5.0.0-dev.149 → 5.0.0-dev.151
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/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/lib/components/modals/Modal.d.ts +4 -6
- package/lib/components/modals/Modal.js +28 -61
- package/lib/components/modals/ModalBase.d.ts +9 -0
- package/lib/components/modals/ModalBase.js +59 -0
- package/lib/components/modals/imageGallery/BaseGallery.d.ts +18 -0
- package/lib/components/modals/imageGallery/BaseGallery.js +77 -0
- package/lib/components/modals/imageGallery/ImageGallery.d.ts +15 -0
- package/lib/components/modals/imageGallery/ImageGallery.helper.d.ts +3 -0
- package/lib/components/modals/imageGallery/ImageGallery.helper.js +11 -0
- package/lib/components/modals/imageGallery/ImageGallery.js +77 -0
- package/lib/components/modals/imageGallery/ImageGallery.stories.helper.d.ts +3 -0
- package/lib/components/modals/imageGallery/ImageGallery.stories.helper.js +108 -0
- package/lib/components/modals/imageGallery/ImageGalleryContent.d.ts +10 -0
- package/lib/components/modals/imageGallery/ImageGalleryContent.js +16 -0
- package/lib/components/modals/imageGallery/ImageGalleryPagination.d.ts +8 -0
- package/lib/components/modals/imageGallery/ImageGalleryPagination.js +30 -0
- package/lib/components/modals/imageGallery/useClasses.d.ts +0 -0
- package/lib/components/modals/imageGallery/useClasses.js +0 -0
- package/node/index.js +7 -0
- package/node/lib/components/modals/Modal.js +27 -59
- package/node/lib/components/modals/ModalBase.js +65 -0
- package/node/lib/components/modals/imageGallery/BaseGallery.js +83 -0
- package/node/lib/components/modals/imageGallery/ImageGallery.helper.js +19 -0
- package/node/lib/components/modals/imageGallery/ImageGallery.js +83 -0
- package/node/lib/components/modals/imageGallery/ImageGallery.stories.helper.js +124 -0
- package/node/lib/components/modals/imageGallery/ImageGalleryContent.js +20 -0
- package/node/lib/components/modals/imageGallery/ImageGalleryPagination.js +34 -0
- package/node/lib/components/modals/imageGallery/useClasses.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _gallery = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-01.webp"));
|
|
8
|
+
var _gallery2 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-02.webp"));
|
|
9
|
+
var _gallery3 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-03.webp"));
|
|
10
|
+
var _gallery4 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-04.webp"));
|
|
11
|
+
var _gallery5 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-05.webp"));
|
|
12
|
+
var _gallery6 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-06.webp"));
|
|
13
|
+
var _gallery7 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-07.webp"));
|
|
14
|
+
var _gallery8 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-08.webp"));
|
|
15
|
+
var _gallery9 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-09.webp"));
|
|
16
|
+
var _gallery10 = _interopRequireDefault(require("../../../../../../web-essentials/stories/assets/gallery-10.webp"));
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
/* eslint-disable import/no-relative-packages */
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
|
|
40
|
+
const images = [{
|
|
41
|
+
src: _gallery.default,
|
|
42
|
+
alt: 'Asset1',
|
|
43
|
+
content: {
|
|
44
|
+
title: 'Asset 1',
|
|
45
|
+
body: 'Asset 1 description'
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
src: _gallery2.default,
|
|
49
|
+
alt: 'Asset2',
|
|
50
|
+
containMode: true,
|
|
51
|
+
content: {
|
|
52
|
+
title: 'Asset 2',
|
|
53
|
+
body: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
55
|
+
children: "Asset 2 description with some html inside."
|
|
56
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
57
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
58
|
+
children: "bullet point 1"
|
|
59
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
60
|
+
children: "bullet point 2"
|
|
61
|
+
})]
|
|
62
|
+
})]
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
src: _gallery3.default,
|
|
67
|
+
alt: 'Asset3',
|
|
68
|
+
containMode: true,
|
|
69
|
+
content: {
|
|
70
|
+
title: 'Asset 3',
|
|
71
|
+
body: 'Asset 3 description'
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
src: _gallery4.default,
|
|
75
|
+
alt: 'Asset4',
|
|
76
|
+
content: {
|
|
77
|
+
title: 'Asset 4',
|
|
78
|
+
body: 'Asset 4 description'
|
|
79
|
+
}
|
|
80
|
+
}, {
|
|
81
|
+
src: _gallery5.default,
|
|
82
|
+
alt: 'Asset5',
|
|
83
|
+
content: {
|
|
84
|
+
title: 'Asset 5',
|
|
85
|
+
body: 'Asset 5 description'
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
src: _gallery6.default,
|
|
89
|
+
alt: 'Asset6',
|
|
90
|
+
content: {
|
|
91
|
+
title: 'Asset 6',
|
|
92
|
+
body: 'Asset 6 description'
|
|
93
|
+
}
|
|
94
|
+
}, {
|
|
95
|
+
src: _gallery7.default,
|
|
96
|
+
alt: 'Asset7',
|
|
97
|
+
content: {
|
|
98
|
+
title: 'Asset 7',
|
|
99
|
+
body: 'Asset 7 description'
|
|
100
|
+
}
|
|
101
|
+
}, {
|
|
102
|
+
src: _gallery8.default,
|
|
103
|
+
alt: 'Asset8',
|
|
104
|
+
content: {
|
|
105
|
+
title: 'Asset 8',
|
|
106
|
+
body: 'Asset 8 description'
|
|
107
|
+
}
|
|
108
|
+
}, {
|
|
109
|
+
src: _gallery9.default,
|
|
110
|
+
alt: 'Asset9',
|
|
111
|
+
content: {
|
|
112
|
+
title: 'Asset 9',
|
|
113
|
+
body: 'Asset 9 description'
|
|
114
|
+
}
|
|
115
|
+
}, {
|
|
116
|
+
src: _gallery10.default,
|
|
117
|
+
alt: 'Asset10',
|
|
118
|
+
content: {
|
|
119
|
+
title: 'Asset 10',
|
|
120
|
+
body: 'Asset 1ß description'
|
|
121
|
+
}
|
|
122
|
+
}];
|
|
123
|
+
var _default = images;
|
|
124
|
+
exports.default = _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = ImageGalleryContent;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
function ImageGalleryContent(_ref) {
|
|
9
|
+
let {
|
|
10
|
+
imageContent
|
|
11
|
+
} = _ref;
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
13
|
+
children: imageContent && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
14
|
+
className: "fwe-image-gallery-content",
|
|
15
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
|
|
16
|
+
children: imageContent.title
|
|
17
|
+
}), imageContent.body]
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = ImageGalleryPagination;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
function ImageGalleryPagination(_ref) {
|
|
9
|
+
let {
|
|
10
|
+
pagination,
|
|
11
|
+
currentIndex,
|
|
12
|
+
length
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
15
|
+
children: pagination && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
16
|
+
className: "fwe-pagination fwe-pagination--on-dark-bg",
|
|
17
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
18
|
+
"aria-label": "previous",
|
|
19
|
+
type: "button",
|
|
20
|
+
className: "fwe-navigate-btn-down"
|
|
21
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
22
|
+
className: "fwe-page-current",
|
|
23
|
+
children: currentIndex
|
|
24
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
25
|
+
className: "fwe-page-max",
|
|
26
|
+
children: length
|
|
27
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
28
|
+
"aria-label": "next",
|
|
29
|
+
type: "button",
|
|
30
|
+
className: "fwe-navigate-btn-up"
|
|
31
|
+
})]
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@festo-ui/react",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.151",
|
|
4
4
|
"author": "Festo UI (styleguide@festo.com)",
|
|
5
5
|
"license": "apache-2.0",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"flatpickr": "^4.6.9",
|
|
23
23
|
"quill": "1.3.7",
|
|
24
24
|
"react-draggable": "^4.4.4",
|
|
25
|
-
"react-outside-click-handler": "^1.3.0",
|
|
26
25
|
"react-popper": "^2.3.0",
|
|
27
26
|
"react-transition-group": "^4.4.2",
|
|
28
27
|
"sass": "^1.57.1",
|
|
28
|
+
"swiper": "^9.4.1",
|
|
29
29
|
"xss": "^1.0.10"
|
|
30
30
|
},
|
|
31
31
|
"browserslist": [
|