lizaui 10.0.68 → 10.0.70
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/components/travel-calendar/calendar-format.d.ts +46 -0
- package/dist/components/travel-calendar/calendar-format.d.ts.map +1 -0
- package/dist/components/travel-calendar/calendar-travel-form.d.ts +7 -7
- package/dist/components/travel-calendar/calendar-travel-form.d.ts.map +1 -1
- package/dist/components/travel-calendar/hook/use-calendar-dropdown.d.ts +17 -0
- package/dist/components/travel-calendar/hook/use-calendar-dropdown.d.ts.map +1 -0
- package/dist/components/travel-calendar/hook/use-calendar-presets.d.ts +32 -0
- package/dist/components/travel-calendar/hook/use-calendar-presets.d.ts.map +1 -0
- package/dist/components/travel-calendar/hook/use-calendar-pricing.d.ts +29 -0
- package/dist/components/travel-calendar/hook/use-calendar-pricing.d.ts.map +1 -0
- package/dist/components/travel-calendar/hook/use-calendar-value.d.ts +26 -0
- package/dist/components/travel-calendar/hook/use-calendar-value.d.ts.map +1 -0
- package/dist/components/travel-calendar/index.d.ts +0 -2
- package/dist/components/travel-calendar/index.d.ts.map +1 -1
- package/dist/lizaui.css +31 -30
- package/dist/travel-calendar/index.cjs.js +749 -629
- package/dist/travel-calendar/index.cjs.js.map +1 -1
- package/dist/travel-calendar/index.es.js +751 -631
- package/dist/travel-calendar/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/travel-calendar/formats.d.ts +0 -45
- package/dist/components/travel-calendar/formats.d.ts.map +0 -1
- package/dist/components/travel-calendar/presets.d.ts +0 -17
- package/dist/components/travel-calendar/presets.d.ts.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilidades puras (sin React) para el parseo y formateo de fechas del
|
|
3
|
+
* calendario de viajes. Centralizan los formatos soportados y la conversión
|
|
4
|
+
* entre `string | Date | DateObject` para que los hooks y el componente
|
|
5
|
+
* compartan exactamente la misma lógica.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CALENDAR_FORMAT_ALIASES: {
|
|
8
|
+
readonly "DD/MM/YYYY": "DD/MM/YYYY";
|
|
9
|
+
readonly "MM/DD/YYYY": "MM/DD/YYYY";
|
|
10
|
+
readonly "DD-MM-YYYY": "DD-MM-YYYY";
|
|
11
|
+
readonly "MM-DD-YYYY": "MM-DD-YYYY";
|
|
12
|
+
readonly "YYYY/MM/DD": "YYYY/MM/DD";
|
|
13
|
+
readonly "YYYY-MM-DD": "YYYY-MM-DD";
|
|
14
|
+
readonly "dd/MM/yyyy": "DD/MM/YYYY";
|
|
15
|
+
readonly "MM/dd/yyyy": "MM/DD/YYYY";
|
|
16
|
+
readonly "dd-MM-yyyy": "DD-MM-YYYY";
|
|
17
|
+
readonly "MM-dd-yyyy": "MM-DD-YYYY";
|
|
18
|
+
readonly "yyyy/MM/dd": "YYYY/MM/DD";
|
|
19
|
+
readonly "yyyy-MM-dd": "YYYY-MM-DD";
|
|
20
|
+
};
|
|
21
|
+
export type CalendarFormatInput = keyof typeof CALENDAR_FORMAT_ALIASES;
|
|
22
|
+
export type CalendarFormat = (typeof CALENDAR_FORMAT_ALIASES)[CalendarFormatInput];
|
|
23
|
+
type CalendarDatePart = "day" | "month" | "year";
|
|
24
|
+
export declare const CALENDAR_FORMAT_CONFIG: Record<CalendarFormat, {
|
|
25
|
+
separator: "/" | "-";
|
|
26
|
+
order: readonly [CalendarDatePart, CalendarDatePart, CalendarDatePart];
|
|
27
|
+
}>;
|
|
28
|
+
export declare const normalizeCalendarFormat: (format: CalendarFormatInput) => CalendarFormat;
|
|
29
|
+
export declare const parseDateFromString: (raw: string, format: CalendarFormat) => Date | null;
|
|
30
|
+
/** Convierte cualquier valor admitido (`DateObject | Date | string`) en un `Date` o `null`. */
|
|
31
|
+
export declare const parseCalendarValue: (currentValue: unknown, format: CalendarFormat) => Date | null;
|
|
32
|
+
/** Serializa un `Date` (en UTC) al string del formato indicado. */
|
|
33
|
+
export declare const formatDateString: (date: Date, format: CalendarFormat) => string;
|
|
34
|
+
/**
|
|
35
|
+
* Toma un `Date` local, lo lleva a medianoche UTC y lo formatea. Encapsula el
|
|
36
|
+
* patrón repetido `formatDateString(new Date(Date.UTC(y, m, d)))` para mostrar
|
|
37
|
+
* la fecha sin desfases de zona horaria.
|
|
38
|
+
*/
|
|
39
|
+
export declare const formatDisplayDate: (date: Date, format: CalendarFormat) => string;
|
|
40
|
+
/** Clave consistente `YYYY-MM-DD` (en UTC) para comparar/indexar fechas. */
|
|
41
|
+
export declare const formatDateKey: (iso: string | Date) => string;
|
|
42
|
+
export declare const startOfDay: (d: Date) => Date;
|
|
43
|
+
export declare const addDays: (d: Date, n: number) => Date;
|
|
44
|
+
export declare const isSameDay: (a?: Date | null, b?: Date | null) => boolean;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=calendar-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-format.d.ts","sourceRoot":"","sources":["../../../src/components/travel-calendar/calendar-format.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAa1B,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,uBAAuB,CAAC;AACvE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,mBAAmB,CAAC,CAAC;AACnF,KAAK,gBAAgB,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAC1C,cAAc,EACd;IACC,SAAS,EAAE,GAAG,GAAG,GAAG,CAAC;IACrB,KAAK,EAAE,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;CACvE,CAQD,CAAC;AAIF,eAAO,MAAM,uBAAuB,GAAI,QAAQ,mBAAmB,KAAG,cAAiD,CAAC;AAgBxH,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,EAAE,QAAQ,cAAc,KAAG,IAAI,GAAG,IA0BhF,CAAC;AAkBF,+FAA+F;AAC/F,eAAO,MAAM,kBAAkB,GAAI,cAAc,OAAO,EAAE,QAAQ,cAAc,KAAG,IAAI,GAAG,IA0BzF,CAAC;AAEF,mEAAmE;AACnE,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,EAAE,QAAQ,cAAc,KAAG,MAcrE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,IAAI,EAAE,QAAQ,cAAc,KAAG,MAC2B,CAAC;AAEnG,4EAA4E;AAC5E,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,GAAG,IAAI,KAAG,MAIlD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,GAAG,IAAI,KAAG,IAAwE,CAAC;AAE9G,eAAO,MAAM,OAAO,GAAI,GAAG,IAAI,EAAE,GAAG,MAAM,KAAG,IAA4E,CAAC;AAE1H,eAAO,MAAM,SAAS,GAAI,IAAI,IAAI,GAAG,IAAI,EAAE,IAAI,IAAI,GAAG,IAAI,KAAG,OAI5D,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DateObject, CalendarProps } from 'react-multi-date-picker';
|
|
3
|
-
import { CalendarFormatInput } from './
|
|
3
|
+
import { CalendarFormatInput } from './calendar-format';
|
|
4
|
+
import { TravelPrice } from './hook/use-calendar-pricing';
|
|
4
5
|
import { CalendarLang } from './locale';
|
|
5
6
|
interface Props extends CalendarProps {
|
|
6
7
|
name: string;
|
|
@@ -11,20 +12,19 @@ interface Props extends CalendarProps {
|
|
|
11
12
|
onBlur?: (e: React.FocusEvent) => void;
|
|
12
13
|
onOpenCalendar?: () => void;
|
|
13
14
|
refParent?: React.RefObject<HTMLElement>;
|
|
15
|
+
width?: number | "auto";
|
|
14
16
|
hour?: string;
|
|
15
|
-
errors?:
|
|
16
|
-
touched?:
|
|
17
|
+
errors?: any;
|
|
18
|
+
touched?: any;
|
|
17
19
|
idHtml?: string;
|
|
18
20
|
inputStyle?: CSSProperties;
|
|
19
21
|
loading?: boolean;
|
|
20
22
|
containerStylePopover?: Partial<CSSStyleDeclaration> | undefined;
|
|
21
23
|
maxLength?: number;
|
|
24
|
+
isClose?: boolean;
|
|
22
25
|
lang?: CalendarLang;
|
|
23
26
|
format?: CalendarFormatInput;
|
|
24
|
-
travelPrices?:
|
|
25
|
-
dateTravel: string | Date;
|
|
26
|
-
priceTravel: number;
|
|
27
|
-
}[];
|
|
27
|
+
travelPrices?: TravelPrice[];
|
|
28
28
|
/** Fecha mínima seleccionable, ej. "2026-02-28 06:47:00". Hacia atrás se deshabilitan. null/undefined = sin límite. */
|
|
29
29
|
minSelectableDate?: string | null;
|
|
30
30
|
showActionsButtons?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar-travel-form.d.ts","sourceRoot":"","sources":["../../../src/components/travel-calendar/calendar-travel-form.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"calendar-travel-form.d.ts","sourceRoot":"","sources":["../../../src/components/travel-calendar/calendar-travel-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAY,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAKnF,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAGtF,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAEnF,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7D,OAAO,wBAAwB,CAAC;AAEhC,UAAU,KAAM,SAAQ,aAAa;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,iBAAiB,CAAC,EAAE,CAAC,aAAa,EAAE,UAAU,KAAK,IAAI,CAAC;IACxD,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAC;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B,uHAAuH;IACvH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,kBAAkB,wGAgK9B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface UseCalendarDropdownProps {
|
|
2
|
+
onOpenCalendar?: () => void;
|
|
3
|
+
readOnly: boolean;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Maneja la apertura/cierre del popover del calendario y dispara
|
|
8
|
+
* `onOpenCalendar` (vía ref, sin re-suscribir efectos) cada vez que se abre.
|
|
9
|
+
*/
|
|
10
|
+
export declare function useCalendarDropdown({ onOpenCalendar, readOnly, disabled }: UseCalendarDropdownProps): {
|
|
11
|
+
isOpen: boolean;
|
|
12
|
+
setIsOpen: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
13
|
+
close: () => void;
|
|
14
|
+
toggleFromInput: () => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=use-calendar-dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-calendar-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/travel-calendar/hook/use-calendar-dropdown.ts"],"names":[],"mappings":"AAEA,UAAU,wBAAwB;IACjC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,wBAAwB;;;;;EAuBnG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DateObject } from 'react-multi-date-picker';
|
|
2
|
+
export interface PresetItem {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
getValue?: () => DateObject | DateObject[] | null;
|
|
6
|
+
action?: () => void;
|
|
7
|
+
separator?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface UseCalendarPresetsProps {
|
|
10
|
+
selectedDate: Date | null;
|
|
11
|
+
minDateKey: string | null;
|
|
12
|
+
enabledDatesSet: Set<string>;
|
|
13
|
+
hasTravelPrices: boolean;
|
|
14
|
+
handleChange?: (selectedDates: DateObject | DateObject[] | null) => void;
|
|
15
|
+
/** Aplica la fecha elegida (refleja en el input y cierra el popover). */
|
|
16
|
+
onSelect: (date: Date) => void;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Construye los atajos del calendario ("Hoy", "+7 días", "Navidad", …) y la
|
|
20
|
+
* lógica para saber si cada atajo está activo/deshabilitado y para aplicarlo
|
|
21
|
+
* respetando `minDateKey` y las fechas habilitadas.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCalendarPresets({ selectedDate, minDateKey, enabledDatesSet, hasTravelPrices, handleChange, onSelect, }: UseCalendarPresetsProps): {
|
|
24
|
+
presets: PresetItem[];
|
|
25
|
+
getPresetState: (preset: PresetItem) => {
|
|
26
|
+
active: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
};
|
|
29
|
+
handlePresetClick: (preset: PresetItem) => void;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=use-calendar-presets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-calendar-presets.d.ts","sourceRoot":"","sources":["../../../../src/components/travel-calendar/hook/use-calendar-presets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,MAAM,WAAW,UAAU;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,UAAU,GAAG,UAAU,EAAE,GAAG,IAAI,CAAC;IAClD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,uBAAuB;IAChC,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,yEAAyE;IACzE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EAClC,YAAY,EACZ,UAAU,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACZ,QAAQ,GACR,EAAE,uBAAuB;;6BA0Df,UAAU;;;;gCA0BV,UAAU;EAkCpB"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CalendarFormat } from '../calendar-format';
|
|
2
|
+
import { CalendarLang } from '../locale';
|
|
3
|
+
export interface TravelPrice {
|
|
4
|
+
dateTravel: string | Date;
|
|
5
|
+
priceTravel: number;
|
|
6
|
+
}
|
|
7
|
+
interface UseCalendarPricingProps {
|
|
8
|
+
travelPrices: TravelPrice[];
|
|
9
|
+
/** Fecha mínima seleccionable, ej. "2026-02-28 06:47:00". null/undefined = sin límite. */
|
|
10
|
+
minSelectableDate: string | null;
|
|
11
|
+
normalizedFormat: CalendarFormat;
|
|
12
|
+
lang: CalendarLang;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Deriva, a partir de `travelPrices` y `minSelectableDate`, las estructuras
|
|
16
|
+
* necesarias para pintar el calendario: el set de fechas habilitadas, la clave
|
|
17
|
+
* de fecha mínima y el `mapDays` que renderiza cada día con su precio/estado.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useCalendarPricing({ travelPrices, minSelectableDate, normalizedFormat, lang }: UseCalendarPricingProps): {
|
|
20
|
+
enabledDatesSet: Set<string>;
|
|
21
|
+
minDateKey: string | null;
|
|
22
|
+
mapDays: ({ date, today, selectedDate, isSameDate }: any) => {
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
title: string;
|
|
25
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=use-calendar-pricing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-calendar-pricing.d.ts","sourceRoot":"","sources":["../../../../src/components/travel-calendar/hook/use-calendar-pricing.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,MAAM,WAAW,WAAW;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,uBAAuB;IAChC,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,0FAA0F;IAC1F,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,EAAE,cAAc,CAAC;IACjC,IAAI,EAAE,YAAY,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,uBAAuB;;;yDAiCzE,GAAG;;;;;EAuChD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DateObject } from 'react-multi-date-picker';
|
|
2
|
+
import { CalendarFormat } from '../calendar-format';
|
|
3
|
+
interface UseCalendarValueProps {
|
|
4
|
+
value: unknown;
|
|
5
|
+
normalizedFormat: CalendarFormat;
|
|
6
|
+
minDateKey: string | null;
|
|
7
|
+
handleChange?: (selectedDates: DateObject | DateObject[] | null) => void;
|
|
8
|
+
/** Se invoca tras elegir una fecha en el calendario (p.ej. para cerrar el popover). */
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Centraliza el valor del input: mantiene el borrador mientras se escribe
|
|
13
|
+
* (`inputDraft`), lo sincroniza con el `value` controlado, deriva la fecha
|
|
14
|
+
* seleccionada y expone los manejadores de escritura/selección.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useCalendarValue({ value, normalizedFormat, minDateKey, handleChange, onClose }: UseCalendarValueProps): {
|
|
17
|
+
inputRef: import('react').RefObject<HTMLInputElement | null>;
|
|
18
|
+
valueInput: string;
|
|
19
|
+
selectedDate: Date | null;
|
|
20
|
+
handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
+
handleCalendarChange: (e: DateObject | DateObject[] | null) => void;
|
|
22
|
+
commitDraft: (date: Date) => void;
|
|
23
|
+
clearDraft: () => void;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=use-calendar-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-calendar-value.d.ts","sourceRoot":"","sources":["../../../../src/components/travel-calendar/hook/use-calendar-value.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAA0E,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEjI,UAAU,qBAAqB;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB,EAAE,cAAc,CAAC;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,uFAAuF;IACvF,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,qBAAqB;;;;2BA+BhH,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC;8BA4BnC,UAAU,GAAG,UAAU,EAAE,GAAG,IAAI;wBArC7B,IAAI;;EAoDZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/travel-calendar/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/travel-calendar/index.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAC;AAEvC,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/lizaui.css
CHANGED
|
@@ -2472,6 +2472,36 @@
|
|
|
2472
2472
|
inherits: false;
|
|
2473
2473
|
initial-value: 0;
|
|
2474
2474
|
}
|
|
2475
|
+
.table__container_main {
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
.table__container_main .table__body__main tr:first-child td:first-child {
|
|
2479
|
+
border-top-left-radius: var(--radius);
|
|
2480
|
+
}
|
|
2481
|
+
|
|
2482
|
+
.table__container_main .table__body__main tr:first-child td:last-child {
|
|
2483
|
+
border-top-right-radius: var(--radius);
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
.table__container_main .table__body__main tr:last-child td:first-child {
|
|
2487
|
+
border-bottom-left-radius: var(--radius);
|
|
2488
|
+
}
|
|
2489
|
+
|
|
2490
|
+
.table__container_main .table__body__main tr:last-child td:last-child {
|
|
2491
|
+
border-bottom-right-radius: var(--radius);
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
.table__container_main .table__body__main .table__body_row td {
|
|
2495
|
+
border-bottom: 1px solid #e4e4e780;
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
.dark .table__container_main .table__body__main .table__body_row td {
|
|
2499
|
+
border-bottom: 1px solid var(--border);
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
.table__container_main .table__header_th {
|
|
2503
|
+
border-bottom: 1px solid var(--border);
|
|
2504
|
+
}
|
|
2475
2505
|
|
|
2476
2506
|
:root {
|
|
2477
2507
|
--tc-day-size: 45px;
|
|
@@ -2637,33 +2667,4 @@
|
|
|
2637
2667
|
.react-multi-date-picker-travel-calendar-popover .rmdp-day.rmdp-today span {
|
|
2638
2668
|
background-color: var(--color-primary-100) !important;
|
|
2639
2669
|
color: var(--color-primary-500) !important;
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
.table__container_main .table__body__main tr:first-child td:first-child {
|
|
2644
|
-
border-top-left-radius: var(--radius);
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
.table__container_main .table__body__main tr:first-child td:last-child {
|
|
2648
|
-
border-top-right-radius: var(--radius);
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
|
-
.table__container_main .table__body__main tr:last-child td:first-child {
|
|
2652
|
-
border-bottom-left-radius: var(--radius);
|
|
2653
|
-
}
|
|
2654
|
-
|
|
2655
|
-
.table__container_main .table__body__main tr:last-child td:last-child {
|
|
2656
|
-
border-bottom-right-radius: var(--radius);
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
.table__container_main .table__body__main .table__body_row td {
|
|
2660
|
-
border-bottom: 1px solid #e4e4e780;
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
|
-
.dark .table__container_main .table__body__main .table__body_row td {
|
|
2664
|
-
border-bottom: 1px solid var(--border);
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
.table__container_main .table__header_th {
|
|
2668
|
-
border-bottom: 1px solid var(--border);
|
|
2669
|
-
}
|
|
2670
|
+
}
|