@q2devel/q2-storybook 1.0.9 → 1.0.11
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/dist/components/banner/Banner.js +2 -7
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +58 -61
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { ChevronLeftIcon, ChevronRightIcon } from '@heroicons/react/24/outline';
|
|
3
|
-
import Image from 'next/image';
|
|
4
3
|
import React, { useEffect, useState } from 'react';
|
|
5
4
|
import buildClassesByJoining from '../../utils/StyleHelper';
|
|
6
5
|
export var Banner = function (_a) {
|
|
@@ -103,13 +102,9 @@ export var Banner = function (_a) {
|
|
|
103
102
|
return null;
|
|
104
103
|
}
|
|
105
104
|
// Renderovanie individuálneho slide
|
|
106
|
-
var renderDefaultItem = function (item, index) { return (React.createElement("div", { key: item.id, className: "min-w-full h-full relative ".concat(animation === 'fade'
|
|
107
|
-
? index === currentIndex
|
|
108
|
-
? 'opacity-100'
|
|
109
|
-
: 'opacity-0'
|
|
110
|
-
: '') },
|
|
105
|
+
var renderDefaultItem = function (item, index) { return (React.createElement("div", { key: item.id, className: "min-w-full h-full relative ".concat(animation === 'fade' ? (index === currentIndex ? 'opacity-100' : 'opacity-0') : '') },
|
|
111
106
|
React.createElement("div", { className: "absolute inset-0 w-full h-full" },
|
|
112
|
-
React.createElement(
|
|
107
|
+
React.createElement("img", { src: item.imageSrc, alt: item.imageAlt || item.title, className: buildClassesByJoining('w-full h-full', roundedClasses[rounded], objectFitClasses[objectFit], objectPositionClasses[objectPosition], imageClassName), style: { objectFit: objectFit } }),
|
|
113
108
|
withOverlay && (React.createElement("div", { className: buildClassesByJoining('absolute inset-0', overlayClasses[overlayStyle], roundedClasses[rounded]), style: item.overlayOpacity ? { opacity: item.overlayOpacity } : {} }))),
|
|
114
109
|
item.customContent || (React.createElement("div", { className: buildClassesByJoining('relative h-full w-full flex flex-col px-6', textPositionClasses[textPosition], textAlignmentClasses[textAlignment], contentClassName) },
|
|
115
110
|
React.createElement("h2", { className: buildClassesByJoining('text-3xl sm:text-4xl md:text-5xl font-bold text-white mb-2', titleClassName) }, item.title),
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,64 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
"./styles": "./dist/global.css"
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"dist"
|
|
16
|
-
],
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
19
|
-
"storybook": "storybook dev -p 6006",
|
|
20
|
-
"build-storybook": "storybook build",
|
|
21
|
-
"build": "tsc && npm run copy-assets",
|
|
22
|
-
"copy-assets": "find src -name '*.css' -exec cp --parents {} dist \\; || xcopy /s /y src\\*.css dist\\",
|
|
23
|
-
"prepublishOnly": "npm run build"
|
|
24
|
-
},
|
|
25
|
-
"keywords": [],
|
|
26
|
-
"author": "Q2",
|
|
27
|
-
"license": "ISC",
|
|
28
|
-
"description": "Komponenty nebo konfigurace pro storybook",
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@storybook/addon-actions": "^8.6.12",
|
|
31
|
-
"@storybook/addon-essentials": "^8.6.12",
|
|
32
|
-
"@storybook/addon-interactions": "^8.6.12",
|
|
33
|
-
"@storybook/addon-links": "^8.6.12",
|
|
34
|
-
"@storybook/addon-onboarding": "^8.6.12",
|
|
35
|
-
"@storybook/blocks": "^8.6.12",
|
|
36
|
-
"@storybook/react": "^8.6.12",
|
|
37
|
-
"@storybook/react-vite": "^8.6.12",
|
|
38
|
-
"@storybook/test": "^8.6.12",
|
|
39
|
-
"@types/classnames": "^2.3.0",
|
|
40
|
-
"@types/node": "^22.14.1",
|
|
41
|
-
"@types/react": "^19.1.2",
|
|
42
|
-
"@types/react-dom": "^19.1.2",
|
|
43
|
-
"autoprefixer": "^10.4.21",
|
|
44
|
-
"next": "^15.3.2",
|
|
45
|
-
"postcss": "^8.5.3",
|
|
46
|
-
"react": "^19.1.0",
|
|
47
|
-
"react-dom": "^19.1.0",
|
|
48
|
-
"storybook": "^8.6.12",
|
|
49
|
-
"tailwindcss": "^4.1.4",
|
|
50
|
-
"typescript": "^5.8.3"
|
|
51
|
-
},
|
|
52
|
-
"peerDependencies": {
|
|
53
|
-
"react": "^19.0.0",
|
|
54
|
-
"react-dom": "^19.0.0"
|
|
55
|
-
},
|
|
56
|
-
"dependencies": {
|
|
57
|
-
"@heroicons/react": "^2.2.0",
|
|
58
|
-
"@tailwindcss/postcss": "^4.1.4",
|
|
59
|
-
"classnames": "^2.5.1",
|
|
60
|
-
"html-react-parser": "^5.2.3",
|
|
61
|
-
"react-select": "^5.10.1",
|
|
62
|
-
"tailwind-merge": "^3.2.0"
|
|
2
|
+
"name": "@q2devel/q2-storybook",
|
|
3
|
+
"version": "1.0.11",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"module": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./dist/index.js",
|
|
10
|
+
"require": "./dist/index.js"
|
|
63
11
|
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
18
|
+
"storybook": "storybook dev -p 6006",
|
|
19
|
+
"build-storybook": "storybook build",
|
|
20
|
+
"build": "tsc",
|
|
21
|
+
"prepublishOnly": "npm run build"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [],
|
|
24
|
+
"author": "Q2",
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"description": "Komponenty nebo konfigurace pro storybook",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@storybook/addon-actions": "^8.6.12",
|
|
29
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
30
|
+
"@storybook/addon-interactions": "^8.6.12",
|
|
31
|
+
"@storybook/addon-links": "^8.6.12",
|
|
32
|
+
"@storybook/addon-onboarding": "^8.6.12",
|
|
33
|
+
"@storybook/blocks": "^8.6.12",
|
|
34
|
+
"@storybook/react": "^8.6.12",
|
|
35
|
+
"@storybook/react-vite": "^8.6.12",
|
|
36
|
+
"@storybook/test": "^8.6.12",
|
|
37
|
+
"@types/classnames": "^2.3.0",
|
|
38
|
+
"@types/node": "^22.14.1",
|
|
39
|
+
"@types/react": "^19.1.2",
|
|
40
|
+
"@types/react-dom": "^19.1.2",
|
|
41
|
+
"autoprefixer": "^10.4.21",
|
|
42
|
+
"postcss": "^8.5.3",
|
|
43
|
+
"react": "^19.1.0",
|
|
44
|
+
"react-dom": "^19.1.0",
|
|
45
|
+
"storybook": "^8.6.12",
|
|
46
|
+
"tailwindcss": "^4.1.4",
|
|
47
|
+
"typescript": "^5.8.3"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"react": "^19.0.0",
|
|
51
|
+
"react-dom": "^19.0.0"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@heroicons/react": "^2.2.0",
|
|
55
|
+
"@tailwindcss/postcss": "^4.1.4",
|
|
56
|
+
"classnames": "^2.5.1",
|
|
57
|
+
"html-react-parser": "^5.2.3",
|
|
58
|
+
"react-select": "^5.10.1",
|
|
59
|
+
"tailwind-merge": "^3.2.0"
|
|
60
|
+
}
|
|
64
61
|
}
|