@redneckz/wildless-cms-uni-blocks 0.14.16 → 0.14.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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +4 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/model/Bullets.d.ts +4 -1
- package/bundle/model/JSXBlock.d.ts +1 -0
- package/bundle/ui-kit/List/ListContent.d.ts +1 -0
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +1 -0
- package/bundle/ui-kit/Text/TextProps.d.ts +1 -0
- package/dist/components/Depository/DepositoryItem.js +3 -2
- package/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/dist/model/Bullets.d.ts +4 -1
- package/dist/model/JSXBlock.d.ts +1 -0
- package/dist/ui-kit/List/ListContent.d.ts +1 -0
- package/dist/ui-kit/RichText/RichTextProps.d.ts +1 -0
- package/dist/ui-kit/Text/TextProps.d.ts +1 -0
- package/lib/components/Depository/DepositoryItem.js +3 -2
- package/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/lib/model/Bullets.d.ts +4 -1
- package/lib/model/JSXBlock.d.ts +1 -0
- package/lib/ui-kit/List/ListContent.d.ts +1 -0
- package/lib/ui-kit/RichText/RichTextProps.d.ts +1 -0
- package/lib/ui-kit/Text/TextProps.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/model/Bullets.d.ts +4 -1
- package/mobile/bundle/model/JSXBlock.d.ts +1 -0
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +1 -0
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/Text/TextProps.d.ts +1 -0
- package/mobile/dist/components/Depository/DepositoryItem.js +3 -2
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/dist/model/Bullets.d.ts +4 -1
- package/mobile/dist/model/JSXBlock.d.ts +1 -0
- package/mobile/dist/ui-kit/List/ListContent.d.ts +1 -0
- package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +1 -0
- package/mobile/dist/ui-kit/Text/TextProps.d.ts +1 -0
- package/mobile/lib/components/Depository/DepositoryItem.js +3 -2
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapLayout.js.map +1 -1
- package/mobile/lib/model/Bullets.d.ts +4 -1
- package/mobile/lib/model/JSXBlock.d.ts +1 -0
- package/mobile/lib/ui-kit/List/ListContent.d.ts +1 -0
- package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +1 -0
- package/mobile/lib/ui-kit/Text/TextProps.d.ts +1 -0
- package/mobile/src/components/Depository/DepositoryItem.tsx +3 -2
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +24 -23
- package/mobile/src/model/Bullets.ts +4 -1
- package/mobile/src/model/JSXBlock.ts +1 -0
- package/mobile/src/ui-kit/List/ListContent.ts +1 -0
- package/mobile/src/ui-kit/RichText/RichTextProps.ts +1 -0
- package/mobile/src/ui-kit/Text/TextProps.ts +1 -0
- package/package.json +1 -1
- package/src/components/Depository/DepositoryItem.tsx +3 -2
- package/src/components/OfficesAtmsMap/OfficesAtmsMapLayout.tsx +24 -23
- package/src/model/Bullets.ts +4 -1
- package/src/model/JSXBlock.ts +1 -0
- package/src/ui-kit/List/ListContent.ts +1 -0
- package/src/ui-kit/RichText/RichTextProps.ts +1 -0
- package/src/ui-kit/Text/TextProps.ts +1 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -3150,10 +3150,10 @@
|
|
|
3150
3150
|
|
|
3151
3151
|
const formatDate$1 = (date) => date.split('-').reverse().join('.');
|
|
3152
3152
|
|
|
3153
|
-
const DepositoryItem = ({ title, timestamp
|
|
3153
|
+
const DepositoryItem = ({ title, timestamp, publicId }) => {
|
|
3154
3154
|
const link = useLink({ basePath: '/' });
|
|
3155
3155
|
const { href } = link({ href: `/api/v1/depository/${publicId}/file` });
|
|
3156
|
-
return (jsxs("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [jsx("div", { className: "col-span-2 text-m", children: jsx(
|
|
3156
|
+
return (jsxs("div", { className: "grid grid-cols-12 py-lg border-gray border-opacity-50 border-b", children: [jsx("div", { className: "col-span-2 text-m", children: timestamp ? jsx(Text, { children: formatDate$1(timestamp) }) : null }), jsx("div", { className: "col-span-10 text-h6 hover:text-primary-active", children: jsx("a", { href: href, download: true, "aria-label": "\u0421\u043A\u0430\u0447\u0430\u0442\u044C", children: title }) })] }, publicId));
|
|
3157
3157
|
};
|
|
3158
3158
|
|
|
3159
3159
|
const useDepository = (size, page) => {
|
|
@@ -4454,7 +4454,7 @@
|
|
|
4454
4454
|
const lengthItems = filteredItems.length;
|
|
4455
4455
|
return (jsxs("div", { className: style('space-y-1', className), children: [jsxs("div", { className: "bg-white", children: [jsxs("div", { className: "pt-6xl px-6xl", children: [jsxs("div", { className: "flex gap-xs pb-2xl", children: [jsx(Heading, { headingType: "h2", children: title }), lengthItems ? (jsx(Text, { size: "text-h2", color: "text-secondary-text", children: `(${lengthItems})` })) : null] }), descriptionData ? renderDescriptionBlock$1(descriptionData) : null, renderFiltrationForm(Object.keys(initFilterState), { field, reset })] }), jsx("div", { className: "h-[600px]", children: jsx(ClientOnly, { children: jsx(YandexMap, { points: points, className: "h-full" }) }) })] }), filteredItems.map(renderCard)] }));
|
|
4456
4456
|
});
|
|
4457
|
-
const renderDescriptionBlock$1 = (
|
|
4457
|
+
const renderDescriptionBlock$1 = ({ description, list }) => description || list?.length ? (jsxs("div", { className: "p-xl mb-2xl border border-gray rounded-md", children: [description ? (jsx(Paragraph, { size: "text-l", font: "font-light", children: description })) : null, list?.length ? (jsx("div", { className: "flex gap-2xl flex-wrap pt-xs", children: list.map((item, i) => (jsxs("div", { className: "flex gap-xs items-center", children: [item?.image ? jsx(Img, { image: item.image }) : null, item?.text ? (jsx(Text, { size: "text-m", font: "font-light", children: item.text })) : null] }, String(i)))) })) : null] })) : null;
|
|
4458
4458
|
|
|
4459
4459
|
const colorStyle = {
|
|
4460
4460
|
yellow: { border: 'border-yellow-light', text: 'text-yellow' },
|
|
@@ -5483,7 +5483,7 @@
|
|
|
5483
5483
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5484
5484
|
}
|
|
5485
5485
|
|
|
5486
|
-
const packageVersion = "0.14.
|
|
5486
|
+
const packageVersion = "0.14.17";
|
|
5487
5487
|
|
|
5488
5488
|
exports.Blocks = Blocks;
|
|
5489
5489
|
exports.ContentPage = ContentPage;
|