project-booster-vue 9.13.3 → 9.14.2

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.
Files changed (70) hide show
  1. package/package.json +1 -1
  2. package/src/components/cards/PbCard.stories.mdx +43 -110
  3. package/src/components/cards/PbCard.vue +96 -149
  4. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-align-horizontal-1-snap.png +0 -0
  5. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-align-text-1-snap.png +0 -0
  6. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-align-vertical-1-snap.png +0 -0
  7. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-button-href-1-snap.png +0 -0
  8. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-button-label-1-snap.png +0 -0
  9. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-degradations-1-snap.png +0 -0
  10. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-disabled-1-snap.png +0 -0
  11. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-flag-label-1-snap.png +0 -0
  12. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-flag-theme-1-snap.png +0 -0
  13. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-hero-1-snap.png +0 -0
  14. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-image-1-snap.png +0 -0
  15. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-image-is-contained-1-snap.png +0 -0
  16. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-image-ratio-1-snap.png +0 -0
  17. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-image-title-1-snap.png +0 -0
  18. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-link-1-snap.png +0 -0
  19. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-min-card-ratio-1-snap.png +0 -0
  20. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-selectable-1-snap.png +0 -0
  21. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-selected-1-snap.png +0 -0
  22. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-text-1-snap.png +0 -0
  23. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-title-1-snap.png +0 -0
  24. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-card-/360/237/247/254-features-type-icon-1-snap.png +0 -0
  25. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-cards-list-/360/237/247/254-features-3-cards-1-snap.png +0 -0
  26. package/src/components/cards/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-cards-list-/360/237/247/254-features-4-cards-1-snap.png +0 -0
  27. package/src/components/cards-select/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-cards-pb-cards-select-/360/237/246/240-showcase-hint-1-snap.png +0 -0
  28. package/src/components/carousel/PbCarousel.vue +0 -2
  29. package/src/components/configurations/section/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-configurations-pb-configurations-section-/360/237/246/240-feature-with-configurations-1-snap.png +0 -0
  30. package/src/components/configurations/section/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-configurations-pb-configurations-section-/360/237/246/240-feature-with-configurations-with-updated-prices-1-snap.png +0 -0
  31. package/src/components/landing/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-landing-pb-projects-landing-page-/360/237/223/204-101-sandbox-1-snap.png +0 -0
  32. package/src/components/media/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-documents-media-pb-media-/360/237/246/240-with-media-1-snap.png +0 -0
  33. package/src/components/media/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-documents-media-pb-media-/360/237/246/240-with-media-read-only-1-snap.png +0 -0
  34. package/src/components/pedagogy/PbPedagogy.vue +7 -4
  35. package/src/components/pedagogy/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-pedagogy-pb-pedagogy-/360/237/246/240-101-sandbox-1-snap.png +0 -0
  36. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-configurations-import-showcase-error-with-existing-configurations-1-snap.png +0 -0
  37. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-configurations-import-showcase-import-from-empty-state-1-snap.png +0 -0
  38. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-configurations-import-showcase-with-existing-configurations-1-snap.png +0 -0
  39. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-configurations-list-showcase-empty-state-1-snap.png +0 -0
  40. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-configurations-list-showcase-with-configurations-1-snap.png +0 -0
  41. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-configurations-list-showcase-with-configurations-with-updated-prices-1-snap.png +0 -0
  42. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-documents-media-showcase-with-media-documents-1-snap.png +0 -0
  43. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-estimates-showcase-delete-estimate-1-snap.png +0 -0
  44. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-estimates-showcase-with-estimates-1-snap.png +0 -0
  45. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-planner-showcase-1-snap.png +0 -0
  46. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-planner-showcase-empty-state-1-snap.png +0 -0
  47. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-tools-configurators-estimators-showcase-with-configurators-only-1-snap.png +0 -0
  48. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-tools-configurators-estimators-showcase-with-estimators-and-configurators-1-snap.png +0 -0
  49. package/src/components/projects/project-hub/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-project-hub-/360/237/246/240-features-tools-configurators-estimators-showcase-with-estimators-only-1-snap.png +0 -0
  50. package/src/components/projects/projects/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-projects-/360/237/246/240-showcase-1-snap.png +0 -0
  51. package/src/components/projects/projects/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-projects-/360/237/246/240-showcase-autoscroll-to-estimates-1-snap.png +0 -0
  52. package/src/components/projects/projects-list/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-projects-pb-projects-list-/360/237/246/240-showcase-1-snap.png +0 -0
  53. package/src/components/question/PbQuestion.vue +1 -1
  54. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-demo-multiple-multiple-1-snap.png +0 -0
  55. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-demo-simple-simple-1-snap.png +0 -0
  56. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-answers-multiple-skippable-multiselect-question-1-snap.png +0 -0
  57. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-question-101-101-1-snap.png +0 -0
  58. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-question-custom-back-button-hide-back-button-1-snap.png +0 -0
  59. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-question-decorator-stripes-decorator-stripe-1-snap.png +0 -0
  60. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-question-show-more-show-more-1-snap.png +0 -0
  61. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-question-skippable-mutiple-skippable-1-snap.png +0 -0
  62. package/src/components/question/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-question-/360/237/246/240-features-question-skippable-skippable-1-snap.png +0 -0
  63. package/src/components/question/configurations-import/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-scenario-questions-pb-configurations-import-/360/237/246/240-with-simulations-linked-1-snap.png +0 -0
  64. package/src/components/restitution/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-restitution-pb-restitution-/360/237/246/240-feature-conditional-exit-options-1-snap.png +0 -0
  65. package/src/components/restitution/__snapshots__/storyshots-puppeteer-test-puppeteer-ts-image-storyshots-project-booster-components-restitution-pb-restitution-/360/237/246/240-features-with-exit-options-1-snap.png +0 -0
  66. package/src/components/scenario/PbScenario-Demo-Project.stories.js +10 -101
  67. package/src/components/scenario/PbScenario-Features-Rehydration.stories.mdx +2 -8
  68. package/src/components/scenario/PbScenario.stories.mdx +16 -15
  69. package/src/components/scenario/PbScenario.vue +10 -5
  70. package/src/stores/modules/appointmentQualificationStore.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "9.13.3",
3
+ "version": "9.14.2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -105,11 +105,12 @@ The `PbCard` Vue component is a card component with:
105
105
  - A hero,
106
106
  - A title,
107
107
  - A text,
108
- - A button.
108
+ - A button,
109
+ - A link.
109
110
 
110
111
  The minimum card ratio can be forced.
111
112
 
112
- It is hoverable (unless a `buttonLabel` is valued);
113
+ It is hoverable (unless a `buttonLabel` or `linkLabel` is valued);
113
114
 
114
115
  As many card components, the card has:
115
116
 
@@ -126,7 +127,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
126
127
  setup() {
127
128
  return { args };
128
129
  },
129
- template: `<div style="display: flex;">
130
+ template: `<div style="display: flex;height: 60vh;width: 256px">
130
131
  <pb-card
131
132
  :image-title="args.imageTitle"
132
133
  :image="args.image"
@@ -136,6 +137,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
136
137
  :hero="args.hero"
137
138
  :title="args.title"
138
139
  :text="args.text"
140
+ :linkLabel="args.linkLabel"
139
141
  :button-label="args.buttonLabel"
140
142
  :button-href="args.buttonHref"
141
143
  :card-min-ratio="args.cardMinRatio"
@@ -146,9 +148,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
146
148
  :selectable="args.selectable"
147
149
  :selected="args.selected"
148
150
  :type-icon="args.typeIcon"
149
- :rating="args.rating"
150
- :pricing="args.pricing"
151
- style="width: 100%;max-width: 256px;"
151
+ style="width: 100%;max-width: 256px;height: 100%;"
152
152
  />
153
153
  </div>`,
154
154
  });
@@ -158,6 +158,13 @@ export const TemplateSandbox = (args, { argTypes }) => ({
158
158
  name="101 Sandbox"
159
159
  args={{
160
160
  title: 'The card title',
161
+ flagLabel: 'The card flag label',
162
+ flagTheme: 'primary',
163
+ hero: 'The card hero',
164
+ text: 'The card text',
165
+ imageTitle: 'The card image title',
166
+ linkLabel: 'The link label',
167
+ buttonLabel: 'The button label',
161
168
  image:
162
169
  'https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80',
163
170
  }}
@@ -178,7 +185,11 @@ export const TemplateSandbox = (args, { argTypes }) => ({
178
185
  {{
179
186
  components: { PbCard },
180
187
  template: `
181
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
188
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
189
+ <pb-card
190
+ image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
191
+ class="pb-card--story"
192
+ />
182
193
  <pb-card
183
194
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
184
195
  flag-label="The flag label"
@@ -209,7 +220,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
209
220
  {{
210
221
  components: { PbCard },
211
222
  template: `
212
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
223
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
213
224
  <pb-card
214
225
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
215
226
  flag-label="The flag label"
@@ -242,7 +253,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
242
253
  {{
243
254
  components: { PbCard },
244
255
  template: `
245
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
256
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
246
257
  <pb-card
247
258
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
248
259
  flag-label="The flag label"
@@ -339,7 +350,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
339
350
  {{
340
351
  components: { PbCard },
341
352
  template: `
342
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
353
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
343
354
  <pb-card
344
355
  card-min-ratio="16x9"
345
356
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
@@ -424,14 +435,14 @@ export const TemplateSandbox = (args, { argTypes }) => ({
424
435
  </Story>
425
436
  </Canvas>
426
437
 
427
- ## **alignText** prop
438
+ ## **alignText** prop (mixed with **alignVertical** prop)
428
439
 
429
440
  <Canvas>
430
441
  <Story name="Features/Align text" parameters={{ controls: { disable: true } }}>
431
442
  {{
432
443
  components: { PbCard },
433
444
  template: `
434
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
445
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
435
446
  <pb-card
436
447
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
437
448
  flag-label="The flag label"
@@ -450,6 +461,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
450
461
  text="The card text"
451
462
  button-label="The button label"
452
463
  align-text="center"
464
+ align-vertical="center"
453
465
  class="pb-card--story"
454
466
  />
455
467
  <pb-card
@@ -460,6 +472,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
460
472
  text="The card text"
461
473
  button-label="The button label"
462
474
  align-text="right"
475
+ align-vertical="flex-end"
463
476
  class="pb-card--story"
464
477
  />
465
478
  <pb-card
@@ -502,7 +515,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
502
515
  {{
503
516
  components: { PbCard },
504
517
  template: `
505
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
518
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
506
519
  <pb-card
507
520
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
508
521
  flag-label="The flag label"
@@ -603,7 +616,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
603
616
  {{
604
617
  components: { PbCard },
605
618
  template: `
606
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
619
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
607
620
  <pb-card
608
621
  card-min-ratio="3x4"
609
622
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
@@ -673,7 +686,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
673
686
  {{
674
687
  components: { PbCard },
675
688
  template: `
676
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
689
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
677
690
  <pb-card
678
691
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
679
692
  image-ratio="16x9"
@@ -777,7 +790,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
777
790
  {{
778
791
  components: { PbCard },
779
792
  template: `
780
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
793
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
781
794
  <pb-card
782
795
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
783
796
  flag-label="The flag label"
@@ -806,7 +819,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
806
819
  {{
807
820
  components: { PbCard },
808
821
  template: `
809
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
822
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
810
823
  <pb-card
811
824
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
812
825
  flag-label="The flag label"
@@ -874,7 +887,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
874
887
  components: { PbCard },
875
888
  data: () => ({ HTML_STRING }),
876
889
  template: `
877
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
890
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
878
891
  <pb-card
879
892
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
880
893
  flag-label="The flag label"
@@ -914,7 +927,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
914
927
  components: { PbCard },
915
928
  data: () => ({ HTML_STRING }),
916
929
  template: `
917
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
930
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
918
931
  <pb-card
919
932
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
920
933
  title="The card title"
@@ -949,7 +962,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
949
962
  components: { PbCard },
950
963
  data: () => ({ HTML_STRING }),
951
964
  template: `
952
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
965
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
953
966
  <pb-card
954
967
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
955
968
  title="The card title"
@@ -991,7 +1004,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
991
1004
  {{
992
1005
  components: { PbCard },
993
1006
  template: `
994
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1007
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
995
1008
  <pb-card
996
1009
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
997
1010
  title="The card title"
@@ -1018,7 +1031,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1018
1031
  {{
1019
1032
  components: { PbCard },
1020
1033
  template: `
1021
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1034
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
1022
1035
  <pb-card
1023
1036
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1024
1037
  title="The card title"
@@ -1029,7 +1042,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1029
1042
  <pb-card
1030
1043
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1031
1044
  title="The card title"
1032
- text="The card text should have two lines"
1045
+ text="The card text should have three lines of text to test alignment"
1033
1046
  button-label="The button label"
1034
1047
  button-href="http://www.google.com"
1035
1048
  class="pb-card--story"
@@ -1048,7 +1061,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1048
1061
  components: { PbCard },
1049
1062
  data: () => ({ HTML_STRING }),
1050
1063
  template: `
1051
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1064
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
1052
1065
  <pb-card
1053
1066
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1054
1067
  flag-label="The flag label"
@@ -1142,7 +1155,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1142
1155
  {{
1143
1156
  components: { PbCard },
1144
1157
  template: `
1145
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1158
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
1146
1159
  <pb-card
1147
1160
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1148
1161
  title="The card title"
@@ -1201,7 +1214,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1201
1214
  {{
1202
1215
  components: { PbCard },
1203
1216
  template: `
1204
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1217
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
1205
1218
  <pb-card
1206
1219
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1207
1220
  title="The card title"
@@ -1272,7 +1285,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1272
1285
  {{
1273
1286
  components: { PbCard },
1274
1287
  template: `
1275
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1288
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
1276
1289
  <pb-card
1277
1290
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1278
1291
  title="The card title"
@@ -1306,7 +1319,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1306
1319
  {{
1307
1320
  components: { PbCard },
1308
1321
  template: `
1309
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1322
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
1310
1323
  <pb-card
1311
1324
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1312
1325
  title="The card title"
@@ -1373,7 +1386,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1373
1386
  {{
1374
1387
  components: { PbCard },
1375
1388
  template: `
1376
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1389
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
1377
1390
  <pb-card
1378
1391
  v-for="variation in generateProps()"
1379
1392
  :image-title="variation.imageTitle"
@@ -1419,86 +1432,6 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1419
1432
  </Story>
1420
1433
  </Canvas>
1421
1434
 
1422
- ## **rating** prop
1423
-
1424
- <Canvas>
1425
- <Story name="Features/Rating" parameters={{ controls: { disable: true } }}>
1426
- {{
1427
- components: { PbCard },
1428
- template: `
1429
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1430
- <pb-card
1431
- image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1432
- title="The card title"
1433
- text="The card text should have two lines"
1434
- button-label="The button label"
1435
- type-icon="https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Payment_Bill_24px.svg"
1436
- class="pb-card--story"
1437
- />
1438
- <pb-card
1439
- image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1440
- title="The card title"
1441
- text="The card text should have two lines"
1442
- button-label="The button label"
1443
- :rating="{'numberOfVotes':42,'rate':3.48}"
1444
- class="pb-card--story"
1445
- />
1446
- <pb-card
1447
- image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1448
- title="The card title"
1449
- text="The card text should have two lines"
1450
- button-label="The button label"
1451
- type-icon="https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Payment_Bill_24px.svg"
1452
- :rating="{'numberOfVotes':675,'rate':4}"
1453
- class="pb-card--story"
1454
- />
1455
- </div>
1456
- `,
1457
- }}
1458
- </Story>
1459
- </Canvas>
1460
-
1461
- ## **pricing** prop
1462
-
1463
- <Canvas>
1464
- <Story name="Features/Pricing" parameters={{ controls: { disable: true } }}>
1465
- {{
1466
- components: { PbCard },
1467
- template: `
1468
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1469
- <pb-card
1470
- image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1471
- title="The card title"
1472
- text="The card text should have two lines"
1473
- button-label="The button label"
1474
- type-icon="https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Payment_Bill_24px.svg"
1475
- class="pb-card--story"
1476
- />
1477
- <pb-card
1478
- image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1479
- title="The card title"
1480
- text="The card text should have two lines"
1481
- button-label="The button label"
1482
- :rating="{'numberOfVotes':42,'rate':3.48}"
1483
- :pricing="{'price': 29.9,'oldPrice':34.9,'discount':{'type':'PERCENTAGE','value':14} }"
1484
- class="pb-card--story"
1485
- />
1486
- <pb-card
1487
- image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1488
- title="The card title"
1489
- text="The card text should have two lines"
1490
- button-label="The button label"
1491
- type-icon="https://storage.googleapis.com/project-booster-media/mozaic-icons/svg/Payment_Bill_24px.svg"
1492
- :rating="{'numberOfVotes':675,'rate':4}"
1493
- :pricing="{'price': 29.9}"
1494
- class="pb-card--story"
1495
- />
1496
- </div>
1497
- `,
1498
- }}
1499
- </Story>
1500
- </Canvas>
1501
-
1502
1435
  ## **link** prop
1503
1436
 
1504
1437
  <Canvas>
@@ -1506,7 +1439,7 @@ export const TemplateSandbox = (args, { argTypes }) => ({
1506
1439
  {{
1507
1440
  components: { PbCard },
1508
1441
  template: `
1509
- <div style="display: flex;gap: 2rem;flex-wrap: wrap;">
1442
+ <div style="display: flex;gap: 1rem;flex-wrap: wrap;">
1510
1443
  <pb-card
1511
1444
  image="https://images.unsplash.com/photo-1577106777018-886191d770b2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1868&q=80"
1512
1445
  title="The card title"