@konstructio/ui 0.1.2-alpha.71 → 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.
- package/dist/{Modal-BGcucTHv.js → Modal-CXRo8f-h.js} +1 -1
- package/dist/assets/icons/components/CheckCircleFilled.d.ts +3 -0
- package/dist/assets/icons/components/CheckCircleFilled.js +31 -0
- package/dist/assets/icons/components/CheckCircleOutline.d.ts +3 -0
- package/dist/assets/icons/components/{CheckCircle.js → CheckCircleOutline.js} +8 -8
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.d.ts +3 -0
- package/dist/assets/icons/components/CheckboxMarkedCircleOutline.js +26 -0
- package/dist/assets/icons/components/InfoCircle.d.ts +3 -0
- package/dist/assets/icons/components/InfoCircle.js +31 -0
- package/dist/assets/icons/components/WarningTriangle.d.ts +3 -0
- package/dist/assets/icons/components/WarningTriangle.js +28 -0
- package/dist/assets/icons/components/index.d.ts +5 -1
- package/dist/assets/icons/components/index.js +124 -116
- package/dist/assets/icons/index.js +124 -116
- package/dist/components/Alert/Alert.d.ts +5 -16
- package/dist/components/Alert/Alert.js +46 -32
- package/dist/components/Alert/Alert.types.d.ts +8 -8
- package/dist/components/Alert/Alert.variants.d.ts +11 -2
- package/dist/components/Alert/Alert.variants.js +77 -32
- package/dist/components/Badge/Badge.variants.d.ts +2 -2
- package/dist/components/Button/Button.variants.d.ts +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/hooks/useDateTimeInputs.d.ts +1 -1
- package/dist/components/Filter/Filter.d.ts +2 -2
- package/dist/components/Filter/Filter.js +14 -11
- package/dist/components/Filter/Filter.types.d.ts +2 -1
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.d.ts +3 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.d.ts +14 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +74 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +155 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.types.d.ts +13 -0
- package/dist/components/Filter/components/index.d.ts +2 -0
- package/dist/components/Filter/components/index.js +10 -8
- package/dist/components/LineChart/LineChart.d.ts +17 -0
- package/dist/components/LineChart/LineChart.js +154 -0
- package/dist/components/LineChart/LineChart.types.d.ts +54 -0
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/PieChart/PieChart.js +51 -5095
- package/dist/components/ProgressBar/ProgressBar.variants.d.ts +1 -1
- package/dist/components/RadioCardGroup/RadioCardGroup.variants.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.variants.d.ts +1 -1
- package/dist/components/Tabs/Tabs.variants.d.ts +1 -1
- package/dist/components/Toast/Toast.variants.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -9
- package/dist/components/Tooltip/Tooltip.js +35 -33
- package/dist/components/Tooltip/Tooltip.types.d.ts +22 -11
- package/dist/components/Typography/Typography.variants.d.ts +1 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +28 -4
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +121 -91
- package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +5 -8
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/VirtualizedTable/contexts/table.context.d.ts +2 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +3 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +179 -168
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +117 -113
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +124 -116
- package/dist/{index-DPcwqB8q.js → index-B7-5g1Sm.js} +169 -168
- package/dist/index-qDQP8rW4.js +7281 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +144 -139
- package/dist/package.json +8 -8
- package/dist/{proxy-CngVm5qA.js → proxy-0sbyKj-k.js} +732 -728
- package/dist/styles.css +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +16 -15
- package/package.json +8 -8
- package/dist/assets/icons/components/CheckCircle.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.variants.d.ts +0 -6
- package/dist/components/Tooltip/Tooltip.variants.js +0 -86
- package/dist/components/Tooltip/hooks/useTooltip.d.ts +0 -4
- 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
|
|
9
|
-
import { ArrowRightIcon as
|
|
10
|
-
import { ArrowUpIcon as
|
|
11
|
-
import { BarChartIcon as
|
|
12
|
-
import { BookOpenIcon as
|
|
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 {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
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
|
|
82
|
-
|
|
83
|
-
y as
|
|
84
|
-
G as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
J as
|
|
92
|
-
Y as
|
|
93
|
-
_ as
|
|
94
|
-
oo as
|
|
95
|
-
eo as
|
|
96
|
-
no as
|
|
97
|
-
po as
|
|
98
|
-
fo as
|
|
99
|
-
xo as
|
|
100
|
-
lo as
|
|
101
|
-
Co as
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
Lo as
|
|
107
|
-
vo as
|
|
108
|
-
|
|
109
|
-
Ro as
|
|
110
|
-
Bo as
|
|
111
|
-
Ho as
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
Qo as
|
|
119
|
-
Zo as
|
|
120
|
-
$o as
|
|
121
|
-
rr as
|
|
122
|
-
tr as
|
|
123
|
-
cr as
|
|
124
|
-
mr as
|
|
125
|
-
Ir as
|
|
126
|
-
ir as
|
|
127
|
-
ar as
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
Lr as
|
|
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,
|
|
5
|
+
* Supports success, info, warning, and danger variants with icon, title, and optional description.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* ```tsx
|
|
9
|
-
*
|
|
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="
|
|
15
|
-
*
|
|
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 {
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { V as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { closeButtonVariants as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
15
|
-
|
|
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
|
-
|
|
28
|
+
if (b(() => {
|
|
22
29
|
const e = new AbortController();
|
|
23
|
-
return
|
|
30
|
+
return o.current?.addEventListener(
|
|
24
31
|
"animationend",
|
|
25
32
|
() => {
|
|
26
|
-
|
|
33
|
+
o.current?.style.setProperty("display", "none"), u(!1);
|
|
27
34
|
},
|
|
28
35
|
{ signal: e.signal }
|
|
29
36
|
), () => e.abort();
|
|
30
|
-
}, []),
|
|
37
|
+
}, []), !f)
|
|
38
|
+
return null;
|
|
39
|
+
const i = r ? R[r] : null;
|
|
40
|
+
return /* @__PURE__ */ l(
|
|
31
41
|
"div",
|
|
32
42
|
{
|
|
33
|
-
ref:
|
|
34
|
-
className:
|
|
35
|
-
"data-state":
|
|
36
|
-
"data-theme":
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
] })
|
|
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
|
-
)
|
|
61
|
+
);
|
|
48
62
|
};
|
|
49
63
|
export {
|
|
50
|
-
|
|
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"
|
|
11
|
-
* <Alert type="
|
|
12
|
-
* <Alert type="warning"
|
|
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
|
-
/**
|
|
17
|
-
|
|
18
|
-
/** Alert
|
|
19
|
-
|
|
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?: "
|
|
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?: "
|
|
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
|
|
2
|
-
const
|
|
1
|
+
import { c as e } from "../../index-D29mdTf5.js";
|
|
2
|
+
const r = e(
|
|
3
3
|
[
|
|
4
4
|
"relative",
|
|
5
5
|
"border",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
6
|
+
"shadow-xs",
|
|
7
|
+
"dark:shadow-sm",
|
|
8
|
+
"p-4",
|
|
9
|
+
"rounded-lg",
|
|
9
10
|
"flex",
|
|
10
|
-
"gap-
|
|
11
|
-
"items-
|
|
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
|
-
"
|
|
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
|
-
|
|
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
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
),
|
|
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
|
-
"
|
|
50
|
-
"h-4",
|
|
90
|
+
"size-4",
|
|
51
91
|
"absolute",
|
|
52
|
-
"right-
|
|
53
|
-
"top-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
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
|
-
|
|
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
|
-
|
|
70
|
-
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
+
import { m as et } from "../../../../../../proxy-0sbyKj-k.js";
|
|
11
11
|
const at = ({
|
|
12
12
|
className: b,
|
|
13
13
|
calendarWidth: x = 550,
|