reactive-bulma 1.10.0 → 1.10.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.
- package/README.md +157 -32
- package/dist/cjs/index.js +13 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/functions/parsers.d.ts +16 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/functions/parsers.d.ts +16 -0
- package/package.json +1 -1
- package/dist/cjs/types/functions/persers.d.ts +0 -3
- package/dist/esm/types/functions/persers.d.ts +0 -3
@@ -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, '-')
|