@krak-stack/registry 0.8.3 → 0.9.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +10 -5
  2. package/dist/components/ui/animated-list.js +5 -0
  3. package/dist/components/ui/app-switcher.d.ts +2 -1
  4. package/dist/components/ui/app-switcher.js +5 -1
  5. package/dist/components/ui/async-action-button.d.ts +2 -1
  6. package/dist/components/ui/async-action-button.js +3 -1
  7. package/dist/components/ui/bulk-list-input.d.ts +2 -1
  8. package/dist/components/ui/bulk-list-input.js +6 -1
  9. package/dist/components/ui/calendar.d.ts +10 -0
  10. package/dist/components/ui/choice-cards.d.ts +1 -0
  11. package/dist/components/ui/choice-cards.js +7 -1
  12. package/dist/components/ui/color-picker.d.ts +2 -1
  13. package/dist/components/ui/color-picker.js +4 -1
  14. package/dist/components/ui/cron-expression-editor.d.ts +3 -1
  15. package/dist/components/ui/cron-expression-editor.js +13 -3
  16. package/dist/components/ui/danger-confirmation.d.ts +1 -0
  17. package/dist/components/ui/danger-confirmation.js +5 -1
  18. package/dist/components/ui/date-picker.d.ts +33 -0
  19. package/dist/components/ui/date-picker.js +470 -0
  20. package/dist/components/ui/date-picker.schema.d.ts +9 -0
  21. package/dist/components/ui/editable-text.js +8 -1
  22. package/dist/components/ui/form.d.ts +5 -5
  23. package/dist/components/ui/image-crop-editor.js +10 -1
  24. package/dist/components/ui/phone-number-input.d.ts +3 -1
  25. package/dist/components/ui/phone-number-input.js +53 -13
  26. package/dist/components/ui/phone-number-input.schema.d.ts +7 -0
  27. package/dist/components/ui/{copy-value.d.ts → secret-value.d.ts} +4 -6
  28. package/dist/components/ui/secret-value.js +222 -0
  29. package/dist/components/ui/select-with-custom-input.d.ts +36 -0
  30. package/dist/components/ui/select-with-custom-input.js +275 -0
  31. package/dist/components/ui/sidebar-layout.js +1 -0
  32. package/dist/components/ui/stepper.js +8 -0
  33. package/dist/components/ui/timezone-select.d.ts +2 -1
  34. package/dist/components/ui/timezone-select.js +5 -1
  35. package/dist/components/ui/toast.d.ts +18 -0
  36. package/dist/components/ui/toast.js +121 -0
  37. package/dist/components/ui/unsaved-changes-guard.d.ts +2 -1
  38. package/dist/components/ui/unsaved-changes-guard.js +4 -1
  39. package/dist/components/ui/upload-attachment.js +3 -0
  40. package/dist/lib/docs.js +1 -0
  41. package/package.json +19 -5
  42. package/dist/components/ui/copy-value.js +0 -319
package/CHANGELOG.md CHANGED
@@ -1,12 +1,17 @@
1
1
  # @krak-stack/registry
2
2
 
3
- ## 0.8.3
3
+ ## 0.9.0
4
4
 
5
- ### Patch Changes
5
+ ### Minor Changes
6
+
7
+ - 5cc7796: Add Date Picker with localized calendar selection, typed date-only drafts, range constraints and accessible validation. Add Select With Custom Input with application-defined options that reveal a labeled text field. Both include styling hooks and English/French documentation and previews.
8
+ - 5cc7796: Add accessible Toast notifications built on the existing Base UI primitives, with provider-scoped state, external managers, actions, promise updates, six positions and English/French documentation and previews.
9
+
10
+ Keep the toast viewport scrollable without flashing scrollbars during entry, exit or swipe animations.
11
+
12
+ Expose typed Toast part classes, stable styling slots across the new controls, missing wrapper and portal class overrides, and a bilingual component styling guide. Preserve existing className targets and fix Phone Number Input's ignored input classes.
6
13
 
7
- - Replace SecretValue with CopyValue, modeled on Kokobi's read-only copyable input. Values are visible by default; enable `secret` for reveal/hide and optional auto-hide. Add a borderless `variant="ghost"` with monospaced text and an icon-only copy button, and tighten spacing between actions.
8
-
9
- Migrate imports from `@krak-stack/registry/secret-value` to `@krak-stack/registry/copy-value`, rename `SecretValue` to `CopyValue`, and add `secret` to preserve masking. The shadcn registry item is now `@krak-stack/copy-value`. Include updated English/French documentation and previews.
14
+ Enforce the ITU E.164 15-digit phone-number limit, excluding extensions, and allow sidebar navigation rows to grow for wrapped labels.
10
15
 
11
16
  ## 0.8.2
12
17
 
@@ -61,6 +61,7 @@ var AnimatedList = ({
61
61
  return /* @__PURE__ */ jsxs(Fragment, {
62
62
  children: [
63
63
  /* @__PURE__ */ jsx(Reorder.Group, {
64
+ "data-slot": "animated-list",
64
65
  ref: container,
65
66
  as: "ul",
66
67
  axis: "y",
@@ -111,6 +112,7 @@ var AnimatedList = ({
111
112
  ]
112
113
  });
113
114
  return /* @__PURE__ */ jsx("ul", {
115
+ "data-slot": "animated-list",
114
116
  className: cn("grid gap-3", className),
115
117
  "aria-label": label,
116
118
  children: /* @__PURE__ */ jsx(AnimatePresence, {
@@ -140,6 +142,7 @@ var ReorderableListItem = ({
140
142
  const reduced = useReducedMotion();
141
143
  const controls = useDragControls();
142
144
  return /* @__PURE__ */ jsxs(Reorder.Item, {
145
+ "data-slot": "animated-list-item",
143
146
  as: "li",
144
147
  value,
145
148
  dragListener: false,
@@ -166,6 +169,7 @@ var ReorderableListItem = ({
166
169
  onDragEnd,
167
170
  children: [
168
171
  /* @__PURE__ */ jsx("button", {
172
+ "data-slot": "animated-list-handle",
169
173
  type: "button",
170
174
  disabled: disabled || !present,
171
175
  "aria-label": handleLabel,
@@ -201,6 +205,7 @@ var AnimatedListItem = ({
201
205
  const present = useIsPresent();
202
206
  const reduced = useReducedMotion();
203
207
  return /* @__PURE__ */ jsx(motion.li, {
208
+ "data-slot": "animated-list-item",
204
209
  layout: reduced === false ? "position" : false,
205
210
  className,
206
211
  inert: !present,
@@ -18,8 +18,9 @@ export type AppSwitcherProps = {
18
18
  currentApp?: string;
19
19
  disabled?: boolean;
20
20
  className?: string;
21
+ contentClassName?: string;
21
22
  locale?: string;
22
23
  messages?: Partial<Record<string, Partial<AppSwitcherMessages>>>;
23
24
  };
24
25
  /** Navigation only: the host supplies trusted destinations and available apps. */
25
- export declare const AppSwitcher: ({ items, currentApp, disabled, className, locale: override, messages, }: AppSwitcherProps) => import("react").JSX.Element;
26
+ export declare const AppSwitcher: ({ items, currentApp, disabled, className, contentClassName, locale: override, messages, }: AppSwitcherProps) => import("react").JSX.Element;
@@ -141,6 +141,7 @@ var AppSwitcher = ({
141
141
  currentApp,
142
142
  disabled,
143
143
  className,
144
+ contentClassName,
144
145
  locale: override,
145
146
  messages
146
147
  }) => {
@@ -154,6 +155,7 @@ var AppSwitcher = ({
154
155
  children: [
155
156
  /* @__PURE__ */ jsx3(DropdownMenuTrigger, {
156
157
  render: /* @__PURE__ */ jsx3(Button, {
158
+ "data-component": "app-switcher",
157
159
  type: "button",
158
160
  variant: "outline",
159
161
  size: "icon",
@@ -166,8 +168,9 @@ var AppSwitcher = ({
166
168
  })
167
169
  }),
168
170
  /* @__PURE__ */ jsx3(DropdownMenuContent, {
171
+ "data-component": "app-switcher-content",
169
172
  align: "end",
170
- className: "w-80 max-w-[calc(100vw-2rem)]",
173
+ className: cn("w-80 max-w-[calc(100vw-2rem)]", contentClassName),
171
174
  children: /* @__PURE__ */ jsxs2(DropdownMenuGroup, {
172
175
  children: [
173
176
  /* @__PURE__ */ jsx3(DropdownMenuLabel, {
@@ -178,6 +181,7 @@ var AppSwitcher = ({
178
181
  children: copy.empty
179
182
  }) : null,
180
183
  items.map((item) => /* @__PURE__ */ jsxs2(DropdownMenuItem, {
184
+ "data-component": "app-switcher-item",
181
185
  disabled: item.disabled,
182
186
  render: /* @__PURE__ */ jsx3("a", {
183
187
  href: item.disabled ? undefined : item.href,
@@ -9,8 +9,9 @@ export type AsyncActionButtonMessages = {
9
9
  export type AsyncActionButtonProps = Omit<ComponentProps<typeof Button>, "onClick" | "type" | "render" | "nativeButton" | "aria-busy"> & {
10
10
  onAction: () => Promise<void>;
11
11
  onPendingChange?: (pending: boolean) => void;
12
+ containerClassName?: string;
12
13
  locale?: string;
13
14
  messages?: Partial<Record<string, Partial<AsyncActionButtonMessages>>>;
14
15
  };
15
16
  /** Runs only on activation. Failures stay local; raw error details are never rendered. */
16
- export declare const AsyncActionButton: ({ onAction, onPendingChange, children, disabled, locale: override, messages, ...props }: AsyncActionButtonProps) => import("react").JSX.Element;
17
+ export declare const AsyncActionButton: ({ onAction, onPendingChange, children, disabled, locale: override, messages, containerClassName, ...props }: AsyncActionButtonProps) => import("react").JSX.Element;
@@ -74,6 +74,7 @@ var AsyncActionButton = ({
74
74
  disabled,
75
75
  locale: override,
76
76
  messages,
77
+ containerClassName,
77
78
  ...props
78
79
  }) => {
79
80
  const locale = useKrakstackLocale(override);
@@ -111,7 +112,8 @@ var AsyncActionButton = ({
111
112
  };
112
113
  return /* @__PURE__ */ jsxs("span", {
113
114
  "data-slot": "async-action-button",
114
- className: "inline-flex min-w-0 flex-col items-start gap-2",
115
+ "data-state": status,
116
+ className: cn("inline-flex min-w-0 flex-col items-start gap-2", containerClassName),
115
117
  children: [
116
118
  /* @__PURE__ */ jsxs(Button, {
117
119
  ...props,
@@ -13,6 +13,7 @@ export type BulkListInputProps = Omit<ComponentProps<typeof Textarea>, "value" |
13
13
  value: string;
14
14
  onValueChange: (value: string) => void;
15
15
  label?: ReactNode;
16
+ containerClassName?: string;
16
17
  files?: {
17
18
  accept: string;
18
19
  label: string;
@@ -21,4 +22,4 @@ export type BulkListInputProps = Omit<ComponentProps<typeof Textarea>, "value" |
21
22
  onSelect: (files: readonly File[]) => void;
22
23
  };
23
24
  };
24
- export declare const BulkListInput: ({ value, onValueChange, label, files, disabled, readOnly, ...props }: BulkListInputProps) => import("react").JSX.Element;
25
+ export declare const BulkListInput: ({ value, onValueChange, label, files, disabled, readOnly, containerClassName, ...props }: BulkListInputProps) => import("react").JSX.Element;
@@ -81,12 +81,14 @@ var BulkListInput = ({
81
81
  files,
82
82
  disabled,
83
83
  readOnly,
84
+ containerClassName,
84
85
  ...props
85
86
  }) => {
86
87
  const input = useRef(null);
87
88
  const filesDisabled = disabled || readOnly || files?.disabled;
88
89
  return /* @__PURE__ */ jsxs("div", {
89
- className: "flex min-w-0 flex-col gap-3",
90
+ "data-slot": "bulk-list-input",
91
+ className: cn("flex min-w-0 flex-col gap-3", containerClassName),
90
92
  onDragOver: (event) => {
91
93
  if (files && event.dataTransfer.types.includes("Files"))
92
94
  event.preventDefault();
@@ -100,6 +102,7 @@ var BulkListInput = ({
100
102
  },
101
103
  children: [
102
104
  label || files ? /* @__PURE__ */ jsxs("div", {
105
+ "data-slot": "bulk-list-header",
103
106
  className: "flex flex-wrap items-center justify-between gap-2",
104
107
  children: [
105
108
  label,
@@ -120,6 +123,7 @@ var BulkListInput = ({
120
123
  }
121
124
  }),
122
125
  /* @__PURE__ */ jsxs(Button, {
126
+ "data-component": "bulk-list-upload",
123
127
  type: "button",
124
128
  variant: "outline",
125
129
  size: "sm",
@@ -138,6 +142,7 @@ var BulkListInput = ({
138
142
  }) : null,
139
143
  /* @__PURE__ */ jsx3(Textarea, {
140
144
  ...props,
145
+ "data-component": "bulk-list-textarea",
141
146
  value,
142
147
  disabled,
143
148
  readOnly,
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import { DayPicker, type DayButton, type Locale } from "react-day-picker";
3
+ import { Button } from "./button.js";
4
+ declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
+ buttonVariant?: React.ComponentProps<typeof Button>["variant"];
6
+ }): React.JSX.Element;
7
+ declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React.ComponentProps<typeof DayButton> & {
8
+ locale?: Partial<Locale>;
9
+ }): React.JSX.Element;
10
+ export { Calendar, CalendarDayButton };
@@ -14,6 +14,7 @@ type ChoiceCardsBaseProps = {
14
14
  options: readonly ChoiceCardOption[];
15
15
  disabled?: boolean;
16
16
  className?: string;
17
+ containerClassName?: string;
17
18
  onBlur?: () => void;
18
19
  };
19
20
  export type ChoiceCardsProps = ChoiceCardsBaseProps & ({
@@ -13,16 +13,18 @@ var ChoiceCards = (props) => {
13
13
  props.error ? `${id}-error` : undefined
14
14
  ].filter(Boolean).join(" ") || undefined;
15
15
  return /* @__PURE__ */ jsxs("fieldset", {
16
+ "data-slot": "choice-cards",
16
17
  disabled: props.disabled,
17
18
  "aria-describedby": describedBy,
18
19
  "aria-invalid": props.error ? true : undefined,
19
- className: "min-w-0 space-y-3",
20
+ className: cn("min-w-0 space-y-3", props.containerClassName),
20
21
  onBlur: (event) => {
21
22
  if (!event.currentTarget.contains(event.relatedTarget))
22
23
  props.onBlur?.();
23
24
  },
24
25
  children: [
25
26
  /* @__PURE__ */ jsx("legend", {
27
+ "data-slot": "choice-cards-label",
26
28
  className: "text-sm font-medium",
27
29
  children: props.label
28
30
  }),
@@ -32,8 +34,12 @@ var ChoiceCards = (props) => {
32
34
  children: props.description
33
35
  }) : null,
34
36
  /* @__PURE__ */ jsx("div", {
37
+ "data-slot": "choice-cards-grid",
35
38
  className: cn("grid gap-3 sm:grid-cols-2", props.className),
36
39
  children: props.options.map((option) => /* @__PURE__ */ jsxs("label", {
40
+ "data-slot": "choice-card",
41
+ "data-state": (props.mode === "single" ? props.value === option.value : props.value.includes(option.value)) ? "checked" : "unchecked",
42
+ "data-disabled": props.disabled || option.disabled || undefined,
37
43
  className: "bg-card has-checked:border-primary has-checked:bg-primary/5 has-focus-visible:ring-ring flex cursor-pointer items-start gap-3 rounded-lg border p-4 text-sm transition-colors has-focus-visible:ring-2 has-disabled:cursor-not-allowed has-disabled:opacity-50",
38
44
  children: [
39
45
  /* @__PURE__ */ jsx("input", {
@@ -25,6 +25,7 @@ export type ColorPickerProps = Omit<ComponentProps<"input">, "value" | "defaultV
25
25
  onValueChange?: (value: string) => void;
26
26
  locale?: string;
27
27
  messages?: ColorPickerMessageTranslations;
28
+ contentClassName?: string;
28
29
  };
29
- export declare const ColorPicker: ({ value, defaultValue, onValueChange, locale: localeOverride, messages, className, disabled, readOnly, onBlur, onKeyDown, "aria-label": ariaLabel, "aria-invalid": ariaInvalid, ...inputProps }: ColorPickerProps) => import("react").JSX.Element;
30
+ export declare const ColorPicker: ({ value, defaultValue, onValueChange, locale: localeOverride, messages, className, contentClassName, disabled, readOnly, onBlur, onKeyDown, "aria-label": ariaLabel, "aria-invalid": ariaInvalid, ...inputProps }: ColorPickerProps) => import("react").JSX.Element;
30
31
  export {};
@@ -271,6 +271,7 @@ var ColorPicker = ({
271
271
  locale: localeOverride,
272
272
  messages,
273
273
  className,
274
+ contentClassName,
274
275
  disabled,
275
276
  readOnly,
276
277
  onBlur,
@@ -309,6 +310,7 @@ var ColorPicker = ({
309
310
  onOpenChange: setOpen,
310
311
  children: [
311
312
  /* @__PURE__ */ jsxs(InputGroup, {
313
+ "data-component": "color-picker",
312
314
  className,
313
315
  "data-disabled": disabled || undefined,
314
316
  children: [
@@ -355,8 +357,9 @@ var ColorPicker = ({
355
357
  ]
356
358
  }),
357
359
  /* @__PURE__ */ jsxs(PopoverContent, {
360
+ "data-component": "color-picker-content",
358
361
  align: "end",
359
- className: "w-64 max-w-[calc(100vw-2rem)] gap-3 p-3",
362
+ className: cn("w-64 max-w-[calc(100vw-2rem)] gap-3 p-3", contentClassName),
360
363
  children: [
361
364
  /* @__PURE__ */ jsx5(PopoverTitle, {
362
365
  className: "sr-only",
@@ -10,5 +10,7 @@ export type CronExpressionEditorProps = {
10
10
  label?: string;
11
11
  name?: string;
12
12
  disabled?: boolean;
13
+ className?: string;
14
+ inputClassName?: string;
13
15
  };
14
- export declare const CronExpressionEditor: ({ value, onValueChange, timeZone, referenceTime, locale, label, name, disabled, }: CronExpressionEditorProps) => import("react").JSX.Element;
16
+ export declare const CronExpressionEditor: ({ value, onValueChange, timeZone, referenceTime, locale, label, name, disabled, className, inputClassName, }: CronExpressionEditorProps) => import("react").JSX.Element;
@@ -83,7 +83,9 @@ var CronExpressionEditor = ({
83
83
  locale,
84
84
  label,
85
85
  name,
86
- disabled
86
+ disabled,
87
+ className,
88
+ inputClassName
87
89
  }) => {
88
90
  const id = useId();
89
91
  const language = useKrakstackLocale(locale);
@@ -99,14 +101,17 @@ var CronExpressionEditor = ({
99
101
  });
100
102
  const firstRun = dates?.[0];
101
103
  return /* @__PURE__ */ jsxs("div", {
102
- className: "grid min-w-0 gap-2",
104
+ "data-slot": "cron-expression-editor",
105
+ className: cn("grid min-w-0 gap-2", className),
103
106
  children: [
104
107
  /* @__PURE__ */ jsx2("label", {
108
+ "data-slot": "cron-label",
105
109
  htmlFor: id,
106
110
  className: "text-sm font-medium",
107
111
  children: label ?? (french ? "Expression cron" : "Cron expression")
108
112
  }),
109
113
  /* @__PURE__ */ jsx2(Input, {
114
+ "data-component": "cron-input",
110
115
  id,
111
116
  name,
112
117
  value,
@@ -115,7 +120,7 @@ var CronExpressionEditor = ({
115
120
  autoCapitalize: "off",
116
121
  spellCheck: false,
117
122
  placeholder: "*/15 9 * * 1-5",
118
- className: "font-mono tracking-wide",
123
+ className: cn("font-mono tracking-wide", inputClassName),
119
124
  "aria-invalid": !dates,
120
125
  "aria-describedby": `${id}-help`,
121
126
  onKeyDown: (event) => {
@@ -136,14 +141,17 @@ var CronExpressionEditor = ({
136
141
  }
137
142
  }),
138
143
  /* @__PURE__ */ jsx2("p", {
144
+ "data-slot": "cron-help",
139
145
  id: `${id}-help`,
140
146
  className: "text-muted-foreground text-xs",
141
147
  children: french ? "Minute · heure · jour du mois · mois · jour de la semaine" : "Minute · hour · day of month · month · day of week"
142
148
  }),
143
149
  dates && firstRun ? /* @__PURE__ */ jsxs("details", {
150
+ "data-slot": "cron-preview",
144
151
  className: "text-muted-foreground min-w-0 text-xs",
145
152
  children: [
146
153
  /* @__PURE__ */ jsxs("summary", {
154
+ "data-slot": "cron-summary",
147
155
  className: "cursor-pointer rounded-sm outline-offset-4",
148
156
  children: [
149
157
  /* @__PURE__ */ jsx2("span", {
@@ -177,6 +185,7 @@ var CronExpressionEditor = ({
177
185
  children: timeZone
178
186
  }),
179
187
  /* @__PURE__ */ jsx2("ol", {
188
+ "data-slot": "cron-runs",
180
189
  className: "mt-1 grid gap-1",
181
190
  children: dates.map((date) => /* @__PURE__ */ jsx2("li", {
182
191
  children: /* @__PURE__ */ jsx2("time", {
@@ -191,6 +200,7 @@ var CronExpressionEditor = ({
191
200
  })
192
201
  ]
193
202
  }) : /* @__PURE__ */ jsx2("p", {
203
+ "data-slot": "cron-error",
194
204
  role: "status",
195
205
  className: "text-destructive text-sm",
196
206
  children: french ? "Complétez les cinq champs. Si la règle est complète, vérifiez le fuseau, la date et les prochaines exécutions possibles." : "Complete all five fields. If the rule is complete, check the time zone, reference date and possible next runs."
@@ -15,6 +15,7 @@ export type DangerConfirmationProps = {
15
15
  onConfirm: () => Promise<void>;
16
16
  locale?: string;
17
17
  messages?: Partial<Record<string, Partial<DangerConfirmationMessages>>>;
18
+ className?: string;
18
19
  };
19
20
  /** Confirmation is a UI safeguard, never an authorization boundary. */
20
21
  export declare const DangerConfirmation: (props: DangerConfirmationProps) => import("react").JSX.Element;
@@ -175,6 +175,7 @@ var AsyncActionButton = ({
175
175
  disabled,
176
176
  locale: override,
177
177
  messages,
178
+ containerClassName,
178
179
  ...props
179
180
  }) => {
180
181
  const locale = useKrakstackLocale(override);
@@ -212,7 +213,8 @@ var AsyncActionButton = ({
212
213
  };
213
214
  return /* @__PURE__ */ jsxs2("span", {
214
215
  "data-slot": "async-action-button",
215
- className: "inline-flex min-w-0 flex-col items-start gap-2",
216
+ "data-state": status,
217
+ className: cn("inline-flex min-w-0 flex-col items-start gap-2", containerClassName),
216
218
  children: [
217
219
  /* @__PURE__ */ jsxs2(Button, {
218
220
  ...props,
@@ -301,6 +303,8 @@ var DangerConfirmation = (props) => {
301
303
  props.onOpenChange(open);
302
304
  },
303
305
  children: /* @__PURE__ */ jsx6(AlertDialogContent, {
306
+ "data-component": "danger-confirmation",
307
+ className: props.className,
304
308
  children: /* @__PURE__ */ jsx6(DangerConfirmationBody, {
305
309
  ...props,
306
310
  locale,
@@ -0,0 +1,33 @@
1
+ import { type ComponentProps } from "react";
2
+ import { Calendar } from "./calendar.js";
3
+ export { DateOnlySchema, getDatePickerState, parseDateOnly, } from "./date-picker.schema.js";
4
+ export type DatePickerMessages = {
5
+ label: string;
6
+ open: string;
7
+ clear: string;
8
+ invalid: string;
9
+ outOfRange: string;
10
+ invalidRange: string;
11
+ };
12
+ export type DatePickerProps = {
13
+ /** YYYY-MM-DD, or an empty/incomplete draft while typing. Never an instant. */
14
+ value: string;
15
+ onValueChange: (value: string) => void;
16
+ min?: string;
17
+ max?: string;
18
+ label?: string;
19
+ name?: string;
20
+ required?: boolean;
21
+ disabled?: boolean;
22
+ readOnly?: boolean;
23
+ clearable?: boolean;
24
+ description?: string;
25
+ locale?: string;
26
+ messages?: Partial<Record<string, Partial<DatePickerMessages>>>;
27
+ className?: string;
28
+ inputClassName?: string;
29
+ contentClassName?: string;
30
+ calendarClassName?: string;
31
+ calendarClassNames?: ComponentProps<typeof Calendar>["classNames"];
32
+ };
33
+ export declare const DatePicker: ({ value, onValueChange, min, max, label, name, required, disabled, readOnly, clearable, description, locale: override, messages, className, inputClassName, contentClassName, calendarClassName, calendarClassNames, }: DatePickerProps) => import("react").JSX.Element;