@konstructio/ui 0.1.2-alpha.70 → 0.1.2-alpha.72

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 (83) hide show
  1. package/dist/{Modal-BGcucTHv.js → Modal-CXRo8f-h.js} +1 -1
  2. package/dist/assets/icons/components/CheckCircleFilled.d.ts +3 -0
  3. package/dist/assets/icons/components/CheckCircleFilled.js +31 -0
  4. package/dist/assets/icons/components/CheckCircleOutline.d.ts +3 -0
  5. package/dist/assets/icons/components/{CheckCircle.js → CheckCircleOutline.js} +8 -8
  6. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
  7. package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +26 -0
  8. package/dist/assets/icons/components/InfoCircle.d.ts +3 -0
  9. package/dist/assets/icons/components/InfoCircle.js +31 -0
  10. package/dist/assets/icons/components/WarningTriangle.d.ts +3 -0
  11. package/dist/assets/icons/components/WarningTriangle.js +28 -0
  12. package/dist/assets/icons/components/index.d.ts +5 -1
  13. package/dist/assets/icons/components/index.js +124 -116
  14. package/dist/assets/icons/index.js +124 -116
  15. package/dist/components/Alert/Alert.d.ts +5 -16
  16. package/dist/components/Alert/Alert.js +46 -32
  17. package/dist/components/Alert/Alert.types.d.ts +8 -8
  18. package/dist/components/Alert/Alert.variants.d.ts +11 -2
  19. package/dist/components/Alert/Alert.variants.js +77 -32
  20. package/dist/components/Badge/Badge.variants.d.ts +2 -2
  21. package/dist/components/Button/Button.variants.d.ts +1 -1
  22. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  23. package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
  24. package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
  25. package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
  26. package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +1 -1
  27. package/dist/components/Filter/Filter.d.ts +2 -2
  28. package/dist/components/Filter/Filter.js +20 -14
  29. package/dist/components/Filter/Filter.types.d.ts +3 -1
  30. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.d.ts +3 -0
  31. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +122 -0
  32. package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +7 -0
  33. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
  34. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +14 -0
  35. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +74 -0
  36. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +155 -0
  37. package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
  38. package/dist/components/Filter/components/index.d.ts +4 -0
  39. package/dist/components/Filter/components/index.js +8 -4
  40. package/dist/components/LineChart/LineChart.d.ts +17 -0
  41. package/dist/components/LineChart/LineChart.js +154 -0
  42. package/dist/components/LineChart/LineChart.types.d.ts +54 -0
  43. package/dist/components/Modal/Modal.js +1 -1
  44. package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
  45. package/dist/components/Modal/components/index.js +1 -1
  46. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
  47. package/dist/components/PieChart/PieChart.js +51 -5095
  48. package/dist/components/ProgressBar/ProgressBar.variants.d.ts +1 -1
  49. package/dist/components/RadioCardGroup/RadioCardGroup.variants.d.ts +1 -1
  50. package/dist/components/RadioGroup/RadioGroup.variants.d.ts +1 -1
  51. package/dist/components/Tabs/Tabs.variants.d.ts +1 -1
  52. package/dist/components/Toast/Toast.variants.d.ts +1 -1
  53. package/dist/components/Tooltip/Tooltip.d.ts +4 -9
  54. package/dist/components/Tooltip/Tooltip.js +35 -33
  55. package/dist/components/Tooltip/Tooltip.types.d.ts +22 -11
  56. package/dist/components/Typography/Typography.variants.d.ts +1 -1
  57. package/dist/components/VirtualizedTable/VirtualizedTable.js +61 -59
  58. package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +93 -8
  59. package/dist/components/VirtualizedTable/components/Filter/Filter.js +153 -71
  60. package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +7 -8
  61. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
  62. package/dist/components/VirtualizedTable/contexts/table.context.d.ts +12 -0
  63. package/dist/components/VirtualizedTable/contexts/table.context.js +9 -0
  64. package/dist/components/VirtualizedTable/contexts/table.provider.js +198 -162
  65. package/dist/components/index.d.ts +2 -1
  66. package/dist/components/index.js +124 -118
  67. package/dist/icons.d.ts +1 -1
  68. package/dist/icons.js +124 -116
  69. package/dist/{index-DPcwqB8q.js → index-B7-5g1Sm.js} +169 -168
  70. package/dist/index-qDQP8rW4.js +7281 -0
  71. package/dist/index.d.ts +1 -1
  72. package/dist/index.js +142 -135
  73. package/dist/package.json +8 -8
  74. package/dist/{proxy-CngVm5qA.js → proxy-0sbyKj-k.js} +732 -728
  75. package/dist/styles.css +1 -1
  76. package/dist/utils/index.d.ts +1 -0
  77. package/dist/utils/index.js +16 -15
  78. package/package.json +8 -8
  79. package/dist/assets/icons/components/CheckCircle.d.ts +0 -3
  80. package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -6
  81. package/dist/components/Tooltip/Tooltip.variants.js +0 -86
  82. package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
  83. package/dist/components/Tooltip/hooks/useTooltip.js +0 -24
@@ -5,65 +5,69 @@ import { AppRepoIcon as f } from "./components/AppRepo.js";
5
5
  import { AppsIcon as x } from "./components/Apps.js";
6
6
  import { ArchivesIcon as l } from "./components/Archives.js";
7
7
  import { ArrowDownIcon as C } from "./components/ArrowDown.js";
8
- import { ArrowLeftIcon as u } from "./components/ArrowLeft.js";
9
- import { ArrowRightIcon as d } from "./components/ArrowRight.js";
10
- import { ArrowUpIcon as A } from "./components/ArrowUp.js";
11
- import { BarChartIcon as O } from "./components/BarChart.js";
12
- import { BookOpenIcon as k } from "./components/BookOpen.js";
8
+ import { ArrowLeftIcon as s } from "./components/ArrowLeft.js";
9
+ import { ArrowRightIcon as h } from "./components/ArrowRight.js";
10
+ import { ArrowUpIcon as w } from "./components/ArrowUp.js";
11
+ import { BarChartIcon as A } from "./components/BarChart.js";
12
+ import { BookOpenIcon as P } from "./components/BookOpen.js";
13
13
  import { CalendarMonthIcon as S } from "./components/CalendarMonth.js";
14
- import { CheckCircleIcon as E } from "./components/CheckCircle.js";
15
- import { CheckIcon as b } from "./components/Check.js";
16
- import { ClockAlertIcon as y } from "./components/ClockAlert.js";
17
- import { ClockOutlineIcon as G } from "./components/ClockOutline.js";
18
- import { CloseIcon as N } from "./components/Close.js";
19
- import { CloudIcon as K } from "./components/Cloud.js";
20
- import { CloudLockOutlineIcon as U } from "./components/CloudLockOutline.js";
21
- import { ClustersIcon as W } from "./components/Clusters.js";
22
- import { CogOutlineIcon as j } from "./components/CogOutline.js";
23
- import { CopyIcon as z } from "./components/Copy.js";
24
- import { CpuIcon as J } from "./components/Cpu.js";
25
- import { CubeIcon as Y } from "./components/Cube.js";
26
- import { DatacenterIcon as _ } from "./components/Datacenter.js";
27
- import { DeleteIcon as oo } from "./components/Delete.js";
28
- import { DollarSignIcon as eo } from "./components/DollarSign.js";
29
- import { DownloadIcon as no } from "./components/Download.js";
30
- import { EditIcon as po } from "./components/Edit.js";
31
- import { EllipsesIcon as fo } from "./components/Ellipses.js";
32
- import { EnvironmentsIcon as xo } from "./components/Environments.js";
33
- import { ErrorIcon as lo } from "./components/Error.js";
34
- import { ErrorOutlineIcon as Co } from "./components/ErrorOutline.js";
35
- import { ExclamationIcon as uo } from "./components/Exclamation.js";
36
- import { GitIcon as ho } from "./components/Git.js";
37
- import { GitOpsCatalogIcon as go } from "./components/GitOpsCatalog.js";
38
- import { GridViewIcon as Po } from "./components/GridView.js";
39
- import { HelpIcon as Lo } from "./components/Help.js";
40
- import { HideOutlineIcon as vo } from "./components/HideOutline.js";
41
- import { HomeIcon as Do } from "./components/Home.js";
42
- import { IdIcon as Ro } from "./components/Id.js";
43
- import { InformationOutlineIcon as Bo } from "./components/InformationOutline.js";
44
- import { InvoiceListIcon as Ho } from "./components/InvoiceList.js";
45
- import { KeyIcon as To } from "./components/Key.js";
46
- import { LightBulbIcon as Mo } from "./components/LightBulb.js";
47
- import { LoaderIcon as Vo } from "./components/Loader.js";
48
- import { NetworkIcon as Xo } from "./components/Network.js";
49
- import { PagesStackIcon as qo } from "./components/PagesStack.js";
50
- import { PageviewIcon as Fo } from "./components/Pageview.js";
51
- import { PeopleIcon as Qo } from "./components/People.js";
52
- import { PhotoLibraryIcon as Zo } from "./components/PhotoLibrary.js";
53
- import { PipelineIcon as $o } from "./components/Pipeline.js";
54
- import { PlusIcon as rr } from "./components/Plus.js";
55
- import { PowerSettingsIcon as tr } from "./components/PowerSettings.js";
56
- import { PreviewIcon as cr } from "./components/Preview.js";
57
- import { ReceiptLongIcon as mr } from "./components/ReceiptLong.js";
58
- import { RefreshIcon as Ir } from "./components/Refresh.js";
59
- import { ScatterPlotIcon as ir } from "./components/ScatterPlot.js";
60
- import { SearchIcon as ar } from "./components/Search.js";
61
- import { ServerIcon as sr } from "./components/Server.js";
62
- import { StartIcon as wr } from "./components/Start.js";
63
- import { TabNewIcon as hr } from "./components/TabNew.js";
64
- import { TeamsIcon as gr } from "./components/Teams.js";
65
- import { WarningIcon as Pr } from "./components/Warning.js";
66
- import { XIcon as Lr } from "./components/X.js";
14
+ import { CheckCircleFilledIcon as E } from "./components/CheckCircleFilled.js";
15
+ import { CheckCircleOutlineIcon as D } from "./components/CheckCircleOutline.js";
16
+ import { CheckIcon as y } from "./components/Check.js";
17
+ import { CheckboxMarkedCircleOutlineIcon as G } from "./components/CheckboxMarkedCircleOutline.js";
18
+ import { ClockAlertIcon as T } from "./components/ClockAlert.js";
19
+ import { ClockOutlineIcon as N } from "./components/ClockOutline.js";
20
+ import { CloseIcon as F } from "./components/Close.js";
21
+ import { CloudIcon as U } from "./components/Cloud.js";
22
+ import { CloudLockOutlineIcon as X } from "./components/CloudLockOutline.js";
23
+ import { ClustersIcon as q } from "./components/Clusters.js";
24
+ import { CogOutlineIcon as J } from "./components/CogOutline.js";
25
+ import { CopyIcon as Y } from "./components/Copy.js";
26
+ import { CpuIcon as _ } from "./components/Cpu.js";
27
+ import { CubeIcon as oo } from "./components/Cube.js";
28
+ import { DatacenterIcon as eo } from "./components/Datacenter.js";
29
+ import { DeleteIcon as no } from "./components/Delete.js";
30
+ import { DollarSignIcon as po } from "./components/DollarSign.js";
31
+ import { DownloadIcon as fo } from "./components/Download.js";
32
+ import { EditIcon as xo } from "./components/Edit.js";
33
+ import { EllipsesIcon as lo } from "./components/Ellipses.js";
34
+ import { EnvironmentsIcon as Co } from "./components/Environments.js";
35
+ import { ErrorIcon as so } from "./components/Error.js";
36
+ import { ErrorOutlineIcon as go } from "./components/ErrorOutline.js";
37
+ import { ExclamationIcon as ko } from "./components/Exclamation.js";
38
+ import { GitIcon as Oo } from "./components/Git.js";
39
+ import { GitOpsCatalogIcon as Lo } from "./components/GitOpsCatalog.js";
40
+ import { GridViewIcon as vo } from "./components/GridView.js";
41
+ import { HelpIcon as bo } from "./components/Help.js";
42
+ import { HideOutlineIcon as Ro } from "./components/HideOutline.js";
43
+ import { HomeIcon as Bo } from "./components/Home.js";
44
+ import { IdIcon as Ho } from "./components/Id.js";
45
+ import { InfoCircleIcon as Mo } from "./components/InfoCircle.js";
46
+ import { InformationOutlineIcon as Wo } from "./components/InformationOutline.js";
47
+ import { InvoiceListIcon as Ko } from "./components/InvoiceList.js";
48
+ import { KeyIcon as Vo } from "./components/Key.js";
49
+ import { LightBulbIcon as jo } from "./components/LightBulb.js";
50
+ import { LoaderIcon as zo } from "./components/Loader.js";
51
+ import { NetworkIcon as Qo } from "./components/Network.js";
52
+ import { PagesStackIcon as Zo } from "./components/PagesStack.js";
53
+ import { PageviewIcon as $o } from "./components/Pageview.js";
54
+ import { PeopleIcon as rr } from "./components/People.js";
55
+ import { PhotoLibraryIcon as tr } from "./components/PhotoLibrary.js";
56
+ import { PipelineIcon as cr } from "./components/Pipeline.js";
57
+ import { PlusIcon as mr } from "./components/Plus.js";
58
+ import { PowerSettingsIcon as Ir } from "./components/PowerSettings.js";
59
+ import { PreviewIcon as ir } from "./components/Preview.js";
60
+ import { ReceiptLongIcon as ar } from "./components/ReceiptLong.js";
61
+ import { RefreshIcon as ur } from "./components/Refresh.js";
62
+ import { ScatterPlotIcon as dr } from "./components/ScatterPlot.js";
63
+ import { SearchIcon as gr } from "./components/Search.js";
64
+ import { ServerIcon as kr } from "./components/Server.js";
65
+ import { StartIcon as Or } from "./components/Start.js";
66
+ import { TabNewIcon as Lr } from "./components/TabNew.js";
67
+ import { TeamsIcon as vr } from "./components/Teams.js";
68
+ import { WarningIcon as br } from "./components/Warning.js";
69
+ import { WarningTriangleIcon as Rr } from "./components/WarningTriangle.js";
70
+ import { XIcon as Br } from "./components/X.js";
67
71
  export {
68
72
  e as AccountsIcon,
69
73
  n as AddChartIcon,
@@ -72,63 +76,67 @@ export {
72
76
  x as AppsIcon,
73
77
  l as ArchivesIcon,
74
78
  C as ArrowDownIcon,
75
- u as ArrowLeftIcon,
76
- d as ArrowRightIcon,
77
- A as ArrowUpIcon,
78
- O as BarChartIcon,
79
- k as BookOpenIcon,
79
+ s as ArrowLeftIcon,
80
+ h as ArrowRightIcon,
81
+ w as ArrowUpIcon,
82
+ A as BarChartIcon,
83
+ P as BookOpenIcon,
80
84
  S as CalendarMonthIcon,
81
- E as CheckCircleIcon,
82
- b as CheckIcon,
83
- y as ClockAlertIcon,
84
- G as ClockOutlineIcon,
85
- N as CloseIcon,
86
- K as CloudIcon,
87
- U as CloudLockOutlineIcon,
88
- W as ClustersIcon,
89
- j as CogOutlineIcon,
90
- z as CopyIcon,
91
- J as CpuIcon,
92
- Y as CubeIcon,
93
- _ as DatacenterIcon,
94
- oo as DeleteIcon,
95
- eo as DollarSignIcon,
96
- no as DownloadIcon,
97
- po as EditIcon,
98
- fo as EllipsesIcon,
99
- xo as EnvironmentsIcon,
100
- lo as ErrorIcon,
101
- Co as ErrorOutlineIcon,
102
- uo as ExclamationIcon,
103
- ho as GitIcon,
104
- go as GitOpsCatalogIcon,
105
- Po as GridViewIcon,
106
- Lo as HelpIcon,
107
- vo as HideOutlineIcon,
108
- Do as HomeIcon,
109
- Ro as IdIcon,
110
- Bo as InformationOutlineIcon,
111
- Ho as InvoiceListIcon,
112
- To as KeyIcon,
113
- Mo as LightBulbIcon,
114
- Vo as LoaderIcon,
115
- Xo as NetworkIcon,
116
- qo as PagesStackIcon,
117
- Fo as PageviewIcon,
118
- Qo as PeopleIcon,
119
- Zo as PhotoLibraryIcon,
120
- $o as PipelineIcon,
121
- rr as PlusIcon,
122
- tr as PowerSettingsIcon,
123
- cr as PreviewIcon,
124
- mr as ReceiptLongIcon,
125
- Ir as RefreshIcon,
126
- ir as ScatterPlotIcon,
127
- ar as SearchIcon,
128
- sr as ServerIcon,
129
- wr as StartIcon,
130
- hr as TabNewIcon,
131
- gr as TeamsIcon,
132
- Pr as WarningIcon,
133
- Lr as XIcon
85
+ E as CheckCircleFilledIcon,
86
+ D as CheckCircleOutlineIcon,
87
+ y as CheckIcon,
88
+ G as CheckboxMarkedCircleOutlineIcon,
89
+ T as ClockAlertIcon,
90
+ N as ClockOutlineIcon,
91
+ F as CloseIcon,
92
+ U as CloudIcon,
93
+ X as CloudLockOutlineIcon,
94
+ q as ClustersIcon,
95
+ J as CogOutlineIcon,
96
+ Y as CopyIcon,
97
+ _ as CpuIcon,
98
+ oo as CubeIcon,
99
+ eo as DatacenterIcon,
100
+ no as DeleteIcon,
101
+ po as DollarSignIcon,
102
+ fo as DownloadIcon,
103
+ xo as EditIcon,
104
+ lo as EllipsesIcon,
105
+ Co as EnvironmentsIcon,
106
+ so as ErrorIcon,
107
+ go as ErrorOutlineIcon,
108
+ ko as ExclamationIcon,
109
+ Oo as GitIcon,
110
+ Lo as GitOpsCatalogIcon,
111
+ vo as GridViewIcon,
112
+ bo as HelpIcon,
113
+ Ro as HideOutlineIcon,
114
+ Bo as HomeIcon,
115
+ Ho as IdIcon,
116
+ Mo as InfoCircleIcon,
117
+ Wo as InformationOutlineIcon,
118
+ Ko as InvoiceListIcon,
119
+ Vo as KeyIcon,
120
+ jo as LightBulbIcon,
121
+ zo as LoaderIcon,
122
+ Qo as NetworkIcon,
123
+ Zo as PagesStackIcon,
124
+ $o as PageviewIcon,
125
+ rr as PeopleIcon,
126
+ tr as PhotoLibraryIcon,
127
+ cr as PipelineIcon,
128
+ mr as PlusIcon,
129
+ Ir as PowerSettingsIcon,
130
+ ir as PreviewIcon,
131
+ ar as ReceiptLongIcon,
132
+ ur as RefreshIcon,
133
+ dr as ScatterPlotIcon,
134
+ gr as SearchIcon,
135
+ kr as ServerIcon,
136
+ Or as StartIcon,
137
+ Lr as TabNewIcon,
138
+ vr as TeamsIcon,
139
+ br as WarningIcon,
140
+ Rr as WarningTriangleIcon,
141
+ Br as XIcon
134
142
  };
@@ -2,29 +2,18 @@ import { FC } from 'react';
2
2
  import { AlertProps } from './Alert.types';
3
3
  /**
4
4
  * An alert component for displaying feedback messages.
5
- * Supports success, error, warning, and info variants with optional dismiss button.
5
+ * Supports success, info, warning, and danger variants with icon, title, and optional description.
6
6
  *
7
7
  * @example
8
8
  * ```tsx
9
- * // Success alert
10
- * <Alert type="success" content="Changes saved successfully!" />
9
+ * <Alert type="success" title="Changes saved successfully!" />
11
10
  *
12
- * // Error alert with close button
13
11
  * <Alert
14
- * type="error"
15
- * content="Failed to save changes. Please try again."
12
+ * type="danger"
13
+ * title="Error"
14
+ * description="Failed to save changes. Please try again."
16
15
  * showCloseButton
17
16
  * />
18
- *
19
- * // Warning alert with custom content
20
- * <Alert
21
- * type="warning"
22
- * content={
23
- * <div>
24
- * <strong>Warning:</strong> This action cannot be undone.
25
- * </div>
26
- * }
27
- * />
28
17
  * ```
29
18
  *
30
19
  * @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-alert--docs Storybook}
@@ -1,51 +1,65 @@
1
- import { jsx as l, jsxs as s } from "react/jsx-runtime";
2
- import { useRef as f, useState as h, useMemo as b, isValidElement as C, useCallback as V, useEffect as v } from "react";
3
- import { V as k } from "../../index-BKjcReYh.js";
4
- import { cn as a } from "../../utils/index.js";
5
- import { closeButtonVariants as w, alertVariants as x } from "./Alert.variants.js";
6
- import { X as y } from "../../x-Eoa9FJjA.js";
7
- const R = ({
8
- theme: i,
9
- type: o,
10
- content: t,
11
- isVisible: n = !0,
12
- showCloseButton: m = !1
1
+ import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
+ import { useRef as h, useState as C, useCallback as I, useEffect as b } from "react";
3
+ import { V as g } from "../../index-BKjcReYh.js";
4
+ import { cn as t } from "../../utils/index.js";
5
+ import { iconVariants as N, titleVariants as V, descriptionVariants as v, closeButtonVariants as x, alertVariants as k } from "./Alert.variants.js";
6
+ import { ErrorIcon as w } from "../../assets/icons/components/Error.js";
7
+ import { WarningTriangleIcon as A } from "../../assets/icons/components/WarningTriangle.js";
8
+ import { InfoCircleIcon as E } from "../../assets/icons/components/InfoCircle.js";
9
+ import { CheckCircleFilledIcon as j } from "../../assets/icons/components/CheckCircleFilled.js";
10
+ import { X as P } from "../../x-Eoa9FJjA.js";
11
+ const R = {
12
+ success: j,
13
+ info: E,
14
+ warning: A,
15
+ danger: w
16
+ }, X = ({
17
+ theme: c,
18
+ type: r,
19
+ title: m,
20
+ description: s,
21
+ isVisible: a = !0,
22
+ showCloseButton: d = !1
13
23
  }) => {
14
- const r = f(null), [c, d] = h(n), u = b(
15
- () => C(t) ? t : /* @__PURE__ */ l("p", { children: t }),
16
- [t]
17
- ), p = V(() => {
18
- const e = r.current;
24
+ const o = h(null), [f, u] = C(a), p = I(() => {
25
+ const e = o.current;
19
26
  e && e.setAttribute("data-state", "hidden");
20
27
  }, []);
21
- return v(() => {
28
+ if (b(() => {
22
29
  const e = new AbortController();
23
- return r.current?.addEventListener(
30
+ return o.current?.addEventListener(
24
31
  "animationend",
25
32
  () => {
26
- r.current?.style.setProperty("display", "none"), d(!1);
33
+ o.current?.style.setProperty("display", "none"), u(!1);
27
34
  },
28
35
  { signal: e.signal }
29
36
  ), () => e.abort();
30
- }, []), c ? /* @__PURE__ */ s(
37
+ }, []), !f)
38
+ return null;
39
+ const i = r ? R[r] : null;
40
+ return /* @__PURE__ */ l(
31
41
  "div",
32
42
  {
33
- ref: r,
34
- className: a(x({ type: o, isVisible: n })),
35
- "data-state": n ? "visible" : "hidden",
36
- "data-theme": i,
43
+ ref: o,
44
+ className: t(k({ type: r, isVisible: a })),
45
+ "data-state": a ? "visible" : "hidden",
46
+ "data-theme": c,
37
47
  role: "alert",
38
48
  "aria-live": "polite",
39
49
  children: [
40
- u,
41
- m ? /* @__PURE__ */ s("button", { role: "button", onClick: p, children: [
42
- /* @__PURE__ */ l(y, { className: a(w({ type: o })) }),
43
- /* @__PURE__ */ l(k, { children: "Dismiss alert" })
44
- ] }) : null
50
+ i && /* @__PURE__ */ n(i, { className: t(N({ type: r })) }),
51
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-1 flex-1", children: [
52
+ /* @__PURE__ */ n("p", { className: t(V({ type: r })), children: m }),
53
+ s && /* @__PURE__ */ n("div", { className: t(v({ type: r })), children: s })
54
+ ] }),
55
+ d && /* @__PURE__ */ l("button", { type: "button", onClick: p, children: [
56
+ /* @__PURE__ */ n(P, { className: t(x({ type: r })) }),
57
+ /* @__PURE__ */ n(g, { children: "Dismiss alert" })
58
+ ] })
45
59
  ]
46
60
  }
47
- ) : null;
61
+ );
48
62
  };
49
63
  export {
50
- R as Alert
64
+ X as Alert
51
65
  };
@@ -1,22 +1,22 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import { ReactNode } from 'react';
3
- import { alertVariants } from './Alert.variants';
4
3
  import { Theme } from '../../domain/theme';
4
+ import { alertVariants } from './Alert.variants';
5
5
  /**
6
6
  * Props for the Alert component.
7
7
  *
8
8
  * @example
9
9
  * ```tsx
10
- * <Alert type="success" content="Operation completed successfully!" />
11
- * <Alert type="error" content="Something went wrong" showCloseButton />
12
- * <Alert type="warning" content={<span>Warning: <strong>Action required</strong></span>} />
10
+ * <Alert type="success" title="Operation completed!" />
11
+ * <Alert type="danger" title="Error" description="Something went wrong" showCloseButton />
12
+ * <Alert type="warning" title="Warning" description={<span>Action <strong>required</strong></span>} />
13
13
  * ```
14
14
  */
15
15
  export interface AlertProps extends VariantProps<typeof alertVariants> {
16
- /** Whether the alert can be dismissed (deprecated, use showCloseButton) */
17
- dismissible?: boolean;
18
- /** Alert message content (string or ReactNode) */
19
- content: string | ReactNode;
16
+ /** Alert title (bold text) */
17
+ title: string;
18
+ /** Alert description */
19
+ description?: string | ReactNode;
20
20
  /** Whether the alert is visible */
21
21
  isVisible?: boolean;
22
22
  /** Show close button to dismiss alert */
@@ -1,7 +1,16 @@
1
1
  export declare const alertVariants: (props?: ({
2
- type?: "sucess" | "info" | "warning" | "danger" | null | undefined;
2
+ type?: "success" | "info" | "warning" | "danger" | null | undefined;
3
3
  isVisible?: boolean | null | undefined;
4
4
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
+ export declare const titleVariants: (props?: ({
6
+ type?: "success" | "info" | "warning" | "danger" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export declare const descriptionVariants: (props?: ({
9
+ type?: "success" | "info" | "warning" | "danger" | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
+ export declare const iconVariants: (props?: ({
12
+ type?: "success" | "info" | "warning" | "danger" | null | undefined;
13
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
14
  export declare const closeButtonVariants: (props?: ({
6
- type?: "sucess" | "info" | "warning" | "danger" | null | undefined;
15
+ type?: "success" | "info" | "warning" | "danger" | null | undefined;
7
16
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,21 +1,18 @@
1
- import { c as t } from "../../index-D29mdTf5.js";
2
- const a = t(
1
+ import { c as e } from "../../index-D29mdTf5.js";
2
+ const r = e(
3
3
  [
4
4
  "relative",
5
5
  "border",
6
- "py-4",
7
- "px-5",
8
- "rounded",
6
+ "shadow-xs",
7
+ "dark:shadow-sm",
8
+ "p-4",
9
+ "rounded-lg",
9
10
  "flex",
10
- "gap-2",
11
- "items-center",
11
+ "gap-4",
12
+ "items-start",
12
13
  "justify-start",
13
- "[&>*]:flex",
14
- "[&>*]:gap-2",
15
- "[&>*]:items-center",
16
- "[&>*]:justify-start",
17
14
  "text-sm",
18
- "shadow-sm",
15
+ "overflow-clip",
19
16
  "duration-300",
20
17
  "data-[state=hidden]:animate-out",
21
18
  "data-[state=hidden]:fade-out-0",
@@ -24,16 +21,30 @@ const a = t(
24
21
  {
25
22
  variants: {
26
23
  type: {
27
- sucess: "",
24
+ success: [
25
+ "bg-green-50",
26
+ "border-green-200",
27
+ "dark:bg-green-500/10",
28
+ "dark:border-green-500/20"
29
+ ],
28
30
  info: [
29
- "border-blue-100",
30
31
  "bg-blue-50",
31
- "text-zinc-700",
32
- "[&>*>svg]:text-blue-600",
33
- "shadow-blue-50/40"
32
+ "border-blue-100",
33
+ "dark:bg-blue-500/10",
34
+ "dark:border-blue-500/20"
35
+ ],
36
+ warning: [
37
+ "bg-yellow-50",
38
+ "border-yellow-200",
39
+ "dark:bg-yellow-500/10",
40
+ "dark:border-yellow-500/20"
34
41
  ],
35
- warning: "",
36
- danger: ""
42
+ danger: [
43
+ "bg-red-50",
44
+ "border-red-200",
45
+ "dark:bg-red-500/10",
46
+ "dark:border-red-500/20"
47
+ ]
37
48
  },
38
49
  isVisible: {
39
50
  true: "",
@@ -44,28 +55,62 @@ const a = t(
44
55
  isVisible: !0
45
56
  }
46
57
  }
47
- ), s = t(
58
+ ), a = e(["text-sm", "font-medium", "leading-5"], {
59
+ variants: {
60
+ type: {
61
+ success: ["text-green-800", "dark:text-green-300"],
62
+ info: ["text-blue-800", "dark:text-blue-300"],
63
+ warning: ["text-yellow-800", "dark:text-yellow-200"],
64
+ danger: ["text-red-800", "dark:text-rose-300"]
65
+ }
66
+ }
67
+ }), d = e(
68
+ ["text-sm", "font-normal", "leading-5"],
69
+ {
70
+ variants: {
71
+ type: {
72
+ success: ["text-green-700", "dark:text-green-100"],
73
+ info: ["text-blue-700", "dark:text-blue-200"],
74
+ warning: ["text-yellow-700", "dark:text-yellow-100"],
75
+ danger: ["text-red-700", "dark:text-rose-200"]
76
+ }
77
+ }
78
+ }
79
+ ), n = e(["size-5", "shrink-0"], {
80
+ variants: {
81
+ type: {
82
+ success: ["text-green-600", "dark:text-green-400"],
83
+ info: ["text-blue-600", "dark:text-blue-400", "rotate-180"],
84
+ warning: ["text-yellow-600", "dark:text-yellow-400"],
85
+ danger: ["text-red-600", "dark:text-rose-400"]
86
+ }
87
+ }
88
+ }), o = e(
48
89
  [
49
- "w-4",
50
- "h-4",
90
+ "size-4",
51
91
  "absolute",
52
- "right-2",
53
- "top-2",
54
- "text-inherit",
55
- "cursor-pointer"
92
+ "right-3",
93
+ "top-3",
94
+ "cursor-pointer",
95
+ "opacity-70",
96
+ "hover:opacity-100",
97
+ "transition-opacity"
56
98
  ],
57
99
  {
58
100
  variants: {
59
101
  type: {
60
- sucess: "",
61
- info: ["text-blue-600"],
62
- warning: "",
63
- danger: ""
102
+ success: ["text-green-600", "dark:text-green-400"],
103
+ info: ["text-blue-600", "dark:text-blue-400"],
104
+ warning: ["text-yellow-600", "dark:text-yellow-400"],
105
+ danger: ["text-red-600", "dark:text-rose-400"]
64
106
  }
65
107
  }
66
108
  }
67
109
  );
68
110
  export {
69
- a as alertVariants,
70
- s as closeButtonVariants
111
+ r as alertVariants,
112
+ o as closeButtonVariants,
113
+ d as descriptionVariants,
114
+ n as iconVariants,
115
+ a as titleVariants
71
116
  };
@@ -1,8 +1,8 @@
1
1
  export declare const badgeVariants: (props?: ({
2
- variant?: "info" | "warning" | "danger" | "default" | "success" | "violet" | "orange" | null | undefined;
2
+ variant?: "success" | "info" | "warning" | "danger" | "default" | "violet" | "orange" | null | undefined;
3
3
  size?: "default" | null | undefined;
4
4
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
5
  export declare const buttonDismissVariants: (props?: ({
6
- variant?: "info" | "warning" | "danger" | "default" | "success" | "violet" | "orange" | null | undefined;
6
+ variant?: "success" | "info" | "warning" | "danger" | "default" | "violet" | "orange" | null | undefined;
7
7
  size?: "default" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,5 +1,5 @@
1
1
  export declare const buttonVariants: (props?: ({
2
- variant?: "danger" | "link" | "primary" | "secondary" | "tertiary" | null | undefined;
2
+ variant?: "link" | "danger" | "primary" | "secondary" | "tertiary" | null | undefined;
3
3
  shape?: "circle" | null | undefined;
4
4
  version?: "default" | "alternate" | null | undefined;
5
5
  disabled?: boolean | null | undefined;
@@ -4,7 +4,7 @@ import { cn as n } from "../../utils/index.js";
4
4
  import { buttonGroupPillVariants as z, buttonGroupVariants as A, buttonGroupWrapperVariants as E } from "./ButtonGroup.variants.js";
5
5
  import { useButtonGroup as H } from "./hooks/useButtonGroup.js";
6
6
  import { ButtonGroupLabel as J } from "./components/ButtonGroupLabel/ButtonGroupLabel.js";
7
- import { m as Q } from "../../proxy-CngVm5qA.js";
7
+ import { m as Q } from "../../proxy-0sbyKj-k.js";
8
8
  import { ButtonGroupItem as T } from "./components/ButtonGroupItem/ButtonGroupItem.js";
9
9
  import { ButtonGroupMessage as U } from "./components/ButtonGroupMessage/ButtonGroupMessage.js";
10
10
  const X = ({
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as a } from "react/jsx-runtime";
2
2
  import { memo as L } from "react";
3
3
  import { cn as t } from "../../../../utils/index.js";
4
4
  import { buttonGroupLabelVariants as u, buttonGroupDescriptionVariants as V, buttonGroupItemContentVariants as g, buttonGroupItemVariants as w } from "./ButtonGroupItem.variants.js";
5
- import { m as j } from "../../../../proxy-CngVm5qA.js";
5
+ import { m as j } from "../../../../proxy-0sbyKj-k.js";
6
6
  const k = (r, n) => n === "none" ? r ? "inset(0 0 0 0)" : "inset(0 100% 0 0)" : r ? "inset(0 0 0 0)" : n === "right" ? "inset(0 0 0 100%)" : "inset(0 100% 0 0)", B = L(
7
7
  ({
8
8
  animationDirection: r,
@@ -7,7 +7,7 @@ import { CalendarDivider as tt } from "../CalendarDivider/CalendarDivider.js";
7
7
  import { CalendarMonth as d } from "../CalendarMonth/CalendarMonth.js";
8
8
  import { NavigationButton as g } from "../NavigationButton/NavigationButton.js";
9
9
  import { useIndependentCarousel as nt } from "../../hooks/useIndependentCarousel.js";
10
- import { m as et } from "../../../../../../proxy-CngVm5qA.js";
10
+ import { m as et } from "../../../../../../proxy-0sbyKj-k.js";
11
11
  const at = ({
12
12
  className: b,
13
13
  calendarWidth: x = 550,