tecitheme 0.11.6 → 0.11.7

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.
@@ -0,0 +1,26 @@
1
+ <script>
2
+ import { makeIdString } from "../utils";
3
+
4
+
5
+ export let data = {};
6
+ let id = makeIdString(data.name);
7
+ </script>
8
+
9
+ <div id={id} class="bg-white">
10
+ <div class="mx-auto max-w-7xl divide-y divide-gray-900/10 px-6 lg:px-8">
11
+ <h2 class="text-2xl font-bold leading-10 tracking-tight text-gray-900">Frequently asked questions</h2>
12
+ <dl class="mt-10 space-y-8 divide-y divide-gray-900/10">
13
+ <div class="pt-8 lg:grid lg:grid-cols-12 lg:gap-8">
14
+
15
+ {#each data.items as item}
16
+ <dt class="text-base font-semibold leading-7 text-gray-900 lg:col-span-5">{@html item.label}</dt>
17
+ <dd class="mt-4 lg:col-span-7 lg:mt-0">
18
+ <p class="text-base leading-7 text-gray-600">{@html item.description}</p>
19
+ </dd>
20
+ {/each}
21
+ </div>
22
+
23
+ <!-- More questions... -->
24
+ </dl>
25
+ </div>
26
+ </div>
@@ -0,0 +1,23 @@
1
+ /** @typedef {typeof __propDef.props} FaqListProps */
2
+ /** @typedef {typeof __propDef.events} FaqListEvents */
3
+ /** @typedef {typeof __propDef.slots} FaqListSlots */
4
+ export default class FaqList extends SvelteComponent<{
5
+ data?: {};
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {}> {
9
+ }
10
+ export type FaqListProps = typeof __propDef.props;
11
+ export type FaqListEvents = typeof __propDef.events;
12
+ export type FaqListSlots = typeof __propDef.slots;
13
+ import { SvelteComponent } from "svelte";
14
+ declare const __propDef: {
15
+ props: {
16
+ data?: {};
17
+ };
18
+ events: {
19
+ [evt: string]: CustomEvent<any>;
20
+ };
21
+ slots: {};
22
+ };
23
+ export {};
@@ -1,6 +1,6 @@
1
1
  <script>
2
2
  import { getColorStyles, makeIdString } from "../utils";
3
- import { writable } from "svelte/store";
3
+ import { writable } from "svelte/store";
4
4
 
5
5
  export let data = {};
6
6
  let id = makeIdString(data.name);
@@ -128,27 +128,17 @@
128
128
  <div id={id} class="relative flex flex-col space-y-4">
129
129
 
130
130
  <!-- Hero -->
131
- <div class="flow-root bg-gradient-to-b {getColorStyles("gradient-dark", data.color)} py-16 sm:pt-32">
131
+ <div class="flow-root bg-white py-8">
132
132
  <div class="mx-auto max-w-7xl px-6 lg:px-8">
133
133
 
134
134
  <!-- Title, Text, and Buttons -->
135
135
  <div class="relative z-10">
136
- <!-- Title -->
137
- {#if data.heading}
138
- <h1 class="mx-auto max-w-4xl text-center text-5xl font-bold tracking-tight text-white break-words hyphens-auto">{data.heading}</h1>
139
- {/if}
140
- <!-- Hero Text -->
141
- {#if data.subheading}
142
- <p class="mx-auto mt-4 max-w-2xl text-center text-lg leading-8 text-white">{@html data.subheading}</p>
143
- {/if}
144
-
145
136
  <!-- Buttons -->
146
- <div class="mt-16 flex justify-center">
147
- <fieldset class="flex flex-row bg-white/5 text-center text-xs font-semibold leading-5 text-white">
148
- <legend class="sr-only">Payment frequency</legend>
149
-
137
+ <div class="flex justify-center">
138
+ <fieldset class="flex flex-row bg-white/5 text-center text-xs font-semibold leading-5 shadow-lg ring ring-gray-200/50">
139
+ <legend class="sr-only">Group Selector</legend>
150
140
  {#each data.groups as btn}
151
- <button class="{$selectedButton === btn ? getColorStyles("background", data.color) : "bg-transparent hover:bg-gray-500/40"} px-4 py-2 transition ease-in-out duration-300" on:click={selectedButton.update(val => btn)}>
141
+ <button class="{$selectedButton === btn ? getColorStyles("background", data.color) : getColorStyles("button", "white")} px-4 py-2 transition ease-in-out duration-300" on:click={selectedButton.update(val => btn)}>
152
142
  {btn.name}
153
143
  </button>
154
144
  {/each}
@@ -236,7 +226,7 @@
236
226
  <h4 class="hidden sm:block sticky top-32 z-20 bg-white font-semibold leading-6 text-gray-900 px-4 py-2 w-fit">{category.name}</h4>
237
227
 
238
228
  <!-- Table -->
239
- <div class="hidden relative sm:flex flex-col w-full pt-8 shadow-lg">
229
+ <div class="hidden relative sm:flex flex-col w-full shadow-lg">
240
230
  {#each sortFeaturesByOrder(category.features) as feature, featureIndex}
241
231
  <div class="w-full flex flex-row items-center justify-center {featureIndex !== Object.values(category.features).length - 1 ? "border-b" : ""} space-x-8">
242
232
  <!-- Row Header -->
@@ -288,7 +278,7 @@
288
278
  {/each}
289
279
 
290
280
  <!-- Dummy div for background rings around features -->
291
- <div class="pointer-events-none absolute flex flex-row before:block w-full h-full space-x-8 top-0 pt-8" aria-hidden="true">
281
+ <div class="pointer-events-none absolute flex flex-row before:block w-full h-full space-x-8 top-0" aria-hidden="true">
292
282
  <div class="w-full"></div>
293
283
  {#each $selectedTable.columns as column}
294
284
  <div class="w-full ring-gray-900/10 ring-inset {column.highlightOption ? getColorStyles("ring", data.color) + " ring-2" : "ring-1"}"></div>
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export { default as ContentTwoColumns } from "./components/ContentTwoColumns.sve
10
10
  export { default as CountrySelector } from "./components/CountrySelector.svelte";
11
11
  export { default as CTA } from "./components/CTA.svelte";
12
12
  export { default as CTASplitImage } from "./components/CTASplitImage.svelte";
13
+ export { default as FaqTable } from "./components/FAQList.svelte";
13
14
  export { default as FeatureGrid } from "./components/FeatureGrid.svelte";
14
15
  export { default as FeatureTable } from "./components/FeatureTable.svelte";
15
16
  export { default as Figure } from "./components/Figure.svelte";
package/dist/index.js CHANGED
@@ -10,6 +10,7 @@ export { default as ContentTwoColumns } from './components/ContentTwoColumns.sve
10
10
  export { default as CountrySelector } from './components/CountrySelector.svelte';
11
11
  export { default as CTA } from './components/CTA.svelte';
12
12
  export { default as CTASplitImage } from './components/CTASplitImage.svelte';
13
+ export { default as FaqTable } from './components/FAQList.svelte';
13
14
  export { default as FeatureGrid } from './components/FeatureGrid.svelte';
14
15
  export { default as FeatureTable } from './components/FeatureTable.svelte';
15
16
  export { default as Figure } from './components/Figure.svelte';
@@ -20,6 +20,7 @@
20
20
  import PageNav from "../components/PageNav.svelte";
21
21
  import Testimonial from "../components/Testimonial.svelte";
22
22
  import PartnersList from "../components/PartnersList.svelte";
23
+ import FaqList from "../components/FAQList.svelte";
23
24
 
24
25
  let blocks = [
25
26
  { ref: "accordion", component: Accordion},
@@ -43,6 +44,7 @@
43
44
  { ref: "pageNav", component: PageNav },
44
45
  { ref: "testimonial", component: Testimonial },
45
46
  { ref: "partners", component: PartnersList },
47
+ { ref: "faq-list", component: FaqList }
46
48
  ];
47
49
 
48
50
  export let data = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tecitheme",
3
- "version": "0.11.6",
3
+ "version": "0.11.7",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev",