@bigbinary/neeto-site-blocks 1.16.16 → 1.16.17
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 +21 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +21 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7837,8 +7837,9 @@ var CardsClassic = function CardsClassic(_ref) {
|
|
|
7837
7837
|
to: to,
|
|
7838
7838
|
key: getUniqueKey(title, description, index),
|
|
7839
7839
|
style: design.card,
|
|
7840
|
-
className: classnames("ns-card-animation col-span-12 flex h-full min-h-52
|
|
7841
|
-
"sm:col-start-4": cards.length % 2 === 1 && index === cards.length - 1
|
|
7840
|
+
className: classnames("ns-card-animation col-span-12 flex h-full min-h-52 flex-col sm:col-span-6", {
|
|
7841
|
+
"sm:col-start-4": cards.length % 2 === 1 && index === cards.length - 1,
|
|
7842
|
+
"cursor-pointer": isPresent(to) && isPresent(action)
|
|
7842
7843
|
})
|
|
7843
7844
|
}, otherProps), /*#__PURE__*/jsx(Typography$1, _objectSpread$t(_objectSpread$t({
|
|
7844
7845
|
index: index,
|
|
@@ -12969,9 +12970,11 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
12969
12970
|
alt = _ref2.alt;
|
|
12970
12971
|
return /*#__PURE__*/jsx(MotionWrapper, {
|
|
12971
12972
|
enableAnimation: enableAnimation,
|
|
12972
|
-
className: "col-span-12 h-full cursor-pointer space-y-8 sm:col-span-6 lg:col-span-4",
|
|
12973
12973
|
design: design.card,
|
|
12974
12974
|
duration: 0.01,
|
|
12975
|
+
className: classnames("col-span-12 h-full space-y-8 sm:col-span-6 lg:col-span-4", {
|
|
12976
|
+
"cursor-pointer": isPresent(href) && isPresent(action)
|
|
12977
|
+
}),
|
|
12975
12978
|
children: /*#__PURE__*/jsxs(Link, _objectSpread$s(_objectSpread$s({
|
|
12976
12979
|
action: action,
|
|
12977
12980
|
disableButtonAndLinks: disableButtonAndLinks,
|
|
@@ -13175,11 +13178,14 @@ var CardsWithCustomizableGrid = function CardsWithCustomizableGrid(_ref) {
|
|
|
13175
13178
|
isBorderRequired = properties.isBorderRequired,
|
|
13176
13179
|
src = properties.backgroundImage.src;
|
|
13177
13180
|
var baseClasses = "grid grid-cols-12 sm:gap-x-4 gap-y-4 items-center ns-card";
|
|
13178
|
-
var gridBaseClasses =
|
|
13179
|
-
"
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
|
|
13181
|
+
var gridBaseClasses = function gridBaseClasses(href, action) {
|
|
13182
|
+
return classnames("col-span-12 min-h-56 flex flex-col gap-2 ns-card-animation cursor-pointer", {
|
|
13183
|
+
"sm:col-span-6 lg:col-span-4": gridCount === 3,
|
|
13184
|
+
"sm:col-span-6": gridCount === 2,
|
|
13185
|
+
"lg:col-span-3 sm:col-span-6": gridCount === 4,
|
|
13186
|
+
"cursor-pointer": isPresent(href) && isPresent(action)
|
|
13187
|
+
});
|
|
13188
|
+
};
|
|
13183
13189
|
return /*#__PURE__*/jsxs(BlockWrapper, {
|
|
13184
13190
|
className: className,
|
|
13185
13191
|
enableAnimation: enableAnimation,
|
|
@@ -13214,7 +13220,7 @@ var CardsWithCustomizableGrid = function CardsWithCustomizableGrid(_ref) {
|
|
|
13214
13220
|
action = _ref2.action;
|
|
13215
13221
|
return /*#__PURE__*/createElement$1(MotionWrapper, {
|
|
13216
13222
|
enableAnimation: enableAnimation,
|
|
13217
|
-
className: gridBaseClasses,
|
|
13223
|
+
className: gridBaseClasses(href, action),
|
|
13218
13224
|
design: design.card,
|
|
13219
13225
|
duration: 0.01,
|
|
13220
13226
|
key: getUniqueKey(title, description, index)
|
|
@@ -13276,7 +13282,11 @@ var CardsWithImage = function CardsWithImage(_ref) {
|
|
|
13276
13282
|
isAddMoreRequired = properties.isAddMoreRequired,
|
|
13277
13283
|
src = properties.backgroundImage.src;
|
|
13278
13284
|
var baseClasses = "grid grid-cols-12 gap-y-6 items-center ns-card";
|
|
13279
|
-
var gridBaseClasses =
|
|
13285
|
+
var gridBaseClasses = function gridBaseClasses(href, action) {
|
|
13286
|
+
return classnames("relative sm:col-span-6 lg:col-span-4 col-span-12 justify-center items-center ns-card-animation cursor-pointer", {
|
|
13287
|
+
"cursor-pointer": isPresent(href) && isPresent(action)
|
|
13288
|
+
});
|
|
13289
|
+
};
|
|
13280
13290
|
return /*#__PURE__*/jsxs(BlockWrapper, {
|
|
13281
13291
|
className: className,
|
|
13282
13292
|
enableAnimation: enableAnimation,
|
|
@@ -13313,7 +13323,7 @@ var CardsWithImage = function CardsWithImage(_ref) {
|
|
|
13313
13323
|
alt = _ref2.alt;
|
|
13314
13324
|
return /*#__PURE__*/createElement$1(MotionWrapper, {
|
|
13315
13325
|
enableAnimation: enableAnimation,
|
|
13316
|
-
className: gridBaseClasses,
|
|
13326
|
+
className: gridBaseClasses(href, action),
|
|
13317
13327
|
duration: 0.01,
|
|
13318
13328
|
key: getUniqueKey(title, description, index),
|
|
13319
13329
|
design: _objectSpread$q(_objectSpread$q({}, design.card), {}, {
|