@namuna-nur/ui-kit 1.5.0 → 1.6.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.
@@ -1,2 +1,2 @@
1
1
  import { DatePickerProps } from '..';
2
- export declare const DatePicker: ({ value, setValue, classNames, disabled, label, message, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DatePicker: ({ value, setValue, classNames, disabled, label, message, disabledDate, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,6 +3,7 @@ import { DatePicker, DatePickerProps, DatePickerStory } from '..';
3
3
  declare const meta: Meta<typeof DatePicker>;
4
4
  export declare const Default: StoryFn<DatePickerProps>;
5
5
  export declare const WithLabel: DatePickerStory;
6
+ export declare const DisabledDate: DatePickerStory;
6
7
  export declare const Disabled: DatePickerStory;
7
8
  export declare const Error: DatePickerStory;
8
9
  export default meta;
@@ -46,6 +46,7 @@ export declare const datePickerTokens: {
46
46
  daySelected: string;
47
47
  dayToday: string;
48
48
  dayWeekend: string;
49
+ dayDisabled: string;
49
50
  dayNormal: string;
50
51
  dayOutside: string;
51
52
  resetButtonWrapper: string;
@@ -8,6 +8,7 @@ export type DatePickerProps = {
8
8
  disabled?: boolean;
9
9
  label?: string;
10
10
  message?: string;
11
+ disabledDate?: string;
11
12
  classNames?: {
12
13
  base?: string;
13
14
  input?: string;
@@ -12,4 +12,6 @@ declare const yearOptions: {
12
12
  }[];
13
13
  declare const weekDays: string[];
14
14
  declare const monthNames: string[];
15
- export { formatDate, getDaysInMonth, isToday, isWeekend, isSelected, yearOptions, weekDays, monthNames, };
15
+ declare const isDisabledDate: (date: Date, disabledDate?: string) => boolean;
16
+ declare const renderDays: (handleDateClick: (date: Date) => void, disabledDate?: string, currentMonth?: Date, value?: string) => import("react/jsx-runtime").JSX.Element[];
17
+ export { formatDate, getDaysInMonth, isToday, isWeekend, isSelected, yearOptions, weekDays, monthNames, renderDays, isDisabledDate, };
@@ -0,0 +1,4 @@
1
+ import { DateRangePickerProps } from '..';
2
+ import * as React from 'react';
3
+ export declare const dateFormat = "dd/MM/yyyy";
4
+ export declare const DateRangePicker: React.FC<DateRangePickerProps>;
@@ -0,0 +1,7 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { DateRangePicker, DateRangePickerStory } from '..';
3
+ declare const meta: Meta<typeof DateRangePicker>;
4
+ export default meta;
5
+ export declare const Default: DateRangePickerStory;
6
+ export declare const WithLabel: DateRangePickerStory;
7
+ export declare const Disabled: DateRangePickerStory;
@@ -0,0 +1,15 @@
1
+ export declare const dateRangePickerTokens: {
2
+ base: {
3
+ wrapper: string;
4
+ input: string;
5
+ content: string;
6
+ selectButton: string;
7
+ resetButton: string;
8
+ };
9
+ };
10
+ export declare const dayPickerClasses: {
11
+ months: string;
12
+ month: string;
13
+ weekdays: string;
14
+ weekday: string;
15
+ };
@@ -0,0 +1,19 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+ import { DateRange } from 'react-day-picker';
4
+ import { DateRangePicker } from './DateRangePicker';
5
+ export type DateRangePickerStory = StoryObj<typeof DateRangePicker>;
6
+ export type DateRangePickerProps = {
7
+ value?: DateRange | undefined;
8
+ setValue: Dispatch<SetStateAction<DateRange | undefined>>;
9
+ label?: string;
10
+ disabled?: boolean;
11
+ classNames?: {
12
+ wrapper?: string;
13
+ input?: string;
14
+ popover?: string;
15
+ trigger?: string;
16
+ iconContainer?: string;
17
+ content?: string;
18
+ };
19
+ };
@@ -0,0 +1,3 @@
1
+ export { DateRangePicker } from './DateRangePicker';
2
+ export * from './DateRangePicker.tokens';
3
+ export type * from './DateRangePicker.types';
@@ -12,6 +12,10 @@ export type FloorOptions = {
12
12
  name: LangValue;
13
13
  created_at?: Date;
14
14
  updated_at?: Date;
15
+ plan_file?: {
16
+ id: string;
17
+ file_path: string;
18
+ };
15
19
  };
16
20
  export type FloorSelectProps = {
17
21
  options: FloorOptions[] | undefined;
@@ -19,6 +23,6 @@ export type FloorSelectProps = {
19
23
  value: string;
20
24
  placeholder?: string;
21
25
  onFloorDelete: (floorId: string) => void;
22
- floorModal: (isOpen: boolean, onClose: () => void, mode: string, id?: string, name?: LangValue) => React.ReactNode;
26
+ floorModal: (isOpen: boolean, onClose: () => void, mode: string, id?: string, name?: LangValue, fileId?: string, filePath?: string) => React.ReactNode;
23
27
  statusModal: (isOpen: boolean, onClose: () => void, onSubmit: () => void) => React.ReactNode;
24
28
  };
@@ -1,2 +1,2 @@
1
1
  import { InputGroupProps } from './InputGroup.types';
2
- export declare const InputGroup: ({ id, label, disabled, icon: Icon, iconProps, iconPosition, text, classNames, onIconClick, inputProps, ...props }: InputGroupProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const InputGroup: import('react').ForwardRefExoticComponent<InputGroupProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -9,6 +9,7 @@ export * from './AvatarGroup';
9
9
  export * from './UploadInput';
10
10
  export * from './CommentList';
11
11
  export * from './DatePicker';
12
+ export * from './DateRangePicker';
12
13
  export * from './Dropdown';
13
14
  export * from './FileUploader';
14
15
  export * from './FilterTable';