@treely/strapi-slices 7.1.4 → 7.2.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/dist/slices/QAndA/QAndA.d.ts +1 -0
- package/dist/strapi-slices.cjs.development.js +1 -1
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +1 -1
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/slices/QAndA/QAndA.stories.tsx +5 -0
- package/src/slices/QAndA/QAndA.test.tsx +1 -0
- package/src/slices/QAndA/QAndA.tsx +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treely/strapi-slices",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Tree.ly FlexCo",
|
|
6
6
|
"description": "@treely/strapi-slices is a open source library maintained by Tree.ly.",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"adblock-detect-react": "^1.1.0",
|
|
135
135
|
"axios": "^1.7.2",
|
|
136
136
|
"axios-cache-interceptor": "^1.5.3",
|
|
137
|
-
"boemly": "^7.
|
|
137
|
+
"boemly": "^7.5.0",
|
|
138
138
|
"embla-carousel-auto-scroll": "^8.5.1",
|
|
139
139
|
"embla-carousel-autoplay": "^8.5.1",
|
|
140
140
|
"embla-carousel-react": "^8.5.1",
|
|
@@ -23,6 +23,7 @@ Minimal.args = {
|
|
|
23
23
|
],
|
|
24
24
|
otherQuestions: 'Other questions?',
|
|
25
25
|
button: { id: 1, text: 'Button', url: 'https://tree.ly' },
|
|
26
|
+
defaultIndex: [],
|
|
26
27
|
},
|
|
27
28
|
};
|
|
28
29
|
|
|
@@ -49,6 +50,7 @@ WithHero.args = {
|
|
|
49
50
|
img: { data: storybookStrapiCoverMock },
|
|
50
51
|
},
|
|
51
52
|
},
|
|
53
|
+
defaultIndex: [],
|
|
52
54
|
},
|
|
53
55
|
};
|
|
54
56
|
|
|
@@ -68,6 +70,7 @@ WithScroll.args = {
|
|
|
68
70
|
],
|
|
69
71
|
otherQuestions: 'Other questions?',
|
|
70
72
|
button: { id: 1, text: 'Button', url: 'https://tree.ly' },
|
|
73
|
+
defaultIndex: [],
|
|
71
74
|
},
|
|
72
75
|
};
|
|
73
76
|
|
|
@@ -84,6 +87,7 @@ Gray.args = {
|
|
|
84
87
|
],
|
|
85
88
|
otherQuestions: 'Other questions?',
|
|
86
89
|
button: { id: 1, text: 'Button', url: 'https://tree.ly' },
|
|
90
|
+
defaultIndex: [],
|
|
87
91
|
},
|
|
88
92
|
};
|
|
89
93
|
|
|
@@ -100,5 +104,6 @@ White.args = {
|
|
|
100
104
|
],
|
|
101
105
|
otherQuestions: 'Other questions?',
|
|
102
106
|
button: { id: 1, text: 'Button', url: 'https://tree.ly' },
|
|
107
|
+
defaultIndex: [],
|
|
103
108
|
},
|
|
104
109
|
};
|
|
@@ -57,6 +57,7 @@ export interface QAndAProps {
|
|
|
57
57
|
button: StrapiLink;
|
|
58
58
|
hero?: StrapiHeroCard;
|
|
59
59
|
variant?: keyof typeof VARIANTS;
|
|
60
|
+
defaultIndex: number[];
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
|
|
@@ -97,7 +98,7 @@ export const QAndA: React.FC<QAndAProps> = ({ slice }: QAndAProps) => {
|
|
|
97
98
|
<Box>
|
|
98
99
|
<BoemlyAccordion
|
|
99
100
|
rows={slice.questionsAndAnswers}
|
|
100
|
-
defaultIndex={
|
|
101
|
+
defaultIndex={slice.defaultIndex}
|
|
101
102
|
variant={variant.accordionVariant as 'white' | 'black'}
|
|
102
103
|
/>
|
|
103
104
|
<Flex
|