@mindly/ui-components 8.13.3 → 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.
@@ -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;
package/dist/index.d.ts CHANGED
@@ -4177,7 +4177,7 @@ declare const _default$y: React__default.NamedExoticComponent<StepperBaseProps$1
4177
4177
 
4178
4178
  type SlotViewModel = {
4179
4179
  title: string;
4180
- active: boolean;
4180
+ filled: boolean;
4181
4181
  };
4182
4182
  type DaySectionKey = 'morning' | 'day' | 'evening';
4183
4183
  type DaySection = {
@@ -4212,8 +4212,9 @@ declare const Schedule: FC<ScheduleProps>;
4212
4212
 
4213
4213
  type Slot = {
4214
4214
  title: string;
4215
- active: boolean;
4215
+ filled: boolean;
4216
4216
  disabled?: boolean;
4217
+ label?: string | null;
4217
4218
  };
4218
4219
 
4219
4220
  type ScheduleSectionsFeatureProps = {
@@ -4222,7 +4223,6 @@ type ScheduleSectionsFeatureProps = {
4222
4223
  setSlots: (slots: Slot[]) => void;
4223
4224
  isSectionsCollapsable?: boolean;
4224
4225
  openSectionIfSlotSelected?: boolean;
4225
- showSlotStatus?: boolean;
4226
4226
  };
4227
4227
  declare const ScheduleSectionsFeature: FC<ScheduleSectionsFeatureProps>;
4228
4228
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindly/ui-components",
3
- "version": "8.13.3",
3
+ "version": "8.14.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",