@mindly/ui-components 8.13.4 → 8.14.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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { WithTranslation } from 'react-i18next';
3
3
  export type SlotViewModel = {
4
4
  title: string;
5
- active: boolean;
5
+ filled: boolean;
6
6
  };
7
7
  export type DaySectionKey = 'morning' | 'day' | 'evening';
8
8
  export type DaySection = {
@@ -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, t, showSlotStatus }: SlotProps) => import("react/jsx-runtime").JSX.Element;
6
+ declare const Slot: ({ slot, onClick }: SlotProps) => import("react/jsx-runtime").JSX.Element;
10
7
  export default Slot;
@@ -1,9 +1,9 @@
1
1
  export declare const slots: ({
2
2
  title: string;
3
- active: boolean;
3
+ filled: boolean;
4
4
  disabled: boolean;
5
5
  } | {
6
6
  title: string;
7
- active: boolean;
7
+ filled: boolean;
8
8
  disabled?: undefined;
9
9
  })[];
@@ -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
- active: boolean;
9
+ filled: boolean;
10
10
  disabled?: boolean;
11
+ label?: string | null;
11
12
  };
12
13
  export type Section = {
13
14
  key: DaySectionKey;
@@ -1,7 +1,7 @@
1
1
  import { Section } from '../../types';
2
2
  type Slot = {
3
3
  title: string;
4
- active: boolean;
4
+ filled: boolean;
5
5
  };
6
6
  type Labels = {
7
7
  morning: string;