@anywayseo/tools 4.0.0 → 4.0.1
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/components/bonus-card/index.d.ts +2 -6
- package/dist/components/bonus-card-grid/index.d.ts +2 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{index-BmkMQFW1.js → index-BIs07X4D.js} +11 -1
- package/dist/{index-DbwY2gVh.mjs → index-CNKZLV-n.mjs} +11 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/components/bonus-card/index.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { IBonusCard,
|
|
3
|
-
type BonusCardProps = IBonusCard & {
|
|
4
|
-
color?: Color;
|
|
5
|
-
textColor?: Color;
|
|
6
|
-
titleColor?: Color;
|
|
7
|
-
titleTextColor?: Color;
|
|
2
|
+
import { IBonusCard, IBonusCardCustomizationProps } from '../../types';
|
|
3
|
+
type BonusCardProps = IBonusCard & IBonusCardCustomizationProps & {
|
|
8
4
|
className?: string;
|
|
9
5
|
};
|
|
10
6
|
declare const BonusCard: FC<BonusCardProps>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { BoxPositionProps, GridColumns, GridGap, IBonusCard } from '../../types';
|
|
2
|
+
import { BoxPositionProps, GridColumns, GridGap, IBonusCard, IBonusCardCustomizationProps } from '../../types';
|
|
3
3
|
type BonusCardGridProps = {
|
|
4
4
|
items: IBonusCard[];
|
|
5
5
|
columns?: GridColumns;
|
|
6
6
|
gap?: GridGap;
|
|
7
|
+
cardCustomization?: IBonusCardCustomizationProps;
|
|
7
8
|
} & BoxPositionProps;
|
|
8
9
|
declare const BonusCardGrid: FC<BonusCardGridProps>;
|
|
9
10
|
export default BonusCardGrid;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../index-
|
|
3
|
+
const index = require("../index-BIs07X4D.js");
|
|
4
4
|
exports.Author = index.Author;
|
|
5
5
|
exports.AuthorCard = index.AuthorCard;
|
|
6
6
|
exports.BonusCard = index.BonusCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, o, S, h, T, i, j } from "../index-
|
|
1
|
+
import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, o, S, h, T, i, j } from "../index-CNKZLV-n.mjs";
|
|
2
2
|
export {
|
|
3
3
|
k as Author,
|
|
4
4
|
A as AuthorCard,
|
|
@@ -190,9 +190,19 @@ const BonusCardGrid = ({
|
|
|
190
190
|
items,
|
|
191
191
|
columns = { base: 1, md: 2, lg: 3 },
|
|
192
192
|
gap = 4,
|
|
193
|
+
cardCustomization,
|
|
193
194
|
...boxProps
|
|
194
195
|
}) => {
|
|
195
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
196
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
197
|
+
Grid,
|
|
198
|
+
{
|
|
199
|
+
items,
|
|
200
|
+
columns,
|
|
201
|
+
gap,
|
|
202
|
+
render: (item) => /* @__PURE__ */ jsxRuntime.jsx(BonusCard, { ...item, ...cardCustomization }),
|
|
203
|
+
...boxProps
|
|
204
|
+
}
|
|
205
|
+
);
|
|
196
206
|
};
|
|
197
207
|
const ContactForm = ({ ...boxProps }) => {
|
|
198
208
|
const toast = react$1.useToast();
|
|
@@ -189,9 +189,19 @@ const BonusCardGrid = ({
|
|
|
189
189
|
items,
|
|
190
190
|
columns = { base: 1, md: 2, lg: 3 },
|
|
191
191
|
gap = 4,
|
|
192
|
+
cardCustomization,
|
|
192
193
|
...boxProps
|
|
193
194
|
}) => {
|
|
194
|
-
return /* @__PURE__ */ jsx(
|
|
195
|
+
return /* @__PURE__ */ jsx(
|
|
196
|
+
Grid,
|
|
197
|
+
{
|
|
198
|
+
items,
|
|
199
|
+
columns,
|
|
200
|
+
gap,
|
|
201
|
+
render: (item) => /* @__PURE__ */ jsx(BonusCard, { ...item, ...cardCustomization }),
|
|
202
|
+
...boxProps
|
|
203
|
+
}
|
|
204
|
+
);
|
|
195
205
|
};
|
|
196
206
|
const ContactForm = ({ ...boxProps }) => {
|
|
197
207
|
const toast = useToast();
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-BIs07X4D.js");
|
|
4
4
|
const index$1 = require("./index-IpSV-c71.js");
|
|
5
5
|
const i18n$1 = require("./index-Biz1dDqA.js");
|
|
6
6
|
const index$2 = require("./index-d3V0A4lN.js");
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, o, S, h, T, i, j } from "./index-
|
|
1
|
+
import { k, A, B, a, l, C, F, b, c, G, d, e, f, m, H, L, n, g, N, P, o, S, h, T, i, j } from "./index-CNKZLV-n.mjs";
|
|
2
2
|
import { u } from "./index-xuSxvz5z.mjs";
|
|
3
3
|
import { a as a2, G as G2, r } from "./index-DoBCANwf.mjs";
|
|
4
4
|
import { M } from "./index-Bx3B21Dh.mjs";
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IBonus, ILink } from '../../content';
|
|
3
|
+
import { Color } from '../common';
|
|
3
4
|
type TextContent = string | ReactElement;
|
|
5
|
+
export interface IBonusCardCustomizationProps {
|
|
6
|
+
color?: Color;
|
|
7
|
+
textColor?: Color;
|
|
8
|
+
titleColor?: Color;
|
|
9
|
+
titleTextColor?: Color;
|
|
10
|
+
}
|
|
4
11
|
export interface IBonusCard extends IBonus {
|
|
5
12
|
link: ILink;
|
|
6
13
|
content?: TextContent | TextContent[];
|