@7shifts/sous-chef 3.29.2 → 3.30.0
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/actions/Button/Button.d.ts +21 -19
- package/dist/actions/Link/Link.d.ts +3 -2
- package/dist/actions/PaginationControls/PaginationControls.d.ts +2 -1
- package/dist/actions/Toggle/Toggle.d.ts +2 -1
- package/dist/forms/MultiSelectField/MultiSelectField.d.ts +3 -1
- package/dist/index.js +421 -349
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +421 -349
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/props.d.ts +27 -0
- package/dist/utils/storybookArgTypes.d.ts +12 -0
- package/dist/utils/string.d.ts +1 -0
- package/package.json +1 -1
- package/dist/foundation/types.d.ts +0 -22
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PositionStyles } from '../foundation/types';
|
|
2
|
+
declare type ObjectMap<T = unknown> = {
|
|
3
|
+
[key: string]: T;
|
|
4
|
+
};
|
|
5
|
+
export declare const getPositionProps: ({ m, margin, mt, marginTop, mr, marginRight, mb, marginBottom, ml, marginLeft, ...otherProps }: PositionStyles & ObjectMap) => {
|
|
6
|
+
positionProps: {
|
|
7
|
+
m: string | number | undefined;
|
|
8
|
+
margin: string | number | undefined;
|
|
9
|
+
mt: string | number | undefined;
|
|
10
|
+
marginTop: string | number | undefined;
|
|
11
|
+
mr: string | number | undefined;
|
|
12
|
+
marginRight: string | number | undefined;
|
|
13
|
+
mb: string | number | undefined;
|
|
14
|
+
marginBottom: string | number | undefined;
|
|
15
|
+
ml: string | number | undefined;
|
|
16
|
+
marginLeft: string | number | undefined;
|
|
17
|
+
};
|
|
18
|
+
otherProps: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare type GetDataPropsResponse = {
|
|
23
|
+
dataProps: ObjectMap<string>;
|
|
24
|
+
otherProps: ObjectMap;
|
|
25
|
+
};
|
|
26
|
+
export declare const getDataProps: (props: ObjectMap) => GetDataPropsResponse;
|
|
27
|
+
export {};
|
package/dist/utils/string.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare type PositionStyles = {
|
|
2
|
-
/** Shortcut for `margin`. */
|
|
3
|
-
m?: string | number;
|
|
4
|
-
/** Defines the margin around of the element. */
|
|
5
|
-
margin?: string | number;
|
|
6
|
-
/** Shortcut for `marginTop`. */
|
|
7
|
-
mt?: string | number;
|
|
8
|
-
/** Defines the margin on the top of the element. */
|
|
9
|
-
marginTop?: string | number;
|
|
10
|
-
/** Shortcut for `marginRight`. */
|
|
11
|
-
mr?: string | number;
|
|
12
|
-
/** Defines the margin on the right side of the element. */
|
|
13
|
-
marginRight?: string | number;
|
|
14
|
-
/** Shortcut for `marginBottom`. */
|
|
15
|
-
mb?: string | number;
|
|
16
|
-
/** Defines the margin on the bottom of the element. */
|
|
17
|
-
marginBottom?: string | number;
|
|
18
|
-
/** Shortcut for `marginLeft`. */
|
|
19
|
-
ml?: string | number;
|
|
20
|
-
/** Defines the margin on the left side of the element. */
|
|
21
|
-
marginLeft?: string | number;
|
|
22
|
-
};
|