@bigbinary/neeto-site-blocks 1.16.21 → 1.16.23

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
@@ -7225,7 +7225,10 @@ var Button = function Button(_ref) {
7225
7225
  };
7226
7226
  var Button$1 = withConditionalRender(Button, ramda.prop("label"));
7227
7227
 
7228
- var createStyledIcon = function createStyledIcon(IconComponent) {
7228
+ var createStyledIcon = function createStyledIcon() {
7229
+ var IconComponent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
7230
+ return /*#__PURE__*/jsxRuntime.jsx("span", {});
7231
+ };
7229
7232
  return styled__default["default"](IconComponent)(function (_ref) {
7230
7233
  var fill = _ref.fill,
7231
7234
  hoverColor = _ref.hoverColor;
@@ -13897,7 +13900,7 @@ var FaqWithHamburgerView = function FaqWithHamburgerView(_ref) {
13897
13900
  enableAnimation = properties.enableAnimation,
13898
13901
  faqs = properties.faqs;
13899
13902
  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";
13903
+ var columnsBaseClasses = "col-span-12 gap-12 space-y-2";
13901
13904
  return /*#__PURE__*/jsxRuntime.jsxs(BlockWrapper, {
13902
13905
  className: className,
13903
13906
  enableAnimation: enableAnimation,
@@ -13941,17 +13944,32 @@ var FAQItem = function FAQItem(_ref3) {
13941
13944
  _useState2 = _slicedToArray__default["default"](_useState, 2),
13942
13945
  isOpen = _useState2[0],
13943
13946
  setIsOpen = _useState2[1];
13947
+
13948
+ // Even though `paddingHorizontal` and `paddingVertical` values are accepted
13949
+ // for the card, we are separately setting the paddings for the `question`
13950
+ // and `answer` components to make the entire `question` clickable.
13951
+ var cardDesgin = ramda.omit(["paddingHorizontal", "paddingVertical"], design.card);
13952
+ var questionWrapperDesign = {
13953
+ paddingHorizontal: design.card.paddingHorizontal,
13954
+ paddingTop: design.card.paddingVertical,
13955
+ paddingBottom: !isOpen && design.card.paddingVertical
13956
+ };
13957
+ var answerWrapperDesign = {
13958
+ paddingHorizontal: design.card.paddingHorizontal,
13959
+ paddingBottom: isOpen && design.card.paddingVertical
13960
+ };
13944
13961
  return /*#__PURE__*/jsxRuntime.jsxs(MotionWrapper, {
13945
13962
  enableAnimation: enableAnimation,
13946
13963
  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", {
13964
+ design: cardDesgin,
13965
+ children: [/*#__PURE__*/jsxRuntime.jsxs(StyledWrapper, {
13954
13966
  className: "flex items-center justify-between gap-4",
13967
+ design: questionWrapperDesign,
13968
+ onClick: function onClick() {
13969
+ return setIsOpen(function (prevState) {
13970
+ return !prevState;
13971
+ });
13972
+ },
13955
13973
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography$1, _objectSpread$l(_objectSpread$l({
13956
13974
  index: index,
13957
13975
  isTitle: true,
@@ -13981,15 +13999,16 @@ var FAQItem = function FAQItem(_ref3) {
13981
13999
  width: "24",
13982
14000
  children: /*#__PURE__*/jsxRuntime.jsx("path", {
13983
14001
  d: "M6 9L12 15L18 9",
13984
- stroke: "#68737D",
14002
+ stroke: design.question.color,
13985
14003
  strokeLinecap: "round",
13986
14004
  strokeLinejoin: "round",
13987
14005
  strokeWidth: "1.5"
13988
14006
  })
13989
14007
  })
13990
14008
  })]
13991
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
14009
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledWrapper, {
13992
14010
  className: "lg:pr-8",
14011
+ design: answerWrapperDesign,
13993
14012
  children: /*#__PURE__*/jsxRuntime.jsx(framerMotion.AnimatePresence, {
13994
14013
  children: isOpen && /*#__PURE__*/jsxRuntime.jsx(framerMotion.motion.div, {
13995
14014
  animate: {