@veladent/booking-widget 0.0.0-stage → 1.0.4-dev.9
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/README.md +38 -2
- package/index.js +5888 -0
- package/package.json +51 -4
- package/styles.css +1 -0
- package/types/booking/core/src/client.d.ts +21 -0
- package/types/booking/core/src/index.d.ts +5 -0
- package/types/booking/core/src/locale.d.ts +113 -0
- package/types/booking/core/src/timezone.d.ts +10 -0
- package/types/booking/core/src/types.d.ts +135 -0
- package/types/booking/core/src/validation.d.ts +9 -0
- package/types/booking/react/src/booking-context.d.ts +70 -0
- package/types/booking/react/src/booking-parts-context.d.ts +7 -0
- package/types/booking/react/src/booking-parts.d.ts +148 -0
- package/types/booking/react/src/booking-widget.d.ts +19 -0
- package/types/booking/react/src/component-types.d.ts +33 -0
- package/types/booking/react/src/components/card-arrow.d.ts +4 -0
- package/types/booking/react/src/components/date-step.d.ts +2 -0
- package/types/booking/react/src/components/details-step.d.ts +2 -0
- package/types/booking/react/src/components/doctor-step.d.ts +2 -0
- package/types/booking/react/src/components/existing-phone-step.d.ts +2 -0
- package/types/booking/react/src/components/existing-record-step.d.ts +4 -0
- package/types/booking/react/src/components/gate-step.d.ts +2 -0
- package/types/booking/react/src/components/index.d.ts +15 -0
- package/types/booking/react/src/components/option-card.d.ts +8 -0
- package/types/booking/react/src/components/otp-step.d.ts +2 -0
- package/types/booking/react/src/components/payment-step.d.ts +2 -0
- package/types/booking/react/src/components/phone-input.d.ts +16 -0
- package/types/booking/react/src/components/service-step.d.ts +2 -0
- package/types/booking/react/src/components/step-header.d.ts +2 -0
- package/types/booking/react/src/components/summary-modal.d.ts +2 -0
- package/types/booking/react/src/components/treatment-step.d.ts +2 -0
- package/types/booking/react/src/components/utils.d.ts +8 -0
- package/types/booking/react/src/environment.d.ts +16 -0
- package/types/booking/react/src/index.d.ts +6 -0
- package/types/booking/react/src/verification-session.d.ts +12 -0
- package/types/ui/src/components/application/date-picker/calendar.d.ts +14 -0
- package/types/ui/src/components/application/date-picker/cell.d.ts +11 -0
- package/types/ui/src/components/application/date-picker/date-picker.d.ts +20 -0
- package/types/ui/src/components/base/avatar/avatar.d.ts +64 -0
- package/types/ui/src/components/base/avatar/base-components/avatar-add-button.d.ts +8 -0
- package/types/ui/src/components/base/avatar/base-components/avatar-company-icon.d.ts +7 -0
- package/types/ui/src/components/base/avatar/base-components/avatar-count.d.ts +6 -0
- package/types/ui/src/components/base/avatar/base-components/avatar-online-indicator.d.ts +7 -0
- package/types/ui/src/components/base/avatar/base-components/index.d.ts +4 -0
- package/types/ui/src/components/base/avatar/base-components/verified-tick.d.ts +6 -0
- package/types/ui/src/components/base/buttons/button.d.ts +104 -0
- package/types/ui/src/components/base/checkbox/checkbox.d.ts +26 -0
- package/types/ui/src/components/base/input/hint-text.d.ts +14 -0
- package/types/ui/src/components/base/input/input-date.d.ts +41 -0
- package/types/ui/src/components/base/input/input.d.ts +63 -0
- package/types/ui/src/components/base/input/label.d.ts +15 -0
- package/types/ui/src/components/base/input/pin-input.d.ts +55 -0
- package/types/ui/src/components/base/select/combobox.d.ts +14 -0
- package/types/ui/src/components/base/select/popover.d.ts +7 -0
- package/types/ui/src/components/base/select/select-item.d.ts +10 -0
- package/types/ui/src/components/base/select/select-shared.d.ts +58 -0
- package/types/ui/src/components/base/select/select.d.ts +19 -0
- package/types/ui/src/components/base/tooltip/tooltip.d.ts +29 -0
- package/types/ui/src/utils/cx.d.ts +11 -0
- package/types/ui/src/utils/is-react-component.d.ts +19 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { FC, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import type { PopoverProps as AriaPopoverProps, SelectProps as AriaSelectProps } from "react-aria-components";
|
|
3
|
+
import { ComboBox } from "./combobox.js";
|
|
4
|
+
import { SelectItem } from "./select-item.js";
|
|
5
|
+
import { type CommonProps, type SelectItemType } from "./select-shared.js";
|
|
6
|
+
export { type CommonProps, SelectContext, type SelectItemType, sizes, } from "./select-shared.js";
|
|
7
|
+
export interface SelectProps extends Omit<AriaSelectProps<SelectItemType>, "children" | "items">, RefAttributes<HTMLDivElement>, CommonProps {
|
|
8
|
+
children: ReactNode | ((item: SelectItemType) => ReactNode);
|
|
9
|
+
icon?: FC | ReactNode;
|
|
10
|
+
items?: SelectItemType[];
|
|
11
|
+
popoverClassName?: string;
|
|
12
|
+
popoverProps?: Omit<AriaPopoverProps, "children" | "className">;
|
|
13
|
+
}
|
|
14
|
+
declare const Select: ({ placeholder, icon, size, children, items, label, hint, tooltip, hideRequiredIndicator, className, popoverClassName, popoverProps, ...rest }: SelectProps) => import("react").JSX.Element;
|
|
15
|
+
declare const _Select: typeof Select & {
|
|
16
|
+
ComboBox: typeof ComboBox;
|
|
17
|
+
Item: typeof SelectItem;
|
|
18
|
+
};
|
|
19
|
+
export { _Select as Select };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { ButtonProps as AriaButtonProps, TooltipProps as AriaTooltipProps, TooltipTriggerComponentProps as AriaTooltipTriggerComponentProps } from "react-aria-components";
|
|
3
|
+
interface TooltipProps extends AriaTooltipTriggerComponentProps, Omit<AriaTooltipProps, "children"> {
|
|
4
|
+
/**
|
|
5
|
+
* Whether to show the arrow on the tooltip.
|
|
6
|
+
*
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
arrow?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Delay in milliseconds before the tooltip is shown.
|
|
12
|
+
*
|
|
13
|
+
* @default 300
|
|
14
|
+
*/
|
|
15
|
+
delay?: number;
|
|
16
|
+
/**
|
|
17
|
+
* The description of the tooltip.
|
|
18
|
+
*/
|
|
19
|
+
description?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* The title of the tooltip.
|
|
22
|
+
*/
|
|
23
|
+
title: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare const Tooltip: ({ title, description, children, arrow, delay, closeDelay, trigger, isDisabled, isOpen, defaultOpen, offset, crossOffset, placement, onOpenChange, ...tooltipProps }: TooltipProps) => import("react").JSX.Element;
|
|
26
|
+
interface TooltipTriggerProps extends AriaButtonProps {
|
|
27
|
+
}
|
|
28
|
+
export declare const TooltipTrigger: ({ children, className, ...buttonProps }: TooltipTriggerProps) => import("react").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This function is a wrapper around the twMerge function.
|
|
3
|
+
* It is used to merge the classes inside style objects.
|
|
4
|
+
*/
|
|
5
|
+
export declare const cx: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
|
|
6
|
+
/**
|
|
7
|
+
* This function does nothing besides helping us to be able to
|
|
8
|
+
* sort the classes inside style objects which is not supported
|
|
9
|
+
* by the Tailwind IntelliSense by default.
|
|
10
|
+
*/
|
|
11
|
+
export declare function sortCx<T extends Record<string, string | number | Record<string, string | number | Record<string, string | number>>>>(classes: T): T;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
type ReactComponent = React.FC<any> | React.ComponentClass<any, any>;
|
|
3
|
+
/**
|
|
4
|
+
* Checks if a given value is a function component.
|
|
5
|
+
*/
|
|
6
|
+
export declare const isFunctionComponent: (component: any) => component is React.FC<any>;
|
|
7
|
+
/**
|
|
8
|
+
* Checks if a given value is a class component.
|
|
9
|
+
*/
|
|
10
|
+
export declare const isClassComponent: (component: any) => component is React.ComponentClass<any, any>;
|
|
11
|
+
/**
|
|
12
|
+
* Checks if a given value is a forward ref component.
|
|
13
|
+
*/
|
|
14
|
+
export declare const isForwardRefComponent: (component: any) => component is React.ForwardRefExoticComponent<any>;
|
|
15
|
+
/**
|
|
16
|
+
* Checks if a given value is a valid React component.
|
|
17
|
+
*/
|
|
18
|
+
export declare const isReactComponent: (component: any) => component is ReactComponent;
|
|
19
|
+
export {};
|