@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"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
2
3
|
import { Loader } from '../Loader/Loader';
|
|
3
4
|
import { Button, type ButtonProps } from './Button';
|
|
4
5
|
|
|
@@ -6,9 +7,16 @@ export interface SubmitButtonProps extends ButtonProps {
|
|
|
6
7
|
isLoading?: boolean;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
export const SubmitButton = JSX<SubmitButtonProps>(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export const SubmitButton = JSX<SubmitButtonProps>(
|
|
11
|
+
({ isLoading, disabled, children, className, ...rest }) => (
|
|
12
|
+
<Button
|
|
13
|
+
type="submit"
|
|
14
|
+
className={style('relative', className)}
|
|
15
|
+
disabled={isLoading || disabled}
|
|
16
|
+
{...rest}
|
|
17
|
+
>
|
|
18
|
+
{isLoading ? <Loader blur={true} size="small" /> : null}
|
|
19
|
+
{children}
|
|
20
|
+
</Button>
|
|
21
|
+
),
|
|
22
|
+
);
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { style } from '../../utils/style';
|
|
2
3
|
import { Loader } from '../Loader/Loader';
|
|
3
4
|
import { Button, type ButtonProps } from './Button';
|
|
4
5
|
|
|
@@ -6,9 +7,16 @@ export interface SubmitButtonProps extends ButtonProps {
|
|
|
6
7
|
isLoading?: boolean;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
export const SubmitButton = JSX<SubmitButtonProps>(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
export const SubmitButton = JSX<SubmitButtonProps>(
|
|
11
|
+
({ isLoading, disabled, children, className, ...rest }) => (
|
|
12
|
+
<Button
|
|
13
|
+
type="submit"
|
|
14
|
+
className={style('relative', className)}
|
|
15
|
+
disabled={isLoading || disabled}
|
|
16
|
+
{...rest}
|
|
17
|
+
>
|
|
18
|
+
{isLoading ? <Loader blur={true} size="small" /> : null}
|
|
19
|
+
{children}
|
|
20
|
+
</Button>
|
|
21
|
+
),
|
|
22
|
+
);
|