@mindly/ui-components 8.13.4 → 8.14.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/cjs/index.js +1 -1
- package/dist/cjs/lib2/features/ScheduleFeature/types.d.ts +1 -1
- package/dist/cjs/lib2/features/ScheduleSectionsFeature/ScheduleSectionsFeature.d.ts +0 -1
- package/dist/cjs/lib2/features/ScheduleSectionsFeature/components/ScheduleSection.d.ts +0 -3
- package/dist/cjs/lib2/features/ScheduleSectionsFeature/components/Slot.d.ts +1 -4
- package/dist/cjs/lib2/features/ScheduleSectionsFeature/mocks/slots.d.ts +2 -2
- package/dist/cjs/lib2/features/ScheduleSectionsFeature/types.d.ts +2 -1
- package/dist/cjs/lib2/features/ScheduleSectionsFeature/utils/toSections/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib2/features/ScheduleFeature/types.d.ts +1 -1
- package/dist/esm/lib2/features/ScheduleSectionsFeature/ScheduleSectionsFeature.d.ts +0 -1
- package/dist/esm/lib2/features/ScheduleSectionsFeature/components/ScheduleSection.d.ts +0 -3
- package/dist/esm/lib2/features/ScheduleSectionsFeature/components/Slot.d.ts +1 -4
- package/dist/esm/lib2/features/ScheduleSectionsFeature/mocks/slots.d.ts +2 -2
- package/dist/esm/lib2/features/ScheduleSectionsFeature/types.d.ts +2 -1
- package/dist/esm/lib2/features/ScheduleSectionsFeature/utils/toSections/index.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@ type ScheduleSectionsFeatureProps = {
|
|
|
7
7
|
setSlots: (slots: Slot[]) => void;
|
|
8
8
|
isSectionsCollapsable?: boolean;
|
|
9
9
|
openSectionIfSlotSelected?: boolean;
|
|
10
|
-
showSlotStatus?: boolean;
|
|
11
10
|
};
|
|
12
11
|
declare const ScheduleSectionsFeature: FC<ScheduleSectionsFeatureProps>;
|
|
13
12
|
export default ScheduleSectionsFeature;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { DaySectionKey, Section, Slot } from '../types';
|
|
3
|
-
import { WithTranslation } from 'react-i18next';
|
|
4
3
|
type ScheduleSectionProps = {
|
|
5
4
|
section: Section;
|
|
6
5
|
selectAllLabel?: string;
|
|
7
6
|
isSectionsCollapsable: boolean;
|
|
8
7
|
onSelectAll: (sectionKey: DaySectionKey) => void;
|
|
9
8
|
onSlotClick: (slot: Slot) => void;
|
|
10
|
-
t: WithTranslation['t'];
|
|
11
9
|
className?: string;
|
|
12
|
-
showSlotStatus?: boolean;
|
|
13
10
|
};
|
|
14
11
|
declare const ScheduleSection: FC<ScheduleSectionProps>;
|
|
15
12
|
export default ScheduleSection;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Slot as SlotType } from '../types';
|
|
2
|
-
import { WithTranslation } from 'react-i18next';
|
|
3
2
|
type SlotProps = {
|
|
4
3
|
slot: SlotType;
|
|
5
4
|
onClick: (slot: SlotType) => void;
|
|
6
|
-
t: WithTranslation['t'];
|
|
7
|
-
showSlotStatus?: boolean;
|
|
8
5
|
};
|
|
9
|
-
declare const Slot: ({ slot, onClick
|
|
6
|
+
declare const Slot: ({ slot, onClick }: SlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
7
|
export default Slot;
|
|
@@ -6,8 +6,9 @@ export declare enum DaySectionKey {
|
|
|
6
6
|
export { type DaySection } from '../ScheduleFeature/types';
|
|
7
7
|
export type Slot = {
|
|
8
8
|
title: string;
|
|
9
|
-
|
|
9
|
+
filled: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
label?: string | null;
|
|
11
12
|
};
|
|
12
13
|
export type Section = {
|
|
13
14
|
key: DaySectionKey;
|