@bodynarf/react.components 1.7.1 → 1.7.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 (260) hide show
  1. package/{dist/components → components}/accordion/component/index.d.ts +7 -4
  2. package/components/accordion/component/index.d.ts.map +1 -0
  3. package/components/accordion/component/index.js +35 -0
  4. package/components/accordion/index.d.ts +3 -0
  5. package/components/accordion/index.d.ts.map +1 -0
  6. package/{dist/components/anchor/index.d.ts → components/accordion/index.js} +2 -2
  7. package/{dist/components → components}/accordion/types.d.ts +18 -16
  8. package/components/accordion/types.d.ts.map +1 -0
  9. package/components/accordion/types.js +1 -0
  10. package/components/anchor/component/index.d.ts +6 -0
  11. package/components/anchor/component/index.d.ts.map +1 -0
  12. package/components/anchor/component/index.js +20 -0
  13. package/{dist/components → components}/anchor/components/anchorWithIcon/index.d.ts +5 -3
  14. package/components/anchor/components/anchorWithIcon/index.d.ts.map +1 -0
  15. package/components/anchor/components/anchorWithIcon/index.js +16 -0
  16. package/{dist/components → components}/anchor/components/simpleAnchor/index.d.ts +5 -3
  17. package/components/anchor/components/simpleAnchor/index.d.ts.map +1 -0
  18. package/components/anchor/components/simpleAnchor/index.js +5 -0
  19. package/components/anchor/index.d.ts +3 -0
  20. package/components/anchor/index.d.ts.map +1 -0
  21. package/{dist/components/button/index.d.ts → components/anchor/index.js} +2 -2
  22. package/{dist/components → components}/anchor/types.d.ts +39 -38
  23. package/components/anchor/types.d.ts.map +1 -0
  24. package/components/anchor/types.js +1 -0
  25. package/{dist/components → components}/button/component/index.d.ts +9 -6
  26. package/components/button/component/index.d.ts.map +1 -0
  27. package/components/button/component/index.js +36 -0
  28. package/{dist/components → components}/button/components/buttonWithIcon/index.d.ts +5 -3
  29. package/components/button/components/buttonWithIcon/index.d.ts.map +1 -0
  30. package/components/button/components/buttonWithIcon/index.js +19 -0
  31. package/{dist/components → components}/button/components/simpleButton/index.d.ts +5 -3
  32. package/components/button/components/simpleButton/index.d.ts.map +1 -0
  33. package/components/button/components/simpleButton/index.js +5 -0
  34. package/components/button/index.d.ts +3 -0
  35. package/components/button/index.d.ts.map +1 -0
  36. package/{dist/components/dropdown/index.d.ts → components/button/index.js} +2 -2
  37. package/{dist/components → components}/button/types.d.ts +37 -36
  38. package/components/button/types.d.ts.map +1 -0
  39. package/components/button/types.js +4 -0
  40. package/components/dropdown/component/index.d.ts +7 -0
  41. package/components/dropdown/component/index.d.ts.map +1 -0
  42. package/components/dropdown/component/index.js +15 -0
  43. package/{dist/components → components}/dropdown/components/compact/index.d.ts +5 -3
  44. package/components/dropdown/components/compact/index.d.ts.map +1 -0
  45. package/components/dropdown/components/compact/index.js +62 -0
  46. package/{dist/components → components}/dropdown/components/item/index.d.ts +15 -13
  47. package/components/dropdown/components/item/index.d.ts.map +1 -0
  48. package/components/dropdown/components/item/index.js +6 -0
  49. package/{dist/components → components}/dropdown/components/label/index.d.ts +18 -17
  50. package/components/dropdown/components/label/index.d.ts.map +1 -0
  51. package/components/dropdown/components/label/index.js +22 -0
  52. package/{dist/components → components}/dropdown/components/withLabel/index.d.ts +5 -3
  53. package/components/dropdown/components/withLabel/index.d.ts.map +1 -0
  54. package/components/dropdown/components/withLabel/index.js +83 -0
  55. package/components/dropdown/index.d.ts +3 -0
  56. package/components/dropdown/index.d.ts.map +1 -0
  57. package/{dist/components/accordion/index.d.ts → components/dropdown/index.js} +2 -2
  58. package/{dist/components → components}/dropdown/types.d.ts +46 -45
  59. package/components/dropdown/types.d.ts.map +1 -0
  60. package/components/dropdown/types.js +1 -0
  61. package/components/icon/component/index.d.ts +8 -0
  62. package/components/icon/component/index.d.ts.map +1 -0
  63. package/components/icon/component/index.js +23 -0
  64. package/components/icon/index.d.ts +3 -0
  65. package/components/icon/index.d.ts.map +1 -0
  66. package/components/icon/index.js +2 -0
  67. package/{dist/components → components}/icon/types.d.ts +16 -15
  68. package/components/icon/types.d.ts.map +1 -0
  69. package/components/icon/types.js +1 -0
  70. package/components/index.d.ts +12 -0
  71. package/components/index.d.ts.map +1 -0
  72. package/{dist/components/index.d.ts → components/index.js} +11 -11
  73. package/{dist/components → components}/paginator/component/index.d.ts +8 -6
  74. package/components/paginator/component/index.d.ts.map +1 -0
  75. package/components/paginator/component/index.js +47 -0
  76. package/components/paginator/index.d.ts +4 -0
  77. package/components/paginator/index.d.ts.map +1 -0
  78. package/{dist/components/paginator/index.d.ts → components/paginator/index.js} +3 -3
  79. package/{dist/components → components}/paginator/types.d.ts +28 -27
  80. package/components/paginator/types.d.ts.map +1 -0
  81. package/components/paginator/types.js +1 -0
  82. package/{dist/components → components}/paginator/utils.d.ts +10 -9
  83. package/components/paginator/utils.d.ts.map +1 -0
  84. package/components/paginator/utils.js +18 -0
  85. package/{dist/components → components}/primitives/checkbox/component/index.d.ts +7 -4
  86. package/components/primitives/checkbox/component/index.d.ts.map +1 -0
  87. package/components/primitives/checkbox/component/index.js +37 -0
  88. package/components/primitives/checkbox/index.d.ts +3 -0
  89. package/components/primitives/checkbox/index.d.ts.map +1 -0
  90. package/components/primitives/checkbox/index.js +2 -0
  91. package/{dist/components → components}/primitives/checkbox/types.d.ts +25 -24
  92. package/components/primitives/checkbox/types.d.ts.map +1 -0
  93. package/components/primitives/checkbox/types.js +1 -0
  94. package/{dist/components → components}/primitives/date/component/index.d.ts +7 -4
  95. package/components/primitives/date/component/index.d.ts.map +1 -0
  96. package/components/primitives/date/component/index.js +48 -0
  97. package/components/primitives/date/index.d.ts +3 -0
  98. package/components/primitives/date/index.d.ts.map +1 -0
  99. package/components/primitives/date/index.js +2 -0
  100. package/{dist/components → components}/primitives/date/types.d.ts +9 -8
  101. package/components/primitives/date/types.d.ts.map +1 -0
  102. package/components/primitives/date/types.js +1 -0
  103. package/components/primitives/index.d.ts +8 -0
  104. package/components/primitives/index.d.ts.map +1 -0
  105. package/{dist/components/primitives/index.d.ts → components/primitives/index.js} +7 -7
  106. package/components/primitives/multiline/component/index.d.ts +7 -0
  107. package/components/primitives/multiline/component/index.d.ts.map +1 -0
  108. package/components/primitives/multiline/component/index.js +15 -0
  109. package/{dist/components → components}/primitives/multiline/components/multilineWithLabel/index.d.ts +6 -4
  110. package/components/primitives/multiline/components/multilineWithLabel/index.d.ts.map +1 -0
  111. package/components/primitives/multiline/components/multilineWithLabel/index.js +45 -0
  112. package/{dist/components → components}/primitives/multiline/components/multilineWithoutLabel/index.d.ts +6 -4
  113. package/components/primitives/multiline/components/multilineWithoutLabel/index.d.ts.map +1 -0
  114. package/components/primitives/multiline/components/multilineWithoutLabel/index.js +27 -0
  115. package/components/primitives/multiline/index.d.ts +3 -0
  116. package/components/primitives/multiline/index.d.ts.map +1 -0
  117. package/components/primitives/multiline/index.js +2 -0
  118. package/{dist/components → components}/primitives/multiline/types.d.ts +11 -10
  119. package/components/primitives/multiline/types.d.ts.map +1 -0
  120. package/components/primitives/multiline/types.js +1 -0
  121. package/components/primitives/number/component/index.d.ts +6 -0
  122. package/components/primitives/number/component/index.d.ts.map +1 -0
  123. package/components/primitives/number/component/index.js +14 -0
  124. package/{dist/components → components}/primitives/number/components/withLabel/index.d.ts +6 -4
  125. package/components/primitives/number/components/withLabel/index.d.ts.map +1 -0
  126. package/components/primitives/number/components/withLabel/index.js +44 -0
  127. package/{dist/components → components}/primitives/number/components/withoutLabel/index.d.ts +6 -4
  128. package/components/primitives/number/components/withoutLabel/index.d.ts.map +1 -0
  129. package/components/primitives/number/components/withoutLabel/index.js +26 -0
  130. package/components/primitives/number/index.d.ts +3 -0
  131. package/components/primitives/number/index.d.ts.map +1 -0
  132. package/components/primitives/number/index.js +2 -0
  133. package/{dist/components → components}/primitives/number/types.d.ts +13 -12
  134. package/components/primitives/number/types.d.ts.map +1 -0
  135. package/components/primitives/number/types.js +1 -0
  136. package/components/primitives/password/component/index.d.ts +7 -0
  137. package/components/primitives/password/component/index.d.ts.map +1 -0
  138. package/components/primitives/password/component/index.js +13 -0
  139. package/{dist/components → components}/primitives/password/components/withLabel/index.d.ts +5 -3
  140. package/components/primitives/password/components/withLabel/index.d.ts.map +1 -0
  141. package/components/primitives/password/components/withLabel/index.js +51 -0
  142. package/{dist/components → components}/primitives/password/components/withoutLabel/index.d.ts +5 -3
  143. package/components/primitives/password/components/withoutLabel/index.d.ts.map +1 -0
  144. package/components/primitives/password/components/withoutLabel/index.js +33 -0
  145. package/components/primitives/password/index.d.ts +3 -0
  146. package/components/primitives/password/index.d.ts.map +1 -0
  147. package/components/primitives/password/index.js +2 -0
  148. package/{dist/components → components}/primitives/password/types.d.ts +10 -9
  149. package/components/primitives/password/types.d.ts.map +1 -0
  150. package/components/primitives/password/types.js +1 -0
  151. package/components/primitives/text/component/index.d.ts +7 -0
  152. package/components/primitives/text/component/index.d.ts.map +1 -0
  153. package/components/primitives/text/component/index.js +15 -0
  154. package/{dist/components → components}/primitives/text/components/textWithLabel/index.d.ts +6 -4
  155. package/components/primitives/text/components/textWithLabel/index.d.ts.map +1 -0
  156. package/components/primitives/text/components/textWithLabel/index.js +44 -0
  157. package/{dist/components → components}/primitives/text/components/textWithoutLabel/index.d.ts +6 -4
  158. package/components/primitives/text/components/textWithoutLabel/index.d.ts.map +1 -0
  159. package/components/primitives/text/components/textWithoutLabel/index.js +26 -0
  160. package/components/primitives/text/index.d.ts +3 -0
  161. package/components/primitives/text/index.d.ts.map +1 -0
  162. package/components/primitives/text/index.js +2 -0
  163. package/{dist/components → components}/primitives/text/types.d.ts +7 -6
  164. package/components/primitives/text/types.d.ts.map +1 -0
  165. package/components/primitives/text/types.js +1 -0
  166. package/{dist/components → components}/primitives/types/baseProps.d.ts +30 -29
  167. package/components/primitives/types/baseProps.d.ts.map +1 -0
  168. package/components/primitives/types/baseProps.js +1 -0
  169. package/components/primitives/types/index.d.ts +4 -0
  170. package/components/primitives/types/index.d.ts.map +1 -0
  171. package/{dist/components/primitives/types/index.d.ts → components/primitives/types/index.js} +3 -3
  172. package/{dist/components → components}/primitives/types/label.d.ts +14 -13
  173. package/components/primitives/types/label.d.ts.map +1 -0
  174. package/components/primitives/types/label.js +1 -0
  175. package/components/primitives/types/validation/index.d.ts +3 -0
  176. package/components/primitives/types/validation/index.d.ts.map +1 -0
  177. package/{dist/components/primitives/types/validation/index.d.ts → components/primitives/types/validation/index.js} +2 -2
  178. package/{dist/components → components}/primitives/types/validation/state.d.ts +9 -8
  179. package/components/primitives/types/validation/state.d.ts.map +1 -0
  180. package/components/primitives/types/validation/state.js +2 -0
  181. package/{dist/components → components}/primitives/types/validation/status.d.ts +10 -9
  182. package/components/primitives/types/validation/status.d.ts.map +1 -0
  183. package/components/primitives/types/validation/status.js +11 -0
  184. package/{dist/components → components}/search/component/index.d.ts +6 -3
  185. package/components/search/component/index.d.ts.map +1 -0
  186. package/components/search/component/index.js +37 -0
  187. package/components/search/index.d.ts +3 -0
  188. package/components/search/index.d.ts.map +1 -0
  189. package/components/search/index.js +2 -0
  190. package/{dist/components → components}/search/types.d.ts +27 -26
  191. package/components/search/types.d.ts.map +1 -0
  192. package/components/search/types.js +1 -0
  193. package/{dist/components → components}/tabs/component/index.d.ts +34 -31
  194. package/components/tabs/component/index.d.ts.map +1 -0
  195. package/components/tabs/component/index.js +68 -0
  196. package/{dist/components → components}/tabs/components/item/index.d.ts +13 -11
  197. package/components/tabs/components/item/index.d.ts.map +1 -0
  198. package/components/tabs/components/item/index.js +27 -0
  199. package/components/tabs/index.d.ts +3 -0
  200. package/components/tabs/index.d.ts.map +1 -0
  201. package/components/tabs/index.js +2 -0
  202. package/{dist/components → components}/tabs/types.d.ts +43 -42
  203. package/components/tabs/types.d.ts.map +1 -0
  204. package/components/tabs/types.js +34 -0
  205. package/{dist/components → components}/tag/component/index.d.ts +7 -4
  206. package/components/tag/component/index.d.ts.map +1 -0
  207. package/components/tag/component/index.js +28 -0
  208. package/components/tag/index.d.ts +3 -0
  209. package/components/tag/index.d.ts.map +1 -0
  210. package/components/tag/index.js +2 -0
  211. package/{dist/components → components}/tag/types.d.ts +27 -26
  212. package/components/tag/types.d.ts.map +1 -0
  213. package/components/tag/types.js +1 -0
  214. package/{dist/components → components}/types.d.ts +67 -66
  215. package/components/types.d.ts.map +1 -0
  216. package/components/types.js +31 -0
  217. package/hooks/index.d.ts +3 -0
  218. package/hooks/index.d.ts.map +1 -0
  219. package/{dist/hooks/index.d.ts → hooks/index.js} +2 -2
  220. package/{dist/hooks → hooks}/useComponentOutsideClick.d.ts +11 -10
  221. package/hooks/useComponentOutsideClick.d.ts.map +1 -0
  222. package/hooks/useComponentOutsideClick.js +32 -0
  223. package/{dist/hooks → hooks}/usePagination.d.ts +20 -19
  224. package/hooks/usePagination.d.ts.map +1 -0
  225. package/hooks/usePagination.js +28 -0
  226. package/index.d.ts +4 -0
  227. package/index.d.ts.map +1 -0
  228. package/{dist/index.d.ts → index.js} +3 -3
  229. package/package.json +39 -45
  230. package/readme.md +56 -0
  231. package/tsconfig.tsbuildinfo +1 -0
  232. package/{dist/utils → utils}/dataAttributes.d.ts +8 -7
  233. package/utils/dataAttributes.d.ts.map +1 -0
  234. package/utils/dataAttributes.js +19 -0
  235. package/{dist/utils → utils}/formValidation.d.ts +16 -15
  236. package/utils/formValidation.d.ts.map +1 -0
  237. package/utils/formValidation.js +35 -0
  238. package/utils/index.d.ts +3 -0
  239. package/utils/index.d.ts.map +1 -0
  240. package/{dist/utils/index.d.ts → utils/index.js} +2 -2
  241. package/dist/bbr-components.js +0 -1040
  242. package/dist/bbr-components.umd.cjs +0 -27
  243. package/dist/components/anchor/component/index.d.ts +0 -3
  244. package/dist/components/dropdown/component/index.d.ts +0 -4
  245. package/dist/components/icon/component/index.d.ts +0 -5
  246. package/dist/components/icon/index.d.ts +0 -2
  247. package/dist/components/primitives/checkbox/index.d.ts +0 -2
  248. package/dist/components/primitives/date/index.d.ts +0 -2
  249. package/dist/components/primitives/multiline/component/index.d.ts +0 -4
  250. package/dist/components/primitives/multiline/index.d.ts +0 -2
  251. package/dist/components/primitives/number/component/index.d.ts +0 -4
  252. package/dist/components/primitives/number/index.d.ts +0 -2
  253. package/dist/components/primitives/password/component/index.d.ts +0 -4
  254. package/dist/components/primitives/password/index.d.ts +0 -2
  255. package/dist/components/primitives/text/component/index.d.ts +0 -4
  256. package/dist/components/primitives/text/index.d.ts +0 -2
  257. package/dist/components/search/index.d.ts +0 -2
  258. package/dist/components/tabs/index.d.ts +0 -2
  259. package/dist/components/tag/index.d.ts +0 -2
  260. package/dist/style.css +0 -1
@@ -1,13 +1,14 @@
1
- /** Input label configuration */
2
- export interface InputLabel {
3
- /** Label textual content to describe input requirements */
4
- caption: string;
5
- /** Should component be on same line with label */
6
- horizontal: boolean;
7
- /** Additional class names */
8
- className?: string;
9
- /** Class name for label parent container in horizontal mode */
10
- horizontalContainerClassName?: string;
11
- /** Class name for input parent container in horizontal mode */
12
- horizontalFieldContainerClassName?: string;
13
- }
1
+ /** Input label configuration */
2
+ export interface InputLabel {
3
+ /** Label textual content to describe input requirements */
4
+ caption: string;
5
+ /** Should component be on same line with label */
6
+ horizontal: boolean;
7
+ /** Additional class names */
8
+ className?: string;
9
+ /** Class name for label parent container in horizontal mode */
10
+ horizontalContainerClassName?: string;
11
+ /** Class name for input parent container in horizontal mode */
12
+ horizontalFieldContainerClassName?: string;
13
+ }
14
+ //# sourceMappingURL=label.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../src/components/primitives/types/label.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,MAAM,WAAW,UAAU;IACvB,2DAA2D;IAC3D,OAAO,EAAE,MAAM,CAAC;IAEhB,kDAAkD;IAClD,UAAU,EAAE,OAAO,CAAC;IAEpB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,+DAA+D;IAC/D,4BAA4B,CAAC,EAAE,MAAM,CAAC;IAEtC,+DAA+D;IAC/D,iCAAiC,CAAC,EAAE,MAAM,CAAC;CAC9C"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./status";
2
+ export * from "./state";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/primitives/types/validation/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -1,2 +1,2 @@
1
- export * from "./status";
2
- export * from "./state";
1
+ export * from "./status";
2
+ export * from "./state";
@@ -1,8 +1,9 @@
1
- import { ValidationStatus } from "./status";
2
- /** Form component value validation state */
3
- export interface ValidationState {
4
- /** Current status */
5
- status: ValidationStatus;
6
- /** Current status messages */
7
- messages: Array<string>;
8
- }
1
+ import { ValidationStatus } from "./status";
2
+ /** Form component value validation state */
3
+ export interface ValidationState {
4
+ /** Current status */
5
+ status: ValidationStatus;
6
+ /** Current status messages */
7
+ messages: Array<string>;
8
+ }
9
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../src/components/primitives/types/validation/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,4CAA4C;AAC5C,MAAM,WAAW,eAAe;IAC5B,qBAAqB;IACrB,MAAM,EAAE,gBAAgB,CAAC;IAEzB,8BAA8B;IAC9B,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B"}
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -1,9 +1,10 @@
1
- /** Input component value validation status */
2
- export declare enum ValidationStatus {
3
- /** Validation wasn"t been performed */
4
- None = "none",
5
- /** Value is valid */
6
- Valid = "valid",
7
- /** Value is invalid due some validator check */
8
- Invalid = "invalid"
9
- }
1
+ /** Input component value validation status */
2
+ export declare enum ValidationStatus {
3
+ /** Validation wasn"t been performed */
4
+ None = "none",
5
+ /** Value is valid */
6
+ Valid = "valid",
7
+ /** Value is invalid due some validator check */
8
+ Invalid = "invalid"
9
+ }
10
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../../../src/components/primitives/types/validation/status.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAC9C,oBAAY,gBAAgB;IACxB,uCAAuC;IACvC,IAAI,SAAS;IAEb,qBAAqB;IACrB,KAAK,UAAU;IAEf,gDAAgD;IAChD,OAAO,YAAY;CACtB"}
@@ -0,0 +1,11 @@
1
+ /** Input component value validation status */
2
+ export var ValidationStatus;
3
+ (function (ValidationStatus) {
4
+ /** Validation wasn"t been performed */
5
+ ValidationStatus["None"] = "none";
6
+ /** Value is valid */
7
+ ValidationStatus["Valid"] = "valid";
8
+ /** Value is invalid due some validator check */
9
+ ValidationStatus["Invalid"] = "invalid";
10
+ })(ValidationStatus || (ValidationStatus = {}));
11
+ ;
@@ -1,3 +1,6 @@
1
- import { SearchProps } from '../../../components/search';
2
- /** Search component */
3
- export default function Search({ searchType, onSearch, caption, name, defaultValue, size, isLoading, rounded, disabled, }: SearchProps): JSX.Element;
1
+ /// <reference types="react" />
2
+ import "./style.scss";
3
+ import { SearchProps } from "../../search";
4
+ /** Search component */
5
+ export default function Search({ searchType, onSearch, caption, name, defaultValue, size, isLoading, rounded, disabled, }: SearchProps): JSX.Element;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/search/component/index.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAItB,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,uBAAuB;AACvB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAC3B,UAAU,EAAE,QAAQ,EAAE,OAAO,EAC7B,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,GACrC,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAwE3B"}
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useCallback, useState } from "react";
3
+ import { generateGuid, getClassName } from "@bodynarf/utils";
4
+ import "./style.scss";
5
+ import Button from "../../button";
6
+ /** Search component */
7
+ export default function Search({ searchType, onSearch, caption, name, defaultValue, size, isLoading, rounded, disabled, }) {
8
+ const [elementName] = useState(name || generateGuid());
9
+ const [searchValue, setSearchValue] = useState(defaultValue || "");
10
+ const onChange = useCallback((event) => {
11
+ const elementValue = event.target.value;
12
+ if (searchType === "byTyping") {
13
+ onSearch(elementValue);
14
+ }
15
+ setSearchValue(elementValue);
16
+ }, [onSearch, searchType]);
17
+ const onSearchButtonClick = useCallback(() => onSearch(searchValue), [onSearch, searchValue]);
18
+ const className = getClassName([
19
+ "bbr-search",
20
+ "control",
21
+ `is-${(size || "normal")}`,
22
+ isLoading === true ? "is-loading" : "",
23
+ searchType === "byButton" ? "is-expanded" : "",
24
+ ]);
25
+ const inputClassName = getClassName([
26
+ "input",
27
+ "is-unselectable",
28
+ `is-${(size || "normal")}`,
29
+ rounded === true ? "is-rounded" : "",
30
+ ]);
31
+ if (searchType === "byButton") {
32
+ return (_jsxs("div", { className: "field has-addons", children: [_jsx("div", { className: className, children: _jsx("input", { type: "search", name: elementName, defaultValue: searchValue, className: inputClassName, disabled: disabled, onChange: onChange, placeholder: caption }) }), _jsx("div", { className: "control", children: _jsx(Button, { caption: "Search", type: "info", onClick: onSearchButtonClick, isLoading: isLoading }) })] }));
33
+ }
34
+ else {
35
+ return (_jsx("div", { className: className, children: _jsx("input", { type: "search", name: elementName, defaultValue: searchValue, className: inputClassName, disabled: disabled, onChange: onChange, placeholder: caption }) }));
36
+ }
37
+ }
@@ -0,0 +1,3 @@
1
+ export { default } from "./component";
2
+ export * from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/search/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./component";
2
+ export * from "./types";
@@ -1,26 +1,27 @@
1
- import { ElementSize } from '../../components';
2
- /** Search component props type */
3
- export interface SearchProps {
4
- /**
5
- * Search type: by typing, starts from minimum characters to search
6
- * or by clicking on button next to search bar.
7
- * Default `is byTyping`
8
- */
9
- searchType: "byTyping" | "byButton";
10
- /** Search caption */
11
- caption: string;
12
- /** Search handler */
13
- onSearch: (searchPattern: string) => void;
14
- /** Initial search value */
15
- defaultValue?: string;
16
- /** Control name. If empty - will be replaced by random guid */
17
- name?: string;
18
- /** Size of search bar */
19
- size?: ElementSize;
20
- /** Should search bar be rounded */
21
- rounded?: boolean;
22
- /** Is search bar disabled */
23
- disabled?: boolean;
24
- /** Should loading icon be displayed in search bar */
25
- isLoading?: boolean;
26
- }
1
+ import { ElementSize } from "..";
2
+ /** Search component props type */
3
+ export interface SearchProps {
4
+ /**
5
+ * Search type: by typing, starts from minimum characters to search
6
+ * or by clicking on button next to search bar.
7
+ * Default `is byTyping`
8
+ */
9
+ searchType: "byTyping" | "byButton";
10
+ /** Search caption */
11
+ caption: string;
12
+ /** Search handler */
13
+ onSearch: (searchPattern: string) => void;
14
+ /** Initial search value */
15
+ defaultValue?: string;
16
+ /** Control name. If empty - will be replaced by random guid */
17
+ name?: string;
18
+ /** Size of search bar */
19
+ size?: ElementSize;
20
+ /** Should search bar be rounded */
21
+ rounded?: boolean;
22
+ /** Is search bar disabled */
23
+ disabled?: boolean;
24
+ /** Should loading icon be displayed in search bar */
25
+ isLoading?: boolean;
26
+ }
27
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/search/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,kCAAkC;AAClC,MAAM,WAAW,WAAW;IACxB;;;;MAIE;IACF,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;IAEpC,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAEhB,qBAAqB;IACrB,QAAQ,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1C,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,yBAAyB;IACzB,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,31 +1,34 @@
1
- import { BaseElementProps, ElementSize } from '../../../components';
2
- import { TabItem, TabsPosition, TabsStyle } from '../../../components/tabs';
3
- /** Tabs component props type */
4
- export interface TabsProps extends BaseElementProps {
5
- /** Tabs */
6
- items: Array<TabItem>;
7
- /** Handler of changing current active item */
8
- onActiveItemChange: (item: TabItem) => void;
9
- /**
10
- * Active item by default.
11
- * If not set - first item will be active
12
- */
13
- defaultActive?: TabItem;
14
- /**
15
- * Component size.
16
- * Default is `normal`
17
- */
18
- size?: ElementSize;
19
- /** Component position */
20
- position?: TabsPosition;
21
- /** Component style */
22
- style?: TabsStyle;
23
- /** Is component tabs should take all width of parent */
24
- fullWidth?: boolean;
25
- }
26
- /**
27
- * Tabs panel
28
- * @throws Items are empty
29
- */
30
- declare const Tabs: ({ items, onActiveItemChange, defaultActive, size, position, style, fullWidth, className, title, data, }: TabsProps) => JSX.Element;
31
- export default Tabs;
1
+ /// <reference types="react" />
2
+ import "./style.scss";
3
+ import { BaseElementProps, ElementSize } from "../..";
4
+ import { TabItem, TabsPosition, TabsStyle } from "../../tabs";
5
+ /** Tabs component props type */
6
+ export interface TabsProps extends BaseElementProps {
7
+ /** Tabs */
8
+ items: Array<TabItem>;
9
+ /** Handler of changing current active item */
10
+ onActiveItemChange: (item: TabItem) => void;
11
+ /**
12
+ * Active item by default.
13
+ * If not set - first item will be active
14
+ */
15
+ defaultActive?: TabItem;
16
+ /**
17
+ * Component size.
18
+ * Default is `normal`
19
+ */
20
+ size?: ElementSize;
21
+ /** Component position */
22
+ position?: TabsPosition;
23
+ /** Component style */
24
+ style?: TabsStyle;
25
+ /** Is component tabs should take all width of parent */
26
+ fullWidth?: boolean;
27
+ }
28
+ /**
29
+ * Tabs panel
30
+ * @throws Items are empty
31
+ */
32
+ declare const Tabs: ({ items, onActiveItemChange, defaultActive, size, position, style, fullWidth, className, title, data, }: TabsProps) => JSX.Element;
33
+ export default Tabs;
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tabs/component/index.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGhE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGxE,gCAAgC;AAChC,MAAM,WAAW,SAAU,SAAQ,gBAAgB;IAC/C,WAAW;IACX,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtB,8CAA8C;IAC9C,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAE5C;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,YAAY,CAAC;IAExB,sBAAsB;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB,wDAAwD;IACxD,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,QAAA,MAAM,IAAI,4GAMP,SAAS,KAAG,WA6Ed,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useCallback, useState, useEffect, useRef } from "react";
3
+ import { getClassName, isNullOrEmpty, isNullOrUndefined } from "@bodynarf/utils";
4
+ import "./style.scss";
5
+ import { ElementSize } from "../..";
6
+ import { mapDataAttributes } from "../../../utils";
7
+ import { TabsPosition, TabsStyle } from "../../tabs";
8
+ import TabItemComponent from "../../tabs/components/item";
9
+ /**
10
+ * Tabs panel
11
+ * @throws Items are empty
12
+ */
13
+ const Tabs = ({ items, onActiveItemChange, defaultActive, size, position, style, fullWidth, className, title, data, }) => {
14
+ if (items.length === 0) {
15
+ throw new Error("Invalid configuration. Tab items must be defined");
16
+ }
17
+ const [activeItem, setActiveItem] = useState(defaultActive ?? items[0]);
18
+ const isFirstRun = useRef(true);
19
+ const onTabsClick = useCallback((container) => {
20
+ const closestTab = container.target.closest(".bbr-tabs__tab");
21
+ if (isNullOrUndefined(closestTab)) {
22
+ return;
23
+ }
24
+ const itemId = closestTab.attributes.getNamedItem("data-item-id")?.value ?? "";
25
+ if (isNullOrEmpty(itemId)) {
26
+ return;
27
+ }
28
+ const item = items.find(({ id }) => id === itemId);
29
+ if (isNullOrUndefined(item) || item === activeItem) {
30
+ return;
31
+ }
32
+ setActiveItem(item);
33
+ }, [activeItem, items]);
34
+ useEffect(() => {
35
+ if (isFirstRun.current) {
36
+ isFirstRun.current = false;
37
+ return;
38
+ }
39
+ onActiveItemChange(activeItem);
40
+ }, [activeItem, onActiveItemChange]);
41
+ const elClassName = getClassName([
42
+ "bbr-tabs",
43
+ "tabs",
44
+ position ?? TabsPosition.left,
45
+ getSizeClassName(size, [ElementSize.Normal]),
46
+ style ?? TabsStyle.default,
47
+ fullWidth === true ? "is-fullwidth" : "",
48
+ className,
49
+ ]);
50
+ const dataAttributes = isNullOrUndefined(data)
51
+ ? undefined
52
+ : mapDataAttributes(data);
53
+ return (_jsx("nav", { className: elClassName, onClick: onTabsClick, title: title, ...dataAttributes, children: _jsx("ul", { children: items.map(item => _jsx(TabItemComponent, { item: item, activeItem: activeItem.id }, item.id)) }) }));
54
+ };
55
+ export default Tabs;
56
+ /**
57
+ * Get class name for specified size and constraints
58
+ * @param size Component size
59
+ * @param notAllowedSizes Sizes that not applicable to component
60
+ * @returns Class name for react element
61
+ */
62
+ const getSizeClassName = (size, notAllowedSizes) => {
63
+ notAllowedSizes ??= [];
64
+ if (isNullOrUndefined(size) || notAllowedSizes.includes(size)) {
65
+ return "";
66
+ }
67
+ return `is-${size}`;
68
+ };
@@ -1,11 +1,13 @@
1
- import { TabItem as Item } from '../../../../components/tabs';
2
- /** Tabs panel single tab item component props type */
3
- export interface TabItemProps {
4
- /** Tab item */
5
- item: Item;
6
- /** Active item identifier */
7
- activeItem: string;
8
- }
9
- /** Tabs panel single tab item component */
10
- declare const TabItem: ({ item, activeItem }: TabItemProps) => JSX.Element;
11
- export default TabItem;
1
+ /// <reference types="react" />
2
+ import { TabItem as Item } from "../../../tabs";
3
+ /** Tabs panel single tab item component props type */
4
+ export interface TabItemProps {
5
+ /** Tab item */
6
+ item: Item;
7
+ /** Active item identifier */
8
+ activeItem: string;
9
+ }
10
+ /** Tabs panel single tab item component */
11
+ declare const TabItem: ({ item, activeItem }: TabItemProps) => JSX.Element;
12
+ export default TabItem;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/tabs/components/item/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEvD,sDAAsD;AACtD,MAAM,WAAW,YAAY;IACzB,eAAe;IACf,IAAI,EAAE,IAAI,CAAC;IAEX,6BAA6B;IAC7B,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,2CAA2C;AAC3C,QAAA,MAAM,OAAO,yBAEV,YAAY,KAAG,WAqBjB,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { getClassName, isNullOrUndefined } from "@bodynarf/utils";
3
+ import Icon from "../../../icon";
4
+ /** Tabs panel single tab item component */
5
+ const TabItem = ({ item, activeItem }) => {
6
+ if (!isNullOrUndefined(item.icon)) {
7
+ return _jsx(TabItemWithIcon, { item: item, activeItem: activeItem });
8
+ }
9
+ const className = getClassName([
10
+ "bbr-tabs__tab",
11
+ activeItem === item.id ? "is-active" : undefined,
12
+ ]);
13
+ return (_jsx("li", { className: className, "data-item-id": item.id, children: _jsx("a", { children: item.caption }) }, item.id));
14
+ };
15
+ export default TabItem;
16
+ /** Tabs panel single tab item with icon component */
17
+ const TabItemWithIcon = ({ item, activeItem }) => {
18
+ const iconConfig = item.icon;
19
+ const className = getClassName([
20
+ "bbr-tabs__tab",
21
+ activeItem === item.id ? "is-active" : undefined,
22
+ ]);
23
+ if (iconConfig.position === "left") {
24
+ return (_jsx("li", { className: className, "data-item-id": item.id, children: _jsxs("a", { children: [_jsx(Icon, { ...iconConfig }), _jsx("span", { children: item.caption })] }) }, item.id));
25
+ }
26
+ return (_jsx("li", { className: className, "data-item-id": item.id, children: _jsxs("a", { children: [_jsx("span", { children: item.caption }), _jsx(Icon, { ...iconConfig })] }) }, item.id));
27
+ };
@@ -0,0 +1,3 @@
1
+ export { default } from "./component";
2
+ export * from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from "./component";
2
+ export * from "./types";
@@ -1,42 +1,43 @@
1
- import { ElementIcon } from '../../components';
2
- /** Tabs component style */
3
- export declare enum TabsStyle {
4
- /**
5
- * Default style.
6
- * Single border at the bottom
7
- */
8
- default = "",
9
- /**
10
- * Classic style with borders.
11
- * Borders all except bottom
12
- */
13
- boxed = "is-boxed",
14
- /**
15
- * Styled as buttons
16
- */
17
- radioButton = "is-toggle",
18
- /**
19
- * Styled as rounded buttons
20
- */
21
- radioButtonRounded = "is-toggle is-toggle-rounded"
22
- }
23
- /**
24
- * Tabs items position on component
25
- */
26
- export declare enum TabsPosition {
27
- /** On the left side. Default value */
28
- "left" = "",
29
- /** Center*/
30
- "center" = "is-centered",
31
- /** Pulled to right */
32
- "right" = "is-right"
33
- }
34
- /** Tab item */
35
- export interface TabItem {
36
- /** Unique identifier across all tab items */
37
- id: string;
38
- /** Displayable caption */
39
- caption: string;
40
- /** Icon configuration */
41
- icon?: ElementIcon;
42
- }
1
+ import { ElementIcon } from "..";
2
+ /** Tabs component style */
3
+ export declare enum TabsStyle {
4
+ /**
5
+ * Default style.
6
+ * Single border at the bottom
7
+ */
8
+ default = "",
9
+ /**
10
+ * Classic style with borders.
11
+ * Borders all except bottom
12
+ */
13
+ boxed = "is-boxed",
14
+ /**
15
+ * Styled as buttons
16
+ */
17
+ radioButton = "is-toggle",
18
+ /**
19
+ * Styled as rounded buttons
20
+ */
21
+ radioButtonRounded = "is-toggle is-toggle-rounded"
22
+ }
23
+ /**
24
+ * Tabs items position on component
25
+ */
26
+ export declare enum TabsPosition {
27
+ /** On the left side. Default value */
28
+ "left" = "",
29
+ /** Center*/
30
+ "center" = "is-centered",
31
+ /** Pulled to right */
32
+ "right" = "is-right"
33
+ }
34
+ /** Tab item */
35
+ export interface TabItem {
36
+ /** Unique identifier across all tab items */
37
+ id: string;
38
+ /** Displayable caption */
39
+ caption: string;
40
+ /** Icon configuration */
41
+ icon?: ElementIcon;
42
+ }
43
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/tabs/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,2BAA2B;AAC3B,oBAAY,SAAS;IACjB;;;OAGG;IACH,OAAO,KAAK;IAEZ;;;OAGG;IACH,KAAK,aAAa;IAElB;;OAEG;IACH,WAAW,cAAc;IAEzB;;OAEG;IACH,kBAAkB,gCAAgC;CACrD;AAED;;GAEG;AACH,oBAAY,YAAY;IACpB,sCAAsC;IACtC,MAAM,KAAK;IAEX,YAAY;IACZ,QAAQ,gBAAgB;IAExB,sBAAsB;IACtB,OAAO,aAAa;CACvB;AAED,eAAe;AACf,MAAM,WAAW,OAAO;IACpB,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IAEX,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAEhB,yBAAyB;IACzB,IAAI,CAAC,EAAE,WAAW,CAAC;CACtB"}
@@ -0,0 +1,34 @@
1
+ /** Tabs component style */
2
+ export var TabsStyle;
3
+ (function (TabsStyle) {
4
+ /**
5
+ * Default style.
6
+ * Single border at the bottom
7
+ */
8
+ TabsStyle["default"] = "";
9
+ /**
10
+ * Classic style with borders.
11
+ * Borders all except bottom
12
+ */
13
+ TabsStyle["boxed"] = "is-boxed";
14
+ /**
15
+ * Styled as buttons
16
+ */
17
+ TabsStyle["radioButton"] = "is-toggle";
18
+ /**
19
+ * Styled as rounded buttons
20
+ */
21
+ TabsStyle["radioButtonRounded"] = "is-toggle is-toggle-rounded";
22
+ })(TabsStyle || (TabsStyle = {}));
23
+ /**
24
+ * Tabs items position on component
25
+ */
26
+ export var TabsPosition;
27
+ (function (TabsPosition) {
28
+ /** On the left side. Default value */
29
+ TabsPosition["left"] = "";
30
+ /** Center*/
31
+ TabsPosition["center"] = "is-centered";
32
+ /** Pulled to right */
33
+ TabsPosition["right"] = "is-right";
34
+ })(TabsPosition || (TabsPosition = {}));
@@ -1,4 +1,7 @@
1
- import { TagProps } from '../../../components/tag';
2
- /** Single tag item */
3
- declare const Tag: ({ content, size, style, rounded, lightColor, customColor, onClick, className, title, }: TagProps) => JSX.Element;
4
- export default Tag;
1
+ /// <reference types="react" />
2
+ import { TagProps } from "../../tag";
3
+ import "./style.scss";
4
+ /** Single tag item */
5
+ declare const Tag: ({ content, size, style, rounded, lightColor, customColor, onClick, className, title, }: TagProps) => JSX.Element;
6
+ export default Tag;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/component/index.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,cAAc,CAAC;AAEtB,sBAAsB;AACtB,QAAA,MAAM,GAAG,2FAMN,QAAQ,KAAG,WAmCb,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { getClassName, isNullOrUndefined } from "@bodynarf/utils";
3
+ import { ElementColor, ElementSize } from "../..";
4
+ import "./style.scss";
5
+ /** Single tag item */
6
+ const Tag = ({ content, size, style, rounded, lightColor, customColor, onClick, className, title, }) => {
7
+ size ??= ElementSize.Normal;
8
+ style ??= ElementColor.Default;
9
+ if (!isNullOrUndefined(customColor)) {
10
+ style = ElementColor.Default;
11
+ }
12
+ const elClassName = getClassName([
13
+ "bbr-tag",
14
+ "tag",
15
+ style === ElementColor.Default ? "" : `is-${style}`,
16
+ !isNullOrUndefined(customColor) ? "bbr-tag--custom" : "",
17
+ lightColor === true && isNullOrUndefined(customColor) ? "is-light" : "",
18
+ rounded === true ? "is-rounded" : "",
19
+ size === ElementSize.Normal || size === ElementSize.Small ? "" : `is-${size}`,
20
+ isNullOrUndefined(onClick) ? "" : "bbr-tag--clickable",
21
+ className,
22
+ ]);
23
+ return (_jsx("span", { className: elClassName, onClick: onClick, title: title, color: customColor?.color, style: {
24
+ color: customColor?.color,
25
+ backgroundColor: customColor?.backgroundColor,
26
+ }, children: content }));
27
+ };
28
+ export default Tag;
@@ -0,0 +1,3 @@
1
+ export { default } from "./component";
2
+ export * from "./types";
3
+ //# sourceMappingURL=index.d.ts.map