@lanaco/lnc-react-ui 4.0.198 → 4.0.200

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 (247) hide show
  1. package/dist/Accordion.cjs +5 -5
  2. package/dist/Accordion.js +45 -56
  3. package/dist/AccordionDetails.cjs +3 -3
  4. package/dist/AccordionDetails.js +11 -25
  5. package/dist/AccordionSummary.cjs +4 -4
  6. package/dist/AccordionSummary.js +34 -44
  7. package/dist/ActionsToolbar.cjs +2 -3
  8. package/dist/ActionsToolbar.js +83 -135
  9. package/dist/Alert.cjs +10 -10
  10. package/dist/Alert.js +32 -64
  11. package/dist/Avatar.cjs +9 -9
  12. package/dist/Avatar.js +33 -72
  13. package/dist/Badge.cjs +6 -6
  14. package/dist/Badge.js +22 -47
  15. package/dist/BlogCategoryCardsSection.cjs +1 -1
  16. package/dist/BlogCategoryCardsSection.js +12 -14
  17. package/dist/BlogExploreSection.cjs +1 -1
  18. package/dist/BlogExploreSection.js +1 -1
  19. package/dist/BlogsSectionWithFilters.cjs +1 -1
  20. package/dist/BlogsSectionWithFilters.js +1 -1
  21. package/dist/Breadcrumbs.cjs +5 -5
  22. package/dist/Breadcrumbs.js +57 -87
  23. package/dist/Button.cjs +11 -11
  24. package/dist/Button.js +126 -173
  25. package/dist/ButtonGroup.cjs +8 -8
  26. package/dist/ButtonGroup.js +37 -49
  27. package/dist/CalorieCalculatorSection.cjs +8 -8
  28. package/dist/CalorieCalculatorSection.js +90 -97
  29. package/dist/CheckBoxInput.cjs +1 -1
  30. package/dist/CheckBoxInput.js +2 -5
  31. package/dist/Chip.cjs +14 -14
  32. package/dist/Chip.js +73 -111
  33. package/dist/ConfirmationForm.cjs +6 -6
  34. package/dist/ConfirmationForm.js +67 -109
  35. package/dist/ContactSection.cjs +1 -0
  36. package/dist/ContactSection.js +1 -0
  37. package/dist/Content.cjs +1 -1
  38. package/dist/Content.js +7 -15
  39. package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
  40. package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
  41. package/dist/DataView.cjs +1 -1
  42. package/dist/DataView.js +30 -50
  43. package/dist/DateInput.cjs +4 -4
  44. package/dist/DateInput.js +1347 -1383
  45. package/dist/DecimalInput.cjs +6 -6
  46. package/dist/DecimalInput.js +210 -263
  47. package/dist/DecimalInputV2.cjs +23 -23
  48. package/dist/DecimalInputV2.js +119 -176
  49. package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
  50. package/dist/DetailedProductsInfinitiveSection.js +1 -1
  51. package/dist/DetailedProductsSection.cjs +1 -1
  52. package/dist/DetailedProductsSection.js +1 -1
  53. package/dist/DetailsView.cjs +9 -9
  54. package/dist/DetailsView.js +111 -162
  55. package/dist/DoubleRangeSlider.cjs +22 -22
  56. package/dist/DoubleRangeSlider.js +70 -95
  57. package/dist/DragAndDropFile.cjs +10 -10
  58. package/dist/DragAndDropFile.js +347 -402
  59. package/dist/DragDropFiles.cjs +4 -4
  60. package/dist/DragDropFiles.js +70 -124
  61. package/dist/Drawer.cjs +5 -5
  62. package/dist/Drawer.js +97 -135
  63. package/dist/Dropdown.cjs +1 -1
  64. package/dist/Dropdown.js +44 -213
  65. package/dist/DropdownItem.cjs +14 -14
  66. package/dist/DropdownItem.js +106 -142
  67. package/dist/DropdownLookup.cjs +1 -1
  68. package/dist/DropdownLookup.js +61 -242
  69. package/dist/DropdownMenu.cjs +4 -4
  70. package/dist/DropdownMenu.js +87 -149
  71. package/dist/EditableTable.cjs +10 -10
  72. package/dist/EditableTable.js +165 -331
  73. package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
  74. package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
  75. package/dist/FaqSection.cjs +3 -3
  76. package/dist/FaqSection.js +119 -153
  77. package/dist/FileInput.cjs +7 -7
  78. package/dist/FileInput.js +66 -94
  79. package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
  80. package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
  81. package/dist/FlexBox.cjs +6 -6
  82. package/dist/FlexBox.js +28 -63
  83. package/dist/FlexGrid.cjs +1 -1
  84. package/dist/FlexGrid.js +27 -67
  85. package/dist/FlexGridItem.cjs +6 -6
  86. package/dist/FlexGridItem.js +34 -62
  87. package/dist/Footer.cjs +1 -1
  88. package/dist/Footer.js +7 -15
  89. package/dist/FormField.cjs +7 -7
  90. package/dist/FormField.js +22 -47
  91. package/dist/FormView.cjs +6 -6
  92. package/dist/FormView.js +148 -195
  93. package/dist/Grid.cjs +2 -2
  94. package/dist/Grid.js +40 -65
  95. package/dist/GridItem.cjs +2 -2
  96. package/dist/GridItem.js +47 -80
  97. package/dist/Header.cjs +1 -1
  98. package/dist/Header.js +7 -15
  99. package/dist/HelpBannerSection.cjs +3 -3
  100. package/dist/HelpBannerSection.js +9 -15
  101. package/dist/Icon.cjs +4 -4
  102. package/dist/Icon.js +29 -55
  103. package/dist/IconButton.cjs +9 -9
  104. package/dist/IconButton.js +89 -127
  105. package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
  106. package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
  107. package/dist/Kanban.cjs +7 -7
  108. package/dist/Kanban.js +2033 -2098
  109. package/dist/KanbanActionsToolbar.cjs +4 -5
  110. package/dist/KanbanActionsToolbar.js +61 -96
  111. package/dist/KanbanCard-B9V9EjVE.js +137 -0
  112. package/dist/KanbanCard-DihrKn-I.cjs +30 -0
  113. package/dist/KanbanCard.cjs +1 -1
  114. package/dist/KanbanCard.js +2 -3
  115. package/dist/KanbanFooter.cjs +3 -3
  116. package/dist/KanbanFooter.js +37 -55
  117. package/dist/KanbanHeader.cjs +4 -4
  118. package/dist/KanbanHeader.js +49 -81
  119. package/dist/KanbanView.cjs +2 -2
  120. package/dist/KanbanView.js +106 -173
  121. package/dist/Link.cjs +7 -7
  122. package/dist/Link.js +20 -37
  123. package/dist/LocationSearchSection.cjs +1 -1
  124. package/dist/LocationSearchSection.js +1 -1
  125. package/dist/MasonryGeneralCardsSection.cjs +1 -1
  126. package/dist/MasonryGeneralCardsSection.js +1 -1
  127. package/dist/MenuItem.cjs +13 -13
  128. package/dist/MenuItem.js +101 -139
  129. package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
  130. package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
  131. package/dist/Modal.cjs +18 -19
  132. package/dist/Modal.js +131 -166
  133. package/dist/MultiSelectDropdown.cjs +1 -1
  134. package/dist/MultiSelectDropdown.js +25 -196
  135. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  136. package/dist/MultiSelectDropdownLookup.js +27 -209
  137. package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
  138. package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
  139. package/dist/NestedDropdownItem.cjs +3 -3
  140. package/dist/NestedDropdownItem.js +45 -67
  141. package/dist/NestedMenuItem.cjs +5 -5
  142. package/dist/NestedMenuItem.js +51 -78
  143. package/dist/NotificationContainer.cjs +10 -10
  144. package/dist/NotificationContainer.js +46 -79
  145. package/dist/NotificationMessage.cjs +2 -2
  146. package/dist/NotificationMessage.js +47 -64
  147. package/dist/NumberInput.cjs +23 -23
  148. package/dist/NumberInput.js +89 -149
  149. package/dist/PageLayout.cjs +2 -2
  150. package/dist/PageLayout.js +20 -28
  151. package/dist/Pagination.cjs +3 -3
  152. package/dist/Pagination.js +102 -185
  153. package/dist/PasswordInput.cjs +23 -23
  154. package/dist/PasswordInput.js +108 -137
  155. package/dist/Popover.cjs +1 -1
  156. package/dist/Popover.js +7 -32
  157. package/dist/PopoverContent.cjs +5 -5
  158. package/dist/PopoverContent.js +22 -28
  159. package/dist/PopoverTrigger.cjs +1 -1
  160. package/dist/PopoverTrigger.js +7 -12
  161. package/dist/ProgressBar.cjs +8 -8
  162. package/dist/ProgressBar.js +32 -59
  163. package/dist/RadioGroup.cjs +3 -3
  164. package/dist/RadioGroup.js +41 -72
  165. package/dist/RadioInput.cjs +28 -28
  166. package/dist/RadioInput.js +78 -123
  167. package/dist/RangeSlider.cjs +19 -19
  168. package/dist/RangeSlider.js +92 -119
  169. package/dist/ReviewsSection.cjs +13 -13
  170. package/dist/ReviewsSection.js +81 -101
  171. package/dist/SalesCampaignsSection.cjs +19 -19
  172. package/dist/SalesCampaignsSection.js +283 -324
  173. package/dist/SearchBar.cjs +10 -10
  174. package/dist/SearchBar.js +168 -188
  175. package/dist/SearchSection-B94YN_6P.cjs +161 -0
  176. package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
  177. package/dist/SearchSection.cjs +1 -1
  178. package/dist/SearchSection.js +2 -3
  179. package/dist/Separator.cjs +3 -3
  180. package/dist/Separator.js +14 -19
  181. package/dist/Sidebar.cjs +4 -5
  182. package/dist/Sidebar.js +33 -56
  183. package/dist/SimpleCategoriesSection.cjs +1 -1
  184. package/dist/SimpleCategoriesSection.js +1 -1
  185. package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
  186. package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
  187. package/dist/Spinner.cjs +18 -18
  188. package/dist/Spinner.js +37 -54
  189. package/dist/StatsSection.cjs +6 -6
  190. package/dist/StatsSection.js +15 -25
  191. package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
  192. package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
  193. package/dist/Surface.cjs +4 -4
  194. package/dist/Surface.js +19 -34
  195. package/dist/SwipeableDrawer.cjs +8 -8
  196. package/dist/SwipeableDrawer.js +84 -136
  197. package/dist/TabItem.cjs +11 -11
  198. package/dist/TabItem.js +83 -118
  199. package/dist/Table.cjs +65 -65
  200. package/dist/Table.js +786 -1167
  201. package/dist/TableView.cjs +2 -2
  202. package/dist/TableView.js +113 -197
  203. package/dist/Tabs.cjs +4 -4
  204. package/dist/Tabs.js +41 -60
  205. package/dist/TextAreaInput.cjs +14 -14
  206. package/dist/TextAreaInput.js +131 -181
  207. package/dist/TextInput.cjs +23 -23
  208. package/dist/TextInput.js +78 -126
  209. package/dist/ThemeProvider.cjs +5 -5
  210. package/dist/ThemeProvider.js +35 -39
  211. package/dist/TimeInput.cjs +7 -7
  212. package/dist/TimeInput.js +46 -72
  213. package/dist/Toggle.cjs +20 -20
  214. package/dist/Toggle.js +78 -109
  215. package/dist/ToggleSection.cjs +6 -5
  216. package/dist/ToggleSection.js +49 -55
  217. package/dist/TreeMenu.cjs +5 -5
  218. package/dist/TreeMenu.js +43 -67
  219. package/dist/TreeMenuSeparator.cjs +3 -3
  220. package/dist/TreeMenuSeparator.js +12 -20
  221. package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
  222. package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
  223. package/dist/UploadedFile.cjs +11 -11
  224. package/dist/UploadedFile.js +73 -99
  225. package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
  226. package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
  227. package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
  228. package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
  229. package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
  230. package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
  231. package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
  232. package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
  233. package/dist/index-BdKi2ogu.js +39 -0
  234. package/dist/index-CRk3vcd4.cjs +95 -0
  235. package/dist/index-CX2A-q39.cjs +4 -0
  236. package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
  237. package/dist/index.cjs +1 -1
  238. package/dist/index.js +2 -2
  239. package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
  240. package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
  241. package/package.json +1 -1
  242. package/dist/KanbanCard-68kSAXL6.js +0 -175
  243. package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
  244. package/dist/SearchSection-BcbHP6QF.cjs +0 -161
  245. package/dist/index-Be-_NM9Q.cjs +0 -4
  246. package/dist/index-C0LcDEqa.js +0 -47
  247. package/dist/index-CSNxZFTX.cjs +0 -95
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("react/jsx-runtime"),u=require("react"),n=require("./index-BpbMKBf_.cjs"),P=require("./tag-CmeZsPQt.cjs"),w=require("./useDetectMobile-zkbzoOGV.cjs"),q=require("./Icon.cjs"),b=require("./IconButton.cjs"),I=require("./Button.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./consts-goSZX3xP.cjs"),m=({title:t,description:i,questionText:a,feedbackText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}})=>{const[h,c]=u.useState(!1),[x,y]=u.useState(!1),T=()=>{c(o=>!o),p()},r=(o,_)=>{o==null||o.stopPropagation(),y(!0),d(_)};return e.jsxs(P.ItemContainer,{className:h?"expanded":"",onClick:T,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:t}),e.jsx(q,{icon:h?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),h&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:i}),l&&e.jsx(e.Fragment,{children:x?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(q,{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:a}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(b,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!0)}),e.jsx(b,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:o=>r(o,!1)})]})]})})]})]})},v=u.forwardRef(({items:t=[],questionText:i,feedbackText:a,showMoreText:g,impressions:l=!1,onSelectItem:p=()=>{},onImpressed:d=()=>{}},h)=>{const c=w.useDetectMobile(),[x,y]=u.useState(!1),T=()=>{y(o=>!o)},r=u.useMemo(()=>{if(c)return t==null?void 0:t.map((s,f)=>e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`));const o=[],_=[];return t==null||t.forEach((s,f)=>{f%2===0?o.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`)):_.push(e.jsx(m,{title:s==null?void 0:s.title,description:s==null?void 0:s.description,questionText:i,feedbackText:a,impressions:l,onSelectItem:()=>p(s),onImpressed:j=>d(s,j)},`faq-section-item__${f+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:o}),e.jsx("div",{className:"section__column",children:_})]})},[t,c]);return e.jsx(P.ItemsContainer,{ref:h,children:c?x?r:e.jsxs(e.Fragment,{children:[r==null?void 0:r.slice(0,4),(r==null?void 0:r.length)>4&&e.jsx(I,{text:g,btnType:"basic",color:"neutral",className:"section__show-more",onClick:T})]}):r})});m.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};v.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 M=N.styled.div`
1
+ "use strict";const e=require("react/jsx-runtime"),_=require("react"),q=require("./tag-UQjq2_Ba.cjs"),N=require("./useDetectMobile-zkbzoOGV.cjs"),S=require("./Icon.cjs"),w=require("./IconButton.cjs"),b=require("./Button.cjs"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./consts-goSZX3xP.cjs"),m=({title:o,description:r,questionText:i,feedbackText:p,impressions:l=!1,onSelectItem:a=()=>{},onImpressed:d=()=>{}})=>{const[h,t]=_.useState(!1),[x,f]=_.useState(!1),g=()=>{t(c=>!c),a()},s=(c,u)=>{c==null||c.stopPropagation(),f(!0),d(u)};return e.jsxs(q.ItemContainer,{className:h?"expanded":"",onClick:g,children:[e.jsxs("div",{className:"card__heading",children:[e.jsx("div",{className:"card__title",children:o}),e.jsx(S,{icon:h?" mng-lnc-subtract":" mng-lnc-add",sizeInUnits:"1.25rem",className:"card__icon"})]}),h&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"card__description",children:r}),l&&e.jsx(e.Fragment,{children:x?e.jsxs("div",{className:"card__impression feedback",children:[e.jsx(S,{icon:" mng-lnc-checkmark--outline",sizeInUnits:"1.25rem",color:"success"}),e.jsx("div",{className:"imppression__question",children:p})]}):e.jsxs("div",{className:"card__impression",children:[e.jsx("div",{className:"imppression__question",children:i}),e.jsxs("div",{className:"impression__actions",children:[e.jsx(w,{icon:" mng-lnc-thumbs-up",borderRadius:"curved",btnType:"outline",onClick:c=>s(c,!0)}),e.jsx(w,{icon:" mng-lnc-thumbs-down",borderRadius:"curved",btnType:"outline",onClick:c=>s(c,!1)})]})]})})]})]})},C=_.forwardRef(({items:o=[],questionText:r,feedbackText:i,showMoreText:p,impressions:l=!1,onSelectItem:a=()=>{},onImpressed:d=()=>{}},h)=>{const t=N.useDetectMobile(),[x,f]=_.useState(!1),g=()=>{f(c=>!c)},s=_.useMemo(()=>{if(t)return o==null?void 0:o.map((n,j)=>e.jsx(m,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:r,feedbackText:i,impressions:l,onSelectItem:()=>a(n),onImpressed:v=>d(n,v)},`faq-section-item__${j+1}`));const c=[],u=[];return o==null||o.forEach((n,j)=>{j%2===0?c.push(e.jsx(m,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:r,feedbackText:i,impressions:l,onSelectItem:()=>a(n),onImpressed:v=>d(n,v)},`faq-section-item__${j+1}`)):u.push(e.jsx(m,{title:n==null?void 0:n.title,description:n==null?void 0:n.description,questionText:r,feedbackText:i,impressions:l,onSelectItem:()=>a(n),onImpressed:v=>d(n,v)},`faq-section-item__${j+1}`))}),e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section__column",children:c}),e.jsx("div",{className:"section__column",children:u})]})},[o,t]);return e.jsx(q.ItemsContainer,{ref:h,children:t?x?s:e.jsxs(e.Fragment,{children:[s==null?void 0:s.slice(0,4),(s==null?void 0:s.length)>4&&e.jsx(b,{text:p,btnType:"basic",color:"neutral",className:"section__show-more",onClick:g})]}):s})}),k=y.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -30,7 +30,7 @@
30
30
  line-height: 1.5rem;
31
31
  }
32
32
 
33
- @media (max-width: ${k.MOBILE_SIZE_PX+"px"}) {
33
+ @media (max-width: ${I.MOBILE_SIZE_PX+"px"}) {
34
34
  & .section__title {
35
35
  font-size: 1rem;
36
36
  font-weight: 500;
@@ -44,4 +44,4 @@
44
44
  letter-spacing: 0.25px;
45
45
  }
46
46
  }
47
- `,S=u.forwardRef(({title:t,description:i,questionText:a="What do you think about this answer?",feedbackText:g="Thank you for feedback!",showMoreText:l="Show more",allTagText:p="All",impressions:d=!1,tags:h=[],items:c=[],onSelectItem:x=()=>{},onImpressed:y=()=>{}},T)=>{const[r,o]=u.useState(null),_=s=>{o(s==null?void 0:s.code)};return e.jsxs(M,{ref:T,children:[e.jsxs("div",{className:"section__heading",children:[t&&e.jsx("div",{className:"section__title",children:t}),i&&e.jsx("div",{className:"section__description",children:i})]}),e.jsx(P.FaqSectionTags,{tags:h,allTagText:p,selectedTagCode:r,onSelectTag:_}),e.jsx(v,{items:r===null?c:c==null?void 0:c.filter(s=>(s==null?void 0:s.tagCode)===r),questionText:a,feedbackText:g,showMoreText:l,impressions:d,onSelectItem:x,onImpressed:y},`faq-section-items__${r}`)]})});S.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=S;
47
+ `,F=_.forwardRef(({title:o,description:r,questionText:i="What do you think about this answer?",feedbackText:p="Thank you for feedback!",showMoreText:l="Show more",allTagText:a="All",impressions:d=!1,tags:h=[],items:t=[],onSelectItem:x=()=>{},onImpressed:f=()=>{}},g)=>{const[s,c]=_.useState(null),u=n=>{c(n==null?void 0:n.code)};return e.jsxs(k,{ref:g,children:[e.jsxs("div",{className:"section__heading",children:[o&&e.jsx("div",{className:"section__title",children:o}),r&&e.jsx("div",{className:"section__description",children:r})]}),e.jsx(q.FaqSectionTags,{tags:h,allTagText:a,selectedTagCode:s,onSelectTag:u}),e.jsx(C,{items:s===null?t:t==null?void 0:t.filter(n=>(n==null?void 0:n.tagCode)===s),questionText:i,feedbackText:p,showMoreText:l,impressions:d,onSelectItem:x,onImpressed:f},`faq-section-items__${s}`)]})});module.exports=F;
@@ -1,77 +1,76 @@
1
- import { jsx as s, jsxs as i, Fragment as b } from "react/jsx-runtime";
2
- import { forwardRef as N, useState as x, useMemo as q } from "react";
3
- import { P as n } from "./index-CblbdqjE.js";
4
- import { I as M, a as C, F } from "./tag-BtS5lWJ0.js";
5
- import { u as $ } from "./useDetectMobile-Bkvj0VMa.js";
6
- import w from "./Icon.js";
7
- import S from "./IconButton.js";
8
- import E from "./Button.js";
9
- import { s as P } from "./emotion-styled.browser.esm-BNN1dTl3.js";
10
- import { M as z } from "./consts-BuFChS64.js";
1
+ import { jsx as n, jsxs as t, Fragment as w } from "react/jsx-runtime";
2
+ import { forwardRef as C, useState as S, useMemo as k } from "react";
3
+ import { I as q, a as x, F as M } from "./tag-Dm8CW4TM.js";
4
+ import { u as F } from "./useDetectMobile-Bkvj0VMa.js";
5
+ import b from "./Icon.js";
6
+ import y from "./IconButton.js";
7
+ import T from "./Button.js";
8
+ import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
9
+ import { M as E } from "./consts-BuFChS64.js";
11
10
  const I = ({
12
- title: t,
13
- description: a,
14
- questionText: l,
15
- feedbackText: _,
16
- impressions: d = !1,
17
- onSelectItem: p = () => {
11
+ title: s,
12
+ description: l,
13
+ questionText: a,
14
+ feedbackText: p,
15
+ impressions: i = !1,
16
+ onSelectItem: d = () => {
18
17
  },
19
18
  onImpressed: h = () => {
20
19
  }
21
20
  }) => {
22
- const [f, c] = x(!1), [u, g] = x(!1), m = () => {
23
- c((r) => !r), p();
24
- }, o = (r, T) => {
25
- r == null || r.stopPropagation(), g(!0), h(T);
21
+ const [_, r] = S(!1), [f, u] = S(!1), g = () => {
22
+ r((c) => !c), d();
23
+ }, o = (c, m) => {
24
+ c == null || c.stopPropagation(), u(!0), h(m);
26
25
  };
27
- return /* @__PURE__ */ i(
28
- C,
26
+ return /* @__PURE__ */ t(
27
+ x,
29
28
  {
30
- className: f ? "expanded" : "",
31
- onClick: m,
29
+ className: _ ? "expanded" : "",
30
+ onClick: g,
32
31
  children: [
33
- /* @__PURE__ */ i("div", { className: "card__heading", children: [
34
- /* @__PURE__ */ s("div", { className: "card__title", children: t }),
35
- /* @__PURE__ */ s(
36
- w,
32
+ /* @__PURE__ */ t("div", { className: "card__heading", children: [
33
+ /* @__PURE__ */ n("div", { className: "card__title", children: s }),
34
+ /* @__PURE__ */ n(
35
+ b,
37
36
  {
38
- icon: f ? " mng-lnc-subtract" : " mng-lnc-add",
37
+ icon: _ ? " mng-lnc-subtract" : " mng-lnc-add",
39
38
  sizeInUnits: "1.25rem",
40
39
  className: "card__icon"
41
40
  }
42
41
  )
43
42
  ] }),
44
- f && /* @__PURE__ */ i(b, { children: [
45
- /* @__PURE__ */ s("div", { className: "card__description", children: a }),
46
- d && /* @__PURE__ */ s(b, { children: u ? /* @__PURE__ */ i("div", { className: "card__impression feedback", children: [
47
- /* @__PURE__ */ s(
48
- w,
43
+ _ && /* @__PURE__ */ t(w, { children: [
44
+ /* @__PURE__ */ n("div", { className: "card__description", children: l }),
45
+ i && /* @__PURE__ */ n(w, { children: f ? /* @__PURE__ */ t("div", { className: "card__impression feedback", children: [
46
+ /* @__PURE__ */ n(
47
+ b,
49
48
  {
50
49
  icon: " mng-lnc-checkmark--outline",
51
50
  sizeInUnits: "1.25rem",
52
51
  color: "success"
53
52
  }
54
53
  ),
55
- /* @__PURE__ */ s("div", { className: "imppression__question", children: _ })
56
- ] }) : /* @__PURE__ */ i("div", { className: "card__impression", children: [
57
- /* @__PURE__ */ s("div", { className: "imppression__question", children: l }),
58
- /* @__PURE__ */ i("div", { className: "impression__actions", children: [
59
- /* @__PURE__ */ s(
60
- S,
54
+ /* @__PURE__ */ n("div", { className: "imppression__question", children: p })
55
+ ] }) : /* @__PURE__ */ t("div", { className: "card__impression", children: [
56
+ /* @__PURE__ */ n("div", { className: "imppression__question", children: a }),
57
+ /* @__PURE__ */ t("div", { className: "impression__actions", children: [
58
+ /* @__PURE__ */ n(
59
+ y,
61
60
  {
62
61
  icon: " mng-lnc-thumbs-up",
63
62
  borderRadius: "curved",
64
63
  btnType: "outline",
65
- onClick: (r) => o(r, !0)
64
+ onClick: (c) => o(c, !0)
66
65
  }
67
66
  ),
68
- /* @__PURE__ */ s(
69
- S,
67
+ /* @__PURE__ */ n(
68
+ y,
70
69
  {
71
70
  icon: " mng-lnc-thumbs-down",
72
71
  borderRadius: "curved",
73
72
  btnType: "outline",
74
- onClick: (r) => o(r, !1)
73
+ onClick: (c) => o(c, !1)
75
74
  }
76
75
  )
77
76
  ] })
@@ -80,106 +79,86 @@ const I = ({
80
79
  ]
81
80
  }
82
81
  );
83
- }, k = N(
82
+ }, z = C(
84
83
  ({
85
- items: t = [],
86
- questionText: a,
87
- feedbackText: l,
88
- showMoreText: _,
89
- impressions: d = !1,
90
- onSelectItem: p = () => {
84
+ items: s = [],
85
+ questionText: l,
86
+ feedbackText: a,
87
+ showMoreText: p,
88
+ impressions: i = !1,
89
+ onSelectItem: d = () => {
91
90
  },
92
91
  onImpressed: h = () => {
93
92
  }
94
- }, f) => {
95
- const c = $(), [u, g] = x(!1), m = () => {
96
- g((r) => !r);
97
- }, o = q(() => {
98
- if (c)
99
- return t == null ? void 0 : t.map((e, v) => /* @__PURE__ */ s(
93
+ }, _) => {
94
+ const r = F(), [f, u] = S(!1), g = () => {
95
+ u((c) => !c);
96
+ }, o = k(() => {
97
+ if (r)
98
+ return s == null ? void 0 : s.map((e, v) => /* @__PURE__ */ n(
100
99
  I,
101
100
  {
102
101
  title: e == null ? void 0 : e.title,
103
102
  description: e == null ? void 0 : e.description,
104
- questionText: a,
105
- feedbackText: l,
106
- impressions: d,
107
- onSelectItem: () => p(e),
108
- onImpressed: (y) => h(e, y)
103
+ questionText: l,
104
+ feedbackText: a,
105
+ impressions: i,
106
+ onSelectItem: () => d(e),
107
+ onImpressed: (N) => h(e, N)
109
108
  },
110
109
  `faq-section-item__${v + 1}`
111
110
  ));
112
- const r = [], T = [];
113
- return t == null || t.forEach((e, v) => {
114
- v % 2 === 0 ? r.push(
115
- /* @__PURE__ */ s(
111
+ const c = [], m = [];
112
+ return s == null || s.forEach((e, v) => {
113
+ v % 2 === 0 ? c.push(
114
+ /* @__PURE__ */ n(
116
115
  I,
117
116
  {
118
117
  title: e == null ? void 0 : e.title,
119
118
  description: e == null ? void 0 : e.description,
120
- questionText: a,
121
- feedbackText: l,
122
- impressions: d,
123
- onSelectItem: () => p(e),
124
- onImpressed: (y) => h(e, y)
119
+ questionText: l,
120
+ feedbackText: a,
121
+ impressions: i,
122
+ onSelectItem: () => d(e),
123
+ onImpressed: (N) => h(e, N)
125
124
  },
126
125
  `faq-section-item__${v + 1}`
127
126
  )
128
- ) : T.push(
129
- /* @__PURE__ */ s(
127
+ ) : m.push(
128
+ /* @__PURE__ */ n(
130
129
  I,
131
130
  {
132
131
  title: e == null ? void 0 : e.title,
133
132
  description: e == null ? void 0 : e.description,
134
- questionText: a,
135
- feedbackText: l,
136
- impressions: d,
137
- onSelectItem: () => p(e),
138
- onImpressed: (y) => h(e, y)
133
+ questionText: l,
134
+ feedbackText: a,
135
+ impressions: i,
136
+ onSelectItem: () => d(e),
137
+ onImpressed: (N) => h(e, N)
139
138
  },
140
139
  `faq-section-item__${v + 1}`
141
140
  )
142
141
  );
143
- }), /* @__PURE__ */ i(b, { children: [
144
- /* @__PURE__ */ s("div", { className: "section__column", children: r }),
145
- /* @__PURE__ */ s("div", { className: "section__column", children: T })
142
+ }), /* @__PURE__ */ t(w, { children: [
143
+ /* @__PURE__ */ n("div", { className: "section__column", children: c }),
144
+ /* @__PURE__ */ n("div", { className: "section__column", children: m })
146
145
  ] });
147
- }, [t, c]);
148
- return /* @__PURE__ */ s(M, { ref: f, children: c ? u ? o : /* @__PURE__ */ i(b, { children: [
146
+ }, [s, r]);
147
+ return /* @__PURE__ */ n(q, { ref: _, children: r ? f ? o : /* @__PURE__ */ t(w, { children: [
149
148
  o == null ? void 0 : o.slice(0, 4),
150
- (o == null ? void 0 : o.length) > 4 && /* @__PURE__ */ s(
151
- E,
149
+ (o == null ? void 0 : o.length) > 4 && /* @__PURE__ */ n(
150
+ T,
152
151
  {
153
- text: _,
152
+ text: p,
154
153
  btnType: "basic",
155
154
  color: "neutral",
156
155
  className: "section__show-more",
157
- onClick: m
156
+ onClick: g
158
157
  }
159
158
  )
160
159
  ] }) : o });
161
160
  }
162
- );
163
- I.propTypes = {
164
- title: n.string,
165
- description: n.string,
166
- questionText: n.string,
167
- feedbackText: n.string,
168
- showMoreText: n.string,
169
- impressions: n.bool,
170
- onSelectItem: n.func,
171
- onImpressed: n.func
172
- };
173
- k.propTypes = {
174
- items: n.array,
175
- questionText: n.string,
176
- feedbackText: n.string,
177
- showMoreText: n.string,
178
- impressions: n.bool,
179
- onSelectItem: n.func,
180
- onImpressed: n.func
181
- };
182
- const B = P.div`
161
+ ), B = $.div`
183
162
  display: flex;
184
163
  flex-direction: column;
185
164
  align-items: center;
@@ -211,7 +190,7 @@ const B = P.div`
211
190
  line-height: 1.5rem;
212
191
  }
213
192
 
214
- @media (max-width: ${z + "px"}) {
193
+ @media (max-width: ${E + "px"}) {
215
194
  & .section__title {
216
195
  font-size: 1rem;
217
196
  font-weight: 500;
@@ -225,68 +204,55 @@ const B = P.div`
225
204
  letter-spacing: 0.25px;
226
205
  }
227
206
  }
228
- `, R = N(
207
+ `, X = C(
229
208
  ({
230
- title: t,
231
- description: a,
232
- questionText: l = "What do you think about this answer?",
233
- feedbackText: _ = "Thank you for feedback!",
234
- showMoreText: d = "Show more",
235
- allTagText: p = "All",
209
+ title: s,
210
+ description: l,
211
+ questionText: a = "What do you think about this answer?",
212
+ feedbackText: p = "Thank you for feedback!",
213
+ showMoreText: i = "Show more",
214
+ allTagText: d = "All",
236
215
  impressions: h = !1,
237
- tags: f = [],
238
- items: c = [],
239
- onSelectItem: u = () => {
216
+ tags: _ = [],
217
+ items: r = [],
218
+ onSelectItem: f = () => {
240
219
  },
241
- onImpressed: g = () => {
220
+ onImpressed: u = () => {
242
221
  }
243
- }, m) => {
244
- const [o, r] = x(null);
245
- return /* @__PURE__ */ i(B, { ref: m, children: [
246
- /* @__PURE__ */ i("div", { className: "section__heading", children: [
247
- t && /* @__PURE__ */ s("div", { className: "section__title", children: t }),
248
- a && /* @__PURE__ */ s("div", { className: "section__description", children: a })
222
+ }, g) => {
223
+ const [o, c] = S(null);
224
+ return /* @__PURE__ */ t(B, { ref: g, children: [
225
+ /* @__PURE__ */ t("div", { className: "section__heading", children: [
226
+ s && /* @__PURE__ */ n("div", { className: "section__title", children: s }),
227
+ l && /* @__PURE__ */ n("div", { className: "section__description", children: l })
249
228
  ] }),
250
- /* @__PURE__ */ s(
251
- F,
229
+ /* @__PURE__ */ n(
230
+ M,
252
231
  {
253
- tags: f,
254
- allTagText: p,
232
+ tags: _,
233
+ allTagText: d,
255
234
  selectedTagCode: o,
256
235
  onSelectTag: (e) => {
257
- r(e == null ? void 0 : e.code);
236
+ c(e == null ? void 0 : e.code);
258
237
  }
259
238
  }
260
239
  ),
261
- /* @__PURE__ */ s(
262
- k,
240
+ /* @__PURE__ */ n(
241
+ z,
263
242
  {
264
- items: o === null ? c : c == null ? void 0 : c.filter((e) => (e == null ? void 0 : e.tagCode) === o),
265
- questionText: l,
266
- feedbackText: _,
267
- showMoreText: d,
243
+ items: o === null ? r : r == null ? void 0 : r.filter((e) => (e == null ? void 0 : e.tagCode) === o),
244
+ questionText: a,
245
+ feedbackText: p,
246
+ showMoreText: i,
268
247
  impressions: h,
269
- onSelectItem: u,
270
- onImpressed: g
248
+ onSelectItem: f,
249
+ onImpressed: u
271
250
  },
272
251
  `faq-section-items__${o}`
273
252
  )
274
253
  ] });
275
254
  }
276
255
  );
277
- R.propTypes = {
278
- title: n.string,
279
- description: n.string,
280
- tags: n.array,
281
- items: n.array,
282
- questionText: n.string,
283
- feedbackText: n.string,
284
- showMoreText: n.string,
285
- allTagText: n.string,
286
- impressions: n.bool,
287
- onSelectItem: n.func,
288
- onImpressed: n.func
289
- };
290
256
  export {
291
- R as default
257
+ X as default
292
258
  };
@@ -1,4 +1,4 @@
1
- "use strict";const b=require("react/jsx-runtime"),m=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./index-BpbMKBf_.cjs"),t=require("./utils-RnrgDDZP.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=g.styled.label`
1
+ "use strict";const c=require("react/jsx-runtime"),g=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=require("./utils-RnrgDDZP.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=b.styled.label`
2
2
  display: inline-flex;
3
3
  box-sizing: border-box;
4
4
  width: 100%;
@@ -7,14 +7,14 @@
7
7
  background-color: ${e=>t.getColorRgbaValue(e.theme,"Input",e.color,"enabled","background")};
8
8
  border-radius: 8px;
9
9
  ${e=>e.focused===!0&&e.readOnly!==!0?t.getOutlineCss(e.theme):""}
10
- `,v=g.styled.input`
10
+ `,q=b.styled.input`
11
11
  width: 0.1px;
12
12
  height: 0.1px;
13
13
  opacity: 0;
14
14
  overflow: hidden;
15
15
  position: absolute;
16
16
  z-index: -1;
17
- `,S=g.styled.div`
17
+ `,_=b.styled.div`
18
18
  display: flex;
19
19
  align-items: center;
20
20
  white-space: nowrap;
@@ -29,8 +29,8 @@
29
29
 
30
30
  /* ${e=>e.disabled===!0?t.getDisabledStateCss(e.theme):""} */
31
31
  ${e=>e.disabled===!0&&`background-color: ${t.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
32
- color: ${a=>t.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
33
- `,N=g.styled.input`
32
+ color: ${o=>t.getColorRgbaValue(o.theme,"Input",o.color,"disabled","text")};`}
33
+ `,N=b.styled.input`
34
34
  width: 100%;
35
35
  appearance: none;
36
36
  outline: none;
@@ -48,5 +48,5 @@
48
48
  /* ${e=>e.disabled===!0?t.getDisabledStateCss(e.theme):""} */
49
49
 
50
50
  ${e=>e.disabled===!0&&`background-color: ${t.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
51
- color: ${a=>t.getColorRgbaValue(a.theme,"Input",a.color,"disabled","text")};`}
52
- `,p=m.forwardRef((e,a)=>{const{className:x="",style:C={},onChange:s,onFocus:d,onBlur:u,disabled:n,readOnly:h,multiple:$=!1,accept:T="",label:I="Choose File",color:P="primary",size:R="small",...V}=e,k=j.useTheme(),[i,w]=m.useState([]),[y,f]=m.useState(!1);var c={theme:k,size:R,color:P,disabled:n,focused:y};const z=()=>{if(i.length>0){var r="";for(const l in i)r+=l==i.length-1?`${i[l].name}`:`${i[l].name}, `;return r}return""},O=r=>{var l=[];if(r.target.files&&r.target.files.length>0)for(const F of r.target.files)l.push(F);else l=[];w(l),s&&(s==null||s(r,l))};return b.jsxs(q,{...c,className:x,style:C,focused:y,readOnly:h,children:[b.jsx(v,{...c,accept:T,multiple:$,ref:a,onChange:n||h?()=>{}:O,type:"file",onFocus:r=>{n||f(!0),d&&!n&&(d==null||d(r))},onBlur:r=>{n||f(!1),u&&!n&&(u==null||u(r))},...V}),b.jsx(S,{...c,children:I}),b.jsx(N,{tabIndex:-1,...c,onChange:()=>{},value:z()})]})});p.propTypes={id:o.PropTypes.any,disabled:o.PropTypes.bool,readOnly:o.PropTypes.bool,multiple:o.PropTypes.bool,accept:o.PropTypes.string,label:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),tabIndex:o.PropTypes.number,onChange:o.PropTypes.func,onFocus:o.PropTypes.func,onBlur:o.PropTypes.func,className:o.PropTypes.string,style:o.PropTypes.object,size:o.PropTypes.oneOf(["small","medium","large"]),color:o.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=p;
51
+ color: ${o=>t.getColorRgbaValue(o.theme,"Input",o.color,"disabled","text")};`}
52
+ `,T=g.forwardRef((e,o)=>{const{className:x="",style:y={},onChange:i,onFocus:d,onBlur:u,disabled:r,readOnly:m,multiple:$=!1,accept:C="",label:I="Choose File",color:R="primary",size:V="small",...k}=e,w=S.useTheme(),[n,z]=g.useState([]),[h,f]=g.useState(!1);var s={theme:w,size:V,color:R,disabled:r,focused:h};const F=()=>{if(n.length>0){var l="";for(const a in n)l+=a==n.length-1?`${n[a].name}`:`${n[a].name}, `;return l}return""},v=l=>{var a=[];if(l.target.files&&l.target.files.length>0)for(const O of l.target.files)a.push(O);else a=[];z(a),i&&(i==null||i(l,a))};return c.jsxs(j,{...s,className:x,style:y,focused:h,readOnly:m,children:[c.jsx(q,{...s,accept:C,multiple:$,ref:o,onChange:r||m?()=>{}:v,type:"file",onFocus:l=>{r||f(!0),d&&!r&&(d==null||d(l))},onBlur:l=>{r||f(!1),u&&!r&&(u==null||u(l))},...k}),c.jsx(_,{...s,children:I}),c.jsx(N,{tabIndex:-1,...s,onChange:()=>{},value:F()})]})});module.exports=T;