@lanaco/lnc-react-ui 4.0.116 → 4.0.118

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.
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),h=require("react"),r=require("./index-BpbMKBf_.cjs"),q=require("./Chip.cjs"),v=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./Icon.cjs"),P=require("./IconButton.cjs"),C=require("./Button.cjs"),M=v.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),f=require("react"),n=require("./index-BpbMKBf_.cjs"),q=require("./Chip.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),v=require("./consts-goSZX3xP.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),j=require("./Icon.cjs"),P=require("./IconButton.cjs"),C=require("./Button.cjs"),M=b.styled.div`
2
2
  display: flex;
3
3
  gap: 0.75rem;
4
4
  align-items: center;
@@ -34,7 +34,7 @@
34
34
  }
35
35
  }
36
36
 
37
- @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
37
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
38
38
  width: 100%;
39
39
  overflow-x: auto;
40
40
  white-space: nowrap;
@@ -53,7 +53,7 @@
53
53
  /* Safari and Chrome */
54
54
  }
55
55
  }
56
- `,E=v.styled.div`
56
+ `,E=b.styled.div`
57
57
  display: flex;
58
58
  gap: 1.25rem;
59
59
  width: 100%;
@@ -78,10 +78,10 @@
78
78
  }
79
79
  }
80
80
 
81
- @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
81
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
82
82
  flex-direction: column;
83
83
  }
84
- `,$=v.styled.div`
84
+ `,$=b.styled.div`
85
85
  width: 100%;
86
86
  height: fit-content;
87
87
  background: var(--white, #fff);
@@ -161,7 +161,7 @@
161
161
  }
162
162
  }
163
163
 
164
- @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
164
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
165
165
  & .card__impression {
166
166
  justify-content: space-between;
167
167
 
@@ -170,7 +170,7 @@
170
170
  }
171
171
  }
172
172
  }
173
- `,I=h.forwardRef(({tags:s=[],selectedTagCode:a=null,onSelectTag:l=()=>{}},g)=>e.jsx(M,{children:s==null?void 0:s.map((t,d)=>e.jsx(q,{label:t==null?void 0:t.name,borderRadius:"curved",color:"neutral",className:`tags__item ${a===(t==null?void 0:t.code)?"active":""}`,onClick:()=>{l(t)}},`faq-section-tag__${d+1}`))}));I.propTypes={tags:r.PropTypes.array,onSelectTag:r.PropTypes.func};const b=({title:s,description:a,questionText:l,feedbackText:g,impressions:t=!1,onSelectItem:d=()=>{},onImpressed:u=()=>{}})=>{const[p,_]=h.useState(!1),[m,x]=h.useState(!1),f=()=>{_(o=>!o),d()},i=(o,c)=>{o==null||o.stopPropagation(),x(!0),u(c)};return e.jsxs($,{className:p?"expanded":"",onClick:f,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:s}),e.jsx(j,{icon:p?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),p&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:a}),t&&e.jsx(e.Fragment,{children:m?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(j,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:g})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:l}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(P,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>i(o,!0)}),e.jsx(P,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>i(o,!1)})]})]})})]})]})},S=h.forwardRef(({items:s=[],questionText:a,feedbackText:l,showMoreText:g,impressions:t=!1,onSelectItem:d=()=>{},onImpressed:u=()=>{}},p)=>{const _=N.useDetectMobile(),[m,x]=h.useState(!1),f=()=>{x(o=>!o)},i=h.useMemo(()=>{if(_)return s==null?void 0:s.map((n,y)=>e.jsx(b,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`));const o=[],c=[];return s==null||s.forEach((n,y)=>{y%2===0?o.push(e.jsx(b,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`)):c.push(e.jsx(b,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:a,feedbackText:l,impressions:t,onSelectItem:()=>d(n),onImpressed:w=>u(n,w)},`faq-section-item__${y+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:c})]})},[s,_]);return e.jsx(E,{children:_?m?i:e.jsxs(e.Fragment,{children:[i==null?void 0:i.slice(0,4),(i==null?void 0:i.length)>4&&e.jsx(C,{text:g,btnType:"basic",color:"neutral",className:"section__show-more",onClick:f})]}):i})});b.propTypes={title:r.PropTypes.string,description:r.PropTypes.string,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};S.propTypes={items:r.PropTypes.array,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};const F=v.styled.div`
173
+ `,I=f.forwardRef(({tags:i=[],allTagText:c,selectedTagCode:l=null,onSelectTag:h=()=>{}},d)=>e.jsx(M,{children:[{name:c,code:null},...i].map((t,p)=>e.jsx(q,{label:t==null?void 0:t.name,borderRadius:"curved",color:"neutral",className:`tags__item ${l===(t==null?void 0:t.code)?"active":""}`,onClick:()=>{h(t)}},`faq-section-tag__${p+1}`))}));I.propTypes={tags:n.PropTypes.array,allTagText:n.PropTypes.string,onSelectTag:n.PropTypes.func};const w=({title:i,description:c,questionText:l,feedbackText:h,impressions:d=!1,onSelectItem:t=()=>{},onImpressed:p=()=>{}})=>{const[u,a]=f.useState(!1),[_,m]=f.useState(!1),x=()=>{a(o=>!o),t()},s=(o,g)=>{o==null||o.stopPropagation(),m(!0),p(g)};return e.jsxs($,{className:u?"expanded":"",onClick:x,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:i}),e.jsx(j,{icon:u?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),u&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:c}),d&&e.jsx(e.Fragment,{children:_?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(j,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:h})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:l}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(P,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>s(o,!0)}),e.jsx(P,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>s(o,!1)})]})]})})]})]})},S=f.forwardRef(({items:i=[],questionText:c,feedbackText:l,showMoreText:h,impressions:d=!1,onSelectItem:t=()=>{},onImpressed:p=()=>{}},u)=>{const a=N.useDetectMobile(),[_,m]=f.useState(!1),x=()=>{m(o=>!o)},s=f.useMemo(()=>{if(a)return i==null?void 0:i.map((r,y)=>e.jsx(w,{title:r==null?void 0:r.title,description:r==null?void 0:r.description,questionText:c,feedbackText:l,impressions:d,onSelectItem:()=>t(r),onImpressed:T=>p(r,T)},`faq-section-item__${y+1}`));const o=[],g=[];return i==null||i.forEach((r,y)=>{y%2===0?o.push(e.jsx(w,{title:r==null?void 0:r.title,description:r==null?void 0:r.description,questionText:c,feedbackText:l,impressions:d,onSelectItem:()=>t(r),onImpressed:T=>p(r,T)},`faq-section-item__${y+1}`)):g.push(e.jsx(w,{title:r==null?void 0:r.title,description:r==null?void 0:r.description,questionText:c,feedbackText:l,impressions:d,onSelectItem:()=>t(r),onImpressed:T=>p(r,T)},`faq-section-item__${y+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:g})]})},[i,a]);return e.jsx(E,{children:a?_?s:e.jsxs(e.Fragment,{children:[s==null?void 0:s.slice(0,4),(s==null?void 0:s.length)>4&&e.jsx(C,{text:h,btnType:"basic",color:"neutral",className:"section__show-more",onClick:x})]}):s})});w.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};S.propTypes={items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};const F=b.styled.div`
174
174
  display: flex;
175
175
  flex-direction: column;
176
176
  align-items: center;
@@ -202,7 +202,7 @@
202
202
  line-height: 1.5rem;
203
203
  }
204
204
 
205
- @media (max-width: ${T.MOBILE_SIZE_PX+"px"}) {
205
+ @media (max-width: ${v.MOBILE_SIZE_PX+"px"}) {
206
206
  & .section__title {
207
207
  font-size: 1rem;
208
208
  font-weight: 500;
@@ -216,4 +216,4 @@
216
216
  letter-spacing: 0.25px;
217
217
  }
218
218
  }
219
- `,k=h.forwardRef(({title:s,description:a,questionText:l="What do you think about this answer?",feedbackText:g="Thank you for feedback!",showMoreText:t="Show more",impressions:d=!1,tags:u=[],items:p=[],onSelectItem:_=()=>{},onImpressed:m=()=>{}},x)=>{const[f,i]=h.useState(null),o=c=>{i(c==null?void 0:c.code)};return e.jsxs(F,{ref:x,children:[e.jsxs("div",{className:"section__heading",children:[s&&e.jsx("div",{className:"section__title",children:s}),a&&e.jsx("div",{className:"section__description",children:a})]}),e.jsx(I,{tags:u,selectedTagCode:f,onSelectTag:o}),e.jsx(S,{items:f===null?p:p==null?void 0:p.filter(c=>(c==null?void 0:c.tagCode)===f),questionText:l,feedbackText:g,showMoreText:t,impressions:d,onSelectItem:_,onImpressed:m},`faq-section-items__${f}`)]})});k.propTypes={title:r.PropTypes.string,description:r.PropTypes.string,tags:r.PropTypes.array,items:r.PropTypes.array,questionText:r.PropTypes.string,feedbackText:r.PropTypes.string,showMoreText:r.PropTypes.string,impressions:r.PropTypes.bool,onSelectItem:r.PropTypes.func,onImpressed:r.PropTypes.func};module.exports=k;
219
+ `,k=f.forwardRef(({title:i,description:c,questionText:l="What do you think about this answer?",feedbackText:h="Thank you for feedback!",showMoreText:d="Show more",allTagText:t="All",impressions:p=!1,tags:u=[],items:a=[],onSelectItem:_=()=>{},onImpressed:m=()=>{}},x)=>{const[s,o]=f.useState(null),g=r=>{o(r==null?void 0:r.code)};return e.jsxs(F,{ref:x,children:[e.jsxs("div",{className:"section__heading",children:[i&&e.jsx("div",{className:"section__title",children:i}),c&&e.jsx("div",{className:"section__description",children:c})]}),e.jsx(I,{tags:u,allTagText:t,selectedTagCode:s,onSelectTag:g}),e.jsx(S,{items:s===null?a:a==null?void 0:a.filter(r=>(r==null?void 0:r.tagCode)===s),questionText:l,feedbackText:h,showMoreText:d,impressions:p,onSelectItem:_,onImpressed:m},`faq-section-items__${s}`)]})});k.propTypes={title:n.PropTypes.string,description:n.PropTypes.string,tags:n.PropTypes.array,items:n.PropTypes.array,questionText:n.PropTypes.string,feedbackText:n.PropTypes.string,showMoreText:n.PropTypes.string,allTagText:n.PropTypes.string,impressions:n.PropTypes.bool,onSelectItem:n.PropTypes.func,onImpressed:n.PropTypes.func};module.exports=k;
@@ -1,14 +1,14 @@
1
- import { jsx as r, jsxs as l, Fragment as x } from "react/jsx-runtime";
2
- import { forwardRef as S, useState as k, useMemo as $ } from "react";
3
- import { P as e } from "./index-CblbdqjE.js";
1
+ import { jsx as r, jsxs as l, Fragment as y } from "react/jsx-runtime";
2
+ import { forwardRef as S, useState as T, useMemo as $ } from "react";
3
+ import { P as n } from "./index-CblbdqjE.js";
4
4
  import z from "./Chip.js";
5
- import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
5
+ import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
6
  import { M as I } from "./consts-BuFChS64.js";
7
7
  import { u as E } from "./useDetectMobile-Bkvj0VMa.js";
8
8
  import N from "./Icon.js";
9
9
  import C from "./IconButton.js";
10
10
  import F from "./Button.js";
11
- const j = T.div`
11
+ const j = k.div`
12
12
  display: flex;
13
13
  gap: 0.75rem;
14
14
  align-items: center;
@@ -63,7 +63,7 @@ const j = T.div`
63
63
  /* Safari and Chrome */
64
64
  }
65
65
  }
66
- `, P = T.div`
66
+ `, P = k.div`
67
67
  display: flex;
68
68
  gap: 1.25rem;
69
69
  width: 100%;
@@ -91,7 +91,7 @@ const j = T.div`
91
91
  @media (max-width: ${I + "px"}) {
92
92
  flex-direction: column;
93
93
  }
94
- `, R = T.div`
94
+ `, R = k.div`
95
95
  width: 100%;
96
96
  height: fit-content;
97
97
  background: var(--white, #fff);
@@ -181,61 +181,62 @@ const j = T.div`
181
181
  }
182
182
  }
183
183
  `, q = S(
184
- ({ tags: o = [], selectedTagCode: c = null, onSelectTag: d = () => {
185
- } }, u) => /* @__PURE__ */ r(j, { children: o == null ? void 0 : o.map((t, f) => /* @__PURE__ */ r(
184
+ ({ tags: s = [], allTagText: a, selectedTagCode: d = null, onSelectTag: h = () => {
185
+ } }, p) => /* @__PURE__ */ r(j, { children: [{ name: a, code: null }, ...s].map((i, f) => /* @__PURE__ */ r(
186
186
  z,
187
187
  {
188
- label: t == null ? void 0 : t.name,
188
+ label: i == null ? void 0 : i.name,
189
189
  borderRadius: "curved",
190
190
  color: "neutral",
191
- className: `tags__item ${c === (t == null ? void 0 : t.code) ? "active" : ""}`,
191
+ className: `tags__item ${d === (i == null ? void 0 : i.code) ? "active" : ""}`,
192
192
  onClick: () => {
193
- d(t);
193
+ h(i);
194
194
  }
195
195
  },
196
196
  `faq-section-tag__${f + 1}`
197
197
  )) })
198
198
  );
199
199
  q.propTypes = {
200
- tags: e.array,
201
- onSelectTag: e.func
200
+ tags: n.array,
201
+ allTagText: n.string,
202
+ onSelectTag: n.func
202
203
  };
203
- const y = ({
204
- title: o,
205
- description: c,
204
+ const b = ({
205
+ title: s,
206
+ description: a,
206
207
  questionText: d,
207
- feedbackText: u,
208
- impressions: t = !1,
209
- onSelectItem: f = () => {
208
+ feedbackText: h,
209
+ impressions: p = !1,
210
+ onSelectItem: i = () => {
210
211
  },
211
- onImpressed: m = () => {
212
+ onImpressed: f = () => {
212
213
  }
213
214
  }) => {
214
- const [p, g] = k(!1), [_, w] = k(!1), h = () => {
215
- g((i) => !i), f();
216
- }, s = (i, a) => {
217
- i == null || i.stopPropagation(), w(!0), m(a);
215
+ const [m, c] = T(!1), [g, u] = T(!1), _ = () => {
216
+ c((t) => !t), i();
217
+ }, o = (t, w) => {
218
+ t == null || t.stopPropagation(), u(!0), f(w);
218
219
  };
219
220
  return /* @__PURE__ */ l(
220
221
  R,
221
222
  {
222
- className: p ? "expanded" : "",
223
- onClick: h,
223
+ className: m ? "expanded" : "",
224
+ onClick: _,
224
225
  children: [
225
226
  /* @__PURE__ */ l("div", { className: "card__heading", children: [
226
- /* @__PURE__ */ r("div", { className: "card__title", children: o }),
227
+ /* @__PURE__ */ r("div", { className: "card__title", children: s }),
227
228
  /* @__PURE__ */ r(
228
229
  N,
229
230
  {
230
- icon: p ? " mng-lnc-subtract" : " mng-lnc-add",
231
+ icon: m ? " mng-lnc-subtract" : " mng-lnc-add",
231
232
  sizeInUnits: "1.25rem",
232
233
  className: "card__icon"
233
234
  }
234
235
  )
235
236
  ] }),
236
- p && /* @__PURE__ */ l(x, { children: [
237
- /* @__PURE__ */ r("div", { className: "card__description", children: c }),
238
- t && /* @__PURE__ */ r(x, { children: _ ? /* @__PURE__ */ l("div", { className: "card__impression feedback", children: [
237
+ m && /* @__PURE__ */ l(y, { children: [
238
+ /* @__PURE__ */ r("div", { className: "card__description", children: a }),
239
+ p && /* @__PURE__ */ r(y, { children: g ? /* @__PURE__ */ l("div", { className: "card__impression feedback", children: [
239
240
  /* @__PURE__ */ r(
240
241
  N,
241
242
  {
@@ -244,7 +245,7 @@ const y = ({
244
245
  color: "success"
245
246
  }
246
247
  ),
247
- /* @__PURE__ */ r("div", { className: "imppression__question", children: u })
248
+ /* @__PURE__ */ r("div", { className: "imppression__question", children: h })
248
249
  ] }) : /* @__PURE__ */ l("div", { className: "card__impression", children: [
249
250
  /* @__PURE__ */ r("div", { className: "imppression__question", children: d }),
250
251
  /* @__PURE__ */ l("div", { className: "impression__actions", children: [
@@ -254,7 +255,7 @@ const y = ({
254
255
  icon: " mng-lnc-thumbs-up",
255
256
  borderRadius: "curved",
256
257
  btnType: "outline",
257
- onClick: (i) => s(i, !0)
258
+ onClick: (t) => o(t, !0)
258
259
  }
259
260
  ),
260
261
  /* @__PURE__ */ r(
@@ -263,7 +264,7 @@ const y = ({
263
264
  icon: " mng-lnc-thumbs-down",
264
265
  borderRadius: "curved",
265
266
  btnType: "outline",
266
- onClick: (i) => s(i, !1)
267
+ onClick: (t) => o(t, !1)
267
268
  }
268
269
  )
269
270
  ] })
@@ -274,104 +275,104 @@ const y = ({
274
275
  );
275
276
  }, M = S(
276
277
  ({
277
- items: o = [],
278
- questionText: c,
278
+ items: s = [],
279
+ questionText: a,
279
280
  feedbackText: d,
280
- showMoreText: u,
281
- impressions: t = !1,
282
- onSelectItem: f = () => {
281
+ showMoreText: h,
282
+ impressions: p = !1,
283
+ onSelectItem: i = () => {
283
284
  },
284
- onImpressed: m = () => {
285
+ onImpressed: f = () => {
285
286
  }
286
- }, p) => {
287
- const g = E(), [_, w] = k(!1), h = () => {
288
- w((i) => !i);
289
- }, s = $(() => {
290
- if (g)
291
- return o == null ? void 0 : o.map((n, v) => /* @__PURE__ */ r(
292
- y,
287
+ }, m) => {
288
+ const c = E(), [g, u] = T(!1), _ = () => {
289
+ u((t) => !t);
290
+ }, o = $(() => {
291
+ if (c)
292
+ return s == null ? void 0 : s.map((e, v) => /* @__PURE__ */ r(
293
+ b,
293
294
  {
294
- title: n == null ? void 0 : n.title,
295
- description: n == null ? void 0 : n.description,
296
- questionText: c,
295
+ title: e == null ? void 0 : e.title,
296
+ description: e == null ? void 0 : e.description,
297
+ questionText: a,
297
298
  feedbackText: d,
298
- impressions: t,
299
- onSelectItem: () => f(n),
300
- onImpressed: (b) => m(n, b)
299
+ impressions: p,
300
+ onSelectItem: () => i(e),
301
+ onImpressed: (x) => f(e, x)
301
302
  },
302
303
  `faq-section-item__${v + 1}`
303
304
  ));
304
- const i = [], a = [];
305
- return o == null || o.forEach((n, v) => {
306
- v % 2 === 0 ? i.push(
305
+ const t = [], w = [];
306
+ return s == null || s.forEach((e, v) => {
307
+ v % 2 === 0 ? t.push(
307
308
  /* @__PURE__ */ r(
308
- y,
309
+ b,
309
310
  {
310
- title: n == null ? void 0 : n.title,
311
- description: n == null ? void 0 : n.description,
312
- questionText: c,
311
+ title: e == null ? void 0 : e.title,
312
+ description: e == null ? void 0 : e.description,
313
+ questionText: a,
313
314
  feedbackText: d,
314
- impressions: t,
315
- onSelectItem: () => f(n),
316
- onImpressed: (b) => m(n, b)
315
+ impressions: p,
316
+ onSelectItem: () => i(e),
317
+ onImpressed: (x) => f(e, x)
317
318
  },
318
319
  `faq-section-item__${v + 1}`
319
320
  )
320
- ) : a.push(
321
+ ) : w.push(
321
322
  /* @__PURE__ */ r(
322
- y,
323
+ b,
323
324
  {
324
- title: n == null ? void 0 : n.title,
325
- description: n == null ? void 0 : n.description,
326
- questionText: c,
325
+ title: e == null ? void 0 : e.title,
326
+ description: e == null ? void 0 : e.description,
327
+ questionText: a,
327
328
  feedbackText: d,
328
- impressions: t,
329
- onSelectItem: () => f(n),
330
- onImpressed: (b) => m(n, b)
329
+ impressions: p,
330
+ onSelectItem: () => i(e),
331
+ onImpressed: (x) => f(e, x)
331
332
  },
332
333
  `faq-section-item__${v + 1}`
333
334
  )
334
335
  );
335
- }), /* @__PURE__ */ l(x, { children: [
336
- /* @__PURE__ */ r("div", { className: "section__column", children: i }),
337
- /* @__PURE__ */ r("div", { className: "section__column", children: a })
336
+ }), /* @__PURE__ */ l(y, { children: [
337
+ /* @__PURE__ */ r("div", { className: "section__column", children: t }),
338
+ /* @__PURE__ */ r("div", { className: "section__column", children: w })
338
339
  ] });
339
- }, [o, g]);
340
- return /* @__PURE__ */ r(P, { children: g ? _ ? s : /* @__PURE__ */ l(x, { children: [
341
- s == null ? void 0 : s.slice(0, 4),
342
- (s == null ? void 0 : s.length) > 4 && /* @__PURE__ */ r(
340
+ }, [s, c]);
341
+ return /* @__PURE__ */ r(P, { children: c ? g ? o : /* @__PURE__ */ l(y, { children: [
342
+ o == null ? void 0 : o.slice(0, 4),
343
+ (o == null ? void 0 : o.length) > 4 && /* @__PURE__ */ r(
343
344
  F,
344
345
  {
345
- text: u,
346
+ text: h,
346
347
  btnType: "basic",
347
348
  color: "neutral",
348
349
  className: "section__show-more",
349
- onClick: h
350
+ onClick: _
350
351
  }
351
352
  )
352
- ] }) : s });
353
+ ] }) : o });
353
354
  }
354
355
  );
355
- y.propTypes = {
356
- title: e.string,
357
- description: e.string,
358
- questionText: e.string,
359
- feedbackText: e.string,
360
- showMoreText: e.string,
361
- impressions: e.bool,
362
- onSelectItem: e.func,
363
- onImpressed: e.func
356
+ b.propTypes = {
357
+ title: n.string,
358
+ description: n.string,
359
+ questionText: n.string,
360
+ feedbackText: n.string,
361
+ showMoreText: n.string,
362
+ impressions: n.bool,
363
+ onSelectItem: n.func,
364
+ onImpressed: n.func
364
365
  };
365
366
  M.propTypes = {
366
- items: e.array,
367
- questionText: e.string,
368
- feedbackText: e.string,
369
- showMoreText: e.string,
370
- impressions: e.bool,
371
- onSelectItem: e.func,
372
- onImpressed: e.func
367
+ items: n.array,
368
+ questionText: n.string,
369
+ feedbackText: n.string,
370
+ showMoreText: n.string,
371
+ impressions: n.bool,
372
+ onSelectItem: n.func,
373
+ onImpressed: n.func
373
374
  };
374
- const B = T.div`
375
+ const B = k.div`
375
376
  display: flex;
376
377
  flex-direction: column;
377
378
  align-items: center;
@@ -419,62 +420,65 @@ const B = T.div`
419
420
  }
420
421
  `, U = S(
421
422
  ({
422
- title: o,
423
- description: c,
423
+ title: s,
424
+ description: a,
424
425
  questionText: d = "What do you think about this answer?",
425
- feedbackText: u = "Thank you for feedback!",
426
- showMoreText: t = "Show more",
426
+ feedbackText: h = "Thank you for feedback!",
427
+ showMoreText: p = "Show more",
428
+ allTagText: i = "All",
427
429
  impressions: f = !1,
428
430
  tags: m = [],
429
- items: p = [],
431
+ items: c = [],
430
432
  onSelectItem: g = () => {
431
433
  },
432
- onImpressed: _ = () => {
434
+ onImpressed: u = () => {
433
435
  }
434
- }, w) => {
435
- const [h, s] = k(null);
436
- return /* @__PURE__ */ l(B, { ref: w, children: [
436
+ }, _) => {
437
+ const [o, t] = T(null);
438
+ return /* @__PURE__ */ l(B, { ref: _, children: [
437
439
  /* @__PURE__ */ l("div", { className: "section__heading", children: [
438
- o && /* @__PURE__ */ r("div", { className: "section__title", children: o }),
439
- c && /* @__PURE__ */ r("div", { className: "section__description", children: c })
440
+ s && /* @__PURE__ */ r("div", { className: "section__title", children: s }),
441
+ a && /* @__PURE__ */ r("div", { className: "section__description", children: a })
440
442
  ] }),
441
443
  /* @__PURE__ */ r(
442
444
  q,
443
445
  {
444
446
  tags: m,
445
- selectedTagCode: h,
446
- onSelectTag: (a) => {
447
- s(a == null ? void 0 : a.code);
447
+ allTagText: i,
448
+ selectedTagCode: o,
449
+ onSelectTag: (e) => {
450
+ t(e == null ? void 0 : e.code);
448
451
  }
449
452
  }
450
453
  ),
451
454
  /* @__PURE__ */ r(
452
455
  M,
453
456
  {
454
- items: h === null ? p : p == null ? void 0 : p.filter((a) => (a == null ? void 0 : a.tagCode) === h),
457
+ items: o === null ? c : c == null ? void 0 : c.filter((e) => (e == null ? void 0 : e.tagCode) === o),
455
458
  questionText: d,
456
- feedbackText: u,
457
- showMoreText: t,
459
+ feedbackText: h,
460
+ showMoreText: p,
458
461
  impressions: f,
459
462
  onSelectItem: g,
460
- onImpressed: _
463
+ onImpressed: u
461
464
  },
462
- `faq-section-items__${h}`
465
+ `faq-section-items__${o}`
463
466
  )
464
467
  ] });
465
468
  }
466
469
  );
467
470
  U.propTypes = {
468
- title: e.string,
469
- description: e.string,
470
- tags: e.array,
471
- items: e.array,
472
- questionText: e.string,
473
- feedbackText: e.string,
474
- showMoreText: e.string,
475
- impressions: e.bool,
476
- onSelectItem: e.func,
477
- onImpressed: e.func
471
+ title: n.string,
472
+ description: n.string,
473
+ tags: n.array,
474
+ items: n.array,
475
+ questionText: n.string,
476
+ feedbackText: n.string,
477
+ showMoreText: n.string,
478
+ allTagText: n.string,
479
+ impressions: n.bool,
480
+ onSelectItem: n.func,
481
+ onImpressed: n.func
478
482
  };
479
483
  export {
480
484
  U as default
@@ -0,0 +1,248 @@
1
+ "use strict";const e=require("react/jsx-runtime"),d=require("react"),r=require("./index-BpbMKBf_.cjs"),T=require("./Chip.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),m=require("./consts-goSZX3xP.cjs"),b=require("./useDetectMobile-zkbzoOGV.cjs"),_=require("./Button.cjs"),j=g.styled.div`
2
+ display: flex;
3
+
4
+ border: 1px solid var(--gray-200, #e4e9f0);
5
+ border-radius: 999px;
6
+
7
+ & .options__item {
8
+ display: flex;
9
+ padding: 0.5rem 2rem;
10
+ align-items: center;
11
+ gap: 6px;
12
+
13
+ color: var(--neutral-600, #0f2a46);
14
+ background: var(--gray-100, #f3f6fb);
15
+ border: 1px solid var(--gray-200, #e4e9f0);
16
+ font-size: 1rem;
17
+ font-style: normal;
18
+ font-weight: 500;
19
+ line-height: 1.5rem;
20
+
21
+ &:first-of-type {
22
+ padding-right: 3rem;
23
+ }
24
+
25
+ &:last-of-type {
26
+ padding-left: 3rem;
27
+ }
28
+
29
+ &.active {
30
+ color: var(--white, #fff);
31
+ background: var(--neutral-600, #0f2a46);
32
+ font-weight: 500;
33
+
34
+ &:hover {
35
+ color: var(--white, #fff);
36
+ background: var(--neutral-600, #0f2a46);
37
+ }
38
+
39
+ &:first-of-type {
40
+ margin-right: -1.5rem;
41
+ padding-right: 2rem;
42
+ z-index: 1;
43
+ }
44
+
45
+ &:last-of-type {
46
+ margin-left: -1.5rem;
47
+ padding-left: 2rem;
48
+ z-index: 1;
49
+ }
50
+ }
51
+
52
+ &:hover {
53
+ background: var(--gray-200, #e4e9f0);
54
+ }
55
+
56
+ &:focus {
57
+ outline: none;
58
+ }
59
+ }
60
+
61
+ @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
62
+ width: 100%;
63
+
64
+ & .options__item {
65
+ width: 100%;
66
+ }
67
+ }
68
+ `,P=g.styled.div`
69
+ display: flex;
70
+ gap: 1.25rem;
71
+ flex-wrap: wrap;
72
+ justify-content: center;
73
+ align-items: center;
74
+ width: 100%;
75
+
76
+ & .section__show-more {
77
+ color: var(--neutral-600, #0f2a46);
78
+ font-size: 0.875rem;
79
+ font-style: normal;
80
+ font-weight: 500;
81
+ line-height: 1.25rem;
82
+ letter-spacing: -0.0056rem;
83
+
84
+ &:focus {
85
+ outline: none;
86
+ }
87
+ }
88
+
89
+ @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
90
+ flex-direction: column;
91
+
92
+ & .learn-more {
93
+ display: none;
94
+ }
95
+ }
96
+ `,S=g.styled.div`
97
+ display: flex;
98
+ padding: 2rem 1.25rem 1.25rem 1.25rem;
99
+ flex-direction: column;
100
+ align-items: center;
101
+ gap: 1.5rem;
102
+ border-radius: 0.75rem;
103
+ border: 1px solid var(--gray-200, #e4e9f0);
104
+ background: var(--white, #fff);
105
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
106
+ width: 100%;
107
+ max-width: 17.5rem;
108
+
109
+ &:hover {
110
+ cursor: pointer;
111
+ }
112
+
113
+ & .card__content {
114
+ display: flex;
115
+ flex-direction: column;
116
+ align-items: center;
117
+ gap: 1.25rem;
118
+
119
+ & .card__image {
120
+ max-width: 3.5rem;
121
+ max-height: 3.5rem;
122
+ width: 100%;
123
+ height: 100%;
124
+ aspect-ratio: 1 / 1;
125
+ }
126
+
127
+ & .card__text {
128
+ display: flex;
129
+ flex-direction: column;
130
+ justify-content: center;
131
+ align-items: center;
132
+ gap: 1rem;
133
+
134
+ & .card__title {
135
+ color: var(--gray-900, #0c1520);
136
+ text-align: center;
137
+ font-size: 1.125rem;
138
+ font-style: normal;
139
+ font-weight: 500;
140
+ line-height: 1.5rem;
141
+ }
142
+
143
+ & .card__divider {
144
+ height: 1px;
145
+ width: 100%;
146
+ background: var(--gray-200, #e4e9f0);
147
+ }
148
+
149
+ & .card__description {
150
+ color: var(--gray-600, #5a6573);
151
+ text-align: center;
152
+ font-size: 0.875rem;
153
+ font-style: normal;
154
+ font-weight: 400;
155
+ line-height: 1.25rem;
156
+ letter-spacing: 0.0156rem;
157
+ }
158
+ }
159
+ }
160
+
161
+ @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
162
+ max-width: 100%;
163
+ flex-direction: row;
164
+ padding: 1rem;
165
+
166
+ & .card__content {
167
+ flex-direction: row;
168
+ align-items: flex-start;
169
+
170
+ & .card__image {
171
+ max-width: 2.5rem;
172
+ max-height: 2.5rem;
173
+ }
174
+
175
+ & .card__text {
176
+ align-items: flex-start;
177
+ gap: 0.625rem;
178
+
179
+ & .card__divider {
180
+ display: none;
181
+ }
182
+
183
+ & .card__title {
184
+ text-align: left;
185
+ font-size: 1rem;
186
+ }
187
+
188
+ & .card__description {
189
+ text-align: left;
190
+ }
191
+ }
192
+ }
193
+ }
194
+ `,y=d.forwardRef(({options:t=[],selectedOptionCode:a=null,onSelectOption:s=()=>{}},l)=>e.jsx(j,{children:t==null?void 0:t.map((c,o)=>e.jsx(T,{label:c,borderRadius:"curved",color:"neutral",className:`options__item ${a===o?"active":""}`,onClick:()=>{s(o)}},`toggle-section-tag__${o+1}`))}));y.propTypes={options:r.PropTypes.array,selectedOptionCode:r.PropTypes.any,onSelectOption:r.PropTypes.func};const u=({title:t,description:a,image:s,learnMoreText:l,onSelectItem:c=()=>{}})=>e.jsxs(S,{onClick:c,children:[e.jsxs("div",{className:"card__content",children:[e.jsx("img",{src:s,alt:`Card ${t}`,className:"card__image"}),e.jsxs("div",{className:"card__text",children:[e.jsx("div",{className:"card__title",children:t}),e.jsx("div",{className:"card__divider"}),e.jsx("div",{className:"card__description",children:a})]})]}),e.jsx(_,{text:l,btnType:"basic",color:"neutral",className:"section__show-more learn-more"})]}),w=d.forwardRef(({items:t=[],showMoreText:a,learnMoreText:s,onSelectItem:l=()=>{}},c)=>{const o=b.useDetectMobile(),[f,h]=d.useState(!1),p=()=>{h(n=>!n)},i=d.useMemo(()=>t==null?void 0:t.map((n,x)=>e.jsx(u,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,image:n==null?void 0:n.image,learnMoreText:s,onSelectItem:()=>l(n)},`toggle-section-item__${x+1}`)),[t]);return e.jsx(P,{children:o?f?i:e.jsxs(e.Fragment,{children:[i==null?void 0:i.slice(0,4),(i==null?void 0:i.length)>4&&e.jsx(_,{text:a,btnType:"basic",color:"neutral",className:"section__show-more",onClick:p})]}):i})});u.propTypes={title:r.PropTypes.string,description:r.PropTypes.string,image:r.PropTypes.string,learnMoreText:r.PropTypes.string,onSelectItem:r.PropTypes.func};w.propTypes={items:r.PropTypes.array,showMoreText:r.PropTypes.string,learnMoreText:r.PropTypes.string,onSelectItem:r.PropTypes.func};const M=g.styled.div`
195
+ display: flex;
196
+ flex-direction: column;
197
+ align-items: center;
198
+ gap: 2rem;
199
+
200
+ & .section__heading {
201
+ display: flex;
202
+ flex-direction: column;
203
+ gap: 0.5rem;
204
+ text-align: center;
205
+ width: 100%;
206
+ }
207
+
208
+ & .section__title {
209
+ color: var(--navy-900, #0c1520);
210
+ text-align: center;
211
+ font-size: 1.5rem;
212
+ font-style: normal;
213
+ font-weight: 600;
214
+ line-height: 2rem;
215
+ }
216
+
217
+ & .section__description {
218
+ color: var(--navy-500, #7a8594);
219
+ text-align: center;
220
+ font-size: 1rem;
221
+ font-style: normal;
222
+ font-weight: 500;
223
+ line-height: 1.5rem;
224
+ }
225
+
226
+ @media (max-width: ${m.MOBILE_SIZE_PX+"px"}) {
227
+ gap: 1.5rem;
228
+
229
+ & .section__heading {
230
+ gap: 0.5rem;
231
+ }
232
+
233
+ & .section__title {
234
+ font-size: 1.375rem;
235
+ font-weight: 600;
236
+ line-height: 1.75rem;
237
+ text-align: left;
238
+ }
239
+
240
+ & .section__description {
241
+ font-size: 0.875rem;
242
+ font-weight: 400;
243
+ line-height: 1.25rem;
244
+ letter-spacing: 0.25px;
245
+ text-align: left;
246
+ }
247
+ }
248
+ `,v=d.forwardRef(({title:t,description:a,showMoreText:s="Show more",learnMoreText:l="Learn more",options:c=[],items:o=[],onSelectItem:f=()=>{}},h)=>{const[p,i]=d.useState(0),n=x=>{i(x)};return e.jsxs(M,{ref:h,children:[e.jsxs("div",{className:"section__heading",children:[t&&e.jsx("div",{className:"section__title",children:t}),a&&e.jsx("div",{className:"section__description",children:a})]}),e.jsx(y,{options:c,selectedOptionCode:p,onSelectOption:n}),e.jsx(w,{items:o==null?void 0:o[p],showMoreText:s,learnMoreText:l,onSelectItem:f},`toggle-section-items__${p}`)]})});v.propTypes={title:r.PropTypes.string,description:r.PropTypes.string,options:r.PropTypes.array,items:r.PropTypes.array,showMoreText:r.PropTypes.string,learnMoreText:r.PropTypes.string,onSelectItem:r.PropTypes.func};module.exports=v;
@@ -0,0 +1,397 @@
1
+ import { jsx as r, jsxs as d, Fragment as S } from "react/jsx-runtime";
2
+ import { forwardRef as x, useState as u, useMemo as T } from "react";
3
+ import { P as e } from "./index-CblbdqjE.js";
4
+ import M from "./Chip.js";
5
+ import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
6
+ import { M as f } from "./consts-BuFChS64.js";
7
+ import { u as C } from "./useDetectMobile-Bkvj0VMa.js";
8
+ import y from "./Button.js";
9
+ const N = m.div`
10
+ display: flex;
11
+
12
+ border: 1px solid var(--gray-200, #e4e9f0);
13
+ border-radius: 999px;
14
+
15
+ & .options__item {
16
+ display: flex;
17
+ padding: 0.5rem 2rem;
18
+ align-items: center;
19
+ gap: 6px;
20
+
21
+ color: var(--neutral-600, #0f2a46);
22
+ background: var(--gray-100, #f3f6fb);
23
+ border: 1px solid var(--gray-200, #e4e9f0);
24
+ font-size: 1rem;
25
+ font-style: normal;
26
+ font-weight: 500;
27
+ line-height: 1.5rem;
28
+
29
+ &:first-of-type {
30
+ padding-right: 3rem;
31
+ }
32
+
33
+ &:last-of-type {
34
+ padding-left: 3rem;
35
+ }
36
+
37
+ &.active {
38
+ color: var(--white, #fff);
39
+ background: var(--neutral-600, #0f2a46);
40
+ font-weight: 500;
41
+
42
+ &:hover {
43
+ color: var(--white, #fff);
44
+ background: var(--neutral-600, #0f2a46);
45
+ }
46
+
47
+ &:first-of-type {
48
+ margin-right: -1.5rem;
49
+ padding-right: 2rem;
50
+ z-index: 1;
51
+ }
52
+
53
+ &:last-of-type {
54
+ margin-left: -1.5rem;
55
+ padding-left: 2rem;
56
+ z-index: 1;
57
+ }
58
+ }
59
+
60
+ &:hover {
61
+ background: var(--gray-200, #e4e9f0);
62
+ }
63
+
64
+ &:focus {
65
+ outline: none;
66
+ }
67
+ }
68
+
69
+ @media (max-width: ${f + "px"}) {
70
+ width: 100%;
71
+
72
+ & .options__item {
73
+ width: 100%;
74
+ }
75
+ }
76
+ `, O = m.div`
77
+ display: flex;
78
+ gap: 1.25rem;
79
+ flex-wrap: wrap;
80
+ justify-content: center;
81
+ align-items: center;
82
+ width: 100%;
83
+
84
+ & .section__show-more {
85
+ color: var(--neutral-600, #0f2a46);
86
+ font-size: 0.875rem;
87
+ font-style: normal;
88
+ font-weight: 500;
89
+ line-height: 1.25rem;
90
+ letter-spacing: -0.0056rem;
91
+
92
+ &:focus {
93
+ outline: none;
94
+ }
95
+ }
96
+
97
+ @media (max-width: ${f + "px"}) {
98
+ flex-direction: column;
99
+
100
+ & .learn-more {
101
+ display: none;
102
+ }
103
+ }
104
+ `, k = m.div`
105
+ display: flex;
106
+ padding: 2rem 1.25rem 1.25rem 1.25rem;
107
+ flex-direction: column;
108
+ align-items: center;
109
+ gap: 1.5rem;
110
+ border-radius: 0.75rem;
111
+ border: 1px solid var(--gray-200, #e4e9f0);
112
+ background: var(--white, #fff);
113
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
114
+ width: 100%;
115
+ max-width: 17.5rem;
116
+
117
+ &:hover {
118
+ cursor: pointer;
119
+ }
120
+
121
+ & .card__content {
122
+ display: flex;
123
+ flex-direction: column;
124
+ align-items: center;
125
+ gap: 1.25rem;
126
+
127
+ & .card__image {
128
+ max-width: 3.5rem;
129
+ max-height: 3.5rem;
130
+ width: 100%;
131
+ height: 100%;
132
+ aspect-ratio: 1 / 1;
133
+ }
134
+
135
+ & .card__text {
136
+ display: flex;
137
+ flex-direction: column;
138
+ justify-content: center;
139
+ align-items: center;
140
+ gap: 1rem;
141
+
142
+ & .card__title {
143
+ color: var(--gray-900, #0c1520);
144
+ text-align: center;
145
+ font-size: 1.125rem;
146
+ font-style: normal;
147
+ font-weight: 500;
148
+ line-height: 1.5rem;
149
+ }
150
+
151
+ & .card__divider {
152
+ height: 1px;
153
+ width: 100%;
154
+ background: var(--gray-200, #e4e9f0);
155
+ }
156
+
157
+ & .card__description {
158
+ color: var(--gray-600, #5a6573);
159
+ text-align: center;
160
+ font-size: 0.875rem;
161
+ font-style: normal;
162
+ font-weight: 400;
163
+ line-height: 1.25rem;
164
+ letter-spacing: 0.0156rem;
165
+ }
166
+ }
167
+ }
168
+
169
+ @media (max-width: ${f + "px"}) {
170
+ max-width: 100%;
171
+ flex-direction: row;
172
+ padding: 1rem;
173
+
174
+ & .card__content {
175
+ flex-direction: row;
176
+ align-items: flex-start;
177
+
178
+ & .card__image {
179
+ max-width: 2.5rem;
180
+ max-height: 2.5rem;
181
+ }
182
+
183
+ & .card__text {
184
+ align-items: flex-start;
185
+ gap: 0.625rem;
186
+
187
+ & .card__divider {
188
+ display: none;
189
+ }
190
+
191
+ & .card__title {
192
+ text-align: left;
193
+ font-size: 1rem;
194
+ }
195
+
196
+ & .card__description {
197
+ text-align: left;
198
+ }
199
+ }
200
+ }
201
+ }
202
+ `, w = x(
203
+ ({ options: t = [], selectedOptionCode: a = null, onSelectOption: l = () => {
204
+ } }, c) => /* @__PURE__ */ r(N, { children: t == null ? void 0 : t.map((s, o) => /* @__PURE__ */ r(
205
+ M,
206
+ {
207
+ label: s,
208
+ borderRadius: "curved",
209
+ color: "neutral",
210
+ className: `options__item ${a === o ? "active" : ""}`,
211
+ onClick: () => {
212
+ l(o);
213
+ }
214
+ },
215
+ `toggle-section-tag__${o + 1}`
216
+ )) })
217
+ );
218
+ w.propTypes = {
219
+ options: e.array,
220
+ selectedOptionCode: e.any,
221
+ onSelectOption: e.func
222
+ };
223
+ const v = ({
224
+ title: t,
225
+ description: a,
226
+ image: l,
227
+ learnMoreText: c,
228
+ onSelectItem: s = () => {
229
+ }
230
+ }) => /* @__PURE__ */ d(k, { onClick: s, children: [
231
+ /* @__PURE__ */ d("div", { className: "card__content", children: [
232
+ /* @__PURE__ */ r("img", { src: l, alt: `Card ${t}`, className: "card__image" }),
233
+ /* @__PURE__ */ d("div", { className: "card__text", children: [
234
+ /* @__PURE__ */ r("div", { className: "card__title", children: t }),
235
+ /* @__PURE__ */ r("div", { className: "card__divider" }),
236
+ /* @__PURE__ */ r("div", { className: "card__description", children: a })
237
+ ] })
238
+ ] }),
239
+ /* @__PURE__ */ r(
240
+ y,
241
+ {
242
+ text: c,
243
+ btnType: "basic",
244
+ color: "neutral",
245
+ className: "section__show-more learn-more"
246
+ }
247
+ )
248
+ ] }), b = x(
249
+ ({ items: t = [], showMoreText: a, learnMoreText: l, onSelectItem: c = () => {
250
+ } }, s) => {
251
+ const o = C(), [p, h] = u(!1), g = () => {
252
+ h((n) => !n);
253
+ }, i = T(() => t == null ? void 0 : t.map((n, _) => /* @__PURE__ */ r(
254
+ v,
255
+ {
256
+ title: n == null ? void 0 : n.title,
257
+ description: n == null ? void 0 : n.description,
258
+ image: n == null ? void 0 : n.image,
259
+ learnMoreText: l,
260
+ onSelectItem: () => c(n)
261
+ },
262
+ `toggle-section-item__${_ + 1}`
263
+ )), [t]);
264
+ return /* @__PURE__ */ r(O, { children: o ? p ? i : /* @__PURE__ */ d(S, { children: [
265
+ i == null ? void 0 : i.slice(0, 4),
266
+ (i == null ? void 0 : i.length) > 4 && /* @__PURE__ */ r(
267
+ y,
268
+ {
269
+ text: a,
270
+ btnType: "basic",
271
+ color: "neutral",
272
+ className: "section__show-more",
273
+ onClick: g
274
+ }
275
+ )
276
+ ] }) : i });
277
+ }
278
+ );
279
+ v.propTypes = {
280
+ title: e.string,
281
+ description: e.string,
282
+ image: e.string,
283
+ learnMoreText: e.string,
284
+ onSelectItem: e.func
285
+ };
286
+ b.propTypes = {
287
+ items: e.array,
288
+ showMoreText: e.string,
289
+ learnMoreText: e.string,
290
+ onSelectItem: e.func
291
+ };
292
+ const $ = m.div`
293
+ display: flex;
294
+ flex-direction: column;
295
+ align-items: center;
296
+ gap: 2rem;
297
+
298
+ & .section__heading {
299
+ display: flex;
300
+ flex-direction: column;
301
+ gap: 0.5rem;
302
+ text-align: center;
303
+ width: 100%;
304
+ }
305
+
306
+ & .section__title {
307
+ color: var(--navy-900, #0c1520);
308
+ text-align: center;
309
+ font-size: 1.5rem;
310
+ font-style: normal;
311
+ font-weight: 600;
312
+ line-height: 2rem;
313
+ }
314
+
315
+ & .section__description {
316
+ color: var(--navy-500, #7a8594);
317
+ text-align: center;
318
+ font-size: 1rem;
319
+ font-style: normal;
320
+ font-weight: 500;
321
+ line-height: 1.5rem;
322
+ }
323
+
324
+ @media (max-width: ${f + "px"}) {
325
+ gap: 1.5rem;
326
+
327
+ & .section__heading {
328
+ gap: 0.5rem;
329
+ }
330
+
331
+ & .section__title {
332
+ font-size: 1.375rem;
333
+ font-weight: 600;
334
+ line-height: 1.75rem;
335
+ text-align: left;
336
+ }
337
+
338
+ & .section__description {
339
+ font-size: 0.875rem;
340
+ font-weight: 400;
341
+ line-height: 1.25rem;
342
+ letter-spacing: 0.25px;
343
+ text-align: left;
344
+ }
345
+ }
346
+ `, z = x(
347
+ ({
348
+ title: t,
349
+ description: a,
350
+ showMoreText: l = "Show more",
351
+ learnMoreText: c = "Learn more",
352
+ options: s = [],
353
+ items: o = [],
354
+ onSelectItem: p = () => {
355
+ }
356
+ }, h) => {
357
+ const [g, i] = u(0);
358
+ return /* @__PURE__ */ d($, { ref: h, children: [
359
+ /* @__PURE__ */ d("div", { className: "section__heading", children: [
360
+ t && /* @__PURE__ */ r("div", { className: "section__title", children: t }),
361
+ a && /* @__PURE__ */ r("div", { className: "section__description", children: a })
362
+ ] }),
363
+ /* @__PURE__ */ r(
364
+ w,
365
+ {
366
+ options: s,
367
+ selectedOptionCode: g,
368
+ onSelectOption: (_) => {
369
+ i(_);
370
+ }
371
+ }
372
+ ),
373
+ /* @__PURE__ */ r(
374
+ b,
375
+ {
376
+ items: o == null ? void 0 : o[g],
377
+ showMoreText: l,
378
+ learnMoreText: c,
379
+ onSelectItem: p
380
+ },
381
+ `toggle-section-items__${g}`
382
+ )
383
+ ] });
384
+ }
385
+ );
386
+ z.propTypes = {
387
+ title: e.string,
388
+ description: e.string,
389
+ options: e.array,
390
+ items: e.array,
391
+ showMoreText: e.string,
392
+ learnMoreText: e.string,
393
+ onSelectItem: e.func
394
+ };
395
+ export {
396
+ z as default
397
+ };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./CheckBoxInput.cjs"),t=require("./ColorInput.cjs"),e=require("./DateInput.cjs"),n=require("./DecimalInput.cjs"),i=require("./DecimalInputV2.cjs"),c=require("./FileInput.cjs"),a=require("./NumberInput.cjs"),s=require("./PasswordInput.cjs"),u=require("./RadioInput.cjs"),d=require("./RangeSlider.cjs"),q=require("./TextAreaInput.cjs"),l=require("./TextInput.cjs"),S=require("./TimeInput.cjs"),p=require("./Badge.cjs"),g=require("./Chip.cjs"),C=require("./DataView.cjs"),m=require("./DetailsView.cjs"),B=require("./EditableTable.cjs"),I=require("./FormView.cjs"),D=require("./Kanban.cjs"),b=require("./KanbanCard-CP60mpJO.cjs"),T=require("./KanbanHeader.cjs"),F=require("./KanbanFooter.cjs"),P=require("./KanbanView.cjs"),w=require("./KanbanActionsToolbar.cjs"),h=require("./Table.cjs"),f=require("./TableView.cjs"),M=require("./ActionsToolbar.cjs"),A=require("./Alert.cjs"),G=require("./Notification.cjs"),v=require("./NotificationContainer.cjs"),L=require("./NotificationMessage.cjs"),x=require("./ProgressBar.cjs"),y=require("./Spinner.cjs"),K=require("./Avatar.cjs"),N=require("./Button.cjs"),V=require("./Icon.cjs"),W=require("./IconButton.cjs"),k=require("./Link.cjs"),H=require("./Surface.cjs"),R=require("./UploadedFile.cjs"),O=require("./DoubleRangeSlider.cjs"),Q=require("./DragAndDropFile.cjs"),U=require("./DragDropFiles.cjs"),z=require("./Dropdown.cjs"),E=require("./DropdownLookup.cjs"),j=require("./MultiSelectDropdown.cjs"),J=require("./MultiSelectDropdownLookup.cjs"),X=require("./RadioGroup.cjs"),Y=require("./SearchBar.cjs"),Z=require("./Toggle.cjs"),_=require("./ButtonGroup.cjs"),$=require("./Content.cjs"),ee=require("./FlexBox.cjs"),re=require("./FlexGrid.cjs"),oe=require("./FlexGridItem.cjs"),te=require("./Footer.cjs"),ne=require("./FormField.cjs"),ie=require("./Grid.cjs"),ce=require("./GridItem.cjs"),ae=require("./Header.cjs"),se=require("./PageLayout.cjs"),ue=require("./Sidebar.cjs"),de=require("./Tabs.cjs"),qe=require("./TabItem.cjs"),le=require("./Accordion.cjs"),Se=require("./AccordionSummary.cjs"),pe=require("./AccordionDetails.cjs"),ge=require("./Breadcrumbs.cjs"),Ce=require("./ConfirmationForm.cjs"),me=require("./Drawer.cjs"),Be=require("./DropdownMenu.cjs"),Ie=require("./DropdownItem.cjs"),De=require("./NestedDropdownItem.cjs"),be=require("./Separator.cjs"),Te=require("./Modal.cjs"),Fe=require("./Pagination.cjs"),Pe=require("./Popover.cjs"),we=require("./PopoverClose.cjs"),he=require("./PopoverHeading.cjs"),fe=require("./PopoverContent.cjs"),Me=require("./PopoverTrigger.cjs"),Ae=require("./PopoverDescription.cjs"),Ge=require("./SwipeableDrawer.cjs"),ve=require("./TreeMenu.cjs"),Le=require("./MenuItem.cjs"),xe=require("./NestedMenuItem.cjs"),ye=require("./TreeMenuSeparator.cjs"),Ke=require("./MasonryGeneralCardsSection.cjs"),Ne=require("./DetailedProductsSection.cjs"),Ve=require("./ProductsWithBannerSection.cjs"),We=require("./SimpleProductsSection.cjs"),ke=require("./UrgentSaleProductsSection.cjs"),He=require("./BannerSectionCarousel.cjs"),Re=require("./BannerSectionGrid.cjs"),Oe=require("./BannerSectionSimple.cjs"),Qe=require("./BannerSectionWithList.cjs"),Ue=require("./BannerSectionWithListImage.cjs"),ze=require("./GiftCardsSection.cjs"),Ee=require("./BrandHitsSection.cjs"),je=require("./FieldOfInterestsMasonrySection.cjs"),Je=require("./FieldOfInterestsWithAvatarsCardsSection.cjs"),Xe=require("./FieldOfInterestsWithTagsCardsSection.cjs"),Ye=require("./BannerSectionBasic.cjs"),Ze=require("./GeneralWithTagsCardsSection.cjs"),_e=require("./ShopCardsSection.cjs"),$e=require("./QuizSection.cjs"),er=require("./SalesCampaignsSection.cjs"),rr=require("./CalorieCalculatorSection.cjs"),or=require("./BlogCategoryCardsSection.cjs"),tr=require("./BlogProductCardsSection.cjs"),nr=require("./BlogShopCardsSection.cjs"),ir=require("./BlogCardsSponsoredSection.cjs"),cr=require("./BlogListSection.cjs"),ar=require("./AdBannerSection.cjs"),sr=require("./QuattroCardsSection.cjs"),ur=require("./FeedbackSection.cjs"),dr=require("./HelpBannerSection.cjs"),qr=require("./ContactSection.cjs"),lr=require("./FaqSection.cjs"),Sr=require("./SearchSection-BGK1Fxaj.cjs"),pr=require("./StatsSection.cjs"),r=require("./ThemeProvider.cjs"),gr=require("./CustomStyles-D3JePSNK.cjs");exports.CheckBoxInput=o;exports.ColorInput=t;exports.DateInput=e.default;exports.registerLocale=e.registerLocale;exports.DecimalInput=n;exports.DecimalInputV2=i;exports.FileInput=c;exports.NumberInput=a;exports.PasswordInput=s;exports.RadioInput=u;exports.RangeSlider=d;exports.TextAreaInput=q;exports.TextInput=l;exports.TimeInput=S;exports.Badge=p;exports.Chip=g;exports.DataView=C;exports.DetailsView=m;exports.EditableTable=B;exports.FormView=I;exports.Kanban=D;exports.KanbanCard=b.KanbanCard;exports.KanbanHeader=T;exports.KanbanFooter=F;exports.KanbanView=P;exports.KanbanActionsToolbar=w;exports.Table=h.default;exports.TableView=f;exports.ActionsToolbar=M;exports.Alert=A;exports.Notification=G;exports.NotificationContainer=v;exports.NotificationMessage=L;exports.ProgressBar=x;exports.Spinner=y;exports.Avatar=K;exports.Button=N;exports.Icon=V;exports.IconButton=W;exports.Link=k;exports.Surface=H;exports.UploadedFile=R;exports.DoubleRangeSlider=O;exports.DragAndDropFile=Q;exports.DragDropFiles=U;exports.Dropdown=z.default;exports.DropdownLookup=E;exports.MultiSelectDropdown=j;exports.MultiSelectDropdownLookup=J;exports.RadioGroup=X;exports.SearchBar=Y;exports.Toggle=Z;exports.ButtonGroup=_;exports.Content=$;exports.FlexBox=ee;exports.FlexGrid=re;exports.FlexGridItem=oe;exports.Footer=te;exports.FormField=ne;exports.Grid=ie;exports.GridItem=ce;exports.Header=ae;exports.PageLayout=se;exports.Sidebar=ue;exports.Tabs=de;exports.TabItem=qe;exports.Accordion=le;exports.AccordionSummary=Se;exports.AccordionDetails=pe.default;exports.Breadcrumbs=ge;exports.ConfirmationForm=Ce;exports.Drawer=me;exports.DropdownMenu=Be;exports.DropdownItem=Ie;exports.NestedDropdownItem=De;exports.Separator=be;exports.Modal=Te;exports.Pagination=Fe;exports.Popover=Pe;exports.PopoverClose=we;exports.PopoverHeading=he;exports.PopoverContent=fe;exports.PopoverTrigger=Me;exports.PopoverDescription=Ae;exports.SwipeableDrawer=Ge;exports.TreeMenu=ve;exports.MenuItem=Le;exports.NestedMenuItem=xe;exports.TreeMenuSeparator=ye;exports.MasonryGeneralCardsSection=Ke;exports.DetailedProductsSection=Ne;exports.ProductsWithBannerSection=Ve;exports.SimpleProductsSection=We;exports.UrgentSaleProductsSection=ke;exports.BannerSectionCarousel=He;exports.BannerSectionGrid=Re;exports.BannerSectionSimple=Oe;exports.BannerSectionWithList=Qe;exports.BannerSectionWithListImage=Ue;exports.GiftCardsSection=ze;exports.BrandHitsSection=Ee;exports.FieldOfInterestsMasonrySection=je;exports.FieldOfInterestsWithAvatarsCardsSection=Je;exports.FieldOfInterestsWithTagsCardsSection=Xe;exports.BannerSectionBasic=Ye;exports.GeneralWithTagsCardsSection=Ze;exports.ShopCardsSection=_e;exports.QuizSection=$e;exports.SalesCampaignsSection=er;exports.CalorieCalculatorSection=rr;exports.BlogCategoryCardsSection=or;exports.BlogProductCardsSection=tr;exports.BlogShopCardsSection=nr;exports.BlogCardsSponsoredSection=ir;exports.BlogListSection=cr;exports.AdBannerSection=ar;exports.QuattroCardsSection=sr;exports.FeedbackSection=ur;exports.HelpBannerSection=dr;exports.ContactSection=qr;exports.FaqSection=lr;exports.SearchSection=Sr.SearchSection;exports.StatsSection=pr;exports.ThemeProvider=r.default;exports.useTheme=r.useTheme;exports.components=gr.components;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./CheckBoxInput.cjs"),t=require("./ColorInput.cjs"),e=require("./DateInput.cjs"),n=require("./DecimalInput.cjs"),i=require("./DecimalInputV2.cjs"),c=require("./FileInput.cjs"),a=require("./NumberInput.cjs"),s=require("./PasswordInput.cjs"),u=require("./RadioInput.cjs"),d=require("./RangeSlider.cjs"),q=require("./TextAreaInput.cjs"),l=require("./TextInput.cjs"),S=require("./TimeInput.cjs"),p=require("./Badge.cjs"),g=require("./Chip.cjs"),C=require("./DataView.cjs"),m=require("./DetailsView.cjs"),B=require("./EditableTable.cjs"),I=require("./FormView.cjs"),D=require("./Kanban.cjs"),b=require("./KanbanCard-CP60mpJO.cjs"),T=require("./KanbanHeader.cjs"),F=require("./KanbanFooter.cjs"),P=require("./KanbanView.cjs"),w=require("./KanbanActionsToolbar.cjs"),h=require("./Table.cjs"),f=require("./TableView.cjs"),M=require("./ActionsToolbar.cjs"),A=require("./Alert.cjs"),G=require("./Notification.cjs"),v=require("./NotificationContainer.cjs"),L=require("./NotificationMessage.cjs"),x=require("./ProgressBar.cjs"),y=require("./Spinner.cjs"),K=require("./Avatar.cjs"),N=require("./Button.cjs"),V=require("./Icon.cjs"),W=require("./IconButton.cjs"),k=require("./Link.cjs"),H=require("./Surface.cjs"),R=require("./UploadedFile.cjs"),O=require("./DoubleRangeSlider.cjs"),Q=require("./DragAndDropFile.cjs"),U=require("./DragDropFiles.cjs"),z=require("./Dropdown.cjs"),E=require("./DropdownLookup.cjs"),j=require("./MultiSelectDropdown.cjs"),J=require("./MultiSelectDropdownLookup.cjs"),X=require("./RadioGroup.cjs"),Y=require("./SearchBar.cjs"),Z=require("./Toggle.cjs"),_=require("./ButtonGroup.cjs"),$=require("./Content.cjs"),ee=require("./FlexBox.cjs"),re=require("./FlexGrid.cjs"),oe=require("./FlexGridItem.cjs"),te=require("./Footer.cjs"),ne=require("./FormField.cjs"),ie=require("./Grid.cjs"),ce=require("./GridItem.cjs"),ae=require("./Header.cjs"),se=require("./PageLayout.cjs"),ue=require("./Sidebar.cjs"),de=require("./Tabs.cjs"),qe=require("./TabItem.cjs"),le=require("./Accordion.cjs"),Se=require("./AccordionSummary.cjs"),pe=require("./AccordionDetails.cjs"),ge=require("./Breadcrumbs.cjs"),Ce=require("./ConfirmationForm.cjs"),me=require("./Drawer.cjs"),Be=require("./DropdownMenu.cjs"),Ie=require("./DropdownItem.cjs"),De=require("./NestedDropdownItem.cjs"),be=require("./Separator.cjs"),Te=require("./Modal.cjs"),Fe=require("./Pagination.cjs"),Pe=require("./Popover.cjs"),we=require("./PopoverClose.cjs"),he=require("./PopoverHeading.cjs"),fe=require("./PopoverContent.cjs"),Me=require("./PopoverTrigger.cjs"),Ae=require("./PopoverDescription.cjs"),Ge=require("./SwipeableDrawer.cjs"),ve=require("./TreeMenu.cjs"),Le=require("./MenuItem.cjs"),xe=require("./NestedMenuItem.cjs"),ye=require("./TreeMenuSeparator.cjs"),Ke=require("./MasonryGeneralCardsSection.cjs"),Ne=require("./DetailedProductsSection.cjs"),Ve=require("./ProductsWithBannerSection.cjs"),We=require("./SimpleProductsSection.cjs"),ke=require("./UrgentSaleProductsSection.cjs"),He=require("./BannerSectionCarousel.cjs"),Re=require("./BannerSectionGrid.cjs"),Oe=require("./BannerSectionSimple.cjs"),Qe=require("./BannerSectionWithList.cjs"),Ue=require("./BannerSectionWithListImage.cjs"),ze=require("./GiftCardsSection.cjs"),Ee=require("./BrandHitsSection.cjs"),je=require("./FieldOfInterestsMasonrySection.cjs"),Je=require("./FieldOfInterestsWithAvatarsCardsSection.cjs"),Xe=require("./FieldOfInterestsWithTagsCardsSection.cjs"),Ye=require("./BannerSectionBasic.cjs"),Ze=require("./GeneralWithTagsCardsSection.cjs"),_e=require("./ShopCardsSection.cjs"),$e=require("./QuizSection.cjs"),er=require("./SalesCampaignsSection.cjs"),rr=require("./CalorieCalculatorSection.cjs"),or=require("./BlogCategoryCardsSection.cjs"),tr=require("./BlogProductCardsSection.cjs"),nr=require("./BlogShopCardsSection.cjs"),ir=require("./BlogCardsSponsoredSection.cjs"),cr=require("./BlogListSection.cjs"),ar=require("./AdBannerSection.cjs"),sr=require("./QuattroCardsSection.cjs"),ur=require("./FeedbackSection.cjs"),dr=require("./HelpBannerSection.cjs"),qr=require("./ContactSection.cjs"),lr=require("./FaqSection.cjs"),Sr=require("./SearchSection-BGK1Fxaj.cjs"),pr=require("./StatsSection.cjs"),gr=require("./ToggleSection.cjs"),r=require("./ThemeProvider.cjs"),Cr=require("./CustomStyles-D3JePSNK.cjs");exports.CheckBoxInput=o;exports.ColorInput=t;exports.DateInput=e.default;exports.registerLocale=e.registerLocale;exports.DecimalInput=n;exports.DecimalInputV2=i;exports.FileInput=c;exports.NumberInput=a;exports.PasswordInput=s;exports.RadioInput=u;exports.RangeSlider=d;exports.TextAreaInput=q;exports.TextInput=l;exports.TimeInput=S;exports.Badge=p;exports.Chip=g;exports.DataView=C;exports.DetailsView=m;exports.EditableTable=B;exports.FormView=I;exports.Kanban=D;exports.KanbanCard=b.KanbanCard;exports.KanbanHeader=T;exports.KanbanFooter=F;exports.KanbanView=P;exports.KanbanActionsToolbar=w;exports.Table=h.default;exports.TableView=f;exports.ActionsToolbar=M;exports.Alert=A;exports.Notification=G;exports.NotificationContainer=v;exports.NotificationMessage=L;exports.ProgressBar=x;exports.Spinner=y;exports.Avatar=K;exports.Button=N;exports.Icon=V;exports.IconButton=W;exports.Link=k;exports.Surface=H;exports.UploadedFile=R;exports.DoubleRangeSlider=O;exports.DragAndDropFile=Q;exports.DragDropFiles=U;exports.Dropdown=z.default;exports.DropdownLookup=E;exports.MultiSelectDropdown=j;exports.MultiSelectDropdownLookup=J;exports.RadioGroup=X;exports.SearchBar=Y;exports.Toggle=Z;exports.ButtonGroup=_;exports.Content=$;exports.FlexBox=ee;exports.FlexGrid=re;exports.FlexGridItem=oe;exports.Footer=te;exports.FormField=ne;exports.Grid=ie;exports.GridItem=ce;exports.Header=ae;exports.PageLayout=se;exports.Sidebar=ue;exports.Tabs=de;exports.TabItem=qe;exports.Accordion=le;exports.AccordionSummary=Se;exports.AccordionDetails=pe.default;exports.Breadcrumbs=ge;exports.ConfirmationForm=Ce;exports.Drawer=me;exports.DropdownMenu=Be;exports.DropdownItem=Ie;exports.NestedDropdownItem=De;exports.Separator=be;exports.Modal=Te;exports.Pagination=Fe;exports.Popover=Pe;exports.PopoverClose=we;exports.PopoverHeading=he;exports.PopoverContent=fe;exports.PopoverTrigger=Me;exports.PopoverDescription=Ae;exports.SwipeableDrawer=Ge;exports.TreeMenu=ve;exports.MenuItem=Le;exports.NestedMenuItem=xe;exports.TreeMenuSeparator=ye;exports.MasonryGeneralCardsSection=Ke;exports.DetailedProductsSection=Ne;exports.ProductsWithBannerSection=Ve;exports.SimpleProductsSection=We;exports.UrgentSaleProductsSection=ke;exports.BannerSectionCarousel=He;exports.BannerSectionGrid=Re;exports.BannerSectionSimple=Oe;exports.BannerSectionWithList=Qe;exports.BannerSectionWithListImage=Ue;exports.GiftCardsSection=ze;exports.BrandHitsSection=Ee;exports.FieldOfInterestsMasonrySection=je;exports.FieldOfInterestsWithAvatarsCardsSection=Je;exports.FieldOfInterestsWithTagsCardsSection=Xe;exports.BannerSectionBasic=Ye;exports.GeneralWithTagsCardsSection=Ze;exports.ShopCardsSection=_e;exports.QuizSection=$e;exports.SalesCampaignsSection=er;exports.CalorieCalculatorSection=rr;exports.BlogCategoryCardsSection=or;exports.BlogProductCardsSection=tr;exports.BlogShopCardsSection=nr;exports.BlogCardsSponsoredSection=ir;exports.BlogListSection=cr;exports.AdBannerSection=ar;exports.QuattroCardsSection=sr;exports.FeedbackSection=ur;exports.HelpBannerSection=dr;exports.ContactSection=qr;exports.FaqSection=lr;exports.SearchSection=Sr.SearchSection;exports.StatsSection=pr;exports.ToggleSection=gr;exports.ThemeProvider=r.default;exports.useTheme=r.useTheme;exports.components=Cr.components;
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { default as c } from "./NumberInput.js";
8
8
  import { default as g } from "./PasswordInput.js";
9
9
  import { default as B } from "./RadioInput.js";
10
10
  import { default as D } from "./RangeSlider.js";
11
- import { default as F } from "./TextAreaInput.js";
11
+ import { default as T } from "./TextAreaInput.js";
12
12
  import { default as w } from "./TextInput.js";
13
13
  import { default as h } from "./TimeInput.js";
14
14
  import { default as M } from "./Badge.js";
@@ -35,7 +35,7 @@ import { default as ce } from "./Spinner.js";
35
35
  import { default as ge } from "./Avatar.js";
36
36
  import { default as Be } from "./Button.js";
37
37
  import { default as De } from "./Icon.js";
38
- import { default as Fe } from "./IconButton.js";
38
+ import { default as Te } from "./IconButton.js";
39
39
  import { default as we } from "./Link.js";
40
40
  import { default as he } from "./Surface.js";
41
41
  import { default as Me } from "./UploadedFile.js";
@@ -62,7 +62,7 @@ import { default as So } from "./Header.js";
62
62
  import { default as Co } from "./PageLayout.js";
63
63
  import { default as Io } from "./Sidebar.js";
64
64
  import { default as bo } from "./Tabs.js";
65
- import { default as To } from "./TabItem.js";
65
+ import { default as Fo } from "./TabItem.js";
66
66
  import { default as Po } from "./Accordion.js";
67
67
  import { default as Ao } from "./AccordionSummary.js";
68
68
  import { default as Go } from "./AccordionDetails.js";
@@ -89,7 +89,7 @@ import { default as St } from "./TreeMenuSeparator.js";
89
89
  import { default as Ct } from "./MasonryGeneralCardsSection.js";
90
90
  import { default as It } from "./DetailedProductsSection.js";
91
91
  import { default as bt } from "./ProductsWithBannerSection.js";
92
- import { default as Tt } from "./SimpleProductsSection.js";
92
+ import { default as Ft } from "./SimpleProductsSection.js";
93
93
  import { default as Pt } from "./UrgentSaleProductsSection.js";
94
94
  import { default as At } from "./BannerSectionCarousel.js";
95
95
  import { default as Gt } from "./BannerSectionGrid.js";
@@ -116,12 +116,13 @@ import { default as Sr } from "./AdBannerSection.js";
116
116
  import { default as Cr } from "./QuattroCardsSection.js";
117
117
  import { default as Ir } from "./FeedbackSection.js";
118
118
  import { default as br } from "./HelpBannerSection.js";
119
- import { default as Tr } from "./ContactSection.js";
119
+ import { default as Fr } from "./ContactSection.js";
120
120
  import { default as Pr } from "./FaqSection.js";
121
121
  import { S as Ar } from "./SearchSection-CsfURtvf.js";
122
122
  import { default as Gr } from "./StatsSection.js";
123
- import { default as Lr, useTheme as Kr } from "./ThemeProvider.js";
124
- import { c as Vr } from "./CustomStyles-DpKzWczC.js";
123
+ import { default as Lr } from "./ToggleSection.js";
124
+ import { default as Nr, useTheme as Vr } from "./ThemeProvider.js";
125
+ import { c as kr } from "./CustomStyles-DpKzWczC.js";
125
126
  export {
126
127
  Po as Accordion,
127
128
  Go as AccordionDetails,
@@ -151,7 +152,7 @@ export {
151
152
  v as Chip,
152
153
  a as ColorInput,
153
154
  No as ConfirmationForm,
154
- Tr as ContactSection,
155
+ Fr as ContactSection,
155
156
  $e as Content,
156
157
  K as DataView,
157
158
  d as DateInput,
@@ -187,7 +188,7 @@ export {
187
188
  So as Header,
188
189
  br as HelpBannerSection,
189
190
  De as Icon,
190
- Fe as IconButton,
191
+ Te as IconButton,
191
192
  O as Kanban,
192
193
  Z as KanbanActionsToolbar,
193
194
  U as KanbanCard,
@@ -228,25 +229,26 @@ export {
228
229
  qo as Separator,
229
230
  _t as ShopCardsSection,
230
231
  Io as Sidebar,
231
- Tt as SimpleProductsSection,
232
+ Ft as SimpleProductsSection,
232
233
  ce as Spinner,
233
234
  Gr as StatsSection,
234
235
  he as Surface,
235
236
  lt as SwipeableDrawer,
236
- To as TabItem,
237
+ Fo as TabItem,
237
238
  $ as Table,
238
239
  oe as TableView,
239
240
  bo as Tabs,
240
- F as TextAreaInput,
241
+ T as TextAreaInput,
241
242
  w as TextInput,
242
- Lr as ThemeProvider,
243
+ Nr as ThemeProvider,
243
244
  h as TimeInput,
244
245
  Xe as Toggle,
246
+ Lr as ToggleSection,
245
247
  ut as TreeMenu,
246
248
  St as TreeMenuSeparator,
247
249
  Me as UploadedFile,
248
250
  Pt as UrgentSaleProductsSection,
249
- Vr as components,
251
+ kr as components,
250
252
  s as registerLocale,
251
- Kr as useTheme
253
+ Vr as useTheme
252
254
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lanaco/lnc-react-ui",
3
- "version": "4.0.116",
3
+ "version": "4.0.118",
4
4
  "description": "React component library",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -162,7 +162,8 @@
162
162
  "./ContactSection": "./dist/ContactSection.js",
163
163
  "./FaqSection": "./dist/FaqSection.js",
164
164
  "./SearchSection": "./dist/SearchSection.js",
165
- "./StatsSection": "./dist/StatsSection.js"
165
+ "./StatsSection": "./dist/StatsSection.js",
166
+ "./ToggleSection": "./dist/ToggleSection.js"
166
167
  },
167
168
  "dependencies": {
168
169
  "@dnd-kit/core": "^6.0.5",
package/vite.config.js CHANGED
@@ -331,6 +331,10 @@ export default defineConfig({
331
331
  "src/Help Sections/search-section/SearchSection.jsx"
332
332
  ),
333
333
  resolve(__dirname, "src/Help Sections/stats-section/StatsSection.jsx"),
334
+ resolve(
335
+ __dirname,
336
+ "src/Help Sections/toggle-section/ToggleSection.jsx"
337
+ ),
334
338
  ],
335
339
  name: "@lanaco/lnc-react-ui",
336
340
  fileName: (format, name) => {