@7shifts/sous-chef 3.11.2 → 3.12.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/forms/TimeField/TimeField.d.ts +18 -7
- package/dist/forms/TimeField/TimeFieldDropdown/TimeFieldDropdown.d.ts +4 -3
- package/dist/forms/TimeField/TimeFieldDropdownTrigger/TimeFieldDropdownTrigger.d.ts +3 -3
- package/dist/forms/TimeField/TimeFieldInput/TimeFieldInput.d.ts +5 -1
- package/dist/forms/TimeField/domain.d.ts +2 -1
- package/dist/forms/TimeRangeField/TimeRangeEnd/TimeRangeEnd.d.ts +5 -0
- package/dist/forms/TimeRangeField/TimeRangeEnd/index.d.ts +1 -0
- package/dist/forms/TimeRangeField/TimeRangeField.d.ts +20 -0
- package/dist/forms/TimeRangeField/TimeRangeStart/TimeRangeStart.d.ts +5 -0
- package/dist/forms/TimeRangeField/TimeRangeStart/index.d.ts +1 -0
- package/dist/forms/TimeRangeField/index.d.ts +1 -0
- package/dist/forms/TimeRangeField/types.d.ts +9 -0
- package/dist/forms/index.d.ts +2 -1
- package/dist/foundation/color-constants.d.ts +1 -0
- package/dist/foundation/domain.d.ts +1 -0
- package/dist/index.css +574 -507
- package/dist/index.js +1222 -1034
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1222 -1035
- package/dist/index.modern.js.map +1 -1
- package/dist/typography/Text/Text.d.ts +3 -2
- package/dist/utils/date.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Color } from '../../foundation/color-types';
|
|
2
3
|
import { PositionStyles } from '../../foundation/types';
|
|
3
4
|
import { TextType, Emphasis, Alignment } from './types';
|
|
4
5
|
declare type Props = {
|
|
@@ -6,7 +7,7 @@ declare type Props = {
|
|
|
6
7
|
as?: TextType;
|
|
7
8
|
emphasis?: Emphasis | Emphasis[];
|
|
8
9
|
alignment?: Alignment;
|
|
9
|
-
color?: string;
|
|
10
|
+
color?: Color | string;
|
|
10
11
|
testId?: string;
|
|
11
12
|
} & PositionStyles;
|
|
12
13
|
declare const Text: ({ children, as, emphasis, alignment, color, testId, ...positionProps }: Props) => React.ReactElement<{
|
|
@@ -16,7 +17,7 @@ declare const Text: ({ children, as, emphasis, alignment, color, testId, ...posi
|
|
|
16
17
|
marginRight?: string | number | (string & {}) | undefined;
|
|
17
18
|
marginBottom?: string | number | (string & {}) | undefined;
|
|
18
19
|
marginLeft?: string | number | (string & {}) | undefined;
|
|
19
|
-
color:
|
|
20
|
+
color: any;
|
|
20
21
|
};
|
|
21
22
|
className: string;
|
|
22
23
|
'data-testid': string | undefined;
|
package/dist/utils/date.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare type TimeRange = {
|
|
|
22
22
|
start?: string;
|
|
23
23
|
end?: string;
|
|
24
24
|
};
|
|
25
|
+
export declare type StartTime = 'now' | string;
|
|
25
26
|
export declare type BlockedDays = Modifier | Modifier[];
|
|
26
27
|
export declare type DateRangeError = string | {
|
|
27
28
|
[K in keyof DateRange]: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@7shifts/sous-chef",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "7shifts component library",
|
|
5
5
|
"author": "7shifts",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"node": ">=10"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"prebuild": "run-s build-icons",
|
|
16
15
|
"build": "./scripts/build.sh",
|
|
16
|
+
"build:prod": "./scripts/build.sh --prod",
|
|
17
17
|
"prebuild:check": "run-s \"build --check\"",
|
|
18
18
|
"build:check": "source-map-explorer dist/index.js dist/index.js.map",
|
|
19
19
|
"build-icons": "./scripts/build-icons.sh",
|
|
20
|
+
"build-colors": "./scripts/build-colors.sh",
|
|
20
21
|
"compile": "microbundle-crl --no-compress --format modern,cjs",
|
|
21
22
|
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
|
22
|
-
"prepare": "run-s build",
|
|
23
23
|
"test": "run-s test:unit test:lint test:build",
|
|
24
24
|
"test:build": "run-s build",
|
|
25
25
|
"test:lint": "eslint --ext .ts --ext .tsx .",
|