@aws-amplify/ui 5.5.8 → 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.
- package/dist/esm/helpers/storage/fileUploader/utils/uploader.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/theme/tokens/components/index.mjs +1 -1
- package/dist/esm/theme/tokens/components/storagemanager.mjs +1 -0
- package/dist/esm/types/primitives/componentClassName.mjs +1 -1
- package/dist/esm/utils/classname.mjs +1 -0
- package/dist/index.js +1 -1
- package/dist/styles.css +343 -147
- package/dist/theme.css +66 -0
- package/dist/types/helpers/storage/fileUploader/utils/uploader.d.ts +6 -7
- package/dist/types/theme/tokens/components/index.d.ts +2 -0
- package/dist/types/theme/tokens/components/storagemanager.d.ts +6 -0
- package/dist/types/types/primitives/componentClassName.d.ts +17 -0
- package/dist/types/utils/classname.d.ts +19 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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';
|