docthub-core-components 3.2.9 → 3.3.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/overrides/ui/account-conflict-prompt/account-conflict-prompt.js +265 -0
- package/dist/components/overrides/ui/account-conflict-prompt/presets.js +50 -0
- package/dist/components/overrides/ui/account-conflict-prompt/types.js +5 -0
- package/dist/components/ui/cookie-dialog.js +38 -32
- package/dist/components/ui/dialog.js +148 -145
- package/dist/index.js +180 -160
- package/dist/src/components/overrides/ui/account-conflict-prompt/account-conflict-prompt.d.ts +2 -0
- package/dist/src/components/overrides/ui/account-conflict-prompt/index.d.ts +3 -0
- package/dist/src/components/overrides/ui/account-conflict-prompt/presets.d.ts +22 -0
- package/dist/src/components/overrides/ui/account-conflict-prompt/types.d.ts +42 -0
- package/dist/src/components/ui/alert.d.ts +1 -1
- package/dist/src/components/ui/badge.d.ts +1 -1
- package/dist/src/components/ui/button.d.ts +3 -3
- package/dist/src/components/ui/command.d.ts +7 -7
- package/dist/src/components/ui/sheet.d.ts +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,124 +2,141 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { DoctAutocomplete as t } from "./components/overrides/ui/auto-complete.js";
|
|
4
4
|
import { AutocompleteCheckbox as D } from "./components/overrides/ui/autocomplete-checkbox.js";
|
|
5
|
-
import { Chip as
|
|
5
|
+
import { Chip as c } from "./components/overrides/ui/chips/doct-chip.js";
|
|
6
6
|
import { CircularProgress as s } from "./components/overrides/ui/circular-progress.js";
|
|
7
7
|
import { AddressFormSection as m } from "./components/overrides/ui/composed/address-form-section.js";
|
|
8
|
-
import { ContactFormSection as
|
|
9
|
-
import { SearchFilterSection as
|
|
10
|
-
import { UserRegistrationSection as
|
|
11
|
-
import { CurrencyInput as
|
|
12
|
-
import { DoctAnimationLoader as
|
|
13
|
-
import { ExpandableCard as
|
|
14
|
-
import { LabeledInput as
|
|
15
|
-
import { OtpInput as
|
|
16
|
-
import { PasswordInput as
|
|
17
|
-
import { DoctPhoneInput as
|
|
18
|
-
import { DatePickerField as
|
|
19
|
-
import { DateRangePickerField as
|
|
20
|
-
import { SelectField as
|
|
21
|
-
import { AutoComplete as
|
|
22
|
-
import { SearchInput as
|
|
23
|
-
import { ComponentVariant as
|
|
24
|
-
import { Alert as
|
|
25
|
-
import { Avatar as
|
|
8
|
+
import { ContactFormSection as l } from "./components/overrides/ui/composed/contact-form-section.js";
|
|
9
|
+
import { SearchFilterSection as d } from "./components/overrides/ui/composed/search-filter-section.js";
|
|
10
|
+
import { UserRegistrationSection as u } from "./components/overrides/ui/composed/user-registration-section.js";
|
|
11
|
+
import { CurrencyInput as I } from "./components/overrides/ui/currencyInput/currency-input.js";
|
|
12
|
+
import { DoctAnimationLoader as N } from "./components/overrides/ui/doct-animation-loader.js";
|
|
13
|
+
import { ExpandableCard as L } from "./components/overrides/ui/expandable-card.js";
|
|
14
|
+
import { LabeledInput as x } from "./components/overrides/ui/inputs/labeled-input.js";
|
|
15
|
+
import { OtpInput as b } 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 M } from "./components/overrides/ui/inputs/phone-input.js";
|
|
18
|
+
import { DatePickerField as F } from "./components/overrides/ui/pickers/date-picker-field.js";
|
|
19
|
+
import { DateRangePickerField as G } from "./components/overrides/ui/pickers/date-range-picker-field.js";
|
|
20
|
+
import { SelectField as B } from "./components/overrides/ui/pickers/select-field.js";
|
|
21
|
+
import { AutoComplete as k } from "./components/overrides/ui/search/auto-complete.js";
|
|
22
|
+
import { SearchInput as V } from "./components/overrides/ui/search/search-input.js";
|
|
23
|
+
import { ComponentVariant as Y, ComponentSection as W } from "./components/overrides/ui/showcase/component-section.js";
|
|
24
|
+
import { Alert as Q, AlertDescription as Z, AlertTitle as z } from "./components/ui/alert.js";
|
|
25
|
+
import { Avatar as j, AvatarFallback as q, AvatarImage as J } from "./components/ui/avatar.js";
|
|
26
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
|
|
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
28
|
import { DoctButton as mo } from "./components/ui/button.js";
|
|
29
|
-
import { CalendarDayButton as
|
|
30
|
-
import { Checkbox as
|
|
31
|
-
import { Collapsible as
|
|
32
|
-
import { Command as
|
|
33
|
-
import { CookieDialog as
|
|
34
|
-
import { Dialog as
|
|
35
|
-
import { Drawer as
|
|
36
|
-
import { DropdownMenu as or, DropdownMenuCheckboxItem as rr, DropdownMenuContent as er, DropdownMenuGroup as tr, DropdownMenuItem as ar, DropdownMenuLabel as Dr, DropdownMenuRadioGroup as nr, DropdownMenuRadioItem as
|
|
37
|
-
import { Input as
|
|
38
|
-
import { Label as
|
|
39
|
-
import { Popover as
|
|
40
|
-
import { Progress as
|
|
41
|
-
import { RadioGroup as
|
|
42
|
-
import { Skeleton as
|
|
43
|
-
import { Tabs as
|
|
29
|
+
import { CalendarDayButton as lo, Calendar as To } from "./components/ui/calendar.js";
|
|
30
|
+
import { Checkbox as uo } from "./components/ui/checkbox.js";
|
|
31
|
+
import { Collapsible as Io, CollapsibleContent as Oo, CollapsibleTrigger as No } from "./components/ui/collapsible.js";
|
|
32
|
+
import { Command as Lo, CommandDialog as go, CommandEmpty as xo, CommandGroup as fo, CommandInput as bo, CommandItem as Eo, CommandList as Ro, CommandSeparator as So, CommandShortcut as Mo } from "./components/ui/command.js";
|
|
33
|
+
import { CookieDialog as Fo } from "./components/ui/cookie-dialog.js";
|
|
34
|
+
import { Dialog as Go, DialogClose as vo, DialogContent as Bo, DialogDescription as ho, DialogFooter as ko, DialogHeader as Ho, DialogScrollableBody as Vo, DialogTitle as yo, DialogTrigger as Yo } from "./components/ui/dialog.js";
|
|
35
|
+
import { Drawer as Ko, DrawerClose as Qo, DrawerContent as Zo, DrawerDescription as zo, DrawerFooter as Xo, DrawerHeader as jo, DrawerTitle as qo, DrawerTrigger as Jo } from "./components/ui/drawer.js";
|
|
36
|
+
import { DropdownMenu as or, DropdownMenuCheckboxItem as rr, DropdownMenuContent as er, DropdownMenuGroup as tr, DropdownMenuItem as ar, DropdownMenuLabel as Dr, DropdownMenuRadioGroup as nr, DropdownMenuRadioItem as cr, DropdownMenuSeparator as pr, DropdownMenuShortcut as sr, DropdownMenuSub as ir, DropdownMenuSubContent as mr, DropdownMenuSubTrigger as Cr, DropdownMenuTrigger as lr } from "./components/ui/dropdown-menu.js";
|
|
37
|
+
import { Input as dr } from "./components/ui/input.js";
|
|
38
|
+
import { Label as ur } from "./components/ui/label.js";
|
|
39
|
+
import { Popover as Ir, PopoverArrow as Or, PopoverBackdrop as Nr, PopoverClose as Pr, PopoverContent as Lr, PopoverDescription as gr, PopoverHeader as xr, PopoverTitle as fr, PopoverTrigger as br, PopoverViewport as Er } from "./components/ui/popover.js";
|
|
40
|
+
import { Progress as Sr } from "./components/ui/progress.js";
|
|
41
|
+
import { RadioGroup as wr, RadioGroupItem as Fr } from "./components/ui/radio-group.js";
|
|
42
|
+
import { Skeleton as Gr } from "./components/ui/skeleton.js";
|
|
43
|
+
import { Tabs as Br, TabsContent as hr, TabsList as kr, TabsTrigger as Hr } from "./components/ui/tabs.js";
|
|
44
44
|
import { Textarea as yr } from "./components/ui/textarea.js";
|
|
45
45
|
import { Timeline as Wr } from "./components/ui/timeline.js";
|
|
46
|
-
import { toast as
|
|
47
|
-
import { Tooltip as
|
|
46
|
+
import { toast as Qr, Toaster as Zr } from "./components/ui/toast.js";
|
|
47
|
+
import { Tooltip as Xr, TooltipContent as jr, TooltipProvider as qr, TooltipTrigger as Jr } from "./components/ui/tooltip.js";
|
|
48
48
|
import { DoctTypography as oe } from "./components/ui/typography.js";
|
|
49
49
|
import { useAutocompleteCheckbox as ee } from "./hooks/useAutocompleteCheckbox.js";
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
50
|
+
import { ACCOUNT_CONFLICT_PROMPT_BODY_TITLE as ae, ACCOUNT_CONFLICT_PROMPT_DEFAULT_COUNTRY_CODE as De, ACCOUNT_CONFLICT_PROMPT_DEFAULT_EXISTING_ACCOUNT_ERROR as ne, ACCOUNT_CONFLICT_PROMPT_DEFAULT_INFO_MESSAGE as ce, ACCOUNT_CONFLICT_PROMPT_DEFAULT_MASKED_EMAIL as pe, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_DISPLAY as se, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_NUMBER as ie, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_PLACEHOLDER as me, ACCOUNT_CONFLICT_PROMPT_HEADER_TITLE as Ce, ACCOUNT_CONFLICT_PROMPT_LOGIN_UNIFY_HINT as le, ACCOUNT_CONFLICT_PROMPT_PRIMARY_LABEL as Te, ACCOUNT_CONFLICT_PROMPT_SECONDARY_LABEL as de, buildExistingAccountError as _e, buildLoginWithPhoneLabel as ue, buildPhoneDisplay as Ae } from "./components/overrides/ui/account-conflict-prompt/presets.js";
|
|
51
|
+
import { ACCOUNT_CONFLICT_PROMPT_DRAWER_BACKDROP_CLASS as Oe } from "./components/overrides/ui/account-conflict-prompt/types.js";
|
|
52
|
+
import { DoctAccountConflictPrompt as Pe } from "./components/overrides/ui/account-conflict-prompt/account-conflict-prompt.js";
|
|
53
|
+
import { DoctFooter as ge } from "./components/overrides/ui/footer/doct-footer.js";
|
|
54
|
+
import { DoctLoginDialog as fe } from "./components/overrides/ui/login-dialog/login-dialog.js";
|
|
55
|
+
import { DoctNavigationMenu as Ee } from "./components/overrides/ui/navigation-menu/doct-navigation-menu.js";
|
|
56
|
+
import { INDIVIDUAL_NAV_ROUTES as Se, INDIVIDUAL_NAV_ROUTES_PROD as Me, INDIVIDUAL_NAV_ROUTES_QA as we } from "./components/overrides/ui/navigation-menu/individual-nav-routes.js";
|
|
57
|
+
import { IndividualNavigationMenu as Ue } from "./components/overrides/ui/navigation-menu/individual-navigation-menu.js";
|
|
58
|
+
import { LOGIN_DIALOG_ASSETS as ve, LOGIN_DIALOG_CONTINUE_ANOTHER_WAY_LABEL as Be, LOGIN_DIALOG_CONTINUE_PHONE_EMAIL_LABEL as he, LOGIN_DIALOG_DEFAULT_COPY as ke, LOGIN_DIALOG_RETURNING_HINT as He, LOGIN_DIALOG_RETURNING_PRIMARY_LABEL as Ve } from "./components/overrides/ui/login-dialog/presets.js";
|
|
59
|
+
import { LOGIN_DIALOG_IMAGE_HEIGHT as Ye, LOGIN_DIALOG_IMAGE_WIDTH as We, LOGIN_DRAWER_BACKDROP_CLASS as Ke } from "./components/overrides/ui/login-dialog/types.js";
|
|
60
|
+
import { ORGANIZATION_NAV_ROUTES as Ze, ORGANIZATION_NAV_ROUTES_PROD as ze, ORGANIZATION_NAV_ROUTES_QA as Xe } from "./components/overrides/ui/navigation-menu/organization-nav-routes.js";
|
|
61
|
+
import { OrganizationNavigationMenu as qe } from "./components/overrides/ui/navigation-menu/organization-navigation-menu.js";
|
|
62
|
+
import { isPossiblePhoneNumber as $e, isValidPhoneNumber as ot } from "react-phone-number-input";
|
|
63
|
+
import { isProdNav as et, isQaNav as tt, resolveNavEnv as at } from "./components/overrides/ui/navigation-menu/nav-env.js";
|
|
61
64
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
65
|
+
ae as ACCOUNT_CONFLICT_PROMPT_BODY_TITLE,
|
|
66
|
+
De as ACCOUNT_CONFLICT_PROMPT_DEFAULT_COUNTRY_CODE,
|
|
67
|
+
ne as ACCOUNT_CONFLICT_PROMPT_DEFAULT_EXISTING_ACCOUNT_ERROR,
|
|
68
|
+
ce as ACCOUNT_CONFLICT_PROMPT_DEFAULT_INFO_MESSAGE,
|
|
69
|
+
pe as ACCOUNT_CONFLICT_PROMPT_DEFAULT_MASKED_EMAIL,
|
|
70
|
+
se as ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_DISPLAY,
|
|
71
|
+
ie as ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_NUMBER,
|
|
72
|
+
me as ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_PLACEHOLDER,
|
|
73
|
+
Oe as ACCOUNT_CONFLICT_PROMPT_DRAWER_BACKDROP_CLASS,
|
|
74
|
+
Ce as ACCOUNT_CONFLICT_PROMPT_HEADER_TITLE,
|
|
75
|
+
le as ACCOUNT_CONFLICT_PROMPT_LOGIN_UNIFY_HINT,
|
|
76
|
+
Te as ACCOUNT_CONFLICT_PROMPT_PRIMARY_LABEL,
|
|
77
|
+
de as ACCOUNT_CONFLICT_PROMPT_SECONDARY_LABEL,
|
|
78
|
+
lo as CalendarDayButton,
|
|
79
|
+
Y as ComponentVariant,
|
|
80
|
+
Pe as DoctAccountConflictPrompt,
|
|
64
81
|
m as DoctAddressFormSection,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
Q as DoctAlert,
|
|
83
|
+
Z as DoctAlertDescription,
|
|
84
|
+
z as DoctAlertTitle,
|
|
85
|
+
N as DoctAnimationLoader,
|
|
86
|
+
k as DoctAutoComplete,
|
|
70
87
|
t as DoctAutocomplete,
|
|
71
88
|
D as DoctAutocompleteCheckbox,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
89
|
+
j as DoctAvatar,
|
|
90
|
+
q as DoctAvatarFallback,
|
|
91
|
+
J as DoctAvatarImage,
|
|
75
92
|
oo as DoctBadge,
|
|
76
93
|
to as DoctBreadcrumb,
|
|
77
94
|
ao as DoctBreadcrumbEllipsis,
|
|
78
95
|
Do as DoctBreadcrumbItem,
|
|
79
96
|
no as DoctBreadcrumbLink,
|
|
80
|
-
|
|
81
|
-
|
|
97
|
+
co as DoctBreadcrumbList,
|
|
98
|
+
po as DoctBreadcrumbPage,
|
|
82
99
|
so as DoctBreadcrumbSeparator,
|
|
83
100
|
mo as DoctButton,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
101
|
+
To as DoctCalendar,
|
|
102
|
+
uo as DoctCheckbox,
|
|
103
|
+
c as DoctChip,
|
|
87
104
|
s as DoctCircularProgress,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
Io as DoctCollapsible,
|
|
106
|
+
Oo as DoctCollapsibleContent,
|
|
107
|
+
No as DoctCollapsibleTrigger,
|
|
108
|
+
Lo as DoctCommand,
|
|
109
|
+
go as DoctCommandDialog,
|
|
110
|
+
xo as DoctCommandEmpty,
|
|
111
|
+
fo as DoctCommandGroup,
|
|
112
|
+
bo as DoctCommandInput,
|
|
113
|
+
Eo as DoctCommandItem,
|
|
114
|
+
Ro as DoctCommandList,
|
|
115
|
+
So as DoctCommandSeparator,
|
|
116
|
+
Mo as DoctCommandShortcut,
|
|
100
117
|
W as DoctComponentSection,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
118
|
+
l as DoctContactFormSection,
|
|
119
|
+
Fo as DoctCookieDialog,
|
|
120
|
+
I as DoctCurrencyInput,
|
|
121
|
+
F as DoctDatePickerField,
|
|
122
|
+
G as DoctDateRangePickerField,
|
|
123
|
+
Go as DoctDialog,
|
|
124
|
+
vo as DoctDialogClose,
|
|
125
|
+
Bo as DoctDialogContent,
|
|
126
|
+
ho as DoctDialogDescription,
|
|
127
|
+
ko as DoctDialogFooter,
|
|
128
|
+
Ho as DoctDialogHeader,
|
|
129
|
+
Vo as DoctDialogScrollableBody,
|
|
113
130
|
yo as DoctDialogTitle,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
131
|
+
Yo as DoctDialogTrigger,
|
|
132
|
+
Ko as DoctDrawer,
|
|
133
|
+
Qo as DoctDrawerClose,
|
|
134
|
+
Zo as DoctDrawerContent,
|
|
135
|
+
zo as DoctDrawerDescription,
|
|
136
|
+
Xo as DoctDrawerFooter,
|
|
137
|
+
jo as DoctDrawerHeader,
|
|
138
|
+
qo as DoctDrawerTitle,
|
|
139
|
+
Jo as DoctDrawerTrigger,
|
|
123
140
|
or as DoctDropdownMenu,
|
|
124
141
|
rr as DoctDropdownMenuCheckboxItem,
|
|
125
142
|
er as DoctDropdownMenuContent,
|
|
@@ -127,76 +144,79 @@ export {
|
|
|
127
144
|
ar as DoctDropdownMenuItem,
|
|
128
145
|
Dr as DoctDropdownMenuLabel,
|
|
129
146
|
nr as DoctDropdownMenuRadioGroup,
|
|
130
|
-
|
|
131
|
-
|
|
147
|
+
cr as DoctDropdownMenuRadioItem,
|
|
148
|
+
pr as DoctDropdownMenuSeparator,
|
|
132
149
|
sr as DoctDropdownMenuShortcut,
|
|
133
150
|
ir as DoctDropdownMenuSub,
|
|
134
151
|
mr as DoctDropdownMenuSubContent,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
152
|
+
Cr as DoctDropdownMenuSubTrigger,
|
|
153
|
+
lr as DoctDropdownMenuTrigger,
|
|
154
|
+
L as DoctExpandableCard,
|
|
155
|
+
ge as DoctFooter,
|
|
156
|
+
dr as DoctInput,
|
|
157
|
+
ur as DoctLabel,
|
|
158
|
+
x as DoctLabeledInput,
|
|
159
|
+
fe as DoctLoginDialog,
|
|
160
|
+
Ee as DoctNavigationMenu,
|
|
161
|
+
b as DoctOtpInput,
|
|
162
|
+
R as DoctPasswordInput,
|
|
163
|
+
M as DoctPhoneInput,
|
|
164
|
+
Ir as DoctPopover,
|
|
165
|
+
Or as DoctPopoverArrow,
|
|
166
|
+
Nr as DoctPopoverBackdrop,
|
|
167
|
+
Pr as DoctPopoverClose,
|
|
168
|
+
Lr as DoctPopoverContent,
|
|
169
|
+
gr as DoctPopoverDescription,
|
|
170
|
+
xr as DoctPopoverHeader,
|
|
171
|
+
fr as DoctPopoverTitle,
|
|
172
|
+
br as DoctPopoverTrigger,
|
|
173
|
+
Er as DoctPopoverViewport,
|
|
174
|
+
Sr as DoctProgress,
|
|
175
|
+
wr as DoctRadioGroup,
|
|
176
|
+
Fr as DoctRadioGroupItem,
|
|
177
|
+
d as DoctSearchFilterSection,
|
|
178
|
+
V as DoctSearchInput,
|
|
179
|
+
B as DoctSelectField,
|
|
180
|
+
Gr as DoctSkeleton,
|
|
181
|
+
Br as DoctTabs,
|
|
182
|
+
hr as DoctTabsContent,
|
|
183
|
+
kr as DoctTabsList,
|
|
184
|
+
Hr as DoctTabsTrigger,
|
|
168
185
|
yr as DoctTextareaField,
|
|
169
186
|
Wr as DoctTimeline,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
187
|
+
Qr as DoctToast,
|
|
188
|
+
Zr as DoctToaster,
|
|
189
|
+
Xr as DoctTooltip,
|
|
190
|
+
jr as DoctTooltipContent,
|
|
191
|
+
qr as DoctTooltipProvider,
|
|
192
|
+
Jr as DoctTooltipTrigger,
|
|
176
193
|
oe as DoctTypography,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
194
|
+
u as DoctUserRegistrationSection,
|
|
195
|
+
Se as INDIVIDUAL_NAV_ROUTES,
|
|
196
|
+
Me as INDIVIDUAL_NAV_ROUTES_PROD,
|
|
197
|
+
we as INDIVIDUAL_NAV_ROUTES_QA,
|
|
198
|
+
Ue as IndividualNavigationMenu,
|
|
199
|
+
ve as LOGIN_DIALOG_ASSETS,
|
|
200
|
+
Be as LOGIN_DIALOG_CONTINUE_ANOTHER_WAY_LABEL,
|
|
201
|
+
he as LOGIN_DIALOG_CONTINUE_PHONE_EMAIL_LABEL,
|
|
202
|
+
ke as LOGIN_DIALOG_DEFAULT_COPY,
|
|
203
|
+
Ye as LOGIN_DIALOG_IMAGE_HEIGHT,
|
|
204
|
+
We as LOGIN_DIALOG_IMAGE_WIDTH,
|
|
205
|
+
He as LOGIN_DIALOG_RETURNING_HINT,
|
|
206
|
+
Ve as LOGIN_DIALOG_RETURNING_PRIMARY_LABEL,
|
|
207
|
+
Ke as LOGIN_DRAWER_BACKDROP_CLASS,
|
|
208
|
+
Ze as ORGANIZATION_NAV_ROUTES,
|
|
209
|
+
ze as ORGANIZATION_NAV_ROUTES_PROD,
|
|
210
|
+
Xe as ORGANIZATION_NAV_ROUTES_QA,
|
|
211
|
+
qe as OrganizationNavigationMenu,
|
|
195
212
|
ro as badgeVariants,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
213
|
+
_e as buildExistingAccountError,
|
|
214
|
+
ue as buildLoginWithPhoneLabel,
|
|
215
|
+
Ae as buildPhoneDisplay,
|
|
216
|
+
$e as isPossiblePhoneNumber,
|
|
217
|
+
et as isProdNav,
|
|
218
|
+
tt as isQaNav,
|
|
219
|
+
ot as isValidPhoneNumber,
|
|
220
|
+
at as resolveNavEnv,
|
|
201
221
|
ee as useAutocompleteCheckbox
|
|
202
222
|
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { DoctAccountConflictPromptProps } from './types';
|
|
2
|
+
export declare function DoctAccountConflictPrompt({ open, onOpenChange, trigger, state, headerTitle, bodyTitle, infoMessage, phoneNumber, onPhoneNumberChange, existingAccountErrorMessage, phonePlaceholder, countryCode, icon, isMobileOverride, className, }: DoctAccountConflictPromptProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { DoctAccountConflictPrompt } from './account-conflict-prompt';
|
|
2
|
+
export { ACCOUNT_CONFLICT_PROMPT_BODY_TITLE, ACCOUNT_CONFLICT_PROMPT_DEFAULT_COUNTRY_CODE, ACCOUNT_CONFLICT_PROMPT_DEFAULT_EXISTING_ACCOUNT_ERROR, ACCOUNT_CONFLICT_PROMPT_DEFAULT_INFO_MESSAGE, ACCOUNT_CONFLICT_PROMPT_DEFAULT_MASKED_EMAIL, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_DISPLAY, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_NUMBER, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_PLACEHOLDER, ACCOUNT_CONFLICT_PROMPT_HEADER_TITLE, ACCOUNT_CONFLICT_PROMPT_LOGIN_UNIFY_HINT, ACCOUNT_CONFLICT_PROMPT_PRIMARY_LABEL, ACCOUNT_CONFLICT_PROMPT_SECONDARY_LABEL, buildExistingAccountError, buildLoginWithPhoneLabel, buildPhoneDisplay, } from './presets';
|
|
3
|
+
export { ACCOUNT_CONFLICT_PROMPT_DRAWER_BACKDROP_CLASS, type AccountConflictPromptState, type AccountConflictPromptTrigger, type DoctAccountConflictPromptProps, } from './types';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AccountConflictPromptState, AccountConflictPromptTrigger } from './types';
|
|
2
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_DEFAULT_COUNTRY_CODE = "+91";
|
|
3
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_PLACEHOLDER = "Enter number";
|
|
4
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_NUMBER = "9825910X0X";
|
|
5
|
+
/** @deprecated Use `ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_NUMBER` with `buildPhoneDisplay`. */
|
|
6
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_DISPLAY = "+91 9825910X0X";
|
|
7
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_DEFAULT_MASKED_EMAIL = "user******@gmail.com";
|
|
8
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_DEFAULT_INFO_MESSAGE = "Your mobile number required to complete certain actions as well as it's associated with security of your Docthub account.";
|
|
9
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_HEADER_TITLE: Record<AccountConflictPromptTrigger, string>;
|
|
10
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_BODY_TITLE: Record<AccountConflictPromptTrigger, string>;
|
|
11
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_LOGIN_UNIFY_HINT = "your accounts will be unified on login";
|
|
12
|
+
export declare function buildExistingAccountError(maskedEmail: string): string;
|
|
13
|
+
/** Default existing-account error copy for Storybook / demos. */
|
|
14
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_DEFAULT_EXISTING_ACCOUNT_ERROR: string;
|
|
15
|
+
export declare function buildLoginWithPhoneLabel(phoneDisplay: string): string;
|
|
16
|
+
export declare function buildPhoneDisplay(countryCode: string, phoneNumber: string): string;
|
|
17
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_PRIMARY_LABEL: Record<AccountConflictPromptTrigger, {
|
|
18
|
+
addNumber: string;
|
|
19
|
+
existingAccount: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_SECONDARY_LABEL = "Add later";
|
|
22
|
+
export declare function isPrimaryDisabled(state: AccountConflictPromptState): boolean;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Body class when drawer is open – lighter scrim in `index.css` (shared with login drawer). */
|
|
3
|
+
export declare const ACCOUNT_CONFLICT_PROMPT_DRAWER_BACKDROP_CLASS = "login-drawer-backdrop";
|
|
4
|
+
/**
|
|
5
|
+
* - `system` — header “To continue..”, single primary CTA or disabled continue when number exists.
|
|
6
|
+
* - `action` — header “Add mobile number”, “Add later” + “Save” actions.
|
|
7
|
+
*/
|
|
8
|
+
export type AccountConflictPromptTrigger = "system" | "action";
|
|
9
|
+
/**
|
|
10
|
+
* - `addNumber` — empty phone field with placeholder.
|
|
11
|
+
* - `existingAccount` — filled phone, error, and “Login with …” secondary action.
|
|
12
|
+
*/
|
|
13
|
+
export type AccountConflictPromptState = "addNumber" | "existingAccount";
|
|
14
|
+
export interface DoctAccountConflictPromptProps {
|
|
15
|
+
open: boolean;
|
|
16
|
+
onOpenChange: (open: boolean) => void;
|
|
17
|
+
/** Layout preset. Default `system`. */
|
|
18
|
+
trigger?: AccountConflictPromptTrigger;
|
|
19
|
+
/** Visual state for phone field and conflict UI. Default `addNumber`. */
|
|
20
|
+
state?: AccountConflictPromptState;
|
|
21
|
+
/** Header title (top bar). */
|
|
22
|
+
headerTitle?: string;
|
|
23
|
+
/** Main heading below the icon. */
|
|
24
|
+
bodyTitle?: string;
|
|
25
|
+
/** Blue info callout copy. */
|
|
26
|
+
infoMessage?: string;
|
|
27
|
+
/** Controlled mobile number without the country code prefix (e.g. `9825910X0X`). */
|
|
28
|
+
phoneNumber?: string;
|
|
29
|
+
/** Called when the user edits the mobile number field. */
|
|
30
|
+
onPhoneNumberChange?: (phoneNumber: string) => void;
|
|
31
|
+
/** Full existing-account validation error (pass from your API when `state="existingAccount"`). */
|
|
32
|
+
existingAccountErrorMessage?: string;
|
|
33
|
+
/** Placeholder when `state="addNumber"`. */
|
|
34
|
+
phonePlaceholder?: string;
|
|
35
|
+
/** Country calling code prefix (display only). Default `+91`. */
|
|
36
|
+
countryCode?: string;
|
|
37
|
+
/** Optional custom phone icon. */
|
|
38
|
+
icon?: ReactNode;
|
|
39
|
+
/** Force mobile drawer or desktop dialog (e.g. Storybook). */
|
|
40
|
+
isMobileOverride?: boolean;
|
|
41
|
+
className?: string;
|
|
42
|
+
}
|
|
@@ -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?: "
|
|
4
|
+
variant?: "default" | "error" | "success" | "warning" | "destructive" | "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 type * as React from "react";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "secondary" | "
|
|
4
|
+
variant?: "default" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
declare const DoctButtonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "small" | "
|
|
6
|
-
iconSize?: "small" | "
|
|
4
|
+
variant?: "default" | "primary" | "error" | "success" | "warning" | "informative" | "secondary" | "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" | "blue" | "disabled" | "brandBlue" | null | undefined;
|
|
5
|
+
size?: "small" | "large" | "medium" | "icon.large" | "icon.medium" | "icon.small" | null | undefined;
|
|
6
|
+
iconSize?: "small" | "large" | "medium" | null | undefined;
|
|
7
7
|
iconPosition?: "left" | "right" | null | undefined;
|
|
8
8
|
fullWidth?: boolean | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -6,7 +6,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
6
6
|
ref?: React.Ref<HTMLDivElement>;
|
|
7
7
|
} & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}, "
|
|
9
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
10
|
label?: string;
|
|
11
11
|
shouldFilter?: boolean;
|
|
12
12
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -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
|
-
}, "
|
|
25
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
26
26
|
value?: string;
|
|
27
27
|
onValueChange?: (search: string) => void;
|
|
28
28
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -32,7 +32,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
32
32
|
ref?: React.Ref<HTMLDivElement>;
|
|
33
33
|
} & {
|
|
34
34
|
asChild?: boolean;
|
|
35
|
-
}, "
|
|
35
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
36
36
|
label?: string;
|
|
37
37
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -41,14 +41,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
41
41
|
ref?: React.Ref<HTMLDivElement>;
|
|
42
42
|
} & {
|
|
43
43
|
asChild?: boolean;
|
|
44
|
-
}, "
|
|
44
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
45
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
46
46
|
children?: React.ReactNode;
|
|
47
47
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
48
48
|
ref?: React.Ref<HTMLDivElement>;
|
|
49
49
|
} & {
|
|
50
50
|
asChild?: boolean;
|
|
51
|
-
}, "
|
|
51
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
52
52
|
heading?: React.ReactNode;
|
|
53
53
|
value?: string;
|
|
54
54
|
forceMount?: boolean;
|
|
@@ -57,7 +57,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
57
57
|
ref?: React.Ref<HTMLDivElement>;
|
|
58
58
|
} & {
|
|
59
59
|
asChild?: boolean;
|
|
60
|
-
}, "
|
|
60
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
61
61
|
alwaysRender?: boolean;
|
|
62
62
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
63
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -66,7 +66,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
66
66
|
ref?: React.Ref<HTMLDivElement>;
|
|
67
67
|
} & {
|
|
68
68
|
asChild?: boolean;
|
|
69
|
-
}, "
|
|
69
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
70
70
|
disabled?: boolean;
|
|
71
71
|
onSelect?: (value: string) => void;
|
|
72
72
|
value?: string;
|
|
@@ -19,7 +19,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetCloseProps & Reac
|
|
|
19
19
|
declare const SheetPortal: React.ForwardRefExoticComponent<Omit<import('@base-ui/react').AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
21
21
|
declare const sheetVariants: (props?: ({
|
|
22
|
-
side?: "
|
|
22
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
23
23
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
24
24
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<"div">, VariantProps<typeof sheetVariants> {
|
|
25
25
|
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { ACCOUNT_CONFLICT_PROMPT_BODY_TITLE, ACCOUNT_CONFLICT_PROMPT_DEFAULT_COUNTRY_CODE, ACCOUNT_CONFLICT_PROMPT_DEFAULT_EXISTING_ACCOUNT_ERROR, ACCOUNT_CONFLICT_PROMPT_DEFAULT_INFO_MESSAGE, ACCOUNT_CONFLICT_PROMPT_DEFAULT_MASKED_EMAIL, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_DISPLAY, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_NUMBER, ACCOUNT_CONFLICT_PROMPT_DEFAULT_PHONE_PLACEHOLDER, ACCOUNT_CONFLICT_PROMPT_DRAWER_BACKDROP_CLASS, ACCOUNT_CONFLICT_PROMPT_HEADER_TITLE, ACCOUNT_CONFLICT_PROMPT_LOGIN_UNIFY_HINT, ACCOUNT_CONFLICT_PROMPT_PRIMARY_LABEL, ACCOUNT_CONFLICT_PROMPT_SECONDARY_LABEL, type AccountConflictPromptState, type AccountConflictPromptTrigger, buildExistingAccountError, buildLoginWithPhoneLabel, buildPhoneDisplay, DoctAccountConflictPrompt, type DoctAccountConflictPromptProps, } from './components/overrides/ui/account-conflict-prompt';
|
|
1
2
|
export { DoctAutocomplete } from './components/overrides/ui/auto-complete';
|
|
2
3
|
export { AutocompleteCheckbox as DoctAutocompleteCheckbox } from './components/overrides/ui/autocomplete-checkbox';
|
|
3
4
|
export { Chip as DoctChip } from './components/overrides/ui/chips/doct-chip';
|