@axtec/components 0.1.2 → 0.1.4
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 +156 -0
- package/dist/components/PrimaryCard/PrimaryCard.d.ts +24 -0
- package/dist/components/PrimaryCard/index.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +101 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Typography/Text.d.ts +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.js +123 -111
- package/dist/index.js.map +1 -1
- package/dist/index3.js +2 -2
- package/dist/index48.js +44 -56
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +56 -16
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +16 -65
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +62 -51
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +54 -37
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +37 -66
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +63 -19
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +19 -101
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +100 -64
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +206 -224
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +62 -96
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +233 -33
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +98 -14
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +35 -59
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +16 -59
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +57 -72
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +58 -106
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +70 -35
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +101 -40
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +44 -72
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +47 -53
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +70 -62
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +46 -28
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +67 -13
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +35 -2263
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +17 -0
- package/dist/index73.js.map +1 -0
- package/dist/index74.js +2267 -0
- package/dist/index74.js.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,92 +1,94 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Accordion as
|
|
4
|
-
import { ActionBar as
|
|
5
|
-
import { ActionLayout as
|
|
6
|
-
import { Alert as
|
|
2
|
+
import { cn as t } from "./index3.js";
|
|
3
|
+
import { Accordion as p } from "./index4.js";
|
|
4
|
+
import { ActionBar as x } from "./index5.js";
|
|
5
|
+
import { ActionLayout as i } from "./index6.js";
|
|
6
|
+
import { Alert as d } from "./index7.js";
|
|
7
7
|
import { AlertBox as g } from "./index8.js";
|
|
8
|
-
import { AlertModal as
|
|
9
|
-
import { AutoComplete as
|
|
10
|
-
import { Avatar as
|
|
11
|
-
import { AvatarCard as
|
|
12
|
-
import { AverageRating as
|
|
13
|
-
import { AxtecLogo as
|
|
8
|
+
import { AlertModal as c } from "./index9.js";
|
|
9
|
+
import { AutoComplete as b } from "./index10.js";
|
|
10
|
+
import { Avatar as A } from "./index11.js";
|
|
11
|
+
import { AvatarCard as L } from "./index12.js";
|
|
12
|
+
import { AverageRating as B } from "./index13.js";
|
|
13
|
+
import { AxtecLogo as k } from "./index14.js";
|
|
14
14
|
import { Badge as M } from "./index15.js";
|
|
15
15
|
import { Breadcrumbs as H } from "./index16.js";
|
|
16
|
-
import { Button as
|
|
17
|
-
import { ButtonGroup as
|
|
18
|
-
import { Card as R, CardGrid as
|
|
19
|
-
import { CardHeading as
|
|
20
|
-
import { ChartLegend as
|
|
16
|
+
import { Button as w } from "./index17.js";
|
|
17
|
+
import { ButtonGroup as G } from "./index18.js";
|
|
18
|
+
import { Card as R, CardGrid as F } from "./index19.js";
|
|
19
|
+
import { CardHeading as N } from "./index20.js";
|
|
20
|
+
import { ChartLegend as V, StatisticsLegend as Q } from "./index21.js";
|
|
21
21
|
import { Checkbox as q } from "./index22.js";
|
|
22
22
|
import { ConfirmModal as J } from "./index23.js";
|
|
23
23
|
import { DatePicker as O } from "./index24.js";
|
|
24
24
|
import { Drawer as X } from "./index25.js";
|
|
25
25
|
import { Dropdown as Z, DropdownButton as _ } from "./index26.js";
|
|
26
26
|
import { EmptyData as oo } from "./index27.js";
|
|
27
|
-
import { FileUploader as
|
|
28
|
-
import { IconButton as
|
|
29
|
-
import { Image as
|
|
27
|
+
import { FileUploader as eo } from "./index28.js";
|
|
28
|
+
import { IconButton as ao } from "./index29.js";
|
|
29
|
+
import { Image as mo } from "./index30.js";
|
|
30
30
|
import { ImageGrid as fo } from "./index31.js";
|
|
31
|
-
import { ImageUploading as
|
|
31
|
+
import { ImageUploading as no } from "./index32.js";
|
|
32
32
|
import { Input as go } from "./index33.js";
|
|
33
|
-
import { LinkButton as
|
|
34
|
-
import { Loader as
|
|
35
|
-
import { LoadingModal as
|
|
36
|
-
import { LogoLoader as
|
|
37
|
-
import { MenuText as
|
|
38
|
-
import { Modal as
|
|
33
|
+
import { LinkButton as co } from "./index34.js";
|
|
34
|
+
import { Loader as bo } from "./index35.js";
|
|
35
|
+
import { LoadingModal as Ao } from "./index36.js";
|
|
36
|
+
import { LogoLoader as Lo } from "./index37.js";
|
|
37
|
+
import { MenuText as Bo } from "./index38.js";
|
|
38
|
+
import { Modal as ko } from "./index39.js";
|
|
39
39
|
import { MultiItemSelect as Mo } from "./index40.js";
|
|
40
40
|
import { MyHomeVaultLogo as Ho } from "./index41.js";
|
|
41
|
-
import { Notification as
|
|
42
|
-
import { PageHeading as
|
|
41
|
+
import { Notification as wo } from "./index42.js";
|
|
42
|
+
import { PageHeading as Go } from "./index43.js";
|
|
43
43
|
import { Pagination as Ro } from "./index44.js";
|
|
44
|
-
import { Panel as
|
|
44
|
+
import { Panel as Eo, PanelAction as No, PanelBody as Uo, PanelEmptyState as Vo, PanelFooter as Qo, PanelHeader as jo, PanelTitle as qo } from "./index45.js";
|
|
45
45
|
import { PhotoLibrary as Jo } from "./index46.js";
|
|
46
46
|
import { Pill as Oo } from "./index47.js";
|
|
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 {
|
|
47
|
+
import { PrimaryCard as Xo } from "./index48.js";
|
|
48
|
+
import { Progress as Zo } from "./index49.js";
|
|
49
|
+
import { QuickActions as $o } from "./index50.js";
|
|
50
|
+
import { RadioGroup as rr } from "./index51.js";
|
|
51
|
+
import { Rating as tr } from "./index52.js";
|
|
52
|
+
import { Row as pr } from "./index53.js";
|
|
53
|
+
import { ScrollableModal as xr } from "./index54.js";
|
|
54
|
+
import { SectionHeading as ir } from "./index55.js";
|
|
55
|
+
import { Select as dr } from "./index56.js";
|
|
56
|
+
import { Sidebar as gr, SidebarCard as Sr, SidebarFooter as cr, SidebarGroup as ur, SidebarHeader as br, SidebarItem as sr, SidebarNav as Ar, SidebarSection as Pr, useSidebar as Lr } from "./index57.js";
|
|
57
|
+
import { Skeleton as Br, SkeletonAvatar as Cr, SkeletonCard as kr, SkeletonText as Ir } from "./index58.js";
|
|
58
|
+
import { StatisticsChart as yr } from "./index59.js";
|
|
59
|
+
import { StatusBadge as vr, StatusIndicator as wr } from "./index60.js";
|
|
60
|
+
import { StepList as Gr } from "./index61.js";
|
|
61
|
+
import { SubsectionHeading as Rr } from "./index62.js";
|
|
62
|
+
import { TabView as Er } from "./index63.js";
|
|
63
|
+
import { Table as Ur } from "./index64.js";
|
|
64
|
+
import { Tabs as Qr } from "./index65.js";
|
|
65
|
+
import { TaskList as qr } from "./index66.js";
|
|
66
|
+
import { Text as Jr } from "./index67.js";
|
|
67
|
+
import { Textarea as Or } from "./index68.js";
|
|
68
|
+
import { Toggle as Xr } from "./index69.js";
|
|
69
|
+
import { ToggleButton as Zr } from "./index70.js";
|
|
70
|
+
import { Tooltip as $r } from "./index71.js";
|
|
71
|
+
import { TrendIndicator as re } from "./index72.js";
|
|
70
72
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
p as Accordion,
|
|
74
|
+
x as ActionBar,
|
|
75
|
+
i as ActionLayout,
|
|
76
|
+
d as Alert,
|
|
75
77
|
g as AlertBox,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
c as AlertModal,
|
|
79
|
+
b as AutoComplete,
|
|
80
|
+
A as Avatar,
|
|
81
|
+
L as AvatarCard,
|
|
82
|
+
B as AverageRating,
|
|
83
|
+
k as AxtecLogo,
|
|
82
84
|
M as Badge,
|
|
83
85
|
H as Breadcrumbs,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
w as Button,
|
|
87
|
+
G as ButtonGroup,
|
|
86
88
|
R as Card,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
F as CardGrid,
|
|
90
|
+
N as CardHeading,
|
|
91
|
+
V as ChartLegend,
|
|
90
92
|
q as Checkbox,
|
|
91
93
|
J as ConfirmModal,
|
|
92
94
|
O as DatePicker,
|
|
@@ -94,60 +96,70 @@ export {
|
|
|
94
96
|
Z as Dropdown,
|
|
95
97
|
_ as DropdownButton,
|
|
96
98
|
oo as EmptyData,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
eo as FileUploader,
|
|
100
|
+
ao as IconButton,
|
|
101
|
+
mo as Image,
|
|
100
102
|
fo as ImageGrid,
|
|
101
|
-
|
|
103
|
+
no as ImageUploading,
|
|
102
104
|
go as Input,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
co as LinkButton,
|
|
106
|
+
bo as Loader,
|
|
107
|
+
Ao as LoadingModal,
|
|
108
|
+
Lo as LogoLoader,
|
|
109
|
+
Bo as MenuText,
|
|
110
|
+
ko as Modal,
|
|
109
111
|
Mo as MultiItemSelect,
|
|
110
112
|
Ho as MyHomeVaultLogo,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
wo as Notification,
|
|
114
|
+
Go as PageHeading,
|
|
113
115
|
Ro as Pagination,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
Eo as Panel,
|
|
117
|
+
No as PanelAction,
|
|
118
|
+
Uo as PanelBody,
|
|
119
|
+
Vo as PanelEmptyState,
|
|
118
120
|
Qo as PanelFooter,
|
|
119
121
|
jo as PanelHeader,
|
|
120
122
|
qo as PanelTitle,
|
|
121
123
|
Jo as PhotoLibrary,
|
|
122
124
|
Oo as Pill,
|
|
123
|
-
Xo as
|
|
124
|
-
Zo as
|
|
125
|
-
$o as
|
|
126
|
-
rr as
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
cr as
|
|
135
|
-
|
|
125
|
+
Xo as PrimaryCard,
|
|
126
|
+
Zo as Progress,
|
|
127
|
+
$o as QuickActions,
|
|
128
|
+
rr as RadioGroup,
|
|
129
|
+
tr as Rating,
|
|
130
|
+
pr as Row,
|
|
131
|
+
xr as ScrollableModal,
|
|
132
|
+
ir as SectionHeading,
|
|
133
|
+
dr as Select,
|
|
134
|
+
gr as Sidebar,
|
|
135
|
+
Sr as SidebarCard,
|
|
136
|
+
cr as SidebarFooter,
|
|
137
|
+
ur as SidebarGroup,
|
|
138
|
+
br as SidebarHeader,
|
|
139
|
+
sr as SidebarItem,
|
|
140
|
+
Ar as SidebarNav,
|
|
141
|
+
Pr as SidebarSection,
|
|
142
|
+
Br as Skeleton,
|
|
143
|
+
Cr as SkeletonAvatar,
|
|
144
|
+
kr as SkeletonCard,
|
|
145
|
+
Ir as SkeletonText,
|
|
146
|
+
yr as StatisticsChart,
|
|
136
147
|
Q as StatisticsLegend,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
vr as StatusBadge,
|
|
149
|
+
wr as StatusIndicator,
|
|
150
|
+
Gr as StepList,
|
|
151
|
+
Rr as SubsectionHeading,
|
|
152
|
+
Er as TabView,
|
|
153
|
+
Ur as Table,
|
|
154
|
+
Qr as Tabs,
|
|
155
|
+
qr as TaskList,
|
|
156
|
+
Jr as Text,
|
|
157
|
+
Or as Textarea,
|
|
158
|
+
Xr as Toggle,
|
|
159
|
+
Zr as ToggleButton,
|
|
160
|
+
$r as Tooltip,
|
|
161
|
+
re as TrendIndicator,
|
|
162
|
+
t as cn,
|
|
163
|
+
Lr as useSidebar
|
|
152
164
|
};
|
|
153
165
|
//# 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/index3.js
CHANGED
package/dist/index48.js
CHANGED
|
@@ -1,59 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
className: i(
|
|
46
|
-
"h-full rounded-full transition-all duration-300 ease-out",
|
|
47
|
-
u[o]
|
|
48
|
-
),
|
|
49
|
-
style: { width: `${n}%` }
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
] });
|
|
55
|
-
}
|
|
1
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as t } from "./index3.js";
|
|
3
|
+
const h = ({
|
|
4
|
+
icon: l,
|
|
5
|
+
title: o,
|
|
6
|
+
description: x,
|
|
7
|
+
buttonLabel: r,
|
|
8
|
+
onAction: a,
|
|
9
|
+
children: s,
|
|
10
|
+
size: m = "md",
|
|
11
|
+
className: i
|
|
12
|
+
}) => /* @__PURE__ */ p(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
className: t(
|
|
16
|
+
"rounded-xl bg-gradient-to-br from-primary-500 to-primary-500/80 text-white",
|
|
17
|
+
m === "sm" ? "p-3" : "p-4",
|
|
18
|
+
i
|
|
19
|
+
),
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ p("div", { className: t("flex items-center gap-2", (x || r || s) && "mb-2"), children: [
|
|
22
|
+
l && /* @__PURE__ */ e(l, { className: t(m === "sm" ? "h-4 w-4" : "h-5 w-5") }),
|
|
23
|
+
/* @__PURE__ */ e("span", { className: t("font-semibold", m === "sm" ? "text-xs" : "text-sm"), children: o })
|
|
24
|
+
] }),
|
|
25
|
+
x && /* @__PURE__ */ e("p", { className: t(
|
|
26
|
+
"text-white/90",
|
|
27
|
+
m === "sm" ? "text-[11px]" : "text-xs",
|
|
28
|
+
s || r && a ? m === "sm" ? "mb-2" : "mb-3" : ""
|
|
29
|
+
), children: x }),
|
|
30
|
+
s || (r && a ? /* @__PURE__ */ e(
|
|
31
|
+
"button",
|
|
32
|
+
{
|
|
33
|
+
onClick: a,
|
|
34
|
+
className: t(
|
|
35
|
+
"w-full bg-white text-primary-600 rounded-lg font-semibold hover:bg-white/90 transition-colors cursor-pointer",
|
|
36
|
+
m === "sm" ? "px-2 py-1.5 text-xs" : "px-3 py-2 text-sm"
|
|
37
|
+
),
|
|
38
|
+
children: r
|
|
39
|
+
}
|
|
40
|
+
) : null)
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
56
44
|
export {
|
|
57
|
-
|
|
45
|
+
h as PrimaryCard
|
|
58
46
|
};
|
|
59
47
|
//# sourceMappingURL=index48.js.map
|
package/dist/index48.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index48.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index48.js","sources":["../src/components/PrimaryCard/PrimaryCard.tsx"],"sourcesContent":["import { type ReactNode, type ComponentType, type SVGProps } from 'react'\nimport { cn } from '@/lib/utils'\n\ntype HeroIcon = ComponentType<SVGProps<SVGSVGElement> & { title?: string; titleId?: string }>\n\nexport interface PrimaryCardProps {\n /** Icon displayed alongside the title */\n icon?: HeroIcon\n /** Card title */\n title: string\n /** Description text */\n description?: string\n /** Primary action button label */\n buttonLabel?: string\n /** Primary action click handler */\n onAction?: () => void\n /** Custom content rendered below the description (replaces the button) */\n children?: ReactNode\n /** Card size variant */\n size?: 'sm' | 'md'\n className?: string\n}\n\nexport const PrimaryCard = ({\n icon: Icon,\n title,\n description,\n buttonLabel,\n onAction,\n children,\n size = 'md',\n className,\n}: PrimaryCardProps) => {\n return (\n <div\n className={cn(\n 'rounded-xl bg-gradient-to-br from-primary-500 to-primary-500/80 text-white',\n size === 'sm' ? 'p-3' : 'p-4',\n className\n )}\n >\n <div className={cn('flex items-center gap-2', (description || buttonLabel || children) && 'mb-2')}>\n {Icon && <Icon className={cn(size === 'sm' ? 'h-4 w-4' : 'h-5 w-5')} />}\n <span className={cn('font-semibold', size === 'sm' ? 'text-xs' : 'text-sm')}>{title}</span>\n </div>\n {description && (\n <p className={cn(\n 'text-white/90',\n size === 'sm' ? 'text-[11px]' : 'text-xs',\n (children || (buttonLabel && onAction)) ? (size === 'sm' ? 'mb-2' : 'mb-3') : ''\n )}>\n {description}\n </p>\n )}\n {children ? (\n children\n ) : buttonLabel && onAction ? (\n <button\n onClick={onAction}\n className={cn(\n 'w-full bg-white text-primary-600 rounded-lg font-semibold hover:bg-white/90 transition-colors cursor-pointer',\n size === 'sm' ? 'px-2 py-1.5 text-xs' : 'px-3 py-2 text-sm'\n )}\n >\n {buttonLabel}\n </button>\n ) : null}\n </div>\n )\n}\n"],"names":["PrimaryCard","Icon","title","description","buttonLabel","onAction","children","size","className","jsxs","cn","jsx"],"mappings":";;AAuBO,MAAMA,IAAc,CAAC;AAAA,EAC1B,MAAMC;AAAA,EACN,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,WAAAC;AACF,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC;AAAA,MACT;AAAA,MACAH,MAAS,OAAO,QAAQ;AAAA,MACxBC;AAAA,IAAA;AAAA,IAGF,UAAA;AAAA,MAAA,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAG,4BAA4BP,KAAeC,KAAeE,MAAa,MAAM,GAC7F,UAAA;AAAA,QAAAL,KAAQ,gBAAAU,EAACV,KAAK,WAAWS,EAAGH,MAAS,OAAO,YAAY,SAAS,GAAG;AAAA,QACrE,gBAAAI,EAAC,QAAA,EAAK,WAAWD,EAAG,iBAAiBH,MAAS,OAAO,YAAY,SAAS,GAAI,UAAAL,EAAA,CAAM;AAAA,MAAA,GACtF;AAAA,MACCC,KACC,gBAAAQ,EAAC,KAAA,EAAE,WAAWD;AAAA,QACZ;AAAA,QACAH,MAAS,OAAO,gBAAgB;AAAA,QAC/BD,KAAaF,KAAeC,IAAcE,MAAS,OAAO,SAAS,SAAU;AAAA,MAAA,GAE7E,UAAAJ,GACH;AAAA,MAEDG,MAEGF,KAAeC,IACjB,gBAAAM;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,SAASN;AAAA,UACT,WAAWK;AAAA,YACT;AAAA,YACAH,MAAS,OAAO,wBAAwB;AAAA,UAAA;AAAA,UAGzC,UAAAH;AAAA,QAAA;AAAA,MAAA,IAED;AAAA,IAAA;AAAA,EAAA;AAAA;"}
|
package/dist/index49.js
CHANGED
|
@@ -1,19 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as a, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { cn as i } from "./index3.js";
|
|
3
|
+
const c = {
|
|
4
|
+
sm: "h-1.5",
|
|
5
|
+
md: "h-2.5",
|
|
6
|
+
lg: "h-4"
|
|
7
|
+
}, u = {
|
|
8
|
+
default: "bg-primary-500",
|
|
9
|
+
success: "bg-green-500",
|
|
10
|
+
warning: "bg-yellow-500",
|
|
11
|
+
danger: "bg-red-500"
|
|
12
|
+
};
|
|
13
|
+
function g({
|
|
14
|
+
value: t,
|
|
15
|
+
max: r = 100,
|
|
16
|
+
size: d = "md",
|
|
17
|
+
variant: o = "default",
|
|
18
|
+
showLabel: l = !1,
|
|
19
|
+
label: e,
|
|
20
|
+
className: m
|
|
21
|
+
}) {
|
|
22
|
+
const n = Math.min(Math.max(t / r * 100, 0), 100);
|
|
23
|
+
return /* @__PURE__ */ a("div", { className: m, children: [
|
|
24
|
+
(l || e) && /* @__PURE__ */ a("div", { className: "flex justify-between mb-1.5", children: [
|
|
25
|
+
e && /* @__PURE__ */ s("span", { className: "text-sm font-medium text-slate-700", children: e }),
|
|
26
|
+
l && /* @__PURE__ */ a("span", { className: "text-sm text-slate-500", children: [
|
|
27
|
+
Math.round(n),
|
|
28
|
+
"%"
|
|
29
|
+
] })
|
|
30
|
+
] }),
|
|
31
|
+
/* @__PURE__ */ s(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
className: i(
|
|
35
|
+
"w-full bg-slate-200 rounded-full overflow-hidden",
|
|
36
|
+
c[d]
|
|
37
|
+
),
|
|
38
|
+
role: "progressbar",
|
|
39
|
+
"aria-valuenow": t,
|
|
40
|
+
"aria-valuemin": 0,
|
|
41
|
+
"aria-valuemax": r,
|
|
42
|
+
children: /* @__PURE__ */ s(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
className: i(
|
|
46
|
+
"h-full rounded-full transition-all duration-300 ease-out",
|
|
47
|
+
u[o]
|
|
48
|
+
),
|
|
49
|
+
style: { width: `${n}%` }
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
)
|
|
54
|
+
] });
|
|
55
|
+
}
|
|
16
56
|
export {
|
|
17
|
-
|
|
57
|
+
g as Progress
|
|
18
58
|
};
|
|
19
59
|
//# sourceMappingURL=index49.js.map
|
package/dist/index49.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index49.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index49.js","sources":["../src/components/Progress/Progress.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\n\nexport interface ProgressProps {\n value: number\n max?: number\n size?: 'sm' | 'md' | 'lg'\n variant?: 'default' | 'success' | 'warning' | 'danger'\n showLabel?: boolean\n label?: string\n className?: string\n}\n\nconst sizeStyles = {\n sm: 'h-1.5',\n md: 'h-2.5',\n lg: 'h-4',\n}\n\nconst variantStyles = {\n default: 'bg-primary-500',\n success: 'bg-green-500',\n warning: 'bg-yellow-500',\n danger: 'bg-red-500',\n}\n\nexport function Progress({\n value,\n max = 100,\n size = 'md',\n variant = 'default',\n showLabel = false,\n label,\n className,\n}: ProgressProps) {\n const percentage = Math.min(Math.max((value / max) * 100, 0), 100)\n\n return (\n <div className={className}>\n {(showLabel || label) && (\n <div className=\"flex justify-between mb-1.5\">\n {label && (\n <span className=\"text-sm font-medium text-slate-700\">{label}</span>\n )}\n {showLabel && (\n <span className=\"text-sm text-slate-500\">{Math.round(percentage)}%</span>\n )}\n </div>\n )}\n <div\n className={cn(\n 'w-full bg-slate-200 rounded-full overflow-hidden',\n sizeStyles[size]\n )}\n role=\"progressbar\"\n aria-valuenow={value}\n aria-valuemin={0}\n aria-valuemax={max}\n >\n <div\n className={cn(\n 'h-full rounded-full transition-all duration-300 ease-out',\n variantStyles[variant]\n )}\n style={{ width: `${percentage}%` }}\n />\n </div>\n </div>\n )\n}\n"],"names":["sizeStyles","variantStyles","Progress","value","max","size","variant","showLabel","label","className","percentage","jsxs","jsx","cn"],"mappings":";;AAYA,MAAMA,IAAa;AAAA,EACjB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN,GAEMC,IAAgB;AAAA,EACpB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,SAASC,EAAS;AAAA,EACvB,OAAAC;AAAA,EACA,KAAAC,IAAM;AAAA,EACN,MAAAC,IAAO;AAAA,EACP,SAAAC,IAAU;AAAA,EACV,WAAAC,IAAY;AAAA,EACZ,OAAAC;AAAA,EACA,WAAAC;AACF,GAAkB;AAChB,QAAMC,IAAa,KAAK,IAAI,KAAK,IAAKP,IAAQC,IAAO,KAAK,CAAC,GAAG,GAAG;AAEjE,SACE,gBAAAO,EAAC,SAAI,WAAAF,GACD,UAAA;AAAA,KAAAF,KAAaC,MACb,gBAAAG,EAAC,OAAA,EAAI,WAAU,+BACZ,UAAA;AAAA,MAAAH,KACC,gBAAAI,EAAC,QAAA,EAAK,WAAU,sCAAsC,UAAAJ,GAAM;AAAA,MAE7DD,KACC,gBAAAI,EAAC,QAAA,EAAK,WAAU,0BAA0B,UAAA;AAAA,QAAA,KAAK,MAAMD,CAAU;AAAA,QAAE;AAAA,MAAA,EAAA,CAAC;AAAA,IAAA,GAEtE;AAAA,IAEF,gBAAAE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWC;AAAA,UACT;AAAA,UACAb,EAAWK,CAAI;AAAA,QAAA;AAAA,QAEjB,MAAK;AAAA,QACL,iBAAeF;AAAA,QACf,iBAAe;AAAA,QACf,iBAAeC;AAAA,QAEf,UAAA,gBAAAQ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWC;AAAA,cACT;AAAA,cACAZ,EAAcK,CAAO;AAAA,YAAA;AAAA,YAEvB,OAAO,EAAE,OAAO,GAAGI,CAAU,IAAA;AAAA,UAAI;AAAA,QAAA;AAAA,MACnC;AAAA,IAAA;AAAA,EACF,GACF;AAEJ;"}
|
package/dist/index50.js
CHANGED
|
@@ -1,68 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
t === "vertical" ? "flex-col" : "flex-row flex-wrap",
|
|
17
|
-
m
|
|
18
|
-
),
|
|
19
|
-
role: "radiogroup",
|
|
20
|
-
children: d.map((e) => /* @__PURE__ */ s(
|
|
21
|
-
"label",
|
|
22
|
-
{
|
|
23
|
-
className: c(
|
|
24
|
-
"flex items-start gap-3 cursor-pointer group",
|
|
25
|
-
e.disabled && "opacity-50 cursor-not-allowed"
|
|
26
|
-
),
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ s("div", { className: "relative flex-shrink-0 mt-0.5", children: [
|
|
29
|
-
/* @__PURE__ */ r(
|
|
30
|
-
"input",
|
|
31
|
-
{
|
|
32
|
-
type: "radio",
|
|
33
|
-
name: i,
|
|
34
|
-
value: e.value,
|
|
35
|
-
checked: l === e.value,
|
|
36
|
-
onChange: () => a == null ? void 0 : a(e.value),
|
|
37
|
-
disabled: e.disabled,
|
|
38
|
-
className: "peer sr-only"
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ r(
|
|
42
|
-
"div",
|
|
43
|
-
{
|
|
44
|
-
className: c(
|
|
45
|
-
"h-5 w-5 rounded-full border-2 transition-colors duration-200",
|
|
46
|
-
"flex items-center justify-center",
|
|
47
|
-
"peer-focus:ring-2 peer-focus:ring-primary-500 peer-focus:ring-offset-2",
|
|
48
|
-
l === e.value ? "border-primary-500" : "border-slate-300 group-hover:border-slate-400"
|
|
49
|
-
),
|
|
50
|
-
children: l === e.value && /* @__PURE__ */ r("div", { className: "h-2.5 w-2.5 rounded-full bg-primary-500" })
|
|
51
|
-
}
|
|
52
|
-
)
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ s("div", { className: "flex flex-col", children: [
|
|
55
|
-
/* @__PURE__ */ r("span", { className: "text-sm font-medium text-slate-900", children: e.label }),
|
|
56
|
-
e.description && /* @__PURE__ */ r("span", { className: "text-sm text-slate-500", children: e.description })
|
|
57
|
-
] })
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
e.value
|
|
61
|
-
))
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
}
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "./index3.js";
|
|
3
|
+
const p = ({
|
|
4
|
+
children: t,
|
|
5
|
+
bottom: o = 60,
|
|
6
|
+
right: r = 18,
|
|
7
|
+
className: i
|
|
8
|
+
}) => /* @__PURE__ */ m(
|
|
9
|
+
"div",
|
|
10
|
+
{
|
|
11
|
+
className: s("fixed z-10", i),
|
|
12
|
+
style: { bottom: `${o}px`, right: `${r}px` },
|
|
13
|
+
children: t
|
|
14
|
+
}
|
|
15
|
+
);
|
|
65
16
|
export {
|
|
66
|
-
|
|
17
|
+
p as QuickActions
|
|
67
18
|
};
|
|
68
19
|
//# sourceMappingURL=index50.js.map
|
package/dist/index50.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index50.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index50.js","sources":["../src/components/QuickActions/QuickActions.tsx"],"sourcesContent":["import { type ReactNode } from 'react'\nimport { cn } from '@/lib/utils'\n\nexport interface QuickActionsProps {\n children: ReactNode\n bottom?: number\n right?: number\n className?: string\n}\n\nexport const QuickActions = ({\n children,\n bottom = 60,\n right = 18,\n className,\n}: QuickActionsProps) => {\n return (\n <div\n className={cn('fixed z-10', className)}\n style={{ bottom: `${bottom}px`, right: `${right}px` }}\n >\n {children}\n </div>\n )\n}\n"],"names":["QuickActions","children","bottom","right","className","jsx","cn"],"mappings":";;AAUO,MAAMA,IAAe,CAAC;AAAA,EAC3B,UAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,OAAAC,IAAQ;AAAA,EACR,WAAAC;AACF,MAEI,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAG,cAAcF,CAAS;AAAA,IACrC,OAAO,EAAE,QAAQ,GAAGF,CAAM,MAAM,OAAO,GAAGC,CAAK,KAAA;AAAA,IAE9C,UAAAF;AAAA,EAAA;AAAA;"}
|