reactive-bulma 1.10.1 → 1.10.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ import { ParseTestIdProps } from '../interfaces/functionProps';
2
+ /**
3
+ *
4
+ * @param { Array<string | null> } _classes Required. Array of classNames on `string` (or `null`) values
5
+ * @returns { string } A single string product of merge all classNames, separated by spaces
6
+ */
7
+ export declare const parseClasses: (_classes: Array<string | null>) => string;
8
+ /**
9
+ *
10
+ * @param { ParseTestIdProps } config Configuration of tag, parsedClasses and tag
11
+ * @param { string } config.tag Required. Component tag used between to build the final testId string.
12
+ * @param { string } config.parsedClasses Required. A single string of previously parsed classes what will be joined with `tag` property.
13
+ * @param { string } config.separator Optional. `''` by default. Will replace final string empty spaces with a configurable string.
14
+ * @returns A single string product of merge all classNames, separated by `separator` value
15
+ */
16
+ export declare const parseTestId: (config: ParseTestIdProps) => string;
package/dist/esm/index.js CHANGED
@@ -2838,7 +2838,20 @@ function requireReact_development () {
2838
2838
 
2839
2839
  var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2840
2840
 
2841
+ /**
2842
+ *
2843
+ * @param { Array<string | null> } _classes Required. Array of classNames on `string` (or `null`) values
2844
+ * @returns { string } A single string product of merge all classNames, separated by spaces
2845
+ */
2841
2846
  const parseClasses = (_classes) => _classes.filter(_class => _class).join(' ');
2847
+ /**
2848
+ *
2849
+ * @param { ParseTestIdProps } config Configuration of tag, parsedClasses and tag
2850
+ * @param { string } config.tag Required. Component tag used between to build the final testId string.
2851
+ * @param { string } config.parsedClasses Required. A single string of previously parsed classes what will be joined with `tag` property.
2852
+ * @param { string } config.separator Optional. `''` by default. Will replace final string empty spaces with a configurable string.
2853
+ * @returns A single string product of merge all classNames, separated by `separator` value
2854
+ */
2842
2855
  const parseTestId = (config) => `test-${config.tag}${config.parsedClasses
2843
2856
  .replace(`${config.tag}`, '')
2844
2857
  .replace(/is-/gm, '-')