@lettuceai/crisp 1.5.0 → 1.6.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.
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/DatePicker.d.ts +5 -1
- package/dist/components/IconButton.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2132 -2039
- package/dist/index.js.map +1 -1
- package/dist/lib/calendar.d.ts +3 -0
- package/dist/lib/layers.d.ts +13 -0
- package/dist/lib/strings.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes, type ReactNode } from "react";
|
|
2
|
-
export type ButtonVariant = "primary" | "tonal" | "secondary" | "ghost" | "danger";
|
|
2
|
+
export type ButtonVariant = "primary" | "tonal" | "secondary" | "ghost" | "danger" | "overlay";
|
|
3
3
|
export type ButtonSize = "sm" | "md" | "lg";
|
|
4
4
|
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
5
5
|
variant?: ButtonVariant;
|
|
@@ -8,7 +8,11 @@ export interface CalendarProps {
|
|
|
8
8
|
locale?: string;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* The month grid. Uses Intl for day and month names, so it follows the app's 20 locales.
|
|
13
|
+
* The month title opens a month and year view with a typed year, so a date centuries
|
|
14
|
+
* away is a few keystrokes rather than hundreds of clicks.
|
|
15
|
+
*/
|
|
12
16
|
export declare function Calendar({ value, onChange, min, max, weekStartsOn, locale: localeProp, className }: CalendarProps): import("react").JSX.Element;
|
|
13
17
|
export interface DatePickerProps extends Omit<CalendarProps, "className"> {
|
|
14
18
|
/** Shown when nothing is chosen. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ButtonHTMLAttributes, type ReactNode } from "react";
|
|
2
|
-
export type IconButtonVariant = "ghost" | "secondary" | "tonal";
|
|
2
|
+
export type IconButtonVariant = "ghost" | "secondary" | "tonal" | "overlay";
|
|
3
3
|
export type IconButtonSize = "sm" | "md" | "lg";
|
|
4
4
|
export interface IconButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
5
5
|
/** Required: icon buttons have no visible text. */
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { motion } from "./lib/motion";
|
|
|
7
7
|
export { useLongPress } from "./lib/useLongPress";
|
|
8
8
|
export { useMediaQuery, useCompactLayout } from "./lib/useMediaQuery";
|
|
9
9
|
export { useModal } from "./lib/useModal";
|
|
10
|
+
export { useDismissLayer, dismissTopLayer, pushLayer } from "./lib/layers";
|
|
10
11
|
export { useImageBrightness } from "./lib/imageBrightness";
|
|
11
12
|
export { FrameProvider, useFrame, usePortalTarget } from "./lib/frame";
|
|
12
13
|
export { tintFromName } from "./lib/tint";
|