@xylabs/react-button 3.1.0-rc.6 → 3.1.0

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 (99) hide show
  1. package/README.md +20 -49
  2. package/dist/browser/components/ButtonEx.d.cts +5 -0
  3. package/dist/browser/components/ButtonEx.d.cts.map +1 -0
  4. package/dist/browser/components/ButtonEx.d.mts.map +1 -1
  5. package/dist/browser/components/ButtonEx.d.ts.map +1 -1
  6. package/dist/browser/components/ButtonExBase.d.cts +5 -0
  7. package/dist/browser/components/ButtonExBase.d.cts.map +1 -0
  8. package/dist/browser/components/ButtonExBase.d.mts.map +1 -1
  9. package/dist/browser/components/ButtonExBase.d.ts.map +1 -1
  10. package/dist/browser/components/ButtonExProps.d.cts +10 -0
  11. package/dist/browser/components/ButtonExProps.d.cts.map +1 -0
  12. package/dist/browser/components/ButtonExProps.d.mts +1 -1
  13. package/dist/browser/components/ButtonExProps.d.mts.map +1 -1
  14. package/dist/browser/components/ButtonExProps.d.ts +1 -1
  15. package/dist/browser/components/ButtonExProps.d.ts.map +1 -1
  16. package/dist/browser/components/ButtonExTo.d.cts +5 -0
  17. package/dist/browser/components/ButtonExTo.d.cts.map +1 -0
  18. package/dist/browser/components/ButtonExTo.d.mts +3 -3
  19. package/dist/browser/components/ButtonExTo.d.mts.map +1 -1
  20. package/dist/browser/components/ButtonExTo.d.ts +3 -3
  21. package/dist/browser/components/ButtonExTo.d.ts.map +1 -1
  22. package/dist/browser/components/index.d.cts +3 -0
  23. package/dist/browser/components/index.d.cts.map +1 -0
  24. package/dist/{node/components/ButtonExBase.js → browser/index.cjs} +36 -10
  25. package/dist/browser/index.cjs.map +1 -0
  26. package/dist/browser/index.d.cts +2 -0
  27. package/dist/browser/index.d.cts.map +1 -0
  28. package/dist/browser/index.js +49 -1
  29. package/dist/browser/index.js.map +1 -1
  30. package/dist/node/components/ButtonEx.d.cts +5 -0
  31. package/dist/node/components/ButtonEx.d.cts.map +1 -0
  32. package/dist/node/components/ButtonEx.d.mts.map +1 -1
  33. package/dist/node/components/ButtonEx.d.ts.map +1 -1
  34. package/dist/node/components/ButtonExBase.d.cts +5 -0
  35. package/dist/node/components/ButtonExBase.d.cts.map +1 -0
  36. package/dist/node/components/ButtonExBase.d.mts.map +1 -1
  37. package/dist/node/components/ButtonExBase.d.ts.map +1 -1
  38. package/dist/node/components/ButtonExProps.d.cts +10 -0
  39. package/dist/node/components/ButtonExProps.d.cts.map +1 -0
  40. package/dist/node/components/ButtonExProps.d.mts +1 -1
  41. package/dist/node/components/ButtonExProps.d.mts.map +1 -1
  42. package/dist/node/components/ButtonExProps.d.ts +1 -1
  43. package/dist/node/components/ButtonExProps.d.ts.map +1 -1
  44. package/dist/node/components/ButtonExTo.d.cts +5 -0
  45. package/dist/node/components/ButtonExTo.d.cts.map +1 -0
  46. package/dist/node/components/ButtonExTo.d.mts +3 -3
  47. package/dist/node/components/ButtonExTo.d.mts.map +1 -1
  48. package/dist/node/components/ButtonExTo.d.ts +3 -3
  49. package/dist/node/components/ButtonExTo.d.ts.map +1 -1
  50. package/dist/node/components/index.d.cts +3 -0
  51. package/dist/node/components/index.d.cts.map +1 -0
  52. package/dist/node/index.cjs +77 -0
  53. package/dist/node/index.cjs.map +1 -0
  54. package/dist/node/index.d.cts +2 -0
  55. package/dist/node/index.d.cts.map +1 -0
  56. package/dist/node/index.js +48 -21
  57. package/dist/node/index.js.map +1 -1
  58. package/package.json +24 -22
  59. package/src/components/ButtonEx.tsx +2 -6
  60. package/src/components/ButtonExBase.tsx +6 -2
  61. package/src/components/ButtonExProps.tsx +1 -1
  62. package/src/components/ButtonExTo.tsx +4 -4
  63. package/dist/browser/components/ButtonEx.js +0 -16
  64. package/dist/browser/components/ButtonEx.js.map +0 -1
  65. package/dist/browser/components/ButtonEx.stories.js +0 -32
  66. package/dist/browser/components/ButtonEx.stories.js.map +0 -1
  67. package/dist/browser/components/ButtonExBase.js +0 -23
  68. package/dist/browser/components/ButtonExBase.js.map +0 -1
  69. package/dist/browser/components/ButtonExProps.js +0 -1
  70. package/dist/browser/components/ButtonExProps.js.map +0 -1
  71. package/dist/browser/components/ButtonExTo.js +0 -19
  72. package/dist/browser/components/ButtonExTo.js.map +0 -1
  73. package/dist/browser/components/index.js +0 -3
  74. package/dist/browser/components/index.js.map +0 -1
  75. package/dist/node/components/ButtonEx.js +0 -40
  76. package/dist/node/components/ButtonEx.js.map +0 -1
  77. package/dist/node/components/ButtonEx.mjs +0 -16
  78. package/dist/node/components/ButtonEx.mjs.map +0 -1
  79. package/dist/node/components/ButtonEx.stories.js +0 -58
  80. package/dist/node/components/ButtonEx.stories.js.map +0 -1
  81. package/dist/node/components/ButtonEx.stories.mjs +0 -32
  82. package/dist/node/components/ButtonEx.stories.mjs.map +0 -1
  83. package/dist/node/components/ButtonExBase.js.map +0 -1
  84. package/dist/node/components/ButtonExBase.mjs +0 -23
  85. package/dist/node/components/ButtonExBase.mjs.map +0 -1
  86. package/dist/node/components/ButtonExProps.js +0 -17
  87. package/dist/node/components/ButtonExProps.js.map +0 -1
  88. package/dist/node/components/ButtonExProps.mjs +0 -1
  89. package/dist/node/components/ButtonExProps.mjs.map +0 -1
  90. package/dist/node/components/ButtonExTo.js +0 -43
  91. package/dist/node/components/ButtonExTo.js.map +0 -1
  92. package/dist/node/components/ButtonExTo.mjs +0 -19
  93. package/dist/node/components/ButtonExTo.mjs.map +0 -1
  94. package/dist/node/components/index.js +0 -25
  95. package/dist/node/components/index.js.map +0 -1
  96. package/dist/node/components/index.mjs +0 -3
  97. package/dist/node/components/index.mjs.map +0 -1
  98. package/dist/node/index.mjs +0 -2
  99. package/dist/node/index.mjs.map +0 -1
package/README.md CHANGED
@@ -1,14 +1,11 @@
1
1
  [![logo][]](https://xylabs.com)
2
2
 
3
- # @xylabs/sdk-react
3
+ # @xylabs/react-button
4
4
 
5
- [![main-build][]][main-build-link]
6
- [![beta-build][]][beta-build-link]
7
5
  [![npm-badge][]][npm-link]
8
- [![bch-badge][]][bch-link]
9
- [![codacy-badge][]][codacy-link]
10
- [![codeclimate-badge][]][codeclimate-link]
11
- [![snyk-badge][]][snyk-link]
6
+ [![npm-downloads-badge][]][npm-link]
7
+ [![jsdelivr-badge][]][jsdelivr-link]
8
+ [![npm-license-badge][]](LICENSE)
12
9
 
13
10
  > XY Labs generalized React library
14
11
 
@@ -16,53 +13,39 @@
16
13
 
17
14
  - [Description](#description)
18
15
  - [Install](#install)
19
- - [Scripts](#scripts)
20
16
  - [Maintainers](#maintainers)
21
17
  - [License](#license)
22
18
  - [Credits](#credits)
23
19
 
24
20
  ## Description
25
21
 
26
- Common React code that is used throughtout XYO projects that use React.
22
+ Common React code that is used throughout XYO projects that use React.
27
23
 
28
24
  ## Install
29
25
 
30
26
  Using npm:
31
27
 
32
28
  ```sh
33
- npm i --save @xylabs/sdk-react
29
+ npm i --save @xylabs/react-button
34
30
  ```
35
31
 
36
32
  Using yarn:
37
33
 
38
34
  ```sh
39
- yarn add @xylabs/sdk-react
35
+ yarn add @xylabs/react-button
40
36
  ```
41
37
 
42
- ## Scripts
38
+ ## Documentation
39
+ [Developer Reference](https://xylabs.github.io/sdk-react)
43
40
 
44
- See [ts-scripts-yarn3](https://github.com/xylabs/ts-scripts-yarn3/blob/main/README.md) for
45
- list of shared scripts. The below scripts are custom scripts for this repo.
46
-
47
- ### Build (Storybook)
48
-
49
- Build the static Storybook site
50
-
51
- ```sh
52
- yarn build-storybook
53
- ```
54
-
55
- ### Start
56
-
57
- Starts the project in the browser for testing, with auto reload using Storybook
58
-
59
- ```sh
60
- yarn start
61
- ```
41
+ [Storybook](https://xylabs.github.io/sdk-react/storybook)
62
42
 
63
43
  ## Maintainers
64
44
 
65
- - [Arie Trouw](https://github.com/arietrouw) [arietrouw.com](https://arietrouw.com)
45
+ - [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
46
+ - [Matt Jones](https://github.com/jonesmac)
47
+ - [Joel Carter](https://github.com/JoelBCarter)
48
+ - [Jordan Trouw](https://github.com/jordantrouw)
66
49
 
67
50
  ## License
68
51
 
@@ -74,23 +57,11 @@ See the [LICENSE](LICENSE) file for license details
74
57
 
75
58
  [logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg
76
59
 
77
- [main-build]: https://github.com/xylabs/sdk-react/actions/workflows/build-main.yml/badge.svg
78
- [main-build-link]: https://github.com/xylabs/sdk-react/actions/workflows/build-main.yml
79
-
80
- [beta-build]: https://github.com/xylabs/sdk-react/actions/workflows/build-beta.yml/badge.svg
81
- [beta-build-link]: https://github.com/xylabs/sdk-react/actions/workflows/build-beta.yml
82
-
83
- [npm-badge]: https://img.shields.io/npm/v/@xylabs/sdk-react.svg
84
- [npm-link]: https://www.npmjs.com/package/@xylabs/sdk-react
85
-
86
- [bch-badge]: https://bettercodehub.com/edge/badge/xylabs/sdk-react?branch=main
87
- [bch-link]: https://bettercodehub.com/results/xylabs/sdk-react
88
-
89
- [codacy-badge]: https://app.codacy.com/project/badge/Grade/c2a69d4530ed4b7da6ddb070169dd339
90
- [codacy-link]: https://www.codacy.com/gh/xylabs/sdk-react/dashboard?utm_source=github.com&utm_medium=referral&utm_content=xylabs/sdk-react&utm_campaign=Badge_Grade
60
+ [npm-badge]: https://img.shields.io/npm/v/@xylabs/react-button.svg
61
+ [npm-link]: https://www.npmjs.com/package/@xylabs/react-button
91
62
 
92
- [codeclimate-badge]: https://api.codeclimate.com/v1/badges/c461e0bc2b00c0b01ac0/maintainability
93
- [codeclimate-link]: https://codeclimate.com/github/xylabs/sdk-react/maintainability
63
+ [npm-downloads-badge]: https://img.shields.io/npm/dw/@xylabs/react-button
64
+ [npm-license-badge]: https://img.shields.io/npm/l/@xylabs/react-button
94
65
 
95
- [snyk-badge]: https://snyk.io/test/github/xylabs/sdk-react/badge.svg?targetFile=package.json
96
- [snyk-link]: https://snyk.io/test/github/xylabs/sdk-react?targetFile=package.json
66
+ [jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xylabs/react-button/badge
67
+ [jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xylabs/react-button
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonExProps } from './ButtonExProps';
3
+ declare const ButtonEx: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonEx };
5
+ //# sourceMappingURL=ButtonEx.d.ts.map
@@ -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,6GAEZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1 +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"}
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,6GAEZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1 +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"}
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,6GAEZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonExProps } from './ButtonExProps';
3
+ declare const ButtonExBase: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonExBase };
5
+ //# sourceMappingURL=ButtonExBase.d.ts.map
@@ -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,6GAqBhB,CAAA;AAIF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1 +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"}
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,6GAqBhB,CAAA;AAIF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1 +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"}
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,6GAqBhB,CAAA;AAIF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from '@mui/material';
2
+ import { BoxlikeComponentProps, BusyProps } from '@xylabs/react-shared';
3
+ import type { NavigateOptions, To } from 'react-router-dom';
4
+ interface ButtonExProps extends Omit<ButtonProps, 'ref'>, BoxlikeComponentProps, BusyProps {
5
+ target?: string;
6
+ to?: To;
7
+ toOptions?: NavigateOptions;
8
+ }
9
+ export type { ButtonExProps };
10
+ //# sourceMappingURL=ButtonExProps.d.ts.map
@@ -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,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAE3D,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,6 +1,6 @@
1
1
  import { ButtonProps } from '@mui/material';
2
2
  import { BoxlikeComponentProps, BusyProps } from '@xylabs/react-shared';
3
- import { NavigateOptions, To } from 'react-router-dom';
3
+ import type { NavigateOptions, To } from 'react-router-dom';
4
4
  interface ButtonExProps extends Omit<ButtonProps, 'ref'>, BoxlikeComponentProps, BusyProps {
5
5
  target?: string;
6
6
  to?: To;
@@ -1 +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"}
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,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAE3D,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,6 +1,6 @@
1
1
  import { ButtonProps } from '@mui/material';
2
2
  import { BoxlikeComponentProps, BusyProps } from '@xylabs/react-shared';
3
- import { NavigateOptions, To } from 'react-router-dom';
3
+ import type { NavigateOptions, To } from 'react-router-dom';
4
4
  interface ButtonExProps extends Omit<ButtonProps, 'ref'>, BoxlikeComponentProps, BusyProps {
5
5
  target?: string;
6
6
  to?: To;
@@ -1 +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"}
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,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAE3D,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,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonExProps } from './ButtonExProps';
3
+ declare const ButtonToEx: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonToEx };
5
+ //# sourceMappingURL=ButtonExTo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonExTo.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,UAAU,6GAUd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ButtonExProps } from './ButtonExProps';
3
- declare const ButtonExTo: React.ForwardRefExoticComponent<ButtonExProps & React.RefAttributes<HTMLButtonElement>>;
4
- export { ButtonExTo };
3
+ declare const ButtonToEx: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonToEx };
5
5
  //# sourceMappingURL=ButtonExTo.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"ButtonExTo.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,UAAU,6GAUd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ButtonExProps } from './ButtonExProps';
3
- declare const ButtonExTo: React.ForwardRefExoticComponent<ButtonExProps & React.RefAttributes<HTMLButtonElement>>;
4
- export { ButtonExTo };
3
+ declare const ButtonToEx: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonToEx };
5
5
  //# sourceMappingURL=ButtonExTo.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"ButtonExTo.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,UAAU,6GAUd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './ButtonEx';
2
+ export * from './ButtonExProps';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -16,16 +16,23 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var ButtonExBase_exports = {};
20
- __export(ButtonExBase_exports, {
21
- ButtonExBase: () => ButtonExBase
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ ButtonEx: () => ButtonEx
22
24
  });
23
- module.exports = __toCommonJS(ButtonExBase_exports);
24
- var import_jsx_runtime = require("react/jsx-runtime");
25
+ module.exports = __toCommonJS(src_exports);
26
+
27
+ // src/components/ButtonEx.tsx
28
+ var import_react3 = require("react");
29
+
30
+ // src/components/ButtonExBase.tsx
25
31
  var import_material = require("@mui/material");
26
32
  var import_react_shared = require("@xylabs/react-shared");
27
33
  var import_react = require("react");
28
- const ButtonExBase = (0, import_react.forwardRef)((props, ref) => {
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var ButtonExBase = (0, import_react.forwardRef)((props, ref) => {
29
36
  const theme = (0, import_material.useTheme)();
30
37
  const { busy, busyVariant = "linear", busyOpacity, onClick, children, ...rootProps } = (0, import_react_shared.mergeBoxlikeStyles)(theme, props);
31
38
  const localOnClick = (event) => {
@@ -40,8 +47,27 @@ const ButtonExBase = (0, import_react.forwardRef)((props, ref) => {
40
47
  ] });
41
48
  });
42
49
  ButtonExBase.displayName = "ButtonExBaseXYLabs";
43
- // Annotate the CommonJS export names for ESM import in node:
44
- 0 && (module.exports = {
45
- ButtonExBase
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 ButtonToEx = (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
+ ButtonToEx.displayName = "ButtonToExXYLabs";
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
+ return to ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonToEx, { to, ref, ...props }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ButtonExBase, { ...props });
46
71
  });
47
- //# sourceMappingURL=ButtonExBase.js.map
72
+ ButtonEx.displayName = "ButtonExXYLabs";
73
+ //# sourceMappingURL=index.cjs.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 { ButtonToEx } from './ButtonExTo'\n\nconst ButtonEx = forwardRef<HTMLButtonElement, ButtonExProps>(({ to, ...props }, ref) => {\n return to ? <ButtonToEx to={to} ref={ref} {...props} /> : <ButtonExBase {...props} />\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' ?\n <BusyLinearProgress rounded opacity={busyOpacity ?? 0} />\n : null}\n {busy && busyVariant === 'circular' ?\n <BusyCircularProgress rounded size={24} opacity={busyOpacity ?? 0.5} />\n : null}\n {children}\n </Button>\n )\n})\n\nButtonExBase.displayName = 'ButtonExBaseXYLabs'\n\nexport { ButtonExBase }\n","import { forwardRef, MouseEvent } from 'react'\nimport { useNavigate } from 'react-router-dom'\n\nimport { ButtonExBase } from './ButtonExBase'\nimport { ButtonExProps } from './ButtonExProps'\n\nconst ButtonToEx = 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\nButtonToEx.displayName = 'ButtonToExXYLabs'\n\nexport { ButtonToEx }\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,WACvB,4CAAC,0CAAmB,SAAO,MAAC,SAAS,eAAe,GAAG,IACvD;AAAA,IACD,QAAQ,gBAAgB,aACvB,4CAAC,4CAAqB,SAAO,MAAC,MAAM,IAAI,SAAS,eAAe,KAAK,IACrE;AAAA,IACD;AAAA,KACH;AAEJ,CAAC;AAED,aAAa,cAAc;;;AC7B3B,IAAAC,gBAAuC;AACvC,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;;;AFXX,IAAAC,sBAAA;AADd,IAAM,eAAW,0BAA6C,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ;AACvF,SAAO,KAAK,6CAAC,cAAW,IAAQ,KAAW,GAAG,OAAO,IAAK,6CAAC,gBAAc,GAAG,OAAO;AACrF,CAAC;AAED,SAAS,cAAc;","names":["import_react","import_react","import_jsx_runtime","import_jsx_runtime"]}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1,2 +1,50 @@
1
- export * from "./components";
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 ButtonToEx = 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
+ ButtonToEx.displayName = "ButtonToExXYLabs";
40
+
41
+ // src/components/ButtonEx.tsx
42
+ import { jsx as jsx3 } from "react/jsx-runtime";
43
+ var ButtonEx = forwardRef3(({ to, ...props }, ref) => {
44
+ return to ? /* @__PURE__ */ jsx3(ButtonToEx, { to, ref, ...props }) : /* @__PURE__ */ jsx3(ButtonExBase, { ...props });
45
+ });
46
+ ButtonEx.displayName = "ButtonExXYLabs";
47
+ export {
48
+ ButtonEx
49
+ };
2
50
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './components'\n"],"mappings":"AAAA,cAAc;","names":[]}
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 { ButtonToEx } from './ButtonExTo'\n\nconst ButtonEx = forwardRef<HTMLButtonElement, ButtonExProps>(({ to, ...props }, ref) => {\n return to ? <ButtonToEx to={to} ref={ref} {...props} /> : <ButtonExBase {...props} />\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' ?\n <BusyLinearProgress rounded opacity={busyOpacity ?? 0} />\n : null}\n {busy && busyVariant === 'circular' ?\n <BusyCircularProgress rounded size={24} opacity={busyOpacity ?? 0.5} />\n : null}\n {children}\n </Button>\n )\n})\n\nButtonExBase.displayName = 'ButtonExBaseXYLabs'\n\nexport { ButtonExBase }\n","import { forwardRef, MouseEvent } from 'react'\nimport { useNavigate } from 'react-router-dom'\n\nimport { ButtonExBase } from './ButtonExBase'\nimport { ButtonExProps } from './ButtonExProps'\n\nconst ButtonToEx = 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\nButtonToEx.displayName = 'ButtonToExXYLabs'\n\nexport { ButtonToEx }\n"],"mappings":";AAAA,SAAS,cAAAA,mBAAkB;;;ACA3B,SAAS,QAAQ,gBAAgB;AACjC,SAAS,sBAAsB,oBAAoB,0BAA0B;AAC7E,SAAS,kBAA8B;AAenC,SAEI,KAFJ;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,WACvB,oBAAC,sBAAmB,SAAO,MAAC,SAAS,eAAe,GAAG,IACvD;AAAA,IACD,QAAQ,gBAAgB,aACvB,oBAAC,wBAAqB,SAAO,MAAC,MAAM,IAAI,SAAS,eAAe,KAAK,IACrE;AAAA,IACD;AAAA,KACH;AAEJ,CAAC;AAED,aAAa,cAAc;;;AC7B3B,SAAS,cAAAC,mBAA8B;AACvC,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;;;AFXX,gBAAAE,YAAA;AADd,IAAM,WAAWC,YAA6C,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,QAAQ;AACvF,SAAO,KAAK,gBAAAD,KAAC,cAAW,IAAQ,KAAW,GAAG,OAAO,IAAK,gBAAAA,KAAC,gBAAc,GAAG,OAAO;AACrF,CAAC;AAED,SAAS,cAAc;","names":["forwardRef","forwardRef","jsx","forwardRef","jsx","forwardRef"]}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonExProps } from './ButtonExProps';
3
+ declare const ButtonEx: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonEx };
5
+ //# sourceMappingURL=ButtonEx.d.ts.map
@@ -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,6GAEZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1 +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"}
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,6GAEZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1 +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"}
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,6GAEZ,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonExProps } from './ButtonExProps';
3
+ declare const ButtonExBase: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonExBase };
5
+ //# sourceMappingURL=ButtonExBase.d.ts.map
@@ -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,6GAqBhB,CAAA;AAIF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1 +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"}
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,6GAqBhB,CAAA;AAIF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1 +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"}
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,6GAqBhB,CAAA;AAIF,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from '@mui/material';
2
+ import { BoxlikeComponentProps, BusyProps } from '@xylabs/react-shared';
3
+ import type { NavigateOptions, To } from 'react-router-dom';
4
+ interface ButtonExProps extends Omit<ButtonProps, 'ref'>, BoxlikeComponentProps, BusyProps {
5
+ target?: string;
6
+ to?: To;
7
+ toOptions?: NavigateOptions;
8
+ }
9
+ export type { ButtonExProps };
10
+ //# sourceMappingURL=ButtonExProps.d.ts.map
@@ -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,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAE3D,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,6 +1,6 @@
1
1
  import { ButtonProps } from '@mui/material';
2
2
  import { BoxlikeComponentProps, BusyProps } from '@xylabs/react-shared';
3
- import { NavigateOptions, To } from 'react-router-dom';
3
+ import type { NavigateOptions, To } from 'react-router-dom';
4
4
  interface ButtonExProps extends Omit<ButtonProps, 'ref'>, BoxlikeComponentProps, BusyProps {
5
5
  target?: string;
6
6
  to?: To;
@@ -1 +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"}
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,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAE3D,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,6 +1,6 @@
1
1
  import { ButtonProps } from '@mui/material';
2
2
  import { BoxlikeComponentProps, BusyProps } from '@xylabs/react-shared';
3
- import { NavigateOptions, To } from 'react-router-dom';
3
+ import type { NavigateOptions, To } from 'react-router-dom';
4
4
  interface ButtonExProps extends Omit<ButtonProps, 'ref'>, BoxlikeComponentProps, BusyProps {
5
5
  target?: string;
6
6
  to?: To;
@@ -1 +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"}
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,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAE3D,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,5 @@
1
+ /// <reference types="react" />
2
+ import { ButtonExProps } from './ButtonExProps';
3
+ declare const ButtonToEx: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonToEx };
5
+ //# sourceMappingURL=ButtonExTo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonExTo.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,UAAU,6GAUd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ButtonExProps } from './ButtonExProps';
3
- declare const ButtonExTo: React.ForwardRefExoticComponent<ButtonExProps & React.RefAttributes<HTMLButtonElement>>;
4
- export { ButtonExTo };
3
+ declare const ButtonToEx: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonToEx };
5
5
  //# sourceMappingURL=ButtonExTo.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"ButtonExTo.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,UAAU,6GAUd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { ButtonExProps } from './ButtonExProps';
3
- declare const ButtonExTo: React.ForwardRefExoticComponent<ButtonExProps & React.RefAttributes<HTMLButtonElement>>;
4
- export { ButtonExTo };
3
+ declare const ButtonToEx: import("react").ForwardRefExoticComponent<ButtonExProps & import("react").RefAttributes<HTMLButtonElement>>;
4
+ export { ButtonToEx };
5
5
  //# sourceMappingURL=ButtonExTo.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"ButtonExTo.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonExTo.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,QAAA,MAAM,UAAU,6GAUd,CAAA;AAIF,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './ButtonEx';
2
+ export * from './ButtonExProps';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}