@redneckz/wildless-cms-uni-blocks 0.14.250 → 0.14.252
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 +6 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +4 -1
- package/dist/components/ImgBlock/ImgBlock.js +5 -2
- package/dist/components/ImgBlock/ImgBlock.js.map +1 -1
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +4 -1
- package/dist/ui-kit/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ImgBlock/ImgBlock.js +5 -2
- package/lib/components/ImgBlock/ImgBlock.js.map +1 -1
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +4 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +4 -1
- package/mobile/dist/components/ImgBlock/ImgBlock.js +5 -2
- package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +4 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/dist/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlock.js +5 -2
- package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +4 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js +1 -1
- package/mobile/lib/ui-kit/Select/SelectPopup.js.map +1 -1
- package/mobile/src/components/ImgBlock/ImgBlock.tsx +6 -2
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +5 -1
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/mobile/src/ui-kit/Select/SelectPopup.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ImgBlock/ImgBlock.tsx +6 -2
- package/src/components/ImgBlock/ImgBlockContent.ts +5 -1
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/src/ui-kit/Select/SelectPopup.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -1000,7 +1000,7 @@
|
|
|
1000
1000
|
return options.filter((_) => _.text?.toLocaleLowerCase().includes(query?.trim().toLocaleLowerCase()));
|
|
1001
1001
|
};
|
|
1002
1002
|
|
|
1003
|
-
const SelectPopup = JSX(({ popupRef, options, value, query, onChange, iconVersion }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md", role: "list", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "listitem", "aria-selected": option.key === value?.key, onClick: (e) => {
|
|
1003
|
+
const SelectPopup = JSX(({ popupRef, options, value, query, onChange, iconVersion }) => options?.length ? (jsx("div", { className: "bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl", role: "list", ref: popupRef, children: filterOptions(options, query).map((option) => (jsxs("div", { className: "flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative", role: "listitem", "aria-selected": option.key === value?.key, onClick: (e) => {
|
|
1004
1004
|
e.stopPropagation();
|
|
1005
1005
|
if (onChange) {
|
|
1006
1006
|
onChange(option);
|
|
@@ -1036,7 +1036,7 @@
|
|
|
1036
1036
|
|
|
1037
1037
|
const Select = JSX(
|
|
1038
1038
|
// eslint-disable-next-line complexity
|
|
1039
|
-
({ className, label, options = [], value, valid = true, isBorder = true, placeholder = '', isSearch = false, iconVersion, onChange, disabled, }) => {
|
|
1039
|
+
({ className, label, options = [], value, valid = true, isBorder = true, placeholder = '', isSearch = false, iconVersion = 'black', onChange, disabled, }) => {
|
|
1040
1040
|
const [isOpen, { setFalse: close, setTrue: open }] = useBool();
|
|
1041
1041
|
const [query, setQuery] = useState('');
|
|
1042
1042
|
const isDisabled = disabled || options.length === 0;
|
|
@@ -4433,8 +4433,9 @@
|
|
|
4433
4433
|
});
|
|
4434
4434
|
|
|
4435
4435
|
const ImgBlock = JSX((props) => {
|
|
4436
|
-
const { className, image, ...rest } = props;
|
|
4437
|
-
|
|
4436
|
+
const { className, align, image, ...rest } = props;
|
|
4437
|
+
const alignStyle = align ? style('flex', AlignJustifyStyle[align]) : '';
|
|
4438
|
+
return (jsx(BlockWrapper, { className: style(alignStyle, className), defaultPadding: "p-0", ...rest, children: jsx(Img, { image: image }) }));
|
|
4438
4439
|
});
|
|
4439
4440
|
|
|
4440
4441
|
const InsuranceAmountBlockInner = JSX(({ className = '', cards = [], button }) => {
|
|
@@ -6137,7 +6138,7 @@
|
|
|
6137
6138
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6138
6139
|
});
|
|
6139
6140
|
|
|
6140
|
-
const packageVersion = "0.14.
|
|
6141
|
+
const packageVersion = "0.14.251";
|
|
6141
6142
|
|
|
6142
6143
|
exports.Blocks = Blocks;
|
|
6143
6144
|
exports.ContentPage = ContentPage;
|