@redneckz/wildless-cms-uni-blocks 0.14.769 → 0.14.770
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/bundle.umd.js +2 -2
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/Button/SubmitButton.js +2 -1
- package/dist/ui-kit/Button/SubmitButton.js.map +1 -1
- package/lib/ui-kit/Button/SubmitButton.js +2 -1
- package/lib/ui-kit/Button/SubmitButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +2 -2
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/Button/SubmitButton.js +2 -1
- package/mobile/dist/ui-kit/Button/SubmitButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/SubmitButton.js +2 -1
- package/mobile/lib/ui-kit/Button/SubmitButton.js.map +1 -1
- package/mobile/src/ui-kit/Button/SubmitButton.tsx +14 -6
- package/package.json +1 -1
- package/src/ui-kit/Button/SubmitButton.tsx +14 -6
|
@@ -2,7 +2,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
2
2
|
exports.SubmitButton = 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
|
+
const style_1 = require("../../utils/style");
|
|
5
6
|
const Loader_1 = require("../Loader/Loader");
|
|
6
7
|
const Button_1 = require("./Button");
|
|
7
|
-
exports.SubmitButton = (0, uni_jsx_1.JSX)(({ isLoading, disabled, children, ...rest }) => ((0, jsx_runtime_1.jsxs)(Button_1.Button, { type: "submit", disabled: isLoading || disabled, ...rest, children: [isLoading ? (0, jsx_runtime_1.jsx)(Loader_1.Loader, { blur: true, size: "small" }) : null, children] })));
|
|
8
|
+
exports.SubmitButton = (0, uni_jsx_1.JSX)(({ isLoading, disabled, children, className, ...rest }) => ((0, jsx_runtime_1.jsxs)(Button_1.Button, { type: "submit", className: (0, style_1.style)('relative', className), disabled: isLoading || disabled, ...rest, children: [isLoading ? (0, jsx_runtime_1.jsx)(Loader_1.Loader, { blur: true, size: "small" }) : null, children] })));
|
|
8
9
|
//# sourceMappingURL=SubmitButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/SubmitButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,qCAAoD;AAMvC,QAAA,YAAY,GAAG,IAAA,aAAG,
|
|
1
|
+
{"version":3,"file":"SubmitButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/SubmitButton.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAC1C,6CAA0C;AAC1C,qCAAoD;AAMvC,QAAA,YAAY,GAAG,IAAA,aAAG,EAC7B,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACzD,wBAAC,eAAM,IACL,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,IAAA,aAAK,EAAC,UAAU,EAAE,SAAS,CAAC,EACvC,QAAQ,EAAE,SAAS,IAAI,QAAQ,KAC3B,IAAI,aAEP,SAAS,CAAC,CAAC,CAAC,uBAAC,eAAM,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,EACtD,QAAQ,IACF,CACV,CACF,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { style } from '../../utils/style.js';
|
|
3
4
|
import { Loader } from '../Loader/Loader.js';
|
|
4
5
|
import { Button } from './Button.js';
|
|
5
|
-
export const SubmitButton = JSX(({ isLoading, disabled, children, ...rest }) => (_jsxs(Button, { type: "submit", disabled: isLoading || disabled, ...rest, children: [isLoading ? _jsx(Loader, { blur: true, size: "small" }) : null, children] })));
|
|
6
|
+
export const SubmitButton = JSX(({ isLoading, disabled, children, className, ...rest }) => (_jsxs(Button, { type: "submit", className: style('relative', className), disabled: isLoading || disabled, ...rest, children: [isLoading ? _jsx(Loader, { blur: true, size: "small" }) : null, children] })));
|
|
6
7
|
//# sourceMappingURL=SubmitButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/SubmitButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAC;AAMpD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"SubmitButton.js","sourceRoot":"","sources":["../../../src/ui-kit/Button/SubmitButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAC;AAMpD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAC7B,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,CAAC,CACzD,MAAC,MAAM,IACL,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,CAAC,EACvC,QAAQ,EAAE,SAAS,IAAI,QAAQ,KAC3B,IAAI,aAEP,SAAS,CAAC,CAAC,CAAC,KAAC,MAAM,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,EACtD,QAAQ,IACF,CACV,CACF,CAAC"}
|
|
@@ -2377,7 +2377,7 @@
|
|
|
2377
2377
|
'backdrop-blur': blur,
|
|
2378
2378
|
}), children: jsx("div", { className: style('inline-block', 'animate-spin rounded-full', 'border-solid border-current', 'border-r-transparent', size === 'small' ? 'border-4 h-8 w-8' : 'border-8 h-28 w-28', color), role: "status" }) })));
|
|
2379
2379
|
|
|
2380
|
-
const SubmitButton = JSX(({ isLoading, disabled, children, ...rest }) => (jsxs(Button, { type: "submit", disabled: isLoading || disabled, ...rest, children: [isLoading ? jsx(Loader, { blur: true, size: "small" }) : null, children] })));
|
|
2380
|
+
const SubmitButton = JSX(({ isLoading, disabled, children, className, ...rest }) => (jsxs(Button, { type: "submit", className: style('relative', className), disabled: isLoading || disabled, ...rest, children: [isLoading ? jsx(Loader, { blur: true, size: "small" }) : null, children] })));
|
|
2381
2381
|
|
|
2382
2382
|
const themeStyle = {
|
|
2383
2383
|
primary: themeStyle$1.primary,
|
|
@@ -6637,7 +6637,7 @@
|
|
|
6637
6637
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
6638
6638
|
});
|
|
6639
6639
|
|
|
6640
|
-
const packageVersion = "0.14.
|
|
6640
|
+
const packageVersion = "0.14.769";
|
|
6641
6641
|
|
|
6642
6642
|
exports.Blocks = Blocks;
|
|
6643
6643
|
exports.ContentPage = ContentPage;
|