scorer-ui-kit 2.8.3 → 2.9.1
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/README.md +9 -6
- package/dist/Filters/atoms/FilterDropHandler.d.ts +6 -1
- package/dist/Filters/molecules/DatePicker.d.ts +7 -1
- package/dist/Filters/molecules/DropdownDatePicker.d.ts +2 -0
- package/dist/Form/molecules/DurationSlider.d.ts +1 -0
- package/dist/helpers/index.d.ts +3 -2
- package/dist/index.js +305 -192
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +306 -193
- package/dist/index.modern.js.map +1 -1
- package/dist/theme/index.d.ts +0 -29
- package/dist/theme/legacy/styles.d.ts +0 -11
- package/dist/theme/legacy/typography.d.ts +0 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
## Development
|
|
18
18
|
|
|
19
|
+
The version 2 is preferred to be run node version 18 and above due [Storybook 8 support requirement](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#dropping-support-for-nodejs-16).
|
|
20
|
+
|
|
21
|
+
|
|
19
22
|
If you want to run the project follow the next steps
|
|
20
23
|
|
|
21
24
|
- Clone repository
|
|
@@ -23,7 +26,7 @@ If you want to run the project follow the next steps
|
|
|
23
26
|
git clone git@github.com:future-standard/scorer-ui-kit.git
|
|
24
27
|
```
|
|
25
28
|
|
|
26
|
-
- Install with npm version
|
|
29
|
+
- Install with npm version 10 node 18 or above from the root folder
|
|
27
30
|
```
|
|
28
31
|
npm install
|
|
29
32
|
```
|
|
@@ -93,12 +96,12 @@ Please note however that the icon set included in this software is included unde
|
|
|
93
96
|
3. Push the tag to Github (this should cause the release)
|
|
94
97
|
|
|
95
98
|
```
|
|
96
|
-
// Updating to
|
|
99
|
+
// Updating to v2.5.2
|
|
97
100
|
|
|
98
|
-
git commit -m "Bump
|
|
101
|
+
git commit -m "Bump 2.5.2"
|
|
99
102
|
grep version package.json
|
|
100
|
-
~ "version": "
|
|
101
|
-
git tag
|
|
102
|
-
git push origin
|
|
103
|
+
~ "version": "2.5.2",
|
|
104
|
+
git tag v2.5.2
|
|
105
|
+
git push origin v2.5.2
|
|
103
106
|
```
|
|
104
107
|
|
|
@@ -8,8 +8,13 @@ interface IFilterDropHandler {
|
|
|
8
8
|
minHeight?: number;
|
|
9
9
|
isSortAscending?: boolean;
|
|
10
10
|
design?: FilterButtonDesign;
|
|
11
|
+
noCloseOnClickOutside?: boolean;
|
|
11
12
|
onToggleOpenCallback?: (isOpen: boolean) => void;
|
|
12
13
|
onCloseCallback?: () => void;
|
|
14
|
+
children?: React.ReactNode;
|
|
13
15
|
}
|
|
14
|
-
|
|
16
|
+
export interface FilterDropHandlerRef {
|
|
17
|
+
cancelClose: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const FilterDropHandler: React.ForwardRefExoticComponent<IFilterDropHandler & React.RefAttributes<FilterDropHandlerRef>>;
|
|
15
20
|
export default FilterDropHandler;
|
|
@@ -21,8 +21,14 @@ export interface IDatePicker {
|
|
|
21
21
|
timeZoneValueTitle?: string;
|
|
22
22
|
availableRange?: DateRange;
|
|
23
23
|
contentDays?: Date[];
|
|
24
|
-
updateCallback?: (data: DateInterval | Date) => void;
|
|
25
24
|
lang?: 'en' | 'ja';
|
|
25
|
+
cancelText?: string;
|
|
26
|
+
applyText?: string;
|
|
27
|
+
hasApply?: boolean;
|
|
28
|
+
disableApply?: boolean;
|
|
29
|
+
updateCallback?: (data: DateInterval | Date) => void;
|
|
30
|
+
applyCallback?: () => void;
|
|
31
|
+
cancelCallback?: () => void;
|
|
26
32
|
}
|
|
27
33
|
declare const DatePicker: React.FC<IDatePicker>;
|
|
28
34
|
export default DatePicker;
|
|
@@ -8,6 +8,8 @@ export interface IDropdownDatePicker extends IDatePicker {
|
|
|
8
8
|
onCloseCallback?: (value: DateInterval | Date | null) => void;
|
|
9
9
|
onUpdateCallback?: (value: DateInterval | Date | null) => void;
|
|
10
10
|
onToggleCallback?: (value: DateInterval | Date | null, isOpen: boolean) => void;
|
|
11
|
+
onCancelCallback?: () => void;
|
|
12
|
+
onApplyCallback?: (data: DateInterval | Date) => void;
|
|
11
13
|
}
|
|
12
14
|
declare const DropdownDatePicker: React.FC<IDropdownDatePicker>;
|
|
13
15
|
export default DropdownDatePicker;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ITimeUnit } from '../index';
|
|
1
|
+
import { DateInterval, ITimeUnit } from '../index';
|
|
2
2
|
declare const isInsideRange: (value: number, min: number, max: number) => boolean;
|
|
3
3
|
declare const clamp: (value: number, minValue: number, maxValue: number) => number;
|
|
4
4
|
/**
|
|
@@ -17,4 +17,5 @@ declare const getImageType: (img: HTMLImageElement) => string;
|
|
|
17
17
|
declare const isValidImage: (file: File) => boolean;
|
|
18
18
|
declare const uniqueID: () => string;
|
|
19
19
|
declare const isNotNumber: (value: string) => boolean;
|
|
20
|
-
|
|
20
|
+
declare const areDatesEqual: (storedValue: DateInterval | Date | null | undefined, currentDisplay: DateInterval | Date | null) => boolean;
|
|
21
|
+
export { clamp, isValidImage, getImageType, getTextTimeUnit, isInsideRange, getShortTextTimeUnit, getTopLevelPath, uniqueID, isNotNumber, areDatesEqual };
|