@xylabs/react-button 2.19.1 → 3.1.0-rc.2

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.
Files changed (50) hide show
  1. package/dist/components/ButtonEx.d.ts.map +1 -0
  2. package/dist/components/ButtonEx.stories.d.ts +8 -0
  3. package/dist/components/ButtonEx.stories.d.ts.map +1 -0
  4. package/dist/components/ButtonExBase.d.ts.map +1 -0
  5. package/dist/components/ButtonExProps.d.ts.map +1 -0
  6. package/dist/components/ButtonExTo.d.ts.map +1 -0
  7. package/dist/components/index.d.ts.map +1 -0
  8. package/dist/index.d.mts.map +1 -0
  9. package/dist/index.d.ts +2 -0
  10. package/dist/{types/index.d.ts.map → index.d.ts.map} +1 -1
  11. package/dist/index.js +81 -0
  12. package/dist/index.js.map +1 -0
  13. package/dist/index.mjs +54 -0
  14. package/dist/index.mjs.map +1 -0
  15. package/package.json +26 -15
  16. package/dist/cjs/components/ButtonEx.js +0 -20
  17. package/dist/cjs/components/ButtonEx.js.map +0 -1
  18. package/dist/cjs/components/ButtonExBase.js +0 -21
  19. package/dist/cjs/components/ButtonExBase.js.map +0 -1
  20. package/dist/cjs/components/ButtonExProps.js +0 -3
  21. package/dist/cjs/components/ButtonExProps.js.map +0 -1
  22. package/dist/cjs/components/ButtonExTo.js +0 -22
  23. package/dist/cjs/components/ButtonExTo.js.map +0 -1
  24. package/dist/cjs/components/index.js +0 -6
  25. package/dist/cjs/components/index.js.map +0 -1
  26. package/dist/cjs/index.js +0 -5
  27. package/dist/cjs/index.js.map +0 -1
  28. package/dist/esm/components/ButtonEx.js +0 -15
  29. package/dist/esm/components/ButtonEx.js.map +0 -1
  30. package/dist/esm/components/ButtonExBase.js +0 -17
  31. package/dist/esm/components/ButtonExBase.js.map +0 -1
  32. package/dist/esm/components/ButtonExProps.js +0 -2
  33. package/dist/esm/components/ButtonExProps.js.map +0 -1
  34. package/dist/esm/components/ButtonExTo.js +0 -17
  35. package/dist/esm/components/ButtonExTo.js.map +0 -1
  36. package/dist/esm/components/index.js +0 -3
  37. package/dist/esm/components/index.js.map +0 -1
  38. package/dist/esm/index.js +0 -2
  39. package/dist/esm/index.js.map +0 -1
  40. package/dist/types/components/ButtonEx.d.ts.map +0 -1
  41. package/dist/types/components/ButtonExBase.d.ts.map +0 -1
  42. package/dist/types/components/ButtonExProps.d.ts.map +0 -1
  43. package/dist/types/components/ButtonExTo.d.ts.map +0 -1
  44. package/dist/types/components/index.d.ts.map +0 -1
  45. /package/dist/{types/components → components}/ButtonEx.d.ts +0 -0
  46. /package/dist/{types/components → components}/ButtonExBase.d.ts +0 -0
  47. /package/dist/{types/components → components}/ButtonExProps.d.ts +0 -0
  48. /package/dist/{types/components → components}/ButtonExTo.d.ts +0 -0
  49. /package/dist/{types/components → components}/index.d.ts +0 -0
  50. /package/dist/{types/index.d.ts → index.d.mts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonEx.d.ts","sourceRoot":"","sources":["../../src/components/ButtonEx.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG/C,QAAA,MAAM,QAAQ,6GAMZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./ButtonExProps").ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
3
+ declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ButtonExProps").ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ declare const BusyCircular: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ButtonExProps").ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ declare const BusyLinear: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./ButtonExProps").ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
6
+ export { BusyCircular, BusyLinear, Default };
7
+ export default StorybookEntry;
8
+ //# sourceMappingURL=ButtonEx.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonEx.stories.d.ts","sourceRoot":"","sources":["../../src/components/ButtonEx.stories.tsx"],"names":[],"mappings":";AAKA,QAAA,MAAM,cAAc,+LASM,CAAA;AAoB1B,QAAA,MAAM,OAAO,2LAA2B,CAAA;AAGxC,QAAA,MAAM,YAAY,2LAA2B,CAAA;AAG7C,QAAA,MAAM,UAAU,2LAA2B,CAAA;AAG3C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,CAAA;AAE5C,eAAe,cAAc,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonExBase.d.ts","sourceRoot":"","sources":["../../src/components/ButtonExBase.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,YAAY,6GAiBhB,CAAA;AAIF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonExProps.d.ts","sourceRoot":"","sources":["../../src/components/ButtonExProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAEtD,UAAU,aAAc,SAAQ,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,qBAAqB,EAAE,SAAS;IACxF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,SAAS,CAAC,EAAE,eAAe,CAAA;CAC5B;AAED,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonExTo.d.ts","sourceRoot":"","sources":["../../src/components/ButtonExTo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,UAAU,yFAUd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ ButtonEx: () => ButtonEx
24
+ });
25
+ module.exports = __toCommonJS(src_exports);
26
+
27
+ // src/components/ButtonEx.tsx
28
+ var import_react3 = require("react");
29
+
30
+ // src/components/ButtonExBase.tsx
31
+ var import_material = require("@mui/material");
32
+ var import_react_shared = require("@xylabs/react-shared");
33
+ var import_react = require("react");
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var ButtonExBase = (0, import_react.forwardRef)((props, ref) => {
36
+ const theme = (0, import_material.useTheme)();
37
+ const { busy, busyVariant = "linear", busyOpacity, onClick, children, ...rootProps } = (0, import_react_shared.mergeBoxlikeStyles)(theme, props);
38
+ const localOnClick = (event) => {
39
+ if (!busy) {
40
+ onClick?.(event);
41
+ }
42
+ };
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Button, { ref, onClick: localOnClick, ...rootProps, children: [
44
+ busy && busyVariant === "linear" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.BusyLinearProgress, { rounded: true, opacity: busyOpacity ?? 0 }) : null,
45
+ busy && busyVariant === "circular" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_shared.BusyCircularProgress, { rounded: true, size: 24, opacity: busyOpacity ?? 0.5 }) : null,
46
+ children
47
+ ] });
48
+ });
49
+ ButtonExBase.displayName = "ButtonExBaseXYLabs";
50
+
51
+ // src/components/ButtonExTo.tsx
52
+ var import_react2 = require("react");
53
+ var import_react_router_dom = require("react-router-dom");
54
+ var import_jsx_runtime2 = require("react/jsx-runtime");
55
+ var ButtonExTo = (0, import_react2.forwardRef)(({ to, toOptions, onClick, ...props }, ref) => {
56
+ const navigate = (0, import_react_router_dom.useNavigate)();
57
+ const localOnClick = (event) => {
58
+ onClick?.(event);
59
+ if (to) {
60
+ navigate(to, toOptions);
61
+ }
62
+ };
63
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ButtonExBase, { ref, onClick: localOnClick, ...props });
64
+ });
65
+ ButtonExTo.displayName = "ButtonExToXYLabs";
66
+
67
+ // src/components/ButtonEx.tsx
68
+ var import_jsx_runtime3 = require("react/jsx-runtime");
69
+ var ButtonEx = (0, import_react3.forwardRef)(({ to, ...props }, ref) => {
70
+ if (to) {
71
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonExTo, { to, ref, ...props });
72
+ } else {
73
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonExBase, { ...props });
74
+ }
75
+ });
76
+ ButtonEx.displayName = "ButtonExXYLabs";
77
+ // Annotate the CommonJS export names for ESM import in node:
78
+ 0 && (module.exports = {
79
+ ButtonEx
80
+ });
81
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/components/ButtonEx.tsx","../src/components/ButtonExBase.tsx","../src/components/ButtonExTo.tsx"],"sourcesContent":["export * from './components'\n","import { forwardRef } from 'react'\n\nimport { ButtonExBase } from './ButtonExBase'\nimport { ButtonExProps } from './ButtonExProps'\nimport { ButtonExTo } from './ButtonExTo'\n\nconst ButtonEx = forwardRef<HTMLButtonElement, ButtonExProps>(({ to, ...props }, ref) => {\n if (to) {\n return <ButtonExTo to={to} ref={ref} {...props} />\n } else {\n return <ButtonExBase {...props} />\n }\n})\n\nButtonEx.displayName = 'ButtonExXYLabs'\n\nexport { ButtonEx }\n","import { Button, useTheme } from '@mui/material'\nimport { BusyCircularProgress, BusyLinearProgress, mergeBoxlikeStyles } from '@xylabs/react-shared'\nimport { forwardRef, MouseEvent } from 'react'\n\nimport { ButtonExProps } from './ButtonExProps'\n\nconst ButtonExBase = forwardRef<HTMLButtonElement, ButtonExProps>((props, ref) => {\n const theme = useTheme()\n const { busy, busyVariant = 'linear', busyOpacity, onClick, children, ...rootProps } = mergeBoxlikeStyles<ButtonExProps>(theme, props)\n\n const localOnClick = (event: MouseEvent<HTMLButtonElement>) => {\n if (!busy) {\n onClick?.(event)\n }\n }\n\n return (\n <Button ref={ref} onClick={localOnClick} {...rootProps}>\n {busy && busyVariant === 'linear' ? <BusyLinearProgress rounded opacity={busyOpacity ?? 0} /> : null}\n {busy && busyVariant === 'circular' ? <BusyCircularProgress rounded size={24} opacity={busyOpacity ?? 0.5} /> : null}\n {children}\n </Button>\n )\n})\n\nButtonExBase.displayName = 'ButtonExBaseXYLabs'\n\nexport { ButtonExBase }\n","import React, { forwardRef, MouseEvent } from 'react'\nimport { useNavigate } from 'react-router-dom'\n\nimport { ButtonExBase } from './ButtonExBase'\nimport { ButtonExProps } from './ButtonExProps'\n\nconst ButtonExTo = forwardRef<HTMLButtonElement, ButtonExProps>(({ to, toOptions, onClick, ...props }, ref) => {\n const navigate = useNavigate()\n const localOnClick = (event: MouseEvent<HTMLButtonElement>) => {\n onClick?.(event)\n if (to) {\n navigate(to, toOptions)\n }\n }\n\n return <ButtonExBase ref={ref} onClick={localOnClick} {...props} />\n})\n\nButtonExTo.displayName = 'ButtonExToXYLabs'\n\nexport { ButtonExTo }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA2B;;;ACA3B,sBAAiC;AACjC,0BAA6E;AAC7E,mBAAuC;AAenC;AAXJ,IAAM,mBAAe,yBAA6C,CAAC,OAAO,QAAQ;AAChF,QAAM,YAAQ,0BAAS;AACvB,QAAM,EAAE,MAAM,cAAc,UAAU,aAAa,SAAS,UAAU,GAAG,UAAU,QAAI,wCAAkC,OAAO,KAAK;AAErI,QAAM,eAAe,CAAC,UAAyC;AAC7D,QAAI,CAAC,MAAM;AACT,gBAAU,KAAK;AAAA,IACjB;AAAA,EACF;AAEA,SACE,6CAAC,0BAAO,KAAU,SAAS,cAAe,GAAG,WAC1C;AAAA,YAAQ,gBAAgB,WAAW,4CAAC,0CAAmB,SAAO,MAAC,SAAS,eAAe,GAAG,IAAK;AAAA,IAC/F,QAAQ,gBAAgB,aAAa,4CAAC,4CAAqB,SAAO,MAAC,MAAM,IAAI,SAAS,eAAe,KAAK,IAAK;AAAA,IAC/G;AAAA,KACH;AAEJ,CAAC;AAED,aAAa,cAAc;;;ACzB3B,IAAAC,gBAA8C;AAC9C,8BAA4B;AAcnB,IAAAC,sBAAA;AATT,IAAM,iBAAa,0BAA6C,CAAC,EAAE,IAAI,WAAW,SAAS,GAAG,MAAM,GAAG,QAAQ;AAC7G,QAAM,eAAW,qCAAY;AAC7B,QAAM,eAAe,CAAC,UAAyC;AAC7D,cAAU,KAAK;AACf,QAAI,IAAI;AACN,eAAS,IAAI,SAAS;AAAA,IACxB;AAAA,EACF;AAEA,SAAO,6CAAC,gBAAa,KAAU,SAAS,cAAe,GAAG,OAAO;AACnE,CAAC;AAED,WAAW,cAAc;;;AFVd,IAAAC,sBAAA;AAFX,IAAM,eAAW,0BAA6C,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ;AACvF,MAAI,IAAI;AACN,WAAO,6CAAC,cAAW,IAAQ,KAAW,GAAG,OAAO;AAAA,EAClD,OAAO;AACL,WAAO,6CAAC,gBAAc,GAAG,OAAO;AAAA,EAClC;AACF,CAAC;AAED,SAAS,cAAc;","names":["import_react","import_react","import_jsx_runtime","import_jsx_runtime"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,54 @@
1
+ // src/components/ButtonEx.tsx
2
+ import { forwardRef as forwardRef3 } from "react";
3
+
4
+ // src/components/ButtonExBase.tsx
5
+ import { Button, useTheme } from "@mui/material";
6
+ import { BusyCircularProgress, BusyLinearProgress, mergeBoxlikeStyles } from "@xylabs/react-shared";
7
+ import { forwardRef } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var ButtonExBase = forwardRef((props, ref) => {
10
+ const theme = useTheme();
11
+ const { busy, busyVariant = "linear", busyOpacity, onClick, children, ...rootProps } = mergeBoxlikeStyles(theme, props);
12
+ const localOnClick = (event) => {
13
+ if (!busy) {
14
+ onClick?.(event);
15
+ }
16
+ };
17
+ return /* @__PURE__ */ jsxs(Button, { ref, onClick: localOnClick, ...rootProps, children: [
18
+ busy && busyVariant === "linear" ? /* @__PURE__ */ jsx(BusyLinearProgress, { rounded: true, opacity: busyOpacity ?? 0 }) : null,
19
+ busy && busyVariant === "circular" ? /* @__PURE__ */ jsx(BusyCircularProgress, { rounded: true, size: 24, opacity: busyOpacity ?? 0.5 }) : null,
20
+ children
21
+ ] });
22
+ });
23
+ ButtonExBase.displayName = "ButtonExBaseXYLabs";
24
+
25
+ // src/components/ButtonExTo.tsx
26
+ import { forwardRef as forwardRef2 } from "react";
27
+ import { useNavigate } from "react-router-dom";
28
+ import { jsx as jsx2 } from "react/jsx-runtime";
29
+ var ButtonExTo = forwardRef2(({ to, toOptions, onClick, ...props }, ref) => {
30
+ const navigate = useNavigate();
31
+ const localOnClick = (event) => {
32
+ onClick?.(event);
33
+ if (to) {
34
+ navigate(to, toOptions);
35
+ }
36
+ };
37
+ return /* @__PURE__ */ jsx2(ButtonExBase, { ref, onClick: localOnClick, ...props });
38
+ });
39
+ ButtonExTo.displayName = "ButtonExToXYLabs";
40
+
41
+ // src/components/ButtonEx.tsx
42
+ import { jsx as jsx3 } from "react/jsx-runtime";
43
+ var ButtonEx = forwardRef3(({ to, ...props }, ref) => {
44
+ if (to) {
45
+ return /* @__PURE__ */ jsx3(ButtonExTo, { to, ref, ...props });
46
+ } else {
47
+ return /* @__PURE__ */ jsx3(ButtonExBase, { ...props });
48
+ }
49
+ });
50
+ ButtonEx.displayName = "ButtonExXYLabs";
51
+ export {
52
+ ButtonEx
53
+ };
54
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ButtonEx.tsx","../src/components/ButtonExBase.tsx","../src/components/ButtonExTo.tsx"],"sourcesContent":["import { forwardRef } from 'react'\n\nimport { ButtonExBase } from './ButtonExBase'\nimport { ButtonExProps } from './ButtonExProps'\nimport { ButtonExTo } from './ButtonExTo'\n\nconst ButtonEx = forwardRef<HTMLButtonElement, ButtonExProps>(({ to, ...props }, ref) => {\n if (to) {\n return <ButtonExTo to={to} ref={ref} {...props} />\n } else {\n return <ButtonExBase {...props} />\n }\n})\n\nButtonEx.displayName = 'ButtonExXYLabs'\n\nexport { ButtonEx }\n","import { Button, useTheme } from '@mui/material'\nimport { BusyCircularProgress, BusyLinearProgress, mergeBoxlikeStyles } from '@xylabs/react-shared'\nimport { forwardRef, MouseEvent } from 'react'\n\nimport { ButtonExProps } from './ButtonExProps'\n\nconst ButtonExBase = forwardRef<HTMLButtonElement, ButtonExProps>((props, ref) => {\n const theme = useTheme()\n const { busy, busyVariant = 'linear', busyOpacity, onClick, children, ...rootProps } = mergeBoxlikeStyles<ButtonExProps>(theme, props)\n\n const localOnClick = (event: MouseEvent<HTMLButtonElement>) => {\n if (!busy) {\n onClick?.(event)\n }\n }\n\n return (\n <Button ref={ref} onClick={localOnClick} {...rootProps}>\n {busy && busyVariant === 'linear' ? <BusyLinearProgress rounded opacity={busyOpacity ?? 0} /> : null}\n {busy && busyVariant === 'circular' ? <BusyCircularProgress rounded size={24} opacity={busyOpacity ?? 0.5} /> : null}\n {children}\n </Button>\n )\n})\n\nButtonExBase.displayName = 'ButtonExBaseXYLabs'\n\nexport { ButtonExBase }\n","import React, { forwardRef, MouseEvent } from 'react'\nimport { useNavigate } from 'react-router-dom'\n\nimport { ButtonExBase } from './ButtonExBase'\nimport { ButtonExProps } from './ButtonExProps'\n\nconst ButtonExTo = forwardRef<HTMLButtonElement, ButtonExProps>(({ to, toOptions, onClick, ...props }, ref) => {\n const navigate = useNavigate()\n const localOnClick = (event: MouseEvent<HTMLButtonElement>) => {\n onClick?.(event)\n if (to) {\n navigate(to, toOptions)\n }\n }\n\n return <ButtonExBase ref={ref} onClick={localOnClick} {...props} />\n})\n\nButtonExTo.displayName = 'ButtonExToXYLabs'\n\nexport { ButtonExTo }\n"],"mappings":";AAAA,SAAS,cAAAA,mBAAkB;;;ACA3B,SAAS,QAAQ,gBAAgB;AACjC,SAAS,sBAAsB,oBAAoB,0BAA0B;AAC7E,SAAS,kBAA8B;AAenC,SACsC,KADtC;AAXJ,IAAM,eAAe,WAA6C,CAAC,OAAO,QAAQ;AAChF,QAAM,QAAQ,SAAS;AACvB,QAAM,EAAE,MAAM,cAAc,UAAU,aAAa,SAAS,UAAU,GAAG,UAAU,IAAI,mBAAkC,OAAO,KAAK;AAErI,QAAM,eAAe,CAAC,UAAyC;AAC7D,QAAI,CAAC,MAAM;AACT,gBAAU,KAAK;AAAA,IACjB;AAAA,EACF;AAEA,SACE,qBAAC,UAAO,KAAU,SAAS,cAAe,GAAG,WAC1C;AAAA,YAAQ,gBAAgB,WAAW,oBAAC,sBAAmB,SAAO,MAAC,SAAS,eAAe,GAAG,IAAK;AAAA,IAC/F,QAAQ,gBAAgB,aAAa,oBAAC,wBAAqB,SAAO,MAAC,MAAM,IAAI,SAAS,eAAe,KAAK,IAAK;AAAA,IAC/G;AAAA,KACH;AAEJ,CAAC;AAED,aAAa,cAAc;;;ACzB3B,SAAgB,cAAAC,mBAA8B;AAC9C,SAAS,mBAAmB;AAcnB,gBAAAC,YAAA;AATT,IAAM,aAAaC,YAA6C,CAAC,EAAE,IAAI,WAAW,SAAS,GAAG,MAAM,GAAG,QAAQ;AAC7G,QAAM,WAAW,YAAY;AAC7B,QAAM,eAAe,CAAC,UAAyC;AAC7D,cAAU,KAAK;AACf,QAAI,IAAI;AACN,eAAS,IAAI,SAAS;AAAA,IACxB;AAAA,EACF;AAEA,SAAO,gBAAAD,KAAC,gBAAa,KAAU,SAAS,cAAe,GAAG,OAAO;AACnE,CAAC;AAED,WAAW,cAAc;;;AFVd,gBAAAE,YAAA;AAFX,IAAM,WAAWC,YAA6C,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ;AACvF,MAAI,IAAI;AACN,WAAO,gBAAAD,KAAC,cAAW,IAAQ,KAAW,GAAG,OAAO;AAAA,EAClD,OAAO;AACL,WAAO,gBAAAA,KAAC,gBAAc,GAAG,OAAO;AAAA,EAClC;AACF,CAAC;AAED,SAAS,cAAc;","names":["forwardRef","forwardRef","jsx","forwardRef","jsx","forwardRef"]}
package/package.json CHANGED
@@ -13,15 +13,15 @@
13
13
  "packages/*"
14
14
  ],
15
15
  "dependencies": {
16
- "@xylabs/react-shared": "~2.19.1"
16
+ "@xylabs/react-shared": "~3.1.0-rc.2"
17
17
  },
18
18
  "description": "Common React library for all XY Labs projects that use React",
19
19
  "devDependencies": {
20
20
  "@mui/material": "^5.14.10",
21
21
  "@storybook/react": "^7.4.3",
22
- "@xylabs/react-flexbox": "~2.19.1",
23
- "@xylabs/ts-scripts-yarn3": "^2.19.12",
24
- "@xylabs/tsconfig-react": "^2.19.12",
22
+ "@xylabs/react-flexbox": "~3.1.0-rc.2",
23
+ "@xylabs/ts-scripts-yarn3": "^3.0.28",
24
+ "@xylabs/tsconfig-react": "^3.0.28",
25
25
  "react": "^18.2.0",
26
26
  "react-dom": "^18.2.0",
27
27
  "react-router-dom": "^6.16.0",
@@ -33,27 +33,37 @@
33
33
  "react-dom": "^18",
34
34
  "react-router-dom": "^6"
35
35
  },
36
- "browser": "dist/esm/index.js",
37
- "docs": "dist/docs.json",
38
36
  "exports": {
39
37
  ".": {
40
38
  "node": {
41
- "import": "./dist/esm/index.js",
42
- "require": "./dist/cjs/index.js"
39
+ "import": {
40
+ "types": "./dist/index.d.mts",
41
+ "default": "./dist/index.mjs"
42
+ },
43
+ "require": {
44
+ "types": "./dist/index.d.ts",
45
+ "default": "./dist/index.js"
46
+ }
43
47
  },
44
48
  "browser": {
45
- "import": "./dist/esm/index.js",
46
- "require": "./dist/cjs/index.js"
49
+ "import": {
50
+ "types": "./dist/index.d.mts",
51
+ "default": "./dist/index.mjs"
52
+ },
53
+ "require": {
54
+ "types": "./dist/index.d.ts",
55
+ "default": "./dist/index.js"
56
+ }
47
57
  },
48
- "default": "./dist/esm/index.js"
58
+ "default": "./dist/index.mjs"
49
59
  },
50
60
  "./dist/docs.json": {
51
61
  "default": "./dist/docs.json"
52
62
  },
53
63
  "./package.json": "./package.json"
54
64
  },
55
- "main": "dist/cjs/index.js",
56
- "module": "dist/esm/index.js",
65
+ "main": "dist/index.js",
66
+ "module": "dist/index.mjs",
57
67
  "homepage": "https://xylabs.com",
58
68
  "keywords": [
59
69
  "utility",
@@ -69,6 +79,7 @@
69
79
  "url": "https://github.com/xylabs/sdk-react.git"
70
80
  },
71
81
  "sideEffects": false,
72
- "types": "dist/types/index.d.ts",
73
- "version": "2.19.1"
82
+ "types": "dist/index.d.ts",
83
+ "version": "3.1.0-rc.2",
84
+ "stableVersion": "3.0.0"
74
85
  }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ButtonEx = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const react_1 = require("react");
7
- const ButtonExBase_1 = require("./ButtonExBase");
8
- const ButtonExTo_1 = require("./ButtonExTo");
9
- const ButtonEx = (0, react_1.forwardRef)((_a, ref) => {
10
- var { to } = _a, props = tslib_1.__rest(_a, ["to"]);
11
- if (to) {
12
- return (0, jsx_runtime_1.jsx)(ButtonExTo_1.ButtonExTo, Object.assign({ to: to, ref: ref }, props));
13
- }
14
- else {
15
- return (0, jsx_runtime_1.jsx)(ButtonExBase_1.ButtonExBase, Object.assign({}, props));
16
- }
17
- });
18
- exports.ButtonEx = ButtonEx;
19
- ButtonEx.displayName = 'ButtonExXYLabs';
20
- //# sourceMappingURL=ButtonEx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonEx.js","sourceRoot":"","sources":["../../../src/components/ButtonEx.tsx"],"names":[],"mappings":";;;;;AAAA,iCAAkC;AAElC,iDAA6C;AAE7C,6CAAyC;AAEzC,MAAM,QAAQ,GAAG,IAAA,kBAAU,EAAmC,CAAC,EAAgB,EAAE,GAAG,EAAE,EAAE;QAAzB,EAAE,EAAE,OAAY,EAAP,KAAK,sBAAd,MAAgB,CAAF;IAC3E,IAAI,EAAE,EAAE;QACN,OAAO,uBAAC,uBAAU,kBAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAA;KACnD;SAAM;QACL,OAAO,uBAAC,2BAAY,oBAAK,KAAK,EAAI,CAAA;KACnC;AACH,CAAC,CAAC,CAAA;AAIO,4BAAQ;AAFjB,QAAQ,CAAC,WAAW,GAAG,gBAAgB,CAAA"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ButtonExBase = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const material_1 = require("@mui/material");
7
- const react_shared_1 = require("@xylabs/react-shared");
8
- const react_1 = require("react");
9
- const ButtonExBase = (0, react_1.forwardRef)((props, ref) => {
10
- const theme = (0, material_1.useTheme)();
11
- const _a = (0, react_shared_1.mergeBoxlikeStyles)(theme, props), { busy, busyVariant = 'linear', busyOpacity, onClick, children } = _a, rootProps = tslib_1.__rest(_a, ["busy", "busyVariant", "busyOpacity", "onClick", "children"]);
12
- const localOnClick = (event) => {
13
- if (!busy) {
14
- onClick === null || onClick === void 0 ? void 0 : onClick(event);
15
- }
16
- };
17
- return ((0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ ref: ref, onClick: localOnClick }, rootProps, { children: [busy && busyVariant === 'linear' ? (0, jsx_runtime_1.jsx)(react_shared_1.BusyLinearProgress, { rounded: true, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0 }) : null, busy && busyVariant === 'circular' ? (0, jsx_runtime_1.jsx)(react_shared_1.BusyCircularProgress, { rounded: true, size: 24, opacity: busyOpacity !== null && busyOpacity !== void 0 ? busyOpacity : 0.5 }) : null, children] })));
18
- });
19
- exports.ButtonExBase = ButtonExBase;
20
- ButtonExBase.displayName = 'ButtonExBaseXYLabs';
21
- //# sourceMappingURL=ButtonExBase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExBase.js","sourceRoot":"","sources":["../../../src/components/ButtonExBase.tsx"],"names":[],"mappings":";;;;;AAAA,4CAAgD;AAChD,uDAAmG;AACnG,iCAA8C;AAI9C,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAmC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC/E,MAAM,KAAK,GAAG,IAAA,mBAAQ,GAAE,CAAA;IACxB,MAAM,KAAiF,IAAA,iCAAkB,EAAgB,KAAK,EAAE,KAAK,CAAC,EAAhI,EAAE,IAAI,EAAE,WAAW,GAAG,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,OAAkE,EAA7D,SAAS,sBAA5E,6DAA8E,CAAkD,CAAA;IAEtI,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE;QAC5D,IAAI,CAAC,IAAI,EAAE;YACT,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAA;SACjB;IACH,CAAC,CAAA;IAED,OAAO,CACL,wBAAC,iBAAM,kBAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,IAAM,SAAS,eACnD,IAAI,IAAI,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,uBAAC,iCAAkB,IAAC,OAAO,QAAC,OAAO,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACnG,IAAI,IAAI,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,uBAAC,mCAAoB,IAAC,OAAO,QAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,GAAG,GAAI,CAAC,CAAC,CAAC,IAAI,EACnH,QAAQ,KACF,CACV,CAAA;AACH,CAAC,CAAC,CAAA;AAIO,oCAAY;AAFrB,YAAY,CAAC,WAAW,GAAG,oBAAoB,CAAA"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=ButtonExProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExProps.js","sourceRoot":"","sources":["../../../src/components/ButtonExProps.tsx"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ButtonExTo = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const react_1 = require("react");
7
- const react_router_dom_1 = require("react-router-dom");
8
- const ButtonExBase_1 = require("./ButtonExBase");
9
- const ButtonExTo = (0, react_1.forwardRef)((_a, ref) => {
10
- var { to, toOptions, onClick } = _a, props = tslib_1.__rest(_a, ["to", "toOptions", "onClick"]);
11
- const navigate = (0, react_router_dom_1.useNavigate)();
12
- const localOnClick = (event) => {
13
- onClick === null || onClick === void 0 ? void 0 : onClick(event);
14
- if (to) {
15
- navigate(to, toOptions);
16
- }
17
- };
18
- return (0, jsx_runtime_1.jsx)(ButtonExBase_1.ButtonExBase, Object.assign({ ref: ref, onClick: localOnClick }, props));
19
- });
20
- exports.ButtonExTo = ButtonExTo;
21
- ButtonExTo.displayName = 'ButtonExToXYLabs';
22
- //# sourceMappingURL=ButtonExTo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExTo.js","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":";;;;;AAAA,iCAAqD;AACrD,uDAA8C;AAE9C,iDAA6C;AAG7C,MAAM,UAAU,GAAG,IAAA,kBAAU,EAAmC,CAAC,EAAoC,EAAE,GAAG,EAAE,EAAE;QAA7C,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,OAAY,EAAP,KAAK,sBAAlC,8BAAoC,CAAF;IACjG,MAAM,QAAQ,GAAG,IAAA,8BAAW,GAAE,CAAA;IAC9B,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE;QAC5D,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAG,KAAK,CAAC,CAAA;QAChB,IAAI,EAAE,EAAE;YACN,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;SACxB;IACH,CAAC,CAAA;IAED,OAAO,uBAAC,2BAAY,kBAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,IAAM,KAAK,EAAI,CAAA;AACrE,CAAC,CAAC,CAAA;AAIO,gCAAU;AAFnB,UAAU,CAAC,WAAW,GAAG,kBAAkB,CAAA"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./ButtonEx"), exports);
5
- tslib_1.__exportStar(require("./ButtonExProps"), exports);
6
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0B;AAC1B,0DAA+B"}
package/dist/cjs/index.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./components"), exports);
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uDAA4B"}
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import { ButtonExBase } from './ButtonExBase';
4
- import { ButtonExTo } from './ButtonExTo';
5
- const ButtonEx = forwardRef(({ to, ...props }, ref) => {
6
- if (to) {
7
- return _jsx(ButtonExTo, { to: to, ref: ref, ...props });
8
- }
9
- else {
10
- return _jsx(ButtonExBase, { ...props });
11
- }
12
- });
13
- ButtonEx.displayName = 'ButtonExXYLabs';
14
- export { ButtonEx };
15
- //# sourceMappingURL=ButtonEx.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonEx.js","sourceRoot":"","sources":["../../../src/components/ButtonEx.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,QAAQ,GAAG,UAAU,CAAmC,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACtF,IAAI,EAAE,EAAE;QACN,OAAO,KAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,KAAM,KAAK,GAAI,CAAA;KACnD;SAAM;QACL,OAAO,KAAC,YAAY,OAAK,KAAK,GAAI,CAAA;KACnC;AACH,CAAC,CAAC,CAAA;AAEF,QAAQ,CAAC,WAAW,GAAG,gBAAgB,CAAA;AAEvC,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Button, useTheme } from '@mui/material';
3
- import { BusyCircularProgress, BusyLinearProgress, mergeBoxlikeStyles } from '@xylabs/react-shared';
4
- import { forwardRef } from 'react';
5
- const ButtonExBase = forwardRef((props, ref) => {
6
- const theme = useTheme();
7
- const { busy, busyVariant = 'linear', busyOpacity, onClick, children, ...rootProps } = mergeBoxlikeStyles(theme, props);
8
- const localOnClick = (event) => {
9
- if (!busy) {
10
- onClick?.(event);
11
- }
12
- };
13
- return (_jsxs(Button, { ref: ref, onClick: localOnClick, ...rootProps, children: [busy && busyVariant === 'linear' ? _jsx(BusyLinearProgress, { rounded: true, opacity: busyOpacity ?? 0 }) : null, busy && busyVariant === 'circular' ? _jsx(BusyCircularProgress, { rounded: true, size: 24, opacity: busyOpacity ?? 0.5 }) : null, children] }));
14
- });
15
- ButtonExBase.displayName = 'ButtonExBaseXYLabs';
16
- export { ButtonExBase };
17
- //# sourceMappingURL=ButtonExBase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExBase.js","sourceRoot":"","sources":["../../../src/components/ButtonExBase.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACnG,OAAO,EAAE,UAAU,EAAc,MAAM,OAAO,CAAA;AAI9C,MAAM,YAAY,GAAG,UAAU,CAAmC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC/E,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IACxB,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,kBAAkB,CAAgB,KAAK,EAAE,KAAK,CAAC,CAAA;IAEtI,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE;QAC5D,IAAI,CAAC,IAAI,EAAE;YACT,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;SACjB;IACH,CAAC,CAAA;IAED,OAAO,CACL,MAAC,MAAM,IAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,KAAM,SAAS,aACnD,IAAI,IAAI,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAC,kBAAkB,IAAC,OAAO,QAAC,OAAO,EAAE,WAAW,IAAI,CAAC,GAAI,CAAC,CAAC,CAAC,IAAI,EACnG,IAAI,IAAI,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,KAAC,oBAAoB,IAAC,OAAO,QAAC,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,IAAI,GAAG,GAAI,CAAC,CAAC,CAAC,IAAI,EACnH,QAAQ,IACF,CACV,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,YAAY,CAAC,WAAW,GAAG,oBAAoB,CAAA;AAE/C,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=ButtonExProps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExProps.js","sourceRoot":"","sources":["../../../src/components/ButtonExProps.tsx"],"names":[],"mappings":""}
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import { useNavigate } from 'react-router-dom';
4
- import { ButtonExBase } from './ButtonExBase';
5
- const ButtonExTo = forwardRef(({ to, toOptions, onClick, ...props }, ref) => {
6
- const navigate = useNavigate();
7
- const localOnClick = (event) => {
8
- onClick?.(event);
9
- if (to) {
10
- navigate(to, toOptions);
11
- }
12
- };
13
- return _jsx(ButtonExBase, { ref: ref, onClick: localOnClick, ...props });
14
- });
15
- ButtonExTo.displayName = 'ButtonExToXYLabs';
16
- export { ButtonExTo };
17
- //# sourceMappingURL=ButtonExTo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExTo.js","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,UAAU,EAAc,MAAM,OAAO,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,MAAM,UAAU,GAAG,UAAU,CAAmC,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC5G,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAA;IAC9B,MAAM,YAAY,GAAG,CAAC,KAAoC,EAAE,EAAE;QAC5D,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;QAChB,IAAI,EAAE,EAAE;YACN,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;SACxB;IACH,CAAC,CAAA;IAED,OAAO,KAAC,YAAY,IAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,KAAM,KAAK,GAAI,CAAA;AACrE,CAAC,CAAC,CAAA;AAEF,UAAU,CAAC,WAAW,GAAG,kBAAkB,CAAA;AAE3C,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './ButtonEx';
2
- export * from './ButtonExProps';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
package/dist/esm/index.js DELETED
@@ -1,2 +0,0 @@
1
- export * from './components';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonEx.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonEx.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG/C,QAAA,MAAM,QAAQ,6GAMZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExBase.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExBase.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,YAAY,6GAiBhB,CAAA;AAIF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExProps.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAEtD,UAAU,aAAc,SAAQ,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC,EAAE,qBAAqB,EAAE,SAAS;IACxF,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,SAAS,CAAC,EAAE,eAAe,CAAA;CAC5B;AAED,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ButtonExTo.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAA;AAIrD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,UAAU,yFAUd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
File without changes