@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.
@@ -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 {};
@@ -75,3 +75,15 @@ export declare const POSITION_ARG_TYPES: {
75
75
  };
76
76
  };
77
77
  };
78
+ export declare const DATA_ARG_TYPES: {
79
+ data: {
80
+ name: string;
81
+ description: string;
82
+ control: {
83
+ type: string;
84
+ };
85
+ table: {
86
+ category: string;
87
+ };
88
+ };
89
+ };
@@ -1 +1,2 @@
1
1
  export declare const capitalizeFirstLetter: (text: string) => string;
2
+ export declare const kebabize: (str: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@7shifts/sous-chef",
3
- "version": "3.29.2",
3
+ "version": "3.30.0",
4
4
  "description": "7shifts component library",
5
5
  "author": "7shifts",
6
6
  "license": "MIT",
@@ -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
- };