lm-web-controls 1.2.4 → 1.2.5
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/_virtual/_tslib.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var r=function(){return r=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},r.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;export{r as __assign};
|
package/dist/blocks/faq/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
2
|
+
import e,{useState as a}from"react";var n=function(n){var t=n.question,c=n.answer,i=n.icon,r=a(!1),o=r[0],s=r[1];return e.createElement("div",{className:"faq-item",onClick:function(){return s(!o)}},e.createElement("div",{className:"faq-question-container"},e.createElement("h3",{className:"faq-question"},t),e.createElement("img",{src:i,alt:"Toggle icon",className:"faq-icon ".concat(o?"rotate":"")})),e.createElement("div",{className:"faq-answer ".concat(o?"open":"closed")},e.createElement("p",null,c)))};function t(a){var t=a.faq,c=a.title,i=void 0===c?"Frequently Asked Questions":c,r=a.icon,o=void 0===r?"../../images/accordion.png":r;return e.createElement("div",{className:"faq-main-container"},e.createElement("h2",{className:"faq-title"},i),e.createElement("div",{className:"faq-inner-container"},t.items.map((function(a){return e.createElement(n,{key:a.id,question:a.question,answer:a.answer,icon:o})}))))}export{t as Faq};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Component, ChangeEvent } from "react";
|
|
2
|
-
|
|
2
|
+
import { FaqProps } from "../src";
|
|
3
3
|
declare module "lm-web-controls" {
|
|
4
4
|
type EmailProps = {
|
|
5
5
|
value: string;
|
|
@@ -57,12 +57,6 @@ declare module "lm-web-controls" {
|
|
|
57
57
|
contentSelector?: string;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
type FaqProps = {
|
|
61
|
-
faqSlug: string;
|
|
62
|
-
title?: string;
|
|
63
|
-
icon?: string;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
60
|
export const Email: React.FC<EmailProps>;
|
|
67
61
|
export const Copyright: React.FC<CopyrightProps>;
|
|
68
62
|
export const Phone: React.FC<PhoneProps>;
|