@bigbinary/neeto-site-blocks 1.16.21 → 1.16.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -13897,7 +13897,7 @@ var FaqWithHamburgerView = function FaqWithHamburgerView(_ref) {
13897
13897
  enableAnimation = properties.enableAnimation,
13898
13898
  faqs = properties.faqs;
13899
13899
  var baseClasses = "grid grid-cols-12 items-center gap-4 gap-y-12";
13900
- var columnsBaseClasses = "col-span-12 gap-12 cursor-pointer space-y-2";
13900
+ var columnsBaseClasses = "col-span-12 gap-12 space-y-2";
13901
13901
  return /*#__PURE__*/jsxRuntime.jsxs(BlockWrapper, {
13902
13902
  className: className,
13903
13903
  enableAnimation: enableAnimation,
@@ -13941,17 +13941,32 @@ var FAQItem = function FAQItem(_ref3) {
13941
13941
  _useState2 = _slicedToArray__default["default"](_useState, 2),
13942
13942
  isOpen = _useState2[0],
13943
13943
  setIsOpen = _useState2[1];
13944
+
13945
+ // Even though `paddingHorizontal` and `paddingVertical` values are accepted
13946
+ // for the card, we are separately setting the paddings for the `question`
13947
+ // and `answer` components to make the entire `question` clickable.
13948
+ var cardDesgin = ramda.omit(["paddingHorizontal", "paddingVertical"], design.card);
13949
+ var questionWrapperDesign = {
13950
+ paddingHorizontal: design.card.paddingHorizontal,
13951
+ paddingTop: design.card.paddingVertical,
13952
+ paddingBottom: !isOpen && design.card.paddingVertical
13953
+ };
13954
+ var answerWrapperDesign = {
13955
+ paddingHorizontal: design.card.paddingHorizontal,
13956
+ paddingBottom: isOpen && design.card.paddingVertical
13957
+ };
13944
13958
  return /*#__PURE__*/jsxRuntime.jsxs(MotionWrapper, {
13945
13959
  enableAnimation: enableAnimation,
13946
13960
  className: "w-full",
13947
- design: design.card,
13948
- onClick: function onClick() {
13949
- return setIsOpen(function (prevState) {
13950
- return !prevState;
13951
- });
13952
- },
13953
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
13961
+ design: cardDesgin,
13962
+ children: [/*#__PURE__*/jsxRuntime.jsxs(StyledWrapper, {
13954
13963
  className: "flex items-center justify-between gap-4",
13964
+ design: questionWrapperDesign,
13965
+ onClick: function onClick() {
13966
+ return setIsOpen(function (prevState) {
13967
+ return !prevState;
13968
+ });
13969
+ },
13955
13970
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography$1, _objectSpread$l(_objectSpread$l({
13956
13971
  index: index,
13957
13972
  isTitle: true,
@@ -13981,15 +13996,16 @@ var FAQItem = function FAQItem(_ref3) {
13981
13996
  width: "24",
13982
13997
  children: /*#__PURE__*/jsxRuntime.jsx("path", {
13983
13998
  d: "M6 9L12 15L18 9",
13984
- stroke: "#68737D",
13999
+ stroke: design.question.color,
13985
14000
  strokeLinecap: "round",
13986
14001
  strokeLinejoin: "round",
13987
14002
  strokeWidth: "1.5"
13988
14003
  })
13989
14004
  })
13990
14005
  })]
13991
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
14006
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledWrapper, {
13992
14007
  className: "lg:pr-8",
14008
+ design: answerWrapperDesign,
13993
14009
  children: /*#__PURE__*/jsxRuntime.jsx(framerMotion.AnimatePresence, {
13994
14010
  children: isOpen && /*#__PURE__*/jsxRuntime.jsx(framerMotion.motion.div, {
13995
14011
  animate: {