@axtec/components 0.1.7 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/components/AgentChat/AgentChat.d.ts +32 -0
- package/dist/components/AgentChat/index.d.ts +1 -0
- package/dist/components/AgentPanel/AgentPanel.d.ts +44 -0
- package/dist/components/AgentPanel/index.d.ts +1 -0
- package/dist/components/OptionDivider/OptionDivider.d.ts +2 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +161 -157
- package/dist/index.js.map +1 -1
- package/dist/index10.js +77 -99
- package/dist/index10.js.map +1 -1
- package/dist/index11.js +91 -36
- package/dist/index11.js.map +1 -1
- package/dist/index12.js +97 -75
- package/dist/index12.js.map +1 -1
- package/dist/index13.js +38 -24
- package/dist/index13.js.map +1 -1
- package/dist/index14.js +76 -16
- package/dist/index14.js.map +1 -1
- package/dist/index15.js +24 -38
- package/dist/index15.js.map +1 -1
- package/dist/index16.js +18 -72
- package/dist/index16.js.map +1 -1
- package/dist/index17.js +36 -47
- package/dist/index17.js.map +1 -1
- package/dist/index18.js +73 -13
- package/dist/index18.js.map +1 -1
- package/dist/index19.js +47 -151
- package/dist/index19.js.map +1 -1
- package/dist/index20.js +12 -17
- package/dist/index20.js.map +1 -1
- package/dist/index21.js +148 -40
- package/dist/index21.js.map +1 -1
- package/dist/index22.js +18 -50
- package/dist/index22.js.map +1 -1
- package/dist/index23.js +41 -74
- package/dist/index23.js.map +1 -1
- package/dist/index24.js +46 -216
- package/dist/index24.js.map +1 -1
- package/dist/index25.js +73 -46
- package/dist/index25.js.map +1 -1
- package/dist/index26.js +212 -70
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +51 -23
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +74 -74
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +19 -28
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.js +62 -76
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +28 -55
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +87 -40
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +57 -45
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +40 -47
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +47 -27
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +52 -54
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +28 -49
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +54 -13
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +46 -79
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +13 -49
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +80 -17
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +48 -33
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +17 -11
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +34 -15
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +16 -89
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +15 -69
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +85 -116
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +69 -40
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +120 -42
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.js +39 -55
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +39 -11
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +53 -62
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +16 -54
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +64 -36
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +54 -66
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +37 -22
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +63 -101
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +16 -67
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +99 -213
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.js +67 -62
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +206 -224
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +62 -96
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +233 -33
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +98 -14
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +35 -59
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +16 -59
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +57 -72
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +58 -106
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +70 -43
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +157 -69
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +101 -40
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +44 -72
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +47 -53
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +70 -62
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +46 -28
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +67 -13
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +35 -2263
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +17 -0
- package/dist/index77.js.map +1 -0
- package/dist/index78.js +2267 -0
- package/dist/index78.js.map +1 -0
- package/dist/index8.js +377 -70
- package/dist/index8.js.map +1 -1
- package/dist/index9.js +60 -77
- package/dist/index9.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,167 +3,171 @@ import { cn as t } from "./index3.js";
|
|
|
3
3
|
import { Accordion as a } from "./index4.js";
|
|
4
4
|
import { ActionBar as x } from "./index5.js";
|
|
5
5
|
import { ActionLayout as i } from "./index6.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
6
|
+
import { AgentChat as d } from "./index7.js";
|
|
7
|
+
import { AgentPanel as g } from "./index8.js";
|
|
8
|
+
import { Alert as c } from "./index9.js";
|
|
9
|
+
import { AlertBox as b } from "./index10.js";
|
|
10
|
+
import { AlertModal as A } from "./index11.js";
|
|
11
|
+
import { AutoComplete as C } from "./index12.js";
|
|
12
|
+
import { Avatar as T } from "./index13.js";
|
|
13
|
+
import { AvatarCard as k } from "./index14.js";
|
|
14
|
+
import { AverageRating as M } from "./index15.js";
|
|
15
|
+
import { AxtecLogo as H } from "./index16.js";
|
|
16
|
+
import { Badge as D } from "./index17.js";
|
|
17
|
+
import { Breadcrumbs as w } from "./index18.js";
|
|
18
|
+
import { Button as R } from "./index19.js";
|
|
19
|
+
import { ButtonGroup as E } from "./index20.js";
|
|
20
|
+
import { Card as U, CardGrid as V } from "./index21.js";
|
|
21
|
+
import { CardHeading as Q } from "./index22.js";
|
|
22
|
+
import { ChartLegend as q, StatisticsLegend as z } from "./index23.js";
|
|
23
|
+
import { Checkbox as K } from "./index24.js";
|
|
24
|
+
import { ConfirmModal as X } from "./index25.js";
|
|
25
|
+
import { DatePicker as Z } from "./index26.js";
|
|
26
|
+
import { Drawer as $ } from "./index27.js";
|
|
27
|
+
import { Dropdown as ro, DropdownButton as eo } from "./index28.js";
|
|
28
|
+
import { EmptyData as po } from "./index29.js";
|
|
29
|
+
import { FileUploader as mo } from "./index30.js";
|
|
30
|
+
import { IconButton as fo } from "./index31.js";
|
|
31
|
+
import { Image as no } from "./index32.js";
|
|
32
|
+
import { ImageGrid as go } from "./index33.js";
|
|
33
|
+
import { ImageUploading as co } from "./index34.js";
|
|
34
|
+
import { Input as bo } from "./index35.js";
|
|
35
|
+
import { LinkButton as Ao } from "./index36.js";
|
|
36
|
+
import { Loader as Co } from "./index37.js";
|
|
37
|
+
import { LoadingModal as To } from "./index38.js";
|
|
38
|
+
import { LogoLoader as ko } from "./index39.js";
|
|
39
|
+
import { MenuText as Mo } from "./index40.js";
|
|
40
|
+
import { Modal as Ho } from "./index41.js";
|
|
41
|
+
import { MultiItemSelect as Do } from "./index42.js";
|
|
42
|
+
import { MyHomeVaultLogo as wo } from "./index43.js";
|
|
43
|
+
import { Notification as Ro } from "./index44.js";
|
|
44
|
+
import { OptionDivider as Eo } from "./index45.js";
|
|
45
|
+
import { PageHeading as Uo } from "./index46.js";
|
|
46
|
+
import { Pagination as Oo } from "./index47.js";
|
|
47
|
+
import { Panel as jo, PanelAction as qo, PanelBody as zo, PanelEmptyState as Jo, PanelFooter as Ko, PanelHeader as Wo, PanelTitle as Xo } from "./index48.js";
|
|
48
|
+
import { PhotoLibrary as Zo } from "./index49.js";
|
|
49
|
+
import { Pill as $o } from "./index50.js";
|
|
50
|
+
import { PrimaryCard as rr } from "./index51.js";
|
|
51
|
+
import { Progress as tr } from "./index52.js";
|
|
52
|
+
import { QuickActions as ar } from "./index53.js";
|
|
53
|
+
import { RadioGroup as xr } from "./index54.js";
|
|
54
|
+
import { Rating as ir } from "./index55.js";
|
|
55
|
+
import { Row as dr } from "./index56.js";
|
|
56
|
+
import { ScrollableModal as gr } from "./index57.js";
|
|
57
|
+
import { SectionHeading as cr } from "./index58.js";
|
|
58
|
+
import { Select as br } from "./index59.js";
|
|
59
|
+
import { SelectionCard as Ar } from "./index60.js";
|
|
60
|
+
import { Sidebar as Cr, SidebarCard as Lr, SidebarFooter as Tr, SidebarGroup as Br, SidebarHeader as kr, SidebarItem as Ir, SidebarNav as Mr, SidebarSection as yr, useSidebar as Hr } from "./index61.js";
|
|
61
|
+
import { Skeleton as Dr, SkeletonAvatar as hr, SkeletonCard as wr, SkeletonText as Gr } from "./index62.js";
|
|
62
|
+
import { StatisticsChart as Fr } from "./index63.js";
|
|
63
|
+
import { StatusBadge as Nr, StatusIndicator as Ur } from "./index64.js";
|
|
64
|
+
import { StepList as Or } from "./index65.js";
|
|
65
|
+
import { SubsectionHeading as jr } from "./index66.js";
|
|
66
|
+
import { TabView as zr } from "./index67.js";
|
|
67
|
+
import { Table as Kr } from "./index68.js";
|
|
68
|
+
import { Tabs as Xr } from "./index69.js";
|
|
69
|
+
import { TaskList as Zr } from "./index70.js";
|
|
70
|
+
import { Text as $r } from "./index71.js";
|
|
71
|
+
import { Textarea as re } from "./index72.js";
|
|
72
|
+
import { Toggle as te } from "./index73.js";
|
|
73
|
+
import { ToggleButton as ae } from "./index74.js";
|
|
74
|
+
import { Tooltip as xe } from "./index75.js";
|
|
75
|
+
import { TrendIndicator as ie } from "./index76.js";
|
|
74
76
|
export {
|
|
75
77
|
a as Accordion,
|
|
76
78
|
x as ActionBar,
|
|
77
79
|
i as ActionLayout,
|
|
78
|
-
d as
|
|
79
|
-
g as
|
|
80
|
-
c as
|
|
81
|
-
b as
|
|
82
|
-
A as
|
|
83
|
-
C as
|
|
84
|
-
T as
|
|
85
|
-
k as
|
|
86
|
-
M as
|
|
87
|
-
H as
|
|
88
|
-
D as
|
|
89
|
-
|
|
90
|
-
R as
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
V as
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
K as
|
|
97
|
-
X as
|
|
98
|
-
Z as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
eo as
|
|
102
|
-
po as
|
|
103
|
-
mo as
|
|
104
|
-
fo as
|
|
105
|
-
no as
|
|
106
|
-
go as
|
|
107
|
-
co as
|
|
108
|
-
bo as
|
|
109
|
-
Ao as
|
|
110
|
-
Co as
|
|
111
|
-
To as
|
|
112
|
-
ko as
|
|
113
|
-
Mo as
|
|
114
|
-
Ho as
|
|
115
|
-
Do as
|
|
116
|
-
|
|
117
|
-
Ro as
|
|
118
|
-
Eo as
|
|
119
|
-
Uo as
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
Xo as
|
|
128
|
-
Zo as
|
|
129
|
-
$o as
|
|
130
|
-
rr as
|
|
131
|
-
tr as
|
|
132
|
-
ar as
|
|
133
|
-
xr as
|
|
134
|
-
ir as
|
|
135
|
-
dr as
|
|
136
|
-
gr as
|
|
137
|
-
cr as
|
|
138
|
-
br as
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
Mr as
|
|
147
|
-
yr as
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
wr as
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
Ur as
|
|
156
|
-
Or as
|
|
157
|
-
jr as
|
|
158
|
-
zr as
|
|
159
|
-
Kr as
|
|
160
|
-
Xr as
|
|
161
|
-
Zr as
|
|
162
|
-
$r as
|
|
163
|
-
re as
|
|
164
|
-
te as
|
|
165
|
-
ae as
|
|
80
|
+
d as AgentChat,
|
|
81
|
+
g as AgentPanel,
|
|
82
|
+
c as Alert,
|
|
83
|
+
b as AlertBox,
|
|
84
|
+
A as AlertModal,
|
|
85
|
+
C as AutoComplete,
|
|
86
|
+
T as Avatar,
|
|
87
|
+
k as AvatarCard,
|
|
88
|
+
M as AverageRating,
|
|
89
|
+
H as AxtecLogo,
|
|
90
|
+
D as Badge,
|
|
91
|
+
w as Breadcrumbs,
|
|
92
|
+
R as Button,
|
|
93
|
+
E as ButtonGroup,
|
|
94
|
+
U as Card,
|
|
95
|
+
V as CardGrid,
|
|
96
|
+
Q as CardHeading,
|
|
97
|
+
q as ChartLegend,
|
|
98
|
+
K as Checkbox,
|
|
99
|
+
X as ConfirmModal,
|
|
100
|
+
Z as DatePicker,
|
|
101
|
+
$ as Drawer,
|
|
102
|
+
ro as Dropdown,
|
|
103
|
+
eo as DropdownButton,
|
|
104
|
+
po as EmptyData,
|
|
105
|
+
mo as FileUploader,
|
|
106
|
+
fo as IconButton,
|
|
107
|
+
no as Image,
|
|
108
|
+
go as ImageGrid,
|
|
109
|
+
co as ImageUploading,
|
|
110
|
+
bo as Input,
|
|
111
|
+
Ao as LinkButton,
|
|
112
|
+
Co as Loader,
|
|
113
|
+
To as LoadingModal,
|
|
114
|
+
ko as LogoLoader,
|
|
115
|
+
Mo as MenuText,
|
|
116
|
+
Ho as Modal,
|
|
117
|
+
Do as MultiItemSelect,
|
|
118
|
+
wo as MyHomeVaultLogo,
|
|
119
|
+
Ro as Notification,
|
|
120
|
+
Eo as OptionDivider,
|
|
121
|
+
Uo as PageHeading,
|
|
122
|
+
Oo as Pagination,
|
|
123
|
+
jo as Panel,
|
|
124
|
+
qo as PanelAction,
|
|
125
|
+
zo as PanelBody,
|
|
126
|
+
Jo as PanelEmptyState,
|
|
127
|
+
Ko as PanelFooter,
|
|
128
|
+
Wo as PanelHeader,
|
|
129
|
+
Xo as PanelTitle,
|
|
130
|
+
Zo as PhotoLibrary,
|
|
131
|
+
$o as Pill,
|
|
132
|
+
rr as PrimaryCard,
|
|
133
|
+
tr as Progress,
|
|
134
|
+
ar as QuickActions,
|
|
135
|
+
xr as RadioGroup,
|
|
136
|
+
ir as Rating,
|
|
137
|
+
dr as Row,
|
|
138
|
+
gr as ScrollableModal,
|
|
139
|
+
cr as SectionHeading,
|
|
140
|
+
br as Select,
|
|
141
|
+
Ar as SelectionCard,
|
|
142
|
+
Cr as Sidebar,
|
|
143
|
+
Lr as SidebarCard,
|
|
144
|
+
Tr as SidebarFooter,
|
|
145
|
+
Br as SidebarGroup,
|
|
146
|
+
kr as SidebarHeader,
|
|
147
|
+
Ir as SidebarItem,
|
|
148
|
+
Mr as SidebarNav,
|
|
149
|
+
yr as SidebarSection,
|
|
150
|
+
Dr as Skeleton,
|
|
151
|
+
hr as SkeletonAvatar,
|
|
152
|
+
wr as SkeletonCard,
|
|
153
|
+
Gr as SkeletonText,
|
|
154
|
+
Fr as StatisticsChart,
|
|
155
|
+
z as StatisticsLegend,
|
|
156
|
+
Nr as StatusBadge,
|
|
157
|
+
Ur as StatusIndicator,
|
|
158
|
+
Or as StepList,
|
|
159
|
+
jr as SubsectionHeading,
|
|
160
|
+
zr as TabView,
|
|
161
|
+
Kr as Table,
|
|
162
|
+
Xr as Tabs,
|
|
163
|
+
Zr as TaskList,
|
|
164
|
+
$r as Text,
|
|
165
|
+
re as Textarea,
|
|
166
|
+
te as Toggle,
|
|
167
|
+
ae as ToggleButton,
|
|
168
|
+
xe as Tooltip,
|
|
169
|
+
ie as TrendIndicator,
|
|
166
170
|
t as cn,
|
|
167
|
-
|
|
171
|
+
Hr as useSidebar
|
|
168
172
|
};
|
|
169
173
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index10.js
CHANGED
|
@@ -1,104 +1,82 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const e = (t) => {
|
|
27
|
-
f.current && !f.current.contains(t.target) && l(!1);
|
|
28
|
-
};
|
|
29
|
-
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
30
|
-
}, []);
|
|
31
|
-
const v = (e) => {
|
|
32
|
-
i(e), l(!0), c(-1);
|
|
33
|
-
}, k = (e) => {
|
|
34
|
-
i(e.label), x(e.value, e.label), l(!1);
|
|
35
|
-
}, A = (e) => {
|
|
36
|
-
if (!w) {
|
|
37
|
-
(e.key === "ArrowDown" || e.key === "Enter") && l(!0);
|
|
38
|
-
return;
|
|
1
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as l } from "react";
|
|
3
|
+
import { Transition as x, Dialog as h, TransitionChild as o, DialogPanel as f, DialogTitle as v } from "@headlessui/react";
|
|
4
|
+
import { cn as i } from "./index3.js";
|
|
5
|
+
import { Button as y } from "./index19.js";
|
|
6
|
+
const j = ({
|
|
7
|
+
isOpen: n,
|
|
8
|
+
onClose: c,
|
|
9
|
+
title: d,
|
|
10
|
+
message: m,
|
|
11
|
+
body: s,
|
|
12
|
+
buttons: t,
|
|
13
|
+
className: p
|
|
14
|
+
}) => /* @__PURE__ */ e(x, { show: n, as: l, children: /* @__PURE__ */ r(h, { onClose: c, className: "relative z-50", children: [
|
|
15
|
+
/* @__PURE__ */ e(
|
|
16
|
+
o,
|
|
17
|
+
{
|
|
18
|
+
as: l,
|
|
19
|
+
enter: "ease-out duration-300",
|
|
20
|
+
enterFrom: "opacity-0",
|
|
21
|
+
enterTo: "opacity-100",
|
|
22
|
+
leave: "ease-in duration-200",
|
|
23
|
+
leaveFrom: "opacity-100",
|
|
24
|
+
leaveTo: "opacity-0",
|
|
25
|
+
children: /* @__PURE__ */ e("div", { className: "fixed inset-0 bg-black/50", "aria-hidden": "true" })
|
|
39
26
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ e("div", { className: "fixed inset-0 flex items-center justify-center p-4", children: /* @__PURE__ */ e(
|
|
29
|
+
o,
|
|
30
|
+
{
|
|
31
|
+
as: l,
|
|
32
|
+
enter: "ease-out duration-300",
|
|
33
|
+
enterFrom: "opacity-0 scale-95",
|
|
34
|
+
enterTo: "opacity-100 scale-100",
|
|
35
|
+
leave: "ease-in duration-200",
|
|
36
|
+
leaveFrom: "opacity-100 scale-100",
|
|
37
|
+
leaveTo: "opacity-0 scale-95",
|
|
38
|
+
children: /* @__PURE__ */ r(
|
|
39
|
+
f,
|
|
40
|
+
{
|
|
41
|
+
className: i(
|
|
42
|
+
"w-full max-w-md bg-white rounded-2xl shadow-xl overflow-hidden",
|
|
43
|
+
"transform transition-all",
|
|
44
|
+
p
|
|
45
|
+
),
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ e("div", { className: "px-6 py-4 border-b border-slate-200", children: /* @__PURE__ */ e(v, { className: "text-lg font-semibold text-slate-900 text-center", children: d }) }),
|
|
48
|
+
/* @__PURE__ */ r("div", { className: "px-8 py-6 text-center", children: [
|
|
49
|
+
/* @__PURE__ */ e("p", { className: "text-slate-700", children: m }),
|
|
50
|
+
s && /* @__PURE__ */ e("div", { className: "mt-4", children: s })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ e(
|
|
53
|
+
"div",
|
|
54
|
+
{
|
|
55
|
+
className: i(
|
|
56
|
+
"flex px-8 py-4 border-t border-slate-200 gap-3",
|
|
57
|
+
t.length === 1 ? "justify-center" : "justify-between"
|
|
58
|
+
),
|
|
59
|
+
children: t.map((a) => /* @__PURE__ */ e(
|
|
60
|
+
y,
|
|
61
|
+
{
|
|
62
|
+
...a,
|
|
63
|
+
className: i(
|
|
64
|
+
t.length === 1 ? "w-full" : "flex-1",
|
|
65
|
+
a.className
|
|
66
|
+
),
|
|
67
|
+
children: a.text
|
|
68
|
+
},
|
|
69
|
+
a.text
|
|
70
|
+
))
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
)
|
|
55
76
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */ d(
|
|
59
|
-
N,
|
|
60
|
-
{
|
|
61
|
-
label: y,
|
|
62
|
-
value: o,
|
|
63
|
-
onChange: (e) => v(e.target.value),
|
|
64
|
-
onFocus: () => l(!0),
|
|
65
|
-
onKeyDown: A,
|
|
66
|
-
placeholder: D,
|
|
67
|
-
disabled: E,
|
|
68
|
-
error: I
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
w && r.length > 0 && /* @__PURE__ */ d(
|
|
72
|
-
"ul",
|
|
73
|
-
{
|
|
74
|
-
className: b(
|
|
75
|
-
"absolute z-50 w-full mt-1 py-1",
|
|
76
|
-
"bg-white border border-slate-200 rounded-lg shadow-lg",
|
|
77
|
-
"max-h-60 overflow-auto"
|
|
78
|
-
),
|
|
79
|
-
role: "listbox",
|
|
80
|
-
children: r.map((e, t) => /* @__PURE__ */ d(
|
|
81
|
-
"li",
|
|
82
|
-
{
|
|
83
|
-
role: "option",
|
|
84
|
-
"aria-selected": e.value === a,
|
|
85
|
-
onClick: () => k(e),
|
|
86
|
-
onMouseEnter: () => c(t),
|
|
87
|
-
className: b(
|
|
88
|
-
"px-4 py-2 cursor-pointer text-sm",
|
|
89
|
-
"transition-colors",
|
|
90
|
-
u === t && "bg-slate-100",
|
|
91
|
-
e.value === a && "text-primary-500 font-medium"
|
|
92
|
-
),
|
|
93
|
-
children: e.label
|
|
94
|
-
},
|
|
95
|
-
e.value
|
|
96
|
-
))
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
] });
|
|
100
|
-
};
|
|
77
|
+
) })
|
|
78
|
+
] }) });
|
|
101
79
|
export {
|
|
102
|
-
|
|
80
|
+
j as AlertBox
|
|
103
81
|
};
|
|
104
82
|
//# sourceMappingURL=index10.js.map
|
package/dist/index10.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index10.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index10.js","sources":["../src/components/AlertBox/AlertBox.tsx"],"sourcesContent":["import { Fragment, type ReactNode } from 'react'\nimport {\n Dialog,\n DialogPanel,\n DialogTitle,\n Transition,\n TransitionChild,\n} from '@headlessui/react'\nimport { cn } from '@/lib/utils'\nimport { Button, type ButtonProps } from '../Button/Button'\n\nexport interface AlertBoxButton extends Omit<ButtonProps, 'key'> {\n text: string\n}\n\nexport interface AlertBoxProps {\n isOpen: boolean\n onClose: () => void\n title: string\n message: string\n body?: ReactNode\n buttons: AlertBoxButton[]\n className?: string\n}\n\nexport const AlertBox = ({\n isOpen,\n onClose,\n title,\n message,\n body,\n buttons,\n className,\n}: AlertBoxProps) => {\n return (\n <Transition show={isOpen} as={Fragment}>\n <Dialog onClose={onClose} className=\"relative z-50\">\n {/* Backdrop */}\n <TransitionChild\n as={Fragment}\n enter=\"ease-out duration-300\"\n enterFrom=\"opacity-0\"\n enterTo=\"opacity-100\"\n leave=\"ease-in duration-200\"\n leaveFrom=\"opacity-100\"\n leaveTo=\"opacity-0\"\n >\n <div className=\"fixed inset-0 bg-black/50\" aria-hidden=\"true\" />\n </TransitionChild>\n\n {/* Modal */}\n <div className=\"fixed inset-0 flex items-center justify-center p-4\">\n <TransitionChild\n as={Fragment}\n enter=\"ease-out duration-300\"\n enterFrom=\"opacity-0 scale-95\"\n enterTo=\"opacity-100 scale-100\"\n leave=\"ease-in duration-200\"\n leaveFrom=\"opacity-100 scale-100\"\n leaveTo=\"opacity-0 scale-95\"\n >\n <DialogPanel\n className={cn(\n 'w-full max-w-md bg-white rounded-2xl shadow-xl overflow-hidden',\n 'transform transition-all',\n className\n )}\n >\n {/* Header */}\n <div className=\"px-6 py-4 border-b border-slate-200\">\n <DialogTitle className=\"text-lg font-semibold text-slate-900 text-center\">\n {title}\n </DialogTitle>\n </div>\n\n {/* Message */}\n <div className=\"px-8 py-6 text-center\">\n <p className=\"text-slate-700\">{message}</p>\n {body && <div className=\"mt-4\">{body}</div>}\n </div>\n\n {/* Buttons */}\n <div\n className={cn(\n 'flex px-8 py-4 border-t border-slate-200 gap-3',\n buttons.length === 1 ? 'justify-center' : 'justify-between'\n )}\n >\n {buttons.map((button) => (\n <Button\n key={button.text}\n {...button}\n className={cn(\n buttons.length === 1 ? 'w-full' : 'flex-1',\n button.className\n )}\n >\n {button.text}\n </Button>\n ))}\n </div>\n </DialogPanel>\n </TransitionChild>\n </div>\n </Dialog>\n </Transition>\n )\n}\n"],"names":["AlertBox","isOpen","onClose","title","message","body","buttons","className","jsx","Transition","Fragment","jsxs","Dialog","TransitionChild","DialogPanel","cn","DialogTitle","button","Button"],"mappings":";;;;;AAyBO,MAAMA,IAAW,CAAC;AAAA,EACvB,QAAAC;AAAA,EACA,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AACF,MAEI,gBAAAC,EAACC,GAAA,EAAW,MAAMR,GAAQ,IAAIS,GAC5B,UAAA,gBAAAC,EAACC,GAAA,EAAO,SAAAV,GAAkB,WAAU,iBAElC,UAAA;AAAA,EAAA,gBAAAM;AAAA,IAACK;AAAA,IAAA;AAAA,MACC,IAAIH;AAAA,MACJ,OAAM;AAAA,MACN,WAAU;AAAA,MACV,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,WAAU;AAAA,MACV,SAAQ;AAAA,MAER,UAAA,gBAAAF,EAAC,OAAA,EAAI,WAAU,6BAA4B,eAAY,OAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAAA,EAIhE,gBAAAA,EAAC,OAAA,EAAI,WAAU,sDACb,UAAA,gBAAAA;AAAA,IAACK;AAAA,IAAA;AAAA,MACC,IAAIH;AAAA,MACJ,OAAM;AAAA,MACN,WAAU;AAAA,MACV,SAAQ;AAAA,MACR,OAAM;AAAA,MACN,WAAU;AAAA,MACV,SAAQ;AAAA,MAER,UAAA,gBAAAC;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,WAAWC;AAAA,YACT;AAAA,YACA;AAAA,YACAR;AAAA,UAAA;AAAA,UAIF,UAAA;AAAA,YAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,uCACb,UAAA,gBAAAA,EAACQ,KAAY,WAAU,oDACpB,aACH,EAAA,CACF;AAAA,YAGA,gBAAAL,EAAC,OAAA,EAAI,WAAU,yBACb,UAAA;AAAA,cAAA,gBAAAH,EAAC,KAAA,EAAE,WAAU,kBAAkB,UAAAJ,GAAQ;AAAA,cACtCC,KAAQ,gBAAAG,EAAC,OAAA,EAAI,WAAU,QAAQ,UAAAH,EAAA,CAAK;AAAA,YAAA,GACvC;AAAA,YAGA,gBAAAG;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,WAAWO;AAAA,kBACT;AAAA,kBACAT,EAAQ,WAAW,IAAI,mBAAmB;AAAA,gBAAA;AAAA,gBAG3C,UAAAA,EAAQ,IAAI,CAACW,MACZ,gBAAAT;AAAA,kBAACU;AAAA,kBAAA;AAAA,oBAEE,GAAGD;AAAA,oBACJ,WAAWF;AAAA,sBACTT,EAAQ,WAAW,IAAI,WAAW;AAAA,sBAClCW,EAAO;AAAA,oBAAA;AAAA,oBAGR,UAAAA,EAAO;AAAA,kBAAA;AAAA,kBAPHA,EAAO;AAAA,gBAAA,CASf;AAAA,cAAA;AAAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,MAAA;AAAA,IACF;AAAA,EAAA,EACF,CACF;AAAA,EAAA,CACF,EAAA,CACF;"}
|