@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.
Files changed (66) hide show
  1. package/README.md +156 -0
  2. package/dist/components/PrimaryCard/PrimaryCard.d.ts +24 -0
  3. package/dist/components/PrimaryCard/index.d.ts +1 -0
  4. package/dist/components/Sidebar/Sidebar.d.ts +101 -0
  5. package/dist/components/Sidebar/index.d.ts +1 -0
  6. package/dist/components/Typography/Text.d.ts +2 -2
  7. package/dist/components/index.d.ts +2 -0
  8. package/dist/index.css +1 -1
  9. package/dist/index.js +123 -111
  10. package/dist/index.js.map +1 -1
  11. package/dist/index3.js +2 -2
  12. package/dist/index48.js +44 -56
  13. package/dist/index48.js.map +1 -1
  14. package/dist/index49.js +56 -16
  15. package/dist/index49.js.map +1 -1
  16. package/dist/index50.js +16 -65
  17. package/dist/index50.js.map +1 -1
  18. package/dist/index51.js +62 -51
  19. package/dist/index51.js.map +1 -1
  20. package/dist/index52.js +54 -37
  21. package/dist/index52.js.map +1 -1
  22. package/dist/index53.js +37 -66
  23. package/dist/index53.js.map +1 -1
  24. package/dist/index54.js +63 -19
  25. package/dist/index54.js.map +1 -1
  26. package/dist/index55.js +19 -101
  27. package/dist/index55.js.map +1 -1
  28. package/dist/index56.js +100 -64
  29. package/dist/index56.js.map +1 -1
  30. package/dist/index57.js +206 -224
  31. package/dist/index57.js.map +1 -1
  32. package/dist/index58.js +62 -96
  33. package/dist/index58.js.map +1 -1
  34. package/dist/index59.js +233 -33
  35. package/dist/index59.js.map +1 -1
  36. package/dist/index60.js +98 -14
  37. package/dist/index60.js.map +1 -1
  38. package/dist/index61.js +35 -59
  39. package/dist/index61.js.map +1 -1
  40. package/dist/index62.js +16 -59
  41. package/dist/index62.js.map +1 -1
  42. package/dist/index63.js +57 -72
  43. package/dist/index63.js.map +1 -1
  44. package/dist/index64.js +58 -106
  45. package/dist/index64.js.map +1 -1
  46. package/dist/index65.js +70 -35
  47. package/dist/index65.js.map +1 -1
  48. package/dist/index66.js +101 -40
  49. package/dist/index66.js.map +1 -1
  50. package/dist/index67.js +44 -72
  51. package/dist/index67.js.map +1 -1
  52. package/dist/index68.js +47 -53
  53. package/dist/index68.js.map +1 -1
  54. package/dist/index69.js +70 -62
  55. package/dist/index69.js.map +1 -1
  56. package/dist/index70.js +46 -28
  57. package/dist/index70.js.map +1 -1
  58. package/dist/index71.js +67 -13
  59. package/dist/index71.js.map +1 -1
  60. package/dist/index72.js +35 -2263
  61. package/dist/index72.js.map +1 -1
  62. package/dist/index73.js +17 -0
  63. package/dist/index73.js.map +1 -0
  64. package/dist/index74.js +2267 -0
  65. package/dist/index74.js.map +1 -0
  66. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,92 +1,94 @@
1
1
  /* empty css */
2
- import { cn as e } from "./index3.js";
3
- import { Accordion as m } from "./index4.js";
4
- import { ActionBar as a } from "./index5.js";
5
- import { ActionLayout as n } from "./index6.js";
6
- import { Alert as l } from "./index7.js";
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 u } from "./index9.js";
9
- import { AutoComplete as S } from "./index10.js";
10
- import { Avatar as L } from "./index11.js";
11
- import { AvatarCard as T } from "./index12.js";
12
- import { AverageRating as C } from "./index13.js";
13
- import { AxtecLogo as b } from "./index14.js";
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 D } from "./index17.js";
17
- import { ButtonGroup as v } from "./index18.js";
18
- import { Card as R, CardGrid as E } from "./index19.js";
19
- import { CardHeading as U } from "./index20.js";
20
- import { ChartLegend as N, StatisticsLegend as Q } from "./index21.js";
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 to } from "./index28.js";
28
- import { IconButton as po } from "./index29.js";
29
- import { Image as xo } from "./index30.js";
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 io } from "./index32.js";
31
+ import { ImageUploading as no } from "./index32.js";
32
32
  import { Input as go } from "./index33.js";
33
- import { LinkButton as uo } from "./index34.js";
34
- import { Loader as So } from "./index35.js";
35
- import { LoadingModal as Lo } from "./index36.js";
36
- import { LogoLoader as To } from "./index37.js";
37
- import { MenuText as Co } from "./index38.js";
38
- import { Modal as bo } from "./index39.js";
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 Do } from "./index42.js";
42
- import { PageHeading as vo } from "./index43.js";
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 Fo, PanelAction as Uo, PanelBody as Vo, PanelEmptyState as No, PanelFooter as Qo, PanelHeader as jo, PanelTitle as qo } from "./index45.js";
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 { Progress as Xo } from "./index48.js";
48
- import { QuickActions as Zo } from "./index49.js";
49
- import { RadioGroup as $o } from "./index50.js";
50
- import { Rating as rr } from "./index51.js";
51
- import { Row as er } from "./index52.js";
52
- import { ScrollableModal as mr } from "./index53.js";
53
- import { SectionHeading as ar } from "./index54.js";
54
- import { Select as nr } from "./index55.js";
55
- import { Skeleton as lr, SkeletonAvatar as dr, SkeletonCard as gr, SkeletonText as cr } from "./index56.js";
56
- import { StatisticsChart as sr } from "./index57.js";
57
- import { StatusBadge as Ar, StatusIndicator as Lr } from "./index58.js";
58
- import { StepList as Tr } from "./index59.js";
59
- import { SubsectionHeading as Cr } from "./index60.js";
60
- import { TabView as br } from "./index61.js";
61
- import { Table as Mr } from "./index62.js";
62
- import { Tabs as Hr } from "./index63.js";
63
- import { TaskList as Dr } from "./index64.js";
64
- import { Text as vr } from "./index65.js";
65
- import { Textarea as Rr } from "./index66.js";
66
- import { Toggle as Fr } from "./index67.js";
67
- import { ToggleButton as Vr } from "./index68.js";
68
- import { Tooltip as Qr } from "./index69.js";
69
- import { TrendIndicator as qr } from "./index70.js";
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
- m as Accordion,
72
- a as ActionBar,
73
- n as ActionLayout,
74
- l as Alert,
73
+ p as Accordion,
74
+ x as ActionBar,
75
+ i as ActionLayout,
76
+ d as Alert,
75
77
  g as AlertBox,
76
- u as AlertModal,
77
- S as AutoComplete,
78
- L as Avatar,
79
- T as AvatarCard,
80
- C as AverageRating,
81
- b as AxtecLogo,
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
- D as Button,
85
- v as ButtonGroup,
86
+ w as Button,
87
+ G as ButtonGroup,
86
88
  R as Card,
87
- E as CardGrid,
88
- U as CardHeading,
89
- N as ChartLegend,
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
- to as FileUploader,
98
- po as IconButton,
99
- xo as Image,
99
+ eo as FileUploader,
100
+ ao as IconButton,
101
+ mo as Image,
100
102
  fo as ImageGrid,
101
- io as ImageUploading,
103
+ no as ImageUploading,
102
104
  go as Input,
103
- uo as LinkButton,
104
- So as Loader,
105
- Lo as LoadingModal,
106
- To as LogoLoader,
107
- Co as MenuText,
108
- bo as Modal,
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
- Do as Notification,
112
- vo as PageHeading,
113
+ wo as Notification,
114
+ Go as PageHeading,
113
115
  Ro as Pagination,
114
- Fo as Panel,
115
- Uo as PanelAction,
116
- Vo as PanelBody,
117
- No as PanelEmptyState,
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 Progress,
124
- Zo as QuickActions,
125
- $o as RadioGroup,
126
- rr as Rating,
127
- er as Row,
128
- mr as ScrollableModal,
129
- ar as SectionHeading,
130
- nr as Select,
131
- lr as Skeleton,
132
- dr as SkeletonAvatar,
133
- gr as SkeletonCard,
134
- cr as SkeletonText,
135
- sr as StatisticsChart,
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
- Ar as StatusBadge,
138
- Lr as StatusIndicator,
139
- Tr as StepList,
140
- Cr as SubsectionHeading,
141
- br as TabView,
142
- Mr as Table,
143
- Hr as Tabs,
144
- Dr as TaskList,
145
- vr as Text,
146
- Rr as Textarea,
147
- Fr as Toggle,
148
- Vr as ToggleButton,
149
- Qr as Tooltip,
150
- qr as TrendIndicator,
151
- e as cn
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
@@ -1,5 +1,5 @@
1
- import { clsx as o } from "./index71.js";
2
- import { twMerge as t } from "./index72.js";
1
+ import { clsx as o } from "./index73.js";
2
+ import { twMerge as t } from "./index74.js";
3
3
  function n(...r) {
4
4
  return t(o(r));
5
5
  }
package/dist/index48.js CHANGED
@@ -1,59 +1,47 @@
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
- }
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
- g as Progress
45
+ h as PrimaryCard
58
46
  };
59
47
  //# sourceMappingURL=index48.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index48.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;"}
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 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
- );
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
- p as QuickActions
57
+ g as Progress
18
58
  };
19
59
  //# sourceMappingURL=index49.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index49.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;"}
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 r, jsxs as s } from "react/jsx-runtime";
2
- import { cn as c } from "./index3.js";
3
- function o({
4
- options: d,
5
- value: l,
6
- onChange: a,
7
- name: i,
8
- orientation: t = "vertical",
9
- className: m
10
- }) {
11
- return /* @__PURE__ */ r(
12
- "div",
13
- {
14
- className: c(
15
- "flex gap-3",
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
- o as RadioGroup
17
+ p as QuickActions
67
18
  };
68
19
  //# sourceMappingURL=index50.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index50.js","sources":["../src/components/RadioGroup/RadioGroup.tsx"],"sourcesContent":["import { cn } from '@/lib/utils'\n\nexport interface RadioOption {\n value: string\n label: string\n description?: string\n disabled?: boolean\n}\n\nexport interface RadioGroupProps {\n options: RadioOption[]\n value?: string\n onChange?: (value: string) => void\n name: string\n orientation?: 'horizontal' | 'vertical'\n className?: string\n}\n\nexport function RadioGroup({\n options,\n value,\n onChange,\n name,\n orientation = 'vertical',\n className,\n}: RadioGroupProps) {\n return (\n <div\n className={cn(\n 'flex gap-3',\n orientation === 'vertical' ? 'flex-col' : 'flex-row flex-wrap',\n className\n )}\n role=\"radiogroup\"\n >\n {options.map((option) => (\n <label\n key={option.value}\n className={cn(\n 'flex items-start gap-3 cursor-pointer group',\n option.disabled && 'opacity-50 cursor-not-allowed'\n )}\n >\n <div className=\"relative flex-shrink-0 mt-0.5\">\n <input\n type=\"radio\"\n name={name}\n value={option.value}\n checked={value === option.value}\n onChange={() => onChange?.(option.value)}\n disabled={option.disabled}\n className=\"peer sr-only\"\n />\n <div\n className={cn(\n 'h-5 w-5 rounded-full border-2 transition-colors duration-200',\n 'flex items-center justify-center',\n 'peer-focus:ring-2 peer-focus:ring-primary-500 peer-focus:ring-offset-2',\n value === option.value\n ? 'border-primary-500'\n : 'border-slate-300 group-hover:border-slate-400'\n )}\n >\n {value === option.value && (\n <div className=\"h-2.5 w-2.5 rounded-full bg-primary-500\" />\n )}\n </div>\n </div>\n <div className=\"flex flex-col\">\n <span className=\"text-sm font-medium text-slate-900\">\n {option.label}\n </span>\n {option.description && (\n <span className=\"text-sm text-slate-500\">{option.description}</span>\n )}\n </div>\n </label>\n ))}\n </div>\n )\n}\n"],"names":["RadioGroup","options","value","onChange","name","orientation","className","jsx","cn","option","jsxs"],"mappings":";;AAkBO,SAASA,EAAW;AAAA,EACzB,SAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,WAAAC;AACF,GAAoB;AAClB,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAH,MAAgB,aAAa,aAAa;AAAA,QAC1CC;AAAA,MAAA;AAAA,MAEF,MAAK;AAAA,MAEJ,UAAAL,EAAQ,IAAI,CAACQ,MACZ,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UAEC,WAAWF;AAAA,YACT;AAAA,YACAC,EAAO,YAAY;AAAA,UAAA;AAAA,UAGrB,UAAA;AAAA,YAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,iCACb,UAAA;AAAA,cAAA,gBAAAH;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,MAAK;AAAA,kBACL,MAAAH;AAAA,kBACA,OAAOK,EAAO;AAAA,kBACd,SAASP,MAAUO,EAAO;AAAA,kBAC1B,UAAU,MAAMN,KAAA,gBAAAA,EAAWM,EAAO;AAAA,kBAClC,UAAUA,EAAO;AAAA,kBACjB,WAAU;AAAA,gBAAA;AAAA,cAAA;AAAA,cAEZ,gBAAAF;AAAA,gBAAC;AAAA,gBAAA;AAAA,kBACC,WAAWC;AAAA,oBACT;AAAA,oBACA;AAAA,oBACA;AAAA,oBACAN,MAAUO,EAAO,QACb,uBACA;AAAA,kBAAA;AAAA,kBAGL,gBAAUA,EAAO,SAChB,gBAAAF,EAAC,OAAA,EAAI,WAAU,0CAAA,CAA0C;AAAA,gBAAA;AAAA,cAAA;AAAA,YAE7D,GACF;AAAA,YACA,gBAAAG,EAAC,OAAA,EAAI,WAAU,iBACb,UAAA;AAAA,cAAA,gBAAAH,EAAC,QAAA,EAAK,WAAU,sCACb,UAAAE,EAAO,OACV;AAAA,cACCA,EAAO,eACN,gBAAAF,EAAC,UAAK,WAAU,0BAA0B,YAAO,YAAA,CAAY;AAAA,YAAA,EAAA,CAEjE;AAAA,UAAA;AAAA,QAAA;AAAA,QAtCKE,EAAO;AAAA,MAAA,CAwCf;AAAA,IAAA;AAAA,EAAA;AAGP;"}
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;"}