docthub-core-components 2.99.2 → 3.1.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 (88) hide show
  1. package/dist/components/overrides/ui/auto-complete.js +466 -0
  2. package/dist/components/overrides/ui/autocomplete-checkbox.js +480 -0
  3. package/dist/components/overrides/ui/chips/doct-chip.js +157 -0
  4. package/dist/components/overrides/ui/circular-progress.js +32 -0
  5. package/dist/components/overrides/ui/composed/address-form-section.js +67 -0
  6. package/dist/components/overrides/ui/composed/contact-form-section.js +56 -0
  7. package/dist/components/overrides/ui/composed/search-filter-section.js +132 -0
  8. package/dist/components/overrides/ui/composed/user-registration-section.js +77 -0
  9. package/dist/components/overrides/ui/currencyInput/currency-input.js +69 -0
  10. package/dist/components/overrides/ui/doct-animation-loader.js +13 -0
  11. package/dist/components/overrides/ui/expandable-card.js +115 -0
  12. package/dist/components/overrides/ui/footer/doct-footer.js +35 -0
  13. package/dist/components/overrides/ui/footer/footer-desktop.js +92 -0
  14. package/dist/components/overrides/ui/footer/footer-mobile.js +123 -0
  15. package/dist/components/overrides/ui/footer/footer-routes.js +87 -0
  16. package/dist/components/overrides/ui/footer/footer-shared.js +137 -0
  17. package/dist/components/overrides/ui/footer/presets.js +269 -0
  18. package/dist/components/overrides/ui/inputs/labeled-input.js +92 -0
  19. package/dist/components/overrides/ui/inputs/otp-input.js +101 -0
  20. package/dist/components/overrides/ui/inputs/password-input.js +77 -0
  21. package/dist/components/overrides/ui/inputs/phone-input.js +336 -0
  22. package/dist/components/overrides/ui/navigation-menu/doct-navigation-menu.js +22 -0
  23. package/dist/components/overrides/ui/navigation-menu/individual-nav-routes.js +46 -0
  24. package/dist/components/overrides/ui/navigation-menu/individual-navigation-menu-desktop.js +109 -0
  25. package/dist/components/overrides/ui/navigation-menu/individual-navigation-menu-mobile.js +231 -0
  26. package/dist/components/overrides/ui/navigation-menu/individual-navigation-menu.js +44 -0
  27. package/dist/components/overrides/ui/navigation-menu/nav-env.js +64 -0
  28. package/dist/components/overrides/ui/navigation-menu/navigation-menu-adapter.js +55 -0
  29. package/dist/components/overrides/ui/navigation-menu/navigation-menu-internal.js +36 -0
  30. package/dist/components/overrides/ui/navigation-menu/organization-nav-routes.js +34 -0
  31. package/dist/components/overrides/ui/navigation-menu/organization-navigation-menu-desktop.js +109 -0
  32. package/dist/components/overrides/ui/navigation-menu/organization-navigation-menu-mobile.js +231 -0
  33. package/dist/components/overrides/ui/navigation-menu/organization-navigation-menu.js +44 -0
  34. package/dist/components/overrides/ui/navigation-menu/presets.js +238 -0
  35. package/dist/components/overrides/ui/navigation-menu/types.js +6 -0
  36. package/dist/components/overrides/ui/pickers/date-picker-field.js +361 -0
  37. package/dist/components/overrides/ui/pickers/date-range-picker-field.js +288 -0
  38. package/dist/components/overrides/ui/pickers/day-picker-bounds.js +38 -0
  39. package/dist/components/overrides/ui/pickers/select-field.js +158 -0
  40. package/dist/components/overrides/ui/search/auto-complete.js +64 -0
  41. package/dist/components/overrides/ui/search/search-input.js +65 -0
  42. package/dist/components/overrides/ui/showcase/component-section.js +45 -0
  43. package/dist/components/ui/alert.js +94 -0
  44. package/dist/components/ui/avatar.js +69 -0
  45. package/dist/components/ui/badge.js +37 -0
  46. package/dist/components/ui/breadcrumb.js +117 -0
  47. package/dist/components/ui/button.js +223 -0
  48. package/dist/components/ui/calendar.js +100 -0
  49. package/dist/components/ui/checkbox.js +57 -0
  50. package/dist/components/ui/collapsible.js +25 -0
  51. package/dist/components/ui/command.js +132 -0
  52. package/dist/components/ui/dialog.js +230 -0
  53. package/dist/components/ui/drawer.js +119 -0
  54. package/dist/components/ui/dropdown-menu.js +216 -0
  55. package/dist/components/ui/input.js +48 -0
  56. package/dist/components/ui/label.js +22 -0
  57. package/dist/components/ui/popover.js +181 -0
  58. package/dist/components/ui/progress.js +91 -0
  59. package/dist/components/ui/radio-group.js +49 -0
  60. package/dist/components/ui/select.js +169 -0
  61. package/dist/components/ui/skeleton.js +91 -0
  62. package/dist/components/ui/spinner.js +32 -0
  63. package/dist/components/ui/tabs.js +68 -0
  64. package/dist/components/ui/textarea.js +73 -0
  65. package/dist/components/ui/timeline.js +177 -0
  66. package/dist/components/ui/toast.js +82 -0
  67. package/dist/components/ui/tooltip.js +91 -0
  68. package/dist/components/ui/typography.js +213 -0
  69. package/dist/hooks/use-exclusive-dropdown.js +53 -0
  70. package/dist/hooks/use-mobile.js +19 -0
  71. package/dist/hooks/useAutocompleteCheckbox.js +204 -0
  72. package/dist/index.esm.js +7173 -7126
  73. package/dist/index.js +187 -0
  74. package/dist/lib/dropdown-manager.js +17 -0
  75. package/dist/lib/get-floating-dropdown-position.js +32 -0
  76. package/dist/lib/get-scroll-parents.js +20 -0
  77. package/dist/lib/slot.js +40 -0
  78. package/dist/lib/utils.js +9 -0
  79. package/dist/src/components/ui/alert.d.ts +1 -1
  80. package/dist/src/components/ui/button.d.ts +1 -1
  81. package/dist/src/components/ui/command.d.ts +3 -3
  82. package/dist/src/components/ui/timeline.d.ts +1 -1
  83. package/dist/src/index.d.ts +15 -15
  84. package/dist/src/lib/get-floating-dropdown-position.d.ts +9 -1
  85. package/dist/src/lib/get-scroll-parents.d.ts +6 -0
  86. package/dist/style.css +1 -1
  87. package/dist/util/getInputClasses.js +19 -0
  88. package/package.json +131 -132
package/dist/index.js ADDED
@@ -0,0 +1,187 @@
1
+ "use client";
2
+ /* empty css */
3
+ import { DoctAutocomplete as t } from "./components/overrides/ui/auto-complete.js";
4
+ import { AutocompleteCheckbox as D } from "./components/overrides/ui/autocomplete-checkbox.js";
5
+ import { Chip as c } from "./components/overrides/ui/chips/doct-chip.js";
6
+ import { CircularProgress as s } from "./components/overrides/ui/circular-progress.js";
7
+ import { AddressFormSection as m } from "./components/overrides/ui/composed/address-form-section.js";
8
+ import { ContactFormSection as d } from "./components/overrides/ui/composed/contact-form-section.js";
9
+ import { SearchFilterSection as g } from "./components/overrides/ui/composed/search-filter-section.js";
10
+ import { UserRegistrationSection as x } from "./components/overrides/ui/composed/user-registration-section.js";
11
+ import { CurrencyInput as T } from "./components/overrides/ui/currencyInput/currency-input.js";
12
+ import { DoctAnimationLoader as w } from "./components/overrides/ui/doct-animation-loader.js";
13
+ import { ExpandableCard as S } from "./components/overrides/ui/expandable-card.js";
14
+ import { LabeledInput as A } from "./components/overrides/ui/inputs/labeled-input.js";
15
+ import { OtpInput as M } from "./components/overrides/ui/inputs/otp-input.js";
16
+ import { PasswordInput as R } from "./components/overrides/ui/inputs/password-input.js";
17
+ import { DoctPhoneInput as h } from "./components/overrides/ui/inputs/phone-input.js";
18
+ import { DatePickerField as k } from "./components/overrides/ui/pickers/date-picker-field.js";
19
+ import { DateRangePickerField as O } from "./components/overrides/ui/pickers/date-range-picker-field.js";
20
+ import { SelectField as V } from "./components/overrides/ui/pickers/select-field.js";
21
+ import { AutoComplete as G } from "./components/overrides/ui/search/auto-complete.js";
22
+ import { SearchInput as y } from "./components/overrides/ui/search/search-input.js";
23
+ import { ComponentVariant as Q, ComponentSection as Z } from "./components/overrides/ui/showcase/component-section.js";
24
+ import { Alert as j, AlertDescription as q, AlertTitle as J } from "./components/ui/alert.js";
25
+ import { Avatar as W, AvatarFallback as X, AvatarImage as Y } from "./components/ui/avatar.js";
26
+ import { Badge as oo, badgeVariants as ro } from "./components/ui/badge.js";
27
+ import { Breadcrumb as to, BreadcrumbEllipsis as ao, BreadcrumbItem as Do, BreadcrumbLink as no, BreadcrumbList as co, BreadcrumbPage as po, BreadcrumbSeparator as so } from "./components/ui/breadcrumb.js";
28
+ import { DoctButton as mo } from "./components/ui/button.js";
29
+ import { CalendarDayButton as uo, Calendar as go } from "./components/ui/calendar.js";
30
+ import { Checkbox as xo } from "./components/ui/checkbox.js";
31
+ import { Collapsible as To, CollapsibleContent as fo, CollapsibleTrigger as wo } from "./components/ui/collapsible.js";
32
+ import { Command as So, CommandDialog as Po, CommandEmpty as Ao, CommandGroup as vo, CommandInput as Mo, CommandItem as No, CommandList as Ro, CommandSeparator as Bo, CommandShortcut as ho } from "./components/ui/command.js";
33
+ import { Dialog as ko, DialogClose as Lo, DialogContent as Oo, DialogDescription as _o, DialogFooter as Vo, DialogHeader as Eo, DialogScrollableBody as Go, DialogTitle as Uo, DialogTrigger as yo } from "./components/ui/dialog.js";
34
+ import { Drawer as Qo, DrawerClose as Zo, DrawerContent as zo, DrawerDescription as jo, DrawerFooter as qo, DrawerHeader as Jo, DrawerTitle as Ko, DrawerTrigger as Wo } from "./components/ui/drawer.js";
35
+ import { DropdownMenu as Yo, DropdownMenuCheckboxItem as $o, DropdownMenuContent as or, DropdownMenuGroup as rr, DropdownMenuItem as er, DropdownMenuLabel as tr, DropdownMenuRadioGroup as ar, DropdownMenuRadioItem as Dr, DropdownMenuSeparator as nr, DropdownMenuShortcut as cr, DropdownMenuSub as pr, DropdownMenuSubContent as sr, DropdownMenuSubTrigger as ir, DropdownMenuTrigger as mr } from "./components/ui/dropdown-menu.js";
36
+ import { Input as dr } from "./components/ui/input.js";
37
+ import { Label as gr } from "./components/ui/label.js";
38
+ import { Popover as xr, PopoverArrow as br, PopoverBackdrop as Tr, PopoverClose as fr, PopoverContent as wr, PopoverDescription as Ir, PopoverHeader as Sr, PopoverTitle as Pr, PopoverTrigger as Ar, PopoverViewport as vr } from "./components/ui/popover.js";
39
+ import { Progress as Nr } from "./components/ui/progress.js";
40
+ import { RadioGroup as Br, RadioGroupItem as hr } from "./components/ui/radio-group.js";
41
+ import { Skeleton as kr } from "./components/ui/skeleton.js";
42
+ import { Tabs as Or, TabsContent as _r, TabsList as Vr, TabsTrigger as Er } from "./components/ui/tabs.js";
43
+ import { Textarea as Ur } from "./components/ui/textarea.js";
44
+ import { Timeline as Hr } from "./components/ui/timeline.js";
45
+ import { toast as Zr, Toaster as zr } from "./components/ui/toast.js";
46
+ import { Tooltip as qr, TooltipContent as Jr, TooltipProvider as Kr, TooltipTrigger as Wr } from "./components/ui/tooltip.js";
47
+ import { DoctTypography as Yr } from "./components/ui/typography.js";
48
+ import { useAutocompleteCheckbox as oe } from "./hooks/useAutocompleteCheckbox.js";
49
+ import { DoctFooter as ee } from "./components/overrides/ui/footer/doct-footer.js";
50
+ import { DoctNavigationMenu as ae } from "./components/overrides/ui/navigation-menu/doct-navigation-menu.js";
51
+ import { INDIVIDUAL_NAV_ROUTES as ne, INDIVIDUAL_NAV_ROUTES_PROD as ce, INDIVIDUAL_NAV_ROUTES_QA as pe } from "./components/overrides/ui/navigation-menu/individual-nav-routes.js";
52
+ import { IndividualNavigationMenu as ie } from "./components/overrides/ui/navigation-menu/individual-navigation-menu.js";
53
+ import { ORGANIZATION_NAV_ROUTES as le, ORGANIZATION_NAV_ROUTES_PROD as de, ORGANIZATION_NAV_ROUTES_QA as ue } from "./components/overrides/ui/navigation-menu/organization-nav-routes.js";
54
+ import { OrganizationNavigationMenu as Ce } from "./components/overrides/ui/navigation-menu/organization-navigation-menu.js";
55
+ import { isPossiblePhoneNumber as be, isValidPhoneNumber as Te } from "react-phone-number-input";
56
+ import { isProdNav as we, isQaNav as Ie, resolveNavEnv as Se } from "./components/overrides/ui/navigation-menu/nav-env.js";
57
+ export {
58
+ uo as CalendarDayButton,
59
+ Q as ComponentVariant,
60
+ m as DoctAddressFormSection,
61
+ j as DoctAlert,
62
+ q as DoctAlertDescription,
63
+ J as DoctAlertTitle,
64
+ w as DoctAnimationLoader,
65
+ G as DoctAutoComplete,
66
+ t as DoctAutocomplete,
67
+ D as DoctAutocompleteCheckbox,
68
+ W as DoctAvatar,
69
+ X as DoctAvatarFallback,
70
+ Y as DoctAvatarImage,
71
+ oo as DoctBadge,
72
+ to as DoctBreadcrumb,
73
+ ao as DoctBreadcrumbEllipsis,
74
+ Do as DoctBreadcrumbItem,
75
+ no as DoctBreadcrumbLink,
76
+ co as DoctBreadcrumbList,
77
+ po as DoctBreadcrumbPage,
78
+ so as DoctBreadcrumbSeparator,
79
+ mo as DoctButton,
80
+ go as DoctCalendar,
81
+ xo as DoctCheckbox,
82
+ c as DoctChip,
83
+ s as DoctCircularProgress,
84
+ To as DoctCollapsible,
85
+ fo as DoctCollapsibleContent,
86
+ wo as DoctCollapsibleTrigger,
87
+ So as DoctCommand,
88
+ Po as DoctCommandDialog,
89
+ Ao as DoctCommandEmpty,
90
+ vo as DoctCommandGroup,
91
+ Mo as DoctCommandInput,
92
+ No as DoctCommandItem,
93
+ Ro as DoctCommandList,
94
+ Bo as DoctCommandSeparator,
95
+ ho as DoctCommandShortcut,
96
+ Z as DoctComponentSection,
97
+ d as DoctContactFormSection,
98
+ T as DoctCurrencyInput,
99
+ k as DoctDatePickerField,
100
+ O as DoctDateRangePickerField,
101
+ ko as DoctDialog,
102
+ Lo as DoctDialogClose,
103
+ Oo as DoctDialogContent,
104
+ _o as DoctDialogDescription,
105
+ Vo as DoctDialogFooter,
106
+ Eo as DoctDialogHeader,
107
+ Go as DoctDialogScrollableBody,
108
+ Uo as DoctDialogTitle,
109
+ yo as DoctDialogTrigger,
110
+ Qo as DoctDrawer,
111
+ Zo as DoctDrawerClose,
112
+ zo as DoctDrawerContent,
113
+ jo as DoctDrawerDescription,
114
+ qo as DoctDrawerFooter,
115
+ Jo as DoctDrawerHeader,
116
+ Ko as DoctDrawerTitle,
117
+ Wo as DoctDrawerTrigger,
118
+ Yo as DoctDropdownMenu,
119
+ $o as DoctDropdownMenuCheckboxItem,
120
+ or as DoctDropdownMenuContent,
121
+ rr as DoctDropdownMenuGroup,
122
+ er as DoctDropdownMenuItem,
123
+ tr as DoctDropdownMenuLabel,
124
+ ar as DoctDropdownMenuRadioGroup,
125
+ Dr as DoctDropdownMenuRadioItem,
126
+ nr as DoctDropdownMenuSeparator,
127
+ cr as DoctDropdownMenuShortcut,
128
+ pr as DoctDropdownMenuSub,
129
+ sr as DoctDropdownMenuSubContent,
130
+ ir as DoctDropdownMenuSubTrigger,
131
+ mr as DoctDropdownMenuTrigger,
132
+ S as DoctExpandableCard,
133
+ ee as DoctFooter,
134
+ dr as DoctInput,
135
+ gr as DoctLabel,
136
+ A as DoctLabeledInput,
137
+ ae as DoctNavigationMenu,
138
+ M as DoctOtpInput,
139
+ R as DoctPasswordInput,
140
+ h as DoctPhoneInput,
141
+ xr as DoctPopover,
142
+ br as DoctPopoverArrow,
143
+ Tr as DoctPopoverBackdrop,
144
+ fr as DoctPopoverClose,
145
+ wr as DoctPopoverContent,
146
+ Ir as DoctPopoverDescription,
147
+ Sr as DoctPopoverHeader,
148
+ Pr as DoctPopoverTitle,
149
+ Ar as DoctPopoverTrigger,
150
+ vr as DoctPopoverViewport,
151
+ Nr as DoctProgress,
152
+ Br as DoctRadioGroup,
153
+ hr as DoctRadioGroupItem,
154
+ g as DoctSearchFilterSection,
155
+ y as DoctSearchInput,
156
+ V as DoctSelectField,
157
+ kr as DoctSkeleton,
158
+ Or as DoctTabs,
159
+ _r as DoctTabsContent,
160
+ Vr as DoctTabsList,
161
+ Er as DoctTabsTrigger,
162
+ Ur as DoctTextareaField,
163
+ Hr as DoctTimeline,
164
+ Zr as DoctToast,
165
+ zr as DoctToaster,
166
+ qr as DoctTooltip,
167
+ Jr as DoctTooltipContent,
168
+ Kr as DoctTooltipProvider,
169
+ Wr as DoctTooltipTrigger,
170
+ Yr as DoctTypography,
171
+ x as DoctUserRegistrationSection,
172
+ ne as INDIVIDUAL_NAV_ROUTES,
173
+ ce as INDIVIDUAL_NAV_ROUTES_PROD,
174
+ pe as INDIVIDUAL_NAV_ROUTES_QA,
175
+ ie as IndividualNavigationMenu,
176
+ le as ORGANIZATION_NAV_ROUTES,
177
+ de as ORGANIZATION_NAV_ROUTES_PROD,
178
+ ue as ORGANIZATION_NAV_ROUTES_QA,
179
+ Ce as OrganizationNavigationMenu,
180
+ ro as badgeVariants,
181
+ be as isPossiblePhoneNumber,
182
+ we as isProdNav,
183
+ Ie as isQaNav,
184
+ Te as isValidPhoneNumber,
185
+ Se as resolveNavEnv,
186
+ oe as useAutocompleteCheckbox
187
+ };
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ let n = null;
3
+ function e(o) {
4
+ if (n && n !== o)
5
+ try {
6
+ n();
7
+ } catch {
8
+ }
9
+ n = o;
10
+ }
11
+ function l(o) {
12
+ n === o && (n = null);
13
+ }
14
+ export {
15
+ e as openDropdown,
16
+ l as releaseDropdown
17
+ };
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ const I = ({
3
+ anchorRect: t,
4
+ strategy: M = "fixed",
5
+ placement: x = "auto",
6
+ preferredMaxHeight: f = 240,
7
+ gap: m = 4,
8
+ viewportPadding: l = 8,
9
+ clipRects: e = []
10
+ }) => {
11
+ const w = window.innerHeight, H = window.innerWidth, S = M === "absolute" ? window.scrollX : 0, p = M === "absolute" ? window.scrollY : 0, u = e.reduce((i, o) => Math.max(i, o.top), 0), d = e.reduce((i, o) => Math.min(i, o.bottom), w), s = e.reduce((i, o) => Math.max(i, o.left), 0), n = e.reduce((i, o) => Math.min(i, o.right), H), c = t.bottom < u || t.top > d || t.left + t.width < s || t.left > n, A = Math.max(0, d - t.bottom - l - m), B = Math.max(0, t.top - u - l - m), C = Math.max(0, w - t.bottom - l - m), L = Math.max(0, t.top - l - m), W = Math.min(f, 160), a = x === "auto" ? A >= W || A >= B ? "bottom" : "top" : x, F = Math.max(0, Math.min(f, a === "bottom" ? C : L)), v = c ? 0 : F, X = t.left >= s && t.left + t.width <= n;
12
+ let h, b;
13
+ if (X)
14
+ h = t.width, b = t.left;
15
+ else {
16
+ const i = Math.max(n - s - l * 2, 0);
17
+ h = Math.min(t.width, i);
18
+ const o = s + l, Y = Math.max(o, n - l - h);
19
+ b = Math.min(Math.max(t.left, o), Y);
20
+ }
21
+ return {
22
+ top: a === "bottom" ? t.bottom + m + p : t.top - m - v + p,
23
+ left: b + S,
24
+ width: h,
25
+ maxHeight: v,
26
+ placement: a,
27
+ isAnchorClipped: c
28
+ };
29
+ };
30
+ export {
31
+ I as getFloatingDropdownPosition
32
+ };
@@ -0,0 +1,20 @@
1
+ "use client";
2
+ const w = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), i = (o) => {
3
+ if (typeof window > "u")
4
+ return [];
5
+ const e = [];
6
+ let t = (o == null ? void 0 : o.parentElement) ?? null;
7
+ for (; t; ) {
8
+ const {
9
+ overflow: n,
10
+ overflowX: r,
11
+ overflowY: l
12
+ } = window.getComputedStyle(t);
13
+ [n, r, l].some((s) => w.has(s)) && e.push(t), t = t.parentElement;
14
+ }
15
+ return e.push(window), Array.from(new Set(e));
16
+ }, c = (o) => typeof window > "u" ? [] : i(o).filter((e) => e !== window).map((e) => e.getBoundingClientRect());
17
+ export {
18
+ c as getScrollParentClipRects,
19
+ i as getScrollParents
20
+ };
@@ -0,0 +1,40 @@
1
+ "use client";
2
+ import * as s from "react";
3
+ const r = s.forwardRef(({
4
+ children: o,
5
+ ...f
6
+ }, e) => {
7
+ if (!s.isValidElement(o))
8
+ return null;
9
+ const t = o.props, n = t.ref ?? o.ref;
10
+ return s.cloneElement(o, {
11
+ ...u(f, t),
12
+ ref: e ? a(e, n) : n
13
+ });
14
+ });
15
+ r.displayName = "Slot";
16
+ function u(o, f) {
17
+ const e = {
18
+ ...f
19
+ };
20
+ for (const t of Object.keys(o)) {
21
+ const n = o[t], c = f[t];
22
+ t === "style" ? e[t] = {
23
+ ...c,
24
+ ...n
25
+ } : t === "className" ? e[t] = [c, n].filter(Boolean).join(" ") : typeof n == "function" && typeof c == "function" ? e[t] = (...i) => {
26
+ const l = i[0];
27
+ c(...i), (!(typeof l == "object" && l !== null && "preventDefault" in l && typeof l.preventDefault == "function" && "defaultPrevented" in l && typeof l.defaultPrevented == "boolean") || !l.defaultPrevented) && n(...i);
28
+ } : n !== void 0 && (e[t] = n);
29
+ }
30
+ return e;
31
+ }
32
+ function a(...o) {
33
+ return (f) => {
34
+ for (const e of o)
35
+ typeof e == "function" ? e(f) : e && typeof e == "object" && (e.current = f);
36
+ };
37
+ }
38
+ export {
39
+ r as Slot
40
+ };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import { clsx as t } from "clsx";
3
+ import { twMerge as e } from "tailwind-merge";
4
+ function c(...r) {
5
+ return e(t(r));
6
+ }
7
+ export {
8
+ c as cn
9
+ };
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const alertVariants: (props?: ({
4
- variant?: "default" | "error" | "destructive" | "success" | "warning" | "info" | null | undefined;
4
+ variant?: "error" | "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
7
7
  /** Custom icon to display. Set to false to hide icon. */
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import { default as React } from 'react';
3
3
  declare const DoctButtonVariants: (props?: ({
4
- variant?: "default" | "error" | "disabled" | "secondary" | "primary" | "blue" | "success" | "warning" | "informative" | "secondary-error" | "secondary-success" | "secondary-warning" | "secondary-informative" | "outline" | "outline-error" | "outline-success" | "outline-warning" | "outline-informative" | "ghost" | "ghost-error" | "ghost-success" | "ghost-warning" | "ghost-informative" | "brandBlue" | null | undefined;
4
+ variant?: "error" | "disabled" | "default" | "secondary" | "outline" | "primary" | "success" | "warning" | "informative" | "secondary-error" | "secondary-success" | "secondary-warning" | "secondary-informative" | "outline-error" | "outline-success" | "outline-warning" | "outline-informative" | "ghost" | "ghost-error" | "ghost-success" | "ghost-warning" | "ghost-informative" | "blue" | "brandBlue" | null | undefined;
5
5
  size?: "small" | "medium" | "large" | "icon.large" | "icon.medium" | "icon.small" | null | undefined;
6
6
  iconSize?: "small" | "medium" | "large" | null | undefined;
7
7
  iconPosition?: "left" | "right" | null | undefined;
@@ -22,7 +22,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
22
22
  ref?: React.Ref<HTMLInputElement>;
23
23
  } & {
24
24
  asChild?: boolean;
25
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
25
+ }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
26
26
  value?: string;
27
27
  onValueChange?: (search: string) => void;
28
28
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
@@ -48,7 +48,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
48
48
  ref?: React.Ref<HTMLDivElement>;
49
49
  } & {
50
50
  asChild?: boolean;
51
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
51
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
52
52
  heading?: React.ReactNode;
53
53
  value?: string;
54
54
  forceMount?: boolean;
@@ -66,7 +66,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
66
66
  ref?: React.Ref<HTMLDivElement>;
67
67
  } & {
68
68
  asChild?: boolean;
69
- }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
69
+ }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
70
70
  disabled?: boolean;
71
71
  onSelect?: (value: string) => void;
72
72
  value?: string;
@@ -21,7 +21,7 @@ declare const dotClasses: (props?: ({
21
21
  y?: "base" | null | undefined;
22
22
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
23
23
  declare const itemsGapClasses: (props?: ({
24
- density?: "card" | "compact" | "comfortable" | null | undefined;
24
+ density?: "compact" | "card" | "comfortable" | null | undefined;
25
25
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
26
26
  declare const indentClasses: (props?: ({
27
27
  indent?: "sm" | "md" | "lg" | null | undefined;
@@ -1,22 +1,21 @@
1
- export { CircularProgress as DoctCircularProgress } from './components/overrides/ui/circular-progress';
2
- export { DoctAnimationLoader } from './components/overrides/ui/doct-animation-loader';
3
- export { LabeledInput as DoctLabeledInput } from './components/overrides/ui/inputs/labeled-input';
4
- export { OtpInput as DoctOtpInput } from './components/overrides/ui/inputs/otp-input';
5
- export { PasswordInput as DoctPasswordInput } from './components/overrides/ui/inputs/password-input';
6
- export type { CustomCountry, DoctPhoneInputProps, } from './components/overrides/ui/inputs/phone-input';
7
- export { DoctPhoneInput, isPossiblePhoneNumber, isValidPhoneNumber, } from './components/overrides/ui/inputs/phone-input';
8
- export { DoctButton } from './components/ui/button';
9
- export { Textarea as DoctTextareaField } from './components/ui/textarea';
10
- export { DoctTypography } from './components/ui/typography';
11
1
  export { DoctAutocomplete } from './components/overrides/ui/auto-complete';
12
2
  export { AutocompleteCheckbox as DoctAutocompleteCheckbox } from './components/overrides/ui/autocomplete-checkbox';
13
3
  export { Chip as DoctChip } from './components/overrides/ui/chips/doct-chip';
4
+ export { CircularProgress as DoctCircularProgress } from './components/overrides/ui/circular-progress';
14
5
  export { AddressFormSection as DoctAddressFormSection } from './components/overrides/ui/composed/address-form-section';
15
6
  export { ContactFormSection as DoctContactFormSection } from './components/overrides/ui/composed/contact-form-section';
16
7
  export { SearchFilterSection as DoctSearchFilterSection } from './components/overrides/ui/composed/search-filter-section';
17
8
  export { UserRegistrationSection as DoctUserRegistrationSection } from './components/overrides/ui/composed/user-registration-section';
18
9
  export { CurrencyInput as DoctCurrencyInput } from './components/overrides/ui/currencyInput/currency-input';
10
+ export { DoctAnimationLoader } from './components/overrides/ui/doct-animation-loader';
19
11
  export { ExpandableCard as DoctExpandableCard } from './components/overrides/ui/expandable-card';
12
+ export { DoctFooter, type DoctFooterProps, type FooterAppLink, type FooterBrand, type FooterColumn, type FooterLink, type FooterSection, type FooterSocialLink, } from './components/overrides/ui/footer';
13
+ export { LabeledInput as DoctLabeledInput } from './components/overrides/ui/inputs/labeled-input';
14
+ export { OtpInput as DoctOtpInput } from './components/overrides/ui/inputs/otp-input';
15
+ export { PasswordInput as DoctPasswordInput } from './components/overrides/ui/inputs/password-input';
16
+ export type { CustomCountry, DoctPhoneInputProps, } from './components/overrides/ui/inputs/phone-input';
17
+ export { DoctPhoneInput, isPossiblePhoneNumber, isValidPhoneNumber, } from './components/overrides/ui/inputs/phone-input';
18
+ export { DoctNavigationMenu, type DoctNavigationMenuProps, type DoctNavigationMenuVariant, INDIVIDUAL_NAV_ROUTES, INDIVIDUAL_NAV_ROUTES_PROD, INDIVIDUAL_NAV_ROUTES_QA, IndividualNavigationMenu, type IndividualNavigationMenuProps, type IndividualNavRoutes, isProdNav, isQaNav, type MobileMenuCategory, type NavigationMenuGroup, type NavigationMenuGroupVariant, type NavigationMenuItem, type NavigationMenuSection, ORGANIZATION_NAV_ROUTES, ORGANIZATION_NAV_ROUTES_PROD, ORGANIZATION_NAV_ROUTES_QA, OrganizationNavigationMenu, type OrganizationNavigationMenuProps, type OrganizationNavRoutes, resolveNavEnv, } from './components/overrides/ui/navigation-menu';
20
19
  export { DatePickerField as DoctDatePickerField } from './components/overrides/ui/pickers/date-picker-field';
21
20
  export { DateRangePickerField as DoctDateRangePickerField } from './components/overrides/ui/pickers/date-range-picker-field';
22
21
  export { SelectField as DoctSelectField } from './components/overrides/ui/pickers/select-field';
@@ -26,6 +25,8 @@ export { ComponentSection as DoctComponentSection, ComponentVariant, } from './c
26
25
  export { Alert as DoctAlert, AlertDescription as DoctAlertDescription, AlertTitle as DoctAlertTitle, } from './components/ui/alert';
27
26
  export { Avatar as DoctAvatar, AvatarFallback as DoctAvatarFallback, AvatarImage as DoctAvatarImage, } from './components/ui/avatar';
28
27
  export { Badge as DoctBadge, type BadgeProps, badgeVariants } from './components/ui/badge';
28
+ export { Breadcrumb as DoctBreadcrumb, BreadcrumbEllipsis as DoctBreadcrumbEllipsis, BreadcrumbItem as DoctBreadcrumbItem, BreadcrumbLink as DoctBreadcrumbLink, BreadcrumbList as DoctBreadcrumbList, BreadcrumbPage as DoctBreadcrumbPage, BreadcrumbSeparator as DoctBreadcrumbSeparator, } from './components/ui/breadcrumb';
29
+ export { DoctButton } from './components/ui/button';
29
30
  export { Calendar as DoctCalendar, CalendarDayButton } from './components/ui/calendar';
30
31
  export { Checkbox as DoctCheckbox } from './components/ui/checkbox';
31
32
  export { Collapsible as DoctCollapsible, CollapsibleContent as DoctCollapsibleContent, CollapsibleTrigger as DoctCollapsibleTrigger, } from './components/ui/collapsible';
@@ -40,12 +41,11 @@ export { Popover as DoctPopover, PopoverArrow as DoctPopoverArrow, PopoverBackdr
40
41
  export { Progress as DoctProgress } from './components/ui/progress';
41
42
  export { RadioGroup as DoctRadioGroup, RadioGroupItem as DoctRadioGroupItem, } from './components/ui/radio-group';
42
43
  export { Skeleton as DoctSkeleton } from './components/ui/skeleton';
43
- export { Tabs as DoctTabs, Tabs as DoctCustomTabs, TabsContent as DoctTabsContent, TabsContent as DoctCustomTabsContent, TabsList as DoctTabsList, TabsList as DoctCustomTabsList, TabsTrigger as DoctTabsTrigger, TabsTrigger as DoctCustomTabsTrigger, } from './components/ui/tabs';
44
+ export { Tabs as DoctTabs, TabsContent as DoctTabsContent, TabsList as DoctTabsList, TabsTrigger as DoctTabsTrigger, } from './components/ui/tabs';
45
+ export { Textarea as DoctTextareaField } from './components/ui/textarea';
46
+ export { Timeline as DoctTimeline, type TimelineItem, } from './components/ui/timeline';
44
47
  export type { ToastOptions, ToastPosition, ToastVariant } from './components/ui/toast';
45
48
  export { Toaster as DoctToaster, toast as DoctToast } from './components/ui/toast';
46
49
  export { Tooltip as DoctTooltip, TooltipContent as DoctTooltipContent, TooltipProvider as DoctTooltipProvider, TooltipTrigger as DoctTooltipTrigger, } from './components/ui/tooltip';
50
+ export { DoctTypography } from './components/ui/typography';
47
51
  export { useAutocompleteCheckbox } from './hooks/useAutocompleteCheckbox';
48
- export { DoctFooter, type DoctFooterProps, type FooterAppLink, type FooterBrand, type FooterColumn, type FooterLink, type FooterSection, type FooterSocialLink, } from './components/overrides/ui/footer';
49
- export { DoctNavigationMenu, type DoctNavigationMenuProps, type DoctNavigationMenuVariant, INDIVIDUAL_NAV_ROUTES, INDIVIDUAL_NAV_ROUTES_PROD, INDIVIDUAL_NAV_ROUTES_QA, IndividualNavigationMenu, type IndividualNavigationMenuProps, type IndividualNavRoutes, isProdNav, isQaNav, type MobileMenuCategory, type NavigationMenuGroup, type NavigationMenuGroupVariant, type NavigationMenuItem, type NavigationMenuSection, ORGANIZATION_NAV_ROUTES, ORGANIZATION_NAV_ROUTES_PROD, ORGANIZATION_NAV_ROUTES_QA, OrganizationNavigationMenu, type OrganizationNavigationMenuProps, type OrganizationNavRoutes, resolveNavEnv, } from './components/overrides/ui/navigation-menu';
50
- export { Breadcrumb as DoctBreadcrumb, BreadcrumbEllipsis as DoctBreadcrumbEllipsis, BreadcrumbItem as DoctBreadcrumbItem, BreadcrumbLink as DoctBreadcrumbLink, BreadcrumbList as DoctBreadcrumbList, BreadcrumbPage as DoctBreadcrumbPage, BreadcrumbSeparator as DoctBreadcrumbSeparator, } from './components/ui/breadcrumb';
51
- export { Timeline as DoctTimeline, type TimelineItem, } from './components/ui/timeline';
@@ -5,6 +5,7 @@ export interface FloatingDropdownPosition {
5
5
  width: number;
6
6
  maxHeight: number;
7
7
  placement: FloatingDropdownPlacement;
8
+ isAnchorClipped: boolean;
8
9
  }
9
10
  interface GetFloatingDropdownPositionOptions {
10
11
  anchorRect: Pick<DOMRect, "top" | "bottom" | "left" | "width">;
@@ -13,9 +14,16 @@ interface GetFloatingDropdownPositionOptions {
13
14
  preferredMaxHeight?: number;
14
15
  gap?: number;
15
16
  viewportPadding?: number;
17
+ /**
18
+ * Bounding rects (in viewport coordinates) of ancestor scroll containers
19
+ * that should clip the dropdown — typically passed from `getScrollParentClipRects`.
20
+ * When the anchor is fully outside the intersection of these rects + viewport,
21
+ * `maxHeight` is set to 0 and `isAnchorClipped` is true so the dropdown can be hidden.
22
+ */
23
+ clipRects?: Array<Pick<DOMRect, "top" | "bottom" | "left" | "right">>;
16
24
  }
17
25
  /**
18
26
  * Calculates a viewport-aware dropdown position.
19
27
  */
20
- export declare const getFloatingDropdownPosition: ({ anchorRect, strategy, placement, preferredMaxHeight, gap, viewportPadding, }: GetFloatingDropdownPositionOptions) => FloatingDropdownPosition;
28
+ export declare const getFloatingDropdownPosition: ({ anchorRect, strategy, placement, preferredMaxHeight, gap, viewportPadding, clipRects, }: GetFloatingDropdownPositionOptions) => FloatingDropdownPosition;
21
29
  export {};
@@ -3,3 +3,9 @@
3
3
  * `window` is always included so viewport and document scrolling are tracked too.
4
4
  */
5
5
  export declare const getScrollParents: (element: HTMLElement | null) => Array<HTMLElement | Window>;
6
+ /**
7
+ * Returns the bounding rects (in viewport coordinates) of every ancestor
8
+ * scroll container that could visually clip an overlay. The window itself
9
+ * is excluded — callers already get viewport clipping for free.
10
+ */
11
+ export declare const getScrollParentClipRects: (element: HTMLElement | null) => Array<Pick<DOMRect, "top" | "bottom" | "left" | "right">>;