@konstructio/ui 0.1.3 → 0.1.5
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/{Breadcrumb-DzavonoC.js → Breadcrumb-BiiOnn0p.js} +1 -1
- package/dist/{CollapsedSteps-CkMuzOHx.js → CollapsedSteps-Dy2I7XDd.js} +35 -35
- package/dist/{Input-C1Js3pbF.js → Input-CE6J6HIW.js} +6 -6
- package/dist/components/Alert/Alert.js +19 -18
- package/dist/components/Alert/Alert.variants.js +11 -4
- package/dist/components/Autocomplete/Autocomplete.variants.js +6 -5
- package/dist/components/Badge/Badge.js +15 -15
- package/dist/components/Badge/Badge.variants.js +5 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/BackButton/BackButton.variants.js +1 -1
- package/dist/components/Breadcrumb/components/CollapsedSteps/CollapsedSteps.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.variants.js +2 -2
- package/dist/components/Breadcrumb/components/index.js +1 -1
- package/dist/components/Button/Button.variants.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup.js +67 -63
- package/dist/components/ButtonGroup/ButtonGroup.variants.js +18 -5
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +51 -32
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.js +56 -8
- package/dist/components/Checkbox/Checkbox.variants.js +9 -6
- package/dist/components/Command/components/DialogContent.js +5 -5
- package/dist/components/ConfirmDialog/ConfirmDialog.js +1 -1
- package/dist/components/CopyButton/CopyButton.variants.js +4 -3
- package/dist/components/DateRangePicker/components/CalendarPanel/CalendarPanel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/CalendarMonth.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/CalendarMonth/components/CalendarMonthContent/CalendarMonthContent.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/dayPickerClassNames.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/constants/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/index.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useIndependentCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/hooks/useTogetherCarousel.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/utils/index.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/EndInputFields/EndInputFields.js +1 -1
- package/dist/components/DateRangePicker/components/DateTimeInputs/components/StartInputFields/StartInputFields.js +1 -1
- package/dist/components/Datepicker/components/DatePickerContent/DatePickerContent.js +7 -7
- package/dist/components/Filter/components/FilterDropdown/FilterDropdown.js +15 -14
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.js +22 -22
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.variants.js +6 -2
- package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +5 -5
- package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +1 -1
- package/dist/components/Range/Range.variants.js +9 -4
- package/dist/components/Select/Select.js +21 -20
- package/dist/components/Select/components/ListItem/ListItem.js +47 -37
- package/dist/components/Select/contexts/select.context.js +1 -0
- package/dist/components/Select/contexts/select.provider.js +28 -27
- package/dist/components/Sidebar/components/CollapseTrigger/CollapseTrigger.variants.js +3 -1
- package/dist/components/Sidebar/components/HamburgerTrigger/HamburgerTrigger.variants.js +6 -3
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.variants.js +1 -0
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.variants.js +4 -2
- package/dist/components/Slider/Slider.variants.js +9 -4
- package/dist/components/Switch/Switch.variants.js +8 -4
- package/dist/components/Table/components/Filter.js +1 -1
- package/dist/components/Toast/Toast.variants.js +7 -3
- package/dist/components/VirtualizedTable/assets/chevron-down.js +6 -6
- package/dist/components/VirtualizedTable/assets/chevron-up.js +4 -4
- package/dist/components/VirtualizedTable/components/Body/Body.js +59 -56
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +42 -40
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +85 -68
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +1 -1
- package/dist/components/VirtualizedTable/components/Header/Header.js +51 -49
- package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +34 -33
- package/dist/components/VirtualizedTable/components/VirtualizedTableContent/VirtualizedTableContent.js +11 -11
- package/dist/components/VirtualizedTable/constants/index.js +10 -5
- package/dist/components/VirtualizedTable/constants/responsive.js +70 -1
- package/dist/components/VirtualizedTable/hooks/index.js +6 -2
- package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.js +4 -0
- package/dist/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.js +20 -0
- package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/index.js +4 -0
- package/dist/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.js +18 -0
- package/dist/components/VirtualizedTable/utils/index.js +10 -8
- package/dist/components/VirtualizedTable/utils/responsive-edges/responsive-edges.js +8 -0
- package/dist/components/index.js +77 -73
- package/dist/{constants-q2QnJrOb.js → constants-YCGllWdf.js} +1 -1
- package/dist/index.js +77 -73
- package/dist/lib/components/ButtonGroup/ButtonGroup.types.d.ts +2 -0
- package/dist/lib/components/ButtonGroup/ButtonGroup.variants.d.ts +1 -0
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.types.d.ts +2 -1
- package/dist/lib/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.variants.d.ts +9 -0
- package/dist/lib/components/Select/Select.types.d.ts +2 -0
- package/dist/lib/components/Select/contexts/select.context.d.ts +1 -0
- package/dist/lib/components/Select/contexts/select.provider.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/VirtualizedTable.types.d.ts +5 -0
- package/dist/lib/components/VirtualizedTable/assets/chevron-down.d.ts +1 -2
- package/dist/lib/components/VirtualizedTable/assets/chevron-up.d.ts +1 -2
- package/dist/lib/components/VirtualizedTable/constants/responsive.d.ts +10 -0
- package/dist/lib/components/VirtualizedTable/hooks/index.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useDisplayedColumnCount/useDisplayedColumnCount.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/hooks/useIsFlexWrapped/useIsFlexWrapped.d.ts +2 -0
- package/dist/lib/components/VirtualizedTable/utils/index.d.ts +1 -0
- package/dist/lib/components/VirtualizedTable/utils/responsive-edges/responsive-edges.d.ts +6 -0
- package/dist/package.json +8 -8
- package/dist/styles.css +1 -1
- package/package.json +8 -8
|
@@ -3,7 +3,7 @@ import { t as x } from "./prop-types-qsAjMBb1.js";
|
|
|
3
3
|
import { t as y } from "./utils-DnIJruo0.js";
|
|
4
4
|
import { breadcrumbVariants as S, breadcrumbWrapperVariants as z } from "./components/Breadcrumb/Breadcrumb.variants.js";
|
|
5
5
|
import { BackButton as C } from "./components/Breadcrumb/components/BackButton/BackButton.js";
|
|
6
|
-
import { t as P } from "./CollapsedSteps-
|
|
6
|
+
import { t as P } from "./CollapsedSteps-Dy2I7XDd.js";
|
|
7
7
|
import { Item as $ } from "./components/Breadcrumb/components/Item/Item.js";
|
|
8
8
|
import b, { Fragment as k, forwardRef as E, useId as L } from "react";
|
|
9
9
|
import { Fragment as R, jsx as i, jsxs as d } from "react/jsx-runtime";
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { o as
|
|
2
|
-
import { a as
|
|
1
|
+
import { o as h } from "./rolldown-runtime-B28h4lGi.js";
|
|
2
|
+
import { a as g, n as v, r as d, t as y } from "./dist-D0f-mfFj.js";
|
|
3
3
|
import { t as b } from "./prop-types-qsAjMBb1.js";
|
|
4
4
|
import { n as x, t as w } from "./useBreadcrumb-Ta3_czcd.js";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as u } from "./utils-DnIJruo0.js";
|
|
6
6
|
import l, { forwardRef as O } from "react";
|
|
7
|
-
import { jsx as
|
|
8
|
-
var c = /* @__PURE__ */
|
|
7
|
+
import { jsx as i, jsxs as k } from "react/jsx-runtime";
|
|
8
|
+
var c = /* @__PURE__ */ h(b());
|
|
9
9
|
function m() {
|
|
10
10
|
return m = Object.assign || function(e) {
|
|
11
|
-
for (var
|
|
12
|
-
var o = arguments[
|
|
11
|
+
for (var a = 1; a < arguments.length; a++) {
|
|
12
|
+
var o = arguments[a];
|
|
13
13
|
for (var r in o) Object.prototype.hasOwnProperty.call(o, r) && (e[r] = o[r]);
|
|
14
14
|
}
|
|
15
15
|
return e;
|
|
16
16
|
}, m.apply(this, arguments);
|
|
17
17
|
}
|
|
18
|
-
function j(e,
|
|
18
|
+
function j(e, a) {
|
|
19
19
|
if (e == null) return {};
|
|
20
|
-
var o = N(e,
|
|
20
|
+
var o = N(e, a), r, t;
|
|
21
21
|
if (Object.getOwnPropertySymbols) {
|
|
22
|
-
var
|
|
23
|
-
for (t = 0; t <
|
|
24
|
-
r =
|
|
22
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
23
|
+
for (t = 0; t < n.length; t++)
|
|
24
|
+
r = n[t], !(a.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
25
25
|
}
|
|
26
26
|
return o;
|
|
27
27
|
}
|
|
28
|
-
function N(e,
|
|
28
|
+
function N(e, a) {
|
|
29
29
|
if (e == null) return {};
|
|
30
|
-
for (var o = {}, r = Object.keys(e), t,
|
|
31
|
-
t = r[
|
|
30
|
+
for (var o = {}, r = Object.keys(e), t, n = 0; n < r.length; n++)
|
|
31
|
+
t = r[n], !(a.indexOf(t) >= 0) && (o[t] = e[t]);
|
|
32
32
|
return o;
|
|
33
33
|
}
|
|
34
|
-
var p = O(function(e,
|
|
35
|
-
var o = e.color, r = o === void 0 ? "currentColor" : o, t = e.size,
|
|
34
|
+
var p = O(function(e, a) {
|
|
35
|
+
var o = e.color, r = o === void 0 ? "currentColor" : o, t = e.size, n = t === void 0 ? 24 : t, s = j(e, ["color", "size"]);
|
|
36
36
|
return /* @__PURE__ */ l.createElement("svg", m({
|
|
37
|
-
ref:
|
|
37
|
+
ref: a,
|
|
38
38
|
xmlns: "http://www.w3.org/2000/svg",
|
|
39
|
-
width:
|
|
40
|
-
height:
|
|
39
|
+
width: n,
|
|
40
|
+
height: n,
|
|
41
41
|
viewBox: "0 0 24 24",
|
|
42
42
|
fill: "none",
|
|
43
43
|
stroke: r,
|
|
@@ -63,44 +63,44 @@ p.propTypes = {
|
|
|
63
63
|
size: c.default.oneOfType([c.default.string, c.default.number])
|
|
64
64
|
};
|
|
65
65
|
p.displayName = "MoreHorizontal";
|
|
66
|
-
var f =
|
|
66
|
+
var f = u("flex w-full items-center gap-1 px-4 py-1.5 text-sm font-semibold outline-none", "text-gray-600 hover:bg-gray-50 focus:bg-gray-50 hover:cursor-pointer", "dark:text-gray-300 dark:hover:bg-metal-700 dark:focus:bg-metal-700"), R = ({ label: e, steps: a }) => {
|
|
67
67
|
const { isInsideRouter: o } = w();
|
|
68
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ i("li", {
|
|
69
69
|
className: "flex items-center",
|
|
70
70
|
children: /* @__PURE__ */ k(y, {
|
|
71
71
|
modal: !1,
|
|
72
|
-
children: [/* @__PURE__ */
|
|
72
|
+
children: [/* @__PURE__ */ i(g, {
|
|
73
73
|
"aria-label": e,
|
|
74
|
-
className:
|
|
75
|
-
children: /* @__PURE__ */
|
|
74
|
+
className: u("flex items-center rounded-xs text-gray-400 hover:text-gray-500", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-aurora-500", "dark:hover:text-gray-300 cursor-pointer", "relative tap-target touch-hit-area"),
|
|
75
|
+
children: /* @__PURE__ */ i(p, {
|
|
76
76
|
className: "w-5 h-5",
|
|
77
77
|
"aria-hidden": "true"
|
|
78
78
|
})
|
|
79
|
-
}), /* @__PURE__ */
|
|
79
|
+
}), /* @__PURE__ */ i(v, {
|
|
80
80
|
align: "start",
|
|
81
81
|
sideOffset: 4,
|
|
82
82
|
loop: !0,
|
|
83
|
-
className:
|
|
84
|
-
children:
|
|
83
|
+
className: u("z-50 min-w-40 rounded border border-gray-200 bg-white py-2 shadow-xs", "animate-in fade-in-0", "dark:border-metal-700 dark:bg-metal-800"),
|
|
84
|
+
children: a.map(({ label: r, to: t, target: n, component: s }) => t ? o && !s ? /* @__PURE__ */ i(d, {
|
|
85
85
|
asChild: !0,
|
|
86
|
-
children: /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ i(x, {
|
|
87
87
|
to: t,
|
|
88
|
-
target:
|
|
88
|
+
target: n,
|
|
89
89
|
className: f,
|
|
90
90
|
children: r
|
|
91
91
|
})
|
|
92
|
-
}, r) : /* @__PURE__ */
|
|
92
|
+
}, r) : /* @__PURE__ */ i(d, {
|
|
93
93
|
asChild: !0,
|
|
94
|
-
children: /* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ i(s ?? "a", {
|
|
95
95
|
href: s ? void 0 : t,
|
|
96
96
|
to: s ? t : void 0,
|
|
97
|
-
target:
|
|
97
|
+
target: n,
|
|
98
98
|
className: f,
|
|
99
99
|
children: r
|
|
100
100
|
})
|
|
101
|
-
}, r) : /* @__PURE__ */
|
|
101
|
+
}, r) : /* @__PURE__ */ i(d, {
|
|
102
102
|
disabled: !0,
|
|
103
|
-
className:
|
|
103
|
+
className: u(f, "cursor-default"),
|
|
104
104
|
children: r
|
|
105
105
|
}, r))
|
|
106
106
|
})]
|
|
@@ -107,8 +107,8 @@ O.propTypes = {
|
|
|
107
107
|
size: c.default.oneOfType([c.default.string, c.default.number])
|
|
108
108
|
};
|
|
109
109
|
O.displayName = "Eye";
|
|
110
|
-
var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hidePasswordLabel: n = "Hide password", id: a, isRequired: p = !1, isSearch: j = !1, label: k, labelAction: I, labelClassName: _, labelWrapperClassName: z, name: $, showPasswordLabel: T = "Show password", theme: L, type:
|
|
111
|
-
const M = G(),
|
|
110
|
+
var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hidePasswordLabel: n = "Hide password", id: a, isRequired: p = !1, isSearch: j = !1, label: k, labelAction: I, labelClassName: _, labelWrapperClassName: z, name: $, showPasswordLabel: T = "Show password", theme: L, type: u = "text", ...W }, S) => {
|
|
111
|
+
const M = G(), f = a ?? M, N = `${f}-error`, E = `${f}-helper-text`, B = J(u === "password"), [m, C] = Q(() => u !== "password"), s = typeof o == "string" && o.length > 0, h = u === "password", P = !s && !!r, A = K(s && N, P && E), H = m ? O : b;
|
|
112
112
|
return /* @__PURE__ */ v("div", {
|
|
113
113
|
className: "flex flex-col gap-2 w-full relative",
|
|
114
114
|
"data-theme": L,
|
|
@@ -118,7 +118,7 @@ var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hid
|
|
|
118
118
|
children: [/* @__PURE__ */ v(g, {
|
|
119
119
|
component: "label",
|
|
120
120
|
variant: "labelLarge",
|
|
121
|
-
htmlFor:
|
|
121
|
+
htmlFor: f,
|
|
122
122
|
className: l("cursor-pointer", "flex", "gap-1", "text-sm", "font-medium", _),
|
|
123
123
|
children: [
|
|
124
124
|
k,
|
|
@@ -141,10 +141,10 @@ var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hid
|
|
|
141
141
|
}) : null,
|
|
142
142
|
/* @__PURE__ */ i("input", {
|
|
143
143
|
...W,
|
|
144
|
-
id:
|
|
144
|
+
id: f,
|
|
145
145
|
ref: S,
|
|
146
146
|
name: $,
|
|
147
|
-
type: m ? B.current ? "text" :
|
|
147
|
+
type: m ? B.current ? "text" : u : "password",
|
|
148
148
|
"data-error": s,
|
|
149
149
|
"aria-invalid": s || void 0,
|
|
150
150
|
"aria-describedby": A,
|
|
@@ -165,7 +165,7 @@ var ee = w(({ className: e, error: o, helperText: r, helperTextClassName: t, hid
|
|
|
165
165
|
h ? /* @__PURE__ */ i("button", {
|
|
166
166
|
type: "button",
|
|
167
167
|
"aria-label": m ? n : T,
|
|
168
|
-
className: l("-translate-y-1/2", "absolute", "cursor-pointer", "right-3", "text-slate-400", "top-1/2"),
|
|
168
|
+
className: l("-translate-y-1/2", "absolute", "cursor-pointer", "right-3", "rounded outline-none focus-visible:ring-1 focus-visible:ring-aurora-500", "tap-target touch-hit-area", "text-slate-400", "top-1/2"),
|
|
169
169
|
onClick: () => C(!m),
|
|
170
170
|
children: /* @__PURE__ */ i(H, { className: "w-5 h-5" })
|
|
171
171
|
}) : null
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as v } from "../../x-BmNOD9Gr.js";
|
|
3
|
-
import { t as
|
|
3
|
+
import { t as N } from "../../dist-C_jtUTU9.js";
|
|
4
4
|
import { t } from "../../utils-DnIJruo0.js";
|
|
5
|
-
import { CheckCircleFilledIcon as
|
|
5
|
+
import { CheckCircleFilledIcon as I } from "../../assets/icons/components/CheckCircleFilled.js";
|
|
6
6
|
import { ErrorIcon as g } from "../../assets/icons/components/Error.js";
|
|
7
7
|
import { InfoCircleIcon as b } from "../../assets/icons/components/InfoCircle.js";
|
|
8
8
|
import { WarningTriangleIcon as x } from "../../assets/icons/components/WarningTriangle.js";
|
|
9
9
|
import { alertVariants as V, closeButtonVariants as k, descriptionVariants as w, iconVariants as A, titleVariants as E } from "./Alert.variants.js";
|
|
10
10
|
import { useEffect as j, useRef as P, useState as R } from "react";
|
|
11
|
-
import { jsx as
|
|
12
|
-
var
|
|
13
|
-
success:
|
|
11
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
12
|
+
var z = {
|
|
13
|
+
success: I,
|
|
14
14
|
info: b,
|
|
15
15
|
warning: x,
|
|
16
16
|
danger: g
|
|
17
|
-
},
|
|
17
|
+
}, X = ({ action: i, icon: d, theme: f, type: e, title: o, description: c, isVisible: s = !0, showCloseButton: u = !1 }) => {
|
|
18
18
|
const a = P(null), [p, h] = R(s), C = () => {
|
|
19
19
|
const n = a.current;
|
|
20
20
|
n && n.setAttribute("data-state", "hidden");
|
|
@@ -25,11 +25,11 @@ var B = {
|
|
|
25
25
|
a.current?.style.setProperty("display", "none"), h(!1);
|
|
26
26
|
}, { signal: n.signal }), () => n.abort();
|
|
27
27
|
}, []), !p) return null;
|
|
28
|
-
const m =
|
|
28
|
+
const m = e ? z[e] : null;
|
|
29
29
|
return /* @__PURE__ */ l("div", {
|
|
30
30
|
ref: a,
|
|
31
31
|
className: t(V({
|
|
32
|
-
type:
|
|
32
|
+
type: e,
|
|
33
33
|
isVisible: s
|
|
34
34
|
})),
|
|
35
35
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -37,29 +37,30 @@ var B = {
|
|
|
37
37
|
role: "alert",
|
|
38
38
|
"aria-live": "polite",
|
|
39
39
|
children: [
|
|
40
|
-
d ?? (m && /* @__PURE__ */
|
|
40
|
+
d ?? (m && /* @__PURE__ */ r(m, { className: t(A({ type: e })) })),
|
|
41
41
|
/* @__PURE__ */ l("div", {
|
|
42
42
|
className: "flex flex-col gap-1 flex-1",
|
|
43
|
-
children: [
|
|
44
|
-
className: t(E({ type:
|
|
45
|
-
children:
|
|
46
|
-
}), c && /* @__PURE__ */
|
|
47
|
-
className: t(w({ type:
|
|
43
|
+
children: [o && /* @__PURE__ */ r("p", {
|
|
44
|
+
className: t(E({ type: e })),
|
|
45
|
+
children: o
|
|
46
|
+
}), c && /* @__PURE__ */ r("div", {
|
|
47
|
+
className: t(w({ type: e })),
|
|
48
48
|
children: c
|
|
49
49
|
})]
|
|
50
50
|
}),
|
|
51
|
-
|
|
51
|
+
i ? /* @__PURE__ */ r("div", {
|
|
52
52
|
className: "shrink-0 self-center",
|
|
53
|
-
children:
|
|
53
|
+
children: i
|
|
54
54
|
}) : null,
|
|
55
55
|
u && /* @__PURE__ */ l("button", {
|
|
56
56
|
type: "button",
|
|
57
|
+
className: t(k({ type: e })),
|
|
57
58
|
onClick: C,
|
|
58
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ r(v, { className: "size-4" }), /* @__PURE__ */ r(N, { children: "Dismiss alert" })]
|
|
59
60
|
})
|
|
60
61
|
]
|
|
61
62
|
});
|
|
62
63
|
};
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
+
X as Alert
|
|
65
66
|
};
|
|
@@ -68,7 +68,7 @@ var r = e([
|
|
|
68
68
|
info: ["text-blue-700", "dark:text-blue-200"],
|
|
69
69
|
warning: ["text-yellow-700", "dark:text-yellow-100"],
|
|
70
70
|
danger: ["text-red-700", "dark:text-rose-200"]
|
|
71
|
-
} } }),
|
|
71
|
+
} } }), n = e(["size-5", "shrink-0"], { variants: { type: {
|
|
72
72
|
success: ["text-green-600", "dark:text-green-400"],
|
|
73
73
|
info: [
|
|
74
74
|
"text-blue-600",
|
|
@@ -77,11 +77,18 @@ var r = e([
|
|
|
77
77
|
],
|
|
78
78
|
warning: ["text-yellow-600", "dark:text-yellow-400"],
|
|
79
79
|
danger: ["text-red-600", "dark:text-rose-400"]
|
|
80
|
-
} } }),
|
|
80
|
+
} } }), o = e([
|
|
81
81
|
"size-4",
|
|
82
82
|
"absolute",
|
|
83
83
|
"right-3",
|
|
84
84
|
"top-3",
|
|
85
|
+
"flex",
|
|
86
|
+
"items-center",
|
|
87
|
+
"justify-center",
|
|
88
|
+
"rounded",
|
|
89
|
+
"outline-none",
|
|
90
|
+
"focus-visible:ring-1",
|
|
91
|
+
"focus-visible:ring-aurora-500",
|
|
85
92
|
"cursor-pointer",
|
|
86
93
|
"tap-target",
|
|
87
94
|
"touch-hit-area",
|
|
@@ -97,8 +104,8 @@ var r = e([
|
|
|
97
104
|
} } });
|
|
98
105
|
export {
|
|
99
106
|
r as alertVariants,
|
|
100
|
-
|
|
107
|
+
o as closeButtonVariants,
|
|
101
108
|
d as descriptionVariants,
|
|
102
|
-
|
|
109
|
+
n as iconVariants,
|
|
103
110
|
a as titleVariants
|
|
104
111
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as r } from "../../dist-B9GE4SXf.js";
|
|
2
|
-
var
|
|
2
|
+
var i = r([
|
|
3
3
|
"flex",
|
|
4
4
|
"w-full",
|
|
5
5
|
"rounded-md",
|
|
@@ -11,7 +11,8 @@ var e = r([
|
|
|
11
11
|
"placeholder:text-muted-foreground",
|
|
12
12
|
"focus-visible:outline-none",
|
|
13
13
|
"focus-visible:ring-1",
|
|
14
|
-
"focus-visible:ring-
|
|
14
|
+
"focus-visible:ring-aurora-500",
|
|
15
|
+
"kubefirst:focus-visible:ring-kubefirst-primary",
|
|
15
16
|
"disabled:cursor-not-allowed",
|
|
16
17
|
"disabled:opacity-50",
|
|
17
18
|
"shadow-2xs",
|
|
@@ -19,12 +20,12 @@ var e = r([
|
|
|
19
20
|
"px-2",
|
|
20
21
|
"focus:ring-aurora-500",
|
|
21
22
|
"kubefirst:focus:ring-kubefirst-primary"
|
|
22
|
-
]),
|
|
23
|
+
]), o = r([
|
|
23
24
|
"pl-1",
|
|
24
25
|
"text-base",
|
|
25
26
|
"cursor-pointer"
|
|
26
27
|
]);
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
i as autocompleteVariants,
|
|
30
|
+
o as labelVariants
|
|
30
31
|
};
|
|
@@ -2,28 +2,28 @@ import { t as x } from "../../x-C8O1IsaM.js";
|
|
|
2
2
|
import { LoaderIcon as D } from "../../assets/icons/components/Loader.js";
|
|
3
3
|
import { t as c } from "../../utils-DnIJruo0.js";
|
|
4
4
|
import { badgeVariants as V, buttonDismissVariants as j } from "./Badge.variants.js";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as f } from "../../dist-CK8FUUUn.js";
|
|
6
6
|
import { useEffect as E, useRef as L, useState as P } from "react";
|
|
7
|
-
import { jsx as s, jsxs as
|
|
8
|
-
var q = ({ className: b, dismissible:
|
|
9
|
-
const u = L(null), [r, N] = P("visible"), y = (
|
|
10
|
-
|
|
7
|
+
import { jsx as s, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
var q = ({ className: b, dismissible: g = !1, isSelectable: h = !0, label: i, leftIcon: n, loading: o = !1, rightIcon: l, size: m, variant: d, onClick: e, onDismiss: v }) => {
|
|
9
|
+
const u = L(null), [r, N] = P("visible"), y = (a) => {
|
|
10
|
+
a.stopPropagation(), v?.(), N("hidden");
|
|
11
11
|
};
|
|
12
12
|
return E(() => {
|
|
13
13
|
if (r !== "hidden") return;
|
|
14
|
-
const
|
|
15
|
-
return
|
|
16
|
-
w.target ===
|
|
17
|
-
}, { signal:
|
|
18
|
-
}, [r]), /* @__PURE__ */
|
|
14
|
+
const a = new AbortController(), t = u.current;
|
|
15
|
+
return t?.addEventListener("animationend", (w) => {
|
|
16
|
+
w.target === t && (t.style.setProperty("display", "none"), t.remove());
|
|
17
|
+
}, { signal: a.signal }), () => a.abort();
|
|
18
|
+
}, [r]), /* @__PURE__ */ p("span", {
|
|
19
19
|
ref: u,
|
|
20
20
|
className: c(V({
|
|
21
21
|
variant: d,
|
|
22
22
|
size: m,
|
|
23
23
|
className: b
|
|
24
24
|
}), {
|
|
25
|
-
"select-none": !
|
|
26
|
-
"cursor-pointer": e
|
|
25
|
+
"select-none": !h,
|
|
26
|
+
"cursor-pointer tap-target outline-none focus-visible:ring-1 focus-visible:ring-aurora-500 pointer-coarse:motion-safe:active:scale-95": e
|
|
27
27
|
}),
|
|
28
28
|
role: e ? "button" : void 0,
|
|
29
29
|
onClick: e,
|
|
@@ -37,12 +37,12 @@ var q = ({ className: b, dismissible: h = !1, isSelectable: g = !0, label: i, le
|
|
|
37
37
|
size: 12,
|
|
38
38
|
className: "animate-spin animate-duration-time-2"
|
|
39
39
|
}),
|
|
40
|
-
n ? /* @__PURE__ */ s(
|
|
40
|
+
n ? /* @__PURE__ */ s(f, {
|
|
41
41
|
className: "h-3 w-3",
|
|
42
42
|
children: n
|
|
43
43
|
}) : null,
|
|
44
44
|
i,
|
|
45
|
-
|
|
45
|
+
g ? /* @__PURE__ */ p("button", {
|
|
46
46
|
type: "button",
|
|
47
47
|
className: c(j({
|
|
48
48
|
size: m,
|
|
@@ -54,7 +54,7 @@ var q = ({ className: b, dismissible: h = !1, isSelectable: g = !0, label: i, le
|
|
|
54
54
|
className: "sr-only",
|
|
55
55
|
children: "Dismiss"
|
|
56
56
|
})]
|
|
57
|
-
}) : l ? /* @__PURE__ */ s(
|
|
57
|
+
}) : l ? /* @__PURE__ */ s(f, {
|
|
58
58
|
className: "h-3 w-3",
|
|
59
59
|
children: l
|
|
60
60
|
}) : null
|
|
@@ -69,7 +69,12 @@ var a = e([
|
|
|
69
69
|
"inline-flex",
|
|
70
70
|
"items-center",
|
|
71
71
|
"justify-center",
|
|
72
|
+
"relative",
|
|
73
|
+
"tap-target",
|
|
74
|
+
"touch-hit-area",
|
|
72
75
|
"focus:outline-none",
|
|
76
|
+
"focus-visible:ring-1",
|
|
77
|
+
"focus-visible:ring-aurora-500",
|
|
73
78
|
"text-inherit",
|
|
74
79
|
"cursor-pointer",
|
|
75
80
|
"text-gray-700"
|
|
@@ -17,7 +17,7 @@ var s = e([
|
|
|
17
17
|
"group-[&:has(:focus-visible)]:no-underline",
|
|
18
18
|
"group-[&:has(:focus-visible)]:outline-2",
|
|
19
19
|
"group-[&:has(:focus-visible)]:outline-offset-6",
|
|
20
|
-
"group-[&:has(:focus-visible)]:outline-
|
|
20
|
+
"group-[&:has(:focus-visible)]:outline-aurora-500",
|
|
21
21
|
"group-[&:has(:focus-visible)]:text-gray-500",
|
|
22
22
|
"group-[&:has(:focus-visible)]:rounded-xs",
|
|
23
23
|
"group-hover:rounded-xs",
|
|
@@ -31,7 +31,7 @@ var s = e([
|
|
|
31
31
|
"group-[&:has(:focus-visible)]:no-underline",
|
|
32
32
|
"group-[&:has(:focus-visible)]:outline-2",
|
|
33
33
|
"group-[&:has(:focus-visible)]:outline-offset-6",
|
|
34
|
-
"group-[&:has(:focus-visible)]:outline-
|
|
34
|
+
"group-[&:has(:focus-visible)]:outline-aurora-500",
|
|
35
35
|
"group-[&:has(:focus-visible)]:text-gray-500",
|
|
36
36
|
"group-[&:has(:focus-visible)]:rounded-xs",
|
|
37
37
|
"group-hover:rounded-xs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BackButton as t } from "./BackButton/BackButton.js";
|
|
2
2
|
import { Item as r } from "./Item/Item.js";
|
|
3
|
-
import { t as e } from "../../../CollapsedSteps-
|
|
3
|
+
import { t as e } from "../../../CollapsedSteps-Dy2I7XDd.js";
|
|
4
4
|
export {
|
|
5
5
|
t as BackButton,
|
|
6
6
|
e as CollapsedSteps,
|
|
@@ -10,7 +10,8 @@ var a = r([
|
|
|
10
10
|
"flex",
|
|
11
11
|
"focus-visible:outline-none",
|
|
12
12
|
"focus-visible:ring-1",
|
|
13
|
-
"focus-visible:ring-
|
|
13
|
+
"focus-visible:ring-aurora-500",
|
|
14
|
+
"kubefirst:focus-visible:ring-kubefirst-primary",
|
|
14
15
|
"font-semibold",
|
|
15
16
|
"gap-2",
|
|
16
17
|
"inline-flex",
|
|
@@ -19,8 +20,7 @@ var a = r([
|
|
|
19
20
|
"rounded",
|
|
20
21
|
"transition-[color,background-color,border-color,transform]",
|
|
21
22
|
"duration-150",
|
|
22
|
-
"active:scale-[0.97]",
|
|
23
|
-
"motion-reduce:active:scale-100",
|
|
23
|
+
"pointer-coarse:motion-safe:active:scale-[0.97]",
|
|
24
24
|
"whitespace-nowrap",
|
|
25
25
|
"h-10",
|
|
26
26
|
"pointer-coarse:min-h-11",
|