@cube-dev/ui-kit 0.6.4 → 0.6.9
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/cjs/components/content/PrismCode/PrismCode.d.ts +2 -0
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/styled.d.ts +1 -2
- package/dist/cjs/styles/gap.d.ts +2 -4
- package/dist/mjs/components/content/PrismCode/PrismCode.d.ts +2 -0
- package/dist/mjs/index.js +4 -4
- package/dist/mjs/index.js.map +1 -1
- package/dist/mjs/styled.d.ts +1 -2
- package/dist/mjs/styles/gap.d.ts +2 -4
- package/package.json +1 -1
package/dist/cjs/styled.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AllBaseProps, BaseStyleProps, Props } from './components/types';
|
|
3
3
|
import { Styles, StylesInterface } from './styles/types';
|
|
4
|
-
import { BASE_STYLES } from './styles/list';
|
|
5
4
|
import { ResponsiveStyleValue } from './utils/styles';
|
|
6
5
|
export interface StyledProps<T extends string, K extends PossibleStyleNames> {
|
|
7
6
|
/** The name of the element. It can be used to override styles in context. */
|
|
@@ -19,7 +18,7 @@ export interface StyledProps<T extends string, K extends PossibleStyleNames> {
|
|
|
19
18
|
/** The list of available modifiers. Providing it will show a warning each time you set an incorrect modifier on the element */
|
|
20
19
|
availableMods?: T[];
|
|
21
20
|
}
|
|
22
|
-
export declare type PossibleStyleNames = readonly (keyof
|
|
21
|
+
export declare type PossibleStyleNames = readonly (keyof StylesInterface)[];
|
|
23
22
|
export declare type AllPossibleStyleNames = readonly (keyof StylesInterface)[];
|
|
24
23
|
export declare type AllBasePropsWithMods<T extends string, K extends PossibleStyleNames> = Omit<AllBaseProps, 'mods'> & {
|
|
25
24
|
mods?: Record<T, boolean | null | undefined>;
|
package/dist/cjs/styles/gap.d.ts
CHANGED
|
@@ -6,13 +6,11 @@ export declare function gapStyle({ display, flow, gap }: {
|
|
|
6
6
|
gap: any;
|
|
7
7
|
$?: undefined;
|
|
8
8
|
} | ({
|
|
9
|
-
|
|
10
|
-
'margin-bottom': string;
|
|
9
|
+
[x: string]: string;
|
|
11
10
|
$?: undefined;
|
|
12
11
|
} | {
|
|
12
|
+
[x: string]: any;
|
|
13
13
|
$: string;
|
|
14
|
-
'margin-right': any;
|
|
15
|
-
'margin-bottom': any;
|
|
16
14
|
})[] | {
|
|
17
15
|
[x: string]: any;
|
|
18
16
|
$: string;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseProps } from '../../types';
|
|
3
|
+
import { Styles } from '../../../styles/types';
|
|
3
4
|
export interface CubePrismCodeProps {
|
|
4
5
|
/** The CSS style map */
|
|
5
6
|
style?: BaseProps['style'];
|
|
7
|
+
styles?: Styles;
|
|
6
8
|
/** The code snippet */
|
|
7
9
|
code?: string;
|
|
8
10
|
/** The language of the code snippet */
|