@redneckz/wildless-cms-uni-blocks 0.3.1 → 0.3.4
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +4 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/cosmos-static/icons/ActualBalanceIcon.svg +1 -0
- package/cosmos-static/icons/AppleIcon.svg +1 -0
- package/cosmos-static/icons/AtmIcon.svg +1 -0
- package/cosmos-static/icons/BankIcon.svg +1 -0
- package/cosmos-static/icons/BurgerIcon.svg +1 -0
- package/cosmos-static/icons/BurgerIconWhite.svg +1 -0
- package/cosmos-static/icons/Calendar2Icon.svg +1 -0
- package/cosmos-static/icons/CalendarCircleIcon.svg +1 -0
- package/cosmos-static/icons/CalendarIcon.svg +1 -0
- package/cosmos-static/icons/CalendarTickIcon.svg +1 -0
- package/cosmos-static/icons/CalendarWhiteIcon.svg +1 -0
- package/cosmos-static/icons/CardIcon.svg +1 -0
- package/cosmos-static/icons/CardPosIcon.svg +1 -0
- package/cosmos-static/icons/CardTickIcon.svg +1 -0
- package/cosmos-static/icons/CardWithGemIcon.svg +1 -0
- package/cosmos-static/icons/ChartSquareIcon.svg +1 -0
- package/cosmos-static/icons/ClockIcon.svg +1 -0
- package/cosmos-static/icons/CloseIcon.svg +1 -0
- package/cosmos-static/icons/ComfortableCompIcon.svg +1 -0
- package/cosmos-static/icons/CreditCardsIcon.svg +1 -0
- package/cosmos-static/icons/DiscountShapeIcon.svg +1 -0
- package/cosmos-static/icons/DocIcon.svg +1 -0
- package/cosmos-static/icons/DocIconMonoColor.svg +1 -0
- package/cosmos-static/icons/DocumentTextIcon.svg +1 -0
- package/cosmos-static/icons/DollarIcon.svg +1 -0
- package/cosmos-static/icons/EarthIcon.svg +1 -0
- package/cosmos-static/icons/EmptyWalletChangeIcon.svg +1 -0
- package/cosmos-static/icons/EmptyWalletIcon.svg +1 -0
- package/cosmos-static/icons/EmptyWalletWhiteIcon.svg +1 -0
- package/cosmos-static/icons/EuroIcon.svg +1 -0
- package/cosmos-static/icons/GeolocationIcon.svg +1 -0
- package/cosmos-static/icons/GlassIcon.svg +1 -0
- package/cosmos-static/icons/GlobalIcon.svg +1 -0
- package/cosmos-static/icons/GridIcon.svg +1 -0
- package/cosmos-static/icons/GridIconWhite.svg +1 -0
- package/cosmos-static/icons/InterestGrowthIcon.svg +1 -0
- package/cosmos-static/icons/InterestIcon.svg +1 -0
- package/cosmos-static/icons/JCBIcon.svg +1 -0
- package/cosmos-static/icons/LoupeIcon.svg +1 -0
- package/cosmos-static/icons/MasterCardIcon.svg +1 -0
- package/cosmos-static/icons/MinusIcon.svg +1 -0
- package/cosmos-static/icons/MirIcon.svg +1 -0
- package/cosmos-static/icons/MoneyIcon.svg +1 -0
- package/cosmos-static/icons/MoneyInsuranceIcon.svg +1 -0
- package/cosmos-static/icons/MonitorMobileIcon.svg +1 -0
- package/cosmos-static/icons/NewDocIcon.svg +1 -0
- package/cosmos-static/icons/OfficeIcon.svg +1 -0
- package/cosmos-static/icons/OkIcon.svg +1 -0
- package/cosmos-static/icons/PassSendIcon.svg +1 -0
- package/cosmos-static/icons/PercentageRoundIcon.svg +1 -0
- package/cosmos-static/icons/PercentageSquareIcon.svg +1 -0
- package/cosmos-static/icons/PercentageSquareWhiteIcon.svg +1 -0
- package/cosmos-static/icons/PersonalCardIcon.svg +1 -0
- package/cosmos-static/icons/PlayMarketIcon.svg +1 -0
- package/cosmos-static/icons/PlusIcon.svg +1 -0
- package/cosmos-static/icons/Profile2UserIcon.svg +1 -0
- package/cosmos-static/icons/ProfileIcon.svg +1 -0
- package/cosmos-static/icons/RoundRubleIcon.svg +1 -0
- package/cosmos-static/icons/SafeIcon.svg +1 -0
- package/cosmos-static/icons/ShieldTickIcon.svg +1 -0
- package/cosmos-static/icons/SignDocsIcon.svg +1 -0
- package/cosmos-static/icons/SmallClockIcon.svg +1 -0
- package/cosmos-static/icons/TelegramIcon.svg +1 -0
- package/cosmos-static/icons/UnionPayIcon.svg +1 -0
- package/cosmos-static/icons/UserTickIcon.svg +1 -0
- package/cosmos-static/icons/VKIcon.svg +1 -0
- package/cosmos-static/icons/VisaIcon.svg +1 -0
- package/cosmos-static/icons/WalletAdd2Icon.svg +1 -0
- package/cosmos-static/icons/WalletAddIcon.svg +1 -0
- package/cosmos-static/icons/WalletIcon.svg +1 -0
- package/cosmos-static/icons/WalletWithMoneyIcon.svg +1 -0
- package/dist/components/Gallery/GalleryCardInner.js +3 -1
- package/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Gallery/GalleryCardInner.js +3 -1
- package/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +5 -3
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js +3 -1
- package/mobile/dist/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js +3 -1
- package/mobile/lib/components/Gallery/GalleryCardInner.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +1 -1
- package/mobile/src/components/Gallery/GalleryCardInner.tsx +3 -1
- package/mobile/src/components/Gallery/GalleryContent.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +2 -2
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
- package/package.json +5 -6
- package/src/components/Gallery/GalleryCardInner.tsx +3 -1
- package/src/components/Gallery/GalleryContent.ts +1 -1
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +2 -2
- package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/src/components/LinkDocs/LinkDocsList.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItem.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,kBAAkB,EACzB,SAAS,EACT,QAAQ,GAAG,UAAU,EACrB,SAAS,GAAG,IAAI,GACjB,EAAE,EAAE;IACH,OAAO,CACL,qCAAS,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,0DAAuD;AAEvD,qEAAkE;AAClE,iEAA8D;AAIjD,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,kBAAkB,EACzB,SAAS,EACT,QAAQ,GAAG,UAAU,EACrB,SAAS,GAAG,IAAI,GACjB,EAAE,EAAE;IACH,OAAO,CACL,qCAAS,SAAS,EAAE,gCAAgC,SAAS,EAAE,aAC5D,KAAK,CAAC,CAAC,CAAC,CACP,uBAAC,iBAAO,IACN,WAAW,EAAC,IAAI,EAChB,SAAS,EAAE,eAAe,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EACtD,KAAK,EAAE,KAAK,GACZ,CACH,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,CAAC,CAAC,+BAAI,SAAS,EAAC,4BAA4B,YAAE,QAAQ,GAAM,CAAC,CAAC,CAAC,IAAI,EAC5E,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,CACzB,uBAAC,2CAAoB,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,GAAI,CACjF,CAAC,CAAC,CAAC,CACF,uBAAC,+CAAsB,IACrB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,GACV,CACH,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import type { IconName } from '../../
|
|
2
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
3
3
|
import type { AlignType } from '../BaseTile/BaseTileProps';
|
|
4
4
|
/**
|
|
5
5
|
* @title Отображение списка
|
|
@@ -3,5 +3,5 @@ exports.LinkDocsListItem = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const LinkDocsListItemBase_1 = require("./LinkDocsListItemBase");
|
|
6
|
-
exports.LinkDocsListItem = (0, uni_jsx_1.JSX)(({ className = '', doc, icon }) => ((0, jsx_runtime_1.jsx)(LinkDocsListItemBase_1.LinkDocsListItemBase, { className: `flex h-full ${className}`, iconClassName: "mr-
|
|
6
|
+
exports.LinkDocsListItem = (0, uni_jsx_1.JSX)(({ className = '', doc, icon }) => ((0, jsx_runtime_1.jsx)(LinkDocsListItemBase_1.LinkDocsListItemBase, { className: `flex h-full ${className}`, iconClassName: "mr-3 min-w-6 min-h-6", doc: doc, icon: icon })));
|
|
7
7
|
//# sourceMappingURL=LinkDocsListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItem.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAGjD,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5F,uBAAC,2CAAoB,IACnB,SAAS,EAAE,eAAe,SAAS,EAAE,EACrC,aAAa,EAAC,
|
|
1
|
+
{"version":3,"file":"LinkDocsListItem.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,iEAA8D;AAGjD,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAwB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5F,uBAAC,2CAAoB,IACnB,SAAS,EAAE,eAAe,SAAS,EAAE,EACrC,aAAa,EAAC,sBAAsB,EACpC,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,CACH,CAAC,CAAC"}
|
|
@@ -4,7 +4,9 @@ import { BlockItem } from '../../ui-kit/BlockItem/BlockItem.js';
|
|
|
4
4
|
import { Button } from '../../ui-kit/Button/Button.js';
|
|
5
5
|
import { Img } from '../../ui-kit/Img/Img.js';
|
|
6
6
|
export const GalleryCardInner = JSX(({ title, description, image, items, button, version }) => {
|
|
7
|
-
return (_jsxs("div", { children: [_jsxs("div", { children: [image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description ? _jsx("div", { className: `font-normal text-sm mt-2`, children: description }) : null, items?.length ? (_jsx("section", { className: `max-w-[308px] mt-2`, role: "list", children: items
|
|
7
|
+
return (_jsxs("div", { children: [_jsxs("div", { children: [image?.src ? (_jsx("div", { className: "flex justify-center", children: _jsx(Img, { className: "mb-6", image: image }) })) : null, title && renderCardTitle(title, description, items), description ? _jsx("div", { className: `font-normal text-sm mt-2`, children: description }) : null, items?.length ? (_jsx("section", { className: `max-w-[308px] mt-2`, role: "list", children: items
|
|
8
|
+
.filter((item) => item?.text)
|
|
9
|
+
.map((item, i) => renderItem(item.text, i, version)) })) : null] }), button?.text && _jsx(Button, { className: "mt-6", ...button })] }));
|
|
8
10
|
});
|
|
9
11
|
function renderCardTitle(title, description, items) {
|
|
10
12
|
return (_jsx("div", { className: `font-medium text-xl m-0 ${!description && !items?.length ? 'text-center' : ''}`, children: title }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GalleryCardInner.js","sourceRoot":"","sources":["../../../src/components/Gallery/GalleryCardInner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,MAAM,CAAC,MAA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4,6 @@ import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
|
4
4
|
import { LinkDocsHorizontalList } from './LinkDocsHorizontalList.js';
|
|
5
5
|
import { LinkDocsVerticalList } from './LinkDocsVerticalList.js';
|
|
6
6
|
export const LinkDocs = JSX(({ className = '', context, title, subtitle, icon = 'DocIconMonoColor', documents, listMode = 'vertical', hasBorder = true, }) => {
|
|
7
|
-
return (_jsxs("section", { className: `py-6 px-4 bg-white ${className}`, children: [title ? (_jsx(Heading, { headingType: "h2", className: `text-center ${subtitle ? 'mb-2' : 'mb-5'}`, title: title })) : null, subtitle ? _jsx("h3", { className: "mb-5 text-center text-m-
|
|
7
|
+
return (_jsxs("section", { className: `font-sans py-6 px-4 bg-white ${className}`, children: [title ? (_jsx(Heading, { headingType: "h2", className: `text-center ${subtitle ? 'mb-2' : 'mb-5'}`, title: title })) : null, subtitle ? _jsx("h3", { className: "mb-5 text-center text-m-md", children: subtitle }) : null, listMode === 'vertical' ? (_jsx(LinkDocsVerticalList, { hasBorder: hasBorder, documents: documents, icon: icon })) : (_jsx(LinkDocsHorizontalList, { context: context, hasBorder: hasBorder, documents: documents, icon: icon }))] }));
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=LinkDocs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocs.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocs.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,CACzB,CAAC,EACC,SAAS,GAAG,EAAE,EACd,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAI,GAAG,k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S,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,GACV,CACH,IACO,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LinkProps } from '../../model/LinkProps';
|
|
2
|
-
import type { IconName } from '../../
|
|
2
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
3
3
|
import type { AlignType } from '../BaseTile/BaseTileProps';
|
|
4
4
|
/**
|
|
5
5
|
* @title Отображение списка
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { LinkDocsListItemBase } from './LinkDocsListItemBase.js';
|
|
4
|
-
export const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (_jsx(LinkDocsListItemBase, { className: `flex h-full ${className}`, iconClassName: "mr-
|
|
4
|
+
export const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (_jsx(LinkDocsListItemBase, { className: `flex h-full ${className}`, iconClassName: "mr-3 min-w-6 min-h-6", doc: doc, icon: icon })));
|
|
5
5
|
//# sourceMappingURL=LinkDocsListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkDocsListItem.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5F,KAAC,oBAAoB,IACnB,SAAS,EAAE,eAAe,SAAS,EAAE,EACrC,aAAa,EAAC,
|
|
1
|
+
{"version":3,"file":"LinkDocsListItem.js","sourceRoot":"","sources":["../../../src/components/LinkDocs/LinkDocsListItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAwB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAC5F,KAAC,oBAAoB,IACnB,SAAS,EAAE,eAAe,SAAS,EAAE,EACrC,aAAa,EAAC,sBAAsB,EACpC,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,GACV,CACH,CAAC,CAAC"}
|
|
@@ -19,7 +19,9 @@ export const GalleryCardInner = JSX<GalleryCard>(
|
|
|
19
19
|
{description ? <div className={`font-normal text-sm mt-2`}>{description}</div> : null}
|
|
20
20
|
{items?.length ? (
|
|
21
21
|
<section className={`max-w-[308px] mt-2`} role="list">
|
|
22
|
-
{items
|
|
22
|
+
{items
|
|
23
|
+
.filter((item) => item?.text)
|
|
24
|
+
.map((item, i) => renderItem(item.text as string, i, version))}
|
|
23
25
|
</section>
|
|
24
26
|
) : null}
|
|
25
27
|
</div>
|
|
@@ -19,7 +19,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
19
19
|
hasBorder = true,
|
|
20
20
|
}) => {
|
|
21
21
|
return (
|
|
22
|
-
<section className={`py-6 px-4 bg-white ${className}`}>
|
|
22
|
+
<section className={`font-sans py-6 px-4 bg-white ${className}`}>
|
|
23
23
|
{title ? (
|
|
24
24
|
<Heading
|
|
25
25
|
headingType="h2"
|
|
@@ -27,7 +27,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
27
27
|
title={title}
|
|
28
28
|
/>
|
|
29
29
|
) : null}
|
|
30
|
-
{subtitle ? <h3 className="mb-5 text-center text-m-
|
|
30
|
+
{subtitle ? <h3 className="mb-5 text-center text-m-md">{subtitle}</h3> : null}
|
|
31
31
|
{listMode === 'vertical' ? (
|
|
32
32
|
<LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
|
|
33
33
|
) : (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { LinkDocsListItem } from './LinkDocsListItem';
|
|
3
|
-
import type { IconName } from '../../
|
|
3
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
4
4
|
import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
|
|
5
5
|
|
|
6
6
|
export interface LinkDocsListProps {
|
|
@@ -5,7 +5,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
|
|
|
5
5
|
export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
|
|
6
6
|
<LinkDocsListItemBase
|
|
7
7
|
className={`flex h-full ${className}`}
|
|
8
|
-
iconClassName="mr-
|
|
8
|
+
iconClassName="mr-3 min-w-6 min-h-6"
|
|
9
9
|
doc={doc}
|
|
10
10
|
icon={icon}
|
|
11
11
|
/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
3
|
-
import type { IconName } from '../../
|
|
3
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
4
4
|
import type { LinkDocsItem } from './LinkDocsContent';
|
|
5
5
|
|
|
6
6
|
export interface LinkDocsListItemProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { IconName } from '../../
|
|
2
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
3
3
|
import type { LinkDocsItem } from './LinkDocsContent';
|
|
4
4
|
import { LinkDocsListItem } from './LinkDocsListItem';
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"mobile/bundle",
|
|
66
66
|
"fonts",
|
|
67
67
|
"mobile/src",
|
|
68
|
-
"src"
|
|
68
|
+
"src",
|
|
69
|
+
"cosmos-static/icons"
|
|
69
70
|
],
|
|
70
71
|
"repository": {
|
|
71
72
|
"url": "https://github.com/redneckz/wildless-cms-uni-blocks.git"
|
|
@@ -89,7 +90,7 @@
|
|
|
89
90
|
"prebuild:schema": "npm run build:icons",
|
|
90
91
|
"build:schema": "node ./scripts/build-schema.js ./bundle/blocks.schema.json",
|
|
91
92
|
"build:style": "postcss ./src/**/*.css --env production --dir ./lib",
|
|
92
|
-
"build:icons": "node ./scripts/prepare-icons.js ./src/icons ./cosmos-static/icons > ./src/icons/IconName.ts",
|
|
93
|
+
"build:icons": "rimraf ./cosmos-static/icons && node ./scripts/prepare-icons.js ./src/icons ./cosmos-static/icons > ./src/icons/IconName.ts",
|
|
93
94
|
"size": "size-limit",
|
|
94
95
|
"lint": "eslint ./src",
|
|
95
96
|
"pretest": "npm run lint",
|
|
@@ -167,9 +168,7 @@
|
|
|
167
168
|
"eslint"
|
|
168
169
|
],
|
|
169
170
|
"src/**/*.{js,jsx,ts,tsx,css}": [
|
|
170
|
-
"prettier --write"
|
|
171
|
-
"npm run cosmos:export",
|
|
172
|
-
"git add ./docs"
|
|
171
|
+
"prettier --write"
|
|
173
172
|
]
|
|
174
173
|
},
|
|
175
174
|
"peerDependenciesMeta": {
|
|
@@ -19,7 +19,9 @@ export const GalleryCardInner = JSX<GalleryCard>(
|
|
|
19
19
|
{description ? <div className={`font-normal text-sm mt-2`}>{description}</div> : null}
|
|
20
20
|
{items?.length ? (
|
|
21
21
|
<section className={`max-w-[308px] mt-2`} role="list">
|
|
22
|
-
{items
|
|
22
|
+
{items
|
|
23
|
+
.filter((item) => item?.text)
|
|
24
|
+
.map((item, i) => renderItem(item.text as string, i, version))}
|
|
23
25
|
</section>
|
|
24
26
|
) : null}
|
|
25
27
|
</div>
|
|
@@ -19,7 +19,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
19
19
|
hasBorder = true,
|
|
20
20
|
}) => {
|
|
21
21
|
return (
|
|
22
|
-
<section className={`py-6 px-4 bg-white ${className}`}>
|
|
22
|
+
<section className={`font-sans py-6 px-4 bg-white ${className}`}>
|
|
23
23
|
{title ? (
|
|
24
24
|
<Heading
|
|
25
25
|
headingType="h2"
|
|
@@ -27,7 +27,7 @@ export const LinkDocs = JSX<LinkDocsProps>(
|
|
|
27
27
|
title={title}
|
|
28
28
|
/>
|
|
29
29
|
) : null}
|
|
30
|
-
{subtitle ? <h3 className="mb-5 text-center text-m-
|
|
30
|
+
{subtitle ? <h3 className="mb-5 text-center text-m-md">{subtitle}</h3> : null}
|
|
31
31
|
{listMode === 'vertical' ? (
|
|
32
32
|
<LinkDocsVerticalList hasBorder={hasBorder} documents={documents} icon={icon} />
|
|
33
33
|
) : (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { LinkDocsListItem } from './LinkDocsListItem';
|
|
3
|
-
import type { IconName } from '../../
|
|
3
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
4
4
|
import type { LinkColumnsMode, LinkDocsItem } from './LinkDocsContent';
|
|
5
5
|
|
|
6
6
|
export interface LinkDocsListProps {
|
|
@@ -5,7 +5,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
|
|
|
5
5
|
export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
|
|
6
6
|
<LinkDocsListItemBase
|
|
7
7
|
className={`flex h-full ${className}`}
|
|
8
|
-
iconClassName="mr-
|
|
8
|
+
iconClassName="mr-3 min-w-6 min-h-6"
|
|
9
9
|
doc={doc}
|
|
10
10
|
icon={icon}
|
|
11
11
|
/>
|
|
@@ -5,7 +5,7 @@ import type { LinkDocsListItemProps } from './LinkDocsListItemBase';
|
|
|
5
5
|
export const LinkDocsListItem = JSX<LinkDocsListItemProps>(({ className = '', doc, icon }) => (
|
|
6
6
|
<LinkDocsListItemBase
|
|
7
7
|
className={className}
|
|
8
|
-
iconClassName="mr-
|
|
8
|
+
iconClassName="mr-2.5 min-w-6 min-h-6 text-primary-text"
|
|
9
9
|
textClassName="self-center"
|
|
10
10
|
suffixClassName="text-secondary-text group-hover:text-primary-main"
|
|
11
11
|
doc={doc}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { Icon } from '../../ui-kit/Icon/Icon';
|
|
3
|
-
import type { IconName } from '../../
|
|
3
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
4
4
|
import type { LinkDocsItem } from './LinkDocsContent';
|
|
5
5
|
|
|
6
6
|
export interface LinkDocsListItemProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
-
import type { IconName } from '../../
|
|
2
|
+
import type { IconName } from '../../ui-kit/Icon/IconProps';
|
|
3
3
|
import type { LinkDocsItem } from './LinkDocsContent';
|
|
4
4
|
import { LinkDocsListItem } from './LinkDocsListItem';
|
|
5
5
|
|