@lumx/react 3.20.1-alpha.49 → 3.20.1-alpha.50
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/_internal/Cd8LPzmx.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/utils/index.d.ts +4 -4
package/package.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"url": "https://github.com/lumapps/design-system/issues"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@lumx/core": "^3.20.1-alpha.
|
|
10
|
-
"@lumx/icons": "^3.20.1-alpha.
|
|
9
|
+
"@lumx/core": "^3.20.1-alpha.50",
|
|
10
|
+
"@lumx/icons": "^3.20.1-alpha.50",
|
|
11
11
|
"@popperjs/core": "^2.5.4",
|
|
12
12
|
"body-scroll-lock": "^3.1.5",
|
|
13
13
|
"react-popper": "^2.2.4"
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"build:storybook": "storybook build"
|
|
88
88
|
},
|
|
89
89
|
"sideEffects": false,
|
|
90
|
-
"version": "3.20.1-alpha.
|
|
90
|
+
"version": "3.20.1-alpha.50"
|
|
91
91
|
}
|
package/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default, { RefObject } from 'react';
|
|
2
|
-
import { Falsy
|
|
2
|
+
import { Falsy } from '@lumx/core/js/types';
|
|
3
3
|
import * as _lumx_core_js_utils_classNames_bem_generateBEMClass from '@lumx/core/js/utils/classNames/bem/generateBEMClass';
|
|
4
4
|
|
|
5
5
|
interface ClickAwayParameters {
|
|
@@ -97,7 +97,7 @@ type ClassValue = string | number | ClassDictionary | ClassArray | undefined | n
|
|
|
97
97
|
* @example
|
|
98
98
|
* const { block, element } = useClassnames('my-component');
|
|
99
99
|
*/
|
|
100
|
-
declare function useClassnames
|
|
100
|
+
declare function useClassnames(className: string): {
|
|
101
101
|
/**
|
|
102
102
|
* Generates BEM block class names with optional modifiers.
|
|
103
103
|
*
|
|
@@ -111,7 +111,7 @@ declare function useClassnames<C extends string>(className: KebabCase<C>): {
|
|
|
111
111
|
* block({ active: true, disabled: false }) // 'my-component my-component--active'
|
|
112
112
|
* block(['custom-class']) // 'my-component custom-class'
|
|
113
113
|
*/
|
|
114
|
-
block:
|
|
114
|
+
block: (modifier?: _lumx_core_js_utils_classNames_bem_generateBEMClass.Modifier | undefined, additionalClasses?: ClassValue | ClassValue[]) => string;
|
|
115
115
|
/**
|
|
116
116
|
* Generates BEM element class names with optional modifiers.
|
|
117
117
|
*
|
|
@@ -126,7 +126,7 @@ declare function useClassnames<C extends string>(className: KebabCase<C>): {
|
|
|
126
126
|
* element('header', { large: true, small: false }) // 'my-component__header my-component__header--large'
|
|
127
127
|
* element('header', ['custom-class']) // 'my-component__header custom-class'
|
|
128
128
|
*/
|
|
129
|
-
element:
|
|
129
|
+
element: (elem: string, modifier?: _lumx_core_js_utils_classNames_bem_generateBEMClass.Modifier | undefined, additionalClasses?: ClassValue | ClassValue[]) => string;
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
export { ClickAwayProvider, DisabledStateProvider, Portal, PortalProvider, useClassnames, useDisabledStateContext };
|