@aws-amplify/ui 5.5.9 → 5.5.10

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.
@@ -0,0 +1,19 @@
1
+ import { ComponentClassName } from '../types';
2
+ export declare type Modifiers = string | number | null;
3
+ /**
4
+ * This helper function creates modifier class names that are used for our flat BEM styling
5
+ * it takes in a base and modifier and returns the modified class if a modifier was passed in and null otherwise
6
+ * @param base The base class of the output
7
+ * @param modifier The modifier to add onto the base
8
+ * @returns the modified class name or empty string
9
+ */
10
+ export declare const classNameModifier: (base: ComponentClassName, modifier?: Modifiers) => string;
11
+ /**
12
+ * This helper function creates modified class names that are used for our flat BEM styling
13
+ * it takes in a base, modifier, and flag and returns the modified class name if the flag is true and null if the flag is false
14
+ * @param base
15
+ * @param modifier
16
+ * @param flag
17
+ * @returns the modified class name or empty string
18
+ */
19
+ export declare const classNameModifierByFlag: (base: ComponentClassName, modifier: Modifiers, flag?: boolean) => string;
@@ -92,3 +92,4 @@ export declare function has(value: unknown, key: string): boolean;
92
92
  * @returns {boolean} whether `value` is a function
93
93
  */
94
94
  export declare function isFunction(value: unknown): value is Function;
95
+ export { classNameModifier, classNameModifierByFlag } from './classname';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/ui",
3
- "version": "5.5.9",
3
+ "version": "5.5.10",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/esm/index.mjs",
6
6
  "exports": {